import{F as x,au as y,P as c,Q as s,R as a,T as r,X as u,a1 as l,a2 as b,a0 as n,a5 as k,a6 as g,e as d,_ as h,Z as P}from"./vendor-BmRNukEL.js";import{j as T,_ as N}from"./index-CfcNWeCf.js";import{P as V}from"./product-card-Oi4VZnJe.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)=>{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(()=>[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),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-C-yQ-G6U.js.map
