import{P as h}from"./PlayerNavbar.c27c6bdf.js";import{g as y}from"./api.734f41cc.js";import{u as r}from"./index.98d02c55.js";import{d as v,f7 as w,r as k,f1 as I,O as L,a as x,b as n,eV as s,f as c,u as i,E as D}from"./outputWidgets.a6a6ef30.js";import{a as M}from"./asyncComputed.d67c847a.js";import{L as C}from"./CircularLoading.39b4839a.js";import"./metadata.5f7679a7.js";import"./PhCheckCircle.vue.ef0ee05b.js";import"./PhKanban.vue.632b31ab.js";import"./PhScroll.vue.de2d980a.js";import"./PhWebhooksLogo.vue.e8266643.js";import"./PhSignOut.vue.ae70df5d.js";import"./index.10c54efc.js";import"./runnerData.09340835.js";import"./url.00089ca9.js";import"./fetch.2cdde52d.js";import"./pubsub.906f7e66.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b53efb9a-74ad-46cd-ac78-5c3f58577fbc",t._sentryDebugIdIdentifier="sentry-dbid-b53efb9a-74ad-46cd-ac78-5c3f58577fbc")}catch{}})();const E={class:"main-container"},N={key:0,class:"centered"},P={key:1,class:"content"},B=v({__name:"Main",setup(t){const e=w(),o=k(r.getUser()),p=I().path;r.pubsub.subscribe("authenticated",a=>{o.value=a});const d=({path:a})=>{e.push({path:`/${a}`})},m=()=>{e.push({name:"playerLogin"})},{result:_,loading:f,refetch:l}=M(y);L(o,l);const b=()=>{r.removeUser(),e.push({name:"playerHome"})};return(a,R)=>{var u;const g=x("router-view");return n(),s("div",E,[c(h,{"current-path":i(p),"runner-data":i(_),"user-email":(u=o.value)==null?void 0:u.claims.email,onNavigate:d,onLogout:b,onLogin:m},null,8,["current-path","runner-data","user-email"]),i(f)?(n(),s("div",N,[c(C)])):(n(),s("section",P,[c(g)]))])}}});const X=D(B,[["__scopeId","data-v-059bb8cc"]]);export{X as default};
//# sourceMappingURL=Main.05f6ab82.js.map
