mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +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.key === \"Escape\") {\n this.onPhoto.emit(null);\n }\n }\n render() {\n return (h(\"div\", { class: \"wrapper\", onClick: e => this.handleBackdropClick(e) }, h(\"div\", { class: \"content\" }, h(\"pwa-camera\", { onClick: e => this.handleComponentClick(e), handlePhoto: this.handlePhoto, handleNoDeviceError: this.handleNoDeviceError, noDevicesButtonText: this.noDevicesButtonText, noDevicesText: this.noDevicesText }))));\n }\n get el() { return getElement(this); }\n static get style() { 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 };\n"],"mappings":";AAAA,SAASA,CAAC,IAAIC,gBAAgB,EAAEC,CAAC,IAAIC,WAAW,EAAEC,CAAC,EAAEC,CAAC,IAAIC,UAAU,QAAQ,oBAAoB;AAEhG,MAAMC,cAAc,GAAG,MAAM;EACzBC,WAAWA,CAACC,OAAO,EAAE;IAAA,IAAAC,KAAA;IACjBT,gBAAgB,CAAC,IAAI,EAAEQ,OAAO,CAAC;IAC/B,IAAI,CAACE,aAAa,GAAG,iBAAiB;IACtC,IAAI,CAACC,mBAAmB,GAAG,cAAc;IACzC,IAAI,CAACC,WAAW;MAAA,IAAAC,IAAA,GAAAC,iBAAA,CAAG,WAAOC,KAAK,EAAK;QAChCN,KAAI,CAACO,OAAO,CAACC,IAAI,CAACF,KAAK,CAAC;MAC5B,CAAC;MAAA,iBAAAG,EAAA;QAAA,OAAAL,IAAA,CAAAM,KAAA,OAAAC,SAAA;MAAA;IAAA;IACD,IAAI,CAACC,mBAAmB;MAAA,IAAAC,KAAA,GAAAR,iBAAA,CAAG,WAAOC,KAAK,EAAK;QACxCN,KAAI,CAACc,aAAa,CAACN,IAAI,CAACF,KAAK,CAAC;MAClC,CAAC;MAAA,iBAAAS,GAAA;QAAA,OAAAF,KAAA,CAAAH,KAAA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