// Copyright (c) 2009-2026 SAP SE, All Rights Reserved

/**
 * @fileOverview Helper of accessing catalog data for the 'CDM' platform.
 * @version 1.145.3
 * @private
 */
sap.ui.define([
], () => {
    "use strict";

    // CATALOG PROPERTIES

    /**
     * Returns the ID of the given catalog.
     *
     *  @param {object} oCatalog
     *      Catalog object
     *  @returns {string}
     *      ID of the given catalog
     */
    function getCatalogId (oCatalog) {
        return oCatalog.identification.id;
    }

    /**
     * Returns the title of the given catalog.
     *
     *  @param {object} oCatalog
     *      Catalog object
     *  @returns {string}
     *      Title of the given catalog
     */
    function getCatalogTitle (oCatalog) {
        return oCatalog.identification.title;
    }

    return {
        // CATALOG PROPERTIES
        getCatalogId: getCatalogId,
        getCatalogTitle: getCatalogTitle
    };
}, /* bExport = */ false);
