"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.MiniModalBody = void 0;var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));var _react = _interopRequireDefault(require("react"));

var _forwardRefAndName = require("../../lib/forwardRefAndName");

var _Modal = require("../Modal");
var _ThemeContext = require("../../lib/theming/ThemeContext");
var _ThemeHelpers = require("../../lib/theming/ThemeHelpers");
var _Emotion = require("../../lib/theming/Emotion");

var _MiniModal = require("./MiniModal");
var _MiniModal2 = require("./MiniModal.styles");var _excluded = ["children"];

/**
 * Обёртка над Modal.Body
 *
 * @visibleName MiniModal.Body
 */
var MiniModalBody = exports.MiniModalBody = (0, _forwardRefAndName.forwardRefAndName)(
  'MiniModalBody',
  function (_ref, ref) {var children = _ref.children,rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
    return /*#__PURE__*/(
      _react.default.createElement(_Modal.Modal.Body, rest, /*#__PURE__*/
      _react.default.createElement(_ThemeContext.ThemeContext.Consumer, null,
      function (theme) {var _cx;
        return /*#__PURE__*/(
          _react.default.createElement("div", {
            "data-tid": _MiniModal.MiniModalDataTids.description,
            ref: ref,
            className: (0, _Emotion.cx)(_MiniModal2.styles.description(), (_cx = {}, _cx[
            _MiniModal2.styles.description5_3(theme)] = (0, _ThemeHelpers.isThemeGTE)(theme, '5.3'), _cx)
            ) },

          children
          ));

      }
      )
      ));

  }
);