1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,r as n}from"./framework-DJH1pfSr.js";import{t as r}from"./navigation-DK41M7fL.js";import{t as i}from"./locale-selector-qZGLYrKo.js";import{a}from"./track-BUg7VPxk.js";import{n as o}from"./auth-modal-provider-DuyXTIp9.js";var s=e(t(),1),c=n();function l({navLinks:e,loginLabel:t,brand:n,desktopNav:l}){let{openAuth:u}=o(),[d,f]=(0,s.useState)(!1),p=()=>{a(`cta_click`,{location:`nav`,target:`auth`}),u({mode:`sign-in`,source:`header`})};return(0,c.jsxs)(`header`,{className:`amt-paper-hatch w-full border-b-[3px] border-[var(--amt-ink)] shadow-[4px_4px_0_0_var(--amt-ink)]`,children:[(0,c.jsxs)(`nav`,{className:`mx-auto flex h-[68px] max-w-7xl items-center gap-3 px-4 md:h-[76px] md:gap-4 md:px-6`,children:[(0,c.jsx)(`div`,{className:`flex min-w-0 shrink`,onClick:()=>f(!1),children:n}),l,(0,c.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-2 sm:gap-3`,children:[(0,c.jsx)(i,{variant:`pill`,className:`amt-label h-8 gap-1 rounded-none border-2 border-[var(--amt-ink)] bg-[var(--amt-paper)] pr-5 pl-1.5 text-[12px] whitespace-nowrap text-[var(--amt-ink)] shadow-[3px_3px_0_0_var(--amt-ink)]`}),(0,c.jsx)(`button`,{type:`button`,onClick:p,className:`inline-flex h-9 items-center border-2 border-[var(--amt-ink)] bg-[var(--amt-accent)] px-3 text-[11px] font-bold tracking-wider whitespace-nowrap text-white uppercase shadow-[4px_4px_0_0_var(--amt-ink)] transition-all active:translate-x-1 active:translate-y-1 active:shadow-none sm:px-4 sm:text-[12px]`,children:t}),(0,c.jsxs)(`button`,{type:`button`,className:`inline-flex size-9 items-center justify-center border-2 border-[var(--amt-ink)] bg-[var(--amt-paper)] text-[var(--amt-ink)] xl:hidden`,"aria-expanded":d,"aria-label":d?`Close menu`:`Open menu`,onClick:()=>f(e=>!e),children:[(0,c.jsx)(`span`,{className:`sr-only`,children:`Menu`}),(0,c.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 20 20`,fill:`none`,children:d?(0,c.jsx)(`path`,{d:`M5 5l10 10M15 5L5 15`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`path`,{d:`M3.5 5.5h13`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`M3.5 10h13`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`M3.5 14.5h13`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})]})})]})]})]}),d?(0,c.jsx)(`div`,{className:`border-t-[3px] border-[var(--amt-ink)] bg-[var(--amt-bg-elevated)] px-5 py-4 xl:hidden`,children:(0,c.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[e.map(e=>{let t=`amt-label inline-flex items-center gap-1.5 py-1 text-[14px] text-[var(--amt-ink)]`,n=e.badge?(0,c.jsx)(`span`,{className:`rounded-sm border border-[var(--amt-ink)] bg-[var(--amt-accent)] px-1.5 py-0.5 text-[9px] leading-none font-black text-white uppercase`,children:e.badge}):null;return e.external?(0,c.jsxs)(`a`,{href:e.href,className:t,onClick:()=>f(!1),children:[e.label,n]},e.href):(0,c.jsxs)(r,{href:e.href,className:t,onClick:()=>f(!1),children:[e.label,n]},e.href)}),(0,c.jsx)(`button`,{type:`button`,className:`amt-btn-primary mt-1 text-[13px]`,onClick:()=>{f(!1),p()},children:t})]})}):null]})}export{l as HeaderClient};
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.