import{d as h,eM as A,r as B,u as e,o,c as i,bk as C,eu as m,b as a,w as t,as as r,bH as d,a as _,cR as w,eA as f,cx as N,R as D,eD as I,fc as S,aE as g,ew as z,dB as L,S as R}from"./vue-router.74c693f1.js";import{a as V}from"./asyncComputed.7b5c3427.js";import{G as $}from"./PhChats.vue.186cf0b3.js";import{F as E}from"./PhSignOut.vue.ebc4d073.js";import{C as T}from"./router.77dea3d2.js";import{a as k}from"./gateway.707771fc.js";import{A as F}from"./index.33768c38.js";import{A as H}from"./index.08822948.js";import{B as M,A as P,b as j}from"./index.adf2c504.js";import{B as q}from"./BookOutlined.7a96a9c1.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="a2707b9c-1894-49d7-8785-90f1cb042557",n._sentryDebugIdIdentifier="sentry-dbid-a2707b9c-1894-49d7-8785-90f1cb042557")}catch{}})();const G={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},O={style:{display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex",gap:"5px"}},J=h({__name:"LoginBlock",setup(n){function s(b){const y=b.split("@")[0];return D.exports.kebabCase(y).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const c=A(),{result:l,loading:u,refetch:x}=V(async()=>k.getAuthor());function v(){k.removeAuthor(),T.shutdown(),x(),c.push({name:"login"})}return(b,y)=>{const p=B("router-link");return e(u)?(o(),i(e(C),{key:0})):e(l)?(o(),m("div",G,[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(()=>[_("div",O,[a(e(w),{size:"small",type:"secondary"},{default:t(()=>[r(f(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[_("div",U,[a(e(E),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(F),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(H),{shape:"square"},{default:t(()=>[r(f(s(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(o(),i(e(d),{key:2},{default:t(()=>[a(p,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),K={class:"extra"},Q=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(s,c)=>(o(),i(e(j),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[s.breadcrumb?(o(),i(e(M),{key:0},{default:t(()=>[(o(!0),m(g,null,I(s.breadcrumb,(l,u)=>(o(),i(e(P),{key:u},{default:t(()=>[a(e(S),{to:l.path},{default:t(()=>[r(f(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):z("",!0)]),extra:t(()=>[_("div",K,[a(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(q))]),default:t(()=>[s.$slots.default?L(s.$slots,"default",{key:0},void 0,!0):(o(),m(g,{key:1},[r("Docs")],64))]),_:3}),a(J)])]),_:3}))}});const ne=R(Q,[["__scopeId","data-v-170b9411"]]);export{ne as N};
//# sourceMappingURL=Navbar.d72cd24c.js.map
