@luminati-io/uikit 6.3.41 → 6.3.43-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46287,38 +46287,40 @@ UploadItemState.propTypes = {
46287
46287
  "use strict";
46288
46288
  __webpack_require__.r(__webpack_exports__);
46289
46289
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46290
- /* harmony export */ Checkbox: () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_5__.Checkbox),
46290
+ /* harmony export */ Checkbox: () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_7__.Checkbox),
46291
46291
  /* harmony export */ CheckboxList: () => (/* reexport safe */ _checkbox_list__WEBPACK_IMPORTED_MODULE_0__.CheckboxList),
46292
- /* harmony export */ CompareTo: () => (/* reexport safe */ _compare_to__WEBPACK_IMPORTED_MODULE_6__.CompareTo),
46293
- /* harmony export */ DatePicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_7__.DatePicker),
46292
+ /* harmony export */ CompareTo: () => (/* reexport safe */ _compare_to__WEBPACK_IMPORTED_MODULE_8__.CompareTo),
46293
+ /* harmony export */ DatePicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_9__.DatePicker),
46294
46294
  /* harmony export */ Dropdown: () => (/* reexport safe */ _dropdown__WEBPACK_IMPORTED_MODULE_1__.Dropdown),
46295
46295
  /* harmony export */ FILE_STATUS: () => (/* reexport safe */ _file_uploader__WEBPACK_IMPORTED_MODULE_2__.FILE_STATUS),
46296
46296
  /* harmony export */ FileUploader: () => (/* reexport safe */ _file_uploader__WEBPACK_IMPORTED_MODULE_2__.FileUploader),
46297
- /* harmony export */ Number: () => (/* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_8__.Number),
46297
+ /* harmony export */ Number: () => (/* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_10__.Number),
46298
46298
  /* harmony export */ Phone: () => (/* reexport safe */ _phone__WEBPACK_IMPORTED_MODULE_3__.Phone),
46299
- /* harmony export */ Radio: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_9__.Radio),
46300
- /* harmony export */ RadioCard: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_9__.RadioCard),
46301
- /* harmony export */ RadioGroup: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_9__.RadioGroup),
46302
- /* harmony export */ RadioTab: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_9__.RadioTab),
46303
- /* harmony export */ StyledDayPicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_7__.StyledDayPicker),
46304
- /* harmony export */ Textarea: () => (/* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_10__.Textarea),
46305
- /* harmony export */ Textbox: () => (/* reexport safe */ _textbox__WEBPACK_IMPORTED_MODULE_11__.Textbox),
46306
- /* harmony export */ TextboxList: () => (/* reexport safe */ _textbox_list__WEBPACK_IMPORTED_MODULE_4__.TextboxList),
46307
- /* harmony export */ Toggle: () => (/* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_12__.Toggle)
46299
+ /* harmony export */ Radio: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_4__.Radio),
46300
+ /* harmony export */ RadioCard: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_4__.RadioCard),
46301
+ /* harmony export */ RadioGroup: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_4__.RadioGroup),
46302
+ /* harmony export */ RadioTab: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_4__.RadioTab),
46303
+ /* harmony export */ Slider: () => (/* reexport safe */ _slider__WEBPACK_IMPORTED_MODULE_5__.Slider),
46304
+ /* harmony export */ StyledDayPicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_9__.StyledDayPicker),
46305
+ /* harmony export */ Textarea: () => (/* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_11__.Textarea),
46306
+ /* harmony export */ Textbox: () => (/* reexport safe */ _textbox__WEBPACK_IMPORTED_MODULE_12__.Textbox),
46307
+ /* harmony export */ TextboxList: () => (/* reexport safe */ _textbox_list__WEBPACK_IMPORTED_MODULE_6__.TextboxList),
46308
+ /* harmony export */ Toggle: () => (/* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_13__.Toggle)
46308
46309
  /* harmony export */ });
46309
46310
  /* harmony import */ var _checkbox_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkbox_list */ "./src/input/checkbox_list/index.js");
46310
46311
  /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dropdown */ "./src/input/dropdown/index.js");
46311
46312
  /* harmony import */ var _file_uploader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./file_uploader */ "./src/input/file_uploader/index.js");
46312
46313
  /* harmony import */ var _phone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./phone */ "./src/input/phone/index.js");
46313
- /* harmony import */ var _textbox_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./textbox_list */ "./src/input/textbox_list/index.js");
46314
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./checkbox */ "./src/input/checkbox.js");
46315
- /* harmony import */ var _compare_to__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./compare_to */ "./src/input/compare_to.js");
46316
- /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./date_picker */ "./src/input/date_picker.js");
46317
- /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./number */ "./src/input/number.js");
46318
- /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./radio */ "./src/input/radio/index.js");
46319
- /* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./textarea */ "./src/input/textarea.js");
46320
- /* harmony import */ var _textbox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./textbox */ "./src/input/textbox.js");
46321
- /* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./toggle */ "./src/input/toggle.js");
46314
+ /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./radio */ "./src/input/radio/index.js");
46315
+ /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./slider */ "./src/input/slider/index.js");
46316
+ /* harmony import */ var _textbox_list__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./textbox_list */ "./src/input/textbox_list/index.js");
46317
+ /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./checkbox */ "./src/input/checkbox.js");
46318
+ /* harmony import */ var _compare_to__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./compare_to */ "./src/input/compare_to.js");
46319
+ /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date_picker */ "./src/input/date_picker.js");
46320
+ /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./number */ "./src/input/number.js");
46321
+ /* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./textarea */ "./src/input/textarea.js");
46322
+ /* harmony import */ var _textbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./textbox */ "./src/input/textbox.js");
46323
+ /* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./toggle */ "./src/input/toggle.js");
46322
46324
  // LICENSE_CODE ZON
46323
46325
 
46324
46326
 
@@ -46337,6 +46339,7 @@ __webpack_require__.r(__webpack_exports__);
46337
46339
 
46338
46340
 
46339
46341
 
46342
+
46340
46343
  /***/ }),
46341
46344
 
46342
46345
  /***/ "./src/input/number.js":
@@ -48472,6 +48475,285 @@ var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
48472
48475
 
48473
48476
  /***/ }),
48474
48477
 
48478
+ /***/ "./src/input/slider/handle_tooltip.js":
48479
+ /*!********************************************!*\
48480
+ !*** ./src/input/slider/handle_tooltip.js ***!
48481
+ \********************************************/
48482
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48483
+
48484
+ "use strict";
48485
+ __webpack_require__.r(__webpack_exports__);
48486
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48487
+ /* harmony export */ HandleTooltip: () => (/* binding */ HandleTooltip)
48488
+ /* harmony export */ });
48489
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
48490
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
48491
+ /* harmony import */ var rc_util_lib_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/lib/raf */ "./node_modules/rc-util/lib/raf.js");
48492
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip */ "./src/tooltip/index.js");
48493
+ // LICENSE_CODE ZON
48494
+
48495
+
48496
+ /*jslint react:true*/
48497
+ var _excluded = ["value", "children", "visible", "tipFormatter"];
48498
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
48499
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
48500
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
48501
+
48502
+
48503
+
48504
+ var HandleTooltip = function HandleTooltip(_ref) {
48505
+ var value = _ref.value,
48506
+ children = _ref.children,
48507
+ visible = _ref.visible,
48508
+ _ref$tipFormatter = _ref.tipFormatter,
48509
+ tipFormatter = _ref$tipFormatter === void 0 ? function (val) {
48510
+ return "".concat(val);
48511
+ } : _ref$tipFormatter,
48512
+ rest = _objectWithoutProperties(_ref, _excluded);
48513
+ var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
48514
+ var rafRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
48515
+ function cancelKeepAlign() {
48516
+ rc_util_lib_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(rafRef.current);
48517
+ }
48518
+ function keepAlign() {
48519
+ rafRef.current = (0,rc_util_lib_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
48520
+ var _tooltipRef$current;
48521
+ (_tooltipRef$current = tooltipRef.current) === null || _tooltipRef$current === void 0 || _tooltipRef$current.forceAlign();
48522
+ });
48523
+ }
48524
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
48525
+ if (visible) keepAlign();else cancelKeepAlign();
48526
+ return cancelKeepAlign;
48527
+ }, [value, visible]);
48528
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_2__.Tooltip, _extends({}, rest, {
48529
+ tooltip: tipFormatter(value),
48530
+ ref: tooltipRef,
48531
+ visible: visible
48532
+ }), children);
48533
+ };
48534
+
48535
+ /***/ }),
48536
+
48537
+ /***/ "./src/input/slider/index.js":
48538
+ /*!***********************************!*\
48539
+ !*** ./src/input/slider/index.js ***!
48540
+ \***********************************/
48541
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48542
+
48543
+ "use strict";
48544
+ __webpack_require__.r(__webpack_exports__);
48545
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48546
+ /* harmony export */ Slider: () => (/* reexport safe */ _slider__WEBPACK_IMPORTED_MODULE_0__.Slider)
48547
+ /* harmony export */ });
48548
+ /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slider */ "./src/input/slider/slider.js");
48549
+ // LICENSE_CODE ZON
48550
+
48551
+
48552
+ /*jslint react:true*/
48553
+
48554
+
48555
+ /***/ }),
48556
+
48557
+ /***/ "./src/input/slider/slider.js":
48558
+ /*!************************************!*\
48559
+ !*** ./src/input/slider/slider.js ***!
48560
+ \************************************/
48561
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48562
+
48563
+ "use strict";
48564
+ __webpack_require__.r(__webpack_exports__);
48565
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48566
+ /* harmony export */ Slider: () => (/* binding */ Slider)
48567
+ /* harmony export */ });
48568
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
48569
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
48570
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
48571
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
48572
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
48573
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
48574
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ "./src/constants.js");
48575
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
48576
+ /* harmony import */ var _handle_tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./handle_tooltip */ "./src/input/slider/handle_tooltip.js");
48577
+ /* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./styled */ "./src/input/slider/styled.js");
48578
+ // LICENSE_CODE ZON
48579
+
48580
+
48581
+ /*jslint react:true*/
48582
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
48583
+ var _excluded = ["size", "onChange", "inputProps", "min", "max", "step", "tabIndex", "classNamePrefix", "marks", "tipFormatter", "tipProps", "range", "allowCross"];
48584
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
48585
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48586
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
48587
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
48588
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
48589
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
48590
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
48591
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
48592
+
48593
+
48594
+
48595
+
48596
+
48597
+
48598
+
48599
+ var Slider = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
48600
+ var size = props.size,
48601
+ onChange = props.onChange,
48602
+ inputProps = props.inputProps,
48603
+ _props$min = props.min,
48604
+ min = _props$min === void 0 ? 0 : _props$min,
48605
+ _props$max = props.max,
48606
+ max = _props$max === void 0 ? 100 : _props$max,
48607
+ step = props.step,
48608
+ tabIndex = props.tabIndex,
48609
+ _props$classNamePrefi = props.classNamePrefix,
48610
+ classNamePrefix = _props$classNamePrefi === void 0 ? 'uikit_slider' : _props$classNamePrefi,
48611
+ marks = props.marks,
48612
+ tipFormatter = props.tipFormatter,
48613
+ tipProps = props.tipProps,
48614
+ range = props.range,
48615
+ allowCross = props.allowCross,
48616
+ rest = _objectWithoutProperties(props, _excluded);
48617
+ var heightCalculationCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
48618
+ var height = {
48619
+ xs: 28,
48620
+ sm: 36,
48621
+ md: 40,
48622
+ lg: 48
48623
+ };
48624
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["overflow:visible;min-height:", "px;"], height[size] || height.sm);
48625
+ }, [size]);
48626
+ var handleRender = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (node, handleProps) {
48627
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_handle_tooltip__WEBPACK_IMPORTED_MODULE_5__.HandleTooltip, _extends({
48628
+ value: handleProps.value,
48629
+ visible: handleProps.dragging,
48630
+ tipFormatter: tipFormatter
48631
+ }, tipProps), node);
48632
+ }, [tipFormatter, tipProps]);
48633
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.FieldWrapper, _extends({}, rest, {
48634
+ ref: ref,
48635
+ classNamePrefix: classNamePrefix,
48636
+ heightCalculationCallback: heightCalculationCallback,
48637
+ autoresize: false,
48638
+ verticalAlign: "center",
48639
+ Field: _styled__WEBPACK_IMPORTED_MODULE_6__.StyledSlider,
48640
+ onChange: onChange,
48641
+ inputProps: _objectSpread(_objectSpread({}, inputProps), {}, {
48642
+ min: min,
48643
+ max: max,
48644
+ step: step,
48645
+ tabIndex: tabIndex,
48646
+ marks: marks,
48647
+ prefixCls: classNamePrefix,
48648
+ handleRender: handleRender,
48649
+ range: range,
48650
+ allowCross: allowCross
48651
+ })
48652
+ }));
48653
+ });
48654
+ Slider.displayName = 'Slider';
48655
+ Slider.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_3__.PT_INPUT_SHARED), {}, {
48656
+ value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
48657
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
48658
+ min: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
48659
+ max: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
48660
+ /**
48661
+ * Value to be added or subtracted on each step the slider makes.
48662
+ * Must be greater than zero, and max - min should be evenly divisible
48663
+ * by the step value.
48664
+ * When marks is not an empty object, step can be set to null,
48665
+ * to make marks as steps.
48666
+ */
48667
+ step: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
48668
+ tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
48669
+ /**
48670
+ * Marks on the slider. The key determines the position,
48671
+ * and the value determines what will show.
48672
+ * If you want to set the style of a specific mark point, the value
48673
+ * should be an object which contains style and label properties.
48674
+ */
48675
+ marks: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
48676
+ tipFormatter: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
48677
+ tipProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
48678
+ range: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
48679
+ allowCross: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
48680
+ });
48681
+
48682
+ /***/ }),
48683
+
48684
+ /***/ "./src/input/slider/styled.js":
48685
+ /*!************************************!*\
48686
+ !*** ./src/input/slider/styled.js ***!
48687
+ \************************************/
48688
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48689
+
48690
+ "use strict";
48691
+ __webpack_require__.r(__webpack_exports__);
48692
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48693
+ /* harmony export */ StyledSlider: () => (/* binding */ StyledSlider)
48694
+ /* harmony export */ });
48695
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
48696
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
48697
+ /* harmony import */ var rc_slider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-slider */ "./node_modules/rc-slider/es/index.js");
48698
+ // LICENSE_CODE ZON
48699
+
48700
+
48701
+ /*jslint react:true*/
48702
+
48703
+
48704
+ var prefixCls = function prefixCls(p) {
48705
+ return p.prefixCls;
48706
+ };
48707
+ var theme = function theme(cb) {
48708
+ return function (p) {
48709
+ return cb(p.theme);
48710
+ };
48711
+ };
48712
+ var StyledSlider = styled_components__WEBPACK_IMPORTED_MODULE_0___default()(rc_slider__WEBPACK_IMPORTED_MODULE_1__["default"]).withConfig({
48713
+ displayName: "StyledSlider",
48714
+ componentId: "sc-ifo2sp-0"
48715
+ })(["&.", "{position:relative;width:100%;height:16px;padding:5px 0;border-radius:6px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);& *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);}&.", "-with-marks{height:38px;}.", "-rail{position:absolute;width:100%;height:6px;background-color:", ";border-radius:8px;}.", "-track,.", "-tracks{position:absolute;height:6px;background-color:", ";border-radius:8px;}.", "-track-draggable{z-index:1;box-sizing:content-box;background-clip:content-box;border-top:5px solid rgba(0,0,0,0);border-bottom:5px solid rgba(0,0,0,0);transform:translateY(-5px);}.", "-handle{position:absolute;z-index:1;width:16px;height:16px;margin-top:-5px;background-color:", ";border:2px solid ", ";border-radius:50%;cursor:pointer;cursor:-webkit-grab;cursor:grab;user-select:none;touch-action:pan-x;&:focus{outline:none;box-shadow:none;}&:focus-visible{border-color:", ";box-shadow:", ";}&:hover{border-color:", ";}&:active{border-color:", ";box-shadow:", ";cursor:-webkit-grabbing;cursor:grabbing;}}.", "-handle-dragging.", "-handle-dragging.", "-handle-dragging{border-color:", ";box-shadow:", ";}.", "-handle-dragging.", "-handle-dragging.", "-handle-dragging-delete{opacity:0;}.", "-handle-click-focused:focus{border-color:#96dbfa;box-shadow:unset;}.", "-mark{position:absolute;top:18px;left:0;width:100%;font-size:", ";font-weight:", ";}.", "-mark-text{position:absolute;display:inline-block;color:", ";text-align:center;vertical-align:middle;cursor:pointer;}.", "-step{position:absolute;width:100%;height:4px;background:transparent;}.", "-dot{position:absolute;bottom:-2px;width:1px;height:6px;vertical-align:middle;background-color:", ";cursor:pointer;}&.", "-disabled{.", "-track{background-color:", ";}.", "-handle{background-color:", ";border-color:", ";box-shadow:none;cursor:not-allowed;}.", "-dot{cursor:not-allowed !important;}.", "-mark-text{color:", ";cursor:not-allowed !important;}}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
48716
+ return t.color.slider_bg;
48717
+ }), prefixCls, prefixCls, theme(function (t) {
48718
+ return t.color.slider_bg_fill;
48719
+ }), prefixCls, prefixCls, theme(function (t) {
48720
+ return t.color.slider_bg_fill;
48721
+ }), theme(function (t) {
48722
+ return t.color.slider_bg_fill;
48723
+ }), theme(function (t) {
48724
+ return t.color.icon_secondary;
48725
+ }), theme(function (t) {
48726
+ return t.shadow.primary;
48727
+ }), theme(function (t) {
48728
+ return t.color.icon_secondary;
48729
+ }), theme(function (t) {
48730
+ return t.color.icon_secondary;
48731
+ }), theme(function (t) {
48732
+ return t.shadow.primary;
48733
+ }), prefixCls, prefixCls, prefixCls, theme(function (t) {
48734
+ return t.color.icon_secondary;
48735
+ }), theme(function (t) {
48736
+ return t.shadow.primary;
48737
+ }), prefixCls, prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
48738
+ return t.font_size.xs;
48739
+ }), theme(function (t) {
48740
+ return t.font_weight.regular;
48741
+ }), prefixCls, theme(function (t) {
48742
+ return t.color.text_secondary;
48743
+ }), prefixCls, prefixCls, theme(function (t) {
48744
+ return t.color.bg;
48745
+ }), prefixCls, prefixCls, theme(function (t) {
48746
+ return t.color.slider_bg_fill_disabled;
48747
+ }), prefixCls, theme(function (t) {
48748
+ return t.color.slider_bg_fill_disabled;
48749
+ }), theme(function (t) {
48750
+ return t.color.slider_bg_fill_disabled;
48751
+ }), prefixCls, prefixCls, theme(function (t) {
48752
+ return t.color.text_disabled;
48753
+ }));
48754
+
48755
+ /***/ }),
48756
+
48475
48757
  /***/ "./src/input/textarea.js":
48476
48758
  /*!*******************************!*\
48477
48759
  !*** ./src/input/textarea.js ***!
@@ -56565,6 +56847,7 @@ __webpack_require__.r(__webpack_exports__);
56565
56847
  /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
56566
56848
  /* harmony import */ var _virtualized_body__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./virtualized_body */ "./src/table/virtualized_body.js");
56567
56849
  /* harmony import */ var _dnd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dnd */ "./src/table/dnd.js");
56850
+ /* harmony import */ var _row_hover_actions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./row_hover_actions */ "./src/table/row_hover_actions.js");
56568
56851
  // LICENSE_CODE ZON
56569
56852
 
56570
56853
 
@@ -56599,6 +56882,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
56599
56882
 
56600
56883
 
56601
56884
 
56885
+
56602
56886
  var Table = function Table(props) {
56603
56887
  var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
56604
56888
  // not under context
@@ -56776,12 +57060,24 @@ var Body = function Body(props) {
56776
57060
  if (!rows.length) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(NoDataComp);
56777
57061
  if (virtualized) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_virtualized_body__WEBPACK_IMPORTED_MODULE_11__.VirtualizedBody, props);
56778
57062
  if (draggableRows) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_12__.TableDndBody, props);
56779
- return rows.map(function (row, index) {
57063
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(GenericBody, props);
57064
+ };
57065
+ var GenericBody = function GenericBody(props) {
57066
+ var rows = props.rows;
57067
+ var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_13__.useRowHoverActions)(),
57068
+ renderHoverActions = _useRowHoverActions.renderHoverActions,
57069
+ rowHoverEvents = _useRowHoverActions.rowHoverEvents;
57070
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, rows.map(function (row, index) {
56780
57071
  return props.renderRow({
56781
57072
  row: row,
56782
- index: index
57073
+ index: index,
57074
+ wrapperProps: _objectSpread(_objectSpread({}, rowHoverEvents), {}, {
57075
+ onPointerEnter: function onPointerEnter(e) {
57076
+ return rowHoverEvents.onPointerEnter(e, row);
57077
+ }
57078
+ })
56783
57079
  });
56784
- });
57080
+ }), renderHoverActions());
56785
57081
  };
56786
57082
  var TableBodyRowGroup = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
56787
57083
  displayName: "TableBodyRowGroup",
@@ -57155,12 +57451,18 @@ var RowList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
57155
57451
  var rows = props.rows,
57156
57452
  renderRow = props.renderRow,
57157
57453
  measurerCache = props.measurerCache;
57454
+ var _useRowHoverActions2 = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_7__.useRowHoverActions)(),
57455
+ renderHoverActions = _useRowHoverActions2.renderHoverActions,
57456
+ rowHoverEvents = _useRowHoverActions2.rowHoverEvents;
57457
+ var items = (0,_dnd__WEBPACK_IMPORTED_MODULE_6__.useSortableItems)(rows, renderRow, rowHoverEvents);
57158
57458
  var rowRenderer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (_ref6) {
57159
57459
  var key = _ref6.key,
57160
57460
  index = _ref6.index,
57161
57461
  style = _ref6.style,
57162
57462
  parent = _ref6.parent;
57163
- var row = rows[index];
57463
+ var _items$index2 = items[index],
57464
+ row = _items$index2.row,
57465
+ render = _items$index2.render;
57164
57466
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
57165
57467
  key: key,
57166
57468
  row: row,
@@ -57168,15 +57470,21 @@ var RowList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
57168
57470
  style: style,
57169
57471
  parent: parent,
57170
57472
  cache: measurerCache,
57171
- renderRow: renderRow
57473
+ renderRow: function renderRow(_ref7) {
57474
+ var wrapperProps = _ref7.wrapperProps;
57475
+ return render(wrapperProps);
57476
+ }
57172
57477
  });
57173
- }, [rows, renderRow]);
57174
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AutoSizerList, {
57478
+ }, [rows, items, renderRow]);
57479
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_3__.SortableContext, {
57480
+ items: items,
57481
+ strategy: _dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_3__.verticalListSortingStrategy
57482
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AutoSizerList, {
57175
57483
  ref: ref,
57176
57484
  measurerCache: measurerCache,
57177
57485
  rowRenderer: rowRenderer,
57178
- rows: rows
57179
- });
57486
+ rows: items
57487
+ }), renderHoverActions());
57180
57488
  });
57181
57489
  RowList.displayName = 'RowList';
57182
57490
  var VirtualizedBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VirtualizedBodyComp);
@@ -57184,8 +57492,8 @@ VirtualizedBody.displayName = 'VirtualizedBody';
57184
57492
  var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.List).withConfig({
57185
57493
  displayName: "StyledList",
57186
57494
  componentId: "sc-1mdy9tq-0"
57187
- })(["", ""], function (_ref7) {
57188
- var scrollbars = _ref7.theme.scrollbars;
57495
+ })(["", ""], function (_ref8) {
57496
+ var scrollbars = _ref8.theme.scrollbars;
57189
57497
  return scrollbars.thin;
57190
57498
  });
57191
57499
 
@@ -57534,11 +57842,11 @@ var prefixCls = function prefixCls(p) {
57534
57842
  var StyledTag = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.withConfig({
57535
57843
  displayName: "StyledTag",
57536
57844
  componentId: "sc-qjresw-0"
57537
- })(["display:inline-flex;margin:0;padding:4px 4px 4px 8px;justify-content:center;align-items:center;gap:4px;border-radius:4px;border:1px solid ", ";background-color:", ";.", "-icon{color:", ";min-width:14px;width:14px;min-height:14px;height:14px;}.", "-text{color:", ";}.", "-badge{background-color:", ";padding:2px 4px;min-width:16px;.uikit_badge-content{color:", ";}}.", "-close-icon{border-radius:28px;}.", "-close-icon,.", "-menu-button{background-color:inherit;min-width:16px;width:16px;min-height:16px;height:16px;}&.", "-clickable{cursor:pointer;}&.", "-disabled{&.", "-clickable{cursor:not-allowed;}border:1px solid ", ";background-color:", ";.", "-icon{color:", ";}.", "-text,.", "-badge .uikit_badge-content{color:", ";}}&:not(.", "-disabled){&.", "-active{border:1px solid ", ";background-color:", ";.", "-icon{color:", ";}.", "-text{color:", ";}.", "-badge{background-color:", ";.uikit_badge-content{color:", ";}}.", "-close-icon:hover{color:", ";}}.", "-close-icon:hover{background-color:", ";color:", ";}.", "-menu-button:hover{background-color:inherit;color:", ";}&:hover{border:1px solid ", ";&.", "-active{border:1px solid ", ";background-color:", ";}}}"], theme(function (t) {
57845
+ })(["display:inline-flex;margin:0;justify-content:center;align-items:center;gap:4px;border-radius:4px;border:1px solid ", ";background-color:", ";box-sizing:border-box;&.", "-sm{padding:4px 8px;height:24px;}&.", "-md{padding:8px;height:32px;}.", "-icon{color:", ";min-width:14px;width:14px;min-height:14px;height:14px;}.", "-text{color:", ";}.", "-badge{background-color:", ";padding:2px 4px;min-width:16px;.uikit_badge-content{color:", ";}}.", "-close-icon{border-radius:28px;}.", "-close-icon,.", "-menu-button{background-color:inherit;min-width:16px;width:16px;min-height:16px;height:16px;}&.", "-clickable{cursor:pointer;}&.", "-disabled{&.", "-clickable{cursor:not-allowed;}border:1px solid ", ";background-color:", ";.", "-icon{color:", ";}.", "-text,.", "-badge .uikit_badge-content{color:", ";}}&:not(.", "-disabled){&.", "-active{border:1px solid ", ";background-color:", ";.", "-icon{color:", ";}.", "-text{color:", ";}.", "-badge{background-color:", ";.uikit_badge-content{color:", ";}}.", "-close-icon:hover{color:", ";}}.", "-close-icon:hover{background-color:", ";color:", ";}.", "-menu-button:hover{background-color:inherit;color:", ";}&:hover{border:1px solid ", ";&.", "-active{border:1px solid ", ";background-color:", ";}}}"], theme(function (t) {
57538
57846
  return t.color.border;
57539
57847
  }), theme(function (t) {
57540
57848
  return t.color.bg;
57541
- }), prefixCls, theme(function (t) {
57849
+ }), prefixCls, prefixCls, prefixCls, theme(function (t) {
57542
57850
  return t.color.icon;
57543
57851
  }), prefixCls, theme(function (t) {
57544
57852
  return t.color.text;
@@ -57610,8 +57918,12 @@ __webpack_require__.r(__webpack_exports__);
57610
57918
 
57611
57919
 
57612
57920
  /*jslint react:true*/
57613
- var _excluded = ["className", "classNamePrefix", "icon", "text", "onClick", "active", "disabled", "badge", "closeIcon", "onClose", "menuItems"];
57921
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
57922
+ var _excluded = ["className", "classNamePrefix", "icon", "text", "onClick", "active", "disabled", "badge", "closeIcon", "onClose", "menuItems", "size"];
57614
57923
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
57924
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
57925
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
57926
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
57615
57927
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
57616
57928
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
57617
57929
 
@@ -57636,6 +57948,8 @@ var Tag = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(f
57636
57948
  closeIcon = props.closeIcon,
57637
57949
  onClose = props.onClose,
57638
57950
  menuItems = props.menuItems,
57951
+ _props$size = props.size,
57952
+ size = _props$size === void 0 ? 'sm' : _props$size,
57639
57953
  rest = _objectWithoutProperties(props, _excluded);
57640
57954
  var onCloseClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
57641
57955
  evt.stopPropagation();
@@ -57644,11 +57958,11 @@ var Tag = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(f
57644
57958
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_styled__WEBPACK_IMPORTED_MODULE_6__.StyledTag, _extends({
57645
57959
  ref: ref
57646
57960
  }, rest, {
57647
- className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.cn)(classNamePrefix, {
57961
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.cn)(classNamePrefix, _defineProperty({
57648
57962
  '-active': active,
57649
57963
  '-disabled': disabled,
57650
57964
  '-clickable': !!onClick
57651
- }, className, classNamePrefix),
57965
+ }, "-".concat(size), true), className, classNamePrefix),
57652
57966
  disabled: disabled,
57653
57967
  onClick: onClick,
57654
57968
  $prefixCls: classNamePrefix
@@ -57692,7 +58006,8 @@ Tag.propTypes = {
57692
58006
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_3__.PT_ICON_NAMES, (prop_types__WEBPACK_IMPORTED_MODULE_1___default().elementType)]),
57693
58007
  closeIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
57694
58008
  onClose: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
57695
- menuItems: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array)
58009
+ menuItems: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
58010
+ size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md'])
57696
58011
  };
57697
58012
 
57698
58013
  /***/ }),
@@ -58176,7 +58491,7 @@ var componentLight = {
58176
58491
  toggle_off_bg_active: color.gray_8,
58177
58492
  toggle_off_border_active: color.gray_5,
58178
58493
  toggle_off_bg_hover: color.gray_7,
58179
- slider_bg: color.gray_5,
58494
+ slider_bg: color.gray_8,
58180
58495
  slider_bg_fill: color.blue_11,
58181
58496
  slider_bg_disabled: color.gray_6,
58182
58497
  slider_bg_fill_disabled: color.gray_8,
@@ -83009,6 +83324,1853 @@ function unobserve(element, callback) {
83009
83324
 
83010
83325
  /***/ }),
83011
83326
 
83327
+ /***/ "./node_modules/rc-slider/es/Handles/Handle.js":
83328
+ /*!*****************************************************!*\
83329
+ !*** ./node_modules/rc-slider/es/Handles/Handle.js ***!
83330
+ \*****************************************************/
83331
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
83332
+
83333
+ "use strict";
83334
+ __webpack_require__.r(__webpack_exports__);
83335
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83336
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
83337
+ /* harmony export */ });
83338
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
83339
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
83340
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
83341
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
83342
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
83343
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
83344
+ /* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
83345
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
83346
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
83347
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
83348
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
83349
+
83350
+
83351
+
83352
+
83353
+ var _excluded = ["prefixCls", "value", "valueIndex", "onStartMove", "onDelete", "style", "render", "dragging", "draggingDelete", "onOffsetChange", "onChangeComplete", "onFocus", "onMouseEnter"];
83354
+
83355
+
83356
+
83357
+
83358
+
83359
+ var Handle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.forwardRef(function (props, ref) {
83360
+ var prefixCls = props.prefixCls,
83361
+ value = props.value,
83362
+ valueIndex = props.valueIndex,
83363
+ onStartMove = props.onStartMove,
83364
+ onDelete = props.onDelete,
83365
+ style = props.style,
83366
+ render = props.render,
83367
+ dragging = props.dragging,
83368
+ draggingDelete = props.draggingDelete,
83369
+ onOffsetChange = props.onOffsetChange,
83370
+ onChangeComplete = props.onChangeComplete,
83371
+ onFocus = props.onFocus,
83372
+ onMouseEnter = props.onMouseEnter,
83373
+ restProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, _excluded);
83374
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_6__.useContext(_context__WEBPACK_IMPORTED_MODULE_7__["default"]),
83375
+ min = _React$useContext.min,
83376
+ max = _React$useContext.max,
83377
+ direction = _React$useContext.direction,
83378
+ disabled = _React$useContext.disabled,
83379
+ keyboard = _React$useContext.keyboard,
83380
+ range = _React$useContext.range,
83381
+ tabIndex = _React$useContext.tabIndex,
83382
+ ariaLabelForHandle = _React$useContext.ariaLabelForHandle,
83383
+ ariaLabelledByForHandle = _React$useContext.ariaLabelledByForHandle,
83384
+ ariaRequired = _React$useContext.ariaRequired,
83385
+ ariaValueTextFormatterForHandle = _React$useContext.ariaValueTextFormatterForHandle,
83386
+ styles = _React$useContext.styles,
83387
+ classNames = _React$useContext.classNames;
83388
+ var handlePrefixCls = "".concat(prefixCls, "-handle");
83389
+
83390
+ // ============================ Events ============================
83391
+ var onInternalStartMove = function onInternalStartMove(e) {
83392
+ if (!disabled) {
83393
+ onStartMove(e, valueIndex);
83394
+ }
83395
+ };
83396
+ var onInternalFocus = function onInternalFocus(e) {
83397
+ onFocus === null || onFocus === void 0 || onFocus(e, valueIndex);
83398
+ };
83399
+ var onInternalMouseEnter = function onInternalMouseEnter(e) {
83400
+ onMouseEnter(e, valueIndex);
83401
+ };
83402
+
83403
+ // =========================== Keyboard ===========================
83404
+ var onKeyDown = function onKeyDown(e) {
83405
+ if (!disabled && keyboard) {
83406
+ var offset = null;
83407
+
83408
+ // Change the value
83409
+ switch (e.which || e.keyCode) {
83410
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].LEFT:
83411
+ offset = direction === 'ltr' || direction === 'btt' ? -1 : 1;
83412
+ break;
83413
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].RIGHT:
83414
+ offset = direction === 'ltr' || direction === 'btt' ? 1 : -1;
83415
+ break;
83416
+
83417
+ // Up is plus
83418
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
83419
+ offset = direction !== 'ttb' ? 1 : -1;
83420
+ break;
83421
+
83422
+ // Down is minus
83423
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
83424
+ offset = direction !== 'ttb' ? -1 : 1;
83425
+ break;
83426
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].HOME:
83427
+ offset = 'min';
83428
+ break;
83429
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].END:
83430
+ offset = 'max';
83431
+ break;
83432
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_UP:
83433
+ offset = 2;
83434
+ break;
83435
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_DOWN:
83436
+ offset = -2;
83437
+ break;
83438
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].BACKSPACE:
83439
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DELETE:
83440
+ onDelete(valueIndex);
83441
+ break;
83442
+ }
83443
+ if (offset !== null) {
83444
+ e.preventDefault();
83445
+ onOffsetChange(offset, valueIndex);
83446
+ }
83447
+ }
83448
+ };
83449
+ var handleKeyUp = function handleKeyUp(e) {
83450
+ switch (e.which || e.keyCode) {
83451
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].LEFT:
83452
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].RIGHT:
83453
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
83454
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
83455
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].HOME:
83456
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].END:
83457
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_UP:
83458
+ case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_DOWN:
83459
+ onChangeComplete === null || onChangeComplete === void 0 || onChangeComplete();
83460
+ break;
83461
+ }
83462
+ };
83463
+
83464
+ // ============================ Offset ============================
83465
+ var positionStyle = (0,_util__WEBPACK_IMPORTED_MODULE_8__.getDirectionStyle)(direction, value, min, max);
83466
+
83467
+ // ============================ Render ============================
83468
+ var divProps = {};
83469
+ if (valueIndex !== null) {
83470
+ var _getIndex;
83471
+ divProps = {
83472
+ tabIndex: disabled ? null : (0,_util__WEBPACK_IMPORTED_MODULE_8__.getIndex)(tabIndex, valueIndex),
83473
+ role: 'slider',
83474
+ 'aria-valuemin': min,
83475
+ 'aria-valuemax': max,
83476
+ 'aria-valuenow': value,
83477
+ 'aria-disabled': disabled,
83478
+ 'aria-label': (0,_util__WEBPACK_IMPORTED_MODULE_8__.getIndex)(ariaLabelForHandle, valueIndex),
83479
+ 'aria-labelledby': (0,_util__WEBPACK_IMPORTED_MODULE_8__.getIndex)(ariaLabelledByForHandle, valueIndex),
83480
+ 'aria-required': (0,_util__WEBPACK_IMPORTED_MODULE_8__.getIndex)(ariaRequired, valueIndex),
83481
+ 'aria-valuetext': (_getIndex = (0,_util__WEBPACK_IMPORTED_MODULE_8__.getIndex)(ariaValueTextFormatterForHandle, valueIndex)) === null || _getIndex === void 0 ? void 0 : _getIndex(value),
83482
+ 'aria-orientation': direction === 'ltr' || direction === 'rtl' ? 'horizontal' : 'vertical',
83483
+ onMouseDown: onInternalStartMove,
83484
+ onTouchStart: onInternalStartMove,
83485
+ onFocus: onInternalFocus,
83486
+ onMouseEnter: onInternalMouseEnter,
83487
+ onKeyDown: onKeyDown,
83488
+ onKeyUp: handleKeyUp
83489
+ };
83490
+ }
83491
+ var handleNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
83492
+ ref: ref,
83493
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(handlePrefixCls, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), valueIndex !== null && range), "".concat(handlePrefixCls, "-dragging"), dragging), "".concat(handlePrefixCls, "-dragging-delete"), draggingDelete), classNames.handle),
83494
+ style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, positionStyle), style), styles.handle)
83495
+ }, divProps, restProps));
83496
+
83497
+ // Customize
83498
+ if (render) {
83499
+ handleNode = render(handleNode, {
83500
+ index: valueIndex,
83501
+ prefixCls: prefixCls,
83502
+ value: value,
83503
+ dragging: dragging,
83504
+ draggingDelete: draggingDelete
83505
+ });
83506
+ }
83507
+ return handleNode;
83508
+ });
83509
+ if (true) {
83510
+ Handle.displayName = 'Handle';
83511
+ }
83512
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Handle);
83513
+
83514
+ /***/ }),
83515
+
83516
+ /***/ "./node_modules/rc-slider/es/Handles/index.js":
83517
+ /*!****************************************************!*\
83518
+ !*** ./node_modules/rc-slider/es/Handles/index.js ***!
83519
+ \****************************************************/
83520
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
83521
+
83522
+ "use strict";
83523
+ __webpack_require__.r(__webpack_exports__);
83524
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83525
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
83526
+ /* harmony export */ });
83527
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
83528
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
83529
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
83530
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
83531
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
83532
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
83533
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ "react-dom");
83534
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_5__);
83535
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
83536
+ /* harmony import */ var _Handle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Handle */ "./node_modules/rc-slider/es/Handles/Handle.js");
83537
+
83538
+
83539
+
83540
+
83541
+ var _excluded = ["prefixCls", "style", "onStartMove", "onOffsetChange", "values", "handleRender", "activeHandleRender", "draggingIndex", "draggingDelete", "onFocus"];
83542
+
83543
+
83544
+
83545
+
83546
+ var Handles = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.forwardRef(function (props, ref) {
83547
+ var prefixCls = props.prefixCls,
83548
+ style = props.style,
83549
+ onStartMove = props.onStartMove,
83550
+ onOffsetChange = props.onOffsetChange,
83551
+ values = props.values,
83552
+ handleRender = props.handleRender,
83553
+ activeHandleRender = props.activeHandleRender,
83554
+ draggingIndex = props.draggingIndex,
83555
+ draggingDelete = props.draggingDelete,
83556
+ onFocus = props.onFocus,
83557
+ restProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, _excluded);
83558
+ var handlesRef = react__WEBPACK_IMPORTED_MODULE_4__.useRef({});
83559
+
83560
+ // =========================== Active ===========================
83561
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__.useState(false),
83562
+ _React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState, 2),
83563
+ activeVisible = _React$useState2[0],
83564
+ setActiveVisible = _React$useState2[1];
83565
+ var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_4__.useState(-1),
83566
+ _React$useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState3, 2),
83567
+ activeIndex = _React$useState4[0],
83568
+ setActiveIndex = _React$useState4[1];
83569
+ var onActive = function onActive(index) {
83570
+ setActiveIndex(index);
83571
+ setActiveVisible(true);
83572
+ };
83573
+ var onHandleFocus = function onHandleFocus(e, index) {
83574
+ onActive(index);
83575
+ onFocus === null || onFocus === void 0 || onFocus(e);
83576
+ };
83577
+ var onHandleMouseEnter = function onHandleMouseEnter(e, index) {
83578
+ onActive(index);
83579
+ };
83580
+
83581
+ // =========================== Render ===========================
83582
+ react__WEBPACK_IMPORTED_MODULE_4__.useImperativeHandle(ref, function () {
83583
+ return {
83584
+ focus: function focus(index) {
83585
+ var _handlesRef$current$i;
83586
+ (_handlesRef$current$i = handlesRef.current[index]) === null || _handlesRef$current$i === void 0 || _handlesRef$current$i.focus();
83587
+ },
83588
+ hideHelp: function hideHelp() {
83589
+ (0,react_dom__WEBPACK_IMPORTED_MODULE_5__.flushSync)(function () {
83590
+ setActiveVisible(false);
83591
+ });
83592
+ }
83593
+ };
83594
+ });
83595
+
83596
+ // =========================== Render ===========================
83597
+ // Handle Props
83598
+ var handleProps = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
83599
+ prefixCls: prefixCls,
83600
+ onStartMove: onStartMove,
83601
+ onOffsetChange: onOffsetChange,
83602
+ render: handleRender,
83603
+ onFocus: onHandleFocus,
83604
+ onMouseEnter: onHandleMouseEnter
83605
+ }, restProps);
83606
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, values.map(function (value, index) {
83607
+ var dragging = draggingIndex === index;
83608
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Handle__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
83609
+ ref: function ref(node) {
83610
+ if (!node) {
83611
+ delete handlesRef.current[index];
83612
+ } else {
83613
+ handlesRef.current[index] = node;
83614
+ }
83615
+ },
83616
+ dragging: dragging,
83617
+ draggingDelete: dragging && draggingDelete,
83618
+ style: (0,_util__WEBPACK_IMPORTED_MODULE_6__.getIndex)(style, index),
83619
+ key: index,
83620
+ value: value,
83621
+ valueIndex: index
83622
+ }, handleProps));
83623
+ }), activeHandleRender && activeVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__.createElement(_Handle__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
83624
+ key: "a11y"
83625
+ }, handleProps, {
83626
+ value: values[activeIndex],
83627
+ valueIndex: null,
83628
+ dragging: draggingIndex !== -1,
83629
+ draggingDelete: draggingDelete,
83630
+ render: activeHandleRender,
83631
+ style: {
83632
+ pointerEvents: 'none'
83633
+ },
83634
+ tabIndex: null,
83635
+ "aria-hidden": true
83636
+ })));
83637
+ });
83638
+ if (true) {
83639
+ Handles.displayName = 'Handles';
83640
+ }
83641
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Handles);
83642
+
83643
+ /***/ }),
83644
+
83645
+ /***/ "./node_modules/rc-slider/es/Marks/Mark.js":
83646
+ /*!*************************************************!*\
83647
+ !*** ./node_modules/rc-slider/es/Marks/Mark.js ***!
83648
+ \*************************************************/
83649
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
83650
+
83651
+ "use strict";
83652
+ __webpack_require__.r(__webpack_exports__);
83653
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83654
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
83655
+ /* harmony export */ });
83656
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
83657
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
83658
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
83659
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
83660
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
83661
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
83662
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
83663
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
83664
+
83665
+
83666
+
83667
+
83668
+
83669
+
83670
+ var Mark = function Mark(props) {
83671
+ var prefixCls = props.prefixCls,
83672
+ style = props.style,
83673
+ children = props.children,
83674
+ value = props.value,
83675
+ _onClick = props.onClick;
83676
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__["default"]),
83677
+ min = _React$useContext.min,
83678
+ max = _React$useContext.max,
83679
+ direction = _React$useContext.direction,
83680
+ includedStart = _React$useContext.includedStart,
83681
+ includedEnd = _React$useContext.includedEnd,
83682
+ included = _React$useContext.included;
83683
+ var textCls = "".concat(prefixCls, "-text");
83684
+
83685
+ // ============================ Offset ============================
83686
+ var positionStyle = (0,_util__WEBPACK_IMPORTED_MODULE_5__.getDirectionStyle)(direction, value, min, max);
83687
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", {
83688
+ className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(textCls, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(textCls, "-active"), included && includedStart <= value && value <= includedEnd)),
83689
+ style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, positionStyle), style),
83690
+ onMouseDown: function onMouseDown(e) {
83691
+ e.stopPropagation();
83692
+ },
83693
+ onClick: function onClick() {
83694
+ _onClick(value);
83695
+ }
83696
+ }, children);
83697
+ };
83698
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Mark);
83699
+
83700
+ /***/ }),
83701
+
83702
+ /***/ "./node_modules/rc-slider/es/Marks/index.js":
83703
+ /*!**************************************************!*\
83704
+ !*** ./node_modules/rc-slider/es/Marks/index.js ***!
83705
+ \**************************************************/
83706
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
83707
+
83708
+ "use strict";
83709
+ __webpack_require__.r(__webpack_exports__);
83710
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83711
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
83712
+ /* harmony export */ });
83713
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
83714
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
83715
+ /* harmony import */ var _Mark__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Mark */ "./node_modules/rc-slider/es/Marks/Mark.js");
83716
+
83717
+
83718
+ var Marks = function Marks(props) {
83719
+ var prefixCls = props.prefixCls,
83720
+ marks = props.marks,
83721
+ onClick = props.onClick;
83722
+ var markPrefixCls = "".concat(prefixCls, "-mark");
83723
+
83724
+ // Not render mark if empty
83725
+ if (!marks.length) {
83726
+ return null;
83727
+ }
83728
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
83729
+ className: markPrefixCls
83730
+ }, marks.map(function (_ref) {
83731
+ var value = _ref.value,
83732
+ style = _ref.style,
83733
+ label = _ref.label;
83734
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Mark__WEBPACK_IMPORTED_MODULE_1__["default"], {
83735
+ key: value,
83736
+ prefixCls: markPrefixCls,
83737
+ style: style,
83738
+ value: value,
83739
+ onClick: onClick
83740
+ }, label);
83741
+ }));
83742
+ };
83743
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Marks);
83744
+
83745
+ /***/ }),
83746
+
83747
+ /***/ "./node_modules/rc-slider/es/Slider.js":
83748
+ /*!*********************************************!*\
83749
+ !*** ./node_modules/rc-slider/es/Slider.js ***!
83750
+ \*********************************************/
83751
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
83752
+
83753
+ "use strict";
83754
+ __webpack_require__.r(__webpack_exports__);
83755
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83756
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
83757
+ /* harmony export */ });
83758
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
83759
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
83760
+ /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
83761
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
83762
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
83763
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
83764
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
83765
+ /* harmony import */ var rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/hooks/useEvent */ "./node_modules/rc-util/es/hooks/useEvent.js");
83766
+ /* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");
83767
+ /* harmony import */ var rc_util_es_isEqual__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rc-util/es/isEqual */ "./node_modules/rc-util/es/isEqual.js");
83768
+ /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
83769
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
83770
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
83771
+ /* harmony import */ var _Handles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Handles */ "./node_modules/rc-slider/es/Handles/index.js");
83772
+ /* harmony import */ var _Marks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Marks */ "./node_modules/rc-slider/es/Marks/index.js");
83773
+ /* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Steps */ "./node_modules/rc-slider/es/Steps/index.js");
83774
+ /* harmony import */ var _Tracks__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Tracks */ "./node_modules/rc-slider/es/Tracks/index.js");
83775
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./context */ "./node_modules/rc-slider/es/context.js");
83776
+ /* harmony import */ var _hooks_useDrag__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./hooks/useDrag */ "./node_modules/rc-slider/es/hooks/useDrag.js");
83777
+ /* harmony import */ var _hooks_useOffset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hooks/useOffset */ "./node_modules/rc-slider/es/hooks/useOffset.js");
83778
+ /* harmony import */ var _hooks_useRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./hooks/useRange */ "./node_modules/rc-slider/es/hooks/useRange.js");
83779
+
83780
+
83781
+
83782
+
83783
+
83784
+
83785
+
83786
+
83787
+
83788
+
83789
+
83790
+
83791
+
83792
+
83793
+
83794
+
83795
+
83796
+
83797
+
83798
+
83799
+ /**
83800
+ * New:
83801
+ * - click mark to update range value
83802
+ * - handleRender
83803
+ * - Fix handle with count not correct
83804
+ * - Fix pushable not work in some case
83805
+ * - No more FindDOMNode
83806
+ * - Move all position related style into inline style
83807
+ * - Key: up is plus, down is minus
83808
+ * - fix Key with step = null not align with marks
83809
+ * - Change range should not trigger onChange
83810
+ * - keyboard support pushable
83811
+ */
83812
+
83813
+ var Slider = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.forwardRef(function (props, ref) {
83814
+ var _props$prefixCls = props.prefixCls,
83815
+ prefixCls = _props$prefixCls === void 0 ? 'rc-slider' : _props$prefixCls,
83816
+ className = props.className,
83817
+ style = props.style,
83818
+ classNames = props.classNames,
83819
+ styles = props.styles,
83820
+ id = props.id,
83821
+ _props$disabled = props.disabled,
83822
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
83823
+ _props$keyboard = props.keyboard,
83824
+ keyboard = _props$keyboard === void 0 ? true : _props$keyboard,
83825
+ autoFocus = props.autoFocus,
83826
+ onFocus = props.onFocus,
83827
+ onBlur = props.onBlur,
83828
+ _props$min = props.min,
83829
+ min = _props$min === void 0 ? 0 : _props$min,
83830
+ _props$max = props.max,
83831
+ max = _props$max === void 0 ? 100 : _props$max,
83832
+ _props$step = props.step,
83833
+ step = _props$step === void 0 ? 1 : _props$step,
83834
+ value = props.value,
83835
+ defaultValue = props.defaultValue,
83836
+ range = props.range,
83837
+ count = props.count,
83838
+ onChange = props.onChange,
83839
+ onBeforeChange = props.onBeforeChange,
83840
+ onAfterChange = props.onAfterChange,
83841
+ onChangeComplete = props.onChangeComplete,
83842
+ _props$allowCross = props.allowCross,
83843
+ allowCross = _props$allowCross === void 0 ? true : _props$allowCross,
83844
+ _props$pushable = props.pushable,
83845
+ pushable = _props$pushable === void 0 ? false : _props$pushable,
83846
+ reverse = props.reverse,
83847
+ vertical = props.vertical,
83848
+ _props$included = props.included,
83849
+ included = _props$included === void 0 ? true : _props$included,
83850
+ startPoint = props.startPoint,
83851
+ trackStyle = props.trackStyle,
83852
+ handleStyle = props.handleStyle,
83853
+ railStyle = props.railStyle,
83854
+ dotStyle = props.dotStyle,
83855
+ activeDotStyle = props.activeDotStyle,
83856
+ marks = props.marks,
83857
+ dots = props.dots,
83858
+ handleRender = props.handleRender,
83859
+ activeHandleRender = props.activeHandleRender,
83860
+ track = props.track,
83861
+ _props$tabIndex = props.tabIndex,
83862
+ tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
83863
+ ariaLabelForHandle = props.ariaLabelForHandle,
83864
+ ariaLabelledByForHandle = props.ariaLabelledByForHandle,
83865
+ ariaRequired = props.ariaRequired,
83866
+ ariaValueTextFormatterForHandle = props.ariaValueTextFormatterForHandle;
83867
+ var handlesRef = react__WEBPACK_IMPORTED_MODULE_10__.useRef(null);
83868
+ var containerRef = react__WEBPACK_IMPORTED_MODULE_10__.useRef(null);
83869
+ var direction = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83870
+ if (vertical) {
83871
+ return reverse ? 'ttb' : 'btt';
83872
+ }
83873
+ return reverse ? 'rtl' : 'ltr';
83874
+ }, [reverse, vertical]);
83875
+
83876
+ // ============================ Range =============================
83877
+ var _useRange = (0,_hooks_useRange__WEBPACK_IMPORTED_MODULE_18__["default"])(range),
83878
+ _useRange2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useRange, 5),
83879
+ rangeEnabled = _useRange2[0],
83880
+ rangeEditable = _useRange2[1],
83881
+ rangeDraggableTrack = _useRange2[2],
83882
+ minCount = _useRange2[3],
83883
+ maxCount = _useRange2[4];
83884
+ var mergedMin = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83885
+ return isFinite(min) ? min : 0;
83886
+ }, [min]);
83887
+ var mergedMax = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83888
+ return isFinite(max) ? max : 100;
83889
+ }, [max]);
83890
+
83891
+ // ============================= Step =============================
83892
+ var mergedStep = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83893
+ return step !== null && step <= 0 ? 1 : step;
83894
+ }, [step]);
83895
+
83896
+ // ============================= Push =============================
83897
+ var mergedPush = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83898
+ if (typeof pushable === 'boolean') {
83899
+ return pushable ? mergedStep : false;
83900
+ }
83901
+ return pushable >= 0 ? pushable : false;
83902
+ }, [pushable, mergedStep]);
83903
+
83904
+ // ============================ Marks =============================
83905
+ var markList = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83906
+ return Object.keys(marks || {}).map(function (key) {
83907
+ var mark = marks[key];
83908
+ var markObj = {
83909
+ value: Number(key)
83910
+ };
83911
+ if (mark && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(mark) === 'object' && ! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.isValidElement(mark) && ('label' in mark || 'style' in mark)) {
83912
+ markObj.style = mark.style;
83913
+ markObj.label = mark.label;
83914
+ } else {
83915
+ markObj.label = mark;
83916
+ }
83917
+ return markObj;
83918
+ }).filter(function (_ref) {
83919
+ var label = _ref.label;
83920
+ return label || typeof label === 'number';
83921
+ }).sort(function (a, b) {
83922
+ return a.value - b.value;
83923
+ });
83924
+ }, [marks]);
83925
+
83926
+ // ============================ Format ============================
83927
+ var _useOffset = (0,_hooks_useOffset__WEBPACK_IMPORTED_MODULE_17__["default"])(mergedMin, mergedMax, mergedStep, markList, allowCross, mergedPush),
83928
+ _useOffset2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useOffset, 2),
83929
+ formatValue = _useOffset2[0],
83930
+ offsetValues = _useOffset2[1];
83931
+
83932
+ // ============================ Values ============================
83933
+ var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_7__["default"])(defaultValue, {
83934
+ value: value
83935
+ }),
83936
+ _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useMergedState, 2),
83937
+ mergedValue = _useMergedState2[0],
83938
+ setValue = _useMergedState2[1];
83939
+ var rawValues = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
83940
+ var valueList = mergedValue === null || mergedValue === undefined ? [] : Array.isArray(mergedValue) ? mergedValue : [mergedValue];
83941
+ var _valueList = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(valueList, 1),
83942
+ _valueList$ = _valueList[0],
83943
+ val0 = _valueList$ === void 0 ? mergedMin : _valueList$;
83944
+ var returnValues = mergedValue === null ? [] : [val0];
83945
+
83946
+ // Format as range
83947
+ if (rangeEnabled) {
83948
+ returnValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(valueList);
83949
+
83950
+ // When count provided or value is `undefined`, we fill values
83951
+ if (count || mergedValue === undefined) {
83952
+ var pointCount = count >= 0 ? count + 1 : 2;
83953
+ returnValues = returnValues.slice(0, pointCount);
83954
+
83955
+ // Fill with count
83956
+ while (returnValues.length < pointCount) {
83957
+ var _returnValues;
83958
+ returnValues.push((_returnValues = returnValues[returnValues.length - 1]) !== null && _returnValues !== void 0 ? _returnValues : mergedMin);
83959
+ }
83960
+ }
83961
+ returnValues.sort(function (a, b) {
83962
+ return a - b;
83963
+ });
83964
+ }
83965
+
83966
+ // Align in range
83967
+ returnValues.forEach(function (val, index) {
83968
+ returnValues[index] = formatValue(val);
83969
+ });
83970
+ return returnValues;
83971
+ }, [mergedValue, rangeEnabled, mergedMin, count, formatValue]);
83972
+
83973
+ // =========================== onChange ===========================
83974
+ var getTriggerValue = function getTriggerValue(triggerValues) {
83975
+ return rangeEnabled ? triggerValues : triggerValues[0];
83976
+ };
83977
+ var triggerChange = (0,rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_6__["default"])(function (nextValues) {
83978
+ // Order first
83979
+ var cloneNextValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(nextValues).sort(function (a, b) {
83980
+ return a - b;
83981
+ });
83982
+
83983
+ // Trigger event if needed
83984
+ if (onChange && !(0,rc_util_es_isEqual__WEBPACK_IMPORTED_MODULE_8__["default"])(cloneNextValues, rawValues, true)) {
83985
+ onChange(getTriggerValue(cloneNextValues));
83986
+ }
83987
+
83988
+ // We set this later since it will re-render component immediately
83989
+ setValue(cloneNextValues);
83990
+ });
83991
+ var finishChange = (0,rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_6__["default"])(function (draggingDelete) {
83992
+ // Trigger from `useDrag` will tell if it's a delete action
83993
+ if (draggingDelete) {
83994
+ handlesRef.current.hideHelp();
83995
+ }
83996
+ var finishValue = getTriggerValue(rawValues);
83997
+ onAfterChange === null || onAfterChange === void 0 || onAfterChange(finishValue);
83998
+ (0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(!onAfterChange, '[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead.');
83999
+ onChangeComplete === null || onChangeComplete === void 0 || onChangeComplete(finishValue);
84000
+ });
84001
+ var onDelete = function onDelete(index) {
84002
+ if (disabled || !rangeEditable || rawValues.length <= minCount) {
84003
+ return;
84004
+ }
84005
+ var cloneNextValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(rawValues);
84006
+ cloneNextValues.splice(index, 1);
84007
+ onBeforeChange === null || onBeforeChange === void 0 || onBeforeChange(getTriggerValue(cloneNextValues));
84008
+ triggerChange(cloneNextValues);
84009
+ var nextFocusIndex = Math.max(0, index - 1);
84010
+ handlesRef.current.hideHelp();
84011
+ handlesRef.current.focus(nextFocusIndex);
84012
+ };
84013
+ var _useDrag = (0,_hooks_useDrag__WEBPACK_IMPORTED_MODULE_16__["default"])(containerRef, direction, rawValues, mergedMin, mergedMax, formatValue, triggerChange, finishChange, offsetValues, rangeEditable, minCount),
84014
+ _useDrag2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useDrag, 5),
84015
+ draggingIndex = _useDrag2[0],
84016
+ draggingValue = _useDrag2[1],
84017
+ draggingDelete = _useDrag2[2],
84018
+ cacheValues = _useDrag2[3],
84019
+ onStartDrag = _useDrag2[4];
84020
+
84021
+ /**
84022
+ * When `rangeEditable` will insert a new value in the values array.
84023
+ * Else it will replace the value in the values array.
84024
+ */
84025
+ var changeToCloseValue = function changeToCloseValue(newValue, e) {
84026
+ if (!disabled) {
84027
+ // Create new values
84028
+ var cloneNextValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(rawValues);
84029
+ var valueIndex = 0;
84030
+ var valueBeforeIndex = 0; // Record the index which value < newValue
84031
+ var valueDist = mergedMax - mergedMin;
84032
+ rawValues.forEach(function (val, index) {
84033
+ var dist = Math.abs(newValue - val);
84034
+ if (dist <= valueDist) {
84035
+ valueDist = dist;
84036
+ valueIndex = index;
84037
+ }
84038
+ if (val < newValue) {
84039
+ valueBeforeIndex = index;
84040
+ }
84041
+ });
84042
+ var focusIndex = valueIndex;
84043
+ if (rangeEditable && valueDist !== 0 && (!maxCount || rawValues.length < maxCount)) {
84044
+ cloneNextValues.splice(valueBeforeIndex + 1, 0, newValue);
84045
+ focusIndex = valueBeforeIndex + 1;
84046
+ } else {
84047
+ cloneNextValues[valueIndex] = newValue;
84048
+ }
84049
+
84050
+ // Fill value to match default 2 (only when `rawValues` is empty)
84051
+ if (rangeEnabled && !rawValues.length && count === undefined) {
84052
+ cloneNextValues.push(newValue);
84053
+ }
84054
+ var nextValue = getTriggerValue(cloneNextValues);
84055
+ onBeforeChange === null || onBeforeChange === void 0 || onBeforeChange(nextValue);
84056
+ triggerChange(cloneNextValues);
84057
+ if (e) {
84058
+ var _document$activeEleme, _document$activeEleme2;
84059
+ (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || (_document$activeEleme2 = _document$activeEleme.blur) === null || _document$activeEleme2 === void 0 || _document$activeEleme2.call(_document$activeEleme);
84060
+ handlesRef.current.focus(focusIndex);
84061
+ onStartDrag(e, focusIndex, cloneNextValues);
84062
+ } else {
84063
+ // https://github.com/ant-design/ant-design/issues/49997
84064
+ onAfterChange === null || onAfterChange === void 0 || onAfterChange(nextValue);
84065
+ (0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(!onAfterChange, '[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead.');
84066
+ onChangeComplete === null || onChangeComplete === void 0 || onChangeComplete(nextValue);
84067
+ }
84068
+ }
84069
+ };
84070
+
84071
+ // ============================ Click =============================
84072
+ var onSliderMouseDown = function onSliderMouseDown(e) {
84073
+ e.preventDefault();
84074
+ var _containerRef$current = containerRef.current.getBoundingClientRect(),
84075
+ width = _containerRef$current.width,
84076
+ height = _containerRef$current.height,
84077
+ left = _containerRef$current.left,
84078
+ top = _containerRef$current.top,
84079
+ bottom = _containerRef$current.bottom,
84080
+ right = _containerRef$current.right;
84081
+ var clientX = e.clientX,
84082
+ clientY = e.clientY;
84083
+ var percent;
84084
+ switch (direction) {
84085
+ case 'btt':
84086
+ percent = (bottom - clientY) / height;
84087
+ break;
84088
+ case 'ttb':
84089
+ percent = (clientY - top) / height;
84090
+ break;
84091
+ case 'rtl':
84092
+ percent = (right - clientX) / width;
84093
+ break;
84094
+ default:
84095
+ percent = (clientX - left) / width;
84096
+ }
84097
+ var nextValue = mergedMin + percent * (mergedMax - mergedMin);
84098
+ changeToCloseValue(formatValue(nextValue), e);
84099
+ };
84100
+
84101
+ // =========================== Keyboard ===========================
84102
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_10__.useState(null),
84103
+ _React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_React$useState, 2),
84104
+ keyboardValue = _React$useState2[0],
84105
+ setKeyboardValue = _React$useState2[1];
84106
+ var onHandleOffsetChange = function onHandleOffsetChange(offset, valueIndex) {
84107
+ if (!disabled) {
84108
+ var next = offsetValues(rawValues, offset, valueIndex);
84109
+ onBeforeChange === null || onBeforeChange === void 0 || onBeforeChange(getTriggerValue(rawValues));
84110
+ triggerChange(next.values);
84111
+ setKeyboardValue(next.value);
84112
+ }
84113
+ };
84114
+ react__WEBPACK_IMPORTED_MODULE_10__.useEffect(function () {
84115
+ if (keyboardValue !== null) {
84116
+ var valueIndex = rawValues.indexOf(keyboardValue);
84117
+ if (valueIndex >= 0) {
84118
+ handlesRef.current.focus(valueIndex);
84119
+ }
84120
+ }
84121
+ setKeyboardValue(null);
84122
+ }, [keyboardValue]);
84123
+
84124
+ // ============================= Drag =============================
84125
+ var mergedDraggableTrack = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
84126
+ if (rangeDraggableTrack && mergedStep === null) {
84127
+ if (true) {
84128
+ (0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(false, '`draggableTrack` is not supported when `step` is `null`.');
84129
+ }
84130
+ return false;
84131
+ }
84132
+ return rangeDraggableTrack;
84133
+ }, [rangeDraggableTrack, mergedStep]);
84134
+ var onStartMove = (0,rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_6__["default"])(function (e, valueIndex) {
84135
+ onStartDrag(e, valueIndex);
84136
+ onBeforeChange === null || onBeforeChange === void 0 || onBeforeChange(getTriggerValue(rawValues));
84137
+ });
84138
+
84139
+ // Auto focus for updated handle
84140
+ var dragging = draggingIndex !== -1;
84141
+ react__WEBPACK_IMPORTED_MODULE_10__.useEffect(function () {
84142
+ if (!dragging) {
84143
+ var valueIndex = rawValues.lastIndexOf(draggingValue);
84144
+ handlesRef.current.focus(valueIndex);
84145
+ }
84146
+ }, [dragging]);
84147
+
84148
+ // =========================== Included ===========================
84149
+ var sortedCacheValues = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
84150
+ return (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(cacheValues).sort(function (a, b) {
84151
+ return a - b;
84152
+ });
84153
+ }, [cacheValues]);
84154
+
84155
+ // Provide a range values with included [min, max]
84156
+ // Used for Track, Mark & Dot
84157
+ var _React$useMemo = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
84158
+ if (!rangeEnabled) {
84159
+ return [mergedMin, sortedCacheValues[0]];
84160
+ }
84161
+ return [sortedCacheValues[0], sortedCacheValues[sortedCacheValues.length - 1]];
84162
+ }, [sortedCacheValues, rangeEnabled, mergedMin]),
84163
+ _React$useMemo2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_React$useMemo, 2),
84164
+ includedStart = _React$useMemo2[0],
84165
+ includedEnd = _React$useMemo2[1];
84166
+
84167
+ // ============================= Refs =============================
84168
+ react__WEBPACK_IMPORTED_MODULE_10__.useImperativeHandle(ref, function () {
84169
+ return {
84170
+ focus: function focus() {
84171
+ handlesRef.current.focus(0);
84172
+ },
84173
+ blur: function blur() {
84174
+ var _containerRef$current2;
84175
+ var _document = document,
84176
+ activeElement = _document.activeElement;
84177
+ if ((_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 && _containerRef$current2.contains(activeElement)) {
84178
+ activeElement === null || activeElement === void 0 || activeElement.blur();
84179
+ }
84180
+ }
84181
+ };
84182
+ });
84183
+
84184
+ // ========================== Auto Focus ==========================
84185
+ react__WEBPACK_IMPORTED_MODULE_10__.useEffect(function () {
84186
+ if (autoFocus) {
84187
+ handlesRef.current.focus(0);
84188
+ }
84189
+ }, []);
84190
+
84191
+ // =========================== Context ============================
84192
+ var context = react__WEBPACK_IMPORTED_MODULE_10__.useMemo(function () {
84193
+ return {
84194
+ min: mergedMin,
84195
+ max: mergedMax,
84196
+ direction: direction,
84197
+ disabled: disabled,
84198
+ keyboard: keyboard,
84199
+ step: mergedStep,
84200
+ included: included,
84201
+ includedStart: includedStart,
84202
+ includedEnd: includedEnd,
84203
+ range: rangeEnabled,
84204
+ tabIndex: tabIndex,
84205
+ ariaLabelForHandle: ariaLabelForHandle,
84206
+ ariaLabelledByForHandle: ariaLabelledByForHandle,
84207
+ ariaRequired: ariaRequired,
84208
+ ariaValueTextFormatterForHandle: ariaValueTextFormatterForHandle,
84209
+ styles: styles || {},
84210
+ classNames: classNames || {}
84211
+ };
84212
+ }, [mergedMin, mergedMax, direction, disabled, keyboard, mergedStep, included, includedStart, includedEnd, rangeEnabled, tabIndex, ariaLabelForHandle, ariaLabelledByForHandle, ariaRequired, ariaValueTextFormatterForHandle, styles, classNames]);
84213
+
84214
+ // ============================ Render ============================
84215
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_context__WEBPACK_IMPORTED_MODULE_15__["default"].Provider, {
84216
+ value: context
84217
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement("div", {
84218
+ ref: containerRef,
84219
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, className, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-vertical"), vertical), "".concat(prefixCls, "-horizontal"), !vertical), "".concat(prefixCls, "-with-marks"), markList.length)),
84220
+ style: style,
84221
+ onMouseDown: onSliderMouseDown,
84222
+ id: id
84223
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement("div", {
84224
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-rail"), classNames === null || classNames === void 0 ? void 0 : classNames.rail),
84225
+ style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, railStyle), styles === null || styles === void 0 ? void 0 : styles.rail)
84226
+ }), track !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_Tracks__WEBPACK_IMPORTED_MODULE_14__["default"], {
84227
+ prefixCls: prefixCls,
84228
+ style: trackStyle,
84229
+ values: rawValues,
84230
+ startPoint: startPoint,
84231
+ onStartMove: mergedDraggableTrack ? onStartMove : undefined
84232
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_Steps__WEBPACK_IMPORTED_MODULE_13__["default"], {
84233
+ prefixCls: prefixCls,
84234
+ marks: markList,
84235
+ dots: dots,
84236
+ style: dotStyle,
84237
+ activeStyle: activeDotStyle
84238
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_Handles__WEBPACK_IMPORTED_MODULE_11__["default"], {
84239
+ ref: handlesRef,
84240
+ prefixCls: prefixCls,
84241
+ style: handleStyle,
84242
+ values: cacheValues,
84243
+ draggingIndex: draggingIndex,
84244
+ draggingDelete: draggingDelete,
84245
+ onStartMove: onStartMove,
84246
+ onOffsetChange: onHandleOffsetChange,
84247
+ onFocus: onFocus,
84248
+ onBlur: onBlur,
84249
+ handleRender: handleRender,
84250
+ activeHandleRender: activeHandleRender,
84251
+ onChangeComplete: finishChange,
84252
+ onDelete: rangeEditable ? onDelete : undefined
84253
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__.createElement(_Marks__WEBPACK_IMPORTED_MODULE_12__["default"], {
84254
+ prefixCls: prefixCls,
84255
+ marks: markList,
84256
+ onClick: changeToCloseValue
84257
+ })));
84258
+ });
84259
+ if (true) {
84260
+ Slider.displayName = 'Slider';
84261
+ }
84262
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Slider);
84263
+
84264
+ /***/ }),
84265
+
84266
+ /***/ "./node_modules/rc-slider/es/Steps/Dot.js":
84267
+ /*!************************************************!*\
84268
+ !*** ./node_modules/rc-slider/es/Steps/Dot.js ***!
84269
+ \************************************************/
84270
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84271
+
84272
+ "use strict";
84273
+ __webpack_require__.r(__webpack_exports__);
84274
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84275
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84276
+ /* harmony export */ });
84277
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
84278
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
84279
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
84280
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
84281
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
84282
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
84283
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
84284
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
84285
+
84286
+
84287
+
84288
+
84289
+
84290
+
84291
+ var Dot = function Dot(props) {
84292
+ var prefixCls = props.prefixCls,
84293
+ value = props.value,
84294
+ style = props.style,
84295
+ activeStyle = props.activeStyle;
84296
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__["default"]),
84297
+ min = _React$useContext.min,
84298
+ max = _React$useContext.max,
84299
+ direction = _React$useContext.direction,
84300
+ included = _React$useContext.included,
84301
+ includedStart = _React$useContext.includedStart,
84302
+ includedEnd = _React$useContext.includedEnd;
84303
+ var dotClassName = "".concat(prefixCls, "-dot");
84304
+ var active = included && includedStart <= value && value <= includedEnd;
84305
+
84306
+ // ============================ Offset ============================
84307
+ var mergedStyle = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getDirectionStyle)(direction, value, min, max)), typeof style === 'function' ? style(value) : style);
84308
+ if (active) {
84309
+ mergedStyle = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mergedStyle), typeof activeStyle === 'function' ? activeStyle(value) : activeStyle);
84310
+ }
84311
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("span", {
84312
+ className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(dotClassName, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(dotClassName, "-active"), active)),
84313
+ style: mergedStyle
84314
+ });
84315
+ };
84316
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dot);
84317
+
84318
+ /***/ }),
84319
+
84320
+ /***/ "./node_modules/rc-slider/es/Steps/index.js":
84321
+ /*!**************************************************!*\
84322
+ !*** ./node_modules/rc-slider/es/Steps/index.js ***!
84323
+ \**************************************************/
84324
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84325
+
84326
+ "use strict";
84327
+ __webpack_require__.r(__webpack_exports__);
84328
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84329
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84330
+ /* harmony export */ });
84331
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
84332
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
84333
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
84334
+ /* harmony import */ var _Dot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dot */ "./node_modules/rc-slider/es/Steps/Dot.js");
84335
+
84336
+
84337
+
84338
+ var Steps = function Steps(props) {
84339
+ var prefixCls = props.prefixCls,
84340
+ marks = props.marks,
84341
+ dots = props.dots,
84342
+ style = props.style,
84343
+ activeStyle = props.activeStyle;
84344
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_context__WEBPACK_IMPORTED_MODULE_1__["default"]),
84345
+ min = _React$useContext.min,
84346
+ max = _React$useContext.max,
84347
+ step = _React$useContext.step;
84348
+ var stepDots = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {
84349
+ var dotSet = new Set();
84350
+
84351
+ // Add marks
84352
+ marks.forEach(function (mark) {
84353
+ dotSet.add(mark.value);
84354
+ });
84355
+
84356
+ // Fill dots
84357
+ if (dots && step !== null) {
84358
+ var current = min;
84359
+ while (current <= max) {
84360
+ dotSet.add(current);
84361
+ current += step;
84362
+ }
84363
+ }
84364
+ return Array.from(dotSet);
84365
+ }, [min, max, step, dots, marks]);
84366
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
84367
+ className: "".concat(prefixCls, "-step")
84368
+ }, stepDots.map(function (dotValue) {
84369
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dot__WEBPACK_IMPORTED_MODULE_2__["default"], {
84370
+ prefixCls: prefixCls,
84371
+ key: dotValue,
84372
+ value: dotValue,
84373
+ style: style,
84374
+ activeStyle: activeStyle
84375
+ });
84376
+ }));
84377
+ };
84378
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Steps);
84379
+
84380
+ /***/ }),
84381
+
84382
+ /***/ "./node_modules/rc-slider/es/Tracks/Track.js":
84383
+ /*!***************************************************!*\
84384
+ !*** ./node_modules/rc-slider/es/Tracks/Track.js ***!
84385
+ \***************************************************/
84386
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84387
+
84388
+ "use strict";
84389
+ __webpack_require__.r(__webpack_exports__);
84390
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84391
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84392
+ /* harmony export */ });
84393
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
84394
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
84395
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
84396
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
84397
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
84398
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
84399
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
84400
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
84401
+
84402
+
84403
+
84404
+
84405
+
84406
+
84407
+ var Track = function Track(props) {
84408
+ var prefixCls = props.prefixCls,
84409
+ style = props.style,
84410
+ start = props.start,
84411
+ end = props.end,
84412
+ index = props.index,
84413
+ onStartMove = props.onStartMove,
84414
+ replaceCls = props.replaceCls;
84415
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__["default"]),
84416
+ direction = _React$useContext.direction,
84417
+ min = _React$useContext.min,
84418
+ max = _React$useContext.max,
84419
+ disabled = _React$useContext.disabled,
84420
+ range = _React$useContext.range,
84421
+ classNames = _React$useContext.classNames;
84422
+ var trackPrefixCls = "".concat(prefixCls, "-track");
84423
+ var offsetStart = (0,_util__WEBPACK_IMPORTED_MODULE_5__.getOffset)(start, min, max);
84424
+ var offsetEnd = (0,_util__WEBPACK_IMPORTED_MODULE_5__.getOffset)(end, min, max);
84425
+
84426
+ // ============================ Events ============================
84427
+ var onInternalStartMove = function onInternalStartMove(e) {
84428
+ if (!disabled && onStartMove) {
84429
+ onStartMove(e, -1);
84430
+ }
84431
+ };
84432
+
84433
+ // ============================ Render ============================
84434
+ var positionStyle = {};
84435
+ switch (direction) {
84436
+ case 'rtl':
84437
+ positionStyle.right = "".concat(offsetStart * 100, "%");
84438
+ positionStyle.width = "".concat(offsetEnd * 100 - offsetStart * 100, "%");
84439
+ break;
84440
+ case 'btt':
84441
+ positionStyle.bottom = "".concat(offsetStart * 100, "%");
84442
+ positionStyle.height = "".concat(offsetEnd * 100 - offsetStart * 100, "%");
84443
+ break;
84444
+ case 'ttb':
84445
+ positionStyle.top = "".concat(offsetStart * 100, "%");
84446
+ positionStyle.height = "".concat(offsetEnd * 100 - offsetStart * 100, "%");
84447
+ break;
84448
+ default:
84449
+ positionStyle.left = "".concat(offsetStart * 100, "%");
84450
+ positionStyle.width = "".concat(offsetEnd * 100 - offsetStart * 100, "%");
84451
+ }
84452
+ var className = replaceCls || classnames__WEBPACK_IMPORTED_MODULE_2___default()(trackPrefixCls, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(trackPrefixCls, "-").concat(index + 1), index !== null && range), "".concat(prefixCls, "-track-draggable"), onStartMove), classNames.track);
84453
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", {
84454
+ className: className,
84455
+ style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, positionStyle), style),
84456
+ onMouseDown: onInternalStartMove,
84457
+ onTouchStart: onInternalStartMove
84458
+ });
84459
+ };
84460
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Track);
84461
+
84462
+ /***/ }),
84463
+
84464
+ /***/ "./node_modules/rc-slider/es/Tracks/index.js":
84465
+ /*!***************************************************!*\
84466
+ !*** ./node_modules/rc-slider/es/Tracks/index.js ***!
84467
+ \***************************************************/
84468
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84469
+
84470
+ "use strict";
84471
+ __webpack_require__.r(__webpack_exports__);
84472
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84473
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84474
+ /* harmony export */ });
84475
+ /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
84476
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
84477
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
84478
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
84479
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
84480
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
84481
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./node_modules/rc-slider/es/util.js");
84482
+ /* harmony import */ var _Track__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Track */ "./node_modules/rc-slider/es/Tracks/Track.js");
84483
+
84484
+
84485
+
84486
+
84487
+
84488
+
84489
+ var Tracks = function Tracks(props) {
84490
+ var prefixCls = props.prefixCls,
84491
+ style = props.style,
84492
+ values = props.values,
84493
+ startPoint = props.startPoint,
84494
+ onStartMove = props.onStartMove;
84495
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_context__WEBPACK_IMPORTED_MODULE_3__["default"]),
84496
+ included = _React$useContext.included,
84497
+ range = _React$useContext.range,
84498
+ min = _React$useContext.min,
84499
+ styles = _React$useContext.styles,
84500
+ classNames = _React$useContext.classNames;
84501
+
84502
+ // =========================== List ===========================
84503
+ var trackList = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {
84504
+ if (!range) {
84505
+ // null value do not have track
84506
+ if (values.length === 0) {
84507
+ return [];
84508
+ }
84509
+ var startValue = startPoint !== null && startPoint !== void 0 ? startPoint : min;
84510
+ var endValue = values[0];
84511
+ return [{
84512
+ start: Math.min(startValue, endValue),
84513
+ end: Math.max(startValue, endValue)
84514
+ }];
84515
+ }
84516
+
84517
+ // Multiple
84518
+ var list = [];
84519
+ for (var i = 0; i < values.length - 1; i += 1) {
84520
+ list.push({
84521
+ start: values[i],
84522
+ end: values[i + 1]
84523
+ });
84524
+ }
84525
+ return list;
84526
+ }, [values, range, startPoint, min]);
84527
+ if (!included) {
84528
+ return null;
84529
+ }
84530
+
84531
+ // ========================== Render ==========================
84532
+ var tracksNode = trackList !== null && trackList !== void 0 && trackList.length && (classNames.tracks || styles.tracks) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Track__WEBPACK_IMPORTED_MODULE_5__["default"], {
84533
+ index: null,
84534
+ prefixCls: prefixCls,
84535
+ start: trackList[0].start,
84536
+ end: trackList[trackList.length - 1].end,
84537
+ replaceCls: classnames__WEBPACK_IMPORTED_MODULE_1___default()(classNames.tracks, "".concat(prefixCls, "-tracks")),
84538
+ style: styles.tracks
84539
+ }) : null;
84540
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, tracksNode, trackList.map(function (_ref, index) {
84541
+ var start = _ref.start,
84542
+ end = _ref.end;
84543
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Track__WEBPACK_IMPORTED_MODULE_5__["default"], {
84544
+ index: index,
84545
+ prefixCls: prefixCls,
84546
+ style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getIndex)(style, index)), styles.track),
84547
+ start: start,
84548
+ end: end,
84549
+ key: index,
84550
+ onStartMove: onStartMove
84551
+ });
84552
+ }));
84553
+ };
84554
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tracks);
84555
+
84556
+ /***/ }),
84557
+
84558
+ /***/ "./node_modules/rc-slider/es/context.js":
84559
+ /*!**********************************************!*\
84560
+ !*** ./node_modules/rc-slider/es/context.js ***!
84561
+ \**********************************************/
84562
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84563
+
84564
+ "use strict";
84565
+ __webpack_require__.r(__webpack_exports__);
84566
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84567
+ /* harmony export */ UnstableContext: () => (/* binding */ UnstableContext),
84568
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84569
+ /* harmony export */ });
84570
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
84571
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
84572
+
84573
+ var SliderContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({
84574
+ min: 0,
84575
+ max: 0,
84576
+ direction: 'ltr',
84577
+ step: 1,
84578
+ includedStart: 0,
84579
+ includedEnd: 0,
84580
+ tabIndex: 0,
84581
+ keyboard: true,
84582
+ styles: {},
84583
+ classNames: {}
84584
+ });
84585
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SliderContext);
84586
+ /** @private NOT PROMISE AVAILABLE. DO NOT USE IN PRODUCTION. */
84587
+ var UnstableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
84588
+
84589
+ /***/ }),
84590
+
84591
+ /***/ "./node_modules/rc-slider/es/hooks/useDrag.js":
84592
+ /*!****************************************************!*\
84593
+ !*** ./node_modules/rc-slider/es/hooks/useDrag.js ***!
84594
+ \****************************************************/
84595
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84596
+
84597
+ "use strict";
84598
+ __webpack_require__.r(__webpack_exports__);
84599
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84600
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
84601
+ /* harmony export */ });
84602
+ /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
84603
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
84604
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
84605
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
84606
+ /* harmony import */ var rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/hooks/useEvent */ "./node_modules/rc-util/es/hooks/useEvent.js");
84607
+ /* harmony import */ var rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/hooks/useLayoutEffect */ "./node_modules/rc-util/es/hooks/useLayoutEffect.js");
84608
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../context */ "./node_modules/rc-slider/es/context.js");
84609
+
84610
+
84611
+
84612
+
84613
+
84614
+
84615
+ /** Drag to delete offset. It's a user experience number for dragging out */
84616
+ var REMOVE_DIST = 130;
84617
+ function getPosition(e) {
84618
+ var obj = 'targetTouches' in e ? e.targetTouches[0] : e;
84619
+ return {
84620
+ pageX: obj.pageX,
84621
+ pageY: obj.pageY
84622
+ };
84623
+ }
84624
+ function useDrag(containerRef, direction, rawValues, min, max, formatValue, triggerChange, finishChange, offsetValues, editable, minCount) {
84625
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__.useState(null),
84626
+ _React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState, 2),
84627
+ draggingValue = _React$useState2[0],
84628
+ setDraggingValue = _React$useState2[1];
84629
+ var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_2__.useState(-1),
84630
+ _React$useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState3, 2),
84631
+ draggingIndex = _React$useState4[0],
84632
+ setDraggingIndex = _React$useState4[1];
84633
+ var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_2__.useState(false),
84634
+ _React$useState6 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState5, 2),
84635
+ draggingDelete = _React$useState6[0],
84636
+ setDraggingDelete = _React$useState6[1];
84637
+ var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_2__.useState(rawValues),
84638
+ _React$useState8 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState7, 2),
84639
+ cacheValues = _React$useState8[0],
84640
+ setCacheValues = _React$useState8[1];
84641
+ var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_2__.useState(rawValues),
84642
+ _React$useState10 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState9, 2),
84643
+ originValues = _React$useState10[0],
84644
+ setOriginValues = _React$useState10[1];
84645
+ var mouseMoveEventRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);
84646
+ var mouseUpEventRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);
84647
+ var touchEventTargetRef = react__WEBPACK_IMPORTED_MODULE_2__.useRef(null);
84648
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_context__WEBPACK_IMPORTED_MODULE_5__.UnstableContext),
84649
+ onDragStart = _React$useContext.onDragStart,
84650
+ onDragChange = _React$useContext.onDragChange;
84651
+ (0,rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_4__["default"])(function () {
84652
+ if (draggingIndex === -1) {
84653
+ setCacheValues(rawValues);
84654
+ }
84655
+ }, [rawValues, draggingIndex]);
84656
+
84657
+ // Clean up event
84658
+ react__WEBPACK_IMPORTED_MODULE_2__.useEffect(function () {
84659
+ return function () {
84660
+ document.removeEventListener('mousemove', mouseMoveEventRef.current);
84661
+ document.removeEventListener('mouseup', mouseUpEventRef.current);
84662
+ if (touchEventTargetRef.current) {
84663
+ touchEventTargetRef.current.removeEventListener('touchmove', mouseMoveEventRef.current);
84664
+ touchEventTargetRef.current.removeEventListener('touchend', mouseUpEventRef.current);
84665
+ }
84666
+ };
84667
+ }, []);
84668
+ var flushValues = function flushValues(nextValues, nextValue, deleteMark) {
84669
+ // Perf: Only update state when value changed
84670
+ if (nextValue !== undefined) {
84671
+ setDraggingValue(nextValue);
84672
+ }
84673
+ setCacheValues(nextValues);
84674
+ var changeValues = nextValues;
84675
+ if (deleteMark) {
84676
+ changeValues = nextValues.filter(function (_, i) {
84677
+ return i !== draggingIndex;
84678
+ });
84679
+ }
84680
+ triggerChange(changeValues);
84681
+ if (onDragChange) {
84682
+ onDragChange({
84683
+ rawValues: nextValues,
84684
+ deleteIndex: deleteMark ? draggingIndex : -1,
84685
+ draggingIndex: draggingIndex,
84686
+ draggingValue: nextValue
84687
+ });
84688
+ }
84689
+ };
84690
+ var updateCacheValue = (0,rc_util_es_hooks_useEvent__WEBPACK_IMPORTED_MODULE_3__["default"])(function (valueIndex, offsetPercent, deleteMark) {
84691
+ if (valueIndex === -1) {
84692
+ // >>>> Dragging on the track
84693
+ var startValue = originValues[0];
84694
+ var endValue = originValues[originValues.length - 1];
84695
+ var maxStartOffset = min - startValue;
84696
+ var maxEndOffset = max - endValue;
84697
+
84698
+ // Get valid offset
84699
+ var offset = offsetPercent * (max - min);
84700
+ offset = Math.max(offset, maxStartOffset);
84701
+ offset = Math.min(offset, maxEndOffset);
84702
+
84703
+ // Use first value to revert back of valid offset (like steps marks)
84704
+ var formatStartValue = formatValue(startValue + offset);
84705
+ offset = formatStartValue - startValue;
84706
+ var cloneCacheValues = originValues.map(function (val) {
84707
+ return val + offset;
84708
+ });
84709
+ flushValues(cloneCacheValues);
84710
+ } else {
84711
+ // >>>> Dragging on the handle
84712
+ var offsetDist = (max - min) * offsetPercent;
84713
+
84714
+ // Always start with the valueIndex origin value
84715
+ var cloneValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(cacheValues);
84716
+ cloneValues[valueIndex] = originValues[valueIndex];
84717
+ var next = offsetValues(cloneValues, offsetDist, valueIndex, 'dist');
84718
+ flushValues(next.values, next.value, deleteMark);
84719
+ }
84720
+ });
84721
+ var onStartMove = function onStartMove(e, valueIndex, startValues) {
84722
+ e.stopPropagation();
84723
+
84724
+ // 如果是点击 track 触发的,需要传入变化后的初始值,而不能直接用 rawValues
84725
+ var initialValues = startValues || rawValues;
84726
+ var originValue = initialValues[valueIndex];
84727
+ setDraggingIndex(valueIndex);
84728
+ setDraggingValue(originValue);
84729
+ setOriginValues(initialValues);
84730
+ setCacheValues(initialValues);
84731
+ setDraggingDelete(false);
84732
+ var _getPosition = getPosition(e),
84733
+ startX = _getPosition.pageX,
84734
+ startY = _getPosition.pageY;
84735
+
84736
+ // We declare it here since closure can't get outer latest value
84737
+ var deleteMark = false;
84738
+
84739
+ // Internal trigger event
84740
+ if (onDragStart) {
84741
+ onDragStart({
84742
+ rawValues: initialValues,
84743
+ draggingIndex: valueIndex,
84744
+ draggingValue: originValue
84745
+ });
84746
+ }
84747
+
84748
+ // Moving
84749
+ var onMouseMove = function onMouseMove(event) {
84750
+ event.preventDefault();
84751
+ var _getPosition2 = getPosition(event),
84752
+ moveX = _getPosition2.pageX,
84753
+ moveY = _getPosition2.pageY;
84754
+ var offsetX = moveX - startX;
84755
+ var offsetY = moveY - startY;
84756
+ var _containerRef$current = containerRef.current.getBoundingClientRect(),
84757
+ width = _containerRef$current.width,
84758
+ height = _containerRef$current.height;
84759
+ var offSetPercent;
84760
+ var removeDist;
84761
+ switch (direction) {
84762
+ case 'btt':
84763
+ offSetPercent = -offsetY / height;
84764
+ removeDist = offsetX;
84765
+ break;
84766
+ case 'ttb':
84767
+ offSetPercent = offsetY / height;
84768
+ removeDist = offsetX;
84769
+ break;
84770
+ case 'rtl':
84771
+ offSetPercent = -offsetX / width;
84772
+ removeDist = offsetY;
84773
+ break;
84774
+ default:
84775
+ offSetPercent = offsetX / width;
84776
+ removeDist = offsetY;
84777
+ }
84778
+
84779
+ // Check if need mark remove
84780
+ deleteMark = editable ? Math.abs(removeDist) > REMOVE_DIST && minCount < cacheValues.length : false;
84781
+ setDraggingDelete(deleteMark);
84782
+ updateCacheValue(valueIndex, offSetPercent, deleteMark);
84783
+ };
84784
+
84785
+ // End
84786
+ var onMouseUp = function onMouseUp(event) {
84787
+ event.preventDefault();
84788
+ document.removeEventListener('mouseup', onMouseUp);
84789
+ document.removeEventListener('mousemove', onMouseMove);
84790
+ if (touchEventTargetRef.current) {
84791
+ touchEventTargetRef.current.removeEventListener('touchmove', mouseMoveEventRef.current);
84792
+ touchEventTargetRef.current.removeEventListener('touchend', mouseUpEventRef.current);
84793
+ }
84794
+ mouseMoveEventRef.current = null;
84795
+ mouseUpEventRef.current = null;
84796
+ touchEventTargetRef.current = null;
84797
+ finishChange(deleteMark);
84798
+ setDraggingIndex(-1);
84799
+ setDraggingDelete(false);
84800
+ };
84801
+ document.addEventListener('mouseup', onMouseUp);
84802
+ document.addEventListener('mousemove', onMouseMove);
84803
+ e.currentTarget.addEventListener('touchend', onMouseUp);
84804
+ e.currentTarget.addEventListener('touchmove', onMouseMove);
84805
+ mouseMoveEventRef.current = onMouseMove;
84806
+ mouseUpEventRef.current = onMouseUp;
84807
+ touchEventTargetRef.current = e.currentTarget;
84808
+ };
84809
+
84810
+ // Only return cache value when it mapping with rawValues
84811
+ var returnValues = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {
84812
+ var sourceValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(rawValues).sort(function (a, b) {
84813
+ return a - b;
84814
+ });
84815
+ var targetValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(cacheValues).sort(function (a, b) {
84816
+ return a - b;
84817
+ });
84818
+ var counts = {};
84819
+ targetValues.forEach(function (val) {
84820
+ counts[val] = (counts[val] || 0) + 1;
84821
+ });
84822
+ sourceValues.forEach(function (val) {
84823
+ counts[val] = (counts[val] || 0) - 1;
84824
+ });
84825
+ var maxDiffCount = editable ? 1 : 0;
84826
+ var diffCount = Object.values(counts).reduce(function (prev, next) {
84827
+ return prev + Math.abs(next);
84828
+ }, 0);
84829
+ return diffCount <= maxDiffCount ? cacheValues : rawValues;
84830
+ }, [rawValues, cacheValues, editable]);
84831
+ return [draggingIndex, draggingValue, draggingDelete, returnValues, onStartMove];
84832
+ }
84833
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useDrag);
84834
+
84835
+ /***/ }),
84836
+
84837
+ /***/ "./node_modules/rc-slider/es/hooks/useOffset.js":
84838
+ /*!******************************************************!*\
84839
+ !*** ./node_modules/rc-slider/es/hooks/useOffset.js ***!
84840
+ \******************************************************/
84841
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84842
+
84843
+ "use strict";
84844
+ __webpack_require__.r(__webpack_exports__);
84845
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84846
+ /* harmony export */ "default": () => (/* binding */ useOffset)
84847
+ /* harmony export */ });
84848
+ /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
84849
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
84850
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
84851
+
84852
+
84853
+
84854
+ /** Format the value in the range of [min, max] */
84855
+
84856
+ /** Format value align with step */
84857
+
84858
+ /** Format value align with step & marks */
84859
+
84860
+ function useOffset(min, max, step, markList, allowCross, pushable) {
84861
+ var formatRangeValue = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function (val) {
84862
+ return Math.max(min, Math.min(max, val));
84863
+ }, [min, max]);
84864
+ var formatStepValue = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function (val) {
84865
+ if (step !== null) {
84866
+ var stepValue = min + Math.round((formatRangeValue(val) - min) / step) * step;
84867
+
84868
+ // Cut number in case to be like 0.30000000000000004
84869
+ var getDecimal = function getDecimal(num) {
84870
+ return (String(num).split('.')[1] || '').length;
84871
+ };
84872
+ var maxDecimal = Math.max(getDecimal(step), getDecimal(max), getDecimal(min));
84873
+ var fixedValue = Number(stepValue.toFixed(maxDecimal));
84874
+ return min <= fixedValue && fixedValue <= max ? fixedValue : null;
84875
+ }
84876
+ return null;
84877
+ }, [step, min, max, formatRangeValue]);
84878
+ var formatValue = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function (val) {
84879
+ var formatNextValue = formatRangeValue(val);
84880
+
84881
+ // List align values
84882
+ var alignValues = markList.map(function (mark) {
84883
+ return mark.value;
84884
+ });
84885
+ if (step !== null) {
84886
+ alignValues.push(formatStepValue(val));
84887
+ }
84888
+
84889
+ // min & max
84890
+ alignValues.push(min, max);
84891
+
84892
+ // Align with marks
84893
+ var closeValue = alignValues[0];
84894
+ var closeDist = max - min;
84895
+ alignValues.forEach(function (alignValue) {
84896
+ var dist = Math.abs(formatNextValue - alignValue);
84897
+ if (dist <= closeDist) {
84898
+ closeValue = alignValue;
84899
+ closeDist = dist;
84900
+ }
84901
+ });
84902
+ return closeValue;
84903
+ }, [min, max, markList, step, formatRangeValue, formatStepValue]);
84904
+
84905
+ // ========================== Offset ==========================
84906
+ // Single Value
84907
+ var offsetValue = function offsetValue(values, offset, valueIndex) {
84908
+ var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';
84909
+ if (typeof offset === 'number') {
84910
+ var nextValue;
84911
+ var originValue = values[valueIndex];
84912
+
84913
+ // Only used for `dist` mode
84914
+ var targetDistValue = originValue + offset;
84915
+
84916
+ // Compare next step value & mark value which is best match
84917
+ var potentialValues = [];
84918
+ markList.forEach(function (mark) {
84919
+ potentialValues.push(mark.value);
84920
+ });
84921
+
84922
+ // Min & Max
84923
+ potentialValues.push(min, max);
84924
+
84925
+ // In case origin value is align with mark but not with step
84926
+ potentialValues.push(formatStepValue(originValue));
84927
+
84928
+ // Put offset step value also
84929
+ var sign = offset > 0 ? 1 : -1;
84930
+ if (mode === 'unit') {
84931
+ potentialValues.push(formatStepValue(originValue + sign * step));
84932
+ } else {
84933
+ potentialValues.push(formatStepValue(targetDistValue));
84934
+ }
84935
+
84936
+ // Find close one
84937
+ potentialValues = potentialValues.filter(function (val) {
84938
+ return val !== null;
84939
+ })
84940
+ // Remove reverse value
84941
+ .filter(function (val) {
84942
+ return offset < 0 ? val <= originValue : val >= originValue;
84943
+ });
84944
+ if (mode === 'unit') {
84945
+ // `unit` mode can not contain itself
84946
+ potentialValues = potentialValues.filter(function (val) {
84947
+ return val !== originValue;
84948
+ });
84949
+ }
84950
+ var compareValue = mode === 'unit' ? originValue : targetDistValue;
84951
+ nextValue = potentialValues[0];
84952
+ var valueDist = Math.abs(nextValue - compareValue);
84953
+ potentialValues.forEach(function (potentialValue) {
84954
+ var dist = Math.abs(potentialValue - compareValue);
84955
+ if (dist < valueDist) {
84956
+ nextValue = potentialValue;
84957
+ valueDist = dist;
84958
+ }
84959
+ });
84960
+
84961
+ // Out of range will back to range
84962
+ if (nextValue === undefined) {
84963
+ return offset < 0 ? min : max;
84964
+ }
84965
+
84966
+ // `dist` mode
84967
+ if (mode === 'dist') {
84968
+ return nextValue;
84969
+ }
84970
+
84971
+ // `unit` mode may need another round
84972
+ if (Math.abs(offset) > 1) {
84973
+ var cloneValues = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(values);
84974
+ cloneValues[valueIndex] = nextValue;
84975
+ return offsetValue(cloneValues, offset - sign, valueIndex, mode);
84976
+ }
84977
+ return nextValue;
84978
+ } else if (offset === 'min') {
84979
+ return min;
84980
+ } else if (offset === 'max') {
84981
+ return max;
84982
+ }
84983
+ };
84984
+
84985
+ /** Same as `offsetValue` but return `changed` mark to tell value changed */
84986
+ var offsetChangedValue = function offsetChangedValue(values, offset, valueIndex) {
84987
+ var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';
84988
+ var originValue = values[valueIndex];
84989
+ var nextValue = offsetValue(values, offset, valueIndex, mode);
84990
+ return {
84991
+ value: nextValue,
84992
+ changed: nextValue !== originValue
84993
+ };
84994
+ };
84995
+ var needPush = function needPush(dist) {
84996
+ return pushable === null && dist === 0 || typeof pushable === 'number' && dist < pushable;
84997
+ };
84998
+
84999
+ // Values
85000
+ var offsetValues = function offsetValues(values, offset, valueIndex) {
85001
+ var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';
85002
+ var nextValues = values.map(formatValue);
85003
+ var originValue = nextValues[valueIndex];
85004
+ var nextValue = offsetValue(nextValues, offset, valueIndex, mode);
85005
+ nextValues[valueIndex] = nextValue;
85006
+ if (allowCross === false) {
85007
+ // >>>>> Allow Cross
85008
+ var pushNum = pushable || 0;
85009
+
85010
+ // ============ AllowCross ===============
85011
+ if (valueIndex > 0 && nextValues[valueIndex - 1] !== originValue) {
85012
+ nextValues[valueIndex] = Math.max(nextValues[valueIndex], nextValues[valueIndex - 1] + pushNum);
85013
+ }
85014
+ if (valueIndex < nextValues.length - 1 && nextValues[valueIndex + 1] !== originValue) {
85015
+ nextValues[valueIndex] = Math.min(nextValues[valueIndex], nextValues[valueIndex + 1] - pushNum);
85016
+ }
85017
+ } else if (typeof pushable === 'number' || pushable === null) {
85018
+ // >>>>> Pushable
85019
+ // =============== Push ==================
85020
+
85021
+ // >>>>>> Basic push
85022
+ // End values
85023
+ for (var i = valueIndex + 1; i < nextValues.length; i += 1) {
85024
+ var changed = true;
85025
+ while (needPush(nextValues[i] - nextValues[i - 1]) && changed) {
85026
+ var _offsetChangedValue = offsetChangedValue(nextValues, 1, i);
85027
+ nextValues[i] = _offsetChangedValue.value;
85028
+ changed = _offsetChangedValue.changed;
85029
+ }
85030
+ }
85031
+
85032
+ // Start values
85033
+ for (var _i = valueIndex; _i > 0; _i -= 1) {
85034
+ var _changed = true;
85035
+ while (needPush(nextValues[_i] - nextValues[_i - 1]) && _changed) {
85036
+ var _offsetChangedValue2 = offsetChangedValue(nextValues, -1, _i - 1);
85037
+ nextValues[_i - 1] = _offsetChangedValue2.value;
85038
+ _changed = _offsetChangedValue2.changed;
85039
+ }
85040
+ }
85041
+
85042
+ // >>>>> Revert back to safe push range
85043
+ // End to Start
85044
+ for (var _i2 = nextValues.length - 1; _i2 > 0; _i2 -= 1) {
85045
+ var _changed2 = true;
85046
+ while (needPush(nextValues[_i2] - nextValues[_i2 - 1]) && _changed2) {
85047
+ var _offsetChangedValue3 = offsetChangedValue(nextValues, -1, _i2 - 1);
85048
+ nextValues[_i2 - 1] = _offsetChangedValue3.value;
85049
+ _changed2 = _offsetChangedValue3.changed;
85050
+ }
85051
+ }
85052
+
85053
+ // Start to End
85054
+ for (var _i3 = 0; _i3 < nextValues.length - 1; _i3 += 1) {
85055
+ var _changed3 = true;
85056
+ while (needPush(nextValues[_i3 + 1] - nextValues[_i3]) && _changed3) {
85057
+ var _offsetChangedValue4 = offsetChangedValue(nextValues, 1, _i3 + 1);
85058
+ nextValues[_i3 + 1] = _offsetChangedValue4.value;
85059
+ _changed3 = _offsetChangedValue4.changed;
85060
+ }
85061
+ }
85062
+ }
85063
+ return {
85064
+ value: nextValues[valueIndex],
85065
+ values: nextValues
85066
+ };
85067
+ };
85068
+ return [formatValue, offsetValues];
85069
+ }
85070
+
85071
+ /***/ }),
85072
+
85073
+ /***/ "./node_modules/rc-slider/es/hooks/useRange.js":
85074
+ /*!*****************************************************!*\
85075
+ !*** ./node_modules/rc-slider/es/hooks/useRange.js ***!
85076
+ \*****************************************************/
85077
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
85078
+
85079
+ "use strict";
85080
+ __webpack_require__.r(__webpack_exports__);
85081
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
85082
+ /* harmony export */ "default": () => (/* binding */ useRange)
85083
+ /* harmony export */ });
85084
+ /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
85085
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
85086
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
85087
+
85088
+
85089
+ function useRange(range) {
85090
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
85091
+ if (range === true || !range) {
85092
+ return [!!range, false, false, 0];
85093
+ }
85094
+ var editable = range.editable,
85095
+ draggableTrack = range.draggableTrack,
85096
+ minCount = range.minCount,
85097
+ maxCount = range.maxCount;
85098
+ if (true) {
85099
+ (0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_0__.warning)(!editable || !draggableTrack, '`editable` can not work with `draggableTrack`.');
85100
+ }
85101
+ return [true, editable, !editable && draggableTrack, minCount || 0, maxCount];
85102
+ }, [range]);
85103
+ }
85104
+
85105
+ /***/ }),
85106
+
85107
+ /***/ "./node_modules/rc-slider/es/index.js":
85108
+ /*!********************************************!*\
85109
+ !*** ./node_modules/rc-slider/es/index.js ***!
85110
+ \********************************************/
85111
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
85112
+
85113
+ "use strict";
85114
+ __webpack_require__.r(__webpack_exports__);
85115
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
85116
+ /* harmony export */ UnstableContext: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_1__.UnstableContext),
85117
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
85118
+ /* harmony export */ });
85119
+ /* harmony import */ var _Slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Slider */ "./node_modules/rc-slider/es/Slider.js");
85120
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/rc-slider/es/context.js");
85121
+
85122
+
85123
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Slider__WEBPACK_IMPORTED_MODULE_0__["default"]);
85124
+
85125
+ /***/ }),
85126
+
85127
+ /***/ "./node_modules/rc-slider/es/util.js":
85128
+ /*!*******************************************!*\
85129
+ !*** ./node_modules/rc-slider/es/util.js ***!
85130
+ \*******************************************/
85131
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
85132
+
85133
+ "use strict";
85134
+ __webpack_require__.r(__webpack_exports__);
85135
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
85136
+ /* harmony export */ getDirectionStyle: () => (/* binding */ getDirectionStyle),
85137
+ /* harmony export */ getIndex: () => (/* binding */ getIndex),
85138
+ /* harmony export */ getOffset: () => (/* binding */ getOffset)
85139
+ /* harmony export */ });
85140
+ function getOffset(value, min, max) {
85141
+ return (value - min) / (max - min);
85142
+ }
85143
+ function getDirectionStyle(direction, value, min, max) {
85144
+ var offset = getOffset(value, min, max);
85145
+ var positionStyle = {};
85146
+ switch (direction) {
85147
+ case 'rtl':
85148
+ positionStyle.right = "".concat(offset * 100, "%");
85149
+ positionStyle.transform = 'translateX(50%)';
85150
+ break;
85151
+ case 'btt':
85152
+ positionStyle.bottom = "".concat(offset * 100, "%");
85153
+ positionStyle.transform = 'translateY(50%)';
85154
+ break;
85155
+ case 'ttb':
85156
+ positionStyle.top = "".concat(offset * 100, "%");
85157
+ positionStyle.transform = 'translateY(-50%)';
85158
+ break;
85159
+ default:
85160
+ positionStyle.left = "".concat(offset * 100, "%");
85161
+ positionStyle.transform = 'translateX(-50%)';
85162
+ break;
85163
+ }
85164
+ return positionStyle;
85165
+ }
85166
+
85167
+ /** Return index value if is list or return value directly */
85168
+ function getIndex(value, index) {
85169
+ return Array.isArray(value) ? value[index] : value;
85170
+ }
85171
+
85172
+ /***/ }),
85173
+
83012
85174
  /***/ "./node_modules/rc-tabs/es/TabContext.js":
83013
85175
  /*!***********************************************!*\
83014
85176
  !*** ./node_modules/rc-tabs/es/TabContext.js ***!
@@ -87755,6 +89917,76 @@ function pickAttrs(props) {
87755
89917
 
87756
89918
  /***/ }),
87757
89919
 
89920
+ /***/ "./node_modules/rc-util/lib/raf.js":
89921
+ /*!*****************************************!*\
89922
+ !*** ./node_modules/rc-util/lib/raf.js ***!
89923
+ \*****************************************/
89924
+ /***/ ((__unused_webpack_module, exports) => {
89925
+
89926
+ "use strict";
89927
+
89928
+
89929
+ Object.defineProperty(exports, "__esModule", ({
89930
+ value: true
89931
+ }));
89932
+ exports["default"] = void 0;
89933
+ var raf = function raf(callback) {
89934
+ return +setTimeout(callback, 16);
89935
+ };
89936
+ var caf = function caf(num) {
89937
+ return clearTimeout(num);
89938
+ };
89939
+ if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
89940
+ raf = function raf(callback) {
89941
+ return window.requestAnimationFrame(callback);
89942
+ };
89943
+ caf = function caf(handle) {
89944
+ return window.cancelAnimationFrame(handle);
89945
+ };
89946
+ }
89947
+ var rafUUID = 0;
89948
+ var rafIds = new Map();
89949
+ function cleanup(id) {
89950
+ rafIds.delete(id);
89951
+ }
89952
+ var wrapperRaf = function wrapperRaf(callback) {
89953
+ var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
89954
+ rafUUID += 1;
89955
+ var id = rafUUID;
89956
+ function callRef(leftTimes) {
89957
+ if (leftTimes === 0) {
89958
+ // Clean up
89959
+ cleanup(id);
89960
+
89961
+ // Trigger
89962
+ callback();
89963
+ } else {
89964
+ // Next raf
89965
+ var realId = raf(function () {
89966
+ callRef(leftTimes - 1);
89967
+ });
89968
+
89969
+ // Bind real raf id
89970
+ rafIds.set(id, realId);
89971
+ }
89972
+ }
89973
+ callRef(times);
89974
+ return id;
89975
+ };
89976
+ wrapperRaf.cancel = function (id) {
89977
+ var realId = rafIds.get(id);
89978
+ cleanup(id);
89979
+ return caf(realId);
89980
+ };
89981
+ if (true) {
89982
+ wrapperRaf.ids = function () {
89983
+ return rafIds;
89984
+ };
89985
+ }
89986
+ var _default = exports["default"] = wrapperRaf;
89987
+
89988
+ /***/ }),
89989
+
87758
89990
  /***/ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js":
87759
89991
  /*!********************************************************************************!*\
87760
89992
  !*** ./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js ***!