{"version":3,"sources":["webpack:///./node_modules/@ionic/core/dist/esm-es5/ion-card_5-md.entry.js","webpack:///./node_modules/@ionic/core/dist/esm-es5/theme-18cbe2cc.js"],"names":["Card","prototype","isClickable","undefined","this","href","button","renderCard","mode","routerDirection","TagType","attrs","clickable","type","download","rel","target","Object","assign","class","disabled","onClick","ev","render","_a","color","defineProperty","get","enumerable","configurable","hostRef","CardContent","CardHeader","translucent","CardSubtitle","role","CardTitle","hostContext","selector","el","closest","createColorClasses","length","getClassMap","classes","map","Array","isArray","split","filter","c","trim","forEach","SCHEME","openURL","url","direction","router","test","document","querySelector","preventDefault","push"],"mappings":"+FAAA,gRAGIA,GAqBAA,EAAKC,UAAUC,YAAc,WACzB,OAAsBC,SAAdC,KAAKC,MAAsBD,KAAKE,MAC5C,EACAN,EAAKC,UAAUM,WAAa,SAAUC,GAClC,IAMeH,EAAgBI,EAC3BC,EACAC,EARAC,EAAYR,KAAKF,YAAY,EACjC,OAAKU,GAKUP,EAAND,KAAgBC,KAAMI,EAAtBL,KAA2CK,gBAEhDE,EAAqB,WADrBD,EAAUE,EAAsBT,SAATE,EAAqB,SAAW,IAAO,OAE5D,CAAEQ,KAAMT,KAAKS,IAAK,EAClB,CACEC,SAAUV,KAAKU,SACfT,KAAMD,KAAKC,KACXU,IAAKX,KAAKW,IACVC,OAAQZ,KAAKY,MACjB,EACI,YAAEN,EAASO,OAAOC,OAAO,GAAIP,EAAO,CAAEQ,MAAO,cAAeC,SAAUhB,KAAKgB,SAAUC,QAAS,SAAUC,GAAM,OAAO,YAAQjB,EAAMiB,EAAIb,CAAe,CAAG,CAAE,CAAC,EAAG,YAAE,OAAQ,IAAI,EAAGG,GAAsB,OAATJ,GAAiB,YAAE,oBAAqB,IAAI,CAAE,GAdxO,CACH,YAAE,OAAQ,IAAI,EAc1B,EACAR,EAAKC,UAAUsB,OAAS,WACpB,IAAIC,EACAhB,EAAO,YAAWJ,IAAI,EAC1B,OAAQ,YAAE,IAAM,CAAEe,MAAO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qC,EAAfA,EAAMiB,SAAelB,EAAK,CACvD,YAAa,EACjB,GACG,aAAeC,GAAS,GAC3BD,GAAMrB,MACd,EAWIwC,EAAc,SAAUC,GACxB,IAAIC,EAAM,GAEV,OAZgB1C,UADSyC,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,EAAKjC,EAAIkC,GAAa,OAAO,YAAU,OAAQ,OAAQ,OAAQ,WACnF,IAAIC,EACJ,OAAO,YAAYrD,KAAM,SAAUoB,GAC/B,OAAW,MAAP+B,GAA0B,MAAXA,EAAI,IAAc,CAACF,EAAOK,KAAKH,CAAG,IACjDE,EAASE,SAASC,cAAc,YAAY,IAE9B,MAANtC,GACAA,EAAGuC,eAAe,EAEf,CAAC,EAAcJ,EAAOK,KAAKP,EAAKC,CAAS,IAGjD,CAAC,EAAc,GAC1B,CAAC,CACL,CAAC,CAAG,C","file":"js/chunk-13d808b0.f7f0b9a0.js","sourcesContent":["import { r as registerInstance, h, c as getIonMode, H as Host } from './core-feeeff0d.js';\nimport './config-3c7f3790.js';\nimport { o as openURL, c as createColorClasses } from './theme-18cbe2cc.js';\nvar Card = /** @class */ (function () {\n function Card(hostRef) {\n registerInstance(this, hostRef);\n /**\n * If `true`, a button tag will be rendered and the card will be tappable.\n */\n this.button = false;\n /**\n * The type of the button. Only used when an `onclick` or `button` property is present.\n */\n this.type = 'button';\n /**\n * If `true`, the user cannot interact with the card.\n */\n this.disabled = false;\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 }\n Card.prototype.isClickable = function () {\n return (this.href !== undefined || this.button);\n };\n Card.prototype.renderCard = function (mode) {\n var clickable = this.isClickable();\n if (!clickable) {\n return [\n h(\"slot\", null)\n ];\n }\n var _a = this, href = _a.href, routerDirection = _a.routerDirection;\n var TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';\n var attrs = (TagType === 'button')\n ? { type: this.type }\n : {\n download: this.download,\n href: this.href,\n rel: this.rel,\n target: this.target\n };\n return (h(TagType, Object.assign({}, attrs, { class: \"card-native\", disabled: this.disabled, onClick: function (ev) { return openURL(href, ev, routerDirection); } }), h(\"slot\", null), clickable && mode === 'md' && h(\"ion-ripple-effect\", null)));\n };\n Card.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n return (h(Host, { class: Object.assign(Object.assign((_a = {}, _a[mode] = true, _a), createColorClasses(this.color)), { 'card-disabled': this.disabled, 'ion-activatable': this.isClickable() }) }, this.renderCard(mode)));\n };\n Object.defineProperty(Card, \"style\", {\n get: function () { return \".sc-ion-card-md-h{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family,inherit);overflow:hidden}.ion-color.sc-ion-card-md-h{background:var(--ion-color-base)}.ion-color.sc-ion-card-md-h, .sc-ion-card-md-h.ion-color.sc-ion-card-md-s ion-card-header , .sc-ion-card-md-h.ion-color.sc-ion-card-md-s ion-card-subtitle , .sc-ion-card-md-h.ion-color.sc-ion-card-md-s ion-card-title {color:var(--ion-color-contrast)}.sc-ion-card-md-s img {display:block;width:100%}.sc-ion-card-md-s ion-list {margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.card-disabled.sc-ion-card-md-h{cursor:default;opacity:.3;pointer-events:none}.card-native.sc-ion-card-md{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;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background)}.card-native.sc-ion-card-md::-moz-focus-inner{border:0}a.sc-ion-card-md, button.sc-ion-card-md{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect.sc-ion-card-md{color:var(--ripple-color)}.sc-ion-card-md-h{--background:var(--ion-item-background,transparent);--color:var(--ion-color-step-550,#737373);margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.sc-ion-card-md-h{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}\"; },\n enumerable: true,\n configurable: true\n });\n return Card;\n}());\nvar CardContent = /** @class */ (function () {\n function CardContent(hostRef) {\n registerInstance(this, hostRef);\n }\n CardContent.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n return (h(Host, { class: (_a = {},\n _a[mode] = true,\n // Used internally for styling\n _a[\"card-content-\" + mode] = true,\n _a) }));\n };\n Object.defineProperty(CardContent, \"style\", {\n get: function () { return \"ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:400}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:400}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:400}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:400;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}\"; },\n enumerable: true,\n configurable: true\n });\n return CardContent;\n}());\nvar CardHeader = /** @class */ (function () {\n function CardHeader(hostRef) {\n registerInstance(this, hostRef);\n /**\n * If `true`, the card header 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 CardHeader.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n return (h(Host, { class: Object.assign(Object.assign({}, createColorClasses(this.color)), (_a = { 'card-header-translucent': this.translucent }, _a[mode] = true, _a)) }, h(\"slot\", null)));\n };\n Object.defineProperty(CardHeader, \"style\", {\n get: function () { return \":host{display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color) ::slotted(ion-card-subtitle),:host(.ion-color) ::slotted(ion-card-title){color:currentColor}:host{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-card-subtitle:not(:first-child)),::slotted(ion-card-title:not(:first-child)){margin-top:8px}\"; },\n enumerable: true,\n configurable: true\n });\n return CardHeader;\n}());\nvar CardSubtitle = /** @class */ (function () {\n function CardSubtitle(hostRef) {\n registerInstance(this, hostRef);\n }\n CardSubtitle.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n return (h(Host, { role: \"heading\", \"aria-level\": \"3\", class: Object.assign(Object.assign({}, createColorClasses(this.color)), (_a = {}, _a[mode] = true, _a)) }, h(\"slot\", null)));\n };\n Object.defineProperty(CardSubtitle, \"style\", {\n get: function () { return \":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550,#737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:14px;font-weight:500}\"; },\n enumerable: true,\n configurable: true\n });\n return CardSubtitle;\n}());\nvar CardTitle = /** @class */ (function () {\n function CardTitle(hostRef) {\n registerInstance(this, hostRef);\n }\n CardTitle.prototype.render = function () {\n var _a;\n var mode = getIonMode(this);\n return (h(Host, { role: \"heading\", \"aria-level\": \"2\", class: Object.assign(Object.assign({}, createColorClasses(this.color)), (_a = {}, _a[mode] = true, _a)) }, h(\"slot\", null)));\n };\n Object.defineProperty(CardTitle, \"style\", {\n get: function () { return \":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850,#262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;line-height:1.2}\"; },\n enumerable: true,\n configurable: true\n });\n return CardTitle;\n}());\nexport { Card as ion_card, CardContent as ion_card_content, CardHeader as ion_card_header, CardSubtitle as ion_card_subtitle, CardTitle as ion_card_title };\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":""}