mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +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,CAAC,EAAEC,CAAC,IAAIC,UAAU,EAAEC,CAAC,IAAIC,IAAI,QAAQ,oBAAoB;AAEzF,MAAMC,QAAQ,GAAG,MAAM;EACnBC,WAAWA,CAACC,OAAO,EAAE;IACjBR,gBAAgB,CAAC,IAAI,EAAEQ,OAAO,CAAC;IAC/B,IAAI,CA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