import{d as _,a as f,r as k,e as t,b as m,g as y,o as d,h as g,w as l,i as c,j as s,aG as C,aH as v}from"./index.ace9693c.js";import{u as B}from"./usePageTitle.12638eb5.js";const S=_({__name:"BlocksCatalog",setup(T){const p=f(),a=k(null),n=t(()=>a.value?{blockSchemas:{blockCapabilities:{all_:[a.value]}}}:{}),i=m(p.blockTypes.getBlockTypes,[n]),r=t(()=>{var e;return(e=i.response)!=null?e:[]});return B("Blocks Catalog"),(e,o)=>{const u=y("p-layout-default");return d(),g(u,{class:"blocks-catalog"},{header:l(()=>[c(s(C))]),default:l(()=>[c(s(v),{capability:a.value,"onUpdate:capability":o[0]||(o[0]=b=>a.value=b),"block-types":s(r)},null,8,["capability","block-types"])]),_:1})}}});export{S as default};
