import{P as h}from"./PlayerNavbar.4007e1f3.js";import{g as y}from"./api.e24c8192.js";import{u as r}from"./index.d904323b.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.025875ae.js";import{a as M}from"./asyncComputed.462004f9.js";import{L as C}from"./CircularLoading.6574de6a.js";import"./metadata.11766bed.js";import"./PhCheckCircle.vue.56b24151.js";import"./PhKanban.vue.4a455121.js";import"./PhScroll.vue.960a7888.js";import"./PhWebhooksLogo.vue.b4a0159b.js";import"./PhSignOut.vue.29a0b36f.js";import"./index.de0dcbf4.js";import"./runnerData.27977465.js";import"./url.53dfb2e6.js";import"./fetch.feaee3bc.js";import"./pubsub.6d633724.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]="11b0e10f-a43b-444f-921d-bc114f55aead",t._sentryDebugIdIdentifier="sentry-dbid-11b0e10f-a43b-444f-921d-bc114f55aead")}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.55d38740.js.map
