import{b0 as O,cn as q,_ as z,d as E}from"./BDl4c6dV.js";import{g as F,u as H,_ as P}from"./CMOS3Axe.js";import{j as R,D as S,L as e,O as n,P as s,I as d,U as p,u as t,W as i,H as W,Y,S as T,_ as $,M as u}from"./DGQDO-VU.js";import"./Ccrbh_Jl.js";import"./BTsg9mRw.js";import"./B9zcJ6At.js";import"./DuXmP_XX.js";import"./Dbgu37Rp.js";import"./D2mLcIx-.js";import"./DEi93yrj.js";import"./wYOeH903.js";import"./DLO9F3-k.js";import"./C45-_Pzp.js";import"./BJos1Nb2.js";import"./G_k4rOhO.js";import"./CggM3aGT.js";import"./DewCGe9j.js";import"./WU7YL9Lk.js";import"./DXXt2wMo.js";import"./DdLHI-PN.js";const G={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"},J={class:"sticky top-0 -mx-6 flex h-[50px] items-center border-y bg-white px-6 xl:hidden"},K={key:0,class:"mb-5 text-3xl"},Q={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"},X={key:0},Z={key:1},ee={key:0},te={key:1},oe={key:0},ne={key:1},Le=R({__name:"NavigationLevel3",props:{category:{type:[Object],required:!0}},emits:["close"],setup(a,{emit:A}){const o=F(a.category.path),{xl:b}=O(),{resetSearch:V}=H(),{closeSideNavigation:j}=q(),D=A,y=()=>{b.value&&(D("close"),V(),j())};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,w,L,N;const U=z,v=E,x=S("CfNavigationLevel2content"),I=S("CfBanner"),M=P;return e(),n("div",G,[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",J,[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(U,{class:"mr-6 h-3 w-3.5"}),s("span",null,p(a.category.name),1)])]),t(b)?(e(),n("div",K,p(m.$t("main_nav.shopby")),1)):i("",!0),s("ul",Q,[(e(!0),n(W,null,Y(a.category.children,r=>{var B;return e(),n("li",{key:r.path},[d(v,{to:((B=r.shopLevelCustomData)==null?void 0:B.redirectUrl)||r.path,class:"flex h-10 items-center underline-offset-4 hover:underline xl:h-7"},{default:T(()=>[$(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:T(()=>[$(" Alle "+p(a.category.name),1)]),_:1},8,["to"])])])]),s("div",{class:"xl:mb-0",onClick:c},[(_=t(o))!=null&&_.column2?(e(),n("div",X,[((f=t(o).column2.sys.contentType)==null?void 0:f.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",Z))]),s("div",{class:"xl:mb-0",onClick:c},[(h=t(o))!=null&&h.column3?(e(),n("div",ee,[((g=t(o).column3.sys.contentType)==null?void 0:g.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&&((w=(C=(k=t(o).column4.sys)==null?void 0:k.contentType)==null?void 0:C.sys)==null?void 0:w.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",te))]),s("div",{class:"col-span-2 xl:mb-0",onClick:c},[(L=t(o))!=null&&L.column5?(e(),n("div",oe,[((N=t(o).column5.sys.contentType)==null?void 0:N.sys.id)==="banner"?(e(),u(I,{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",ne))])],32),d(M,{class:"xl:hidden"})])}}});export{Le as default};