"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"));

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"]);

exports.Pane = Pane;
Pane.propTypes = _objectSpread({}, _color["default"].propTypes, {}, _border["default"].propTypes, {}, _spacing["default"].propTypes, {}, _background["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 theme = _ref2.theme;
  return theme.breakpoints.xl;
});
Pane.Constrained.propTypes = Pane.propTypes;
Pane.Constrained.displayName = 'Pane.Constrained';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9jb21wb25lbnRzL1BhbmUvc3JjL2luZGV4LmpzIl0sIm5hbWVzIjpbIlBhbmUiLCJzdHlsZWQiLCJkaXYiLCJjb250YWlubWVudCIsImNvbG9yTWl4aW4iLCJzcGFjaW5nTWl4aW4iLCJib3JkZXJNaXhpbiIsImJhY2tncm91bmRNaXhpbiIsInByb3BUeXBlcyIsIlByb3BUeXBlcyIsInN0cmluZyIsImRpc3BsYXlOYW1lIiwiQ29uc3RyYWluZWQiLCJ0aGVtZSIsImJyZWFrcG9pbnRzIiwieGwiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBRUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7Ozs7OztBQUVPLElBQU1BLElBQUksR0FBR0MsNkJBQU9DLEdBQVY7QUFBQTtBQUFBO0FBQUEsa0NBQ2I7QUFBQSxNQUFHQyxXQUFILFFBQUdBLFdBQUg7QUFBQSxTQUFxQkEsV0FBVyx1QkFBZ0JBLFdBQWhCLE1BQWhDO0FBQUEsQ0FEYSxFQUViQyxpQkFGYSxFQUdiQyxtQkFIYSxFQUliQyxrQkFKYSxFQUtiQyxzQkFMYSxDQUFWOzs7QUFRUFAsSUFBSSxDQUFDUSxTQUFMLHFCQUNLSixrQkFBV0ksU0FEaEIsTUFFS0YsbUJBQVlFLFNBRmpCLE1BR0tILG9CQUFhRyxTQUhsQixNQUlLRCx1QkFBZ0JDLFNBSnJCO0FBS0VMLEVBQUFBLFdBQVcsRUFBRU0sc0JBQVVDO0FBTHpCO0FBUUFWLElBQUksQ0FBQ1csV0FBTCxHQUFtQixNQUFuQjtBQUVBWCxJQUFJLENBQUNZLF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