import{P as h}from"./PlayerNavbar.ef927e2a.js";import{g as y}from"./api.59a010f9.js";import{u as a}from"./index.0f9c2c1a.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.ac6cd083.js";import{a as M}from"./asyncComputed.9193ddba.js";import{L as C}from"./CircularLoading.a69bc135.js";import"./metadata.6e1e01f0.js";import"./PhCheckCircle.vue.4b28fb39.js";import"./PhKanban.vue.7aab2bc1.js";import"./PhScroll.vue.ed07166a.js";import"./PhWebhooksLogo.vue.0d1e999c.js";import"./PhSignOut.vue.f66915f9.js";import"./index.7a3f677e.js";import"./runnerData.a38c774f.js";import"./url.d933d93f.js";import"./fetch.69934b32.js";import"./pubsub.ead516dd.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]="8df83d42-ebe9-447b-bc95-b07a9b69ae16",t._sentryDebugIdIdentifier="sentry-dbid-8df83d42-ebe9-447b-bc95-b07a9b69ae16")}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.cb4fec04.js.map
