import{W as g}from"./Watermark.7729a537.js";import{i as h}from"./metadata.697b7687.js";import{F as k}from"./PhArrowSquareOut.vue.4ee54abe.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.e3679951.js";import{u as T}from"./workspaceStore.d7af80d0.js";import"./index.47d1edad.js";import{C as W}from"./Card.3844e944.js";import"./router.eac7397e.js";import"./PhCheckCircle.vue.db99db2d.js";import"./PhKanban.vue.020af0d1.js";import"./PhWebhooksLogo.vue.612975cd.js";import"./api.0aad6dd5.js";import"./runnerData.84a8ef6e.js";import"./url.1254a653.js";import"./TabPane.5c6637aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="15a8f704-f3fa-42d0-afec-aa9a3db55a9e",a._sentryDebugIdIdentifier="sentry-dbid-15a8f704-f3fa-42d0-afec-aa9a3db55a9e")}catch{}})();const z={key:0,class:"home-container"},B=w({__name:"Home",setup(a){const n=x(),c=T(),d=b(()=>{var t;return((t=c.state.workspace)==null?void 0:t.sidebar.filter(l=>l.id!=="home"))||[]}),y=t=>{n.push({path:`/${t}`})};return(t,l)=>e(c).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,i=>(s(),p(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(),p(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.384a7920.js.map
