import{i as h}from"./metadata-uhV_Ahv9.js";import{W as w}from"./Watermark-CxyzRGuA.js";import{F as b}from"./PhArrowSquareOut.vue-Dua90LXe.js";import{e as v,b as x,r as C,f as m,j as D,p as e,v as c,w as s,H as u,n as r,q as y,t as _,l as I,bc as g,R as z,a1 as F,aj as j,g as a,O as B,$ as H,aQ as L}from"./jwt-decode.esm-Dwzi-xky.js";import{u as N}from"./workspaceStore-BPtCmoi9.js";import{C as S}from"./index-DQxz-H5t.js";import{L as T}from"./LoadingOutlined-C30AH7Ka.js";import"./PhHouse.vue-BdlRSFhB.js";import"./PhMagnifyingGlass.vue-DslYR1A6.js";import"./PhWebhooksLogo.vue-Bhh9eztd.js";import"./constants-ooMBp8zc.js";import"./userStore-DCfchFeR.js";import"./runnerData-DgQOUFhY.js";import"./url-BS2CA8Zo.js";import"./colorHelpers-C3Rgr1MS.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]="6f152259-3355-4a78-93fb-84d14f2f2526",o._sentryDebugIdIdentifier="sentry-dbid-6f152259-3355-4a78-93fb-84d14f2f2526")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const n=j(),i=N(),f=x(()=>i.state.workspace?.sidebar.filter(p=>p.id!=="home")||[]),l=C(null),k=async(p,d)=>{l.value=d,await n.push({path:`/${p}`}),l.value=null};return(p,d)=>e(i).state.workspace?(a(),m("div",V,[c(e(u),{vertical:"",gap:"large",class:"cards-container"},{default:s(()=>[f.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),m(z,{key:1},F(f.value,t=>(a(),r(e(S),{key:t.id,class:B(["form-card",{loading:l.value===t.id}]),"body-style":{cursor:"pointer"},onClick:$=>k(t.path,t.id)},{default:s(()=>[c(e(u),{gap:"large",align:"center",justify:"space-between"},{default:s(()=>[(a(),r(H(e(h)(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(b),{key:0,size:"20"})):(a(),r(e(T),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),c(w,{class:"watermark","page-id":"home",locale:e(i).state.workspace.language},null,8,["locale"])])):D("",!0)}}),ee=L(W,[["__scopeId","data-v-132e66ff"]]);export{ee as default};
//# sourceMappingURL=Home-BZXWwhxy.js.map
