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