import{_ as w}from"./logo.084e5d7c.js";import{v as x,b as n,ev as k,eE as B,eF as M,e as A,d as v,eA as D,a as S,u as e,c as l,bg as N,w as t,f as s,ar as i,eD as c,bG as m,cE as g,cA as E,eM as V,eJ as R,ex as y,eC as T,f5 as F,aD as P}from"./outputWidgets.ed989e0a.js";import{b as h}from"./router.5e7d449c.js";import{a as $}from"./asyncComputed.9f78a6df.js";import{A as C}from"./Text.8e13d454.js";import{A as j,B as z,a as G,c as H}from"./index.e56fd585.js";import{A as J}from"./index.08bc448a.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]="961b821d-8317-468f-970b-b0a130bc0a63",o._sentryDebugIdIdentifier="sentry-dbid-961b821d-8317-468f-970b-b0a130bc0a63")}catch{}})();const U={},I=o=>(B("data-v-439be421"),o=o(),M(),o),q={class:"logo"},K=I(()=>A("img",{class:"logo-img",src:w,alt:"Abstra cloud logo"},null,-1)),O=I(()=>A("span",null,"Abstra Cloud",-1)),Q=[K,O];function W(o,a){return n(),k("div",q,Q)}const X=x(U,[["render",W],["__scopeId","data-v-439be421"]]),Y=v({__name:"LoginBlock",setup(o){function a(f){const b=f.split("@")[0];return V.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const u=D(),{result:d,loading:r,refetch:_}=$(async()=>h.getAuthor());function L(){h.removeAuthor(),_(),u.push({name:"login"})}return(f,b)=>{const p=S("router-link");return e(r)?(n(),l(e(N),{key:0})):e(d)?(n(),l(e(E),{key:1,placement:"bottomRight"},{content:t(()=>[s(e(g),{direction:"vertical"},{default:t(()=>[s(e(C),null,{default:t(()=>[i(c(e(d).claims.email),1)]),_:1}),s(e(m),{onClick:L},{default:t(()=>[i("Logout")]),_:1})]),_:1})]),default:t(()=>[s(e(g),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[s(e(j),null,{default:t(()=>[i(c(a(e(d).claims.email)),1)]),_:1})]),_:1})]),_:1})):(n(),l(e(m),{key:2},{default:t(()=>[s(p,{to:"/login"},{default:t(()=>[i("Login")]),_:1})]),_:1}))}}}),ne=v({__name:"Navbar",props:{breadcrumb:{},billingMetadata:{}},setup(o){return(a,u)=>(n(),l(e(H),{style:{padding:"5px 25px"}},{breadcrumb:t(()=>{var d;return[(d=a.billingMetadata)!=null&&d.message?(n(),l(e(J),{key:0,type:"error",style:{position:"fixed",bottom:"0",left:"0",width:"100%","z-index":"1"}},R({message:t(()=>[s(e(C),{type:"secondary"},{default:t(()=>{var r;return[i(c((r=a.billingMetadata)==null?void 0:r.message),1)]}),_:1})]),_:2},[a.billingMetadata.messageLink?{name:"action",fn:t(()=>[s(e(m),{type:"primary",target:"_blank",href:a.billingMetadata.messageLink},{default:t(()=>{var r;return[i(c((r=a.billingMetadata.messageCTA)!=null?r:"Learn More"),1)]}),_:1},8,["href"])]),key:"0"}:void 0]),1024)):y("",!0),a.breadcrumb?(n(),l(e(z),{key:1},{default:t(()=>[(n(!0),k(P,null,T(a.breadcrumb,(r,_)=>(n(),l(e(G),{key:_},{default:t(()=>[s(e(F),{to:r.path},{default:t(()=>[i(c(r.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):y("",!0)]}),title:t(()=>[s(X)]),extra:t(()=>[s(Y)]),_:1}))}});export{ne as _};
//# sourceMappingURL=Navbar.vue_vue_type_script_setup_true_lang.3c878dea.js.map
