const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CtO69uG5.js","./5KckzC-e.js","./CK7PcqCV.js","./swiper-vue.DkamF7u-.css","./entry.Dwiiwbi_.css","./DVvafjbO.js"])))=>i.map(i=>d[i]);
import{u as I,s as J,a as w,_ as R,z as U,t as h,J as H}from"./5KckzC-e.js";import{l as z,b as D,c as Q,O as a,Q as l,R as i,Y as s,P as d,$ as C,a0 as u,U as V,u as t,V as r,W as f,Z as g,J as N,S as W,X as E}from"./CK7PcqCV.js";const X=N(()=>H(()=>import("./CtO69uG5.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(p=>p.default||p)),Y=N(()=>H(()=>import("./DVvafjbO.js"),__vite__mapDeps([5,2,3,1,4]),import.meta.url).then(p=>p.default||p)),Z={class:"w-screen h-full flex flex-col"},q={class:"flex flex-col justify-center text-2xl py-4"},G=["aria-label","onClick","onKeydown"],k={key:0},b={class:"w-screen flex flex-col"},L=["aria-label"],ee={class:"w-10 h-auto"},te={class:"text-2xl"},oe={class:"grid grid-cols-2 gap-8 py-8 px-6"},le={key:0,class:"flex flex-col gap-4 text-lg"},ae={key:0,class:"mb-2 opacity-40"},ce={key:1,class:"flex flex-col gap-4 text-lg"},ne={key:0,class:"mb-2 opacity-40"},ie={__name:"menu",setup(p){const _=I(),{mobileMenuOpen:S}=J(_),m=z(()=>_.toggleMobileMenuOpen),B=z(()=>{var y;return(y=_==null?void 0:_.mobileNavigation)==null?void 0:y.links}),o=D(null),v=D(!1);function K(){v.value?o.value=null:o.value={title:"Help"},v.value=!v.value}return Q(S,(y,c)=>{o.value=null,y?document.body.classList.add("--lock-scroll"):document.body.classList.remove("--lock-scroll")}),(y,c)=>{var T,$,O,M;const P=R,A=X,j=U,x=R,F=Y;return l(),a("div",{class:E(["mobile-menu fixed left-0 z-40 w-screen overflow-y-scroll overflow-x-hidden bg-white",t(_).mobileMenuOpen?"opacity-100":"opacity-0 pointer-events-none"])},[i("div",{class:E(["mobile-menu__inner flex transition-transform duration-200",t(o)&&"-translate-x-1/2"])},[i("div",Z,[i("div",q,[(l(!0),a(C,null,u(t(B),e=>(l(),a("div",{key:e._key,class:"flex justify-between cursor-pointer px-6 py-4","aria-label":`Open ${e.title} menu`,onClick:n=>e.hasDropdown?o.value=e:t(m)(),onKeydown:V(n=>e.hasDropdown?o.value=e:t(m)(),["enter"])},[e.hasDropdown?(l(),a("div",k,r(e.title),1)):(l(),s(P,{key:1,to:t(w)(e==null?void 0:e.linkType,e==null?void 0:e.slug)},{default:f(()=>[g(r(e.title),1)]),_:2},1032,["to"]))],40,G))),128))]),t(_).mobileMenuOpen?(l(),s(A,{key:0,onToggleHelp:K})):d("",!0)]),i("div",b,[t(o)?(l(),a("div",{key:0,"aria-label":`Close ${t(o).title} menu`,class:"col-span-2 flex items-center cursor-pointer px-6 py-4 border-b",onClick:c[0]||(c[0]=e=>(o.value=null,v.value=!1)),onKeydown:c[1]||(c[1]=V(e=>(o.value=null,v.value=!1),["enter"]))},[i("div",ee,[W(j,{name:"arrow-right",class:"rotate-180 w-full h-auto max-h-full"})]),i("div",te,r(t(o).title),1)],40,L)):d("",!0),i("div",oe,[t(o)&&(($=(T=t(o))==null?void 0:T.columnLeft)==null?void 0:$.length)>0?(l(),a("div",le,[t(o).columLeftTitle?(l(),a("div",ae,r(t(o).columLeftTitle),1)):d("",!0),(l(!0),a(C,null,u(t(o).columnLeft,e=>(l(),a("div",{key:e._key,onClick:c[2]||(c[2]=(...n)=>t(m)&&t(m)(...n))},[e!=null&&e.storyLinkToggle?(l(),s(x,{key:0,onClick:n=>t(h)("navigation_click","navigation_type","main mobile",e==null?void 0:e.title,"navigation_top_selection",t(o).title),to:e==null?void 0:e.storyLink},{default:f(()=>[g(r(e==null?void 0:e.title),1)]),_:2},1032,["onClick","to"])):(l(),s(x,{key:1,onClick:n=>t(h)("navigation_click","navigation_type","main mobile",e==null?void 0:e.title,"navigation_top_selection",t(o).title),to:t(w)(e==null?void 0:e.linkType,e==null?void 0:e.slug)},{default:f(()=>[g(r(e==null?void 0:e.title),1)]),_:2},1032,["onClick","to"]))]))),128))])):d("",!0),t(o)&&((M=(O=t(o))==null?void 0:O.columnRight)==null?void 0:M.length)>0?(l(),a("div",ce,[t(o).columRightTitle?(l(),a("div",ne,r(t(o).columRightTitle),1)):d("",!0),(l(!0),a(C,null,u(t(o).columnRight,e=>(l(),a("div",{key:e._key,onClick:c[3]||(c[3]=(...n)=>t(m)&&t(m)(...n))},[e!=null&&e.storyLinkToggle?(l(),s(x,{key:0,to:e==null?void 0:e.storyLink,onClick:n=>t(h)("navigation_click","navigation_type","main mobile",e==null?void 0:e.title,"navigation_top_selection",t(o).title)},{default:f(()=>[g(r(e==null?void 0:e.title),1)]),_:2},1032,["to","onClick"])):(l(),s(x,{key:1,to:t(w)(e==null?void 0:e.linkType,e==null?void 0:e.slug),onClick:n=>t(h)("navigation_click","navigation_type","main mobile",e==null?void 0:e.title,"navigation_top_selection",t(o).title)},{default:f(()=>[g(r(e==null?void 0:e.title),1)]),_:2},1032,["to","onClick"]))]))),128))])):d("",!0)]),t(v)?(l(),s(F,{key:1})):d("",!0)])],2)],2)}}};export{ie as default};
