(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96086,(e,s,t)=>{s.exports=e.r(9187)},59950,e=>{"use strict";var s=e.i(48277),t=e.i(40206),l=e.i(96086);let a=[{href:"/chat",label:"Chat",fullOnly:!0},{href:"/history",label:"History",fullOnly:!0},{href:"/results",label:"Results"},{href:"/data",label:"Data"},{href:"/optimizations",label:"Optimized"}];e.s(["default",0,function(){let{user:e,logoutUrl:n,mode:i}=(0,t.useAuth)(),r=(0,l.useRouter)(),o=(0,l.usePathname)(),c=a.filter(e=>!("viewer"===i&&e.fullOnly));return(0,s.jsx)("header",{className:"relative border-b border-rule bg-ink",children:(0,s.jsxs)("div",{className:"flex items-center justify-between px-6 py-3",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-4",children:[(0,s.jsx)("span",{className:"font-display text-xl italic leading-none text-bone",children:"Observatory"}),(0,s.jsx)("span",{className:"hidden h-3 w-px bg-rule sm:inline-block","aria-hidden":!0}),(0,s.jsx)("span",{className:"eyebrow hidden sm:inline-block",children:"LLM Evaluation"})]}),(0,s.jsx)("nav",{className:"absolute left-1/2 -translate-x-1/2",children:(0,s.jsx)("ul",{className:"flex items-center gap-1",children:c.map(e=>{let t=o?.startsWith(e.href);return(0,s.jsx)("li",{children:(0,s.jsxs)("button",{onClick:()=>r.push(e.href),className:`relative px-3 py-2 font-mono text-[11px] uppercase tracking-eyebrow transition-colors ${t?"text-bone":"text-bone-mute hover:text-bone-dim"}`,children:[e.label,t&&(0,s.jsx)("span",{className:"absolute inset-x-3 -bottom-px h-px bg-ember","aria-hidden":!0})]})},e.href)})})}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[e?.name&&(0,s.jsxs)("span",{className:"hidden font-mono text-[11px] text-bone-dim sm:inline-block",children:[(0,s.jsx)("span",{className:"text-bone-mute",children:"SIGNED"})," ",(0,s.jsx)("span",{className:"text-bone",children:e.name})]}),"viewer"!==i&&(0,s.jsx)("button",{onClick:()=>{window.location.href=n},className:"eyebrow border border-rule px-3 py-1.5 transition-colors hover:border-bone-mute hover:text-bone-dim",children:"Sign out"})]})]})})}])}]);