import{i as b}from"./metadata.1de7f561.js";import{W as h}from"./Watermark.9168e586.js";import{F as k}from"./PhArrowSquareOut.vue.a0096c3b.js";import{d as v,e5 as w,c as x,r as C,u as e,a5 as u,f as d,b as r,h as D,o as t,a as n,g as m,T as y,aR as I,eb as z,de as _,ee as T,ec as F,e9 as B,_ as H}from"./jwt-decode.esm.aa7cdf41.js";import{u as L}from"./workspaceStore.616f71d7.js";import"./index.b3ac4501.js";import{L as N}from"./LoadingOutlined.abca4734.js";import{C as S}from"./Card.0f711d0a.js";import"./PhWebhooksLogo.vue.1c929160.js";import"./userStore.ce5d0de4.js";import"./constants.903819dc.js";import"./url.33429ee0.js";import"./colorHelpers.2fcd0035.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="f0b5dabb-e2f3-4f53-8b6a-f4ff87cf711a",o._sentryDebugIdIdentifier="sentry-dbid-f0b5dabb-e2f3-4f53-8b6a-f4ff87cf711a")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const i=w(),l=L(),p=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(f=>f.id!=="home"))||[]}),c=C(null),g=async(s,f)=>{c.value=f,await i.push({path:`/${s}`}),c.value=null};return(s,f)=>e(l).state.workspace?(t(),u("div",V,[d(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[p.value.length===0?(t(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(t(!0),u(I,{key:1},z(p.value,a=>(t(),n(e(S),{key:a.id,class:B(["form-card",{loading:c.value===a.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(a.path,a.id)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(t(),n(T(e(b)(a.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(k),{key:0,size:"20"})):(t(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),d(h,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const X=H(W,[["__scopeId","data-v-060376d1"]]);export{X as default};
//# sourceMappingURL=Home.8cb7a562.js.map
