import{P as b}from"./PlayerNavbar.fb0dbdf0.js";import{g as y}from"./api.e55a1f3c.js";import{u as r}from"./index.4303c11c.js";import{d as v,eM as h,r as w,O as k,a as I,b as s,ey as n,f as i,u as p,E as L}from"./outputWidgets.e5f9ffc6.js";import{a as M}from"./asyncComputed.2210bd1a.js";import{L as x}from"./CircularLoading.9832fa98.js";import"./metadata.7f9a5698.js";import"./PhCheckCircle.vue.49339ca8.js";import"./PhKanban.vue.ba4b0cc6.js";import"./PhScroll.vue.608452d0.js";import"./PhWebhooksLogo.vue.86d4c921.js";import"./PhSignOut.vue.507253b1.js";import"./index.5b4bc824.js";import"./Text.e6c27a3b.js";import"./Base.d0d329e2.js";import"./runnerData.f991c68f.js";import"./url.c11ddd9f.js";import"./fetch.c1359dac.js";import"./pubsub.75396d00.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="d43a360a-7915-4cee-96ea-5bd78fd23bab",o._sentryDebugIdIdentifier="sentry-dbid-d43a360a-7915-4cee-96ea-5bd78fd23bab")}catch{}})();const D={class:"main-container"},C={key:0,class:"centered"},E={key:1,class:"content"},N=v({__name:"Main",setup(o){const e=h(),t=w(r.getUser());r.pubsub.subscribe("authenticated",a=>{t.value=a});const d=({path:a})=>{e.push({path:`/${a}`})},u=()=>{e.push({name:"playerLogin"})},{result:m,loading:_,refetch:l}=M(y);k(t,l);const f=()=>{r.removeUser(),e.push({name:"playerHome"})};return(a,B)=>{var c;const g=I("router-view");return s(),n("div",D,[i(b,{"runner-data":p(m),"user-email":(c=t.value)==null?void 0:c.claims.email,onNavigate:d,onLogout:f,onLogin:u},null,8,["runner-data","user-email"]),p(_)?(s(),n("div",C,[i(x)])):(s(),n("section",E,[i(g)]))])}}});const X=L(N,[["__scopeId","data-v-725e3c45"]]);export{X as default};
//# sourceMappingURL=Main.c29d91ed.js.map
