import{_ as I}from"./logo.084e5d7c.js";import{E as x,b as r,ey as _,eE as C,eF as w,e as i,d as k,eM as N,a as S,u as e,c,bj as $,f as s,w as t,au as n,bI as d,eJ as f,cG as L,cC as D,B as z,eH as E,f9 as V,aG as y,eA as F,dq as G}from"./outputWidgets.e5f9ffc6.js";import{a as R}from"./asyncComputed.2210bd1a.js";import{G as T}from"./PhChats.vue.159c1659.js";import{F as j}from"./PhSignOut.vue.507253b1.js";import{b as h,c as q}from"./router.dd631582.js";import{A as H}from"./Text.e6c27a3b.js";import{A as M}from"./index.5b4bc824.js";import{B as P,A as J,b as O}from"./index.8d271185.js";import{B as U}from"./BookOutlined.7d01e6a5.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="91217787-c9b8-4180-84c5-64ebc0addc9b",o._sentryDebugIdIdentifier="sentry-dbid-91217787-c9b8-4180-84c5-64ebc0addc9b")}catch{}})();const K={},v=o=>(C("data-v-46e041c1"),o=o(),w(),o),Q={class:"logo"},W=v(()=>i("img",{class:"logo-img",src:I,alt:"Abstra cloud logo"},null,-1)),X=v(()=>i("span",null,"Abstra",-1)),Y=[W,X];function Z(o,a){return r(),_("div",Q,Y)}const ee=x(K,[["render",Z],["__scopeId","data-v-46e041c1"]]),te={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},se={style:{display:"flex","flex-direction":"column",gap:"10px"}},oe={style:{display:"flex",gap:"5px"}},ae=k({__name:"LoginBlock",setup(o){function a(b){const g=b.split("@")[0];return z.exports.kebabCase(g).toUpperCase().split("-").slice(0,2).map(m=>m[0]).join("")}const p=N(),{result:l,loading:u,refetch:A}=R(async()=>h.getAuthor());function B(){h.removeAuthor(),q.shutdown(),A(),p.push({name:"login"})}return(b,g)=>{const m=S("router-link");return e(u)?(r(),c(e($),{key:0})):e(l)?(r(),_("div",te,[s(e(d),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[s(e(T),{size:18})]),default:t(()=>[n(" Support ")]),_:1}),s(e(D),{placement:"bottomRight"},{content:t(()=>[i("div",se,[s(e(H),{size:"small",type:"secondary"},{default:t(()=>[n(f(e(l).claims.email),1)]),_:1}),s(e(d),{type:"text",onClick:B},{default:t(()=>[i("div",oe,[s(e(j),{size:"20"}),n(" Logout ")])]),_:1})])]),default:t(()=>[s(e(L),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[s(e(M),{shape:"square"},{default:t(()=>[n(f(a(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(r(),c(e(d),{key:2},{default:t(()=>[s(m,{to:"/login"},{default:t(()=>[n("Login")]),_:1})]),_:1}))}}}),re={class:"extra"},ne=k({__name:"Navbar",props:{breadcrumb:{}},setup(o){return(a,p)=>(r(),c(e(O),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[a.breadcrumb?(r(),c(e(P),{key:0,style:{margin:"0px 50px"}},{default:t(()=>[(r(!0),_(y,null,E(a.breadcrumb,(l,u)=>(r(),c(e(J),{key:u},{default:t(()=>[s(e(V),{to:l.path},{default:t(()=>[n(f(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):F("",!0)]),title:t(()=>[s(ee)]),extra:t(()=>[i("div",re,[s(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[s(e(U))]),default:t(()=>[a.$slots.default?G(a.$slots,"default",{key:0},void 0,!0):(r(),_(y,{key:1},[n("Docs")],64))]),_:3}),s(ae)])]),_:3}))}});const ge=x(ne,[["__scopeId","data-v-31e2a422"]]);export{ge as N};
//# sourceMappingURL=Navbar.fb207271.js.map
