import{g as h}from"./api.55619793.js";import{a as k}from"./asyncComputed.8e0b1df8.js";import{d as x,eA as w,H as C,b as t,ev as m,u as e,c as s,ex as _,e as I,w as n,ew as D,bv as B,ar as f,a$ as N,eC as T,f as c,eD as H,I as V,v as z}from"./outputWidgets.59990c05.js";import{e as A}from"./icons.57eb7190.js";import{P as F}from"./PlayerNavbar.9f5fc460.js";import"./index.fa3d114e.js";import"./index.a00629a8.js";import{A as y}from"./index.13420729.js";import{T as g}from"./Typography.164def35.js";import{C as S}from"./Card.8bb4a3f2.js";import"./runnerData.fd965c02.js";import"./url.2d4b3ba8.js";import"./Base.98c977f1.js";import"./Link.010d33fe.js";import"./Paragraph.e3acb63e.js";import"./Text.f3fc4f5d.js";import"./Title.27bf4527.js";import"./TabPane.6b63df71.js";import"./hasIn.a77b4ba2.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="81bb292c-87d2-4dc1-90be-ea96585d4276",a._sentryDebugIdIdentifier="sentry-dbid-81bb292c-87d2-4dc1-90be-ea96585d4276")}catch{}})();const $={class:"page"},E=x({__name:"Home",setup(a){const i=w(),{result:r,loading:b}=k(h),u=C(()=>{var o,l;return(l=(o=r.value)==null?void 0:o.sidebar.filter(d=>d.visible))!=null?l:[]}),v=o=>{i.push({path:`/${o}`})};return(o,l)=>{var d;return t(),m("div",$,[e(r)?(t(),s(F,{key:0,"runner-data":e(r),"hide-sidebar":""},null,8,["runner-data"])):_("",!0),I("div",{class:"container",style:D({backgroundColor:(d=e(r))==null?void 0:d.theme})},[e(b)?(t(),s(e(B),{key:0})):u.value.length===0?(t(),s(e(g),{key:1,type:"secondary",style:{"font-size":"18px"}},{default:n(()=>[f(" There are no public forms available ")]),_:1})):(t(),s(e(y),{key:2,vertical:"",gap:"large",style:{padding:"120px 0"}},{default:n(()=>[(t(!0),m(N,null,T(u.value,p=>(t(),s(e(S),{key:p.id,class:"form-card",onClick:L=>v(p.path)},{default:n(()=>[c(e(y),{gap:"large",align:"center",justify:"space-between"},{default:n(()=>[c(e(g),{style:{"font-size":"18px","font-weight":"500"}},{default:n(()=>[f(H(p.name),1)]),_:2},1024),c(V,{path:e(A),fill:"#000",width:"20"},null,8,["path"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})),_("",!0)],4)])}}});const oe=z(E,[["__scopeId","data-v-5e8254cd"]]);export{oe as default};
//# sourceMappingURL=Home.df6d8fb7.js.map
