import{i as k}from"./metadata.f724a12f.js";import{W as h}from"./Watermark.a8a60253.js";import{F as w}from"./PhArrowSquareOut.vue.3c996a0a.js";import{d as v,eq as x,f as b,e as C,u as e,X as m,b as c,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.af270c71.js";import{u as L}from"./workspaceStore.8573c4fd.js";import"./index.689ec80a.js";import{L as N}from"./LoadingOutlined.7878a115.js";import{C as R}from"./Card.d41ae9c2.js";import"./PhBug.vue.722ec43c.js";import"./PhCheckCircle.vue.5fb5511e.js";import"./PhKanban.vue.a32e59cb.js";import"./PhWebhooksLogo.vue.02da95ab.js";import"./url.cabef638.js";import"./colorHelpers.d66a37b3.js";import"./TabPane.c8a57620.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]="e4ead2a1-9154-4e87-ad7d-2060995f556a",o._sentryDebugIdIdentifier="sentry-dbid-e4ead2a1-9154-4e87-ad7d-2060995f556a")}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(p=>p.id!=="home"))||[]}),d=C(null),g=async(s,p)=>{d.value=p,await i.push({path:`/${s}`}),d.value=null};return(s,p)=>e(l).state.workspace?(t(),m("div",S,[c(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:d.value===a.id}]),"body-style":{cursor:"pointer"},onClick:W=>g(a.path,a.id)},{default:r(()=>[c(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"}})),c(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(T(a.name),1)]),_:2},1024),d.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}),c(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.41028f57.js.map
