import{r as L,l as T,L as q,aA as _,d as p,aC as g,o as t,c as r,v as h,a,aG as A,Q as w,$ as m,aE as b,aH as C,F as k,q as $,aD as x,f as D,ak as E,aI as G,aF as H,aJ as J,__tla as P}from"./index-04f8d540.js";let S,Q=Promise.all([(()=>{try{return P}catch{}})()]).then(async()=>{const I=_({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),N=_({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),B=p({name:"ElSkeletonItem"});var u=b(p({...B,props:N,setup(v){const i=g("skeleton");return(o,s)=>(t(),r("div",{class:m([a(i).e("item"),a(i).e(o.variant)])},[o.variant==="image"?(t(),h(a(A),{key:0})):w("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const F=p({name:"ElSkeleton"});S=H(b(p({...F,props:I,setup(v,{expose:i}){const o=v,s=g("skeleton"),d=((e,c=0)=>{if(c===0)return e;const l=L(!1);let n=0;const f=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{l.value=e.value},c)};return T(f),q(()=>e.value,y=>{y?f():l.value=y}),l})(C(o,"loading"),o.throttle);return i({uiLoading:d}),(e,c)=>a(d)?(t(),r("div",E({key:0,class:[a(s).b(),a(s).is("animated",e.animated)]},e.$attrs),[(t(!0),r(k,null,$(e.count,l=>(t(),r(k,{key:l},[e.loading?x(e.$slots,"template",{key:l},()=>[D(u,{class:m(a(s).is("first")),variant:"p"},null,8,["class"]),(t(!0),r(k,null,$(e.rows,n=>(t(),h(u,{key:n,class:m([a(s).e("paragraph"),a(s).is("last",n===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):w("v-if",!0)],64))),128))],16)):x(e.$slots,"default",G(E({key:1},e.$attrs)))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]),{SkeletonItem:u}),J(u)});export{S as E,Q as __tla};
