import{P as h}from"./PlayerNavbar.306853ca.js";import{g as y}from"./api.dd54e1b1.js";import{u as a}from"./index.6eea3de6.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.bff33647.js";import{a as M}from"./asyncComputed.ce6d6eed.js";import{L as C}from"./CircularLoading.1f94859f.js";import"./metadata.e6d6431f.js";import"./PhCheckCircle.vue.2f5d1b32.js";import"./PhKanban.vue.c63adf86.js";import"./PhScroll.vue.7d357e12.js";import"./PhWebhooksLogo.vue.def0383a.js";import"./PhSignOut.vue.84ceacb6.js";import"./index.ec334d29.js";import"./runnerData.e179cd6d.js";import"./url.9e111d9b.js";import"./fetch.ce6f0915.js";import"./pubsub.897f848f.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]="5cfc56c2-9298-4fa1-9794-882cb8804a88",t._sentryDebugIdIdentifier="sentry-dbid-5cfc56c2-9298-4fa1-9794-882cb8804a88")}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 m=({path:r})=>{e.push({path:`/${r}`})},d=()=>{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:m,onLogout:g,onLogin:d},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.83785d2b.js.map
