import{W as g}from"./Watermark.f4086781.js";import{i as h}from"./metadata.bbb8090a.js";import{F as k}from"./PhArrowSquareOut.vue.8733768c.js";import{d as w,eH as b,f as x,u as e,W as m,b as o,w as r,R as v,o as s,c as d,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.92e55c98.js";import{u as T}from"./workspaceStore.e42744fd.js";import"./index.18458b37.js";import{C as W}from"./Card.4606ef0f.js";import"./router.fc029da6.js";import"./PhCheckCircle.vue.684bfc5d.js";import"./PhKanban.vue.964bce5a.js";import"./PhWebhooksLogo.vue.3e64c87f.js";import"./api.33a01fbf.js";import"./runnerData.d6def43f.js";import"./url.4183c896.js";import"./TabPane.2ffd0557.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]="467d9cf1-edd3-43de-837a-8973b9d43b16",t._sentryDebugIdIdentifier="sentry-dbid-467d9cf1-edd3-43de-837a-8973b9d43b16")}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(),m("div",z,[o(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[p.value.length===0?(s(),d(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(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(f),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[u(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.41da23e3.js.map
