{"version":3,"sources":["webpack:///./node_modules/@ionic/pwa-elements/dist/esm-es5/pwa-action-sheet.entry.js"],"names":["PWAActionSheet","hostRef","this","cancelable","options","open","onSelection","prototype","componentDidLoad","_this","requestAnimationFrame","dismiss","close","setTimeout","el","parentNode","removeChild","handleOptionClick","e","i","stopPropagation","emit","render","class","onClick","header","map","option","title","Object","defineProperty","get","enumerable","configurable"],"mappings":"gHAAA,wEACIA,EAAgC,WAChC,SAASA,EAAeC,GACpB,eAAiBC,KAAMD,GACvBC,KAAKC,YAAa,EAClBD,KAAKE,QAAU,GACfF,KAAKG,MAAO,EACZH,KAAKI,YAAc,eAAYJ,KAAM,cAAe,GAuCxD,OArCAF,EAAeO,UAAUC,iBAAmB,WACxC,IAAIC,EAAQP,KACZQ,uBAAsB,WAClBD,EAAMJ,MAAO,MAGrBL,EAAeO,UAAUI,QAAU,WAC3BT,KAAKC,YACLD,KAAKU,SAGbZ,EAAeO,UAAUK,MAAQ,WAC7B,IAAIH,EAAQP,KACZA,KAAKG,MAAO,EACZQ,YAAW,WACPJ,EAAMK,GAAGC,WAAWC,YAAYP,EAAMK,MACvC,MAEPd,EAAeO,UAAUU,kBAAoB,SAAUC,EAAGC,GACtDD,EAAEE,kBACFlB,KAAKI,YAAYe,KAAKF,GACtBjB,KAAKU,SAETZ,EAAeO,UAAUe,OAAS,WAC9B,IAAIb,EAAQP,KACZ,OAAQ,cAAD,CAAG,MAAO,CAAEqB,MAAO,WAAarB,KAAKG,KAAO,QAAU,IAAKmB,QAAS,WAAc,OAAOf,EAAME,YAAgB,eAAE,MAAO,CAAEY,MAAO,WAAa,eAAE,MAAO,CAAEA,MAAO,SAAWrB,KAAKuB,QAASvB,KAAKE,QAAQsB,KAAI,SAAUC,EAAQR,GAAK,OAAO,eAAE,MAAO,CAAEI,MAAO,sBAAuBC,QAAS,SAAUN,GAAK,OAAOT,EAAMQ,kBAAkBC,EAAGC,KAAS,eAAE,MAAO,CAAEI,MAAO,uBAAyBI,EAAOC,cAEjZC,OAAOC,eAAe9B,EAAeO,UAAW,KAAM,CAClDwB,IAAK,WAAc,OAAO,eAAW7B,OACrC8B,YAAY,EACZC,cAAc,IAElBJ,OAAOC,eAAe9B,EAAgB,QAAS,CAC3C+B,IAAK,WAAc,MAAO,usDAC1BC,YAAY,EACZC,cAAc,IAEXjC,EA7CwB","file":"js/chunk-2d222cca.2219326e.js","sourcesContent":["import { r as registerInstance, c as createEvent, h, g as getElement } from './core-f86805ad.js';\nvar PWAActionSheet = /** @class */ (function () {\n function PWAActionSheet(hostRef) {\n registerInstance(this, hostRef);\n this.cancelable = true;\n this.options = [];\n this.open = false;\n this.onSelection = createEvent(this, \"onSelection\", 7);\n }\n PWAActionSheet.prototype.componentDidLoad = function () {\n var _this = this;\n requestAnimationFrame(function () {\n _this.open = true;\n });\n };\n PWAActionSheet.prototype.dismiss = function () {\n if (this.cancelable) {\n this.close();\n }\n };\n PWAActionSheet.prototype.close = function () {\n var _this = this;\n this.open = false;\n setTimeout(function () {\n _this.el.parentNode.removeChild(_this.el);\n }, 500);\n };\n PWAActionSheet.prototype.handleOptionClick = function (e, i) {\n e.stopPropagation();\n this.onSelection.emit(i);\n this.close();\n };\n PWAActionSheet.prototype.render = function () {\n var _this = this;\n return (h(\"div\", { class: \"wrapper\" + (this.open ? ' open' : ''), onClick: function () { return _this.dismiss(); } }, h(\"div\", { class: \"content\" }, h(\"div\", { class: \"title\" }, this.header), this.options.map(function (option, i) { return h(\"div\", { class: \"action-sheet-option\", onClick: function (e) { return _this.handleOptionClick(e, i); } }, h(\"div\", { class: \"action-sheet-button\" }, option.title)); }))));\n };\n Object.defineProperty(PWAActionSheet.prototype, \"el\", {\n get: function () { return getElement(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(PWAActionSheet, \"style\", {\n get: function () { return \":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Roboto,sans-serif}.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:transparent;-webkit-transition:background-color .4s cubic-bezier(.36,.66,.04,1);transition:background-color .4s cubic-bezier(.36,.66,.04,1)}.wrapper.open{background-color:rgba(0,0,0,.32)}.title{color:#999;height:23px;line-height:23px;padding-bottom:17px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:20px}.content{width:568px;-ms-flex-item-align:end;align-self:flex-end;background-color:#fff;-webkit-transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1),-webkit-transform .4s cubic-bezier(.36,.66,.04,1);-webkit-transform:translateY(100%);transform:translateY(100%)}.wrapper.open .content{-webkit-transform:translateY(0);transform:translateY(0)}\\@media only screen and (max-width:568px){.content{width:100%}}.action-sheet-option{cursor:pointer;height:52px;line-height:52px}.action-sheet-button{color:#262626;font-size:16px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:0}.action-sheet-button:hover{background-color:#f6f6f6}\"; },\n enumerable: true,\n configurable: true\n });\n return PWAActionSheet;\n}());\nexport { PWAActionSheet as pwa_action_sheet };\n"],"sourceRoot":""}