import{i as k}from"./metadata-CaYBTvan.js";import{W as h}from"./Watermark-zg4f1k0t.js";import{F as w}from"./PhArrowSquareOut.vue-Ub8Bngcy.js";import{e as v,b as x,r as C,p as f,g as D,j as e,m as c,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-og2W_mys.js";import{u as O}from"./workspaceStore-B4xim6np.js";import{C as S}from"./index-F4m9QP88.js";import{L as T}from"./LoadingOutlined-DaLTXg8d.js";import"./PhMagnifyingGlass.vue-DnciAdl2.js";import"./PhWebhooksLogo.vue-CTgyFgt-.js";import"./constants-DLqQBhqI.js";import"./userStore-TcL0Pw6I.js";import"./runnerData-DQlisCXz.js";import"./url-Di0QLUa5.js";import"./colorHelpers-BW0h5pOm.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]="d3b0ad61-780b-424f-9661-7045b8b811f0",o._sentryDebugIdIdentifier="sentry-dbid-d3b0ad61-780b-424f-9661-7045b8b811f0")}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(p=>p.id!=="home")||[]),l=C(null),b=async(p,m)=>{l.value=m,await n.push({path:`/${p}`}),l.value=null};return(p,m)=>e(i).state.workspace?(a(),f("div",W,[c(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=>b(t.path,t.id)},{default:s(()=>[c(e(u),{gap:"large",align:"center",justify:"space-between"},{default:s(()=>[(a(),r(L(e(k)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),c(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}),c(h,{class:"watermark","page-id":"home",locale:e(i).state.workspace.language},null,8,["locale"])])):D("",!0)}}),Z=N(j,[["__scopeId","data-v-132e66ff"]]);export{Z as default};
//# sourceMappingURL=Home-BYEyXhwz.js.map
