import{i as k}from"./metadata.ed52026a.js";import{W as h}from"./Watermark.d474876e.js";import{F as b}from"./PhArrowSquareOut.vue.e519cef2.js";import{d as w,eH as v,g as x,f as C,u as e,o as t,K as f,b as p,w as r,F as z,c as n,az as m,d2 as y,aL as D,e9 as I,da as _,eg as F,ea as H,eb as L,Q as T}from"./index.56a4aa2e.js";import{u as B}from"./workspaceStore.00fd0aec.js";import"./index.7e00f0b3.js";import{L as N}from"./LoadingOutlined.b6085be9.js";import{C as S}from"./Card.e1cbf4fc.js";import"./PhWebhooksLogo.vue.f3a45ccc.js";import"./userStore.31baf024.js";import"./url.7ee1877f.js";import"./colorHelpers.21549eb9.js";import"./TabPane.f81b8fb1.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]="6988201f-1495-4ac6-8a14-b7b4f648dfa9",o._sentryDebugIdIdentifier="sentry-dbid-6988201f-1495-4ac6-8a14-b7b4f648dfa9")}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(S),{key:a.id,class:L(["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(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(()=>[m(H(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(b),{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"])])):z("",!0)}});const X=T(W,[["__scopeId","data-v-060376d1"]]);export{X as default};
//# sourceMappingURL=Home.66708476.js.map
