1import{_ as A}from"./nuxt-link.BAkS_7go.js";import I from"./NavMobileDropdown.nt-rB7wM.js";import{_ as V}from"./UiLanguageSelector.vue.BbVa9cDs.js";import{_ as M}from"./UiGrantDropdown.vue.DOy2l4Md.js";import{a as O}from"./states.CNDvaHbm.js";import{d as j,u as F,r as G,Z as H,Q as P,b as l,i as o,m as s,y as w,g as t,F as z,s as U,e as k,f as c,o as n,n as d,p as W,t as Q}from"./entry.SA0OsS3s.js";import{u as T}from"./useLangAndNav.CU61VmoS.js";import{u as Z}from"./useDrawer.BOebVybd.js";import{L as q}from"./logo.DCTI3SwZ.js";import{L as J}from"./loop.Do7UWQip.js";import{c as K}from"./cross.CiU_E-hF.js";import{C as X}from"./chevron-down.DHyt2NOq.js";const Y={class:"flex flex-col h-full"},ee={class:"relative z-30 container mx-auto grid gap-x-2 items-start h-16 lg:h-24 grid-cols-2 lg:grid-cols-3auto border-b border-base-athens-gray"},ae={class:"flex h-full items-center justify-start"},oe={class:"justify-self-end flex h-full items-center -mr-4 lg:mr-0"},te=["aria-label"],se=["aria-label"],ne=["aria-label"],re={class:"list-none flex flex-col gap-x-1 xl:gap-x-4 whitespace-nowrap px-4"},le={class:"flex items-center justify-between"},ie=["aria-expanded","aria-label","aria-controls","id","onClick"],ce={class:"mt-auto"},de={class:"inline-block"},De=j({__name:"NavMobile",setup(ue){const u=O(),{fullPath:y}=F(),i=G(""),{afterEach:C}=H(),{currentNavigation:D}=T();let r=D();const N=()=>{r.value.forEach(a=>{a.active=!1})},$=a=>{r.value[a].active=!r.value[a].active},{possibleDrawerStates:p,setDrawerOpen:_}=Z(),L=p.SEARCH_DRAWER,v=()=>{N(),_({id:t(p.NAV_MOBILE_DRAWER),open:!1})};P(()=>{i.value=y,C(a=>{i.value=a.fullPath})});const S=()=>{v(),_({id:L,open:!0})};return(a,h)=>{const f=A,B=I,E=V,R=M;return n(),l("div",Y,[o("div",ee,[o("div",ae,[s(f,{to:"/",class:"inline-block","aria-label":a.$t("aria_go_to_frontpage")},{default:w(()=>[s(t(q),{class:"logo max-w-full max-h-full h-logo-h w-logo-w"})]),_:1},8,["aria-label"])]),o("div",oe,[o("button",{type:"button",onClick:h[0]||(h[0]=e=>S()),"aria-label":a.$t("aria_open_search_dialog"),class:"p-4 hover:text-nav-hover"},[s(t(J),{"aria-hidden":"true"})],8,te),o("button",{type:"button",class:"block lg:hidden p-4 hover:text-nav-hover","aria-label":a.$t("aria_open_mobile_nav"),"aria-expanded":"false",onClick:v},[s(t(K),{"aria-hidden":"true"})],8,se)])]),o("nav",{"aria-label":a.$t("aria_nav_main")},[o("ul",re,[(n(!0),l(z,null,U(t(r),(e,m)=>{var b,g,x;return n(),l("li",{key:e.path,class:d(["relative hover:text-nav-hover active:text-nav-active border-t border-base-athens-gray first:border-0",{"has-dropdown":(b=e.children)==null?void 0:b.length,open:e.active}])},[o("div",le,[s(f,{to:e.path,class:d(["mobile-nav-link-item grow text-lg",{"text-nav-active":t(i).includes(e.path)}]),"active-class":"text-nav-active","exact-active-class":"text-nav-exact"},{default:w(()=>[W(Q(e.title),1)]),_:2},1032,["to","class"]),(g=e.children)!=null&&g.length?(n(),l("button",{key:0,type:"button",class:"pr-6 pl-8 py-4 hover:text-nav-hover focus:text-nav-focus transition-transform ease-in-out duration-200 border-l border-base-grey","aria-expanded":e.active,"aria-label":`Show submenu for ${e.title}`,"aria-controls":e.name,id:`${e.name}-dropdown-trigger`,onClick:pe=>$(m)},[o("span",{"aria-hidden":"true",class:d(["inline-block w-[13px] h-auto transition-transform ease-in-out duration-200",{"rotate-180":e.active}])},[s(t(X))],2)],8,ie)):c("",!0)]),s(B,{item:e,index:m,active:!!((x=e.children)!=null&&x.length&&e.active)},null,8,["item","index","active"])],2)}),128))])],8,ne),o("div",ce,[o("div",de,[t(u)?(n(),k(E,{key:0,class:"block",direction:"up",enabledHoverOpen:!1})):c("",!0),t(u)?c("",!0):(n(),k(R,{key:1,class:"block ml-2 mb-2",direction:"up",enabledHoverOpen:!1}))])])])}}});export{De as _};
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.