{"version":3,"sources":["webpack:///./node_modules/@ionic/pwa-elements/dist/esm-es5/pwa-toast.entry.js"],"names":["PWAToast","hostRef","this","duration","closing","prototype","hostData","classes","out","class","componentDidLoad","_this","setTimeout","close","el","parentNode","removeChild","__stencil_render","message","Object","defineProperty","get","enumerable","configurable","render"],"mappings":"gHAAA,iEACIA,EAA0B,WAC1B,SAASA,EAASC,GACd,eAAiBC,KAAMD,GACvBC,KAAKC,SAAW,IAChBD,KAAKE,QAAU,KA2CnB,OAzCAJ,EAASK,UAAUC,SAAW,WAC1B,IAAIC,EAAU,CACVC,MAAON,KAAKE,SAKhB,OAHqB,OAAjBF,KAAKE,UACLG,EAAQ,OAASL,KAAKE,SAEnB,CACHK,MAAOF,IAGfP,EAASK,UAAUK,iBAAmB,WAClC,IAAIC,EAAQT,KACZU,YAAW,WACPD,EAAMP,SAAU,KAEpBQ,YAAW,WACPD,EAAME,UACPX,KAAKC,WAEZH,EAASK,UAAUQ,MAAQ,WACvB,IAAIF,EAAQT,KACZA,KAAKE,SAAU,EACfQ,YAAW,WACPD,EAAMG,GAAGC,WAAWC,YAAYL,EAAMG,MACvC,MAEPd,EAASK,UAAUY,iBAAmB,WAClC,OAAQ,cAAD,CAAG,MAAO,CAAER,MAAO,WAAa,eAAE,MAAO,CAAEA,MAAO,SAAWP,KAAKgB,WAE7EC,OAAOC,eAAepB,EAASK,UAAW,KAAM,CAC5CgB,IAAK,WAAc,OAAO,eAAWnB,OACrCoB,YAAY,EACZC,cAAc,IAElBvB,EAASK,UAAUmB,OAAS,WAAc,OAAO,eAAE,OAAMtB,KAAKI,WAAYJ,KAAKe,qBAC/EE,OAAOC,eAAepB,EAAU,QAAS,CACrCqB,IAAK,WAAc,MAAO,qoBAC1BC,YAAY,EACZC,cAAc,IAEXvB,EA/CkB","file":"js/chunk-2d0cf315.1ef6206f.js","sourcesContent":["import { r as registerInstance, h, g as getElement, H as Host } from './core-f86805ad.js';\nvar PWAToast = /** @class */ (function () {\n function PWAToast(hostRef) {\n registerInstance(this, hostRef);\n this.duration = 2000;\n this.closing = null;\n }\n PWAToast.prototype.hostData = function () {\n var 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 PWAToast.prototype.componentDidLoad = function () {\n var _this = this;\n setTimeout(function () {\n _this.closing = false;\n });\n setTimeout(function () {\n _this.close();\n }, this.duration);\n };\n PWAToast.prototype.close = function () {\n var _this = this;\n this.closing = true;\n setTimeout(function () {\n _this.el.parentNode.removeChild(_this.el);\n }, 1000);\n };\n PWAToast.prototype.__stencil_render = function () {\n return (h(\"div\", { class: \"wrapper\" }, h(\"div\", { class: \"toast\" }, this.message)));\n };\n Object.defineProperty(PWAToast.prototype, \"el\", {\n get: function () { return getElement(this); },\n enumerable: true,\n configurable: true\n });\n PWAToast.prototype.render = function () { return h(Host, this.hostData(), this.__stencil_render()); };\n Object.defineProperty(PWAToast, \"style\", {\n get: function () { 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 enumerable: true,\n configurable: true\n });\n return PWAToast;\n}());\nexport { PWAToast as pwa_toast };\n"],"sourceRoot":""}