import{aY as U,ck as I,_ as M,d as O}from"./DB-BdW1A.js";import{g as Y,u as q,_ as z}from"./DNOMDqtg.js";import{j as E,D as L,L as e,O as n,P as s,I as d,U as p,u as t,W as i,H as F,Y as H,S as N,_ as B,M as u}from"./DokyoHAC.js";import"./1Kstsjnh.js";import"./CWZwcrWm.js";import"./Bz4IcuNm.js";import"./C53zYwgM.js";import"./BrLWTrvd.js";import"./BaUG_RPv.js";import"./DlAKrPhM.js";import"./BXHfLeI_.js";import"./DsfFFR8H.js";import"./CVWHaK2P.js";import"./DwSmQj2S.js";import"./BlE_Hled.js";import"./D7MfkRLW.js";import"./C2ORwYxZ.js";import"./CkhvV11h.js";import"./CPFhVfwX.js";import"./OqHy3vAx.js";const P={class:"absolute inset-x-0 bottom-0 top-[57px] z-10 -mt-2 w-full overflow-auto bg-white [transition:opacity_300ms,transform_450ms] md:w-3/5 lg:w-6/12 xl:bottom-auto xl:top-full xl:mt-[-1px] xl:w-full xl:border-t xl:border-gray-200 xl:bg-white"},R={class:"sticky top-0 -mx-6 flex h-[50px] items-center border-y bg-white px-6 xl:hidden"},W={key:0,class:"mb-5 text-3xl"},G={class:"-mx-6 mb-6 flex flex-col border-b px-6 py-4 text-xl lg:text-base xl:border-none xl:pt-0"},J={key:0},K={key:1},Q={key:0},X={key:1},Z={key:0},ee={key:1},ke=E({__name:"NavigationLevel3",props:{category:{type:[Object],required:!0}},emits:["close"],setup(a,{emit:S}){const o=Y(a.category.path),{xl:b}=U(),{resetSearch:T}=q(),{closeSideNavigation:$}=I(),A=S,y=()=>{b.value&&(A("close"),T(),$())};function c(m){const l=m.target;((l==null?void 0:l.tagName)==="A"||l.closest("a"))&&y()}return(m,l)=>{var _,f,h,g,k,C;const V=M,v=O,x=L("CfNavigationLevel2content"),j=L("CfBanner"),D=z;return e(),n("div",P,[s("div",{class:"container xl:grid xl:grid-cols-5 xl:gap-10 xl:py-10",onMouseleave:y},[s("div",{class:"mb-6 md:mb-0",onClick:c},[s("div",R,[s("button",{type:"button",class:"btn-reset sticky top-0 flex w-full items-center justify-start text-xl xl:hidden",onClick:l[0]||(l[0]=r=>m.$emit("close"))},[d(V,{class:"mr-6 h-3 w-3.5"}),s("span",null,p(a.category.name),1)])]),t(b)?(e(),n("div",W,p(m.$t("main_nav.shopby")),1)):i("",!0),s("ul",G,[(e(!0),n(F,null,H(a.category.children,r=>{var w;return e(),n("li",{key:r.path},[d(v,{to:((w=r.shopLevelCustomData)==null?void 0:w.redirectUrl)||r.path,class:"flex h-10 items-center underline-offset-4 hover:underline xl:h-7"},{default:N(()=>[B(p(r.name),1)]),_:2},1032,["to"])])}),128)),s("li",null,[d(v,{to:a.category.path,class:"flex h-10 items-center font-bold underline-offset-4 hover:underline"},{default:N(()=>[B(" Alle "+p(a.category.name),1)]),_:1},8,["to"])])])]),s("div",{class:"xl:mb-0",onClick:c},[(_=t(o))!=null&&_.column2?(e(),n("div",J,[t(o).column2.sys.contentType.sys.id==="navigationLevel2content"?(e(),u(x,{key:0,class:"-mx-6 mb-4 border-b px-6 pb-4 xl:border-none",data:t(o).column2},null,8,["data"])):i("",!0)])):(e(),n("div",K))]),s("div",{class:"xl:mb-0",onClick:c},[(f=t(o))!=null&&f.column3?(e(),n("div",Q,[t(o).column3.sys.contentType.sys.id==="navigationLevel2content"?(e(),u(x,{key:0,class:"-mx-6 mb-4 border-b px-6 pb-4 xl:border-none",data:t(o).column3},null,8,["data"])):i("",!0),t(o).column4&&((k=(g=(h=t(o).column4.sys)==null?void 0:h.contentType)==null?void 0:g.sys)==null?void 0:k.id)==="navigationLevel2content"?(e(),u(x,{key:1,class:"-mx-6 mb-4 border-b px-6 pb-4 xl:mt-[1.4rem] xl:border-none",data:t(o).column4},null,8,["data"])):i("",!0)])):(e(),n("div",X))]),s("div",{class:"col-span-2 xl:mb-0",onClick:c},[(C=t(o))!=null&&C.column5?(e(),n("div",Z,[t(o).column5.sys.contentType.sys.id==="banner"?(e(),u(j,{key:0,class:"-mx-6 -mt-5 mb-5 border-t-[50px] border-white xl:border-none",data:t(o).column5},null,8,["data"])):i("",!0)])):(e(),n("div",ee))])],32),d(D,{class:"xl:hidden"})])}}});export{ke as default};