import{P as b}from"./PlayerNavbar.557e37cd.js";import{g as y}from"./api.bc8b8d53.js";import{u as a}from"./index.1a93e2de.js";import{d as v,f7 as h,r as w,O as k,a as I,b as s,eV as n,f as i,u as p,E as L}from"./outputWidgets.abde7be7.js";import{a as x}from"./asyncComputed.e188c84d.js";import{L as D}from"./CircularLoading.f68da4a9.js";import"./metadata.a2280914.js";import"./PhCheckCircle.vue.9630c7d1.js";import"./PhKanban.vue.918adea5.js";import"./PhScroll.vue.90c26429.js";import"./PhWebhooksLogo.vue.68b418b3.js";import"./PhSignOut.vue.34a67eb6.js";import"./index.17d825a9.js";import"./runnerData.ab456c17.js";import"./url.578d50c3.js";import"./fetch.3b6246ff.js";import"./pubsub.7f579dee.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]="37d84a81-b5c0-4e95-b543-0ec735e1def5",o._sentryDebugIdIdentifier="sentry-dbid-37d84a81-b5c0-4e95-b543-0ec735e1def5")}catch{}})();const M={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}=x(y);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",M,[i(b,{"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(D)])):(s(),n("section",E,[i(g)]))])}}});const S=L(N,[["__scopeId","data-v-725e3c45"]]);export{S as default};
//# sourceMappingURL=Main.137706f8.js.map
