import{r as q,q as C,aM as D,aY as _,d as p,a_ as g,o as t,c as r,x as h,a,b1 as F,a0 as b,T as m,a$ as w,b2 as L,F as k,v as x,aC as $,f as M,af as S,aD as P,b0 as Y,b3 as j,__tla as z}from"./index-8dc1e40a.js";let E,A=Promise.all([(()=>{try{return z}catch{}})()]).then(async()=>{const N=_({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=w(p({...B,props:T,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(F),{key:0})):b("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const I=p({name:"ElSkeleton"});E=Y(w(p({...I,props:N,setup(v,{expose:i}){const o=v,s=g("skeleton"),d=((e,c=0)=>{if(c===0)return e;const l=q(!1);let n=0;const f=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{l.value=e.value},c)};return C(f),D(()=>e.value,y=>{y?f():l.value=y}),l})(L(o,"loading"),o.throttle);return i({uiLoading:d}),(e,c)=>a(d)?(t(),r("div",S({key:0,class:[a(s).b(),a(s).is("animated",e.animated)]},e.$attrs),[(t(!0),r(k,null,x(e.count,l=>(t(),r(k,{key:l},[e.loading?$(e.$slots,"template",{key:l},()=>[M(u,{class:m(a(s).is("first")),variant:"p"},null,8,["class"]),(t(!0),r(k,null,x(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))]):b("v-if",!0)],64))),128))],16)):$(e.$slots,"default",P(S({key:1},e.$attrs)))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]),{SkeletonItem:u}),j(u)});export{E,A as __tla};
