import{W as g}from"./Watermark.377056ce.js";import{i as h}from"./metadata.27441164.js";import{F as k}from"./PhArrowSquareOut.vue.0a557563.js";import{d as w,eH as b,f as x,u as e,W as f,b as o,w as r,R as v,o as s,c as d,ax as m,cU as u,aJ as C,ew as D,d0 as _,ex as I,et as F,$ as H}from"./vue-router.4fd4520f.js";import{u as T}from"./workspaceStore.6dd8ec10.js";import"./index.a90d6ae6.js";import{C as W}from"./Card.48e09d8b.js";import"./router.55b33832.js";import"./PhCheckCircle.vue.6d828120.js";import"./PhKanban.vue.704583ea.js";import"./PhWebhooksLogo.vue.89f75beb.js";import"./api.8442f601.js";import"./runnerData.0a90c23e.js";import"./url.d2bb0884.js";import"./TabPane.517c1b34.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]="18fb04c8-feb7-48d7-9dd2-f76e63e8c9c8",t._sentryDebugIdIdentifier="sentry-dbid-18fb04c8-feb7-48d7-9dd2-f76e63e8c9c8")}catch{}})();const z={key:0,class:"home-container"},B=w({__name:"Home",setup(t){const n=b(),c=T(),p=x(()=>{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?(s(),f("div",z,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[p.value.length===0?(s(),d(e(u),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(s(!0),f(C,{key:1},D(p.value,i=>(s(),d(e(W),{key:i.id,class:"form-card",onClick:N=>y(i.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),d(I(e(h)(i.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(i.name),1)]),_:2},1024),o(e(k),{size:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),o(g,{class:"watermark","page-id":"home",locale:e(c).state.workspace.language},null,8,["locale"])])):v("",!0)}});const O=H(B,[["__scopeId","data-v-2ee244f8"]]);export{O as default};
//# sourceMappingURL=Home.dba05205.js.map
