import{g as O}from"./api.96961719.js";import{a as A}from"./asyncComputed.dcb4602e.js";import{f as l,eG as C,d as h,b as s,c as i,w as d,u as a,ar as f,bV as I,v as w,eA as B,H as D,ev as b,ex as P,e as S,ew as T,bv as N,a$ as R,eC as $,eD as j,I as K}from"./outputWidgets.8094a86d.js";import{e as V}from"./icons.90682e8e.js";import{A as H}from"./ArrowRightOutlined.08fa31dd.js";import{P as z}from"./PlayerNavbar.a0fdbed0.js";import"./index.f5311105.js";import"./index.6887928c.js";import{A as g}from"./index.05e8332b.js";import{T as y}from"./Typography.198426b3.js";import{C as E}from"./Card.e3bd4a30.js";import"./runnerData.91aa7793.js";import"./url.df998f14.js";import"./Base.2eefe576.js";import"./Link.3fdb66d0.js";import"./Paragraph.483769b6.js";import"./Text.c8fae26a.js";import"./Title.265e4373.js";import"./TabPane.dab4ef0b.js";import"./hasIn.5b9ef596.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="89d1733c-57db-46d6-bbed-2edb36f6e0de",n._sentryDebugIdIdentifier="sentry-dbid-89d1733c-57db-46d6-bbed-2edb36f6e0de")}catch{}})();function v(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){F(n,o,t[o])})}return n}function F(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var _=function(e,t){var r=v({},e,t.attrs);return l(C,v({},r,{icon:H}),null)};_.displayName="ArrowRightOutlined";_.inheritAttrs=!1;const G=_,L=h({__name:"KanbanButton",emits:["go-to-kanban"],setup(n,{emit:e}){return(t,r)=>(s(),i(a(I),{class:"kanban-btn",onClick:r[0]||(r[0]=o=>e("go-to-kanban"))},{default:d(()=>[f(" Kanban "),l(a(G))]),_:1}))}});const W=w(L,[["__scopeId","data-v-73dd2178"]]),q={class:"page"},J=h({__name:"Home",setup(n){const e=B(),{result:t,loading:r}=A(O),o=D(()=>{var c,p;return(p=(c=t.value)==null?void 0:c.sidebar.filter(u=>u.visible))!=null?p:[]}),k=c=>{e.push({path:`/${c}`})},x=()=>{e.push({name:"playerKanban"})};return(c,p)=>{var u;return s(),b("div",q,[a(t)?(s(),i(z,{key:0,"runner-data":a(t),"hide-sidebar":""},null,8,["runner-data"])):P("",!0),S("div",{class:"container",style:T({backgroundColor:(u=a(t))==null?void 0:u.theme})},[a(r)?(s(),i(a(N),{key:0})):o.value.length===0?(s(),i(a(y),{key:1,type:"secondary",style:{"font-size":"18px"}},{default:d(()=>[f(" There are no public forms available ")]),_:1})):(s(),i(a(g),{key:2,vertical:"",gap:"large",style:{padding:"120px 0"}},{default:d(()=>[(s(!0),b(R,null,$(o.value,m=>(s(),i(a(E),{key:m.id,class:"form-card",onClick:M=>k(m.path)},{default:d(()=>[l(a(g),{gap:"large",align:"center",justify:"space-between"},{default:d(()=>[l(a(y),{style:{"font-size":"18px","font-weight":"500"}},{default:d(()=>[f(j(m.name),1)]),_:2},1024),l(K,{path:a(V),fill:"#000",width:"20"},null,8,["path"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})),l(W,{onGoToKanban:x})],4)])}}});const _e=w(J,[["__scopeId","data-v-c916dcb9"]]);export{_e as default};
//# sourceMappingURL=Home.a84d62b6.js.map
