import{b4 as v,z as B,a5 as I,A as E,O as P,aG as $,e as b,s as T,f as p,y as S,o as i,c as u,b as h,l as t,cB as C,d as N,D as m,p as w,aK as V,F as f,C as _,a3 as y,a as z,m as g,n as O,Y as j,bi as F}from"./admin.js?ver=1.3.1";const L=(l,e=0)=>{if(e===0)return l;const o=v(e)&&!!e.initVal,s=B(o);let r=null;const a=n=>{if($(n)){s.value=l.value;return}r&&clearTimeout(r),r=setTimeout(()=>{s.value=l.value},n)},d=n=>{n==="leading"?P(e)?a(e):a(e.leading):v(e)?a(e.trailing):s.value=!1};return I(()=>d("leading")),E(()=>l.value,n=>{d(n?"leading":"trailing")}),s},R=b({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:T([Number,Object])}}),A=b({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),D=p({name:"ElSkeletonItem"}),G=p({...D,props:A,setup(l){const e=S("skeleton");return(o,s)=>(i(),u("div",{class:m([t(e).e("item"),t(e).e(o.variant)])},[o.variant==="image"?(i(),h(t(C),{key:0})):N("v-if",!0)],2))}});var c=w(G,[["__file","skeleton-item.vue"]]);const H=p({name:"ElSkeleton"}),K=p({...H,props:R,setup(l,{expose:e}){const o=l,s=S("skeleton"),r=L(V(o,"loading"),o.throttle);return e({uiLoading:r}),(a,d)=>t(r)?(i(),u("div",g({key:0,class:[t(s).b(),t(s).is("animated",a.animated)]},a.$attrs),[(i(!0),u(f,null,_(a.count,n=>(i(),u(f,{key:n},[t(r)?y(a.$slots,"template",{key:n},()=>[z(c,{class:m(t(s).is("first")),variant:"p"},null,8,["class"]),(i(!0),u(f,null,_(a.rows,k=>(i(),h(c,{key:k,class:m([t(s).e("paragraph"),t(s).is("last",k===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):N("v-if",!0)],64))),128))],16)):y(a.$slots,"default",O(g({key:1},a.$attrs)))}});var M=w(K,[["__file","skeleton.vue"]]);const Y=j(M,{SkeletonItem:c}),q=F(c);export{q as E,Y as a};
