import{_ as b,o as e,c as t,F as r,h as o,q as k,e as d,n as h,k as y}from"../index.js";const v={key:0,class:"sk-table"},m={key:1,class:"sk-stats"},x={key:2,class:"sk-timeline"},g={class:"sk-timeline__lines"},f={key:3,class:"sk-kanban"},w={__name:"Skeleton",props:{variant:{type:String,default:"text",validator:s=>["text","heading","circle","rect","card"].includes(s)},preset:{type:String,default:null,validator:s=>s===null||["table-rows","stat-cards","timeline","kanban"].includes(s)},width:{type:String,default:null},height:{type:[String,Number],default:null},size:{type:Number,default:32},rows:{type:Number,default:5},cols:{type:Number,default:4},count:{type:Number,default:4},rounded:{type:String,default:null}},setup(s){const l=s,c=y(()=>{const i={};return l.variant==="circle"?(i.width=`${l.size}px`,i.height=`${l.size}px`,i.borderRadius="50%",i):(l.width&&(i.width=l.width),l.height&&(i.height=typeof l.height=="number"?`${l.height}px`:l.height),l.rounded&&(i.borderRadius=l.rounded),i)});return(i,n)=>s.preset==="table-rows"?(e(),t("div",v,[(e(!0),t(r,null,o(s.rows,a=>(e(),t("div",{key:a,class:"sk-table__row"},[(e(!0),t(r,null,o(s.cols,u=>(e(),t("div",{key:u,class:"sk-bone sk-bone--text sk-table__cell",style:k({width:u===1?"35%":void 0})},null,4))),128))]))),128))])):s.preset==="stat-cards"?(e(),t("div",m,[(e(!0),t(r,null,o(s.count,a=>(e(),t("div",{key:a,class:"sk-stat-card"},[...n[0]||(n[0]=[d("div",{class:"sk-bone sk-bone--text",style:{width:"50%",height:"12px"}},null,-1),d("div",{class:"sk-bone sk-bone--heading",style:{width:"40%","margin-top":"8px"}},null,-1)])]))),128))])):s.preset==="timeline"?(e(),t("div",x,[(e(!0),t(r,null,o(s.rows,a=>(e(),t("div",{key:a,class:"sk-timeline__item"},[n[2]||(n[2]=d("div",{class:"sk-bone sk-bone--circle",style:{width:"32px",height:"32px","flex-shrink":"0"}},null,-1)),d("div",g,[d("div",{class:"sk-bone sk-bone--text",style:k({width:60+a%3*15+"%"})},null,4),n[1]||(n[1]=d("div",{class:"sk-bone sk-bone--text",style:{width:"40%",height:"10px"}},null,-1))])]))),128))])):s.preset==="kanban"?(e(),t("div",f,[(e(!0),t(r,null,o(s.cols,a=>(e(),t("div",{key:a,class:"sk-kanban__col"},[n[4]||(n[4]=d("div",{class:"sk-bone sk-bone--text",style:{width:"60%",height:"14px","margin-bottom":"12px"}},null,-1)),(e(!0),t(r,null,o(a%2===0?2:3,u=>(e(),t("div",{key:u,class:"sk-kanban__card"},[...n[3]||(n[3]=[d("div",{class:"sk-bone sk-bone--text",style:{width:"80%"}},null,-1),d("div",{class:"sk-bone sk-bone--text",style:{width:"50%",height:"10px"}},null,-1)])]))),128))]))),128))])):(e(),t("div",{key:4,class:h(["sk-bone",`sk-bone--${s.variant}`]),style:k(c.value)},null,6))}},S=b(w,[["__scopeId","data-v-f618a96b"]]);export{S};
