export const mapObjectTypeToComboBoxItemModel = (objectTypeModel) => objectTypeModel.map(objectType => ({
    value: objectType.id,
    caption: objectType.name,
    startImgSrc: objectType.icon
}));
export const mapCategoryToComboBoxItemModel = (categoryModel) => categoryModel.map(category => ({
    value: category.id,
    caption: category.label
}));
const hasActiveNode = (node) => {
    if (node.active) {
        return true;
    }
    if (Array.isArray(node.nodes)) {
        return node.nodes.some(hasActiveNode);
    }
    return false;
};
export const hasActiveVersionInList = (versionsList) => {
    return versionsList.some(hasActiveNode);
};
//# sourceMappingURL=helpers.js.map
