import{P as h}from"./PlayerNavbar.7268a1fb.js";import{g as y}from"./api.62525f8e.js";import{u as a}from"./index.d3856463.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.9e7bd3a6.js";import{a as M}from"./asyncComputed.fb556333.js";import{L as C}from"./CircularLoading.6029a577.js";import"./metadata.22937975.js";import"./PhCheckCircle.vue.30d6c294.js";import"./PhKanban.vue.214ed7d0.js";import"./PhScroll.vue.729b9761.js";import"./PhWebhooksLogo.vue.67eab4c4.js";import"./PhSignOut.vue.84cd1e87.js";import"./index.ad73a7c1.js";import"./runnerData.612b9465.js";import"./url.1f5e31bf.js";import"./fetch.5d8cee62.js";import"./pubsub.f3af3eeb.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]="9f49d0fb-fa9b-4355-83cc-696295b56150",t._sentryDebugIdIdentifier="sentry-dbid-9f49d0fb-fa9b-4355-83cc-696295b56150")}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: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: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.7eb06998.js.map
