import{P as y}from"./PlayerNavbar.24e0c16d.js";import{g as b}from"./api.5b11a254.js";import{u as a}from"./index.78b9d0ca.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.7323a17d.js";import{a as M}from"./asyncComputed.a50f21d4.js";import{L as x}from"./CircularLoading.606d7e5e.js";import"./metadata.1afbebf6.js";import"./PhCheckCircle.vue.33fdfcd3.js";import"./PhKanban.vue.96ef4436.js";import"./PhScroll.vue.c26d3c62.js";import"./PhWebhooksLogo.vue.5a5aacec.js";import"./PhSignOut.vue.e19ee1ae.js";import"./index.4920b0cf.js";import"./Text.a0b69008.js";import"./Base.003f7172.js";import"./runnerData.e86765fc.js";import"./url.50c4a8f0.js";import"./fetch.787e046c.js";import"./pubsub.2c3883f4.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]="c76f441c-de4e-4866-923d-a3b9304f4628",o._sentryDebugIdIdentifier="sentry-dbid-c76f441c-de4e-4866-923d-a3b9304f4628")}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(a.getUser());a.pubsub.subscribe("authenticated",r=>{t.value=r});const u=({path:r})=>{e.push({path:`/${r}`})},d=()=>{e.push({name:"playerLogin"})},{result:m,loading:_,refetch:l}=M(b);k(t,l);const f=()=>{a.removeUser(),e.push({name:"playerHome"})};return(r,B)=>{var c;const g=I("router-view");return s(),n("div",D,[i(y,{"runner-data":p(m),"user-email":(c=t.value)==null?void 0:c.claims.email,onNavigate:u,onLogout:f,onLogin:d},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.a4a299ac.js.map
