1import{n as e}from"./rolldown-runtime-hePW80VL.js";import{r as t}from"./framework-2k-VFE-j.js";import{et as n}from"./vinext-BUWFV672.js";import{t as r}from"./image-B7NTjdXu.js";import{o as i}from"./config-DFMYrGgH.js";import{n as a}from"./locale-provider-CAsTPxFG.js";import{n as o,t as s}from"./map-app-events-CzaVaHFq.js";import{t as c}from"./link-Cri-SOM8.js";import{t as l}from"./language-switch-D4BIJG2X.js";var u=e({SiteHeader:()=>m}),d=t(),f=[[`map`,`/map`],[`ranking`,`/map?panel=ranking&type=total`],[`search`,`/map?panel=search`],[`stats`,`/stats`],[`guide`,`/guide`],[`about`,`/about`]],p=[[`guidePage`,`/guide`],[`insights`,`/insights`],[`methodology`,`/methodology`],[`dataSources`,`/data-sources`]];function m(){let e=n(),{href:t,messages:u}=a(),m=i(e),h=m===`/`||m===`/map`,g=e=>{if(!h)return;e.preventDefault();let t=new FormData(e.currentTarget),n=String(t.get(`q`)??``).trim();o(s.mapSearch,{panel:n?`results`:`search`,query:n})},_=(e,t)=>{t.includes(`panel=search`)&&h&&(e.preventDefault(),o(s.mapSearch,{panel:`search`}))};return(0,d.jsx)(`header`,{className:`sticky top-0 z-40 border-b border-slate-200 bg-white/95 backdrop-blur`,children:(0,d.jsxs)(`div`,{className:`mx-auto flex h-16 w-full max-w-7xl items-center justify-between gap-4 px-4 sm:px-6`,children:[(0,d.jsxs)(c,{"aria-label":`${u.common.appName} ${u.common.map}`,className:`flex min-w-0 shrink-0 items-center gap-2`,href:t(`/`),children:[(0,d.jsx)(r,{alt:u.common.appName,className:`h-9 w-auto`,height:481,priority:!0,src:`/logo.svg`,width:1391}),(0,d.jsx)(`span`,{className:`hidden text-xs font-semibold text-blue-700 sm:inline`,children:u.common.publicDataService})]}),h?(0,d.jsxs)(`form`,{action:t(`/map`),className:`hidden min-w-0 flex-1 md:block`,onSubmit:g,children:[(0,d.jsx)(`input`,{name:`panel`,type:`hidden`,value:`results`}),(0,d.jsx)(`input`,{className:`h-11 w-full rounded-full border border-slate-200 bg-slate-50 px-4 text-sm text-slate-950 outline-none transition focus:border-blue-500`,name:`q`,"aria-label":u.map.searchAriaLabel,placeholder:u.map.searchPlaceholder})]}):null,h?(0,d.jsx)(`nav`,{"aria-label":u.common.navigation,className:`pwrmap-control-rail hidden items-center gap-1 overflow-x-auto text-sm font-semibold text-slate-600 sm:flex`,children:f.map(([e,n])=>(0,d.jsx)(c,{className:`inline-flex min-h-11 shrink-0 items-center rounded-full px-3 py-2 transition hover:bg-slate-100 hover:text-slate-950`,href:t(n),onClick:e=>_(e,n),children:u.nav[e]},n))}):(0,d.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,d.jsx)(`nav`,{"aria-label":u.common.contentNavigation,className:`pwrmap-control-rail hidden items-center gap-1 overflow-x-auto text-sm font-semibold text-slate-600 md:flex`,children:p.map(([e,n])=>(0,d.jsx)(c,{className:`shrink-0 rounded-full px-3 py-2 transition ${m===n?`bg-slate-100 text-slate-950`:`hover:bg-slate-100 hover:text-slate-950`}`,href:t(n),children:u.nav[e]},n))}),(0,d.jsx)(c,{className:`shrink-0 rounded-full bg-slate-950 px-4 py-2 text-sm font-bold text-white transition hover:bg-slate-800`,href:t(`/map`),children:u.common.openMap})]}),(0,d.jsx)(l,{compact:!0})]})})}export{u as t};
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.