import{r,h as t,H as i,d as n}from"./p-23450e8b.js";import{h as a}from"./p-b2d007f6.js";import{c as o,g as e}from"./p-1e77b5bd.js";const s=":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;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: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;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:shimmer;animation-timing-function:linear}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}";const g=class{constructor(t){r(this,t);this.animated=false}render(){const r=this.animated&&o.getBoolean("animated",true);const n=a("ion-avatar",this.el)||a("ion-thumbnail",this.el);const s=e(this);return t(i,{class:{[s]:true,"skeleton-text-animated":r,"in-media":n}},t("span",null," "))}get el(){return n(this)}};g.style=s;export{g as ion_skeleton_text};
//# sourceMappingURL=p-4f50a910.entry.js.map