Files
doneit-web/_platforms/browser/www/4262-es5.05b9513c3cd9407b4008.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
2.7 KiB
JavaScript

!function(){function e(e,n,t,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void t(s)}c.done?n(u):Promise.resolve(u).then(r,o)}function n(n){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=n.apply(t,r);function c(n){e(a,o,i,c,u,"next",n)}function u(n){e(a,o,i,c,u,"throw",n)}c(void 0)})}}function t(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[4262],{64262:function(e,r,o){"use strict";o.r(r),o.d(r,{pwa_camera_modal:function(){return a}});var i=o(75485),a=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),(0,i.r)(this,n),this.onPhoto=(0,i.c)(this,"onPhoto",7),this.noDeviceError=(0,i.c)(this,"noDeviceError",7)}var r,o,a,c,u;return r=e,o=[{key:"present",value:(u=n(regeneratorRuntime.mark(function e(){var t,r=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=document.createElement("pwa-camera-modal-instance")).addEventListener("onPhoto",function(){var e=n(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r._modal&&r.onPhoto.emit(n.detail);case 1:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()),t.addEventListener("noDeviceError",function(){var e=n(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.noDeviceError.emit(n);case 1:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()),document.body.append(t),this._modal=t;case 2:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"dismiss",value:(c=n(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this._modal&&(this._modal&&this._modal.parentNode.removeChild(this._modal),this._modal=null);case 1:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"render",value:function(){return(0,i.h)("div",null)}}],a=[{key:"style",get:function(){return":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;contain:strict}.wrapper,:host{display:-ms-flexbox;display:flex}.wrapper{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(0,0,0,.15)}.content{-webkit-box-shadow:0 0 5px rgba(0,0,0,.2);box-shadow:0 0 5px rgba(0,0,0,.2);width:600px;height:600px}"}}],o&&t(r.prototype,o),a&&t(r,a),e}()}}])}();