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