import{g as _}from"./api.734f41cc.js";import{i as g}from"./metadata.5f7679a7.js";import{a as h}from"./asyncComputed.d67c847a.js";import{W as b}from"./WidgetsFrame.68dc535a.js";import{F as k}from"./PhArrowSquareOut.vue.f025e0d0.js";import{d as w,f7 as x,y as v,u as e,b as s,c,w as a,eX as C,f as m,cS as l,am as f,eV as D,f2 as F,cY as u,f3 as I,f4 as V,ay as T,E as B}from"./outputWidgets.a6a6ef30.js";import"./index.eee1d288.js";import{C as E}from"./Card.6a760f62.js";import"./index.98d02c55.js";import"./fetch.2cdde52d.js";import"./pubsub.906f7e66.js";import"./runnerData.09340835.js";import"./url.00089ca9.js";import"./PhCheckCircle.vue.ef0ee05b.js";import"./PhKanban.vue.632b31ab.js";import"./PhScroll.vue.de2d980a.js";import"./PhWebhooksLogo.vue.e8266643.js";import"./TabPane.c81c1fb6.js";import"./hasIn.b01cfd56.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="71348e9c-a3da-4bf2-bdb8-2d9c790d4526",o._sentryDebugIdIdentifier="sentry-dbid-71348e9c-a3da-4bf2-bdb8-2d9c790d4526")}catch{}})();const H=w({__name:"Home",setup(o){const n=x(),{result:t}=h(_),d=v(()=>{var r;return((r=t.value)==null?void 0:r.sidebar.filter(p=>p.id!=="home"))||[]}),y=r=>{n.push({path:`/${r}`})};return(r,p)=>e(t)?(s(),c(b,{key:0,class:"home-container","main-color":e(t).mainColor,theme:e(t).theme,"font-family":e(t).fontFamily},{default:a(()=>[m(e(u),{vertical:"",gap:"large",class:"cards-container"},{default:a(()=>[d.value.length===0?(s(),c(e(l),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:a(()=>[f(" There are no forms available for you. ")]),_:1})):(s(!0),D(T,{key:1},F(d.value,i=>(s(),c(e(E),{key:i.id,class:"form-card",onClick:N=>y(i.path)},{default:a(()=>[m(e(u),{gap:"large",align:"center",justify:"space-between"},{default:a(()=>[(s(),c(I(e(g)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),m(e(l),{style:{"font-size":"18px","font-weight":"500"}},{default:a(()=>[f(V(i.name),1)]),_:2},1024),m(e(k),{color:"#000",width:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["main-color","theme","font-family"])):C("",!0)}});const Z=B(H,[["__scopeId","data-v-16f8430a"]]);export{Z as default};
//# sourceMappingURL=Home.3e71c21a.js.map
