import{d as b,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.eb498848.js";import{g as H}from"./api.e416522b.js";import{a as p}from"./asyncComputed.6b2a5298.js";import{P as I}from"./PlayerNavbar.f03d8458.js";import{H as x}from"./HomeContent.dd59cea5.js";import{u as s}from"./index.6db17c6b.js";import"./runnerData.c01bfcd7.js";import"./url.1d686ce1.js";import"./PhKanban.vue.7f700aad.js";import"./PhSignOut.vue.91be2cfd.js";import"./Text.c3630863.js";import"./Base.60455d70.js";import"./index.9769729d.js";import"./Link.32e09244.js";import"./Paragraph.82d8120c.js";import"./Title.ef0a0830.js";import"./index.c6702b27.js";import"./PhArrowSquareOut.vue.97dcf740.js";import"./index.f10dc7f9.js";import"./Card.70a00c39.js";import"./TabPane.73c86943.js";import"./hasIn.ceb11556.js";import"./index.60acdd5f.js";import"./fetch.fcae2051.js";import"./pubsub.1ca1fb40.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]="a7bb2e96-7c7e-45fb-9aa3-b9d3386c0710",o._sentryDebugIdIdentifier="sentry-dbid-a7bb2e96-7c7e-45fb-9aa3-b9d3386c0710")}catch{}})();const D={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");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}`})},_=()=>{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:_},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.6d2c0385.js.map
