import{i as b}from"./metadata.f9b15aa3.js";import{W as h}from"./Watermark.89ff9b4a.js";import{F as k}from"./PhArrowSquareOut.vue.9d53934e.js";import{d as w,e3 as v,g as x,f as C,u as e,K as u,b as d,w as r,F as z,o as a,c as n,az as m,d2 as y,aL as D,ea as I,da as _,eh as F,eb as L,ec as T,Q as B}from"./index.79dc3613.js";import{u as H}from"./workspaceStore.527cc49d.js";import"./index.6ff01c1a.js";import{L as N}from"./LoadingOutlined.40ef64a4.js";import{C as S}from"./Card.b1519b39.js";import"./PhWebhooksLogo.vue.3b2d5a30.js";import"./userStore.d0fdc011.js";import"./url.c29c9736.js";import"./colorHelpers.473bf6ef.js";import"./TabPane.1571cc7a.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]="7f7eff3b-309b-43ce-943b-b19f572ca619",o._sentryDebugIdIdentifier="sentry-dbid-7f7eff3b-309b-43ce-943b-b19f572ca619")}catch{}})();const V={key:0,class:"home-container"},W=w({__name:"Home",setup(o){const i=v(),l=H(),f=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(p=>p.id!=="home"))||[]}),c=C(null),g=async(s,p)=>{c.value=p,await i.push({path:`/${s}`}),c.value=null};return(s,p)=>e(l).state.workspace?(a(),u("div",V,[d(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[f.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(a(!0),u(D,{key:1},I(f.value,t=>(a(),n(e(S),{key:t.id,class:T(["form-card",{loading:c.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(F(e(b)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(L(t.name),1)]),_:2},1024),c.value!==t.id?(a(),n(e(k),{key:0,size:"20"})):(a(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),d(h,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):z("",!0)}});const X=B(W,[["__scopeId","data-v-060376d1"]]);export{X as default};
//# sourceMappingURL=Home.4321d5f1.js.map
