import{d as k,M as f,i as y,h as o,bq as m,f as _,k as d,c as v,l as s,o as C,n as t,u as l,br as g,bs as B}from"./index-gULJbqdd.js";import{u as T}from"./usePageTitle-HrbxxOEb.js";const O=k({__name:"BlocksCatalog",setup(h){const c=f(),a=y(null),p=o(()=>a.value?[a.value]:[]),{filter:n}=m({blockSchemas:{blockCapabilities:p}}),i=_(c.blockTypes.getBlockTypes,[n]),u=o(()=>i.response??[]);return T("Blocks Catalog"),(x,e)=>{const r=d("p-layout-default");return C(),v(r,{class:"blocks-catalog"},{header:s(()=>[t(l(g))]),default:s(()=>[t(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{O as default};
