import{W as g}from"./Watermark.49ed07d5.js";import{i as b}from"./metadata.9e4f8380.js";import{F as h}from"./PhArrowSquareOut.vue.8f35b18d.js";import{d as k,eH as w,f as x,u as e,W as m,b as o,w as r,R as v,o as s,c as p,ax as u,cU as f,aJ as C,ew as D,d0 as _,ex as I,et as F,$ as H}from"./vue-router.33ac8cf0.js";import{u as T}from"./workspaceStore.26ac0c6b.js";import"./index.a691f9e4.js";import{C as W}from"./Card.3815c904.js";import"./router.4e800ecb.js";import"./PhBug.vue.14c4ca47.js";import"./PhCheckCircle.vue.dd54e5f8.js";import"./PhKanban.vue.3f725030.js";import"./PhWebhooksLogo.vue.ecd2df5b.js";import"./api.9e154b60.js";import"./runnerData.411ef4c2.js";import"./url.d6d42cf8.js";import"./TabPane.3c2ae325.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]="97eaaee1-e1d7-4673-bb45-c726b429b0e2",t._sentryDebugIdIdentifier="sentry-dbid-97eaaee1-e1d7-4673-bb45-c726b429b0e2")}catch{}})();const z={key:0,class:"home-container"},B=k({__name:"Home",setup(t){const n=w(),i=T(),l=x(()=>{var a;return((a=i.state.workspace)==null?void 0:a.sidebar.filter(d=>d.id!=="home"))||[]}),y=a=>{n.push({path:`/${a}`})};return(a,d)=>e(i).state.workspace?(s(),m("div",z,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[l.value.length===0?(s(),p(e(f),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[u(" There are no forms available for you. ")]),_:1})):(s(!0),m(C,{key:1},D(l.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(b)(c.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),o(e(f),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[u(F(c.name),1)]),_:2},1024),o(e(h),{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.6e39235f.js.map
