import{y as C,Y as N,f as e,m as r,A as V,p as o,j as c,k as l,l as a,t as p,w as m,q as j,_ as L,F as $,B as b}from"./BCLrUOBx.js";import A from"./Dyp1qGEf.js";import F from"./-hq_PDZF.js";import"./CTAcmMAz.js";import"./B2sEaWda.js";import"./a5umXhxZ.js";import"./Bxmfm8sn.js";import"./BnLnKt_p.js";import"./Di7fl9dA.js";import"./Ce8lFovl.js";const O={key:0,class:"area home-section"},S={class:"flex sided title"},q={class:"area-content shimmer-wrapper"},I={__name:"ProductsSlider",props:{collection:{type:Object}},setup(_){const d=_,{collectionLink:f}=C(),{collection:s}=N(d),h=e(()=>{var t,n;return(n=(t=i.value)==null?void 0:t.products)==null?void 0:n.length}),i=e(()=>s.value),u=e(()=>{var t;return(t=s.value)==null?void 0:t.title}),v=e(()=>{var t;return(t=s.value)==null?void 0:t.slug}),k=e(()=>{var t;return{slug:v.value,title:u.value,id:(t=s.value)==null?void 0:t.id}});return(t,n)=>{const g=L,x=A,y=F;return o(h)?(c(),r("div",O,[l("div",S,[l("h4",null,p(o(u)),1),a(g,{class:"link",to:o(f)(o(k))},{default:m(()=>[j(p(t.$t("featured.showAll")),1)]),_:1},8,["to"])]),l("div",q,[a(y,null,{content:m(()=>[(c(!0),r($,null,b(o(i).products,(w,B)=>(c(),r("li",{key:B},[a(x,{product:w},null,8,["product"])]))),128))]),_:1})])])):V("",!0)}}};export{I as default};
