import{_ as C}from"./logo.084e5d7c.js";import{v as I,b as r,ev as y,eE as B,eF as w,e as h,d as k,eA as L,a as D,u as e,c,bg as S,w as t,f as a,aq as l,eD as i,bO as m,cC as b,cy as N,eL as V,eC as E,f2 as R,bq as T,ex as q}from"./outputWidgets.ed48fa42.js";import{b as g}from"./router.1b12d634.js";import{a as F}from"./asyncComputed.bb2b1403.js";import{A as P}from"./Text.b5b9d884.js";import{A as $,B as j,a as H,c as M}from"./index.ce22d79e.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]="dc60fe72-8999-4b2f-850c-7788d1706786",o._sentryDebugIdIdentifier="sentry-dbid-dc60fe72-8999-4b2f-850c-7788d1706786")}catch{}})();const O={},v=o=>(B("data-v-439be421"),o=o(),w(),o),U={class:"logo"},z=v(()=>h("img",{class:"logo-img",src:C,alt:"Abstra cloud logo"},null,-1)),G=v(()=>h("span",null,"Abstra Cloud",-1)),J=[z,G];function K(o,s){return r(),y("div",U,J)}const Q=I(O,[["render",K],["__scopeId","data-v-439be421"]]),W=k({__name:"LoginBlock",setup(o){function s(p){const f=p.split("@")[0];return V.exports.kebabCase(f).toUpperCase().split("-").slice(0,2).map(_=>_[0]).join("")}const d=L(),{result:n,loading:u,refetch:A}=F(async()=>g.getAuthor());function x(){g.removeAuthor(),A(),d.push({name:"login"})}return(p,f)=>{const _=D("router-link");return e(u)?(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(P),null,{default:t(()=>[l(i(e(n).claims.email),1)]),_:1}),a(e(m),{onClick:x},{default:t(()=>[l("Logout")]),_:1})]),_:1})]),default:t(()=>[a(e(b),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e($),null,{default:t(()=>[l(i(s(e(n).claims.email)),1)]),_:1})]),_:1})]),_:1})):(r(),c(e(m),{key:2},{default:t(()=>[a(_,{to:"/login"},{default:t(()=>[l("Login")]),_:1})]),_:1}))}}}),ae=k({__name:"Navbar",props:{breadcrumb:{}},setup(o){return(s,d)=>(r(),c(e(M),{style:{padding:"5px 25px"}},{breadcrumb:t(()=>[s.breadcrumb?(r(),c(e(j),{key:0},{default:t(()=>[(r(!0),y(T,null,E(s.breadcrumb,(n,u)=>(r(),c(e(H),{key:u},{default:t(()=>[a(e(R),{to:n.path},{default:t(()=>[l(i(n.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):q("",!0)]),title:t(()=>[a(Q)]),extra:t(()=>[a(W)]),_:1}))}});export{ae as _};
//# sourceMappingURL=Navbar.vue_vue_type_script_setup_true_lang.a83a88e0.js.map
