import{g as _}from"./api.9106a1be.js";import{W as g}from"./Watermark.13acfc81.js";import{i as h}from"./metadata.68579fd9.js";import{a as k}from"./asyncComputed.ea730548.js";import{W as w}from"./WidgetsFrame.c05aa68e.js";import{F as b}from"./PhArrowSquareOut.vue.3f754e86.js";import{d as x,f7 as v,y as C,u as e,b as s,c,w as a,eX as D,f as n,cS as l,am as f,eV as F,f2 as I,cY as u,f3 as V,f4 as W,ay as T,E as B}from"./outputWidgets.049ac64d.js";import"./index.7ac7350d.js";import{C as E}from"./Card.6629bb68.js";import"./index.5b8dff4d.js";import"./fetch.869cbc1f.js";import"./pubsub.0c3367ed.js";import"./runnerData.ea577873.js";import"./url.bfc1d6a1.js";import"./PhCheckCircle.vue.7af99e00.js";import"./PhKanban.vue.b5adf1c2.js";import"./PhScroll.vue.6c7ddf10.js";import"./PhWebhooksLogo.vue.d32b627f.js";import"./TabPane.223e6cb6.js";import"./hasIn.8c8d3925.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]="68d2ef35-296d-491a-8f02-3318591d5972",o._sentryDebugIdIdentifier="sentry-dbid-68d2ef35-296d-491a-8f02-3318591d5972")}catch{}})();const H=x({__name:"Home",setup(o){const i=v(),{result:t}=k(_),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(),c(w,{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(),c(e(l),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:a(()=>[f(" There are no forms available for you. ")]),_:1})):(s(!0),F(T,{key:1},I(p.value,m=>(s(),c(e(E),{key:m.id,class:"form-card",onClick:N=>y(m.path)},{default:a(()=>[n(e(u),{gap:"large",align:"center",justify:"space-between"},{default:a(()=>[(s(),c(V(e(h)(m.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),n(e(l),{style:{"font-size":"18px","font-weight":"500"}},{default:a(()=>[f(W(m.name),1)]),_:2},1024),n(e(b),{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-cc9901be"]]);export{te as default};
//# sourceMappingURL=Home.26e68e13.js.map
