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