import{i as k}from"./metadata.10e0cc73.js";import{W as h}from"./Watermark.cf7f6d2f.js";import{F as w}from"./PhArrowSquareOut.vue.118ade38.js";import{d as b,eH as v,g as x,f as C,u as e,o as a,K as m,b as d,w as r,F as z,c as n,az as f,d2 as y,aL as D,e9 as I,da as _,eg as F,ea as H,eb as L,Q as T}from"./index.ca490e8a.js";import{u as B}from"./workspaceStore.189a35d4.js";import"./index.b1565b30.js";import{L as N}from"./LoadingOutlined.bee0cc47.js";import{C as S}from"./Card.381bca55.js";import"./PhWebhooksLogo.vue.26672f6f.js";import"./userStore.30731d20.js";import"./url.5dfb0e00.js";import"./colorHelpers.10a20e96.js";import"./TabPane.01e3ce74.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]="11c8c589-8c78-4218-a28c-e346fb81e4e1",o._sentryDebugIdIdentifier="sentry-dbid-11c8c589-8c78-4218-a28c-e346fb81e4e1")}catch{}})();const V={key:0,class:"home-container"},W=b({__name:"Home",setup(o){const i=v(),l=B(),u=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(p=>p.id!=="home"))||[]}),c=C(null),g=async(s,p)=>{c.value=p,await i.push({path:`/${s}`}),c.value=null};return(s,p)=>e(l).state.workspace?(a(),m("div",V,[d(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[f(" There are no forms available for you. ")]),_:1})):(a(!0),m(D,{key:1},I(u.value,t=>(a(),n(e(S),{key:t.id,class:L(["form-card",{loading:c.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(F(e(k)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(H(t.name),1)]),_:2},1024),c.value!==t.id?(a(),n(e(w),{key:0,size:"20"})):(a(),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"])])):z("",!0)}});const X=T(W,[["__scopeId","data-v-060376d1"]]);export{X as default};
//# sourceMappingURL=Home.ad3b0fbd.js.map
