import{c as l,d as i,a,o as m,n as r,k as s,b6 as w,m as v,b as $,t as u,h as g,F as y}from"./index-971588a5.js";const[A,P]=l("skeleton-title"),p={round:Boolean,titleWidth:r};var b=i({name:A,props:p,setup(t){return()=>a("h3",{class:P([{round:t.round}]),style:{width:m(t.titleWidth)}},null)}});const T=s(b);var z=T;const[B,D]=l("skeleton-avatar"),F={avatarSize:r,avatarShape:v("round")};var N=i({name:B,props:F,setup(t){return()=>a("div",{class:D([t.avatarShape]),style:w(t.avatarSize)},null)}});const R=s(N);var I=R;const d="100%",L={round:Boolean,rowWidth:{type:r,default:d}},[U,C]=l("skeleton-paragraph");var E=i({name:U,props:L,setup(t){return()=>a("div",{class:C([{round:t.round}]),style:{width:t.rowWidth}},null)}});const H=s(E);var O=H;const[V,c]=l("skeleton"),j="60%",q={row:$(0),round:Boolean,title:Boolean,titleWidth:r,avatar:Boolean,avatarSize:r,avatarShape:v("round"),loading:u,animate:u,rowWidth:{type:[Number,String,Array],default:d}};var x=i({name:V,inheritAttrs:!1,props:q,setup(t,{slots:o,attrs:h}){const f=()=>{if(t.avatar)return a(I,{avatarShape:t.avatarShape,avatarSize:t.avatarSize},null)},S=()=>{if(t.title)return a(z,{round:t.round,titleWidth:t.titleWidth},null)},k=n=>{const{rowWidth:e}=t;return e===d&&n===+t.row-1?j:Array.isArray(e)?e[n]:e},W=()=>Array(+t.row).fill("").map((n,e)=>a(O,{key:e,round:t.round,rowWidth:m(k(e))},null)),_=()=>o.template?o.template():a(y,null,[f(),a("div",{class:c("content")},[S(),W()])]);return()=>{var n;return t.loading?a("div",g({class:c({animate:t.animate,round:t.round})},h),[_()]):(n=o.default)==null?void 0:n.call(o)}}});const J=s(x);export{J as S,H as a,R as b,T as c};
