import{g as h}from"./api.1acd0887.js";import{a as k}from"./asyncComputed.4b96df58.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 f,e as I,w as n,ew as D,bv as B,ar as _,a$ as N,eC as T,f as c,eD as H,I as V,v as z}from"./outputWidgets.12d07fe6.js";import{e as A}from"./icons.f2b4f37f.js";import{P as F}from"./PlayerNavbar.3ccff19a.js";import"./index.d79c442e.js";import"./index.32e61a7a.js";import{A as y}from"./index.04a061be.js";import{T as g}from"./Typography.45a7b8d7.js";import{C as S}from"./Card.ab1ea8a0.js";import"./runnerData.ccdef8f8.js";import"./url.f2a2de62.js";import"./Base.24118e9f.js";import"./Link.91ccc758.js";import"./Paragraph.01fbd56d.js";import"./Text.6b94c3bc.js";import"./Title.cc650707.js";import"./TabPane.51b88e6f.js";import"./hasIn.7e305b7d.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="8920be3c-f34d-4b8e-809b-9edf8f3d45dd",a._sentryDebugIdIdentifier="sentry-dbid-8920be3c-f34d-4b8e-809b-9edf8f3d45dd")}catch{}})();const $={class:"page"},E=x({__name:"Home",setup(a){const d=w(),{result:r,loading:b}=k(h),u=C(()=>{var o,l;return(l=(o=r.value)==null?void 0:o.sidebar.filter(i=>i.visible))!=null?l:[]}),v=o=>{d.push({path:`/${o}`})};return(o,l)=>{var i;return t(),m("div",$,[e(r)?(t(),s(F,{key:0,"runner-data":e(r),"hide-sidebar":""},null,8,["runner-data"])):f("",!0),I("div",{class:"container",style:D({backgroundColor:(i=e(r))==null?void 0:i.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(()=>[_(" 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(()=>[_(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})),f("",!0)],4)])}}});const oe=z(E,[["__scopeId","data-v-5e8254cd"]]);export{oe as default};
//# sourceMappingURL=Home.6e188c25.js.map
