"use strict";

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

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

var _lodash = require("lodash");

var _gridItem = require("./grid-item.constants");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

var gridItemPropTypes = {
  sm: _propTypes["default"].oneOf(['hide'].concat(_toConsumableArray((0, _lodash.range)(1, _gridItem.numColsSm + 1)))).isRequired,
  md: _propTypes["default"].oneOf(['hide'].concat(_toConsumableArray((0, _lodash.range)(1, _gridItem.numColsMd + 1)))),
  lg: _propTypes["default"].oneOf(['hide'].concat(_toConsumableArray((0, _lodash.range)(1, _gridItem.numColsLg + 1)))),
  xl: _propTypes["default"].oneOf(['hide'].concat(_toConsumableArray((0, _lodash.range)(1, _gridItem.numColsXl + 1)))),
  offsetSm: _propTypes["default"].oneOf((0, _lodash.range)(1, _gridItem.numColsSm + 1)),
  offsetMd: _propTypes["default"].oneOf((0, _lodash.range)(1, _gridItem.numColsMd + 1)),
  offsetLg: _propTypes["default"].oneOf((0, _lodash.range)(1, _gridItem.numColsLg + 1)),
  offsetXl: _propTypes["default"].oneOf((0, _lodash.range)(1, _gridItem.numColsXl + 1))
};
exports.gridItemPropTypes = gridItemPropTypes;