mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
5.7 KiB
JSON
1 line
5.7 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { r as registerInstance, c as createEvent, h } from './core-f86805ad.js';\nconst PWACameraModal = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.onPhoto = createEvent(this, \"onPhoto\", 7);\n this.noDeviceError = createEvent(this, \"noDeviceError\", 7);\n }\n present() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const camera = document.createElement('pwa-camera-modal-instance');\n camera.addEventListener('onPhoto', /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (e) {\n if (!_this._modal) {\n return;\n }\n const photo = e.detail;\n _this.onPhoto.emit(photo);\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n camera.addEventListener('noDeviceError', /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(function* (e) {\n _this.noDeviceError.emit(e);\n });\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n document.body.append(camera);\n _this._modal = camera;\n })();\n }\n dismiss() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n if (!_this2._modal) {\n return;\n }\n _this2._modal && _this2._modal.parentNode.removeChild(_this2._modal);\n _this2._modal = null;\n })();\n }\n render() {\n return h(\"div\", null);\n }\n static get style() {\n 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}\";\n }\n};\nexport { PWACameraModal as pwa_camera_modal };","map":{"version":3,"names":["r","registerInstance","c","createEvent","h","PWACameraModal","constructor","hostRef","onPhoto","noDeviceError","present","_this","_asyncToGenerator","camera","document","createElement","addEventListener","_ref","e","_modal","photo","detail","emit","_x","apply","arguments","_ref2","_x2","body","append","dismiss","_this2","parentNode","removeChild","render","style","pwa_camera_modal"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic/pwa-elements/dist/esm/pwa-camera-modal.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h } from './core-f86805ad.js';\n\nconst PWACameraModal = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.onPhoto = createEvent(this, \"onPhoto\", 7);\n this.noDeviceError = createEvent(this, \"noDeviceError\", 7);\n }\n async present() {\n const camera = document.createElement('pwa-camera-modal-instance');\n camera.addEventListener('onPhoto', async (e) => {\n if (!this._modal) {\n return;\n }\n const photo = e.detail;\n this.onPhoto.emit(photo);\n });\n camera.addEventListener('noDeviceError', async (e) => {\n this.noDeviceError.emit(e);\n });\n document.body.append(camera);\n this._modal = camera;\n }\n async dismiss() {\n if (!this._modal) {\n return;\n }\n this._modal && this._modal.parentNode.removeChild(this._modal);\n this._modal = null;\n }\n render() {\n return (h(\"div\", null));\n }\n static get style() { 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-
|