1import{_ as k}from"./zyYpSBZk.js";import{M as w,_ as y}from"./CGOh_YP5.js";import{d as g,o as t,c as r,B as l,F as f,r as h,e as i,h as b,f as m,at as B,C as p,_ as C,b as a,aJ as S,av as j,aD as N,s as $,a as T,g as z,m as V}from"./DOUwDtZz.js";import"./BK8lK3fh.js";import"./DgmsIR48.js";import"./CBYUN8q7.js";import"./DxMu0Kq1.js";import"./DxiUnBII.js";import"./DlisLC5O.js";import"./Cbbi4sYi.js";import"./Dq9bAwfI.js";import"./DSUQNyVU.js";import"./YBoEyWFk.js";function F(n){return(n??[]).filter(e=>e.collection==="product_block").filter(e=>!!e.anchor?.to).map(e=>({label:e.anchor.label??"-",image:e.item?.heading?.img,to:`#${e.anchor.to}`}))}const I=["aria-label"],L={class:"grid grid-cols-16 max-w-8xl mx-auto"},M={class:"subcategories-scroll py-5 px-5 gap-6 col-start-1 -col-end-1 lg:col-start-2 lg:-col-end-2 grid grid-cols-[repeat(auto-fit,14rem)] justify-center touch:flex touch:justify-normal touch:overflow-x-auto touch:snap-x touch:snap-mandatory"},P={class:"h-28 md:h-40 relative flex justify-center items-center overflow-hidden rounded-3xl rounded-br-none border"},R={class:"mt-1 flex items-center justify-between gap-2 px-1"},q=g({__name:"SubcategoriesBar",props:{links:{}},setup(n){const e=n,c=S;return(d,x)=>{const u=B,_=C,o=j;return e.links?.length?(t(),r("nav",{key:0,class:"w-full","aria-label":d.$t("Sous-catégories")},[l("div",L,[l("ul",M,[(t(!0),r(f,null,h(e.links,(s,v)=>(t(),r("li",{key:v,class:"snap-center shrink-0 w-56"},[i(o,{to:s.to,class:"group block w-full cursor-pointer rounded-lg focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-4"},{default:b(()=>[l("div",P,[s.image?.src?(t(),m(u,{key:0,provider:"directus",src:s.image.src,alt:s.image.alt??s.label,fit:"cover",class:"object-cover w-full h-full transition-transform duration-500 ease-out-quad group-hover:scale-[1.05]",sizes:"160px md:192px lg:224px","placeholder-sizes":"w-full h-full"},null,8,["src","alt"])):p("",!0)]),l("div",R,[i(_,{tag:a(c),variant:"base-semibold",text:s.label,class:"text-base min-w-0 overflow-hidden text-ellipsis !whitespace-nowrap"},null,8,["tag","text"]),i(a(w),{class:"hidden shrink-0 group-hover:block group-hover:animate-bounce-y",size:20})])]),_:2},1032,["to"])]))),128))])])],8,I)):p("",!0)}}}),D=Object.assign(N(q,[["__scopeId","data-v-44b99908"]]),{__name:"CatalogNavigationSubcategoriesBar"}),ee=g({__name:"index",setup(n){const{currentPage:e}=$(T()),c=V(()=>F(e.value?.sections));return(d,x)=>{const u=k,_=y;return t(),r("div",null,[(t(!0),r(f,null,h(a(e)?.sections,o=>(t(),m(_,{key:o.id,section:o},z({_:2},[o.collection==="carousel_block"?{name:"section-0",fn:b(()=>[i(u,{block:o.item,"has-breadcrumb":"","content-driven":"",class:"mb-0 text-white"},null,8,["block"]),a(c).length?(t(),m(a(D),{key:0,links:a(c)},null,8,["links"])):p("",!0)]),key:"0"}:void 0]),1032,["section"]))),128))])}}});export{ee as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.