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