import{_ as C}from"./logo.084e5d7c.js";import{t as I,b as r,eu as y,eE as w,eF as B,e as h,d as k,eA as L,a as D,u as e,c,bu as S,w as t,f as a,aq as l,eD as i,bU as f,cE as b,cA as N,eH as E,eC as V,eY as R,a_ as F,ew as H}from"./outputWidgets.91878a00.js";import{b as g}from"./router.77bfbaae.js";import{a as P}from"./asyncComputed.6ced1d7b.js";import{A as T,B as U,a as $,c as j}from"./index.2b74a3c8.js";import{c as q}from"./Text.24e27494.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="555de92e-27bc-4644-8499-2b772f453e04",o._sentryDebugIdIdentifier="sentry-dbid-555de92e-27bc-4644-8499-2b772f453e04")}catch{}})();const M={},A=o=>(w("data-v-439be421"),o=o(),B(),o),Y={class:"logo"},z=A(()=>h("img",{class:"logo-img",src:C,alt:"Abstra cloud logo"},null,-1)),G=A(()=>h("span",null,"Abstra Cloud",-1)),J=[z,G];function K(o,s){return r(),y("div",Y,J)}const O=I(M,[["render",K],["__scopeId","data-v-439be421"]]),Q=k({__name:"LoginBlock",setup(o){function s(p){const m=p.split("@")[0];return E.exports.kebabCase(m).toUpperCase().split("-").slice(0,2).map(_=>_[0]).join("")}const u=L(),{result:n,loading:d,refetch:v}=P(async()=>g.getAuthor());function x(){g.removeAuthor(),v(),u.push({name:"login"})}return(p,m)=>{const _=D("router-link");return e(d)?(r(),c(e(S),{key:0})):e(n)?(r(),c(e(N),{key:1,placement:"bottomRight"},{content:t(()=>[a(e(b),{direction:"vertical"},{default:t(()=>[a(e(q),null,{default:t(()=>[l(i(e(n).claims.email),1)]),_:1}),a(e(f),{onClick:x},{default:t(()=>[l("Logout")]),_:1})]),_:1})]),default:t(()=>[a(e(b),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(T),null,{default:t(()=>[l(i(s(e(n).claims.email)),1)]),_:1})]),_:1})]),_:1})):(r(),c(e(f),{key:2},{default:t(()=>[a(_,{to:"/login"},{default:t(()=>[l("Login")]),_:1})]),_:1}))}}}),ae=k({__name:"Navbar",props:{breadcrumb:{}},setup(o){return(s,u)=>(r(),c(e(j),{style:{padding:"5px 10px"}},{breadcrumb:t(()=>[s.breadcrumb?(r(),c(e(U),{key:0},{default:t(()=>[(r(!0),y(F,null,V(s.breadcrumb,(n,d)=>(r(),c(e($),{key:d},{default:t(()=>[a(e(R),{to:n.path},{default:t(()=>[l(i(n.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):H("",!0)]),title:t(()=>[a(O)]),extra:t(()=>[a(Q)]),_:1}))}});export{ae as _};
//# sourceMappingURL=Navbar.vue_vue_type_script_setup_true_lang.2c29c19f.js.map
