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

/**
 * @fileOverview The ConfigurationDefaults adapter for the CDM platform.
 *
 * @version 1.147.1
 */
sap.ui.define([
    "sap/ushell/bootstrap/cdm/cdmConstants",
    "sap/base/util/deepClone"
], (
    cdmConstants,
    deepClone
) => {
    "use strict";

    /**
     * Returns {sap.ushell.adapters.cdm.ConfigurationDefaultsAdapter} the configuration defaults adapter
     * @private
     */
    return function () {
        /**
         * @returns {Promise} Resolved promise contains all default configuration for CDM platform
         */
        this.getDefaultConfig = function () {
            return Promise.resolve(deepClone(cdmConstants.defaultConfig));
        };
    };
}, false /* bExport */);
