import{d as k,v as m,r as y,c as o,b1 as d,R as f,a as _,e as v,w as s,o as g,m as t,g as l,b2 as C,b3 as B}from"./index-a91efef8.js";import{u as T}from"./usePageTitle-6b86fe3b.js";const S=k({__name:"BlocksCatalog",setup(x){const c=m(),a=y(null),p=o(()=>a.value?[a.value]:[]),{filter:n}=d({blockSchemas:{blockCapabilities:p}}),i=f(c.blockTypes.getBlockTypes,[n]),u=o(()=>i.response??[]);return T("Blocks Catalog"),(h,e)=>{const r=_("p-layout-default");return g(),v(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":u.value},null,8,["capability","block-types"])]),_:1})}}});export{S as default};
