{"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-controller_8.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","ActionSheetController","class_1","prototype","create","options","dismiss","data","role","id","getTop","hostRef","class_2","AlertController","Anchor","componentDidLoad","console","warn","render","mode","attrs","href","rel","onClick","class","Object","assign","defineProperty","get","enumerable","configurable","_this","routerDirection","class_3","LoadingController","class_4","ModalController","class_5","PickerController","class_6","PopoverController","class_7","ToastController"],"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,EAE1C,IAIeE,QAAQ,SAAUF,GAAK,OAAOL,EAAIK,GAAK,EAAM,CAAC,EAC7DL,CACX,EACIQ,EAAS,uBACTC,EAAU,SAAUC,EAAKC,EAAIC,GAAa,OAAO,YAAU,OAAQ,OAAQ,OAAQ,WACnF,IAAIC,EACJ,OAAO,YAAYC,KAAM,SAAUnB,GAC/B,OAAW,MAAPe,GAA0B,MAAXA,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O,CAClC,CA2CA8B,EAAQtC,UAAUC,OAAS,SAAUC,GACjC,OAAO,YAAc,YAAaA,CAAO,CAC7C,EAQAoC,EAAQtC,UAAUG,QAAU,SAAUC,EAAMC,EAAMC,GAC9C,OAAO,YAAeZ,SAAUU,EAAMC,EAAM,YAAaC,CAAE,CAC/D,EAIAgC,EAAQtC,UAAUO,OAAS,WACvB,OAAO,YAAUf,KAAM,OAAQ,OAAQ,WACnC,OAAO,YAAYA,KAAM,SAAUnB,GAC/B,MAAO,CAAC,EAAc,YAAWqB,SAAU,WAAW,EAC1D,CAAC,CACL,CAAC,CACL,EA/BJ,IAAI6C,EAgCOD,EA/BP,SAASA,EAAQ9B,GACb,YAAiBhB,KAAMgB,CAAO,CAClC,C","file":"js/chunk-03a3b882.5a19bc7d.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, h, H as Host } from './core-feeeff0d.js';\nimport './config-3c7f3790.js';\nimport { h as createOverlay, j as dismissOverlay, k as getOverlay } from './overlays-10640d86.js';\nimport { o as openURL, c as createColorClasses } from './theme-18cbe2cc.js';\nvar ActionSheetController = /** @class */ (function () {\n function class_1(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create an action sheet overlay with action sheet options.\n *\n * @param options The options to use to create the action sheet.\n */\n class_1.prototype.create = function (options) {\n return createOverlay('ion-action-sheet', options);\n };\n /**\n * Dismiss the open action sheet overlay.\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 * @param id The id of the action sheet to dismiss. If an id is not provided, it will dismiss the most recently opened action sheet.\n */\n class_1.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-action-sheet', id);\n };\n /**\n * Get the most recently opened action sheet overlay.\n */\n class_1.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-action-sheet')];\n });\n });\n };\n return class_1;\n}());\nvar AlertController = /** @class */ (function () {\n function class_2(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create an alert overlay with alert options.\n *\n * @param options The options to use to create the alert.\n */\n class_2.prototype.create = function (options) {\n return createOverlay('ion-alert', options);\n };\n /**\n * Dismiss the open alert overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the alert.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the alert.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n * @param id The id of the alert to dismiss. If an id is not provided, it will dismiss the most recently opened alert.\n */\n class_2.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-alert', id);\n };\n /**\n * Get the most recently opened alert overlay.\n */\n class_2.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-alert')];\n });\n });\n };\n return class_2;\n}());\nvar Anchor = /** @class */ (function () {\n function Anchor(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n /**\n * When using a router, it specifies the transition direction when navigating to\n * another page using `href`.\n */\n this.routerDirection = 'forward';\n this.onClick = function (ev) {\n openURL(_this.href, ev, _this.routerDirection);\n };\n }\n Anchor.prototype.componentDidLoad = function () {\n console.warn('[DEPRECATED][ion-anchor] The component has been deprecated. Please use an if you are using a vanilla JS or Stencil project or an with the Angular router.');\n };\n Anchor.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n var attrs = {\n href: this.href,\n rel: this.rel\n };\n return (h(Host, { onClick: this.onClick, class: Object.assign(Object.assign({}, createColorClasses(this.color)), (_a = {}, _a[mode] = true, _a['ion-activatable'] = true, _a)) }, h(\"a\", Object.assign({}, attrs), h(\"slot\", null))));\n };\n Object.defineProperty(Anchor, \"style\", {\n get: function () { return \":host{--background:transparent;--color:var(--ion-color-primary,#3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}\"; },\n enumerable: true,\n configurable: true\n });\n return Anchor;\n}());\nvar LoadingController = /** @class */ (function () {\n function class_3(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create a loading overlay with loading options.\n *\n * @param options The options to use to create the loading.\n */\n class_3.prototype.create = function (options) {\n return createOverlay('ion-loading', options);\n };\n /**\n * Dismiss the open loading overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the loading.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the loading.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n * @param id The id of the loading to dismiss. If an id is not provided, it will dismiss the most recently opened loading.\n */\n class_3.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-loading', id);\n };\n /**\n * Get the most recently opened loading overlay.\n */\n class_3.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-loading')];\n });\n });\n };\n return class_3;\n}());\nvar ModalController = /** @class */ (function () {\n function class_4(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create a modal overlay with modal options.\n *\n * @param options The options to use to create the modal.\n */\n class_4.prototype.create = function (options) {\n return createOverlay('ion-modal', options);\n };\n /**\n * Dismiss the open modal overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the modal.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the modal.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n * @param id The id of the modal to dismiss. If an id is not provided, it will dismiss the most recently opened modal.\n */\n class_4.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-modal', id);\n };\n /**\n * Get the most recently opened modal overlay.\n */\n class_4.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-modal')];\n });\n });\n };\n return class_4;\n}());\nvar PickerController = /** @class */ (function () {\n function class_5(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create a picker overlay with picker options.\n *\n * @param options The options to use to create the picker.\n */\n class_5.prototype.create = function (options) {\n return createOverlay('ion-picker', options);\n };\n /**\n * Dismiss the open picker overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the picker.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the picker.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n * @param id The id of the picker to dismiss. If an id is not provided, it will dismiss the most recently opened picker.\n */\n class_5.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-picker', id);\n };\n /**\n * Get the most recently opened picker overlay.\n */\n class_5.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-picker')];\n });\n });\n };\n return class_5;\n}());\nvar PopoverController = /** @class */ (function () {\n function class_6(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create a popover overlay with popover options.\n *\n * @param options The options to use to create the popover.\n */\n class_6.prototype.create = function (options) {\n return createOverlay('ion-popover', options);\n };\n /**\n * Dismiss the open popover overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the popover.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the popover.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n * @param id The id of the popover to dismiss. If an id is not provided, it will dismiss the most recently opened popover.\n */\n class_6.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-popover', id);\n };\n /**\n * Get the most recently opened popover overlay.\n */\n class_6.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-popover')];\n });\n });\n };\n return class_6;\n}());\nvar ToastController = /** @class */ (function () {\n function class_7(hostRef) {\n registerInstance(this, hostRef);\n }\n /**\n * Create a toast overlay with toast options.\n *\n * @param options The options to use to create the toast.\n */\n class_7.prototype.create = function (options) {\n return createOverlay('ion-toast', options);\n };\n /**\n * Dismiss the open toast overlay.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the toast. For example, 'cancel' or 'backdrop'.\n * @param id The id of the toast to dismiss. If an id is not provided, it will dismiss the most recently opened toast.\n */\n class_7.prototype.dismiss = function (data, role, id) {\n return dismissOverlay(document, data, role, 'ion-toast', id);\n };\n /**\n * Get the most recently opened toast overlay.\n */\n class_7.prototype.getTop = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getOverlay(document, 'ion-toast')];\n });\n });\n };\n return class_7;\n}());\nexport { ActionSheetController as ion_action_sheet_controller, AlertController as ion_alert_controller, Anchor as ion_anchor, LoadingController as ion_loading_controller, ModalController as ion_modal_controller, PickerController as ion_picker_controller, PopoverController as ion_popover_controller, ToastController as ion_toast_controller };\n"],"sourceRoot":""}