import{P as h}from"./PlayerNavbar.53f2f783.js";import{g as y}from"./api.3543962f.js";import{u as a}from"./index.e752db4c.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.fb72f334.js";import{a as M}from"./asyncComputed.7ed124a4.js";import{L as C}from"./CircularLoading.d5912cb4.js";import"./metadata.33f78358.js";import"./PhCheckCircle.vue.74dac16e.js";import"./PhKanban.vue.6c573e74.js";import"./PhScroll.vue.17174b09.js";import"./PhWebhooksLogo.vue.606ade3b.js";import"./PhSignOut.vue.1d8f8492.js";import"./index.7f01c641.js";import"./runnerData.aad08e2c.js";import"./url.14a615f7.js";import"./fetch.019a6448.js";import"./pubsub.b6388b69.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]="51d1a995-59ce-49df-8cf9-8e53e4b74ed9",t._sentryDebugIdIdentifier="sentry-dbid-51d1a995-59ce-49df-8cf9-8e53e4b74ed9")}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(a.getUser()),p=I().path;a.pubsub.subscribe("authenticated",r=>{o.value=r});const d=({path:r})=>{e.push({path:`/${r}`})},m=()=>{e.push({name:"playerLogin"})},{result:_,loading:f,refetch:l}=M(y);L(o,l);const g=()=>{a.removeUser(),e.push({name:"playerHome"})};return(r,R)=>{var u;const b=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:g,onLogin:m},null,8,["current-path","runner-data","user-email"]),i(f)?(n(),s("div",N,[c(C)])):(n(),s("section",P,[c(b)]))])}}});const X=D(B,[["__scopeId","data-v-059bb8cc"]]);export{X as default};
//# sourceMappingURL=Main.19df2ec6.js.map
