import{U as e,V as t,bt as n,d as r,i,nt as a,p as o,u as s,v as c,z as l}from"./runtime-core.esm-bundler.v79eHMSw.js";import{t as u}from"./i18n.DdD8a55v.js";import{t as d}from"./_plugin-vue_export-helper.BDNMzG2s.js";var f={class:`smb2b-skeleton__filters`},p={class:`smb2b-skeleton__table`},m={class:`smb2b-skeleton__row smb2b-skeleton__row--head`},h=d({__name:`PageSkeleton`,props:{variant:{type:String,default:`table`},rows:{type:Number,default:6},cols:{type:Number,default:4},cards:{type:Number,default:2}},setup(d){return(h,g)=>{let _=e(`el-skeleton-item`),v=e(`el-skeleton`);return l(),r(v,{animated:``,class:`smb2b-skeleton`,"aria-label":n(u)(`Loading…`)},{template:a(()=>[d.variant===`table`?(l(),o(i,{key:0},[s(`div`,f,[c(_,{variant:`button`,style:{width:`180px`,height:`34px`}}),c(_,{variant:`button`,style:{width:`140px`,height:`34px`}}),c(_,{variant:`button`,style:{width:`220px`,height:`34px`,"margin-left":`auto`}})]),s(`div`,p,[s(`div`,m,[(l(!0),o(i,null,t(d.cols,e=>(l(),r(_,{key:`h`+e,variant:`text`,style:{height:`14px`}}))),128))]),(l(!0),o(i,null,t(d.rows,e=>(l(),o(`div`,{key:e,class:`smb2b-skeleton__row`},[(l(!0),o(i,null,t(d.cols,t=>(l(),r(_,{key:e+`-`+t,variant:`text`,style:{height:`16px`}}))),128))]))),128))])],64)):(l(!0),o(i,{key:1},t(d.cards,e=>(l(),o(`div`,{key:e,class:`smb2b-skeleton__card`},[c(_,{variant:`h3`,style:{width:`200px`,height:`20px`,"margin-bottom":`20px`}}),(l(!0),o(i,null,t(d.rows,t=>(l(),o(`div`,{key:e+`-`+t,class:`smb2b-skeleton__field`},[c(_,{variant:`text`,style:{width:`160px`,height:`14px`}}),c(_,{variant:`button`,style:{width:`100%`,"max-width":`360px`,height:`34px`}})]))),128))]))),128))]),_:1},8,[`aria-label`])}}},[[`__scopeId`,`data-v-0d53313a`]]);export{h as t};