import{i as k}from"./metadata.5b7cd725.js";import{W as h}from"./Watermark.14e9fd2f.js";import{F as w}from"./PhArrowSquareOut.vue.9d3c1103.js";import{d as v,e3 as b,g as x,f as C,u as e,K as m,b as d,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.0aa22eb1.js";import{u as H}from"./workspaceStore.0248ee27.js";import"./index.62d305b2.js";import{L as N}from"./LoadingOutlined.24a46756.js";import{C as S}from"./Card.ea63bd5c.js";import"./PhWebhooksLogo.vue.8a33b13c.js";import"./userStore.c3b84f68.js";import"./runnerData.c985992f.js";import"./url.1b0df002.js";import"./colorHelpers.c0ab2983.js";import"./TabPane.e054bca9.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]="3e89c0c9-1eea-4f84-959f-92a5548175ca",o._sentryDebugIdIdentifier="sentry-dbid-3e89c0c9-1eea-4f84-959f-92a5548175ca")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const i=b(),l=H(),u=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?(t(),m("div",V,[d(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(()=>[d(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"}})),d(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(w),{key:0,size:"20"})):(t(),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 Y=B(W,[["__scopeId","data-v-060376d1"]]);export{Y as default};
//# sourceMappingURL=Home.e177845f.js.map
