import{d as k,h as f,af as m,j as o,cn as y,t as _,c as d,k as t,l as v,o as C,m as s,n as l,co as g,cp as B}from"./index-CKtbewUP.js";import{u as T}from"./usePageTitle-BJBko9bD.js";const S=k({__name:"BlocksCatalog",setup(h){const c=f(),a=m(null),n=o(()=>a.value?[a.value]:[]),{filter:p}=y({blockSchemas:{blockCapabilities:n}}),i=_(c.blockTypes.getBlockTypes,[p]),u=o(()=>i.response??[]);return T("Blocks Catalog"),(x,e)=>{const r=v("p-layout-default");return C(),d(r,{class:"blocks-catalog"},{header:t(()=>[s(l(g))]),default:t(()=>[s(l(B),{capability:a.value,"onUpdate:capability":e[0]||(e[0]=b=>a.value=b),"block-types":u.value},null,8,["capability","block-types"])]),_:1})}}});export{S as default};
//# sourceMappingURL=BlocksCatalog-dxqooZgr.js.map
