import{W as g}from"./Watermark.70127499.js";import{i as h}from"./metadata.7533f2aa.js";import{F as k}from"./PhArrowSquareOut.vue.b18d1766.js";import{d as w,eN as x,f as b,u as e,o,W as f,b as r,w as s,R as v,c as p,ax as m,cS as u,aJ as C,eD as D,c_ as _,eE as I,eA as F,$ as N}from"./vue-router.b2844dbd.js";import{u as S}from"./workspaceStore.b7eabfd4.js";import"./index.49b0e725.js";import{C as T}from"./Card.81031f41.js";import"./router.be61be60.js";import"./PhCheckCircle.vue.fd275d53.js";import"./PhKanban.vue.fbcc2e7d.js";import"./PhWebhooksLogo.vue.b7fc26fe.js";import"./api.41112379.js";import"./runnerData.9fbeada9.js";import"./url.c5aa13f6.js";import"./TabPane.1487adae.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="a7e5cdf3-9311-45dd-9fe2-72381a0af460",t._sentryDebugIdIdentifier="sentry-dbid-a7e5cdf3-9311-45dd-9fe2-72381a0af460")}catch{}})();const W={key:0,class:"home-container"},z=w({__name:"Home",setup(t){const n=x(),c=S(),d=b(()=>{var a;return((a=c.state.workspace)==null?void 0:a.sidebar.filter(l=>l.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,l)=>e(c).state.workspace?(o(),f("div",W,[r(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:s(()=>[d.value.length===0?(o(),p(e(u),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:s(()=>[m(" There are no forms available for you. ")]),_:1})):(o(!0),f(C,{key:1},D(d.value,i=>(o(),p(e(T),{key:i.id,class:"form-card",onClick:B=>y(i.path)},{default:s(()=>[r(e(_),{gap:"large",align:"center",justify:"space-between"},{default:s(()=>[(o(),p(I(e(h)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),r(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:s(()=>[m(F(i.name),1)]),_:2},1024),r(e(k),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),r(g,{class:"watermark","page-id":"home",locale:e(c).state.workspace.language},null,8,["locale"])])):v("",!0)}});const Q=N(z,[["__scopeId","data-v-2ee244f8"]]);export{Q as default};
//# sourceMappingURL=Home.2e19184d.js.map
