import{d as g,eJ as b,r as y,J as v,b as h,ev as k,f as m,u as a,v as w}from"./outputWidgets.a321903e.js";import{g as H}from"./api.9febf9ca.js";import{a as p}from"./asyncComputed.78ec0807.js";import{P as I}from"./PlayerNavbar.bc0b5c6e.js";import{H as D}from"./HomeContent.5d5a9d22.js";import{u as s}from"./index.380e90d4.js";import"./runnerData.60d212c9.js";import"./url.d108fea5.js";import"./PhKanban.vue.087dd403.js";import"./PhSignOut.vue.1879a91e.js";import"./Text.b25e1b1d.js";import"./index.578f39e5.js";import"./Link.6da229b1.js";import"./Paragraph.53f5a9bc.js";import"./Title.e1cf3e99.js";import"./index.9f566aac.js";import"./PhArrowSquareOut.vue.587a4f7d.js";import"./index.6c4449f0.js";import"./Card.82090499.js";import"./TabPane.5148c0d9.js";import"./hasIn.62bbbac0.js";import"./index.fd9a3d7c.js";import"./fetch.bf5f2911.js";import"./pubsub.df0290b2.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]="181c77da-32c8-4447-9eb4-e209ff35c644",o._sentryDebugIdIdentifier="sentry-dbid-181c77da-32c8-4447-9eb4-e209ff35c644")}catch{}})();const x={class:"page"},C=g({__name:"Home",setup(o){const e=b(),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(H),f=t=>{e.push({path:`/${t}`})},_=()=>{s.removeUser(),e.push({name:"playerHome"})};return(t,L)=>{var i;return h(),k("div",x,[m(I,{"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 Z=w(C,[["__scopeId","data-v-f12c98c4"]]);export{Z as default};
//# sourceMappingURL=Home.bc842d60.js.map
