import{F as x,as as y,P as s,Q as c,R as a,T as r,X as u,a1 as l,a2 as b,a0 as n,a6 as k,a7 as g,e as d,_ as h,Z as P}from"./vendor-DpspMRYS.js";import{h as T,d as N}from"./index-BN2vBFYR.js";import{P as V}from"./product-card-BAiSn3mf.js";const v={class:"mx-auto w-full max-w-screen-xl px-5 md:px-12"},w={class:"mb-8 text-center lg:text-lg"},A=x({__name:"products-block",props:{id:{},background:{},title:{},subtitle:{},count:{default:4},query:{},filter:{},cardType:{default:"full"},columnsAmountDesktop:{default:"4"},columnsAmountTablet:{default:"3"}},setup(t){const e=t,{products:m,fetchProducts:i}=T();return y(async()=>{await i({itemsPerPage:e.count,keyword:e.query,filter:e.filter})}),(B,C)=>{const f=s("VcTypography"),p=s("VcProductsGrid");return a(),c("div",{class:P(["products-block py-10 lg:py-24",t.background])},[r("div",v,[u(f,{tag:"h2",variant:"h1",class:"mb-2 text-center lg:mb-4"},{default:l(()=>[b(n(t.title),1)]),_:1}),r("div",w,n(t.subtitle),1),u(p,{columns:{default:1,xs:2,sm:2,md:Number(t.columnsAmountTablet),lg:Number(t.columnsAmountDesktop),xl:Number(t.columnsAmountDesktop),"2xl":Number(t.columnsAmountDesktop)}},{default:l(()=>[(a(!0),c(k,null,g(d(m),o=>(a(),h(d(V),{key:o.id,"card-type":t.cardType,product:o},null,8,["card-type","product"]))),128))]),_:1},8,["columns"])])],2)}}}),E=N(A,[["__scopeId","data-v-000ea0d2"]]);export{E as default};
//# sourceMappingURL=products-block-BKpqDGAr.js.map
