import{W as g}from"./Watermark.79f754d4.js";import{i as h}from"./metadata.31121f20.js";import{F as k}from"./PhArrowSquareOut.vue.1fe7be75.js";import{d as b,ek as w,f as x,u as e,W as f,b as o,w as r,R as v,o as s,c as p,ax as m,d1 as u,aJ as C,e9 as D,d9 as _,ea as I,e6 as F,$ as T}from"./vue-router.c536fc2b.js";import{u as W}from"./workspaceStore.85cfb2dd.js";import"./index.be5987a5.js";import{C as z}from"./Card.7a2cefaf.js";import"./PhBug.vue.96f8bd7a.js";import"./PhCheckCircle.vue.f717448d.js";import"./PhKanban.vue.718d6f52.js";import"./PhWebhooksLogo.vue.f166a38b.js";import"./url.4c149b5f.js";import"./TabPane.373d8ad5.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]="88a7266f-2949-4289-988a-b6cf7aecbc5b",t._sentryDebugIdIdentifier="sentry-dbid-88a7266f-2949-4289-988a-b6cf7aecbc5b")}catch{}})();const B={key:0,class:"home-container"},H=b({__name:"Home",setup(t){const n=w(),c=W(),l=x(()=>{var a;return((a=c.state.workspace)==null?void 0:a.sidebar.filter(d=>d.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,d)=>e(c).state.workspace?(s(),f("div",B,[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,i=>(s(),p(e(z),{key:i.id,class:"form-card",onClick:N=>y(i.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),p(I(e(h)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(i.name),1)]),_:2},1024),o(e(k),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),o(g,{class:"watermark","page-id":"home",locale:e(c).state.workspace.language},null,8,["locale"])])):v("",!0)}});const M=T(H,[["__scopeId","data-v-2ee244f8"]]);export{M as default};
//# sourceMappingURL=Home.fca06872.js.map
