import{P as h}from"./PlayerNavbar.6be50acf.js";import{g as y}from"./api.fa8c83f9.js";import{u as a}from"./index.5ec9dc21.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.161060e0.js";import{a as M}from"./asyncComputed.23e92968.js";import{L as C}from"./CircularLoading.86823a15.js";import"./metadata.7b60aad0.js";import"./PhCheckCircle.vue.21e08a83.js";import"./PhKanban.vue.c2d48f6c.js";import"./PhScroll.vue.510a499e.js";import"./PhWebhooksLogo.vue.35f83d87.js";import"./PhSignOut.vue.550ba3ea.js";import"./index.adff861d.js";import"./runnerData.b771a540.js";import"./url.5fda3169.js";import"./fetch.a2434bd0.js";import"./pubsub.ce004d19.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]="93026061-c41f-4666-877b-9b5b3fbc52c2",t._sentryDebugIdIdentifier="sentry-dbid-93026061-c41f-4666-877b-9b5b3fbc52c2")}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 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:m,onLogout:b,onLogin:d},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.c628dbc7.js.map
