import{i as k}from"./metadata.20f47b4e.js";import{W as b}from"./Watermark.d281437f.js";import{F as h}from"./PhArrowSquareOut.vue.d82b9b01.js";import{d as w,e3 as v,g as x,f as C,u as e,K as m,b as p,w as r,F as z,o as t,c as n,az as f,d2 as y,aL as D,ea as I,da as _,ei as F,eb as L,ec as T,Q as B}from"./index.1da01ec4.js";import{u as H}from"./workspaceStore.baf18d3b.js";import"./index.7b62f7b6.js";import{L as N}from"./LoadingOutlined.0ed0b4f9.js";import{C as S}from"./Card.581a9016.js";import"./PhWebhooksLogo.vue.4fa518ce.js";import"./userStore.ec835d25.js";import"./runnerData.975fa800.js";import"./url.8f466486.js";import"./colorHelpers.14704dc2.js";import"./TabPane.21b14f9f.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]="0a201ab0-b8f2-4741-b41c-424d570e18a3",o._sentryDebugIdIdentifier="sentry-dbid-0a201ab0-b8f2-4741-b41c-424d570e18a3")}catch{}})();const V={key:0,class:"home-container"},W=w({__name:"Home",setup(o){const i=v(),l=H(),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(),m("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(()=>[f(" There are no forms available for you. ")]),_:1})):(t(!0),m(D,{key:1},I(u.value,a=>(t(),n(e(S),{key:a.id,class:T(["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(()=>[f(L(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(h),{key:0,size:"20"})):(t(),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 Y=B(W,[["__scopeId","data-v-060376d1"]]);export{Y as default};
//# sourceMappingURL=Home.9962f161.js.map
