"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

exports.__esModule = true;
exports.setConfig = setConfig;
exports.getConfig = getConfig;
exports.testConfig = testConfig;

var constants = _interopRequireWildcard(require("./constants"));

var config = {};

function setConfig(conf) {
  config = conf; // IMPORTANT - config should be link to RC.Config, do not clone conf object!!!
}

function getConfig() {
  return config;
}

function testConfig(config) {
  setConfig(Object.assign({
    brandId: constants.defaultBrandId,
    userLanguage: constants.defaultUserLanguage,
    brandDisplayName: constants.defaultBrandDisplayName,
    shortBrandName: constants.defaultShortBrandName
  }, config || {}));
}