import{i as h}from"./metadata.d217de12.js";import{W as k}from"./Watermark.c9be7b32.js";import{F as b}from"./PhArrowSquareOut.vue.7513bf56.js";import{d as w,eH as v,f as x,e as C,u as e,o as t,Y as f,b as p,w as r,S as z,c as n,aG as m,d9 as y,aS as D,e9 as I,dh as _,ez as S,ea as F,ee as H,a0 as T}from"./index.a95f3dfe.js";import{u as B}from"./workspaceStore.2ea22595.js";import"./index.f631079f.js";import{L}from"./LoadingOutlined.03d94d2b.js";import{C as N}from"./Card.4d7023b2.js";import"./PhRobot.vue.1a24ea75.js";import"./PhWebhooksLogo.vue.3b3d46e9.js";import"./url.a3a3492f.js";import"./colorHelpers.4faf9736.js";import"./TabPane.2a52b775.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]="6eb8ee7a-a9fc-469a-955f-27d466b55511",o._sentryDebugIdIdentifier="sentry-dbid-6eb8ee7a-a9fc-469a-955f-27d466b55511")}catch{}})();const V={key:0,class:"home-container"},W=w({__name:"Home",setup(o){const i=v(),l=B(),u=x(()=>{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(),f("div",V,[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(()=>[m(" There are no forms available for you. ")]),_:1})):(t(!0),f(D,{key:1},I(u.value,a=>(t(),n(e(N),{key:a.id,class:H(["form-card",{loading:c.value===a.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(a.path,a.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(t(),n(S(e(h)(a.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(b),{key:0,size:"20"})):(t(),n(e(L),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):z("",!0)}});const U=T(W,[["__scopeId","data-v-060376d1"]]);export{U as default};
//# sourceMappingURL=Home.0a6e6d45.js.map
