"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.propsDescription = exports.defaultProps = exports["default"] = void 0;

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

var _htmlAttributes = _interopRequireWildcard(require("../../propTypes/htmlAttributes.propTypes"));

var _customClassName = _interopRequireWildcard(require("../../propTypes/customClassName.propTypes"));

var _automation = _interopRequireWildcard(require("../../propTypes/automation.propTypes"));

var _Pagination = _interopRequireDefault(require("./Pagination.customIds"));

var _Button = _interopRequireDefault(require("../button/Button.constantProps"));

var _Box = _interopRequireDefault(require("../layout/Box.constantProps"));

var _defaultProps;

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = _objectSpread(_objectSpread(_objectSpread({
  options: _propTypes["default"].arrayOf(_propTypes["default"].shape({
    name: _propTypes["default"].string.isRequired,
    id: _propTypes["default"].number.isRequired,
    isSelected: _propTypes["default"].bool,
    disabled: _propTypes["default"].bool
  })),
  previousButtonOptions: _propTypes["default"].shape({
    text: _propTypes["default"].string.isRequired,
    color: _propTypes["default"].string.isRequired,
    variant: _propTypes["default"].string,
    size: _propTypes["default"].string,
    shape: _propTypes["default"].string
  }),
  nextButtonOptions: _propTypes["default"].shape({
    text: _propTypes["default"].string.isRequired,
    color: _propTypes["default"].string.isRequired,
    variant: _propTypes["default"].string,
    size: _propTypes["default"].string,
    shape: _propTypes["default"].string
  }),
  onClick: _propTypes["default"].func,
  onNextClick: _propTypes["default"].func,
  justifyContent: _propTypes["default"].oneOf([_Box["default"].justifyContent.start, _Box["default"].justifyContent.end, _Box["default"].justifyContent.around, _Box["default"].justifyContent.between]),
  onPreviousClick: _propTypes["default"].func,
  dataId: _propTypes["default"].object,
  isStretch: _propTypes["default"].bool,
  isNext: _propTypes["default"].bool,
  isPrevious: _propTypes["default"].bool
}, _customClassName["default"]), _automation["default"]), _htmlAttributes["default"]);

exports["default"] = _default;
var defaultProps = (_defaultProps = {
  nextButtonOptions: {
    text: "Next",
    color: _Button["default"].color.primary,
    variant: _Button["default"].variant.contained,
    size: _Button["default"].size.large,
    shape: _Button["default"].shape.square
  },
  previousButtonOptions: {
    text: "Previous",
    color: _Button["default"].color.primary,
    variant: _Button["default"].variant.contained,
    size: _Button["default"].size.large,
    shape: _Button["default"].shape.square
  }
}, _defineProperty(_defaultProps, _automation.automationPropsName, _Pagination["default"]), _defineProperty(_defaultProps, _customClassName.customClassPropName, {}), _defineProperty(_defaultProps, _htmlAttributes.tagAttributePropsName, {}), _defaultProps);
exports.defaultProps = defaultProps;
var propsDescription = {
  options: "To show page count",
  onClick: "To listen page count click",
  onNextClick: "To listen next button click",
  onPreviousClick: "To listen Previous button click",
  dataId: "To add data-id attribute",
  justifyContent: "To align elements",
  isStretch: "To show button as stretch",
  isNext: "To show or disable next button",
  isPrevious: "To show or disable previous button",
  previousButtonOptions: "To modify previous button UI changes",
  nextButtonOptions: "To modify next button UI changes"
};
exports.propsDescription = propsDescription;