import{d as b,eI as g,r as y,I as v,b as h,eu as k,f as m,u as a,v as w}from"./outputWidgets.63450c6a.js";import{g as I}from"./api.1bdb9a4b.js";import{a as p}from"./asyncComputed.4686243d.js";import{P as H}from"./PlayerNavbar.aa598426.js";import{H as D}from"./HomeContent.f8650b12.js";import{u as s}from"./index.cf1edf2b.js";import"./runnerData.389ea402.js";import"./url.181b4bfa.js";import"./PhKanban.vue.3f9e80c4.js";import"./PhSignOut.vue.162915c9.js";import"./Text.3d888762.js";import"./index.b1e32faf.js";import"./Link.7de1e23e.js";import"./Paragraph.b0baea90.js";import"./Title.05596582.js";import"./index.ecc0f620.js";import"./PhArrowSquareOut.vue.c6b15abe.js";import"./index.b15750e8.js";import"./Card.da73e562.js";import"./index.ea8e22a2.js";import"./TabPane.a821d847.js";import"./hasIn.1b20766f.js";import"./index.aeb802d2.js";import"./pubsub.9ff806ef.js";import"./fetch.8f066b2e.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]="16d07454-5bab-4c94-bcb0-0f15ae2d66fc",o._sentryDebugIdIdentifier="sentry-dbid-16d07454-5bab-4c94-bcb0-0f15ae2d66fc")}catch{}})();const x={class:"page"},C=b({__name:"Home",setup(o){const e=g(),r=y(s.getUser()),{result:c,refetch:u}=p(async()=>(await s.allow("kanban")).status==="ALLOWED");v(r,()=>u());const l=({path:t})=>{e.push({name:"form",params:{path:t.split("/")}})},{result:n,loading:d}=p(I),f=t=>{e.push({path:`/${t}`})},_=()=>{s.removeUser(),e.push({name:"playerHome"})};return(t,L)=>{var i;return h(),k("div",x,[m(H,{"runner-data":a(n),"is-kanban-visible":a(c)||!1,"user-email":(i=r.value)==null?void 0:i.claims.email,onNavigate:l,onLogout:_},null,8,["runner-data","is-kanban-visible","user-email"]),m(D,{workspace:a(n),loading:a(d),onFormClick:f},null,8,["workspace","loading"])])}}});const ee=w(C,[["__scopeId","data-v-f12c98c4"]]);export{ee as default};
//# sourceMappingURL=Home.7c35a549.js.map
