import{d as _,eK as g,r as y,K as h,b as v,ew as w,f as m,u as t,x as k}from"./outputWidgets.7dd23d3d.js";import{g as H}from"./api.8ecad6bb.js";import{a as p}from"./asyncComputed.8f047c40.js";import{P as I}from"./PlayerNavbar.a89c1e87.js";import{H as x}from"./HomeContent.867fb964.js";import{u as s}from"./index.ac9b4c61.js";import"./runnerData.13e158ee.js";import"./url.6301f7e9.js";import"./PhKanban.vue.b32a2861.js";import"./PhSignOut.vue.0b43dbfe.js";import"./Text.8f0caa1d.js";import"./Base.4bf9624b.js";import"./index.63d9c692.js";import"./Link.ffd51525.js";import"./Paragraph.7df229fc.js";import"./Title.0952eb37.js";import"./index.3a6370f6.js";import"./PhArrowSquareOut.vue.12dafa2a.js";import"./index.b7995827.js";import"./Card.fee12f7e.js";import"./TabPane.d692f77b.js";import"./hasIn.7d5dcda7.js";import"./index.8d63ab0d.js";import"./fetch.55a475bd.js";import"./pubsub.692bcdfa.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]="1f6ba40b-591b-4417-8fb9-b0d43fad8aa7",o._sentryDebugIdIdentifier="sentry-dbid-1f6ba40b-591b-4417-8fb9-b0d43fad8aa7")}catch{}})();const D={class:"page"},C=_({__name:"Home",setup(o){const e=g(),r=y(s.getUser()),{result:c,refetch:u}=p(async()=>(await s.allow("kanban")).status==="ALLOWED");h(r,()=>u());const l=({path:a})=>{e.push({name:"form",params:{path:a.split("/")}})},{result:n,loading:d}=p(H),f=a=>{e.push({path:`/${a}`})},b=()=>{s.removeUser(),e.push({name:"playerHome"})};return(a,K)=>{var i;return v(),w("div",D,[m(I,{"runner-data":t(n),"is-kanban-visible":t(c)||!1,"user-email":(i=r.value)==null?void 0:i.claims.email,onNavigate:l,onLogout:b},null,8,["runner-data","is-kanban-visible","user-email"]),m(x,{workspace:t(n),loading:t(d),onFormClick:f},null,8,["workspace","loading"])])}}});const ee=k(C,[["__scopeId","data-v-f12c98c4"]]);export{ee as default};
//# sourceMappingURL=Home.806d609d.js.map
