'use strict';

var neetoCist = require('@bigbinary/neeto-cist');

/* eslint-disable @bigbinary/neeto/no-globalProps-reassignment */
function initializeGlobalProps() {
  var _document$getElements, _window;
  window.globalProps = neetoCist.keysToCamelCase(JSON.parse(((_document$getElements = document.getElementsByClassName("root-container")[0]) === null || _document$getElements === void 0 || (_document$getElements = _document$getElements.dataset) === null || _document$getElements === void 0 ? void 0 : _document$getElements.reactProps) || "{}"));
  if ((_window = window) !== null && _window !== void 0 && (_window = _window.globalProps) !== null && _window !== void 0 && _window.appName) {
    window.globalProps.appName = neetoCist.capitalize(window.globalProps.appName);
  }
  neetoCist.deepFreezeObject(window.globalProps);
}

module.exports = initializeGlobalProps;
//# sourceMappingURL=globalProps.js.map
