mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
1 line
6.9 KiB
JSON
1 line
6.9 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, g as getElement } from './core-f86805ad.js';\nconst PWACameraModal = class {\n constructor(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n this.noDevicesText = 'No camera found';\n this.noDevicesButtonText = 'Choose image';\n this.handlePhoto = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (photo) {\n _this.onPhoto.emit(photo);\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }();\n this.handleNoDeviceError = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(function* (photo) {\n _this.noDeviceError.emit(photo);\n });\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }();\n this.onPhoto = createEvent(this, \"onPhoto\", 7);\n this.noDeviceError = createEvent(this, \"noDeviceError\", 7);\n }\n handleBackdropClick(e) {\n if (e.target !== this.el) {\n this.onPhoto.emit(null);\n }\n }\n handleComponentClick(e) {\n e.stopPropagation();\n }\n handleBackdropKeyUp(e) {\n if (e.key === \"Escape\") {\n this.onPhoto.emit(null);\n }\n }\n render() {\n return h(\"div\", {\n class: \"wrapper\",\n onClick: e => this.handleBackdropClick(e)\n }, h(\"div\", {\n class: \"content\"\n }, h(\"pwa-camera\", {\n onClick: e => this.handleComponentClick(e),\n handlePhoto: this.handlePhoto,\n handleNoDeviceError: this.handleNoDeviceError,\n noDevicesButtonText: this.noDevicesButtonText,\n noDevicesText: this.noDevicesText\n })));\n }\n get el() {\n return getElement(this);\n }\n static get style() {\n return \":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;contain:strict;--inset-width:600px;--inset-height:600px}.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:var(--inset-width);height:var(--inset-height);max-height:100%}\\@media only screen and (max-width:600px){.content{width:100%;height:100%}}\";\n }\n};\nexport { PWACameraModal as pwa_camera_modal_instance };","map":{"version":3,"names":["r","registerInstance","c","createEvent","h","g","getElement","PWACameraModal","constructor","hostRef","_this","noDevicesText","noDevicesButtonText","handlePhoto","_ref","_asyncToGenerator","photo","onPhoto","emit","_x","apply","arguments","handleNoDeviceError","_ref2","noDeviceError","_x2","handleBackdropClick","e","target","el","handleComponentClick","stopPropagation","handleBackdropKeyUp","key","render","class","onClick","style","pwa_camera_modal_instance"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic/pwa-elements/dist/esm/pwa-camera-modal-instance.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, g as getElement } from './core-f86805ad.js';\n\nconst PWACameraModal = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.noDevicesText = 'No camera found';\n this.noDevicesButtonText = 'Choose image';\n this.handlePhoto = async (photo) => {\n this.onPhoto.emit(photo);\n };\n this.handleNoDeviceError = async (photo) => {\n this.noDeviceError.emit(photo);\n };\n this.onPhoto = createEvent(this, \"onPhoto\", 7);\n this.noDeviceError = createEvent(this, \"noDeviceError\", 7);\n }\n handleBackdropClick(e) {\n if (e.target !== this.el) {\n this.onPhoto.emit(null);\n }\n }\n handleComponentClick(e) {\n e.stopPropagation();\n }\n handleBackdropKeyUp(e) {\n if (e.ke
|