import{d as k,a as y,r as f,c as o,bh as m,E as _,b as d,e as v,w as s,o as C,h as t,u as l,bi as T,bj as g}from"./index-562c8470.js";import{u as B}from"./usePageTitle-ad3dbf10.js";const P=k({__name:"BlocksCatalog",setup(h){const c=y(),a=f(null),p=o(()=>a.value?[a.value]:[]),{filter:n}=m({blockSchemas:{blockCapabilities:p}}),i=_(c.blockTypes.getBlockTypes,[n]),u=o(()=>i.response??[]);return B("Blocks Catalog"),(x,e)=>{const r=d("p-layout-default");return C(),v(r,{class:"blocks-catalog"},{header:s(()=>[t(l(T))]),default:s(()=>[t(l(g),{capability:a.value,"onUpdate:capability":e[0]||(e[0]=b=>a.value=b),"block-types":u.value},null,8,["capability","block-types"])]),_:1})}}});export{P as default};
