import{d as k,M as f,h as y,g as o,bq as m,f as _,c as d,j as s,l as g,o as v,n as t,u as l,br as C,bs as B}from"./index-bJiZR03d.js";import{u as T}from"./usePageTitle-wT6f1BZv.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}}),u=_(c.blockTypes.getBlockTypes,[n]),i=o(()=>u.response??[]);return T("Blocks Catalog"),(x,e)=>{const r=g("p-layout-default");return v(),d(r,{class:"blocks-catalog"},{header:s(()=>[t(l(C))]),default:s(()=>[t(l(B),{capability:a.value,"onUpdate:capability":e[0]||(e[0]=b=>a.value=b),"block-types":i.value},null,8,["capability","block-types"])]),_:1})}}});export{O as default};
