"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactRedux = require("react-redux");
var _immutable = require("connected-react-router/immutable");
var _styledComponents = require("styled-components");
var _styles = require("@material-ui/core/styles");
var _utils = require("../utils");
var _buildStore = require("../buildStore");
var _Authenticate = _interopRequireDefault(require("./Authenticate"));
var _DevPages = _interopRequireDefault(require("./DevPages"));
var _Head = _interopRequireDefault(require("./Head"));
var _I18n = _interopRequireDefault(require("./I18n"));
var _InternetExplorerWarningMessage = _interopRequireDefault(require("./InternetExplorerWarningMessage"));
var _Culture = _interopRequireDefault(require("./Culture"));
var _ScopeExtendedConfigurationLoader = _interopRequireDefault(require("./ScopeExtendedConfigurationLoader"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(["html{height:100%;}body{height:100%;margin:0;overflow:hidden;}#app{height:100%;}"]);
var Fonts = (0, _styledComponents.createGlobalStyle)(["body{font-family:", ";}"], (0, _utils.getThemeProp)(["fonts", "base"], "sans-serif"));
var Provision = function Provision(_ref) {
  var store = _ref.store,
    _ref$theme = _ref.theme,
    theme = _ref$theme === void 0 ? {} : _ref$theme,
    muiTheme = _ref.muiTheme,
    children = _ref.children;
  return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react.default.createElement(_immutable.ConnectedRouter, {
    history: _buildStore.history
  }, /*#__PURE__*/_react.default.createElement(_styledComponents.ThemeProvider, {
    theme: theme
  }, /*#__PURE__*/_react.default.createElement(_styles.MuiThemeProvider, {
    theme: muiTheme
  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(_Culture.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))), /*#__PURE__*/_react.default.createElement(_ScopeExtendedConfigurationLoader.default, null))))))));
};
var _default = Provision;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(GlobalStyle, "GlobalStyle", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(Fonts, "Fonts", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(Provision, "Provision", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Provision.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(GlobalStyle, "GlobalStyle", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(Fonts, "Fonts", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(Provision, "Provision", "/home/vsts/work/1/s/src/components/Provision.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Provision.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();