import{W as g}from"./Watermark.0a3671b2.js";import{i as h}from"./metadata.13347b41.js";import{F as k}from"./PhArrowSquareOut.vue.e9ee7d80.js";import{d as w,eH as x,f as b,u as e,W as f,b as o,w as r,R as v,o as s,c as p,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.967882c8.js";import{u as T}from"./workspaceStore.7e88e277.js";import"./index.20377e0b.js";import{C as W}from"./Card.3d0c01c8.js";import"./router.cbc2490c.js";import"./PhBug.vue.4ca22a33.js";import"./PhCheckCircle.vue.1735ba12.js";import"./PhKanban.vue.d200ad18.js";import"./PhWebhooksLogo.vue.31f69db8.js";import"./api.27083d64.js";import"./runnerData.6dfbb051.js";import"./url.ca479924.js";import"./TabPane.4d5829b5.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]="fe97df63-141e-4ed2-a944-70fdc7789e21",t._sentryDebugIdIdentifier="sentry-dbid-fe97df63-141e-4ed2-a944-70fdc7789e21")}catch{}})();const z={key:0,class:"home-container"},B=w({__name:"Home",setup(t){const n=x(),i=T(),d=b(()=>{var a;return((a=i.state.workspace)==null?void 0:a.sidebar.filter(l=>l.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,l)=>e(i).state.workspace?(s(),f("div",z,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[d.value.length===0?(s(),p(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(d.value,c=>(s(),p(e(W),{key:c.id,class:"form-card",onClick:N=>y(c.path)},{default:r(()=>[o(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(s(),p(I(e(h)(c.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(u),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(c.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(i).state.workspace.language},null,8,["locale"])])):v("",!0)}});const Q=H(B,[["__scopeId","data-v-2ee244f8"]]);export{Q as default};
//# sourceMappingURL=Home.89da8bb0.js.map
