import{i as b}from"./metadata-CAFu9r63.js";import{W as h}from"./Watermark-DZzAl6kd.js";import{F as w}from"./PhArrowSquareOut.vue-CFwjaASF.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,b3 as g,R as z,a1 as F,aj as j,g as a,O as B,$ as H,aP as L}from"./jwt-decode.esm-CcJLQF7t.js";import{u as N}from"./workspaceStore-9C3R-gE4.js";import{C as P}from"./index-BXbFLZCZ.js";import{L as S}from"./LoadingOutlined-B9U5maph.js";import"./PhHouse.vue-J_3ls6uW.js";import"./PhMagnifyingGlass.vue-DCpkZ8yj.js";import"./PhWebhooksLogo.vue-DjAd9nrK.js";import"./constants-rOn-kt-k.js";import"./userStore-SgpjV08H.js";import"./runnerData-BH8BB-8q.js";import"./url-Dm-l1SL8.js";import"./colorHelpers-CEpvYiFq.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]="00a9f104-b3e4-4b29-923f-255d41294f6b",o._sentryDebugIdIdentifier="sentry-dbid-00a9f104-b3e4-4b29-923f-255d41294f6b")}catch{}})();const T={key:0,class:"home-container"},V=v({__name:"Home",setup(o){const n=j(),i=N(),d=x(()=>i.state.workspace?.sidebar.filter(p=>p.id!=="home")||[]),l=C(null),k=async(p,f)=>{l.value=f,await n.push({path:`/${p}`}),l.value=null};return(p,f)=>e(i).state.workspace?(a(),m("div",T,[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),m(z,{key:1},F(d.value,t=>(a(),r(e(P),{key:t.id,class:B(["form-card",{loading:l.value===t.id}]),"body-style":{cursor:"pointer"},onClick:W=>k(t.path,t.id)},{default:s(()=>[c(e(u),{gap:"large",align:"center",justify:"space-between"},{default:s(()=>[(a(),r(H(e(b)(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(S),{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)}}),ee=L(V,[["__scopeId","data-v-132e66ff"]]);export{ee as default};
//# sourceMappingURL=Home-DsjAOG2F.js.map
