import{i as b}from"./metadata.36983e80.js";import{W as k}from"./Watermark.6422e7f9.js";import{F as h}from"./PhArrowSquareOut.vue.a55f7651.js";import{d as w,e3 as v,g as x,f as C,u as e,K as f,b as p,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 _,ei as F,eb as L,ec as T,Q as B}from"./index.46377be8.js";import{u as H}from"./workspaceStore.8f060237.js";import"./index.7bcd20be.js";import{L as N}from"./LoadingOutlined.8f60b0fd.js";import{C as S}from"./Card.6911b926.js";import"./PhWebhooksLogo.vue.01c2bd28.js";import"./userStore.f42f02ab.js";import"./runnerData.5c45cdc1.js";import"./url.ad55f26c.js";import"./colorHelpers.eff3b20c.js";import"./TabPane.e3e81391.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]="d1fdf8ed-4d94-4b48-992b-76eb116b8f06",o._sentryDebugIdIdentifier="sentry-dbid-d1fdf8ed-4d94-4b48-992b-76eb116b8f06")}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(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:T(["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(b)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(L(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(k,{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.b55296a6.js.map
