c0f49efad9c1b4178b8dddaebf7a4ea16a3d5a5abdcb2f234fef5671cd4bde50.json 10 KB

1
  1. {"ast":null,"code":"/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';\nimport { h as hostContext } from './theme.js';\nimport { c as config, b as getIonMode } from './ionic-global.js';\nconst skeletonTextCss = \":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}\";\nconst IonSkeletonTextStyle0 = skeletonTextCss;\nconst SkeletonText = /*@__PURE__*/proxyCustomElement(class SkeletonText extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.ionStyle = createEvent(this, \"ionStyle\", 7);\n this.animated = false;\n }\n componentWillLoad() {\n this.emitStyle();\n }\n emitStyle() {\n // The emitted property is used by item in order\n // to add the item-skeleton-text class which applies\n // overflow: hidden to its label\n const style = {\n 'skeleton-text': true\n };\n this.ionStyle.emit(style);\n }\n render() {\n const animated = this.animated && config.getBoolean('animated', true);\n const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);\n const mode = getIonMode(this);\n return h(Host, {\n key: 'fdfabf9364caf507450239b62be24f08873bd650',\n class: {\n [mode]: true,\n 'skeleton-text-animated': animated,\n 'in-media': inMedia\n }\n }, h(\"span\", {\n key: '3482c88dcc177547185ce87972afa064a542367d'\n }, \"\\u00A0\"));\n }\n get el() {\n return this;\n }\n static get style() {\n return IonSkeletonTextStyle0;\n }\n}, [1, \"ion-skeleton-text\", {\n \"animated\": [4]\n}]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-skeleton-text\"];\n components.forEach(tagName => {\n switch (tagName) {\n case \"ion-skeleton-text\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, SkeletonText);\n }\n break;\n }\n });\n}\nconst IonSkeletonText = SkeletonText;\nconst defineCustomElement = defineCustomElement$1;\nexport { IonSkeletonText, defineCustomElement };","map":{"version":3,"names":["proxyCustomElement","HTMLElement","createEvent","h","Host","hostContext","c","config","b","getIonMode","skeletonTextCss","IonSkeletonTextStyle0","SkeletonText","constructor","__registerHost","__attachShadow","ionStyle","animated","componentWillLoad","emitStyle","style","emit","render","getBoolean","inMedia","el","mode","key","class","defineCustomElement$1","customElements","components","forEach","tagName","get","define","IonSkeletonText","defineCustomElement"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@ionic/core/components/ion-skeleton-text.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';\nimport { h as hostContext } from './theme.js';\nimport { c as config, b as getIonMode } from './ionic-global.js';\n\nconst skeletonTextCss = \":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}\";\nconst IonSkeletonTextStyle0 = skeletonTextCss;\n\nconst SkeletonText = /*@__PURE__*/ proxyCustomElement(class SkeletonText extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.ionStyle = createEvent(this, \"ionStyle\", 7);\n this.animated = false;\n }\n componentWillLoad() {\n this.emitStyle();\n }\n emitStyle() {\n // The emitted property is used by item in order\n // to add the item-skeleton-text class which applies\n // overflow: hidden to its label\n const style = {\n 'skeleton-text': true,\n };\n this.ionStyle.emit(style);\n }\n render() {\n const animated = this.animated && config.getBoolean('animated', true);\n const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);\n const mode = getIonMode(this);\n return (h(Host, { key: 'fdfabf9364caf507450239b62be24f08873bd650', class: {\n [mode]: true,\n 'skeleton-text-animated': animated,\n 'in-media': inMedia,\n } }, h(\"span\", { key: '3482c88dcc177547185ce87972afa064a542367d' }, \"\\u00A0\")));\n }\n get el() { return this; }\n static get style() { return IonSkeletonTextStyle0; }\n}, [1, \"ion-skeleton-text\", {\n \"animated\": [4]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-skeleton-text\"];\n components.forEach(tagName => { switch (tagName) {\n case \"ion-skeleton-text\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, SkeletonText);\n }\n break;\n } });\n}\n\nconst IonSkeletonText = SkeletonText;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { IonSkeletonText, defineCustomElement };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkB,EAAEC,WAAW,EAAEC,WAAW,EAAEC,CAAC,EAAEC,IAAI,QAAQ,+BAA+B;AACrG,SAASD,CAAC,IAAIE,WAAW,QAAQ,YAAY;AAC7C,SAASC,CAAC,IAAIC,MAAM,EAAEC,CAAC,IAAIC,UAAU,QAAQ,mBAAmB;AAEhE,MAAMC,eAAe,GAAG,umDAAumD;AAC/nD,MAAMC,qBAAqB,GAAGD,eAAe;AAE7C,MAAME,YAAY,GAAG,aAAcZ,kBAAkB,CAAC,MAAMY,YAAY,SAASX,WAAW,CAAC;EACzFY,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,cA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