import{d as k,eN as A,r as B,u as e,o as s,c as i,bp as C,W as m,b as a,w as t,ax as r,bL as d,a as f,cV as L,eA as _,cB as N,eL as w,eD as D,fd as I,aJ as g,R,Z as z,$ as S}from"./vue-router.b2844dbd.js";import{a as V}from"./asyncComputed.6438c00c.js";import{G as $}from"./PhChats.vue.3400ebdd.js";import{F as T}from"./PhSignOut.vue.ca5bf4c9.js";import{C as E}from"./router.b69b216e.js";import{a as h}from"./gateway.635f7051.js";import{A as F}from"./index.a19b8d23.js";import{A as P}from"./index.4500414e.js";import{B as j,A as q,b as G}from"./index.64d5641c.js";import{B as H}from"./BookOutlined.f244a583.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="a3b1b2ae-1120-4973-8d2e-96c27e746ac8",n._sentryDebugIdIdentifier="sentry-dbid-a3b1b2ae-1120-4973-8d2e-96c27e746ac8")}catch{}})();const J={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},M={style:{display:"flex","flex-direction":"column",gap:"10px"}},O={style:{display:"flex",gap:"5px"}},U=k({__name:"LoginBlock",setup(n){function o(y){const b=y.split("@")[0];return w.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(u=>u[0]).join("")}const c=A(),{result:l,loading:p,refetch:x}=V(async()=>h.getAuthor());function v(){h.removeAuthor(),E.shutdown(),x(),c.push({name:"login"})}return(y,b)=>{const u=B("RouterLink");return e(p)?(s(),i(e(C),{key:0})):e(l)?(s(),m("div",J,[a(e(d),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[a(e($),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(N),{placement:"bottomRight"},{content:t(()=>[f("div",M,[a(e(L),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[f("div",O,[a(e(T),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(F),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(P),{shape:"square"},{default:t(()=>[r(_(o(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(s(),i(e(d),{key:2},{default:t(()=>[a(u,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),W={class:"extra"},Z=k({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),i(e(G),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),i(e(j),{key:0},{default:t(()=>[(s(!0),m(g,null,D(o.breadcrumb,(l,p)=>(s(),i(e(q),{key:p},{default:t(()=>[a(e(I),{to:l.path},{default:t(()=>[r(_(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):R("",!0)]),extra:t(()=>[f("div",W,[a(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(H))]),default:t(()=>[o.$slots.default?z(o.$slots,"default",{key:0},void 0,!0):(s(),m(g,{key:1},[r("Docs")],64))]),_:3}),a(U)])]),_:3}))}});const ne=S(Z,[["__scopeId","data-v-5ef7b378"]]);export{ne as N};
//# sourceMappingURL=Navbar.ff829518.js.map
