"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

var BDesignDatePicker = function BDesignDatePicker(props) {
  var className = props.className,
      _props$hasborder = props.hasborder,
      hasborder = _props$hasborder === void 0 ? false : _props$hasborder,
      theme = props.theme,
      _props$size = props.size,
      size = _props$size === void 0 ? 'large' : _props$size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "hasborder", "theme", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.DatePicker, (0, _extends2.default)({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: (0, _classnames.default)(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var RangePicker = function RangePicker(props) {
  var className = props.className,
      _props$hasborder2 = props.hasborder,
      hasborder = _props$hasborder2 === void 0 ? false : _props$hasborder2,
      theme = props.theme,
      _props$size2 = props.size,
      size = _props$size2 === void 0 ? 'large' : _props$size2,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "hasborder", "theme", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.DatePicker.RangePicker, (0, _extends2.default)({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: (0, _classnames.default)(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var YearPicker = function YearPicker(props) {
  var className = props.className,
      _props$hasborder3 = props.hasborder,
      hasborder = _props$hasborder3 === void 0 ? false : _props$hasborder3,
      theme = props.theme,
      _props$size3 = props.size,
      size = _props$size3 === void 0 ? 'large' : _props$size3,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "hasborder", "theme", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.DatePicker.YearPicker, (0, _extends2.default)({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: (0, _classnames.default)(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var MonthPicker = function MonthPicker(props) {
  var className = props.className,
      _props$hasborder4 = props.hasborder,
      hasborder = _props$hasborder4 === void 0 ? false : _props$hasborder4,
      theme = props.theme,
      _props$size4 = props.size,
      size = _props$size4 === void 0 ? 'large' : _props$size4,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "hasborder", "theme", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.DatePicker.MonthPicker, (0, _extends2.default)({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: (0, _classnames.default)(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var WeekPicker = function WeekPicker(props) {
  var className = props.className,
      _props$hasborder5 = props.hasborder,
      hasborder = _props$hasborder5 === void 0 ? false : _props$hasborder5,
      theme = props.theme,
      _props$size5 = props.size,
      size = _props$size5 === void 0 ? 'large' : _props$size5,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "hasborder", "theme", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.DatePicker.WeekPicker, (0, _extends2.default)({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: (0, _classnames.default)(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

BDesignDatePicker.RangePicker = RangePicker;
BDesignDatePicker.YearPicker = YearPicker;
BDesignDatePicker.MonthPicker = MonthPicker;
BDesignDatePicker.WeekPicker = WeekPicker;
var _default = BDesignDatePicker;
exports.default = _default;