import{_ as m}from"./AbstraButton.vue_vue_type_script_setup_true_lang.68abc039.js";import{A as C}from"./constants.183cb5c5.js";import{d as x,e5 as S,m as B,u as e,o,a as d,S as w,a5 as A,f as a,b as t,g as s,e as _,da as N,ec as f,bR as b,cN as R,ek as I,eb as L,e$ as D,aR as $,h as k,_ as G}from"./jwt-decode.esm.e2eb277f.js";import{a as T}from"./asyncComputed.b0ce045f.js";import{G as V}from"./PhChats.vue.179d57cd.js";import{F as z}from"./PhSignOut.vue.090ba88d.js";import{j as h,l as j}from"./router.9affa46d.js";import{A as E}from"./index.0f2f9b41.js";import{A as F}from"./index.ff3b06b0.js";import{u as O}from"./omniChatStore.848a1dad.js";import{G as P}from"./PhBookBookmark.vue.7973fa81.js";import{G as U}from"./PhSparkle.vue.c56cad65.js";import{B as q,A as H,b as M}from"./index.3c645dcc.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="93fe3a21-17d0-4147-89ea-c1ba7ada310a",r._sentryDebugIdIdentifier="sentry-dbid-93fe3a21-17d0-4147-89ea-c1ba7ada310a")}catch{}})();const J={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},K={style:{display:"flex","flex-direction":"column",gap:"10px"}},Q={style:{display:"flex",gap:"5px"}},W=x({__name:"LoginBlock",setup(r){function n(y){const g=y.split("@")[0];return I.exports.kebabCase(g).toUpperCase().split("-").slice(0,2).map(c=>c[0]).join("")}const i=S(),{result:l,loading:p,refetch:u}=T(async()=>h.getAuthor());async function v(){await h.logout(),j.shutdown(),u(),i.push({name:"login"})}return(y,g)=>{const c=B("RouterLink");return e(p)?(o(),d(e(w),{key:0})):e(l)?(o(),A("div",J,[a(m,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(V)),s(" Support ")]),_:1}),a(e(R),{placement:"bottomRight"},{content:t(()=>[_("div",K,[a(e(N),{size:"small",type:"secondary"},{default:t(()=>[s(f(e(l).claims.email),1)]),_:1}),a(e(b),{type:"text",onClick:v},{default:t(()=>[_("div",Q,[a(e(z),{size:"20"}),s(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(F),{shape:"square"},{default:t(()=>[s(f(n(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(o(),d(e(b),{key:2},{default:t(()=>[a(c,{to:"/login"},{default:t(()=>[s("Login")]),_:1})]),_:1}))}}}),X={class:"extra"},Y=x({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(r){const n=O();return(i,l)=>(o(),d(e(M),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[i.breadcrumb?(o(),d(e(q),{key:0},{default:t(()=>[(o(!0),A($,null,L(i.breadcrumb,(p,u)=>(o(),d(e(H),{key:u},{default:t(()=>[a(e(D),{to:p.path},{default:t(()=>[s(f(p.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):k("",!0)]),extra:t(()=>[_("div",X,[i.showAiSparkles?(o(),d(m,{key:0,type:"link",onClick:l[0]||(l[0]=p=>e(n).toggle())},{default:t(()=>[a(e(U)),s(" AI Assistant ")]),_:1})):k("",!0),a(m,{href:e(C).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(P)),s(" Docs ")]),_:1},8,["href"]),a(W)])]),_:1}))}});const ce=G(Y,[["__scopeId","data-v-9083334a"]]);export{ce as N};
//# sourceMappingURL=Navbar.4326060e.js.map
