"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var React = _interopRequireWildcard(require("react"));
require("./index.scss");
var _excluded = ["style", "disabled", "defaultValue", "precision", "decimalSeparator", "value", "max", "min", "step", "sizeflag", "type", "autoFocus"];
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; }
var NumberPickerName = function NumberPickerName(_ref) {
  var _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    disabled = _ref.disabled,
    defaultValue = _ref.defaultValue,
    precision = _ref.precision,
    decimalSeparator = _ref.decimalSeparator,
    value = _ref.value,
    max = _ref.max,
    min = _ref.min,
    step = _ref.step,
    sizeflag = _ref.sizeflag,
    type = _ref.type,
    autoFocus = _ref.autoFocus,
    otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  var _style = style || {};
  var _otherProps = otherProps || {};
  _otherProps.style = _style;
  var styarr = ['Numbersty1', 'Numbersty2', 'Numbersty3', 'Numbersty4', 'Numbersty5', 'Numbersty6', 'Numbersty7', 'Numbersty8'];
  var Numbersty = 0;
  if (sizeflag == '大' && type == 'inline') Numbersty = 0;
  if (sizeflag == '中' && type == 'inline') Numbersty = 1;
  if (sizeflag == '小' && type == 'inline') Numbersty = 3;
  if (sizeflag == '特大' && type == 'inline') Numbersty = 2;
  if (sizeflag == '大' && type == 'normal') Numbersty = 4;
  if (sizeflag == '中' && type == 'normal') Numbersty = 6;
  if (sizeflag == '小' && type == 'normal') Numbersty = 7;
  if (sizeflag == '特大' && type == 'normal') Numbersty = 5;
  return /*#__PURE__*/React.createElement(_inputNumber["default"], (0, _extends2["default"])({
    autoFocus: autoFocus,
    defaultValue: defaultValue,
    disabled: disabled,
    max: max,
    min: min,
    precision: precision,
    step: step,
    decimalSeparator: decimalSeparator,
    className: styarr[Numbersty]
    // prefix="next-"
    // type={type}
    ,
    value: value
    // editable={editable}
    // innerAfter={innerAfter}
  }, otherProps));
};
NumberPickerName.displayName = 'NumberPickerName';
var _default = NumberPickerName;
exports["default"] = _default;