import{d as g,eI as b,r as y,I as v,b as h,eu as k,f as m,u as r,v as w}from"./outputWidgets.1c4947c7.js";import{g as I}from"./api.1075db62.js";import{a as p}from"./asyncComputed.ab9c45d0.js";import{P as H}from"./PlayerNavbar.d1445729.js";import{H as D}from"./HomeContent.a28b2ed0.js";import{u as s}from"./index.5682e922.js";import"./runnerData.79bc4400.js";import"./url.ca3e5e32.js";import"./PhKanban.vue.387ce6fc.js";import"./Text.4ed32514.js";import"./index.4e91d000.js";import"./Link.1d840e4c.js";import"./Paragraph.110c4a21.js";import"./Title.6f4ab7f6.js";import"./index.1f8fecc0.js";import"./PhArrowSquareOut.vue.ffd5aa73.js";import"./index.a9ee542a.js";import"./Card.10f7bd77.js";import"./index.68ab62e0.js";import"./TabPane.333d1c75.js";import"./hasIn.58acd238.js";import"./index.a9af7b0b.js";import"./pubsub.87f1efb9.js";import"./fetch.af8f049b.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]="42e49f91-f37e-4818-932f-3280f5f1e281",o._sentryDebugIdIdentifier="sentry-dbid-42e49f91-f37e-4818-932f-3280f5f1e281")}catch{}})();const x={class:"page"},C=g({__name:"Home",setup(o){const e=b(),a=y(s.getUser()),{result:c,refetch:u}=p(async()=>(await s.allow("kanban")).status==="ALLOWED");v(a,()=>u());const f=({path:t})=>{e.push({name:"form",params:{path:t.split("/")}})},{result:n,loading:l}=p(I),d=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":r(n),"is-kanban-visible":r(c)||!1,"user-email":(i=a.value)==null?void 0:i.claims.email,onNavigate:f,onLogout:_},null,8,["runner-data","is-kanban-visible","user-email"]),m(D,{workspace:r(n),loading:r(l),onFormClick:d},null,8,["workspace","loading"])])}}});const Z=w(C,[["__scopeId","data-v-f12c98c4"]]);export{Z as default};
//# sourceMappingURL=Home.042e4a1d.js.map
