import{CATALOG_ENTITIES_DEFAULT_CONFIG as o}from"../../constants/plugins/catalog-entities.js";import{isPredefinedCatalogType as l,predefinedCatalogTypes as r}from"./utils/is-predefined-catalog-type.js";function C(t){if(!t)return o;const e={...t.catalogs};for(const a of r)e[a]={...o.catalogs?.[a],...t.catalogs?.[a]};if(t.catalogs)for(const[a,s]of Object.entries(t.catalogs))l(a)||(e[a]={...s,...s?.slug?{}:{slug:a}});return{...o,show:t.show,catalogs:e,entityTypes:t.entityTypes}}export{C as getCompleteCatalogConfig};
