"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Pane = void 0;

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _color = _interopRequireDefault(require("../../../mixins/color"));

var _spacing = _interopRequireDefault(require("../../../mixins/spacing"));

var _border = _interopRequireDefault(require("../../../mixins/border"));

var _background = _interopRequireDefault(require("../../../mixins/background"));

var _visible = _interopRequireDefault(require("../../../mixins/visible"));

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

var Pane = _styledComponents["default"].div.withConfig({
  displayName: "src__Pane",
  componentId: "jeg95-0"
})(["", " ", ";", ";", ";", ";", ";"], function (_ref) {
  var containment = _ref.containment;
  return containment && "contain: ".concat(containment, ";");
}, _color["default"], _spacing["default"], _border["default"], _background["default"], _visible["default"]);

exports.Pane = Pane;
Pane.propTypes = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _color["default"].propTypes), _border["default"].propTypes), _spacing["default"].propTypes), _background["default"].propTypes), _visible["default"].propTypes), {}, {
  containment: _propTypes["default"].string
});
Pane.displayName = 'Pane';
Pane.Constrained = (0, _styledComponents["default"])(Pane).withConfig({
  displayName: "src__Constrained",
  componentId: "jeg95-1"
})(["margin-left:auto;margin-right:auto;max-width:", "px;"], function (_ref2) {
  var maxWidth = _ref2.maxWidth,
      theme = _ref2.theme;
  return maxWidth || theme.breakpoints.xl;
});
Pane.Constrained.propTypes = _objectSpread(_objectSpread({}, Pane.propTypes), {}, {
  maxWidth: _propTypes["default"].number
});
Pane.Constrained.displayName = 'Pane.Constrained';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9jb21wb25lbnRzL1BhbmUvc3JjL2luZGV4LmpzIl0sIm5hbWVzIjpbIlBhbmUiLCJzdHlsZWQiLCJkaXYiLCJjb250YWlubWVudCIsImNvbG9yTWl4aW4iLCJzcGFjaW5nTWl4aW4iLCJib3JkZXJNaXhpbiIsImJhY2tncm91bmRNaXhpbiIsInZpc2libGVNaXhpbiIsInByb3BUeXBlcyIsIlByb3BUeXBlcyIsInN0cmluZyIsImRpc3BsYXlOYW1lIiwiQ29uc3RyYWluZWQiLCJtYXhXaWR0aCIsInRoZW1lIiwiYnJlYWtwb2ludHMiLCJ4bCIsIm51bWJlciJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFFQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7O0FBRU8sSUFBTUEsSUFBSSxHQUFHQyw2QkFBT0MsR0FBVjtBQUFBO0FBQUE7QUFBQSx1Q0FDYjtBQUFBLE1BQUdDLFdBQUgsUUFBR0EsV0FBSDtBQUFBLFNBQXFCQSxXQUFXLHVCQUFnQkEsV0FBaEIsTUFBaEM7QUFBQSxDQURhLEVBRWJDLGlCQUZhLEVBR2JDLG1CQUhhLEVBSWJDLGtCQUphLEVBS2JDLHNCQUxhLEVBTWJDLG1CQU5hLENBQVY7OztBQVNQUixJQUFJLENBQUNTLFNBQUwsMkZBQ0t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