import{F as b}from"./PhArrowSquareOut.vue.97dcf740.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 d,eH as I,x as D}from"./outputWidgets.eb498848.js";import"./index.9769729d.js";import"./index.f10dc7f9.js";import{A as y}from"./index.60acdd5f.js";import{a as _}from"./Base.60455d70.js";import{C as F}from"./Card.70a00c39.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]="840877f4-53f4-443c-9fec-859bd94ffba3",a._sentryDebugIdIdentifier="sentry-dbid-840877f4-53f4-443c-9fec-859bd94ffba3")}catch{}})();const H=k({__name:"HomeContent",props:{loading:{type:Boolean},workspace:{}},emits:["form-click"],setup(a,{emit:r}){const f=a,p=w(()=>{var e,l;return(l=(e=f.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})):p.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(p.value,c=>(o(),i(t(F),{key:c.id,class:"form-card",onClick:B=>g(c.path)},{default:n(()=>[d(t(y),{gap:"large",align:"center",justify:"space-between"},{default:n(()=>[d(t(_),{style:{"font-size":"18px","font-weight":"500"}},{default:n(()=>[m(I(c.name),1)]),_:2},1024),d(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.dd59cea5.js.map
