import{i as h}from"./metadata-9bVE52cR.js";import{W as b}from"./Watermark-B-URe1Zi.js";import{F as w}from"./PhArrowSquareOut.vue-0fPpjD_1.js";import{e as v,b as x,r as C,y as f,g as D,j as e,m as p,w as s,J as u,f as r,k as y,t as _,i as I,b3 as g,V as z,a2 as F,ai as V,h as a,O as B,a0 as L,aO as N}from"./jwt-decode.esm-Y-RfnQ20.js";import{u as O}from"./workspaceStore-DzjCtodz.js";import{C as S}from"./index-DK7I2hHZ.js";import{L as T}from"./LoadingOutlined-CVuLx4Lq.js";import"./PhHouse.vue-DuRE0aGU.js";import"./PhMagnifyingGlass.vue-GOfjJIqt.js";import"./PhWebhooksLogo.vue-DwBzZbX1.js";import"./constants-CUcestWT.js";import"./userStore-OIwd_ZmR.js";import"./runnerData-CJRO-9N2.js";import"./url-DhLXlwsW.js";import"./colorHelpers-BXATf7HD.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="8362cb6d-d976-4f7c-89b2-b25ce09cf906",o._sentryDebugIdIdentifier="sentry-dbid-8362cb6d-d976-4f7c-89b2-b25ce09cf906")}catch{}})();const W={key:0,class:"home-container"},j=v({__name:"Home",setup(o){const n=V(),i=O(),d=x(()=>i.state.workspace?.sidebar.filter(c=>c.id!=="home")||[]),l=C(null),k=async(c,m)=>{l.value=m,await n.push({path:`/${c}`}),l.value=null};return(c,m)=>e(i).state.workspace?(a(),f("div",W,[p(e(u),{vertical:"",gap:"large",class:"cards-container"},{default:s(()=>[d.value.length===0?(a(),r(e(g),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:s(()=>[y(_(e(I).translate("i18n_home_no_forms_available")),1)]),_:1})):(a(!0),f(z,{key:1},F(d.value,t=>(a(),r(e(S),{key:t.id,class:B(["form-card",{loading:l.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>k(t.path,t.id)},{default:s(()=>[p(e(u),{gap:"large",align:"center",justify:"space-between"},{default:s(()=>[(a(),r(L(e(h)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(g),{style:{"font-size":"18px","font-weight":"500"}},{default:s(()=>[y(_(t.name),1)]),_:2},1024),l.value!==t.id?(a(),r(e(w),{key:0,size:"20"})):(a(),r(e(T),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(b,{class:"watermark","page-id":"home",locale:e(i).state.workspace.language},null,8,["locale"])])):D("",!0)}}),ee=N(j,[["__scopeId","data-v-132e66ff"]]);export{ee as default};
//# sourceMappingURL=Home-CI3Omsam.js.map
