"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AG_GRID_VERSION = exports.ALL_AG_GRID_MODULES = void 0;
const ag_grid_enterprise_1 = require("ag-grid-enterprise");
function extractAgGridModuleNames(module, collectedModules = new Set()) {
    if (!module || !module.moduleName) {
        return collectedModules;
    }
    collectedModules.add(module);
    if (module.dependsOn) {
        module.dependsOn.forEach((dep) => {
            extractAgGridModuleNames(dep, collectedModules);
        });
    }
    return collectedModules;
}
exports.ALL_AG_GRID_MODULES = extractAgGridModuleNames(ag_grid_enterprise_1.AllEnterpriseModule);
exports.AG_GRID_VERSION = ag_grid_enterprise_1.AllEnterpriseModule.version;
