"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv"),p=require("@aplus-frontend/antdv/es/_util/hooks/useBreakpoint"),m=require("../line/index.js"),x={style:{flex:3,paddingInlineStart:"32px"}},f=e.defineComponent({name:"ApSkeletonTableItem",__name:"item",props:{active:{type:Boolean},header:{type:Boolean,default:!1}},setup(t){const r={lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1},o={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},i=p(),c=e.computed(()=>i.value||r),d=e.computed(()=>{const l=e.unref(c);return Object.keys(l).filter(n=>l[n]===!0)[0]||"md"}),u=e.computed(()=>o[d.value]||3);return(l,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle({display:"flex",background:t.header?"rgba(0,0,0,0.02)":"none",padding:"20px 8px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(new Array(u.value).fill(null),(g,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,style:{flex:1,paddingInlineStart:"8px",paddingInlineEnd:"32px"}},[e.createVNode(e.unref(a.Skeleton),{active:t.active,paragraph:!1,title:{style:{margin:0,height:"24px",width:t.header?"75px":"100%"}}},null,8,["active","title"])]))),128)),e.createElementVNode("div",x,[e.createVNode(e.unref(a.Skeleton),{active:t.active,paragraph:!1,title:{style:{margin:0,height:"24px",width:t.header?"75px":"100%"}}},null,8,["active","title"])])],4),e.createVNode(e.unref(m.ApSkeletonLine),{style:{padding:"0px 0px"}})],64))}});exports.default=f;
