import{r as L,b as P,w as R,aL as _,d as p,aN as g,o as t,c as r,C as h,a,aR as C,a3 as w,ad as m,aP as b,aS as F,F as d,R as S,aO as x,f as O,m as N,aT as Q,aQ as U,aU as j,__tla as q}from"./index-54aa57d8.js";let $,z=Promise.all([(()=>{try{return q}catch{}})()]).then(async()=>{const E=_({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),T=_({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:T,setup(k){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(C),{key:0})):w("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const I=p({name:"ElSkeleton"});$=U(b(p({...I,props:E,setup(k,{expose:i}){const o=k,s=g("skeleton"),v=((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 P(f),R(()=>e.value,y=>{y?f():l.value=y}),l})(F(o,"loading"),o.throttle);return i({uiLoading:v}),(e,c)=>a(v)?(t(),r("div",N({key:0,class:[a(s).b(),a(s).is("animated",e.animated)]},e.$attrs),[(t(!0),r(d,null,S(e.count,l=>(t(),r(d,{key:l},[e.loading?x(e.$slots,"template",{key:l},()=>[O(u,{class:m(a(s).is("first")),variant:"p"},null,8,["class"]),(t(!0),r(d,null,S(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",Q(N({key:1},e.$attrs)))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]),{SkeletonItem:u}),j(u)});export{$ as E,z as __tla};