import{F as b,b8 as x,P as c,Q as s,R as a,T as r,X as u,a1 as l,a2 as y,a0 as n,a5 as k,a6 as g,e as d,_ as h,Z as P}from"./vendor-Di1tOLi3.js";import{i as T,_ as N}from"./index-BrdDZgk2.js";import{P as V}from"./product-card-B0k9hZwM.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=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}=T();return x(async()=>{await i({itemsPerPage:e.count,keyword:e.query,filter:e.filter})}),(_,B)=>{const f=c("VcTypography"),p=c("VcProductsGrid");return a(),s("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(()=>[y(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),s(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-DZM7ZzLQ.js.map
