{"version":3,"sources":["webpack:///./node_modules/@ionic/vue/node_modules/@ionic/core/dist/esm-es5/ion-action-sheet-controller_8.entry.js","webpack:///./node_modules/@ionic/vue/node_modules/@ionic/core/dist/esm-es5/theme-18cbe2cc.js"],"names":["ActionSheetController","class_1","hostRef","this","prototype","create","options","dismiss","data","role","id","document","getTop","_a","AlertController","class_2","Anchor","_this","routerDirection","onClick","ev","href","componentDidLoad","console","warn","render","mode","attrs","rel","class","Object","assign","color","defineProperty","get","enumerable","configurable","LoadingController","class_3","ModalController","class_4","PickerController","class_5","PopoverController","class_6","ToastController","class_7","hostContext","selector","el","closest","createColorClasses","length","undefined","getClassList","classes","array","Array","isArray","split","filter","c","map","trim","getClassMap","forEach","SCHEME","openURL","url","direction","router","test","querySelector","preventDefault","push"],"mappings":"kHAAA,ifAKIA,EAAuC,WACvC,SAASC,EAAQC,GACb,eAAiBC,KAAMD,GAiC3B,OA1BAD,EAAQG,UAAUC,OAAS,SAAUC,GACjC,OAAO,eAAc,mBAAoBA,IAY7CL,EAAQG,UAAUG,QAAU,SAAUC,EAAMC,EAAMC,GAC9C,OAAO,eAAeC,SAAUH,EAAMC,EAAM,mBAAoBC,IAKpET,EAAQG,UAAUQ,OAAS,WACvB,OAAO,eAAUT,UAAM,OAAQ,GAAQ,WACnC,OAAO,eAAYA,MAAM,SAAUU,GAC/B,MAAO,CAAC,EAAc,eAAWF,SAAU,4BAIhDV,EAnC+B,GAqCtCa,EAAiC,WACjC,SAASC,EAAQb,GACb,eAAiBC,KAAMD,GAiC3B,OA1BAa,EAAQX,UAAUC,OAAS,SAAUC,GACjC,OAAO,eAAc,YAAaA,IAYtCS,EAAQX,UAAUG,QAAU,SAAUC,EAAMC,EAAMC,GAC9C,OAAO,eAAeC,SAAUH,EAAMC,EAAM,YAAaC,IAK7DK,EAAQX,UAAUQ,OAAS,WACvB,OAAO,eAAUT,UAAM,OAAQ,GAAQ,WACnC,OAAO,eAAYA,MAAM,SAAUU,GAC/B,MAAO,CAAC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["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","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"],"sourceRoot":""}