import{g as h}from"./api.a048edcc.js";import{a as k}from"./asyncComputed.710d44a6.js";import{F as w}from"./PhArrowSquareOut.vue.adfc0384.js";import{d as v,eK as x,J as C,b as t,ew as f,u as e,c as i,w as r,ex as F,bh as I,as as u,aE as D,eF as H,f as d,eH as T,x as z}from"./outputWidgets.aedb9989.js";import"./index.dbcf7eec.js";import"./index.b7f77fb3.js";import{A as _}from"./index.5834849d.js";import{a as y}from"./Base.1e4eebff.js";import{C as B}from"./Card.c2fe9d5e.js";import"./index.ad042616.js";import"./fetch.b0fc3d69.js";import"./pubsub.96a03d8f.js";import"./runnerData.64e03784.js";import"./url.c520dda4.js";import"./Link.e5074027.js";import"./Paragraph.077143bd.js";import"./Text.b2be5925.js";import"./Title.a34b96de.js";import"./TabPane.1817b2c1.js";import"./hasIn.468b611c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="ff593c64-4f17-4899-8330-48a3b1154067",o._sentryDebugIdIdentifier="sentry-dbid-ff593c64-4f17-4899-8330-48a3b1154067")}catch{}})();const E=v({__name:"Home",setup(o){const s=x(),{result:p,loading:g}=k(h),m=C(()=>{var a,l;return(l=(a=p.value)==null?void 0:a.sidebar.filter(n=>n.visible))!=null?l:[]}),b=a=>{s.push({path:`/${a}`})};return(a,l)=>{var n;return t(),f("div",{class:"container",style:F({backgroundColor:(n=e(p))==null?void 0:n.theme})},[e(g)?(t(),i(e(I),{key:0})):m.value.length===0?(t(),i(e(y),{key:1,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[u(" There are no public forms available ")]),_:1})):(t(),i(e(_),{key:2,vertical:"",gap:"large",style:{padding:"120px 0"}},{default:r(()=>[(t(!0),f(D,null,H(m.value,c=>(t(),i(e(B),{key:c.id,class:"form-card",onClick:S=>b(c.path)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[u(T(c.name),1)]),_:2},1024),d(e(w),{color:"#000",width:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}))],4)}}});const ee=z(E,[["__scopeId","data-v-420f3514"]]);export{ee as default};
//# sourceMappingURL=Home.6cf640f4.js.map
