import{P as h}from"./PlayerNavbar.4780a87a.js";import{g as y}from"./api.9106a1be.js";import{u as a}from"./index.5b8dff4d.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.049ac64d.js";import{a as M}from"./asyncComputed.ea730548.js";import{L as C}from"./CircularLoading.8dcc9668.js";import"./metadata.68579fd9.js";import"./PhCheckCircle.vue.7af99e00.js";import"./PhKanban.vue.b5adf1c2.js";import"./PhScroll.vue.6c7ddf10.js";import"./PhWebhooksLogo.vue.d32b627f.js";import"./PhSignOut.vue.eb011732.js";import"./index.ed3586a8.js";import"./runnerData.ea577873.js";import"./url.bfc1d6a1.js";import"./fetch.869cbc1f.js";import"./pubsub.0c3367ed.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]="482b2587-1905-4916-bf80-ce4138d64449",t._sentryDebugIdIdentifier="sentry-dbid-482b2587-1905-4916-bf80-ce4138d64449")}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:l,refetch:f}=M(y);L(o,f);const b=()=>{a.removeUser(),e.push({name:"playerHome"})};return(r,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(l)?(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.a5c45903.js.map
