import{i as h}from"./metadata.ec598a6c.js";import{W as k}from"./Watermark.6a01fe65.js";import{F as v}from"./PhArrowSquareOut.vue.35a4680f.js";import{d as w,c as x,r as C,u as e,ac as m,f as p,b as r,h as D,ec as z,o as a,a as n,g as f,t as _,i as I,T as y,aY as B,eB as F,dj as g,eD as T,ez as H,_ as L}from"./jwt-decode.esm.fbcfeaec.js";import{u as N}from"./workspaceStore.fb02f79a.js";import"./index.3e76ecea.js";import{L as S}from"./LoadingOutlined.8738663a.js";import{C as V}from"./Card.5199b9ee.js";import"./PhWebhooksLogo.vue.b4180f20.js";import"./constants.b8ded506.js";import"./userStore.5192b178.js";import"./url.90414523.js";import"./colorHelpers.0cd68eec.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]="b7e8649e-2ab4-4c0b-9672-603b2c067c66",o._sentryDebugIdIdentifier="sentry-dbid-b7e8649e-2ab4-4c0b-9672-603b2c067c66")}catch{}})();const W={key:0,class:"home-container"},j=w({__name:"Home",setup(o){const i=z(),l=N(),u=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(d=>d.id!=="home"))||[]}),c=C(null),b=async(s,d)=>{c.value=d,await i.push({path:`/${s}`}),c.value=null};return(s,d)=>e(l).state.workspace?(a(),m("div",W,[p(e(g),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[f(_(e(I).translate("i18n_home_no_forms_available")),1)]),_:1})):(a(!0),m(B,{key:1},F(u.value,t=>(a(),n(e(V),{key:t.id,class:H(["form-card",{loading:c.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>b(t.path,t.id)},{default:r(()=>[p(e(g),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(T(e(h)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(_(t.name),1)]),_:2},1024),c.value!==t.id?(a(),n(e(v),{key:0,size:"20"})):(a(),n(e(S),{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"])])):D("",!0)}});const X=L(j,[["__scopeId","data-v-2dd12c4e"]]);export{X as default};
//# sourceMappingURL=Home.e93ad499.js.map
