import{F as b}from"./PhArrowSquareOut.vue.12dafa2a.js";import{d as k,J as w,b as o,ew as u,c as i,u as t,w as n,ex as h,bh as v,as as m,aE as x,eF as C,f as c,eH as I,x as D}from"./outputWidgets.7dd23d3d.js";import"./index.63d9c692.js";import"./index.b7995827.js";import{A as y}from"./index.8d63ab0d.js";import{a as _}from"./Base.4bf9624b.js";import{C as F}from"./Card.fee12f7e.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="d1453710-b258-4a77-b3dc-ffd3f8240773",a._sentryDebugIdIdentifier="sentry-dbid-d1453710-b258-4a77-b3dc-ffd3f8240773")}catch{}})();const H=k({__name:"HomeContent",props:{loading:{type:Boolean},workspace:{}},emits:["form-click"],setup(a,{emit:r}){const p=a,f=w(()=>{var e,l;return(l=(e=p.workspace)==null?void 0:e.sidebar.filter(s=>s.visible))!=null?l:[]});function g(e){r("form-click",e)}return(e,l)=>{var s;return o(),u("div",{class:"container",style:h({backgroundColor:(s=e.workspace)==null?void 0:s.theme})},[e.loading?(o(),i(t(v),{key:0})):f.value.length===0?(o(),i(t(_),{key:1,type:"secondary",style:{"font-size":"18px"}},{default:n(()=>[m(" There are no public forms available ")]),_:1})):(o(),i(t(y),{key:2,vertical:"",gap:"large",style:{padding:"120px 0"}},{default:n(()=>[(o(!0),u(x,null,C(f.value,d=>(o(),i(t(F),{key:d.id,class:"form-card",onClick:B=>g(d.path)},{default:n(()=>[c(t(y),{gap:"large",align:"center",justify:"space-between"},{default:n(()=>[c(t(_),{style:{"font-size":"18px","font-weight":"500"}},{default:n(()=>[m(I(d.name),1)]),_:2},1024),c(t(b),{color:"#000",width:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}))],4)}}});const j=D(H,[["__scopeId","data-v-e246816b"]]);export{j as H};
//# sourceMappingURL=HomeContent.867fb964.js.map
