import{g as _}from"./api.59a010f9.js";import{W as g}from"./Watermark.1639a086.js";import{i as h}from"./metadata.6e1e01f0.js";import{a as b}from"./asyncComputed.9193ddba.js";import{W as k}from"./WidgetsFrame.d5b05b7d.js";import{F as w}from"./PhArrowSquareOut.vue.f69a3799.js";import{d as x,f7 as v,y as C,u as e,b as s,c as m,w as a,eX as D,f as n,cS as f,am as l,eV as F,f2 as I,cY as u,f3 as V,f4 as W,ay as T,E as B}from"./outputWidgets.ac6cd083.js";import"./index.4ba3f788.js";import{C as E}from"./Card.215bf5c9.js";import"./index.0f9c2c1a.js";import"./fetch.69934b32.js";import"./pubsub.ead516dd.js";import"./runnerData.a38c774f.js";import"./url.d933d93f.js";import"./PhCheckCircle.vue.4b28fb39.js";import"./PhKanban.vue.7aab2bc1.js";import"./PhScroll.vue.ed07166a.js";import"./PhWebhooksLogo.vue.0d1e999c.js";import"./TabPane.c02c1536.js";import"./hasIn.aae3ac3f.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="1f0fe1e8-a348-4b14-93cc-b278ec6df88d",o._sentryDebugIdIdentifier="sentry-dbid-1f0fe1e8-a348-4b14-93cc-b278ec6df88d")}catch{}})();const H=x({__name:"Home",setup(o){const i=v(),{result:t}=b(_),p=C(()=>{var r;return((r=t.value)==null?void 0:r.sidebar.filter(d=>d.id!=="home"))||[]}),y=r=>{i.push({path:`/${r}`})};return(r,d)=>e(t)?(s(),m(k,{key:0,class:"home-container","main-color":e(t).mainColor,theme:e(t).theme,"font-family":e(t).fontFamily},{default:a(()=>[n(e(u),{vertical:"",gap:"large",class:"cards-container"},{default:a(()=>[p.value.length===0?(s(),m(e(f),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:a(()=>[l(" There are no forms available for you. ")]),_:1})):(s(!0),F(T,{key:1},I(p.value,c=>(s(),m(e(E),{key:c.id,class:"form-card",onClick:N=>y(c.path)},{default:a(()=>[n(e(u),{gap:"large",align:"center",justify:"space-between"},{default:a(()=>[(s(),m(V(e(h)(c.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),n(e(f),{style:{"font-size":"18px","font-weight":"500"}},{default:a(()=>[l(W(c.name),1)]),_:2},1024),n(e(w),{color:"#000",width:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),n(g,{class:"watermark","page-id":"home"})]),_:1},8,["main-color","theme","font-family"])):D("",!0)}});const te=B(H,[["__scopeId","data-v-be1d2797"]]);export{te as default};
//# sourceMappingURL=Home.ad4eb77b.js.map
