"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.BackgroundColors = void 0;
var React = _interopRequireWildcard(require("react"));
var _uiCore = require("@megafon/ui-core");
var _uiHelpers = require("@megafon/ui-helpers");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
var BackgroundColors = exports.BackgroundColors = {
  DEFAULT: 'default',
  LIGHT_GRAY: 'light-gray',
  GRAY: 'gray',
  GREEN: 'green',
  PURPLE: 'purple'
};
var cn = (0, _uiHelpers.cnCreate)('mfui-9-container');
var Container = function Container(_ref) {
  var _ref$backgroundColor = _ref.backgroundColor,
    backgroundColor = _ref$backgroundColor === void 0 ? 'default' : _ref$backgroundColor,
    rootRef = _ref.rootRef,
    id = _ref.id,
    className = _ref.className,
    classes = _ref.classes,
    children = _ref.children,
    disablePaddingTop = _ref.disablePaddingTop,
    disablePaddingBottom = _ref.disablePaddingBottom,
    disableRadiusTop = _ref.disableRadiusTop,
    disableRadiusBottom = _ref.disableRadiusBottom,
    disableHorizontalIndents = _ref.disableHorizontalIndents,
    _ref$bottomShadow = _ref.bottomShadow,
    bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow,
    _ref$preventMarginTop = _ref.preventMarginTopCollapse,
    preventMarginTopCollapse = _ref$preventMarginTop === void 0 ? false : _ref$preventMarginTop;
  return /*#__PURE__*/React.createElement("div", {
    className: cn({
      'bg-color': backgroundColor,
      'bottom-shadow': bottomShadow,
      'disable-padding-top': disablePaddingTop,
      'disable-padding-bottom': disablePaddingBottom,
      'disable-radius-top': disableRadiusTop,
      'disable-radius-bottom': disableRadiusBottom
    }, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
    ref: rootRef,
    id: id
  }, /*#__PURE__*/React.createElement("div", {
    className: cn('inner', {
      prevent: preventMarginTopCollapse
    }, [className, classes === null || classes === void 0 ? void 0 : classes.inner])
  }, /*#__PURE__*/React.createElement(_uiCore.ContentArea, {
    disableIndents: disableHorizontalIndents
  }, children)));
};
var _default = exports["default"] = Container;