import{i as b}from"./metadata.bb9a1264.js";import{W as g}from"./Watermark.1ca475cf.js";import{F as h}from"./PhArrowSquareOut.vue.b410841e.js";import{d as k,eq as w,f as x,u as e,X as f,b as o,w as r,R as v,o as s,c as p,aF as m,d7 as u,aR as C,ee as D,df as _,ef as I,ec as F,$ as T}from"./vue-router.36bc5188.js";import{u as z}from"./workspaceStore.90fe8dcc.js";import"./index.d207cff6.js";import{C as B}from"./Card.45552787.js";import"./PhBug.vue.a90a2180.js";import"./PhCheckCircle.vue.f3c7f168.js";import"./PhKanban.vue.9ec361a4.js";import"./PhWebhooksLogo.vue.7b5e081c.js";import"./url.a7891bdc.js";import"./colorHelpers.19c77349.js";import"./TabPane.72140f27.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="b9523303-e830-4cb9-8be3-28ab0599b1f0",t._sentryDebugIdIdentifier="sentry-dbid-b9523303-e830-4cb9-8be3-28ab0599b1f0")}catch{}})();const H={key:0,class:"home-container"},N=k({__name:"Home",setup(t){const n=w(),i=z(),l=x(()=>{var a;return((a=i.state.workspace)==null?void 0:a.sidebar.filter(d=>d.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,d)=>e(i).state.workspace?(s(),f("div",H,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[l.value.length===0?(s(),p(e(u),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(s(!0),f(C,{key:1},D(l.value,c=>(s(),p(e(B),{key:c.id,class:"form-card",onClick:R=>y(c.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),p(I(e(b)(c.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(c.name),1)]),_:2},1024),o(e(h),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),o(g,{class:"watermark","page-id":"home",locale:e(i).state.workspace.language},null,8,["locale"])])):v("",!0)}});const M=T(N,[["__scopeId","data-v-a0bfe546"]]);export{M as default};
//# sourceMappingURL=Home.6a388045.js.map
