import{_ as j}from"./BAg0tEYt.js";import{d as E,e as H,l as S}from"./BmsEUx_s.js";import{_ as z}from"./CaS-jcgw.js";import{u as G}from"./Caz6ZtR2.js";import{k as T,a as w,w as A,G as a,M as n,Q as D,u as t,O as o,a9 as O,H as p,I as y,a3 as Q,V as L,X as l,P as B,a7 as X,a1 as q}from"./BO9AmBA3.js";import{u as J}from"./CGa_SUqF.js";const K={class:"flex h-full flex-col bg-yt-white md:bg-yt-black"},R={class:"flex px-4 pt-5 md:pt-11 pb-0 md:pb-5 md:bg-yt-black"},W=o("span",{class:"sr-only"},"Go Back",-1),Y=o("div",{class:"i-carbon-chevron-left text-3xl"},null,-1),Z=[W,Y],g={class:"max-w-2xl text-white bg-yt-white md:bg-yt-black text-yt-black px-8 h-screen"},C={class:"flex py-2"},ee={"aria-label":"tertiary",class:"w-full md:min-w-90"},te={class:"text-left para-3"},se={key:0,class:"flex items-center justify-between mb-3 yt-hover-underline"},oe={class:"para-3 mr-8 whitespace-nowrap md:text-yt-white"},pe=T({__name:"LayoutHeaderMenuSubnavThree",props:{minContent:{type:Boolean}},setup(ae){const{menu:c,openLevel:ne,closeLevel:I,closeAllLevels:N,tagNavigation:$}=G(),s=w(c.value.subnavLevel3.activeCategory),V=()=>I("subnavLevel3"),M=E(),{formatLink:r}=H(M),_=w(),{desktop:P}=J(),v=u=>{N(),$(u,r("/"))};return A(()=>{s.value=c.value.subnavLevel3.activeCategory,_.value=c.value.emtbCategory.id===s.value.parentId||c.value.mtbCategory.id===s.value.parentId}),(u,i)=>{var d;const F=j,f=S,U=z;return a(),n("div",K,[D(F,{theme:t(P)?"dark":"light",category:t(s),class:"mt-1"},null,8,["theme","category"]),o("div",R,[o("button",{class:"inline-flex items-center justify-start w-full p-2 -m-2 text-yt-black md:text-yt-white rounded-md bg-transparent",onClick:O(V,["stop","prevent"])},Z)]),o("div",g,[o("div",C,[o("nav",ee,[o("ul",te,[t(_)?(a(),n("li",se,[t(s).seoUrls?(a(),p(f,{key:0,to:t(r)(`/${(d=t(s))==null?void 0:d.seoUrls[0].seoPathInfo}`),class:"cursor-pointer",onClick:i[0]||(i[0]=e=>v(t(s)))},{default:y(()=>[Q(L(u.$t("product.overview")),1)]),_:1},8,["to"])):l("",!0)])):l("",!0),(a(!0),n(B,null,X(t(s).children,e=>{var b;return a(),n(B,{key:e.id},[e.visible?(a(),n("li",{key:0,class:q(["mb-3 md:my-4 yt-hover-underline group",{"md:my-6":!((b=e.customFields)!=null&&b.highlighted_product_image)}])},[e.seoUrls?(a(),p(f,{key:0,to:t(r)(`/${e==null?void 0:e.seoUrls[0].seoPathInfo}`),onClick:i[1]||(i[1]=m=>v(t(s))),class:"flex items-center justify-between cursor-pointer underline-revert whitespace-nowrap"},{default:y(()=>{var m,h,x,k;return[o("p",oe,L(e.translated.name),1),(h=(m=e==null?void 0:e.translated)==null?void 0:m.customFields)!=null&&h.highlighted_product_image?(a(),p(U,{key:0,content:{data:{media:(k=(x=e==null?void 0:e.translated)==null?void 0:x.customFields)==null?void 0:k.highlighted_product_image},config:{}},class:"group-hover:scale-100 scale-90 transition-all duration-150 w-45","max-thumbnail":280},null,8,["content"])):l("",!0)]}),_:2},1032,["to"])):l("",!0)],2)):l("",!0)],64)}),128))])])])])])}}});export{pe as _};