{"version":3,"sources":["../node_modules/@ionic/core/dist/esm-es5/ion-spinner.entry.js","../node_modules/@ionic/core/dist/esm-es5/theme-18cbe2cc.js","../node_modules/@ionic/core/dist/esm-es5/spinner-configs-28520d80.js"],"names":["Spinner","hostRef","registerInstance","this","paused","prototype","getName","spinnerName","name","config","get","mode","getIonMode","render","_a","spinner","SPINNERS","duration","dur","svgs","undefined","circles","i","push","buildCircle","lines","buildLine","h","Host","class","Object","assign","createColorClasses","color","getBoolean","role","style","elmDuration","animationDuration","defineProperty","enumerable","configurable","index","total","data","fn","viewBox","transform","cx","cy","r","y1","y2","hostContext","selector","el","closest","length","getClassMap","classes","map","Array","isArray","split","filter","c","trim","getClassList","forEach","SCHEME","openURL","url","ev","direction","__awaiter","router","__generator","test","document","querySelector","preventDefault","animationDelay","angle","Math","PI","sin","cos","step","fill","_"],"mappings":"sGAAA,yFAIIA,EAAyB,WACzB,SAASA,EAAQC,GACbC,YAAiBC,KAAMF,GAIvBE,KAAKC,QAAS,EAmClB,OAjCAJ,EAAQK,UAAUC,QAAU,WACxB,IAAIC,EAAcJ,KAAKK,MAAQC,IAAOC,IAAI,WACtCC,EAAOC,YAAWT,MACtB,OAAII,IAGa,QAATI,EAAkB,QAAU,aAExCX,EAAQK,UAAUQ,OAAS,WACvB,IAAIC,EAEAH,EAAOC,YADAT,MAEPI,EAFOJ,KAEYG,UACnBS,EAAUC,IAAST,IAAgBS,IAAQ,MAC3CC,EAAqC,kBAJ9Bd,KAIiBc,UAJjBd,KAI+Cc,SAAW,GAJ1Dd,KAIoEc,SAAWF,EAAQG,IAC9FC,EAAO,GACX,QAAwBC,IAApBL,EAAQM,QACR,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAQM,QAASC,IACjCH,EAAKI,KAAKC,EAAYT,EAASE,EAAUK,EAAGP,EAAQM,eAGvD,QAAsBD,IAAlBL,EAAQU,MACb,IAASH,EAAI,EAAGA,EAAIP,EAAQU,MAAOH,IAC/BH,EAAKI,KAAKG,EA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MqE,EAAQrE,EAAM,KACtCgE,EAAQ,EAAIC,KAAKC,GAAKG,EAC1B,MAAO,CACHrC,EAAG,EACHd,MAAO,CACH,IAAO,EAAI+C,KAAKE,IAAIH,GAAS,KAC7B,KAAQ,EAAIC,KAAKG,IAAIJ,GAAS,KAC9B,kBAAmBD,MAKnC,SAAY,CACR/D,IAAK,KACLmB,aAAa,EACbhB,QAAS,EACTwB,GAAI,WACA,MAAO,CACHK,EAAG,GACHF,GAAI,GACJC,GAAI,GACJuC,KAAM,OACN1C,QAAS,cACTC,UAAW,iBACXX,MAAO,MAInB,SAAY,CACRlB,IAAK,IACLG,QAAS,EACTwB,GAAI,WACA,MAAO,CACHK,EAAG,GACHd,MAAO,MAInB,KAAQ,CACJlB,IAAK,IACLG,QAAS,EACTwB,GAAI,SAAU4C,EAAG/C,GAEb,MAAO,CACHQ,EAAG,EACHd,MAAO,CACH,KAAQ,EAAK,EAAIM,EAAS,KAC1B,mBALe,IAAMA,EAAS,SAU9C,MAAS,CACLxB,IAAK,IACLO,MAAO,GACPoB,GAAI,SAAU3B,EAAKwB,EAAOC,GAGtB,MAAO,CACHQ,GAAI,GACJC,GAAI,GACJhB,MAAO,CACH,UANQ,WAAa,GAAKM,GAASA,EAAQ,EAAI,KAAO,MAAQ,OAO9D,kBANcxB,EAAMwB,EAAQC,EAASzB,EAAM,SAW3D,cAAe,CACXA,IAAK,IACLO,MAAO,GACPoB,GAAI,SAAU3B,EAAKwB,EAAOC,GAGtB,MAAO,CACHQ,GAAI,GACJC,GAAI,GACJhB,MAAO,CACH,UANQ,WAAa,GAAKM,GAASA,EAAQ,EAAI,KAAO,MAAQ,OAO9D,kBANcxB,EAAMwB,EAAQC,EAASzB,EAAM","file":"static/js/101.6d479db1.chunk.js","sourcesContent":["import { r as registerInstance, c as getIonMode, h, H as Host } from './core-0a8d4d2e.js';\nimport { b as config } from './config-3c7f3790.js';\nimport { c as createColorClasses } from './theme-18cbe2cc.js';\nimport { S as SPINNERS } from './spinner-configs-28520d80.js';\nvar Spinner = /** @class */ (function () {\n function Spinner(hostRef) {\n registerInstance(this, hostRef);\n /**\n * If `true`, the spinner's animation will be paused.\n */\n this.paused = false;\n }\n Spinner.prototype.getName = function () {\n var spinnerName = this.name || config.get('spinner');\n var mode = getIonMode(this);\n if (spinnerName) {\n return spinnerName;\n }\n return (mode === 'ios') ? 'lines' : 'circular';\n };\n Spinner.prototype.render = function () {\n var _a;\n var self = this;\n var mode = getIonMode(self);\n var spinnerName = self.getName();\n var spinner = SPINNERS[spinnerName] || SPINNERS['lines'];\n var duration = (typeof self.duration === 'number' && self.duration > 10 ? self.duration : spinner.dur);\n var svgs = [];\n if (spinner.circles !== undefined) {\n for (var i = 0; i < spinner.circles; i++) {\n svgs.push(buildCircle(spinner, duration, i, spinner.circles));\n }\n }\n else if (spinner.lines !== undefined) {\n for (var i = 0; i < spinner.lines; i++) {\n svgs.push(buildLine(spinner, duration, i, spinner.lines));\n }\n }\n return (h(Host, { class: Object.assign(Object.assign({}, createColorClasses(self.color)), (_a = {}, _a[mode] = true, _a[\"spinner-\" + spinnerName] = true, _a['spinner-paused'] = !!self.paused || config.getBoolean('_testing'), _a)), role: \"progressbar\", style: spinner.elmDuration ? { animationDuration: duration + 'ms' } : {} }, svgs));\n };\n Object.defineProperty(Spinner, \"style\", {\n get: function () { return \":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{left:0;top:0;-webkit-transform-origin:center;transform-origin:center;position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}:host-context([dir=rtl]) svg,[dir=rtl] svg{left:unset;right:unset;right:0;-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:4px;stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{-webkit-animation:spinner-scale-out 1s linear infinite;animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{-webkit-animation:spinner-rotate 1s linear infinite;animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{-webkit-animation:spinner-dots 1s linear infinite;animation:spinner-dots 1s linear infinite}:host(.spinner-circular){-webkit-animation:spinner-circular linear infinite;animation:spinner-circular linear infinite}:host(.spinner-circular) circle{-webkit-animation:spinner-circular-inner ease-in-out infinite;animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) circle,:host(.spinner-paused) svg{-webkit-animation-play-state:paused;animation-play-state:paused}\\@-webkit-keyframes spinner-fade-out{0%{opacity:1}to{opacity:0}}\\@keyframes spinner-fade-out{0%{opacity:1}to{opacity:0}}\\@-webkit-keyframes spinner-scale-out{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(0);transform:scale(0)}}\\@keyframes spinner-scale-out{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(0);transform:scale(0)}}\\@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\\@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\\@-webkit-keyframes spinner-dots{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.9}50%{-webkit-transform:scale(.4);transform:scale(.4);opacity:.3}to{-webkit-transform:scale(1);transform:scale(1);opacity:.9}}\\@keyframes spinner-dots{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.9}50%{-webkit-transform:scale(.4);transform:scale(.4);opacity:.3}to{-webkit-transform:scale(1);transform:scale(1);opacity:.9}}\\@-webkit-keyframes spinner-circular{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\\@keyframes spinner-circular{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\\@-webkit-keyframes spinner-circular-inner{0%{stroke-dasharray:1px,200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px,200px;stroke-dashoffset:-15px}to{stroke-dasharray:100px,200px;stroke-dashoffset:-125px}}\\@keyframes spinner-circular-inner{0%{stroke-dasharray:1px,200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px,200px;stroke-dashoffset:-15px}to{stroke-dasharray:100px,200px;stroke-dashoffset:-125px}}\"; },\n enumerable: true,\n configurable: true\n });\n return Spinner;\n}());\nvar buildCircle = function (spinner, duration, index, total) {\n var data = spinner.fn(duration, index, total);\n data.style['animation-duration'] = duration + 'ms';\n return (h(\"svg\", { viewBox: data.viewBox || '0 0 64 64', style: data.style }, h(\"circle\", { transform: data.transform || 'translate(32,32)', cx: data.cx, cy: data.cy, r: data.r, style: spinner.elmDuration ? { animationDuration: duration + 'ms' } : {} })));\n};\nvar buildLine = function (spinner, duration, index, total) {\n var data = spinner.fn(duration, index, total);\n data.style['animation-duration'] = duration + 'ms';\n return (h(\"svg\", { viewBox: data.viewBox || '0 0 64 64', style: data.style }, h(\"line\", { transform: \"translate(32,32)\", y1: data.y1, y2: data.y2 })));\n};\nexport { Spinner as ion_spinner };\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","var spinners = {\n 'bubbles': {\n dur: 1000,\n circles: 9,\n fn: function (dur, index, total) {\n var animationDelay = (dur * index / total) - dur + \"ms\";\n var angle = 2 * Math.PI * index / total;\n return {\n r: 5,\n style: {\n 'top': 9 * Math.sin(angle) + \"px\",\n 'left': 9 * Math.cos(angle) + \"px\",\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'circles': {\n dur: 1000,\n circles: 8,\n fn: function (dur, index, total) {\n var step = index / total;\n var animationDelay = (dur * step) - dur + \"ms\";\n var angle = 2 * Math.PI * step;\n return {\n r: 5,\n style: {\n 'top': 9 * Math.sin(angle) + \"px\",\n 'left': 9 * Math.cos(angle) + \"px\",\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'circular': {\n dur: 1400,\n elmDuration: true,\n circles: 1,\n fn: function () {\n return {\n r: 20,\n cx: 48,\n cy: 48,\n fill: 'none',\n viewBox: '24 24 48 48',\n transform: 'translate(0,0)',\n style: {}\n };\n }\n },\n 'crescent': {\n dur: 750,\n circles: 1,\n fn: function () {\n return {\n r: 26,\n style: {}\n };\n }\n },\n 'dots': {\n dur: 750,\n circles: 3,\n fn: function (_, index) {\n var animationDelay = -(110 * index) + 'ms';\n return {\n r: 6,\n style: {\n 'left': 9 - (9 * index) + \"px\",\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'lines': {\n dur: 1000,\n lines: 12,\n fn: function (dur, index, total) {\n var transform = \"rotate(\" + (30 * index + (index < 6 ? 180 : -180)) + \"deg)\";\n var animationDelay = (dur * index / total) - dur + \"ms\";\n return {\n y1: 17,\n y2: 29,\n style: {\n 'transform': transform,\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'lines-small': {\n dur: 1000,\n lines: 12,\n fn: function (dur, index, total) {\n var transform = \"rotate(\" + (30 * index + (index < 6 ? 180 : -180)) + \"deg)\";\n var animationDelay = (dur * index / total) - dur + \"ms\";\n return {\n y1: 12,\n y2: 20,\n style: {\n 'transform': transform,\n 'animation-delay': animationDelay,\n }\n };\n }\n }\n};\nvar SPINNERS = spinners;\nexport { SPINNERS as S };\n"],"sourceRoot":""}