text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var tslib_1 = require("tslib");
  var React = tslib_1.__importStar(require("react"));
  var SidePage_module_less_1 = tslib_1.__importDefault(require("./SidePage.module.css"));
  var SidePageContext_1 = require("./SidePageContext");
  var utils_1 = require("../../lib/utils");
  var SidePageBody = /** @class */function (_super) {
    tslib_1.__extends(SidePageBody, _super);
    function SidePageBody() {
      return _super !== null && _super.apply(this, arguments) || this;
    }
    SidePageBody.prototype.componentDidUpdate = function () {
      var context = this.props.context;
      if (context) {
        context.updateLayout();
      }
    };
    SidePageBody.prototype.render = function () {
      return React.createElement("div", { className: SidePage_module_less_1["default"].body }, this.props.children);
    };
    SidePageBody.__KONTUR_REACT_UI__ = 'SidePageBody';
    return SidePageBody;
  }(React.Component);
  exports.SidePageBody = SidePageBody;
  exports.SidePageBodyWithContext = utils_1.withContext(SidePageContext_1.SidePageContext.Consumer)(SidePageBody);
  exports["default"] = exports.SidePageBodyWithContext;