import{d as h,eH as A,r as B,u as e,o as s,c as i,bp as C,W as f,b as a,w as t,ax as r,bL as d,a as m,cX as w,et as _,cD as L,eF as N,ew as D,f6 as I,aJ as g,R,Z as z,$ as S}from"./vue-router.33ac8cf0.js";import{a as $}from"./asyncComputed.9837140d.js";import{G as V}from"./PhChats.vue.d63e67b7.js";import{F}from"./PhSignOut.vue.8dcabe1f.js";import{C as T}from"./router.431f1655.js";import{a as k}from"./gateway.b01778f9.js";import{A as E}from"./index.f737d7de.js";import{A as H}from"./index.705caec9.js";import{B as P,A as j,b as q}from"./index.205f240d.js";import{B as G}from"./BookOutlined.c6692cb9.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]="c01a9d5e-e4d1-4614-8edf-cc4cd92f633b",n._sentryDebugIdIdentifier="sentry-dbid-c01a9d5e-e4d1-4614-8edf-cc4cd92f633b")}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=h({__name:"LoginBlock",setup(n){function o(y){const b=y.split("@")[0];return N.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(u=>u[0]).join("")}const c=A(),{result:l,loading:p,refetch:x}=$(async()=>k.getAuthor());function v(){k.removeAuthor(),T.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(),f("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(V),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(L),{placement:"bottomRight"},{content:t(()=>[m("div",M,[a(e(w),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[m("div",O,[a(e(F),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(H),{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"},X=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),i(e(q),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),i(e(P),{key:0},{default:t(()=>[(s(!0),f(g,null,D(o.breadcrumb,(l,p)=>(s(),i(e(j),{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(()=>[m("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(G))]),default:t(()=>[o.$slots.default?z(o.$slots,"default",{key:0},void 0,!0):(s(),f(g,{key:1},[r("Docs")],64))]),_:3}),a(U)])]),_:3}))}});const ne=S(X,[["__scopeId","data-v-5ef7b378"]]);export{ne as N};
//# sourceMappingURL=Navbar.0073d33b.js.map
