{"version":3,"sources":["webpack:///./node_modules/@ionic/core/dist/esm-es5/theme-18cbe2cc.js","webpack:///./node_modules/@ionic/core/dist/esm-es5/ion-action-sheet-md.entry.js"],"names":["hostContext","selector","el","closest","createColorClasses","color","_a","length","undefined","getClassMap","classes","map","Array","isArray","split","filter","c","trim","forEach","SCHEME","openURL","url","ev","direction","router","this","test","document","querySelector","preventDefault","push","iosEnterAnimation","baseEl","baseAnimation","backdropAnimation","wrapperAnimation","addElement","fromTo","easing","duration","addAnimation","iosLeaveAnimation","mdEnterAnimation","mdLeaveAnimation","ActionSheet","class_1","prototype","present","dismiss","data","role","onDidDismiss","onWillDismiss","buttonClick","button","label","callButtonHandler","sent","Promise","resolve","handler","getButtons","buttons","b","text","render","_this","mode","allButtons","cancelButton","find","style","zIndex","overlayIndex","class","Object","assign","cssClass","translucent","onIonActionSheetWillDismiss","dispatchCancelHandler","onIonBackdropTap","onBackdropTap","tappable","backdropDismiss","header","subHeader","type","buttonClass","onClick","icon","lazy","defineProperty","get","enumerable","configurable","hostRef","presented","keyboardClose","animated","detail","didPresent","willPresent","willDismiss","didDismiss"],"mappings":"+FAAA,gJACIA,EAAc,SAAUC,EAAUC,GAClC,OAAgC,OAAzBA,EAAGC,QAAQF,CAAQ,CAC9B,EAIIG,EAAqB,SAAUC,GAC/B,IAAIC,EACJ,MAAyB,UAAjB,OAAOD,GAAqC,EAAfA,EAAME,SAAeD,EAAK,CACvD,YAAa,EACjB,GACG,aAAeD,GAAS,GAC3BC,GAAME,MACd,EAWIC,EAAc,SAAUC,GACxB,IAAIC,EAAM,GAEV,OAZgBH,UADSE,EAYZA,IAVGE,MAAMC,QAAQH,CAAO,EAAIA,EAAUA,EAAQI,MAAM,GAAG,GAE3DC,OAAO,SAAUC,GAAK,OAAY,MAALA,CAAW,CAAC,EACzCL,IAAI,SAAUK,GAAK,OAAOA,EAAEC,KAAK,CAAG,CAAC,EACrCF,OAAO,SAAUC,GAAK,MAAa,KAANA,CAAU,CAAC,EAE1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,OAAOqE,OAAOC,SAAQtE,EAAK,CAAE,sBAAuB,GAAM,kBAAmB,EAAK,GAAM,gBAAkBgD,EAAOJ,MAAwB1C,SAAhB8C,EAAOJ,KAAoB5C,GAAK,YAAYgD,EAAOuB,QAAQ,CAAC,CACzL,C","file":"js/chunk-42c9b51a.1a9973cc.js","sourcesContent":["import { __awaiter, __generator } from \"tslib\";\nvar hostContext = function (selector, el) {\n    return el.closest(selector) !== null;\n};\n/**\n * Create the mode and color classes for the component based on the classes passed in\n */\nvar createColorClasses = function (color) {\n    var _a;\n    return (typeof color === 'string' && color.length > 0) ? (_a = {\n            'ion-color': true\n        },\n        _a[\"ion-color-\" + color] = true,\n        _a) : undefined;\n};\nvar getClassList = function (classes) {\n    if (classes !== undefined) {\n        var array = Array.isArray(classes) ? classes : classes.split(' ');\n        return array\n            .filter(function (c) { return c != null; })\n            .map(function (c) { return c.trim(); })\n            .filter(function (c) { return c !== ''; });\n    }\n    return [];\n};\nvar getClassMap = function (classes) {\n    var map = {};\n    getClassList(classes).forEach(function (c) { return map[c] = true; });\n    return map;\n};\nvar SCHEME = /^[a-z][a-z0-9+\\-.]*:/;\nvar openURL = function (url, ev, direction) { return __awaiter(void 0, void 0, void 0, function () {\n    var router;\n    return __generator(this, function (_a) {\n        if (url != null && url[0] !== '#' && !SCHEME.test(url)) {\n            router = document.querySelector('ion-router');\n            if (router) {\n                if (ev != null) {\n                    ev.preventDefault();\n                }\n                return [2 /*return*/, router.push(url, direction)];\n            }\n        }\n        return [2 /*return*/, false];\n    });\n}); };\nexport { createColorClasses as c, getClassMap as g, hostContext as h, openURL as o };\n","import { __awaiter, __generator } from \"tslib\";\nimport { r as registerInstance, c as getIonMode, d as createEvent, h, H as Host, e as getElement } from './core-feeeff0d.js';\nimport './config-3c7f3790.js';\nimport './helpers-46f4a262.js';\nimport { c as createAnimation } from './animation-af478fe9.js';\nimport { B as BACKDROP, i as isCancel, d as prepareOverlay, e as present, f as dismiss, g as eventMethod, s as safeCall } from './overlays-10640d86.js';\nimport { g as getClassMap } from './theme-18cbe2cc.js';\n/**\n * iOS Action Sheet Enter Animation\n */\nvar iosEnterAnimation = function (baseEl) {\n    var baseAnimation = createAnimation();\n    var backdropAnimation = createAnimation();\n    var wrapperAnimation = createAnimation();\n    backdropAnimation\n        .addElement(baseEl.querySelector('ion-backdrop'))\n        .fromTo('opacity', 0.01, 0.4);\n    wrapperAnimation\n        .addElement(baseEl.querySelector('.action-sheet-wrapper'))\n        .fromTo('transform', 'translateY(100%)', 'translateY(0%)');\n    return baseAnimation\n        .addElement(baseEl)\n        .easing('cubic-bezier(.36,.66,.04,1)')\n        .duration(400)\n        .addAnimation([backdropAnimation, wrapperAnimation]);\n};\n/**\n * iOS Action Sheet Leave Animation\n */\nvar iosLeaveAnimation = function (baseEl) {\n    var baseAnimation = createAnimation();\n    var backdropAnimation = createAnimation();\n    var wrapperAnimation = createAnimation();\n    backdropAnimation\n        .addElement(baseEl.querySelector('ion-backdrop'))\n        .fromTo('opacity', 0.4, 0);\n    wrapperAnimation\n        .addElement(baseEl.querySelector('.action-sheet-wrapper'))\n        .fromTo('transform', 'translateY(0%)', 'translateY(100%)');\n    return baseAnimation\n        .addElement(baseEl)\n        .easing('cubic-bezier(.36,.66,.04,1)')\n        .duration(450)\n        .addAnimation([backdropAnimation, wrapperAnimation]);\n};\n/**\n * MD Action Sheet Enter Animation\n */\nvar mdEnterAnimation = function (baseEl) {\n    var baseAnimation = createAnimation();\n    var backdropAnimation = createAnimation();\n    var wrapperAnimation = createAnimation();\n    backdropAnimation\n        .addElement(baseEl.querySelector('ion-backdrop'))\n        .fromTo('opacity', 0.01, 0.32);\n    wrapperAnimation\n        .addElement(baseEl.querySelector('.action-sheet-wrapper'))\n        .fromTo('transform', 'translateY(100%)', 'translateY(0%)');\n    return baseAnimation\n        .addElement(baseEl)\n        .easing('cubic-bezier(.36,.66,.04,1)')\n        .duration(400)\n        .addAnimation([backdropAnimation, wrapperAnimation]);\n};\n/**\n * MD Action Sheet Leave Animation\n */\nvar mdLeaveAnimation = function (baseEl) {\n    var baseAnimation = createAnimation();\n    var backdropAnimation = createAnimation();\n    var wrapperAnimation = createAnimation();\n    backdropAnimation\n        .addElement(baseEl.querySelector('ion-backdrop'))\n        .fromTo('opacity', 0.32, 0);\n    wrapperAnimation\n        .addElement(baseEl.querySelector('.action-sheet-wrapper'))\n        .fromTo('transform', 'translateY(0%)', 'translateY(100%)');\n    return baseAnimation\n        .addElement(baseEl)\n        .easing('cubic-bezier(.36,.66,.04,1)')\n        .duration(450)\n        .addAnimation([backdropAnimation, wrapperAnimation]);\n};\nvar ActionSheet = /** @class */ (function () {\n    function class_1(hostRef) {\n        var _this = this;\n        registerInstance(this, hostRef);\n        this.presented = false;\n        this.mode = getIonMode(this);\n        /**\n         * If `true`, the keyboard will be automatically dismissed when the overlay is presented.\n         */\n        this.keyboardClose = true;\n        /**\n         * An array of buttons for the action sheet.\n         */\n        this.buttons = [];\n        /**\n         * If `true`, the action sheet will be dismissed when the backdrop is clicked.\n         */\n        this.backdropDismiss = true;\n        /**\n         * If `true`, the action sheet will be translucent.\n         * Only applies when the mode is `\"ios\"` and the device supports\n         * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).\n         */\n        this.translucent = false;\n        /**\n         * If `true`, the action sheet will animate.\n         */\n        this.animated = true;\n        this.onBackdropTap = function () {\n            _this.dismiss(undefined, BACKDROP);\n        };\n        this.dispatchCancelHandler = function (ev) {\n            var role = ev.detail.role;\n            if (isCancel(role)) {\n                var cancelButton = _this.getButtons().find(function (b) { return b.role === 'cancel'; });\n                _this.callButtonHandler(cancelButton);\n            }\n        };\n        prepareOverlay(this.el);\n        this.didPresent = createEvent(this, \"ionActionSheetDidPresent\", 7);\n        this.willPresent = createEvent(this, \"ionActionSheetWillPresent\", 7);\n        this.willDismiss = createEvent(this, \"ionActionSheetWillDismiss\", 7);\n        this.didDismiss = createEvent(this, \"ionActionSheetDidDismiss\", 7);\n    }\n    /**\n     * Present the action sheet overlay after it has been created.\n     */\n    class_1.prototype.present = function () {\n        return present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation);\n    };\n    /**\n     * Dismiss the action sheet overlay after it has been presented.\n     *\n     * @param data Any data to emit in the dismiss events.\n     * @param role The role of the element that is dismissing the action sheet.\n     * This can be useful in a button handler for determining which button was\n     * clicked to dismiss the action sheet.\n     * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n     */\n    class_1.prototype.dismiss = function (data, role) {\n        return dismiss(this, data, role, 'actionSheetLeave', iosLeaveAnimation, mdLeaveAnimation);\n    };\n    /**\n     * Returns a promise that resolves when the action sheet did dismiss.\n     */\n    class_1.prototype.onDidDismiss = function () {\n        return eventMethod(this.el, 'ionActionSheetDidDismiss');\n    };\n    /**\n     * Returns a promise that resolves when the action sheet will dismiss.\n     *\n     */\n    class_1.prototype.onWillDismiss = function () {\n        return eventMethod(this.el, 'ionActionSheetWillDismiss');\n    };\n    class_1.prototype.buttonClick = function (button) {\n        return __awaiter(this, void 0, void 0, function () {\n            var role, shouldDismiss;\n            return __generator(this, function (_a) {\n                switch (_a.label) {\n                    case 0:\n                        role = button.role;\n                        if (isCancel(role)) {\n                            return [2 /*return*/, this.dismiss(undefined, role)];\n                        }\n                        return [4 /*yield*/, this.callButtonHandler(button)];\n                    case 1:\n                        shouldDismiss = _a.sent();\n                        if (shouldDismiss) {\n                            return [2 /*return*/, this.dismiss(undefined, button.role)];\n                        }\n                        return [2 /*return*/, Promise.resolve()];\n                }\n            });\n        });\n    };\n    class_1.prototype.callButtonHandler = function (button) {\n        return __awaiter(this, void 0, void 0, function () {\n            var rtn;\n            return __generator(this, function (_a) {\n                switch (_a.label) {\n                    case 0:\n                        if (!button) return [3 /*break*/, 2];\n                        return [4 /*yield*/, safeCall(button.handler)];\n                    case 1:\n                        rtn = _a.sent();\n                        if (rtn === false) {\n                            // if the return value of the handler is false then do not dismiss\n                            return [2 /*return*/, false];\n                        }\n                        _a.label = 2;\n                    case 2: return [2 /*return*/, true];\n                }\n            });\n        });\n    };\n    class_1.prototype.getButtons = function () {\n        return this.buttons.map(function (b) {\n            return (typeof b === 'string')\n                ? { text: b }\n                : b;\n        });\n    };\n    class_1.prototype.render = function () {\n        var _a;\n        var _this = this;\n        var mode = getIonMode(this);\n        var allButtons = this.getButtons();\n        var cancelButton = allButtons.find(function (b) { return b.role === 'cancel'; });\n        var buttons = allButtons.filter(function (b) { return b.role !== 'cancel'; });\n        return (h(Host, { role: \"dialog\", \"aria-modal\": \"true\", style: {\n                zIndex: \"\" + (20000 + this.overlayIndex),\n            }, class: Object.assign(Object.assign((_a = {}, _a[mode] = true, _a), getClassMap(this.cssClass)), { 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h(\"ion-backdrop\", { tappable: this.backdropDismiss }), h(\"div\", { class: \"action-sheet-wrapper\", role: \"dialog\" }, h(\"div\", { class: \"action-sheet-container\" }, h(\"div\", { class: \"action-sheet-group\" }, this.header !== undefined &&\n            h(\"div\", { class: \"action-sheet-title\" }, this.header, this.subHeader && h(\"div\", { class: \"action-sheet-sub-title\" }, this.subHeader)), buttons.map(function (b) { return h(\"button\", { type: \"button\", \"ion-activatable\": true, class: buttonClass(b), onClick: function () { return _this.buttonClick(b); } }, h(\"span\", { class: \"action-sheet-button-inner\" }, b.icon && h(\"ion-icon\", { icon: b.icon, lazy: false, class: \"action-sheet-icon\" }), b.text), mode === 'md' && h(\"ion-ripple-effect\", null)); })), cancelButton &&\n            h(\"div\", { class: \"action-sheet-group action-sheet-group-cancel\" }, h(\"button\", { type: \"button\", class: buttonClass(cancelButton), onClick: function () { return _this.buttonClick(cancelButton); } }, h(\"span\", { class: \"action-sheet-button-inner\" }, cancelButton.icon &&\n                h(\"ion-icon\", { icon: cancelButton.icon, lazy: false, class: \"action-sheet-icon\" }), cancelButton.text)))))));\n    };\n    Object.defineProperty(class_1.prototype, \"el\", {\n        get: function () { return getElement(this); },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(class_1, \"style\", {\n        get: function () { return \".sc-ion-action-sheet-md-h{--color:initial;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:100%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;font-family:var(--ion-font-family,inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-button.sc-ion-action-sheet-md{display:block;width:100%;border:0;outline:none;font-family:inherit}.action-sheet-button.activated.sc-ion-action-sheet-md{background:var(--background-activated)}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-selected.sc-ion-action-sheet-md{background:var(--background-selected)}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color,var(--ion-background-color,#fff));--background-selected:var(--background,);--background-activated:var(--background)}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;height:60px;color:var(--color,rgba(var(--ion-text-color-rgb,0,0,0),.54));font-size:16px;text-align:start}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:0}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;background:transparent;color:var(--color,var(--ion-color-step-850,#262626));font-size:16px;text-align:start;contain:strict;overflow:hidden}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{padding-bottom:4px;margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color,rgba(var(--ion-text-color-rgb,0,0,0),.54));font-size:24px}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:700}\"; },\n        enumerable: true,\n        configurable: true\n    });\n    return class_1;\n}());\nvar buttonClass = function (button) {\n    var _a;\n    return Object.assign((_a = { 'action-sheet-button': true, 'ion-activatable': true }, _a[\"action-sheet-\" + button.role] = button.role !== undefined, _a), getClassMap(button.cssClass));\n};\nexport { ActionSheet as ion_action_sheet };\n"],"sourceRoot":""}