import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
import { jsx } from 'react/jsx-runtime';
import React__default from 'react';
import DatePicker from '../DatePicker/index.js';
import 'rc-picker/es/generate/dayjs';
import '../Button/index.js';
import '../_verture/typeof-498dd2b1.js';
import '../_verture/slicedToArray-76060636.js';
import '../_verture/unsupportedIterableToArray-cb478f24.js';
import 'clsx';
import '@iam-com/icons/LoadingF';
import '@iam-com/icons/Forbid';
import '../Tooltip/index.js';
import 'rc-tooltip';
import 'rc-tooltip/lib/placements';
import '../_verture/constant-66aa48a1.js';
import '../_verture/style-inject.es-300983ab.js';
import '@iam-com/icons/Down';
import '../_verture/index-fac03ce3.js';
import 'rc-dropdown';
import '../_verture/usePopupContainer-87febeb9.js';
import 'dayjs';
import '@iam-com/lib';
import '../_verture/useFormatMessage-703f8b20.js';
import '@para-ui/core/GlobalContext';
import '../Tag/index.js';
import '../_verture/defineProperty-62acccfc.js';
import '@iam-com/icons/Close';
import '../_verture/toConsumableArray-81040c9e.js';
import '../AutoTips/index.js';
import '@iam-com/icons/Plus';
import 'rc-picker';
import '@iam-com/icons/CloseCircle';
import '@iam-com/icons/Calendar';
import '@iam-com/icons/Time';
import 'rc-picker/lib/locale/en_US';
import 'rc-picker/lib/locale/zh_CN';
import '../Label/index.js';
import '../Help/index.js';
import '@iam-com/icons/Help';
import '../HelperText/index.js';
import '@iam-com/icons/SortRight';

var InternalTimePicker = DatePicker.TimePicker,
  InternalRangePicker = DatePicker.RangePicker;
//time range
var RangePicker = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
  return jsx(InternalRangePicker, Object.assign({}, props, {
    dropdownClassName: props.popupClassName,
    picker: "time",
    mode: undefined,
    ref: ref
  }));
});
var TimePicker = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
  var addon = _a.addon,
    renderExtraFooter = _a.renderExtraFooter,
    popupClassName = _a.popupClassName,
    restProps = __rest(_a, ["addon", "renderExtraFooter", "popupClassName"]);
  var internalRenderExtraFooter = React__default.useMemo(function () {
    if (renderExtraFooter) {
      return renderExtraFooter;
    }
    if (addon) {
      return addon;
    }
    return undefined;
  }, [addon, renderExtraFooter]);
  return jsx(InternalTimePicker, Object.assign({}, restProps, {
    dropdownClassName: popupClassName,
    mode: undefined,
    ref: ref,
    renderExtraFooter: internalRenderExtraFooter
  }));
});
TimePicker.displayName = 'TimePicker';
TimePicker.TimeRangePicker = RangePicker;
TimePicker.RangePicker = RangePicker;

export { TimePicker as default };
