1import{j as r}from"./vendor-query-CniT1WJL.js";import{u as A,L as p}from"./vendor-react-69GsFwrV.js";import{u as I,bQ as S,bR as C,bS as l,S as H,b as z,c as D,d as M,e as u,f as d,bT as L,bU as O,bV as P,bW as x}from"./index-KjAD5lCC.js";import{af as T}from"./vendor-ui-Ad3ANzF6.js";function E({className:h}){const[n,b]=A(),{isAuthenticated:f}=I(),s=S(typeof window>"u"?"":window.location.hostname),v=s.items.some(e=>e.partnerOnly),{data:g}=C(f&&v),j=!!g?.status,o=s.items.filter(e=>!e.partnerOnly||j),y=o.find(e=>l(e.href,n,s.rootHref))??o[0],m=o.filter(e=>s.primaryHrefs.includes(e.href)),c=o.filter(e=>!m.some(t=>t.href===e.href)),N=c.some(e=>l(e.href,n,s.rootHref)),w=s.externalItems.some(e=>e.url==="/app"&&n.startsWith("/app")),k=c.length>0||s.externalItems.length>0;return r.jsx("nav",{"aria-label":"Account sections",className:d("sticky top-[var(--vp-header-h,0px)] z-30 border-b border-card-border bg-bone/95 backdrop-blur supports-[backdrop-filter]:bg-bone/80",h),children:r.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-2.5",children:[r.jsxs("div",{className:"relative block tools-shell:hidden",children:[r.jsx("span",{className:"sr-only",children:"Account section"}),r.jsxs(H,{value:y?.href??s.rootHref,onValueChange:e=>{e.startsWith("http")?window.location.assign(e):b(e)},children:[r.jsx(z,{"aria-label":"Account section",className:"h-11 w-full rounded-pill border border-card-border bg-card px-4 pr-10 text-sm font-semibold text-ink shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","data-testid":"accountnav-mobile-select",children:r.jsx(D,{})}),r.jsxs(M,{children:[o.map(({href:e,longLabel:t})=>r.jsx(u,{value:e,children:t},e)),s.externalItems.map(({url:e,label:t})=>r.jsxs(u,{value:e,children:[t," â"]},e))]})]})]}),r.jsxs("div",{className:"hidden items-center justify-center gap-2 tools-shell:flex",children:[m.map(({href:e,icon:t,label:a})=>{const i=l(e,n,s.rootHref);return r.jsxs(p,{href:e,"aria-current":i?"page":void 0,title:a,"data-testid":`accountnav${e.replace(/\//g,"-")}`,className:d("flex shrink-0 items-center justify-center gap-1.5 rounded-pill border px-3 py-2 text-[13px] font-semibold","motion-safe:transition-[colors,transform] active:scale-[0.97]",i?"border-primary bg-primary text-primary-foreground":"border-card-border bg-card text-ink-2 hover:bg-muted hover:text-ink"),children:[r.jsx(t,{className:d("size-4 shrink-0",i?"text-primary-foreground":"text-primary"),"aria-hidden":"true"}),r.jsx("span",{children:a})]},e)}),k&&r.jsxs(L,{children:[r.jsxs(O,{className:d("flex shrink-0 items-center justify-center gap-1.5 rounded-pill border px-3 py-2 text-[13px] font-semibold","motion-safe:transition-[colors,transform] active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",N||w?"border-primary bg-primary text-primary-foreground":"border-card-border bg-card text-ink-2 hover:bg-muted hover:text-ink"),"data-testid":"accountnav-more",children:["More",r.jsx(T,{className:"size-4","aria-hidden":"true"})]}),r.jsxs(P,{align:"end",className:"w-56 rounded-2xl p-1.5",children:[c.map(({href:e,icon:t,longLabel:a})=>{const i=l(e,n,s.rootHref);return r.jsx(x,{asChild:!0,className:"gap-2.5 rounded-xl py-2",children:r.jsxs(p,{href:e,"aria-current":i?"page":void 0,children:[r.jsx(t,{className:"size-4 text-ink-3","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:a})]})},e)}),c.length>0&&s.externalItems.length>0?r.jsx("div",{className:"mx-2 my-1.5 border-t border-card-border","aria-hidden":"true"}):null,s.externalItems.map(({url:e,icon:t,label:a})=>r.jsx(x,{asChild:!0,className:"gap-2.5 rounded-xl py-2",children:r.jsxs("a",{href:e,children:[r.jsx(t,{className:"size-4 text-ink-3","aria-hidden":"true"}),r.jsx("span",{className:"text-sm",children:a})]})},e))]})]})]})]})})}export{E as A};
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.