1import{r as w,h as c,u as N,gT as v,bN as y,cQ as C,j as e,_ as D,cS as g,m5 as k,n7 as I,af as S,n8 as z,cD as a,cX as d,cV as M,cW as _,d7 as P,n9 as E,Z as O,na as T,nb as L,ec as W}from"./index-B79jx0QH.js";import{D as B,a as F,b as U,c as r}from"./dropdown-menu-DOfBs0uf.js";import{h as p}from"./utils-C0zhjdft.js";import"./index-DnQZnmdU.js";import"./index-Zo-lXBHX.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="5fb6fd64-d31b-4692-aea3-d37f1dba732f",t._sentryDebugIdIdentifier="sentry-dbid-5fb6fd64-d31b-4692-aea3-d37f1dba732f")}catch{}})();function Q(){const[t,n]=w.useState(!1),x=c(s=>s.formDirtyMap),m=N(),u=v(),o=async(s,l)=>{if(l!=null&&l.includes("/configuration/global-settings")){m(l??"#"),n(!1),c.getState().setFormDirtyMap({});return}s.preventDefault();const b=Object.values(x).find(j=>j);let f=!0;b&&(f=await W("You have made changes, are you sure you want to navigate away without saving?")),f&&(m(l??"#"),n(!1),c.getState().setFormDirtyMap({}))},i=y(),h=C(s=>s.changelogResponse);return e.jsxs(B,{open:t,onOpenChange:n,children:[e.jsx(F,{asChild:!0,children:e.jsxs(D,{variant:"outline",className:"p-0 w-7 h-7 relative bg-[var(--color-card-bg-light)] dark:bg-[var(--color-kanban-bg)]",children:[p(h)?e.jsx(g,{className:"absolute -top-6 left-1 text-color-text-error",size:45}):null,e.jsx(k,{size:14})]})}),e.jsxs(U,{align:"start",className:"min-w-[150px]",children:[i!=null&&i.thenaInternalDashboard&&!u?e.jsxs(r,{onClick:s=>o(s,"/internal-dashboard"),children:[e.jsx(I,{size:14,className:"mr-2"}),"Internal dashboard"]}):null,u?null:e.jsxs(r,{onClick:s=>{o(s,"/whats-new"),S("whats_new_page",{})},className:"relative flex",children:[p(h)?e.jsx(g,{className:"absolute inline-flex h-full w-full text-color-text-error top-0 left-3",size:60}):null,e.jsx(z,{size:14,className:"mr-2"}),"What's new",e.jsxs("div",{className:"flex items-center ml-auto",children:[e.jsx(a,{Icon:d,className:"w-6 h-6",iconClassName:"text-[var(--text-disabled)]"})," ",e.jsx(a,{text:"W",className:"w-6 h-6 ml-1 text-[var(--text-disabled)]"})]})]}),e.jsxs(r,{className:"flex gap-6",onClick:s=>o(s,"/shortcuts"),children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(M,{size:14,className:"mr-2"}),"Shortcuts"," "]}),e.jsxs("div",{className:"ml-auto flex items-center",children:[e.jsx(a,{Icon:_,className:"w-6 h-6 mr-1",iconClassName:"text-[var(--text-disabled)]"})," ",e.jsx(a,{Icon:d,className:"w-6 h-6",iconClassName:"text-[var(--text-disabled)]"})," ",e.jsx(a,{text:"S",className:"w-6 h-6 ml-1 text-[var(--text-disabled)]"})]})]}),e.jsxs(r,{className:"flex gap-4",onClick:s=>o(s,"/user-preferences"),children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(P,{size:14,className:"mr-2"}),"Preferences"," "]}),e.jsxs("div",{className:"ml-auto flex items-center",children:[e.jsx(a,{Icon:d,className:"w-6 h-6",iconClassName:"text-[var(--text-disabled)] "})," ",e.jsx(a,{text:"P",className:"w-6 h-6 ml-1 text-[var(--text-disabled)]"})]})]}),e.jsxs(r,{onClick:s=>window.open("https://status.thena.ai/","_blank"),children:[e.jsx(E,{size:14,className:"mr-2"}),"Status"]}),e.jsx(O,{className:"my-1",orientation:"horizontal"}),e.jsxs(r,{onClick:()=>T(!0,!0),children:[e.jsx(L,{size:14,className:"mr-2"}),"Logout"]})]})]})}export{Q as default};
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.