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