import{g as _}from"./api.57088a6e.js";import{W as g}from"./Watermark.dc865c2b.js";import{i as h}from"./metadata.ee061f1d.js";import{a as b}from"./asyncComputed.a7fc1aad.js";import{W as k}from"./WidgetsFrame.6aab915e.js";import{F as w}from"./PhArrowSquareOut.vue.f84527d3.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 d,eV as F,f2 as I,cY as u,f3 as V,f4 as W,ay as T,E as B}from"./outputWidgets.b408cd47.js";import"./index.88fdd66f.js";import{C as E}from"./Card.1925c988.js";import"./index.93c872c5.js";import"./fetch.c6b0f555.js";import"./pubsub.e8c4900b.js";import"./runnerData.d52f67ef.js";import"./url.266b2c44.js";import"./PhCheckCircle.vue.36a06448.js";import"./PhKanban.vue.f0f189b7.js";import"./PhScroll.vue.73229628.js";import"./PhWebhooksLogo.vue.53fc889a.js";import"./TabPane.43bebfc4.js";import"./hasIn.dda5a20c.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]="4d1b7e2a-b379-448c-9af6-644c6fe6169f",o._sentryDebugIdIdentifier="sentry-dbid-4d1b7e2a-b379-448c-9af6-644c6fe6169f")}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(f=>f.id!=="home"))||[]}),y=r=>{i.push({path:`/${r}`})};return(r,f)=>e(t)?(s(),c(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(),c(e(l),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:a(()=>[d(" 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(()=>[d(W(m.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.65681836.js.map
