import{F as g}from"./PhArrowSquareOut.vue.e9645c16.js";import{d as k,H as v,b as a,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 c,eD as D,v as I}from"./outputWidgets.67d01534.js";import"./index.a9d2fb7a.js";import"./index.a0d94146.js";import{A as y}from"./index.3dca3a8f.js";import{a as _}from"./Text.fce07a64.js";import{C as B}from"./Card.e0b50de4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="de03bb85-f791-42d5-b2f3-c043b908438d",o._sentryDebugIdIdentifier="sentry-dbid-de03bb85-f791-42d5-b2f3-c043b908438d")}catch{}})();const H=k({__name:"HomeContent",props:{loading:{type:Boolean},workspace:{}},emits:["form-click"],setup(o,{emit:r}){const p=o,f=v(()=>{var e,l;return(l=(e=p.workspace)==null?void 0:e.sidebar.filter(s=>s.visible))!=null?l:[]});function b(e){r("form-click",e)}return(e,l)=>{var s;return a(),u("div",{class:"container",style:w({backgroundColor:(s=e.workspace)==null?void 0:s.theme})},[e.loading?(a(),i(t(C),{key:0})):f.value.length===0?(a(),i(t(_),{key:1,type:"secondary",style:{"font-size":"18px"}},{default:n(()=>[m(" There are no public forms available ")]),_:1})):(a(),i(t(y),{key:2,vertical:"",gap:"large",style:{padding:"120px 0"}},{default:n(()=>[(a(!0),u(h,null,x(f.value,d=>(a(),i(t(B),{key:d.id,class:"form-card",onClick:F=>b(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(D(d.name),1)]),_:2},1024),c(t(g),{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.b161c23f.js.map
