import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-9wjJaosZ.js';
import { tracked } from '@glimmer/tracking';
import Service from '@ember/service';
import { merge } from 'lodash-es';

var _class, _descriptor;
const DEFAULT_CONFIG = {
  'euiIcon.useSvg': true,
  euiIconUseSvg: true,
  euiComboBoxOptionsHeight: 33
};
let EuiConfigService = (_class = class EuiConfigService extends Service {
  constructor(...args) {
    super(...args);
    _initializerDefineProperty(this, "_config", _descriptor, this);
  }
  getConfig(key) {
    return this._config[key];
  }
  updateConfig(config) {
    this._config = merge({}, this._config, config);
  }
  setConfig(config) {
    this._config = config;
  }
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "_config", [tracked], {
  configurable: true,
  enumerable: true,
  writable: true,
  initializer: function () {
    return DEFAULT_CONFIG;
  }
})), _class);

export { EuiConfigService as default };
//# sourceMappingURL=eui-config.js.map
