{"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","getClassList","classes","array","Array","isArray","split","filter","c","map","trim","getClassMap","forEach","SCHEME","openURL","url","ev","direction","router","this","test","document","querySelector","preventDefault","push","ActionSheetController","class_1","hostRef","prototype","create","options","dismiss","data","role","id","getTop","AlertController","class_2","Anchor","_this","routerDirection","onClick","href","componentDidLoad","console","warn","render","mode","attrs","rel","class","Object","assign","defineProperty","get","enumerable","configurable","LoadingController","class_3","ModalController","class_4","PickerController","class_5","PopoverController","class_6","ToastController","class_7"],"mappings":"kHAAA,wJACIA,EAAc,SAAUC,EAAUC,GAClC,OAAgC,OAAzBA,EAAGC,QAAQF,IAKlBG,EAAqB,SAAUC,GAC/B,IAAIC,EACJ,MAAyB,kBAAVD,GAAsBA,EAAME,OAAS,GAAMD,EAAK,CACvD,aAAa,GAEjBA,EAAG,aAAeD,IAAS,EAC3BC,QAAME,GAEVC,EAAe,SAAUC,GACzB,QAAgBF,IAAZE,EAAuB,CACvB,IAAIC,EAAQC,MAAMC,QAAQH,GAAWA,EAAUA,EAAQI,MAAM,KAC7D,OAAOH,EACFI,QAAO,SAAUC,GAAK,OAAY,MAALA,KAC7BC,KAAI,SAAUD,GAAK,OAAOA,EAAEE,UAC5BH,QAAO,SAAUC,GAAK,MAAa,KAANA,KAEtC,MAAO,IAEPG,EAAc,SAAUT,GACxB,IAAIO,EAAM,GAEV,OADAR,EAAaC,GAASU,SAAQ,SAAUJ,GAAK,OAAOC,EAAID,IAAK,KACtDC,GAEPI,EAAS,uBACTC,EAAU,SAAUC,EAAKC,EAAIC,GAAa,OAAO,oBAAU,OAAQ,OAAQ,GAAQ,WACnF,IAAIC,EACJ,OAAO,eAAYC,MAAM,SAAUrB,GAC/B,OAAW,MAAPiB,GAA0B,MAAXA,EAAI,KA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} 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":""}