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