import{i as k}from"./metadata.53a9240d.js";import{W as h}from"./Watermark.e018031e.js";import{F as w}from"./PhArrowSquareOut.vue.bcd2a689.js";import{d as v,eq as x,f as b,e as C,u as e,X as m,b as p,w as r,R as D,o as t,c as n,aF as f,d5 as y,aR as I,ee as z,dd as _,ef as F,ec as T,ea as B,$ as H}from"./vue-router.e2dfd848.js";import{u as L}from"./workspaceStore.16b63a32.js";import"./index.5f8bab43.js";import{L as N}from"./LoadingOutlined.5e321cf1.js";import{C as R}from"./Card.7bda6ec9.js";import"./PhBug.vue.f8429619.js";import"./PhCheckCircle.vue.6f9a85d2.js";import"./PhKanban.vue.2130d7f3.js";import"./PhWebhooksLogo.vue.89e23ddd.js";import"./url.55d7f2ef.js";import"./colorHelpers.b7fa6ef4.js";import"./TabPane.4db93fc8.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]="a67c6d76-a1ac-405c-a50f-57e17f2e4839",o._sentryDebugIdIdentifier="sentry-dbid-a67c6d76-a1ac-405c-a50f-57e17f2e4839")}catch{}})();const S={key:0,class:"home-container"},V=v({__name:"Home",setup(o){const i=x(),l=L(),u=b(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(d=>d.id!=="home"))||[]}),c=C(null),g=async(s,d)=>{c.value=d,await i.push({path:`/${s}`}),c.value=null};return(s,d)=>e(l).state.workspace?(t(),m("div",S,[p(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(t(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[f(" There are no forms available for you. ")]),_:1})):(t(!0),m(I,{key:1},z(u.value,a=>(t(),n(e(R),{key:a.id,class:B(["form-card",{loading:c.value===a.id}]),"body-style":{cursor:"pointer"},onClick:W=>g(a.path,a.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(t(),n(F(e(k)(a.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(T(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(w),{key:0,size:"20"})):(t(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(h,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Z=H(V,[["__scopeId","data-v-060376d1"]]);export{Z as default};
//# sourceMappingURL=Home.4d1a4230.js.map
