{"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","hostRef","this","button","type","disabled","routerDirection","prototype","isClickable","undefined","href","renderCard","mode","clickable","_a","TagType","attrs","download","rel","target","Object","assign","class","onClick","ev","render","color","defineProperty","get","enumerable","configurable","CardContent","CardHeader","translucent","CardSubtitle","role","CardTitle","hostContext","selector","el","closest","createColorClasses","length","getClassList","classes","array","Array","isArray","split","filter","c","map","trim","getClassMap","forEach","SCHEME","openURL","url","direction","router","test","document","querySelector","preventDefault","push"],"mappings":"kHAAA,0RAGIA,EAAsB,WACtB,SAASA,EAAKC,GACV,eAAiBC,KAAMD,GAIvBC,KAAKC,QAAS,EAIdD,KAAKE,KAAO,SAIZF,KAAKG,UAAW,EAKhBH,KAAKI,gBAAkB,UAkC3B,OAhCAN,EAAKO,UAAUC,YAAc,WACzB,YAAsBC,IAAdP,KAAKQ,MAAsBR,KAAKC,QAE5CH,EAAKO,UAAUI,WAAa,SAAUC,GAClC,IAAIC,EAAYX,KAAKM,cACrB,IAAKK,EACD,MAAO,CACH,eAAE,OAAQ,OAGlB,IAAIC,EAAKZ,KAAMQ,EAAOI,EAAGJ,KAAMJ,EAAkBQ,EAAGR,gBAChDS,EAAUF,OAAsBJ,IAATC,EAAqB,SAAW,IAAO,MAC9DM,EAAqB,WAAZD,EACP,CAAEX,KAAMF,KAAKE,MACb,CACEa,SAAUf,KAAKe,SACfP,KAAMR,KAAKQ,KACXQ,IAAKhB,KAAKgB,IACVC,OAAQjB,KAAKiB,QAErB,OAAQ,cAAD,CAAGJ,EAASK,OAAOC,OAAO,GAAIL,EAAO,CAAEM,MAAO,cAAejB,SAAUH,KAAKG,SAAUkB,QAAS,SAAUC,GAAM,OAAO,eAAQd,EAAMc,EAAIlB,MAAwB,eAAE,OAAQ,MAAOO,GAAsB,OAATD,GAAiB,eAAE,oBAAqB,QAEjPZ,E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AK,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,EAAKjC,EAAIkC,GAAa,OAAO,oBAAU,OAAQ,OAAQ,GAAQ,WACnF,IAAIC,EACJ,OAAO,eAAYzD,MAAM,SAAUY,GAC/B,OAAW,MAAP2C,GAA0B,MAAXA,EAAI,KAAeF,EAAOK,KAAKH,KAC9CE,EAASE,SAASC,cAAc,cAC5BH,IACU,MAANnC,GACAA,EAAGuC,iBAEA,CAAC,EAAcJ,EAAOK,KAAKP,EAAKC,KAGxC,CAAC,GAAc","file":"js/chunk-13d808b0.08c9bd21.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":""}