import{i as k}from"./metadata.eb597bf1.js";import{W as b}from"./Watermark.0ad7d246.js";import{F as h}from"./PhArrowSquareOut.vue.5f261af0.js";import{d as w,eH as v,g as x,f as C,u as e,o as a,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.f15cb536.js";import{u as B}from"./workspaceStore.4333a685.js";import"./index.3b4dce3a.js";import{L as N}from"./LoadingOutlined.69562f00.js";import{C as S}from"./Card.61b8789c.js";import"./PhWebhooksLogo.vue.64dadcf0.js";import"./userStore.8dc60551.js";import"./url.005bba68.js";import"./colorHelpers.f4fce95c.js";import"./TabPane.b1f788aa.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]="f4cea7b2-34eb-4162-9731-0b9e887d6adf",o._sentryDebugIdIdentifier="sentry-dbid-f4cea7b2-34eb-4162-9731-0b9e887d6adf")}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(c=>c.id!=="home"))||[]}),d=C(null),g=async(s,c)=>{d.value=c,await i.push({path:`/${s}`}),d.value=null};return(s,c)=>e(l).state.workspace?(a(),f("div",V,[p(e(_),{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(()=>[m(" There are no forms available for you. ")]),_:1})):(a(!0),f(D,{key:1},I(u.value,t=>(a(),n(e(S),{key:t.id,class:L(["form-card",{loading:d.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(F(e(k)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(H(t.name),1)]),_:2},1024),d.value!==t.id?(a(),n(e(h),{key:0,size:"20"})):(a(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(b,{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.9b06ea26.js.map
