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,bD as S,w as t,f as o,aA as l,eD as i,b$ as m,cL as b,cH as N,eH as V,eC as E,f0 as H,b8 as R,ew as T}from"./outputWidgets.f8f8676d.js";import{a as g}from"./router.b4a342b4.js";import{a as $}from"./asyncComputed.9c91cdf6.js";import{a as F}from"./Text.7ab5366c.js";import{A as P,B as j,a as M,c as U}from"./index.44b02920.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="f143f7fd-c657-4b8c-a8c3-a299f11c266c",a._sentryDebugIdIdentifier="sentry-dbid-f143f7fd-c657-4b8c-a8c3-a299f11c266c")}catch{}})();const q={},A=a=>(w("data-v-439be421"),a=a(),B(),a),z={class:"logo"},G=A(()=>h("img",{class:"logo-img",src:C,alt:"Abstra cloud logo"},null,-1)),J=A(()=>h("span",null,"Abstra Cloud",-1)),K=[G,J];function O(a,s){return r(),y("div",z,K)}const Q=I(q,[["render",O],["__scopeId","data-v-439be421"]]),W=k({__name:"LoginBlock",setup(a){function s(p){const f=p.split("@")[0];return V.exports.kebabCase(f).toUpperCase().split("-").slice(0,2).map(_=>_[0]).join("")}const u=L(),{result:n,loading:d,refetch:v}=$(async()=>g.getAuthor());function x(){g.removeAuthor(),v(),u.push({name:"login"})}return(p,f)=>{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(()=>[o(e(b),{direction:"vertical"},{default:t(()=>[o(e(F),null,{default:t(()=>[l(i(e(n).claims.email),1)]),_:1}),o(e(m),{onClick:x},{default:t(()=>[l("Logout")]),_:1})]),_:1})]),default:t(()=>[o(e(b),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[o(e(P),null,{default:t(()=>[l(i(s(e(n).claims.email)),1)]),_:1})]),_:1})]),_:1})):(r(),c(e(m),{key:2},{default:t(()=>[o(_,{to:"/login"},{default:t(()=>[l("Login")]),_:1})]),_:1}))}}}),oe=k({__name:"Navbar",props:{breadcrumb:{}},setup(a){return(s,u)=>(r(),c(e(U),{style:{padding:"5px 10px"}},{breadcrumb:t(()=>[s.breadcrumb?(r(),c(e(j),{key:0},{default:t(()=>[(r(!0),y(R,null,E(s.breadcrumb,(n,d)=>(r(),c(e(M),{key:d},{default:t(()=>[o(e(H),{to:n.path},{default:t(()=>[l(i(n.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):T("",!0)]),title:t(()=>[o(Q)]),extra:t(()=>[o(W)]),_:1}))}});export{oe as _};
//# sourceMappingURL=Navbar.vue_vue_type_script_setup_true_lang.629f3f60.js.map
