1import{Lh as e,Og as t,Oh as n,n_ as r,o_ as i,r_ as a,s_ as o}from"./messages-CFKoGsLP.js";import{r as s,t as c}from"./navigation-Bt8oiVPC.js";import{t as l}from"./check-CWvMqfuJ.js";import{t as u}from"./chevron-down-B2Td79lA.js";import{i as d,n as f,r as p,t as m}from"./locale-ByzJV3Bu.js";import{t as h}from"./settings-hOQi_tTJ.js";import{t as g}from"./shield-BzQ5eWi5.js";import{$ as _,N as v}from"./index-XWt5fkte.js";import{t as y}from"./utils-DXalBF5w.js";import{a as b,i as x,n as S,o as C,r as w,t as T,u as E}from"./dropdown-menu-C5GZCiTo.js";import{n as D,r as O,t as k}from"./avatar-sIgf3dMD.js";var A=v(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),j=o();function M({variant:e=`icon`,className:t}){let n=r();function o(e){i(e)}return(0,j.jsxs)(T,{children:[(0,j.jsx)(E,{className:y(`inline-flex items-center transition-colors outline-none`,e===`icon`?`text-muted-foreground hover:bg-accent hover:text-accent-foreground size-8 justify-center rounded-md`:`h-9 gap-2 rounded-full border px-4 text-sm`,t),children:e===`icon`?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d,{className:`size-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Switch language`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(A,{className:`size-4`}),(0,j.jsx)(`span`,{children:m[n]||n}),(0,j.jsx)(u,{className:`size-4 opacity-70`})]})}),(0,j.jsx)(S,{align:`end`,children:a.map(e=>(0,j.jsxs)(x,{onClick:()=>o(e),className:`flex items-center justify-between gap-2`,children:[m[e]||e,e===n&&(0,j.jsx)(l,{className:`size-3.5`})]},e))})]})}function N({name:r,email:i,image:a}){let o=s(),{data:l}=f(),u=l?.isAdmin===!0;async function d(){await _(),o.push(`/`)}return(0,j.jsxs)(T,{children:[(0,j.jsx)(E,{className:`focus-visible:ring-ring rounded-full outline-none focus-visible:ring-2`,children:(0,j.jsxs)(k,{className:`size-9`,children:[(0,j.jsx)(O,{src:a||void 0,alt:r}),(0,j.jsx)(D,{className:`text-xs`,children:r.charAt(0).toUpperCase()})]})}),(0,j.jsxs)(S,{className:`min-w-56`,align:`end`,sideOffset:8,children:[(0,j.jsx)(w,{children:(0,j.jsx)(b,{className:`p-0 font-normal`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:[(0,j.jsxs)(k,{className:`size-8`,children:[(0,j.jsx)(O,{src:a||void 0,alt:r}),(0,j.jsx)(D,{className:`text-xs`,children:r.charAt(0).toUpperCase()})]}),(0,j.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,j.jsx)(`span`,{className:`truncate font-medium`,children:r}),(0,j.jsx)(`span`,{className:`text-muted-foreground truncate text-xs`,children:i})]})]})})}),(0,j.jsx)(C,{}),(0,j.jsxs)(x,{render:(0,j.jsx)(c,{href:`/settings`}),children:[(0,j.jsx)(h,{className:`size-4`}),n()]}),u&&(0,j.jsxs)(x,{render:(0,j.jsx)(c,{href:`/admin`}),children:[(0,j.jsx)(g,{className:`size-4`}),e()]}),(0,j.jsx)(C,{}),(0,j.jsxs)(x,{onClick:d,children:[(0,j.jsx)(p,{className:`size-4`}),t()]})]})]})}export{M as n,N 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.