"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _slider = _interopRequireDefault(require("antd/lib/slider"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var SliderOuter = function SliderOuter(props) {
  var range = props.range;
  var defaultValue = props.defaultValue;
  if (range) {
    defaultValue = Array.isArray(defaultValue) ? defaultValue : [0, defaultValue];
  } else {
    defaultValue = Array.isArray(defaultValue) ? defaultValue[1] || defaultValue[0] : defaultValue;
  }
  return /*#__PURE__*/_react["default"].createElement(_slider["default"], (0, _extends2["default"])({}, props, {
    defaultValue: defaultValue
  }));
};
var _default = SliderOuter;
exports["default"] = _default;