import{F as b}from"./PhArrowSquareOut.vue.5596feda.js";import{d as k,H as v,b as o,eu as u,c as i,u as t,w as n,ev as w,bf as C,aq as m,aC as h,eB as x,f as d,eD as D,v as I}from"./outputWidgets.3681a2a5.js";import"./index.28b53c50.js";import"./index.a1980417.js";import{A as y}from"./index.4f6b4519.js";import{a as _}from"./Text.1bf2a6e4.js";import{C as B}from"./Card.f6d00432.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]="a4525a26-ff8c-4b56-8984-ef29c4900999",a._sentryDebugIdIdentifier="sentry-dbid-a4525a26-ff8c-4b56-8984-ef29c4900999")}catch{}})();const H=k({__name:"HomeContent",props:{loading:{type:Boolean},workspace:{}},emits:["form-click"],setup(a,{emit:r}){const f=a,p=v(()=>{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:w({backgroundColor:(s=e.workspace)==null?void 0:s.theme})},[e.loading?(o(),i(t(C),{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(h,null,x(p.value,c=>(o(),i(t(B),{key:c.id,class:"form-card",onClick:F=>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(D(c.name),1)]),_:2},1024),d(t(b),{color:"#000",width:"20"})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}))],4)}}});const j=I(H,[["__scopeId","data-v-e246816b"]]);export{j as H};
//# sourceMappingURL=HomeContent.c33916dc.js.map
