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