Liferay.Loader.define("commerce-bom-admin-web@4.0.30/js/index.es", ['module', 'exports', 'require', 'frontend-js-react-web', 'frontend-js-react-web$react', './App.es', './components/StoreContext.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = _default;

    var _frontendJsReactWeb = require("frontend-js-react-web");

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _App = _interopRequireDefault(require("./App.es"));

    var _StoreContext = require("./components/StoreContext.es");

    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { default: obj };
    }

    function _extends() {
      _extends = Object.assign || function (target) {
        for (var i = 1; i < arguments.length; i++) {
          var source = arguments[i];for (var key in source) {
            if (Object.prototype.hasOwnProperty.call(source, key)) {
              target[key] = source[key];
            }
          }
        }return target;
      };return _extends.apply(this, arguments);
    }

    /* eslint-disable no-unused-vars */
    var instance = null;

    function BOMAdmin(props) {
      return (/*#__PURE__*/_react.default.createElement(_StoreContext.StoreProvider, null, /*#__PURE__*/_react.default.createElement(_App.default, _extends({
          ref: function ref(component) {
            instance = component;
          }
        }, props)))
      );
    }

    function _default(componentId, id, props) {
      var portletFrame = window.document.getElementById(id);
      (0, _frontendJsReactWeb.render)(BOMAdmin, props, portletFrame);
    }
    //# sourceMappingURL=index.es.js.map
  }
});
//# sourceMappingURL=index.es.js.map