mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
1 line
5.3 KiB
JSON
1 line
5.3 KiB
JSON
|
|
{"ast":null,"code":"import { r as registerInstance, h, g as getElement, H as Host } from './core-f86805ad.js';\nconst PWAToast = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.duration = 2000;\n this.closing = null;\n }\n hostData() {\n const classes = {\n out: !!this.closing\n };\n if (this.closing !== null) {\n classes['in'] = !this.closing;\n }\n return {\n class: classes\n };\n }\n componentDidLoad() {\n setTimeout(() => {\n this.closing = false;\n });\n setTimeout(() => {\n this.close();\n }, this.duration);\n }\n close() {\n this.closing = true;\n setTimeout(() => {\n this.el.parentNode.removeChild(this.el);\n }, 1000);\n }\n __stencil_render() {\n return h(\"div\", {\n class: \"wrapper\"\n }, h(\"div\", {\n class: \"toast\"\n }, this.message));\n }\n get el() {\n return getElement(this);\n }\n render() {\n return h(Host, this.hostData(), this.__stencil_render());\n }\n static get style() {\n return \":host{position:fixed;bottom:20px;left:0;right:0;display:-ms-flexbox;display:flex;opacity:0}:host(.in){-webkit-transition:opacity .3s;transition:opacity .3s;opacity:1}:host(.out){-webkit-transition:opacity 1s;transition:opacity 1s;opacity:0}.wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toast{font-family:-apple-system,system-ui,Helvetica Neue,Roboto,sans-serif;background-color:#eee;color:#000;border-radius:5px;padding:10px 15px;font-size:14px;font-weight:500;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2)}\";\n }\n};\nexport { PWAToast as pwa_toast };","map":{"version":3,"names":["r","registerInstance","h","g","getElement","H","Host","PWAToast","constructor","hostRef","duration","closing","hostData","classes","out","class","componentDidLoad","setTimeout","close","el","parentNode","removeChild","__stencil_render","message","render","style","pwa_toast"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic/pwa-elements/dist/esm/pwa-toast.entry.js"],"sourcesContent":["import { r as registerInstance, h, g as getElement, H as Host } from './core-f86805ad.js';\n\nconst PWAToast = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.duration = 2000;\n this.closing = null;\n }\n hostData() {\n const classes = {\n out: !!this.closing\n };\n if (this.closing !== null) {\n classes['in'] = !this.closing;\n }\n return {\n class: classes\n };\n }\n componentDidLoad() {\n setTimeout(() => {\n this.closing = false;\n });\n setTimeout(() => {\n this.close();\n }, this.duration);\n }\n close() {\n this.closing = true;\n setTimeout(() => {\n this.el.parentNode.removeChild(this.el);\n }, 1000);\n }\n __stencil_render() {\n return (h(\"div\", { class: \"wrapper\" }, h(\"div\", { class: \"toast\" }, this.message)));\n }\n get el() { return getElement(this); }\n render() { return h(Host, this.hostData(), this.__stencil_render()); }\n static get style() { return \":host{position:fixed;bottom:20px;left:0;right:0;display:-ms-flexbox;display:flex;opacity:0}:host(.in){-webkit-transition:opacity .3s;transition:opacity .3s;opacity:1}:host(.out){-webkit-transition:opacity 1s;transition:opacity 1s;opacity:0}.wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toast{font-family:-apple-system,system-ui,Helvetica Neue,Roboto,sans-serif;background-color:#eee;color:#000;border-radius:5px;padding:10px 15px;font-size:14px;font-weight:500;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2)}\"; }\n};\n\nexport { PWAToast as pwa_toast };\n"],"mappings":"AAAA,SAASA,CAAC,IAAIC,gBAAgB,EAAEC,
|