import{s as t}from"./index.module-422ac088.js";import{S as n,a as o}from"./index-8475bc72.js";import{d as r,O as d,o as u,w as f,g as e}from"./index-1fc8de4c.js";import{C as h}from"./index-76236f13.js";import{C as i}from"./index-64076643.js";const g=r({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3,4,5,6]},isLink:{type:Boolean,default:!0}},setup(l,{slots:s}){const a=d({loading:!1});return u(()=>{a.loading=l.show}),f(()=>l.show,()=>{a.loading=l.show}),()=>e(n,{loading:a.loading,style:"flex-wrap: wrap"},{template:()=>e("div",{style:{height:l.isLink?"calc(100vh - var(--header-height))":"auto",overflow:"hidden",width:"100%"}},[l.showCount.map(()=>e(h,{inset:!0,class:t.cellGroup},{default:()=>[e(i,{center:!0,isLink:l.isLink,class:t.cellTitle,clickable:!1},{title:()=>e(o,{rowWidth:"80%",class:t.title},null)}),e(i,{center:!0,valueClass:t.cellTimerSkeleton},{title:()=>e(o,{rowWidth:"80%"},null),value:()=>e(o,{rowWidth:"50%"},null)})]}))]),default:()=>s.default&&s.default()})}});export{g as S};
