1import{d as j,c as V,l as r,r as e,t as k,C as _,x as m,m as a,F as b,y as $,k as i,G as v,D as P,o,E as U,B as A,I as w,A as D,J as G,n as O}from"./BKXu5M1S.js";import R from"./CG3BQJOw.js";import H from"./CCilmWUb.js";import{u as J}from"./CMzcmyTj.js";import"./CDzCW9ys.js";import"./DlAUqK2U.js";const q={class:"bg-primary dark:bg-secondary top-8 z-50 w-full px-5 py-4 text-black dark:text-white"},K={class:"grid grid-cols-12 gap-y-4 sm:container sm:mx-auto"},Q={id:"logo",class:"col-span-6 flex items-center md:col-span-4 lg:col-span-3 xl:col-span-3"},W=["src"],X={class:"hidden items-center md:pl-3 lg:col-span-3 lg:flex"},Y={class:"relative me-6 w-full"},Z={class:"col-span-6 flex items-center justify-end gap-4 md:col-span-8 lg:col-span-6 xl:col-span-6"},E={class:"flex w-full items-center justify-end gap-3"},ee={key:0,"aria-label":"Main navigation",class:"hidden min-w-0 flex-wrap items-center justify-end gap-x-5 gap-y-1 lg:flex"},te={class:"flex content-center gap-2 lg:hidden"},le={class:"swap swap-rotate"},ae=["checked"],oe={key:1,class:"flex content-center gap-2 lg:hidden"},ne={class:"swap swap-rotate"},se=["checked"],ce={class:"grid grid-cols-12 pt-4 sm:container sm:mx-auto"},ie={class:"relative col-span-12 sm:col-span-6"},re=j({__name:"NavMenu",props:{headerLogo:{},homeLink:{},rootSite:{}},setup(t){const{getId:M,resetToRoot:p}=J(),S=t,C=V(),n=w(!1),s=w(!1),y=D(()=>S.rootSite.inlineMenu.length>0),d=()=>{n.value=!1},L=()=>{n.value=!n.value,n.value&&(s.value=!1,p())},g=c=>c.replace(/^\/de(?=\/|$)/,"").replace(/\/$/,"")||"/",z=c=>g(C.path)===g(c.url),N=()=>{s.value=!s.value,s.value&&d()},F=()=>{d(),p()},I=()=>{d(),p()},B=c=>{d(),O({path:c.url})};return(c,u)=>{const f=P,x=R,h=G,T=H;return o(),r("nav",q,[e("div",K,[e("div",Q,[t.headerLogo?(o(),k(f,{key:0,to:t.homeLink,onClick:I},{default:_(()=>[e("img",{src:t.headerLogo,alt:"logo",class:"h-10 w-auto fill-white md:h-16"},null,8,W)]),_:1},8,["to"])):m("",!0)]),e("div",X,[e("div",Y,[a(x,{placeholder:t.rootSite.globalSearchFieldPlaceholder,"fallback-url":t.rootSite.globalSearchFallbackUrl},null,8,["placeholder","fallback-url"])])]),e("div",Z,[e("div",E,[t.rootSite.inlineMenu.length?(o(),r("nav",ee,[(o(!0),r(b,null,$(t.rootSite.inlineMenu,l=>(o(),r(b,{key:i(M)(l)},[l.url&&l.name?(o(),k(f,{key:0,to:l.url,target:l.target??"_self",class:v(["text-base font-bold whitespace-nowrap decoration-2 underline-offset-4 transition",z(l)?"text-primary":"text-white hover:text-white hover:underline"]),onClick:F},{default:_(()=>[U(A(l.name),1)]),_:2},1032,["to","target","class"])):m("",!0)],64))),128))])):m("",!0),e("div",te,[e("label",le,[e("input",{id:"mobile-global-search-toggle",type:"checkbox",class:"hidden",checked:i(s),onChange:N},null,40,ae),a(h,{name:"i-bsg-search",class:"swap-off size-10 text-black dark:text-white",alt:"search"}),a(h,{name:"i-bsg-x",class:"swap-on size-10 text-black dark:text-white",alt:"close search"})])]),i(y)?(o(),r("div",oe,[e("label",ne,[e("input",{id:"mobileMenuCheckbox",type:"checkbox",class:"hidden",checked:i(n),onChange:L},null,40,se),a(h,{name:"i-bsg-menu",class:"swap-off size-10 text-black dark:text-white sm:size-12",alt:"menu"}),a(h,{name:"i-bsg-x",class:"swap-on size-10 text-black dark:text-white sm:size-12",alt:"close"})])])):m("",!0)])])]),a(T,{open:i(n),"menu-items":t.rootSite.inlineMenu,"return-label":t.rootSite.returnLabel,onLinkClicked:B},null,8,["open","menu-items","return-label"]),e("div",{"data-testid":"navbar-search-hidden",class:v(["flex w-full flex-col overflow-hidden text-xl font-semibold transition-all duration-500 xl:hidden",i(s)?"max-h-screen":"max-h-0"])},[e("div",ce,[u[0]||(u[0]=e("div",{class:"col-span-4"},null,-1)),e("div",ie,[a(x,{placeholder:t.rootSite.globalSearchFieldPlaceholder,"fallback-url":t.rootSite.globalSearchFallbackUrl},null,8,["placeholder","fallback-url"])]),u[1]||(u[1]=e("div",{class:"col-span-4"},null,-1))])],2)])}}}),fe=Object.assign(re,{__name:"NavMenu"});export{fe as default};
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.