@univerjs/design 0.2.11 → 0.2.13

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.
package/lib/es/index.js CHANGED
@@ -1240,13 +1240,13 @@ const _FastColor = class _FastColor {
1240
1240
  };
1241
1241
  __name(_FastColor, "FastColor");
1242
1242
  let FastColor = _FastColor;
1243
- var _excluded$y = ["b"], _excluded2$8 = ["v"], getRoundNumber = /* @__PURE__ */ __name(function(value) {
1243
+ var _excluded$x = ["b"], _excluded2$7 = ["v"], getRoundNumber = /* @__PURE__ */ __name(function(value) {
1244
1244
  return Math.round(Number(value || 0));
1245
1245
  }, "getRoundNumber"), convertHsb2Hsv = /* @__PURE__ */ __name(function(color) {
1246
1246
  if (color instanceof FastColor)
1247
1247
  return color;
1248
1248
  if (color && _typeof$4(color) === "object" && "h" in color && "b" in color) {
1249
- var _ref = color, b2 = _ref.b, resets = _objectWithoutProperties$3(_ref, _excluded$y);
1249
+ var _ref = color, b2 = _ref.b, resets = _objectWithoutProperties$3(_ref, _excluded$x);
1250
1250
  return _objectSpread2$3(_objectSpread2$3({}, resets), {}, {
1251
1251
  v: b2
1252
1252
  });
@@ -1267,7 +1267,7 @@ var _excluded$y = ["b"], _excluded2$8 = ["v"], getRoundNumber = /* @__PURE__ */
1267
1267
  }, {
1268
1268
  key: "toHsb",
1269
1269
  value: /* @__PURE__ */ __name(function() {
1270
- var _this$toHsv = this.toHsv(), v2 = _this$toHsv.v, resets = _objectWithoutProperties$3(_this$toHsv, _excluded2$8);
1270
+ var _this$toHsv = this.toHsv(), v2 = _this$toHsv.v, resets = _objectWithoutProperties$3(_this$toHsv, _excluded2$7);
1271
1271
  return _objectSpread2$3(_objectSpread2$3({}, resets), {}, {
1272
1272
  b: v2,
1273
1273
  a: this.a
@@ -1729,10 +1729,6 @@ function _toConsumableArray$5(r) {
1729
1729
  return _arrayWithoutHoles$4(r) || _iterableToArray$4(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$4();
1730
1730
  }
1731
1731
  __name(_toConsumableArray$5, "_toConsumableArray$5");
1732
- function _toArray(r) {
1733
- return _arrayWithHoles$2(r) || _iterableToArray$4(r) || _unsupportedIterableToArray$1(r) || _nonIterableRest$2();
1734
- }
1735
- __name(_toArray, "_toArray");
1736
1732
  var warned$1 = {}, preMessage$1 = /* @__PURE__ */ __name(function(fn) {
1737
1733
  }, "preMessage2");
1738
1734
  function warning$2(valid, message2) {
@@ -3120,7 +3116,7 @@ function _objectWithoutProperties$2(e2, t2) {
3120
3116
  return i;
3121
3117
  }
3122
3118
  __name(_objectWithoutProperties$2, "_objectWithoutProperties$2");
3123
- var Context$1 = /* @__PURE__ */ React$6.createContext({});
3119
+ var Context = /* @__PURE__ */ React$6.createContext({});
3124
3120
  function _classCallCheck$2(a, n2) {
3125
3121
  if (!(a instanceof n2)) throw new TypeError("Cannot call a class as a function");
3126
3122
  }
@@ -3197,7 +3193,7 @@ function _createSuper$2(t2) {
3197
3193
  };
3198
3194
  }
3199
3195
  __name(_createSuper$2, "_createSuper$2");
3200
- var DomWrapper$2 = /* @__PURE__ */ function(_React$Component) {
3196
+ var DomWrapper$1 = /* @__PURE__ */ function(_React$Component) {
3201
3197
  _inherits$2(DomWrapper2, _React$Component);
3202
3198
  var _super = _createSuper$2(DomWrapper2);
3203
3199
  function DomWrapper2() {
@@ -3221,41 +3217,41 @@ function useSyncState$1(defaultValue) {
3221
3217
  return [getValue, setValue];
3222
3218
  }
3223
3219
  __name(useSyncState$1, "useSyncState$1");
3224
- var STATUS_NONE$1 = "none", STATUS_APPEAR$1 = "appear", STATUS_ENTER$1 = "enter", STATUS_LEAVE$1 = "leave", STEP_NONE$1 = "none", STEP_PREPARE$1 = "prepare", STEP_START$1 = "start", STEP_ACTIVE$1 = "active", STEP_ACTIVATED$1 = "end", STEP_PREPARED$1 = "prepared";
3225
- function makePrefixMap$1(styleProp, eventName) {
3220
+ var STATUS_NONE = "none", STATUS_APPEAR = "appear", STATUS_ENTER = "enter", STATUS_LEAVE = "leave", STEP_NONE = "none", STEP_PREPARE = "prepare", STEP_START = "start", STEP_ACTIVE = "active", STEP_ACTIVATED = "end", STEP_PREPARED = "prepared";
3221
+ function makePrefixMap(styleProp, eventName) {
3226
3222
  var prefixes2 = {};
3227
3223
  return prefixes2[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes2["Webkit".concat(styleProp)] = "webkit".concat(eventName), prefixes2["Moz".concat(styleProp)] = "moz".concat(eventName), prefixes2["ms".concat(styleProp)] = "MS".concat(eventName), prefixes2["O".concat(styleProp)] = "o".concat(eventName.toLowerCase()), prefixes2;
3228
3224
  }
3229
- __name(makePrefixMap$1, "makePrefixMap$1");
3230
- function getVendorPrefixes$1(domSupport, win) {
3225
+ __name(makePrefixMap, "makePrefixMap");
3226
+ function getVendorPrefixes(domSupport, win) {
3231
3227
  var prefixes2 = {
3232
- animationend: makePrefixMap$1("Animation", "AnimationEnd"),
3233
- transitionend: makePrefixMap$1("Transition", "TransitionEnd")
3228
+ animationend: makePrefixMap("Animation", "AnimationEnd"),
3229
+ transitionend: makePrefixMap("Transition", "TransitionEnd")
3234
3230
  };
3235
3231
  return domSupport && ("AnimationEvent" in win || delete prefixes2.animationend.animation, "TransitionEvent" in win || delete prefixes2.transitionend.transition), prefixes2;
3236
3232
  }
3237
- __name(getVendorPrefixes$1, "getVendorPrefixes$1");
3238
- var vendorPrefixes$1 = getVendorPrefixes$1(canUseDom(), typeof window < "u" ? window : {}), style$1 = {};
3233
+ __name(getVendorPrefixes, "getVendorPrefixes");
3234
+ var vendorPrefixes = getVendorPrefixes(canUseDom(), typeof window < "u" ? window : {}), style = {};
3239
3235
  if (canUseDom()) {
3240
- var _document$createEleme$1 = document.createElement("div");
3241
- style$1 = _document$createEleme$1.style;
3242
- }
3243
- var prefixedEventNames$1 = {};
3244
- function getVendorPrefixedEventName$1(eventName) {
3245
- if (prefixedEventNames$1[eventName])
3246
- return prefixedEventNames$1[eventName];
3247
- var prefixMap = vendorPrefixes$1[eventName];
3236
+ var _document$createEleme = document.createElement("div");
3237
+ style = _document$createEleme.style;
3238
+ }
3239
+ var prefixedEventNames = {};
3240
+ function getVendorPrefixedEventName(eventName) {
3241
+ if (prefixedEventNames[eventName])
3242
+ return prefixedEventNames[eventName];
3243
+ var prefixMap = vendorPrefixes[eventName];
3248
3244
  if (prefixMap)
3249
3245
  for (var stylePropList = Object.keys(prefixMap), len = stylePropList.length, i = 0; i < len; i += 1) {
3250
3246
  var styleProp = stylePropList[i];
3251
- if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style$1)
3252
- return prefixedEventNames$1[eventName] = prefixMap[styleProp], prefixedEventNames$1[eventName];
3247
+ if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style)
3248
+ return prefixedEventNames[eventName] = prefixMap[styleProp], prefixedEventNames[eventName];
3253
3249
  }
3254
3250
  return "";
3255
3251
  }
3256
- __name(getVendorPrefixedEventName$1, "getVendorPrefixedEventName$1");
3257
- var internalAnimationEndName$1 = getVendorPrefixedEventName$1("animationend"), internalTransitionEndName$1 = getVendorPrefixedEventName$1("transitionend"), supportTransition$1 = !!(internalAnimationEndName$1 && internalTransitionEndName$1), animationEndName$1 = internalAnimationEndName$1 || "animationend", transitionEndName$1 = internalTransitionEndName$1 || "transitionend";
3258
- function getTransitionName$1(transitionName, transitionType) {
3252
+ __name(getVendorPrefixedEventName, "getVendorPrefixedEventName");
3253
+ var internalAnimationEndName = getVendorPrefixedEventName("animationend"), internalTransitionEndName = getVendorPrefixedEventName("transitionend"), supportTransition = !!(internalAnimationEndName && internalTransitionEndName), animationEndName = internalAnimationEndName || "animationend", transitionEndName = internalTransitionEndName || "transitionend";
3254
+ function getTransitionName(transitionName, transitionType) {
3259
3255
  if (!transitionName) return null;
3260
3256
  if (_typeof$2(transitionName) === "object") {
3261
3257
  var type2 = transitionType.replace(/-\w/g, function(match2) {
@@ -3265,23 +3261,23 @@ function getTransitionName$1(transitionName, transitionType) {
3265
3261
  }
3266
3262
  return "".concat(transitionName, "-").concat(transitionType);
3267
3263
  }
3268
- __name(getTransitionName$1, "getTransitionName$1");
3269
- const useDomMotionEvents$1 = /* @__PURE__ */ __name(function(onInternalMotionEnd) {
3264
+ __name(getTransitionName, "getTransitionName");
3265
+ const useDomMotionEvents = /* @__PURE__ */ __name(function(onInternalMotionEnd) {
3270
3266
  var cacheElementRef = useRef();
3271
3267
  function removeMotionEvents(element2) {
3272
- element2 && (element2.removeEventListener(transitionEndName$1, onInternalMotionEnd), element2.removeEventListener(animationEndName$1, onInternalMotionEnd));
3268
+ element2 && (element2.removeEventListener(transitionEndName, onInternalMotionEnd), element2.removeEventListener(animationEndName, onInternalMotionEnd));
3273
3269
  }
3274
3270
  __name(removeMotionEvents, "removeMotionEvents");
3275
3271
  function patchMotionEvents(element2) {
3276
- cacheElementRef.current && cacheElementRef.current !== element2 && removeMotionEvents(cacheElementRef.current), element2 && element2 !== cacheElementRef.current && (element2.addEventListener(transitionEndName$1, onInternalMotionEnd), element2.addEventListener(animationEndName$1, onInternalMotionEnd), cacheElementRef.current = element2);
3272
+ cacheElementRef.current && cacheElementRef.current !== element2 && removeMotionEvents(cacheElementRef.current), element2 && element2 !== cacheElementRef.current && (element2.addEventListener(transitionEndName, onInternalMotionEnd), element2.addEventListener(animationEndName, onInternalMotionEnd), cacheElementRef.current = element2);
3277
3273
  }
3278
3274
  return __name(patchMotionEvents, "patchMotionEvents"), React$6.useEffect(function() {
3279
3275
  return function() {
3280
3276
  removeMotionEvents(cacheElementRef.current);
3281
3277
  };
3282
3278
  }, []), [patchMotionEvents, removeMotionEvents];
3283
- }, "useDomMotionEvents$1");
3284
- var useIsomorphicLayoutEffect$1 = canUseDom() ? useLayoutEffect$2 : useEffect, raf = /* @__PURE__ */ __name(function(callback) {
3279
+ }, "useDomMotionEvents");
3280
+ var useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect$2 : useEffect, raf = /* @__PURE__ */ __name(function(callback) {
3285
3281
  return +setTimeout(callback, 16);
3286
3282
  }, "raf2"), caf = /* @__PURE__ */ __name(function(num) {
3287
3283
  return clearTimeout(num);
@@ -3316,7 +3312,7 @@ wrapperRaf.cancel = function(id) {
3316
3312
  var realId = rafIds.get(id);
3317
3313
  return cleanup(id), caf(realId);
3318
3314
  };
3319
- const useNextFrame$1 = /* @__PURE__ */ __name(function() {
3315
+ const useNextFrame = /* @__PURE__ */ __name(function() {
3320
3316
  var nextFrameRef = React$6.useRef(null);
3321
3317
  function cancelNextFrame() {
3322
3318
  wrapperRaf.cancel(nextFrameRef.current);
@@ -3339,23 +3335,23 @@ const useNextFrame$1 = /* @__PURE__ */ __name(function() {
3339
3335
  cancelNextFrame();
3340
3336
  };
3341
3337
  }, []), [nextFrame, cancelNextFrame];
3342
- }, "useNextFrame$1");
3343
- var FULL_STEP_QUEUE$1 = [STEP_PREPARE$1, STEP_START$1, STEP_ACTIVE$1, STEP_ACTIVATED$1], SIMPLE_STEP_QUEUE$1 = [STEP_PREPARE$1, STEP_PREPARED$1], SkipStep$1 = !1, DoStep$1 = !0;
3344
- function isActive$1(step) {
3345
- return step === STEP_ACTIVE$1 || step === STEP_ACTIVATED$1;
3346
- }
3347
- __name(isActive$1, "isActive$1");
3348
- const useStepQueue$1 = /* @__PURE__ */ __name(function(status, prepareOnly, callback) {
3349
- var _useState = useSafeState(STEP_NONE$1), _useState2 = _slicedToArray$1(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame$1(), _useNextFrame2 = _slicedToArray$1(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
3338
+ }, "useNextFrame");
3339
+ var FULL_STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED], SIMPLE_STEP_QUEUE = [STEP_PREPARE, STEP_PREPARED], SkipStep = !1, DoStep = !0;
3340
+ function isActive(step) {
3341
+ return step === STEP_ACTIVE || step === STEP_ACTIVATED;
3342
+ }
3343
+ __name(isActive, "isActive");
3344
+ const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callback) {
3345
+ var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray$1(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray$1(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
3350
3346
  function startQueue() {
3351
- setStep(STEP_PREPARE$1, !0);
3347
+ setStep(STEP_PREPARE, !0);
3352
3348
  }
3353
3349
  __name(startQueue, "startQueue");
3354
- var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE$1 : FULL_STEP_QUEUE$1;
3355
- return useIsomorphicLayoutEffect$1(function() {
3356
- if (step !== STEP_NONE$1 && step !== STEP_ACTIVATED$1) {
3350
+ var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
3351
+ return useIsomorphicLayoutEffect(function() {
3352
+ if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
3357
3353
  var index2 = STEP_QUEUE.indexOf(step), nextStep = STEP_QUEUE[index2 + 1], result = callback(step);
3358
- result === SkipStep$1 ? setStep(nextStep, !0) : nextStep && nextFrame(function(info) {
3354
+ result === SkipStep ? setStep(nextStep, !0) : nextStep && nextFrame(function(info) {
3359
3355
  function doNext() {
3360
3356
  info.isCanceled() || setStep(nextStep, !0);
3361
3357
  }
@@ -3367,68 +3363,68 @@ const useStepQueue$1 = /* @__PURE__ */ __name(function(status, prepareOnly, call
3367
3363
  cancelNextFrame();
3368
3364
  };
3369
3365
  }, []), [startQueue, step];
3370
- }, "useStepQueue$1");
3371
- function useStatus$1(supportMotion, visible, getElement, _ref) {
3372
- var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray$1(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState$1(STATUS_NONE$1), _useSyncState2 = _slicedToArray$1(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray$1(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
3366
+ }, "useStepQueue");
3367
+ function useStatus(supportMotion, visible, getElement, _ref) {
3368
+ var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray$1(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState$1(STATUS_NONE), _useSyncState2 = _slicedToArray$1(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray$1(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
3373
3369
  function getDomElement() {
3374
3370
  return getElement();
3375
3371
  }
3376
3372
  __name(getDomElement, "getDomElement");
3377
3373
  var activeRef = useRef(!1);
3378
3374
  function updateMotionEndStatus() {
3379
- setStatus(STATUS_NONE$1), setStyle(null, !0);
3375
+ setStatus(STATUS_NONE), setStyle(null, !0);
3380
3376
  }
3381
3377
  __name(updateMotionEndStatus, "updateMotionEndStatus");
3382
3378
  var onInternalMotionEnd = useEvent(function(event) {
3383
3379
  var status = getStatus();
3384
- if (status !== STATUS_NONE$1) {
3380
+ if (status !== STATUS_NONE) {
3385
3381
  var element2 = getDomElement();
3386
3382
  if (!(event && !event.deadline && event.target !== element2)) {
3387
3383
  var currentActive = activeRef.current, canEnd;
3388
- status === STATUS_APPEAR$1 && currentActive ? canEnd = onAppearEnd == null ? void 0 : onAppearEnd(element2, event) : status === STATUS_ENTER$1 && currentActive ? canEnd = onEnterEnd == null ? void 0 : onEnterEnd(element2, event) : status === STATUS_LEAVE$1 && currentActive && (canEnd = onLeaveEnd == null ? void 0 : onLeaveEnd(element2, event)), currentActive && canEnd !== !1 && updateMotionEndStatus();
3384
+ status === STATUS_APPEAR && currentActive ? canEnd = onAppearEnd == null ? void 0 : onAppearEnd(element2, event) : status === STATUS_ENTER && currentActive ? canEnd = onEnterEnd == null ? void 0 : onEnterEnd(element2, event) : status === STATUS_LEAVE && currentActive && (canEnd = onLeaveEnd == null ? void 0 : onLeaveEnd(element2, event)), currentActive && canEnd !== !1 && updateMotionEndStatus();
3389
3385
  }
3390
3386
  }
3391
- }), _useDomMotionEvents = useDomMotionEvents$1(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray$1(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
3387
+ }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray$1(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
3392
3388
  switch (targetStatus) {
3393
- case STATUS_APPEAR$1:
3394
- return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE$1, onAppearPrepare), STEP_START$1, onAppearStart), STEP_ACTIVE$1, onAppearActive);
3395
- case STATUS_ENTER$1:
3396
- return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE$1, onEnterPrepare), STEP_START$1, onEnterStart), STEP_ACTIVE$1, onEnterActive);
3397
- case STATUS_LEAVE$1:
3398
- return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE$1, onLeavePrepare), STEP_START$1, onLeaveStart), STEP_ACTIVE$1, onLeaveActive);
3389
+ case STATUS_APPEAR:
3390
+ return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
3391
+ case STATUS_ENTER:
3392
+ return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
3393
+ case STATUS_LEAVE:
3394
+ return _defineProperty$b(_defineProperty$b(_defineProperty$b({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
3399
3395
  default:
3400
3396
  return {};
3401
3397
  }
3402
3398
  }, "getEventHandlers"), eventHandlers = React$6.useMemo(function() {
3403
3399
  return getEventHandlers(currentStatus);
3404
- }, [currentStatus]), _useStepQueue = useStepQueue$1(currentStatus, !supportMotion, function(newStep) {
3405
- if (newStep === STEP_PREPARE$1) {
3406
- var onPrepare = eventHandlers[STEP_PREPARE$1];
3407
- return onPrepare ? onPrepare(getDomElement()) : SkipStep$1;
3400
+ }, [currentStatus]), _useStepQueue = useStepQueue(currentStatus, !supportMotion, function(newStep) {
3401
+ if (newStep === STEP_PREPARE) {
3402
+ var onPrepare = eventHandlers[STEP_PREPARE];
3403
+ return onPrepare ? onPrepare(getDomElement()) : SkipStep;
3408
3404
  }
3409
3405
  if (step in eventHandlers) {
3410
3406
  var _eventHandlers$step;
3411
3407
  setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
3412
3408
  }
3413
- return step === STEP_ACTIVE$1 && currentStatus !== STATUS_NONE$1 && (patchMotionEvents(getDomElement()), motionDeadline > 0 && (clearTimeout(deadlineRef.current), deadlineRef.current = setTimeout(function() {
3409
+ return step === STEP_ACTIVE && currentStatus !== STATUS_NONE && (patchMotionEvents(getDomElement()), motionDeadline > 0 && (clearTimeout(deadlineRef.current), deadlineRef.current = setTimeout(function() {
3414
3410
  onInternalMotionEnd({
3415
3411
  deadline: !0
3416
3412
  });
3417
- }, motionDeadline))), step === STEP_PREPARED$1 && updateMotionEndStatus(), DoStep$1;
3418
- }), _useStepQueue2 = _slicedToArray$1(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive$1(step);
3419
- activeRef.current = active, useIsomorphicLayoutEffect$1(function() {
3413
+ }, motionDeadline))), step === STEP_PREPARED && updateMotionEndStatus(), DoStep;
3414
+ }), _useStepQueue2 = _slicedToArray$1(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
3415
+ activeRef.current = active, useIsomorphicLayoutEffect(function() {
3420
3416
  setAsyncVisible(visible);
3421
3417
  var isMounted = mountedRef.current;
3422
3418
  mountedRef.current = !0;
3423
3419
  var nextStatus;
3424
- !isMounted && visible && motionAppear && (nextStatus = STATUS_APPEAR$1), isMounted && visible && motionEnter && (nextStatus = STATUS_ENTER$1), (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) && (nextStatus = STATUS_LEAVE$1);
3420
+ !isMounted && visible && motionAppear && (nextStatus = STATUS_APPEAR), isMounted && visible && motionEnter && (nextStatus = STATUS_ENTER), (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) && (nextStatus = STATUS_LEAVE);
3425
3421
  var nextEventHandlers = getEventHandlers(nextStatus);
3426
- nextStatus && (supportMotion || nextEventHandlers[STEP_PREPARE$1]) ? (setStatus(nextStatus), startStep()) : setStatus(STATUS_NONE$1);
3422
+ nextStatus && (supportMotion || nextEventHandlers[STEP_PREPARE]) ? (setStatus(nextStatus), startStep()) : setStatus(STATUS_NONE);
3427
3423
  }, [visible]), useEffect(function() {
3428
3424
  // Cancel appear
3429
- (currentStatus === STATUS_APPEAR$1 && !motionAppear || // Cancel enter
3430
- currentStatus === STATUS_ENTER$1 && !motionEnter || // Cancel leave
3431
- currentStatus === STATUS_LEAVE$1 && !motionLeave) && setStatus(STATUS_NONE$1);
3425
+ (currentStatus === STATUS_APPEAR && !motionAppear || // Cancel enter
3426
+ currentStatus === STATUS_ENTER && !motionEnter || // Cancel leave
3427
+ currentStatus === STATUS_LEAVE && !motionLeave) && setStatus(STATUS_NONE);
3432
3428
  }, [motionAppear, motionEnter, motionLeave]), useEffect(function() {
3433
3429
  return function() {
3434
3430
  mountedRef.current = !1, clearTimeout(deadlineRef.current);
@@ -3436,15 +3432,15 @@ function useStatus$1(supportMotion, visible, getElement, _ref) {
3436
3432
  }, []);
3437
3433
  var firstMountChangeRef = React$6.useRef(!1);
3438
3434
  useEffect(function() {
3439
- asyncVisible && (firstMountChangeRef.current = !0), asyncVisible !== void 0 && currentStatus === STATUS_NONE$1 && ((firstMountChangeRef.current || asyncVisible) && (onVisibleChanged == null || onVisibleChanged(asyncVisible)), firstMountChangeRef.current = !0);
3435
+ asyncVisible && (firstMountChangeRef.current = !0), asyncVisible !== void 0 && currentStatus === STATUS_NONE && ((firstMountChangeRef.current || asyncVisible) && (onVisibleChanged == null || onVisibleChanged(asyncVisible)), firstMountChangeRef.current = !0);
3440
3436
  }, [asyncVisible, currentStatus]);
3441
3437
  var mergedStyle = style2;
3442
- return eventHandlers[STEP_PREPARE$1] && step === STEP_START$1 && (mergedStyle = _objectSpread2$1({
3438
+ return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2$1({
3443
3439
  transition: "none"
3444
3440
  }, mergedStyle)), [currentStatus, step, mergedStyle, asyncVisible != null ? asyncVisible : visible];
3445
3441
  }
3446
- __name(useStatus$1, "useStatus$1");
3447
- function genCSSMotion$1(config2) {
3442
+ __name(useStatus, "useStatus");
3443
+ function genCSSMotion(config2) {
3448
3444
  var transitionSupport = config2;
3449
3445
  _typeof$2(config2) === "object" && (transitionSupport = config2.transitionSupport);
3450
3446
  function isSupportTransition(props, contextMotion) {
@@ -3452,7 +3448,7 @@ function genCSSMotion$1(config2) {
3452
3448
  }
3453
3449
  __name(isSupportTransition, "isSupportTransition");
3454
3450
  var CSSMotion2 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
3455
- var _props$visible = props.visible, visible = _props$visible === void 0 ? !0 : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? !0 : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps, _React$useContext = React$6.useContext(Context$1), contextMotion = _React$useContext.motion, supportMotion = isSupportTransition(props, contextMotion), nodeRef = useRef(), wrapperNodeRef = useRef();
3451
+ var _props$visible = props.visible, visible = _props$visible === void 0 ? !0 : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? !0 : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps, _React$useContext = React$6.useContext(Context), contextMotion = _React$useContext.motion, supportMotion = isSupportTransition(props, contextMotion), nodeRef = useRef(), wrapperNodeRef = useRef();
3456
3452
  function getDomElement() {
3457
3453
  try {
3458
3454
  return nodeRef.current instanceof HTMLElement ? nodeRef.current : findDOMNode$1(wrapperNodeRef.current);
@@ -3461,7 +3457,7 @@ function genCSSMotion$1(config2) {
3461
3457
  }
3462
3458
  }
3463
3459
  __name(getDomElement, "getDomElement");
3464
- var _useStatus = useStatus$1(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray$1(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React$6.useRef(mergedVisible);
3460
+ var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray$1(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React$6.useRef(mergedVisible);
3465
3461
  mergedVisible && (renderedRef.current = !0);
3466
3462
  var setNodeRef = React$6.useCallback(function(node) {
3467
3463
  nodeRef.current = node, fillRef(ref, node);
@@ -3470,7 +3466,7 @@ function genCSSMotion$1(config2) {
3470
3466
  });
3471
3467
  if (!children)
3472
3468
  motionChildren = null;
3473
- else if (status === STATUS_NONE$1)
3469
+ else if (status === STATUS_NONE)
3474
3470
  mergedVisible ? motionChildren = children(_objectSpread2$1({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
3475
3471
  className: leavedClassName
3476
3472
  }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
@@ -3480,10 +3476,10 @@ function genCSSMotion$1(config2) {
3480
3476
  }), setNodeRef) : motionChildren = null;
3481
3477
  else {
3482
3478
  var statusSuffix;
3483
- statusStep === STEP_PREPARE$1 ? statusSuffix = "prepare" : isActive$1(statusStep) ? statusSuffix = "active" : statusStep === STEP_START$1 && (statusSuffix = "start");
3484
- var motionCls = getTransitionName$1(motionName, "".concat(status, "-").concat(statusSuffix));
3479
+ statusStep === STEP_PREPARE ? statusSuffix = "prepare" : isActive(statusStep) ? statusSuffix = "active" : statusStep === STEP_START && (statusSuffix = "start");
3480
+ var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
3485
3481
  motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
3486
- className: clsx(getTransitionName$1(motionName, status), _defineProperty$b(_defineProperty$b({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
3482
+ className: clsx(getTransitionName(motionName, status), _defineProperty$b(_defineProperty$b({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
3487
3483
  style: statusStyle
3488
3484
  }), setNodeRef);
3489
3485
  }
@@ -3493,16 +3489,16 @@ function genCSSMotion$1(config2) {
3493
3489
  ref: setNodeRef
3494
3490
  }));
3495
3491
  }
3496
- return /* @__PURE__ */ React$6.createElement(DomWrapper$2, {
3492
+ return /* @__PURE__ */ React$6.createElement(DomWrapper$1, {
3497
3493
  ref: wrapperNodeRef
3498
3494
  }, motionChildren);
3499
3495
  });
3500
3496
  return CSSMotion2.displayName = "CSSMotion", CSSMotion2;
3501
3497
  }
3502
- __name(genCSSMotion$1, "genCSSMotion$1");
3503
- const CSSMotion$1 = genCSSMotion$1(supportTransition$1);
3504
- var STATUS_ADD$1 = "add", STATUS_KEEP$1 = "keep", STATUS_REMOVE$1 = "remove", STATUS_REMOVED$1 = "removed";
3505
- function wrapKeyToObject$1(key) {
3498
+ __name(genCSSMotion, "genCSSMotion");
3499
+ const CSSMotion = genCSSMotion(supportTransition);
3500
+ var STATUS_ADD = "add", STATUS_KEEP = "keep", STATUS_REMOVE = "remove", STATUS_REMOVED = "removed";
3501
+ function wrapKeyToObject(key) {
3506
3502
  var keyObj;
3507
3503
  return key && _typeof$2(key) === "object" && "key" in key ? keyObj = key : keyObj = {
3508
3504
  key
@@ -3510,34 +3506,34 @@ function wrapKeyToObject$1(key) {
3510
3506
  key: String(keyObj.key)
3511
3507
  });
3512
3508
  }
3513
- __name(wrapKeyToObject$1, "wrapKeyToObject$1");
3514
- function parseKeys$1() {
3509
+ __name(wrapKeyToObject, "wrapKeyToObject");
3510
+ function parseKeys() {
3515
3511
  var keys4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
3516
- return keys4.map(wrapKeyToObject$1);
3512
+ return keys4.map(wrapKeyToObject);
3517
3513
  }
3518
- __name(parseKeys$1, "parseKeys$1");
3519
- function diffKeys$1() {
3520
- var prevKeys = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], currentKeys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], list = [], currentIndex = 0, currentLen = currentKeys.length, prevKeyObjects = parseKeys$1(prevKeys), currentKeyObjects = parseKeys$1(currentKeys);
3514
+ __name(parseKeys, "parseKeys");
3515
+ function diffKeys() {
3516
+ var prevKeys = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], currentKeys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], list = [], currentIndex = 0, currentLen = currentKeys.length, prevKeyObjects = parseKeys(prevKeys), currentKeyObjects = parseKeys(currentKeys);
3521
3517
  prevKeyObjects.forEach(function(keyObj) {
3522
3518
  for (var hit = !1, i = currentIndex; i < currentLen; i += 1) {
3523
3519
  var currentKeyObj = currentKeyObjects[i];
3524
3520
  if (currentKeyObj.key === keyObj.key) {
3525
3521
  currentIndex < i && (list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function(obj) {
3526
3522
  return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
3527
- status: STATUS_ADD$1
3523
+ status: STATUS_ADD
3528
3524
  });
3529
3525
  })), currentIndex = i), list.push(_objectSpread2$1(_objectSpread2$1({}, currentKeyObj), {}, {
3530
- status: STATUS_KEEP$1
3526
+ status: STATUS_KEEP
3531
3527
  })), currentIndex += 1, hit = !0;
3532
3528
  break;
3533
3529
  }
3534
3530
  }
3535
3531
  hit || list.push(_objectSpread2$1(_objectSpread2$1({}, keyObj), {}, {
3536
- status: STATUS_REMOVE$1
3532
+ status: STATUS_REMOVE
3537
3533
  }));
3538
3534
  }), currentIndex < currentLen && (list = list.concat(currentKeyObjects.slice(currentIndex).map(function(obj) {
3539
3535
  return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
3540
- status: STATUS_ADD$1
3536
+ status: STATUS_ADD
3541
3537
  });
3542
3538
  })));
3543
3539
  var keys4 = {};
@@ -3551,16 +3547,16 @@ function diffKeys$1() {
3551
3547
  return duplicatedKeys.forEach(function(matchKey) {
3552
3548
  list = list.filter(function(_ref2) {
3553
3549
  var key = _ref2.key, status = _ref2.status;
3554
- return key !== matchKey || status !== STATUS_REMOVE$1;
3550
+ return key !== matchKey || status !== STATUS_REMOVE;
3555
3551
  }), list.forEach(function(node) {
3556
- node.key === matchKey && (node.status = STATUS_KEEP$1);
3552
+ node.key === matchKey && (node.status = STATUS_KEEP);
3557
3553
  });
3558
3554
  }), list;
3559
3555
  }
3560
- __name(diffKeys$1, "diffKeys$1");
3561
- var _excluded$x = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$7 = ["status"], MOTION_PROP_NAMES$1 = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
3562
- function genCSSMotionList$1(transitionSupport) {
3563
- var CSSMotion2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion$1, CSSMotionList = /* @__PURE__ */ function(_React$Component) {
3556
+ __name(diffKeys, "diffKeys");
3557
+ var _excluded$w = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$6 = ["status"], MOTION_PROP_NAMES = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
3558
+ function genCSSMotionList(transitionSupport) {
3559
+ var CSSMotion$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion, CSSMotionList = /* @__PURE__ */ function(_React$Component) {
3564
3560
  _inherits$2(CSSMotionList2, _React$Component);
3565
3561
  var _super = _createSuper$2(CSSMotionList2);
3566
3562
  function CSSMotionList2() {
@@ -3573,26 +3569,26 @@ function genCSSMotionList$1(transitionSupport) {
3573
3569
  }), _defineProperty$b(_assertThisInitialized$2(_this), "removeKey", function(removeKey) {
3574
3570
  var keyEntities = _this.state.keyEntities, nextKeyEntities = keyEntities.map(function(entity) {
3575
3571
  return entity.key !== removeKey ? entity : _objectSpread2$1(_objectSpread2$1({}, entity), {}, {
3576
- status: STATUS_REMOVED$1
3572
+ status: STATUS_REMOVED
3577
3573
  });
3578
3574
  });
3579
3575
  return _this.setState({
3580
3576
  keyEntities: nextKeyEntities
3581
3577
  }), nextKeyEntities.filter(function(_ref) {
3582
3578
  var status = _ref.status;
3583
- return status !== STATUS_REMOVED$1;
3579
+ return status !== STATUS_REMOVED;
3584
3580
  }).length;
3585
3581
  }), _this;
3586
3582
  }
3587
3583
  return __name(CSSMotionList2, "CSSMotionList"), _createClass$2(CSSMotionList2, [{
3588
3584
  key: "render",
3589
3585
  value: /* @__PURE__ */ __name(function() {
3590
- var _this2 = this, keyEntities = this.state.keyEntities, _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties$2(_this$props, _excluded$x), Component = component || React$6.Fragment, motionProps = {};
3591
- return MOTION_PROP_NAMES$1.forEach(function(prop) {
3586
+ var _this2 = this, keyEntities = this.state.keyEntities, _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties$2(_this$props, _excluded$w), Component = component || React$6.Fragment, motionProps = {};
3587
+ return MOTION_PROP_NAMES.forEach(function(prop) {
3592
3588
  motionProps[prop] = restProps[prop], delete restProps[prop];
3593
3589
  }), delete restProps.keys, /* @__PURE__ */ React$6.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
3594
- var status = _ref2.status, eventProps = _objectWithoutProperties$2(_ref2, _excluded2$7), visible = status === STATUS_ADD$1 || status === STATUS_KEEP$1;
3595
- return /* @__PURE__ */ React$6.createElement(CSSMotion2, _extends$6({}, motionProps, {
3590
+ var status = _ref2.status, eventProps = _objectWithoutProperties$2(_ref2, _excluded2$6), visible = status === STATUS_ADD || status === STATUS_KEEP;
3591
+ return /* @__PURE__ */ React$6.createElement(CSSMotion$1, _extends$6({}, motionProps, {
3596
3592
  key: eventProps.key,
3597
3593
  visible,
3598
3594
  eventProps,
@@ -3614,14 +3610,14 @@ function genCSSMotionList$1(transitionSupport) {
3614
3610
  }], [{
3615
3611
  key: "getDerivedStateFromProps",
3616
3612
  value: /* @__PURE__ */ __name(function(_ref3, _ref4) {
3617
- var keys4 = _ref3.keys, keyEntities = _ref4.keyEntities, parsedKeyObjects = parseKeys$1(keys4), mixedKeyEntities = diffKeys$1(keyEntities, parsedKeyObjects);
3613
+ var keys4 = _ref3.keys, keyEntities = _ref4.keyEntities, parsedKeyObjects = parseKeys(keys4), mixedKeyEntities = diffKeys(keyEntities, parsedKeyObjects);
3618
3614
  return {
3619
3615
  keyEntities: mixedKeyEntities.filter(function(entity) {
3620
3616
  var prevEntity = keyEntities.find(function(_ref5) {
3621
3617
  var key = _ref5.key;
3622
3618
  return entity.key === key;
3623
3619
  });
3624
- return !(prevEntity && prevEntity.status === STATUS_REMOVED$1 && entity.status === STATUS_REMOVE$1);
3620
+ return !(prevEntity && prevEntity.status === STATUS_REMOVED && entity.status === STATUS_REMOVE);
3625
3621
  })
3626
3622
  };
3627
3623
  }, "getDerivedStateFromProps")
@@ -3631,8 +3627,8 @@ function genCSSMotionList$1(transitionSupport) {
3631
3627
  component: "div"
3632
3628
  }), CSSMotionList;
3633
3629
  }
3634
- __name(genCSSMotionList$1, "genCSSMotionList$1");
3635
- genCSSMotionList$1(supportTransition$1);
3630
+ __name(genCSSMotionList, "genCSSMotionList");
3631
+ genCSSMotionList(supportTransition);
3636
3632
  const MemoChildren = /* @__PURE__ */ React$6.memo(function(_ref) {
3637
3633
  var children = _ref.children;
3638
3634
  return children;
@@ -3726,7 +3722,7 @@ var sentinelStyle = {
3726
3722
  var elementOffset = offset(dialogRef.current);
3727
3723
  setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? "".concat(mousePosition.x - elementOffset.left, "px ").concat(mousePosition.y - elementOffset.top, "px") : "");
3728
3724
  }
3729
- return __name(onPrepare, "onPrepare"), /* @__PURE__ */ React$6.createElement(CSSMotion$1, {
3725
+ return __name(onPrepare, "onPrepare"), /* @__PURE__ */ React$6.createElement(CSSMotion, {
3730
3726
  visible,
3731
3727
  onVisibleChanged,
3732
3728
  onAppearPrepare: onPrepare,
@@ -3751,7 +3747,7 @@ var sentinelStyle = {
3751
3747
  Content.displayName = "Content";
3752
3748
  var Mask$1 = /* @__PURE__ */ __name(function(props) {
3753
3749
  var prefixCls = props.prefixCls, style2 = props.style, visible = props.visible, maskProps = props.maskProps, motionName = props.motionName, className = props.className;
3754
- return /* @__PURE__ */ React$6.createElement(CSSMotion$1, {
3750
+ return /* @__PURE__ */ React$6.createElement(CSSMotion, {
3755
3751
  key: "mask",
3756
3752
  visible,
3757
3753
  motionName,
@@ -5097,7 +5093,7 @@ function Confirm(props) {
5097
5093
  }
5098
5094
  __name(Confirm, "Confirm");
5099
5095
  function _arrayWithoutHoles$3(r) {
5100
- if (Array.isArray(r)) return _arrayLikeToArray$2(r);
5096
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
5101
5097
  }
5102
5098
  __name(_arrayWithoutHoles$3, "_arrayWithoutHoles$3");
5103
5099
  function _iterableToArray$3(r) {
@@ -5110,7 +5106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5110
5106
  }
5111
5107
  __name(_nonIterableSpread$3, "_nonIterableSpread$3");
5112
5108
  function _toConsumableArray$4(r) {
5113
- return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread$3();
5109
+ return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray(r) || _nonIterableSpread$3();
5114
5110
  }
5115
5111
  __name(_toConsumableArray$4, "_toConsumableArray$4");
5116
5112
  function omit$2(obj, fields) {
@@ -5487,7 +5483,7 @@ function _defineProperties$1(e2, r) {
5487
5483
  }
5488
5484
  __name(_defineProperties$1, "_defineProperties$1");
5489
5485
  function _createClass$1(e2, r, t2) {
5490
- return r && _defineProperties$1(e2.prototype, r), t2 && _defineProperties$1(e2, t2), Object.defineProperty(e2, "prototype", {
5486
+ return r && _defineProperties$1(e2.prototype, r), Object.defineProperty(e2, "prototype", {
5491
5487
  writable: !1
5492
5488
  }), e2;
5493
5489
  }
@@ -5551,7 +5547,7 @@ function _createSuper$1(t2) {
5551
5547
  };
5552
5548
  }
5553
5549
  __name(_createSuper$1, "_createSuper$1");
5554
- var DomWrapper$1 = /* @__PURE__ */ function(_React$Component) {
5550
+ var DomWrapper = /* @__PURE__ */ function(_React$Component) {
5555
5551
  _inherits$1(DomWrapper2, _React$Component);
5556
5552
  var _super = _createSuper$1(DomWrapper2);
5557
5553
  function DomWrapper2() {
@@ -5569,490 +5565,81 @@ function SingleObserver(props, ref) {
5569
5565
  width: -1,
5570
5566
  height: -1,
5571
5567
  offsetWidth: -1,
5572
- offsetHeight: -1
5573
- }), canRef = !isRenderProps && /* @__PURE__ */ React$6.isValidElement(mergedChildren) && supportRef(mergedChildren), originRef = canRef ? mergedChildren.ref : null, mergedRef = useComposeRef(originRef, elementRef), getDom = /* @__PURE__ */ __name(function() {
5574
- var _elementRef$current;
5575
- return findDOMNode$1(elementRef.current) || // Support `nativeElement` format
5576
- (elementRef.current && _typeof$3(elementRef.current) === "object" ? findDOMNode$1((_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 ? void 0 : _elementRef$current.nativeElement) : null) || findDOMNode$1(wrapperRef.current);
5577
- }, "getDom2");
5578
- React$6.useImperativeHandle(ref, function() {
5579
- return getDom();
5580
- });
5581
- var propsRef = React$6.useRef(props);
5582
- propsRef.current = props;
5583
- var onInternalResize = React$6.useCallback(function(target) {
5584
- var _propsRef$current = propsRef.current, onResize2 = _propsRef$current.onResize, data = _propsRef$current.data, _target$getBoundingCl = target.getBoundingClientRect(), width2 = _target$getBoundingCl.width, height2 = _target$getBoundingCl.height, offsetWidth = target.offsetWidth, offsetHeight = target.offsetHeight, fixedWidth = Math.floor(width2), fixedHeight = Math.floor(height2);
5585
- if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
5586
- var size = {
5587
- width: fixedWidth,
5588
- height: fixedHeight,
5589
- offsetWidth,
5590
- offsetHeight
5591
- };
5592
- sizeRef.current = size;
5593
- var mergedOffsetWidth = offsetWidth === Math.round(width2) ? width2 : offsetWidth, mergedOffsetHeight = offsetHeight === Math.round(height2) ? height2 : offsetHeight, sizeInfo = _objectSpread2$2(_objectSpread2$2({}, size), {}, {
5594
- offsetWidth: mergedOffsetWidth,
5595
- offsetHeight: mergedOffsetHeight
5596
- });
5597
- onCollectionResize == null || onCollectionResize(sizeInfo, target, data), onResize2 && Promise.resolve().then(function() {
5598
- onResize2(sizeInfo, target);
5599
- });
5600
- }
5601
- }, []);
5602
- return React$6.useEffect(function() {
5603
- var currentElement = getDom();
5604
- return currentElement && !disabled && observe(currentElement, onInternalResize), function() {
5605
- return unobserve(currentElement, onInternalResize);
5606
- };
5607
- }, [elementRef.current, disabled]), /* @__PURE__ */ React$6.createElement(DomWrapper$1, {
5608
- ref: wrapperRef
5609
- }, canRef ? /* @__PURE__ */ React$6.cloneElement(mergedChildren, {
5610
- ref: mergedRef
5611
- }) : mergedChildren);
5612
- }
5613
- __name(SingleObserver, "SingleObserver");
5614
- var RefSingleObserver = /* @__PURE__ */ React$6.forwardRef(SingleObserver), INTERNAL_PREFIX_KEY = "rc-observer-key";
5615
- function ResizeObserver$1(props, ref) {
5616
- var children = props.children, childNodes = typeof children == "function" ? [children] : toArray$3(children);
5617
- return childNodes.map(function(child, index2) {
5618
- var key = (child == null ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index2);
5619
- return /* @__PURE__ */ React$6.createElement(RefSingleObserver, _extends$5({}, props, {
5620
- key,
5621
- ref: index2 === 0 ? ref : void 0
5622
- }), child);
5623
- });
5624
- }
5625
- __name(ResizeObserver$1, "ResizeObserver$1");
5626
- var RefResizeObserver = /* @__PURE__ */ React$6.forwardRef(ResizeObserver$1);
5627
- RefResizeObserver.Collection = Collection;
5628
- function getRoot(ele) {
5629
- var _ele$getRootNode;
5630
- return ele == null || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);
5631
- }
5632
- __name(getRoot, "getRoot");
5633
- function inShadow(ele) {
5634
- return getRoot(ele) instanceof ShadowRoot;
5635
- }
5636
- __name(inShadow, "inShadow");
5637
- function getShadowRoot(ele) {
5638
- return inShadow(ele) ? getRoot(ele) : null;
5639
- }
5640
- __name(getShadowRoot, "getShadowRoot");
5641
- const isMobile = /* @__PURE__ */ __name(function() {
5642
- if (typeof navigator > "u" || typeof window > "u")
5643
- return !1;
5644
- var agent = navigator.userAgent || navigator.vendor || window.opera;
5645
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent == null ? void 0 : agent.substr(0, 4));
5646
- }, "isMobile");
5647
- function _objectWithoutPropertiesLoose$3(r, e2) {
5648
- if (r == null) return {};
5649
- var t2 = {};
5650
- for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
5651
- if (e2.indexOf(n2) >= 0) continue;
5652
- t2[n2] = r[n2];
5653
- }
5654
- return t2;
5655
- }
5656
- __name(_objectWithoutPropertiesLoose$3, "_objectWithoutPropertiesLoose$3");
5657
- function _objectWithoutProperties$1(e2, t2) {
5658
- if (e2 == null) return {};
5659
- var o, r, i = _objectWithoutPropertiesLoose$3(e2, t2);
5660
- if (Object.getOwnPropertySymbols) {
5661
- var n2 = Object.getOwnPropertySymbols(e2);
5662
- for (r = 0; r < n2.length; r++) o = n2[r], t2.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e2, o) && (i[o] = e2[o]);
5663
- }
5664
- return i;
5665
- }
5666
- __name(_objectWithoutProperties$1, "_objectWithoutProperties$1");
5667
- var Context = /* @__PURE__ */ React$6.createContext({}), DomWrapper = /* @__PURE__ */ function(_React$Component) {
5668
- _inherits$1(DomWrapper2, _React$Component);
5669
- var _super = _createSuper$1(DomWrapper2);
5670
- function DomWrapper2() {
5671
- return _classCallCheck$1(this, DomWrapper2), _super.apply(this, arguments);
5672
- }
5673
- return __name(DomWrapper2, "DomWrapper"), _createClass$1(DomWrapper2, [{
5674
- key: "render",
5675
- value: /* @__PURE__ */ __name(function() {
5676
- return this.props.children;
5677
- }, "render")
5678
- }]), DomWrapper2;
5679
- }(React$6.Component), STATUS_NONE = "none", STATUS_APPEAR = "appear", STATUS_ENTER = "enter", STATUS_LEAVE = "leave", STEP_NONE = "none", STEP_PREPARE = "prepare", STEP_START = "start", STEP_ACTIVE = "active", STEP_ACTIVATED = "end", STEP_PREPARED = "prepared";
5680
- function makePrefixMap(styleProp, eventName) {
5681
- var prefixes2 = {};
5682
- return prefixes2[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes2["Webkit".concat(styleProp)] = "webkit".concat(eventName), prefixes2["Moz".concat(styleProp)] = "moz".concat(eventName), prefixes2["ms".concat(styleProp)] = "MS".concat(eventName), prefixes2["O".concat(styleProp)] = "o".concat(eventName.toLowerCase()), prefixes2;
5683
- }
5684
- __name(makePrefixMap, "makePrefixMap");
5685
- function getVendorPrefixes(domSupport, win) {
5686
- var prefixes2 = {
5687
- animationend: makePrefixMap("Animation", "AnimationEnd"),
5688
- transitionend: makePrefixMap("Transition", "TransitionEnd")
5689
- };
5690
- return domSupport && ("AnimationEvent" in win || delete prefixes2.animationend.animation, "TransitionEvent" in win || delete prefixes2.transitionend.transition), prefixes2;
5691
- }
5692
- __name(getVendorPrefixes, "getVendorPrefixes");
5693
- var vendorPrefixes = getVendorPrefixes(canUseDom(), typeof window < "u" ? window : {}), style = {};
5694
- if (canUseDom()) {
5695
- var _document$createEleme = document.createElement("div");
5696
- style = _document$createEleme.style;
5697
- }
5698
- var prefixedEventNames = {};
5699
- function getVendorPrefixedEventName(eventName) {
5700
- if (prefixedEventNames[eventName])
5701
- return prefixedEventNames[eventName];
5702
- var prefixMap = vendorPrefixes[eventName];
5703
- if (prefixMap)
5704
- for (var stylePropList = Object.keys(prefixMap), len = stylePropList.length, i = 0; i < len; i += 1) {
5705
- var styleProp = stylePropList[i];
5706
- if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style)
5707
- return prefixedEventNames[eventName] = prefixMap[styleProp], prefixedEventNames[eventName];
5708
- }
5709
- return "";
5710
- }
5711
- __name(getVendorPrefixedEventName, "getVendorPrefixedEventName");
5712
- var internalAnimationEndName = getVendorPrefixedEventName("animationend"), internalTransitionEndName = getVendorPrefixedEventName("transitionend"), supportTransition = !!(internalAnimationEndName && internalTransitionEndName), animationEndName = internalAnimationEndName || "animationend", transitionEndName = internalTransitionEndName || "transitionend";
5713
- function getTransitionName(transitionName, transitionType) {
5714
- if (!transitionName) return null;
5715
- if (_typeof$3(transitionName) === "object") {
5716
- var type2 = transitionType.replace(/-\w/g, function(match2) {
5717
- return match2[1].toUpperCase();
5718
- });
5719
- return transitionName[type2];
5720
- }
5721
- return "".concat(transitionName, "-").concat(transitionType);
5722
- }
5723
- __name(getTransitionName, "getTransitionName");
5724
- const useDomMotionEvents = /* @__PURE__ */ __name(function(onInternalMotionEnd) {
5725
- var cacheElementRef = useRef();
5726
- function removeMotionEvents(element2) {
5727
- element2 && (element2.removeEventListener(transitionEndName, onInternalMotionEnd), element2.removeEventListener(animationEndName, onInternalMotionEnd));
5728
- }
5729
- __name(removeMotionEvents, "removeMotionEvents");
5730
- function patchMotionEvents(element2) {
5731
- cacheElementRef.current && cacheElementRef.current !== element2 && removeMotionEvents(cacheElementRef.current), element2 && element2 !== cacheElementRef.current && (element2.addEventListener(transitionEndName, onInternalMotionEnd), element2.addEventListener(animationEndName, onInternalMotionEnd), cacheElementRef.current = element2);
5732
- }
5733
- return __name(patchMotionEvents, "patchMotionEvents"), React$6.useEffect(function() {
5734
- return function() {
5735
- removeMotionEvents(cacheElementRef.current);
5736
- };
5737
- }, []), [patchMotionEvents, removeMotionEvents];
5738
- }, "useDomMotionEvents");
5739
- var useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect$2 : useEffect;
5740
- const useNextFrame = /* @__PURE__ */ __name(function() {
5741
- var nextFrameRef = React$6.useRef(null);
5742
- function cancelNextFrame() {
5743
- wrapperRaf.cancel(nextFrameRef.current);
5744
- }
5745
- __name(cancelNextFrame, "cancelNextFrame");
5746
- function nextFrame(callback) {
5747
- var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
5748
- cancelNextFrame();
5749
- var nextFrameId = wrapperRaf(function() {
5750
- delay <= 1 ? callback({
5751
- isCanceled: /* @__PURE__ */ __name(function() {
5752
- return nextFrameId !== nextFrameRef.current;
5753
- }, "isCanceled")
5754
- }) : nextFrame(callback, delay - 1);
5755
- });
5756
- nextFrameRef.current = nextFrameId;
5757
- }
5758
- return __name(nextFrame, "nextFrame"), React$6.useEffect(function() {
5759
- return function() {
5760
- cancelNextFrame();
5761
- };
5762
- }, []), [nextFrame, cancelNextFrame];
5763
- }, "useNextFrame");
5764
- var FULL_STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED], SIMPLE_STEP_QUEUE = [STEP_PREPARE, STEP_PREPARED], SkipStep = !1, DoStep = !0;
5765
- function isActive(step) {
5766
- return step === STEP_ACTIVE || step === STEP_ACTIVATED;
5767
- }
5768
- __name(isActive, "isActive");
5769
- const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callback) {
5770
- var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray$2(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray$2(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
5771
- function startQueue() {
5772
- setStep(STEP_PREPARE, !0);
5773
- }
5774
- __name(startQueue, "startQueue");
5775
- var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
5776
- return useIsomorphicLayoutEffect(function() {
5777
- if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
5778
- var index2 = STEP_QUEUE.indexOf(step), nextStep = STEP_QUEUE[index2 + 1], result = callback(step);
5779
- result === SkipStep ? setStep(nextStep, !0) : nextStep && nextFrame(function(info) {
5780
- function doNext() {
5781
- info.isCanceled() || setStep(nextStep, !0);
5782
- }
5783
- __name(doNext, "doNext"), result === !0 ? doNext() : Promise.resolve(result).then(doNext);
5784
- });
5785
- }
5786
- }, [status, step]), React$6.useEffect(function() {
5787
- return function() {
5788
- cancelNextFrame();
5789
- };
5790
- }, []), [startQueue, step];
5791
- }, "useStepQueue");
5792
- function useStatus(supportMotion, visible, getElement, _ref) {
5793
- var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray$2(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useState3 = useSafeState(STATUS_NONE), _useState4 = _slicedToArray$2(_useState3, 2), status = _useState4[0], setStatus = _useState4[1], _useState5 = useSafeState(null), _useState6 = _slicedToArray$2(_useState5, 2), style2 = _useState6[0], setStyle = _useState6[1], mountedRef = useRef(!1), deadlineRef = useRef(null);
5794
- function getDomElement() {
5795
- return getElement();
5796
- }
5797
- __name(getDomElement, "getDomElement");
5798
- var activeRef = useRef(!1);
5799
- function updateMotionEndStatus() {
5800
- setStatus(STATUS_NONE, !0), setStyle(null, !0);
5801
- }
5802
- __name(updateMotionEndStatus, "updateMotionEndStatus");
5803
- var onInternalMotionEnd = useEvent(function(event) {
5804
- if (status !== STATUS_NONE) {
5805
- var element2 = getDomElement();
5806
- if (!(event && !event.deadline && event.target !== element2)) {
5807
- var currentActive = activeRef.current, canEnd;
5808
- status === STATUS_APPEAR && currentActive ? canEnd = onAppearEnd == null ? void 0 : onAppearEnd(element2, event) : status === STATUS_ENTER && currentActive ? canEnd = onEnterEnd == null ? void 0 : onEnterEnd(element2, event) : status === STATUS_LEAVE && currentActive && (canEnd = onLeaveEnd == null ? void 0 : onLeaveEnd(element2, event)), currentActive && canEnd !== !1 && updateMotionEndStatus();
5809
- }
5810
- }
5811
- }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray$2(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
5812
- switch (targetStatus) {
5813
- case STATUS_APPEAR:
5814
- return _defineProperty$c(_defineProperty$c(_defineProperty$c({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
5815
- case STATUS_ENTER:
5816
- return _defineProperty$c(_defineProperty$c(_defineProperty$c({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
5817
- case STATUS_LEAVE:
5818
- return _defineProperty$c(_defineProperty$c(_defineProperty$c({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
5819
- default:
5820
- return {};
5821
- }
5822
- }, "getEventHandlers"), eventHandlers = React$6.useMemo(function() {
5823
- return getEventHandlers(status);
5824
- }, [status]), _useStepQueue = useStepQueue(status, !supportMotion, function(newStep) {
5825
- if (newStep === STEP_PREPARE) {
5826
- var onPrepare = eventHandlers[STEP_PREPARE];
5827
- return onPrepare ? onPrepare(getDomElement()) : SkipStep;
5828
- }
5829
- if (step in eventHandlers) {
5830
- var _eventHandlers$step;
5831
- setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
5832
- }
5833
- return step === STEP_ACTIVE && status !== STATUS_NONE && (patchMotionEvents(getDomElement()), motionDeadline > 0 && (clearTimeout(deadlineRef.current), deadlineRef.current = setTimeout(function() {
5834
- onInternalMotionEnd({
5835
- deadline: !0
5836
- });
5837
- }, motionDeadline))), step === STEP_PREPARED && updateMotionEndStatus(), DoStep;
5838
- }), _useStepQueue2 = _slicedToArray$2(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
5839
- activeRef.current = active, useIsomorphicLayoutEffect(function() {
5840
- setAsyncVisible(visible);
5841
- var isMounted = mountedRef.current;
5842
- mountedRef.current = !0;
5843
- var nextStatus;
5844
- !isMounted && visible && motionAppear && (nextStatus = STATUS_APPEAR), isMounted && visible && motionEnter && (nextStatus = STATUS_ENTER), (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) && (nextStatus = STATUS_LEAVE);
5845
- var nextEventHandlers = getEventHandlers(nextStatus);
5846
- nextStatus && (supportMotion || nextEventHandlers[STEP_PREPARE]) ? (setStatus(nextStatus), startStep()) : setStatus(STATUS_NONE);
5847
- }, [visible]), useEffect(function() {
5848
- // Cancel appear
5849
- (status === STATUS_APPEAR && !motionAppear || // Cancel enter
5850
- status === STATUS_ENTER && !motionEnter || // Cancel leave
5851
- status === STATUS_LEAVE && !motionLeave) && setStatus(STATUS_NONE);
5852
- }, [motionAppear, motionEnter, motionLeave]), useEffect(function() {
5853
- return function() {
5854
- mountedRef.current = !1, clearTimeout(deadlineRef.current);
5855
- };
5856
- }, []);
5857
- var firstMountChangeRef = React$6.useRef(!1);
5858
- useEffect(function() {
5859
- asyncVisible && (firstMountChangeRef.current = !0), asyncVisible !== void 0 && status === STATUS_NONE && ((firstMountChangeRef.current || asyncVisible) && (onVisibleChanged == null || onVisibleChanged(asyncVisible)), firstMountChangeRef.current = !0);
5860
- }, [asyncVisible, status]);
5861
- var mergedStyle = style2;
5862
- return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2$2({
5863
- transition: "none"
5864
- }, mergedStyle)), [status, step, mergedStyle, asyncVisible != null ? asyncVisible : visible];
5865
- }
5866
- __name(useStatus, "useStatus");
5867
- function genCSSMotion(config2) {
5868
- var transitionSupport = config2;
5869
- _typeof$3(config2) === "object" && (transitionSupport = config2.transitionSupport);
5870
- function isSupportTransition(props, contextMotion) {
5871
- return !!(props.motionName && transitionSupport && contextMotion !== !1);
5872
- }
5873
- __name(isSupportTransition, "isSupportTransition");
5874
- var CSSMotion2 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
5875
- var _props$visible = props.visible, visible = _props$visible === void 0 ? !0 : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? !0 : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps, _React$useContext = React$6.useContext(Context), contextMotion = _React$useContext.motion, supportMotion = isSupportTransition(props, contextMotion), nodeRef = useRef(), wrapperNodeRef = useRef();
5876
- function getDomElement() {
5877
- try {
5878
- return nodeRef.current instanceof HTMLElement ? nodeRef.current : findDOMNode$1(wrapperNodeRef.current);
5879
- } catch {
5880
- return null;
5881
- }
5882
- }
5883
- __name(getDomElement, "getDomElement");
5884
- var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray$2(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React$6.useRef(mergedVisible);
5885
- mergedVisible && (renderedRef.current = !0);
5886
- var setNodeRef = React$6.useCallback(function(node) {
5887
- nodeRef.current = node, fillRef(ref, node);
5888
- }, [ref]), motionChildren, mergedProps = _objectSpread2$2(_objectSpread2$2({}, eventProps), {}, {
5889
- visible
5890
- });
5891
- if (!children)
5892
- motionChildren = null;
5893
- else if (status === STATUS_NONE)
5894
- mergedVisible ? motionChildren = children(_objectSpread2$2({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2$2(_objectSpread2$2({}, mergedProps), {}, {
5895
- className: leavedClassName
5896
- }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2$2(_objectSpread2$2({}, mergedProps), {}, {
5897
- style: {
5898
- display: "none"
5899
- }
5900
- }), setNodeRef) : motionChildren = null;
5901
- else {
5902
- var statusSuffix;
5903
- statusStep === STEP_PREPARE ? statusSuffix = "prepare" : isActive(statusStep) ? statusSuffix = "active" : statusStep === STEP_START && (statusSuffix = "start");
5904
- var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
5905
- motionChildren = children(_objectSpread2$2(_objectSpread2$2({}, mergedProps), {}, {
5906
- className: clsx(getTransitionName(motionName, status), _defineProperty$c(_defineProperty$c({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
5907
- style: statusStyle
5908
- }), setNodeRef);
5909
- }
5910
- if (/* @__PURE__ */ React$6.isValidElement(motionChildren) && supportRef(motionChildren)) {
5911
- var _ref = motionChildren, originNodeRef = _ref.ref;
5912
- originNodeRef || (motionChildren = /* @__PURE__ */ React$6.cloneElement(motionChildren, {
5913
- ref: setNodeRef
5914
- }));
5915
- }
5916
- return /* @__PURE__ */ React$6.createElement(DomWrapper, {
5917
- ref: wrapperNodeRef
5918
- }, motionChildren);
5568
+ offsetHeight: -1
5569
+ }), canRef = !isRenderProps && /* @__PURE__ */ React$6.isValidElement(mergedChildren) && supportRef(mergedChildren), originRef = canRef ? mergedChildren.ref : null, mergedRef = useComposeRef(originRef, elementRef), getDom = /* @__PURE__ */ __name(function() {
5570
+ var _elementRef$current;
5571
+ return findDOMNode$1(elementRef.current) || // Support `nativeElement` format
5572
+ (elementRef.current && _typeof$3(elementRef.current) === "object" ? findDOMNode$1((_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 ? void 0 : _elementRef$current.nativeElement) : null) || findDOMNode$1(wrapperRef.current);
5573
+ }, "getDom2");
5574
+ React$6.useImperativeHandle(ref, function() {
5575
+ return getDom();
5919
5576
  });
5920
- return CSSMotion2.displayName = "CSSMotion", CSSMotion2;
5577
+ var propsRef = React$6.useRef(props);
5578
+ propsRef.current = props;
5579
+ var onInternalResize = React$6.useCallback(function(target) {
5580
+ var _propsRef$current = propsRef.current, onResize2 = _propsRef$current.onResize, data = _propsRef$current.data, _target$getBoundingCl = target.getBoundingClientRect(), width2 = _target$getBoundingCl.width, height2 = _target$getBoundingCl.height, offsetWidth = target.offsetWidth, offsetHeight = target.offsetHeight, fixedWidth = Math.floor(width2), fixedHeight = Math.floor(height2);
5581
+ if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
5582
+ var size = {
5583
+ width: fixedWidth,
5584
+ height: fixedHeight,
5585
+ offsetWidth,
5586
+ offsetHeight
5587
+ };
5588
+ sizeRef.current = size;
5589
+ var mergedOffsetWidth = offsetWidth === Math.round(width2) ? width2 : offsetWidth, mergedOffsetHeight = offsetHeight === Math.round(height2) ? height2 : offsetHeight, sizeInfo = _objectSpread2$2(_objectSpread2$2({}, size), {}, {
5590
+ offsetWidth: mergedOffsetWidth,
5591
+ offsetHeight: mergedOffsetHeight
5592
+ });
5593
+ onCollectionResize == null || onCollectionResize(sizeInfo, target, data), onResize2 && Promise.resolve().then(function() {
5594
+ onResize2(sizeInfo, target);
5595
+ });
5596
+ }
5597
+ }, []);
5598
+ return React$6.useEffect(function() {
5599
+ var currentElement = getDom();
5600
+ return currentElement && !disabled && observe(currentElement, onInternalResize), function() {
5601
+ return unobserve(currentElement, onInternalResize);
5602
+ };
5603
+ }, [elementRef.current, disabled]), /* @__PURE__ */ React$6.createElement(DomWrapper, {
5604
+ ref: wrapperRef
5605
+ }, canRef ? /* @__PURE__ */ React$6.cloneElement(mergedChildren, {
5606
+ ref: mergedRef
5607
+ }) : mergedChildren);
5921
5608
  }
5922
- __name(genCSSMotion, "genCSSMotion");
5923
- const CSSMotion = genCSSMotion(supportTransition);
5924
- var STATUS_ADD = "add", STATUS_KEEP = "keep", STATUS_REMOVE = "remove", STATUS_REMOVED = "removed";
5925
- function wrapKeyToObject(key) {
5926
- var keyObj;
5927
- return key && _typeof$3(key) === "object" && "key" in key ? keyObj = key : keyObj = {
5928
- key
5929
- }, _objectSpread2$2(_objectSpread2$2({}, keyObj), {}, {
5930
- key: String(keyObj.key)
5609
+ __name(SingleObserver, "SingleObserver");
5610
+ var RefSingleObserver = /* @__PURE__ */ React$6.forwardRef(SingleObserver), INTERNAL_PREFIX_KEY = "rc-observer-key";
5611
+ function ResizeObserver$1(props, ref) {
5612
+ var children = props.children, childNodes = typeof children == "function" ? [children] : toArray$3(children);
5613
+ return childNodes.map(function(child, index2) {
5614
+ var key = (child == null ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index2);
5615
+ return /* @__PURE__ */ React$6.createElement(RefSingleObserver, _extends$5({}, props, {
5616
+ key,
5617
+ ref: index2 === 0 ? ref : void 0
5618
+ }), child);
5931
5619
  });
5932
5620
  }
5933
- __name(wrapKeyToObject, "wrapKeyToObject");
5934
- function parseKeys() {
5935
- var keys4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
5936
- return keys4.map(wrapKeyToObject);
5621
+ __name(ResizeObserver$1, "ResizeObserver$1");
5622
+ var RefResizeObserver = /* @__PURE__ */ React$6.forwardRef(ResizeObserver$1);
5623
+ RefResizeObserver.Collection = Collection;
5624
+ function getRoot(ele) {
5625
+ var _ele$getRootNode;
5626
+ return ele == null || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);
5937
5627
  }
5938
- __name(parseKeys, "parseKeys");
5939
- function diffKeys() {
5940
- var prevKeys = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], currentKeys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], list = [], currentIndex = 0, currentLen = currentKeys.length, prevKeyObjects = parseKeys(prevKeys), currentKeyObjects = parseKeys(currentKeys);
5941
- prevKeyObjects.forEach(function(keyObj) {
5942
- for (var hit = !1, i = currentIndex; i < currentLen; i += 1) {
5943
- var currentKeyObj = currentKeyObjects[i];
5944
- if (currentKeyObj.key === keyObj.key) {
5945
- currentIndex < i && (list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function(obj) {
5946
- return _objectSpread2$2(_objectSpread2$2({}, obj), {}, {
5947
- status: STATUS_ADD
5948
- });
5949
- })), currentIndex = i), list.push(_objectSpread2$2(_objectSpread2$2({}, currentKeyObj), {}, {
5950
- status: STATUS_KEEP
5951
- })), currentIndex += 1, hit = !0;
5952
- break;
5953
- }
5954
- }
5955
- hit || list.push(_objectSpread2$2(_objectSpread2$2({}, keyObj), {}, {
5956
- status: STATUS_REMOVE
5957
- }));
5958
- }), currentIndex < currentLen && (list = list.concat(currentKeyObjects.slice(currentIndex).map(function(obj) {
5959
- return _objectSpread2$2(_objectSpread2$2({}, obj), {}, {
5960
- status: STATUS_ADD
5961
- });
5962
- })));
5963
- var keys4 = {};
5964
- list.forEach(function(_ref) {
5965
- var key = _ref.key;
5966
- keys4[key] = (keys4[key] || 0) + 1;
5967
- });
5968
- var duplicatedKeys = Object.keys(keys4).filter(function(key) {
5969
- return keys4[key] > 1;
5970
- });
5971
- return duplicatedKeys.forEach(function(matchKey) {
5972
- list = list.filter(function(_ref2) {
5973
- var key = _ref2.key, status = _ref2.status;
5974
- return key !== matchKey || status !== STATUS_REMOVE;
5975
- }), list.forEach(function(node) {
5976
- node.key === matchKey && (node.status = STATUS_KEEP);
5977
- });
5978
- }), list;
5628
+ __name(getRoot, "getRoot");
5629
+ function inShadow(ele) {
5630
+ return getRoot(ele) instanceof ShadowRoot;
5979
5631
  }
5980
- __name(diffKeys, "diffKeys");
5981
- var _excluded$w = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$6 = ["status"], MOTION_PROP_NAMES = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
5982
- function genCSSMotionList(transitionSupport) {
5983
- var CSSMotion$12 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion, CSSMotionList = /* @__PURE__ */ function(_React$Component) {
5984
- _inherits$1(CSSMotionList2, _React$Component);
5985
- var _super = _createSuper$1(CSSMotionList2);
5986
- function CSSMotionList2() {
5987
- var _this;
5988
- _classCallCheck$1(this, CSSMotionList2);
5989
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
5990
- args[_key] = arguments[_key];
5991
- return _this = _super.call.apply(_super, [this].concat(args)), _defineProperty$c(_assertThisInitialized$1(_this), "state", {
5992
- keyEntities: []
5993
- }), _defineProperty$c(_assertThisInitialized$1(_this), "removeKey", function(removeKey) {
5994
- var keyEntities = _this.state.keyEntities, nextKeyEntities = keyEntities.map(function(entity) {
5995
- return entity.key !== removeKey ? entity : _objectSpread2$2(_objectSpread2$2({}, entity), {}, {
5996
- status: STATUS_REMOVED
5997
- });
5998
- });
5999
- return _this.setState({
6000
- keyEntities: nextKeyEntities
6001
- }), nextKeyEntities.filter(function(_ref) {
6002
- var status = _ref.status;
6003
- return status !== STATUS_REMOVED;
6004
- }).length;
6005
- }), _this;
6006
- }
6007
- return __name(CSSMotionList2, "CSSMotionList"), _createClass$1(CSSMotionList2, [{
6008
- key: "render",
6009
- value: /* @__PURE__ */ __name(function() {
6010
- var _this2 = this, keyEntities = this.state.keyEntities, _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties$1(_this$props, _excluded$w), Component = component || React$6.Fragment, motionProps = {};
6011
- return MOTION_PROP_NAMES.forEach(function(prop) {
6012
- motionProps[prop] = restProps[prop], delete restProps[prop];
6013
- }), delete restProps.keys, /* @__PURE__ */ React$6.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
6014
- var status = _ref2.status, eventProps = _objectWithoutProperties$1(_ref2, _excluded2$6), visible = status === STATUS_ADD || status === STATUS_KEEP;
6015
- return /* @__PURE__ */ React$6.createElement(CSSMotion$12, _extends$5({}, motionProps, {
6016
- key: eventProps.key,
6017
- visible,
6018
- eventProps,
6019
- onVisibleChanged: /* @__PURE__ */ __name(function(changedVisible) {
6020
- if (_onVisibleChanged == null || _onVisibleChanged(changedVisible, {
6021
- key: eventProps.key
6022
- }), !changedVisible) {
6023
- var restKeysCount = _this2.removeKey(eventProps.key);
6024
- restKeysCount === 0 && onAllRemoved && onAllRemoved();
6025
- }
6026
- }, "onVisibleChanged")
6027
- }), function(props, ref) {
6028
- return children(_objectSpread2$2(_objectSpread2$2({}, props), {}, {
6029
- index: index2
6030
- }), ref);
6031
- });
6032
- }));
6033
- }, "render")
6034
- }], [{
6035
- key: "getDerivedStateFromProps",
6036
- value: /* @__PURE__ */ __name(function(_ref3, _ref4) {
6037
- var keys4 = _ref3.keys, keyEntities = _ref4.keyEntities, parsedKeyObjects = parseKeys(keys4), mixedKeyEntities = diffKeys(keyEntities, parsedKeyObjects);
6038
- return {
6039
- keyEntities: mixedKeyEntities.filter(function(entity) {
6040
- var prevEntity = keyEntities.find(function(_ref5) {
6041
- var key = _ref5.key;
6042
- return entity.key === key;
6043
- });
6044
- return !(prevEntity && prevEntity.status === STATUS_REMOVED && entity.status === STATUS_REMOVE);
6045
- })
6046
- };
6047
- }, "getDerivedStateFromProps")
6048
- }]), CSSMotionList2;
6049
- }(React$6.Component);
6050
- return _defineProperty$c(CSSMotionList, "defaultProps", {
6051
- component: "div"
6052
- }), CSSMotionList;
5632
+ __name(inShadow, "inShadow");
5633
+ function getShadowRoot(ele) {
5634
+ return inShadow(ele) ? getRoot(ele) : null;
6053
5635
  }
6054
- __name(genCSSMotionList, "genCSSMotionList");
6055
- genCSSMotionList(supportTransition);
5636
+ __name(getShadowRoot, "getShadowRoot");
5637
+ const isMobile = /* @__PURE__ */ __name(function() {
5638
+ if (typeof navigator > "u" || typeof window > "u")
5639
+ return !1;
5640
+ var agent = navigator.userAgent || navigator.vendor || window.opera;
5641
+ return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent == null ? void 0 : agent.substr(0, 4));
5642
+ }, "isMobile");
6056
5643
  function Arrow(props) {
6057
5644
  var prefixCls = props.prefixCls, align = props.align, arrow = props.arrow, arrowPos = props.arrowPos, _ref = arrow || {}, className = _ref.className, content = _ref.content, _arrowPos$x = arrowPos.x, x = _arrowPos$x === void 0 ? 0 : _arrowPos$x, _arrowPos$y = arrowPos.y, y = _arrowPos$y === void 0 ? 0 : _arrowPos$y, arrowRef = React$6.useRef();
6058
5645
  if (!align || !align.points)
@@ -6073,7 +5660,7 @@ function Arrow(props) {
6073
5660
  __name(Arrow, "Arrow");
6074
5661
  function Mask2(props) {
6075
5662
  var prefixCls = props.prefixCls, open = props.open, zIndex = props.zIndex, mask = props.mask, motion = props.motion;
6076
- return mask ? /* @__PURE__ */ React$6.createElement(CSSMotion, _extends$7({}, motion, {
5663
+ return mask ? /* @__PURE__ */ React$6.createElement(CSSMotion, _extends$6({}, motion, {
6077
5664
  motionAppear: !0,
6078
5665
  visible: open,
6079
5666
  removeOnLeave: !0
@@ -6094,7 +5681,7 @@ var PopupContent = /* @__PURE__ */ React$6.memo(function(_ref) {
6094
5681
  }, function(_, next) {
6095
5682
  return next.cache;
6096
5683
  }), Popup$3 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
6097
- var popup2 = props.popup, className = props.className, prefixCls = props.prefixCls, style2 = props.style, target = props.target, _onVisibleChanged = props.onVisibleChanged, open = props.open, keepDom = props.keepDom, fresh = props.fresh, onClick = props.onClick, mask = props.mask, arrow = props.arrow, arrowPos = props.arrowPos, align = props.align, motion = props.motion, maskMotion = props.maskMotion, forceRender = props.forceRender, getPopupContainer = props.getPopupContainer, autoDestroy = props.autoDestroy, Portal2 = props.portal, zIndex = props.zIndex, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onPointerEnter = props.onPointerEnter, ready = props.ready, offsetX = props.offsetX, offsetY = props.offsetY, offsetR = props.offsetR, offsetB = props.offsetB, onAlign = props.onAlign, onPrepare = props.onPrepare, stretch = props.stretch, targetWidth = props.targetWidth, targetHeight = props.targetHeight, childNode = typeof popup2 == "function" ? popup2() : popup2, isNodeVisible = open || keepDom, getPopupContainerNeedParams = (getPopupContainer == null ? void 0 : getPopupContainer.length) > 0, _React$useState = React$6.useState(!getPopupContainer || !getPopupContainerNeedParams), _React$useState2 = _slicedToArray$3(_React$useState, 2), show = _React$useState2[0], setShow = _React$useState2[1];
5684
+ var popup2 = props.popup, className = props.className, prefixCls = props.prefixCls, style2 = props.style, target = props.target, _onVisibleChanged = props.onVisibleChanged, open = props.open, keepDom = props.keepDom, fresh = props.fresh, onClick = props.onClick, mask = props.mask, arrow = props.arrow, arrowPos = props.arrowPos, align = props.align, motion = props.motion, maskMotion = props.maskMotion, forceRender = props.forceRender, getPopupContainer = props.getPopupContainer, autoDestroy = props.autoDestroy, Portal2 = props.portal, zIndex = props.zIndex, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onPointerEnter = props.onPointerEnter, ready = props.ready, offsetX = props.offsetX, offsetY = props.offsetY, offsetR = props.offsetR, offsetB = props.offsetB, onAlign = props.onAlign, onPrepare = props.onPrepare, stretch = props.stretch, targetWidth = props.targetWidth, targetHeight = props.targetHeight, childNode = typeof popup2 == "function" ? popup2() : popup2, isNodeVisible = open || keepDom, getPopupContainerNeedParams = (getPopupContainer == null ? void 0 : getPopupContainer.length) > 0, _React$useState = React$6.useState(!getPopupContainer || !getPopupContainerNeedParams), _React$useState2 = _slicedToArray$1(_React$useState, 2), show = _React$useState2[0], setShow = _React$useState2[1];
6098
5685
  if (useLayoutEffect$1(function() {
6099
5686
  !show && getPopupContainerNeedParams && target && setShow(!0);
6100
5687
  }, [show, getPopupContainerNeedParams, target]), !show)
@@ -6126,7 +5713,7 @@ var PopupContent = /* @__PURE__ */ React$6.memo(function(_ref) {
6126
5713
  onResize: onAlign,
6127
5714
  disabled: !open
6128
5715
  }, function(resizeObserverRef) {
6129
- return /* @__PURE__ */ React$6.createElement(CSSMotion, _extends$7({
5716
+ return /* @__PURE__ */ React$6.createElement(CSSMotion, _extends$6({
6130
5717
  motionAppear: !0,
6131
5718
  motionEnter: !0,
6132
5719
  motionLeave: !0,
@@ -6146,7 +5733,7 @@ var PopupContent = /* @__PURE__ */ React$6.memo(function(_ref) {
6146
5733
  return /* @__PURE__ */ React$6.createElement("div", {
6147
5734
  ref: composeRef(resizeObserverRef, ref, motionRef),
6148
5735
  className: cls,
6149
- style: _objectSpread2$3(_objectSpread2$3(_objectSpread2$3(_objectSpread2$3({
5736
+ style: _objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({
6150
5737
  "--arrow-x": "".concat(arrowPos.x || 0, "px"),
6151
5738
  "--arrow-y": "".concat(arrowPos.y || 0, "px")
6152
5739
  }, offsetStyle), miscStyle), motionStyle), {}, {
@@ -6251,7 +5838,7 @@ function getPxValue(val) {
6251
5838
  }
6252
5839
  __name(getPxValue, "getPxValue");
6253
5840
  function getVisibleArea(initArea, scrollerList) {
6254
- var visibleArea = _objectSpread2$3({}, initArea);
5841
+ var visibleArea = _objectSpread2$1({}, initArea);
6255
5842
  return (scrollerList || []).forEach(function(ele) {
6256
5843
  if (!(ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement)) {
6257
5844
  var _getWin$getComputedSt2 = getWin(ele).getComputedStyle(ele), overflow = _getWin$getComputedSt2.overflow, overflowClipMargin = _getWin$getComputedSt2.overflowClipMargin, borderTopWidth = _getWin$getComputedSt2.borderTopWidth, borderBottomWidth = _getWin$getComputedSt2.borderBottomWidth, borderLeftWidth = _getWin$getComputedSt2.borderLeftWidth, borderRightWidth = _getWin$getComputedSt2.borderRightWidth, eleRect = ele.getBoundingClientRect(), eleOutHeight = ele.offsetHeight, eleInnerHeight = ele.clientHeight, eleOutWidth = ele.offsetWidth, eleInnerWidth = ele.clientWidth, borderTopNum = getPxValue(borderTopWidth), borderBottomNum = getPxValue(borderBottomWidth), borderLeftNum = getPxValue(borderLeftWidth), borderRightNum = getPxValue(borderRightWidth), scaleX = toNum(Math.round(eleRect.width / eleOutWidth * 1e3) / 1e3), scaleY = toNum(Math.round(eleRect.height / eleOutHeight * 1e3) / 1e3), eleScrollWidth = (eleOutWidth - eleInnerWidth - borderLeftNum - borderRightNum) * scaleX, eleScrollHeight = (eleOutHeight - eleInnerHeight - borderTopNum - borderBottomNum) * scaleY, scaledBorderTopWidth = borderTopNum * scaleY, scaledBorderBottomWidth = borderBottomNum * scaleY, scaledBorderLeftWidth = borderLeftNum * scaleX, scaledBorderRightWidth = borderRightNum * scaleX, clipMarginWidth = 0, clipMarginHeight = 0;
@@ -6271,7 +5858,7 @@ function getUnitOffset(size) {
6271
5858
  }
6272
5859
  __name(getUnitOffset, "getUnitOffset");
6273
5860
  function getNumberOffset(rect, offset2) {
6274
- var _ref = offset2 || [], _ref2 = _slicedToArray$3(_ref, 2), offsetX = _ref2[0], offsetY = _ref2[1];
5861
+ var _ref = offset2 || [], _ref2 = _slicedToArray$1(_ref, 2), offsetX = _ref2[0], offsetY = _ref2[1];
6275
5862
  return [getUnitOffset(rect.width, offsetX), getUnitOffset(rect.height, offsetY)];
6276
5863
  }
6277
5864
  __name(getNumberOffset, "getNumberOffset");
@@ -6312,7 +5899,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
6312
5899
  scaleX: 1,
6313
5900
  scaleY: 1,
6314
5901
  align: builtinPlacements[placement] || {}
6315
- }), _React$useState2 = _slicedToArray$3(_React$useState, 2), offsetInfo = _React$useState2[0], setOffsetInfo = _React$useState2[1], alignCountRef = React$6.useRef(0), scrollerList = React$6.useMemo(function() {
5902
+ }), _React$useState2 = _slicedToArray$1(_React$useState, 2), offsetInfo = _React$useState2[0], setOffsetInfo = _React$useState2[1], alignCountRef = React$6.useRef(0), scrollerList = React$6.useMemo(function() {
6316
5903
  return popupEle ? collectScroller(popupEle) : [];
6317
5904
  }, [popupEle]), prevFlipRef = React$6.useRef({}), resetFlipCache = /* @__PURE__ */ __name(function() {
6318
5905
  prevFlipRef.current = {};
@@ -6327,7 +5914,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
6327
5914
  nextPopupY = popupRect.y + nextOffsetY, nextPopupBottom = nextPopupY + popupHeight, nextPopupX = popupRect.x + nextOffsetX, nextPopupRight = nextPopupX + popupWidth;
6328
5915
  };
6329
5916
  __name(getIntersectionVisibleArea, "getIntersectionVisibleArea"), __name(syncNextPopupPosition, "syncNextPopupPosition");
6330
- var _popupElement$parentE, _popupElement$parentE2, popupElement = popupEle, doc = popupElement.ownerDocument, win = getWin(popupElement), _win$getComputedStyle = win.getComputedStyle(popupElement), width2 = _win$getComputedStyle.width, height2 = _win$getComputedStyle.height, popupPosition = _win$getComputedStyle.position, originLeft = popupElement.style.left, originTop = popupElement.style.top, originRight = popupElement.style.right, originBottom = popupElement.style.bottom, originOverflow = popupElement.style.overflow, placementInfo = _objectSpread2$3(_objectSpread2$3({}, builtinPlacements[placement]), popupAlign), placeholderElement = doc.createElement("div");
5917
+ var _popupElement$parentE, _popupRect$x, _popupRect$y, _popupElement$parentE2, popupElement = popupEle, doc = popupElement.ownerDocument, win = getWin(popupElement), _win$getComputedStyle = win.getComputedStyle(popupElement), width2 = _win$getComputedStyle.width, height2 = _win$getComputedStyle.height, popupPosition = _win$getComputedStyle.position, originLeft = popupElement.style.left, originTop = popupElement.style.top, originRight = popupElement.style.right, originBottom = popupElement.style.bottom, originOverflow = popupElement.style.overflow, placementInfo = _objectSpread2$1(_objectSpread2$1({}, builtinPlacements[placement]), popupAlign), placeholderElement = doc.createElement("div");
6331
5918
  (_popupElement$parentE = popupElement.parentElement) === null || _popupElement$parentE === void 0 || _popupElement$parentE.appendChild(placeholderElement), placeholderElement.style.left = "".concat(popupElement.offsetLeft, "px"), placeholderElement.style.top = "".concat(popupElement.offsetTop, "px"), placeholderElement.style.position = popupPosition, placeholderElement.style.height = "".concat(popupElement.offsetHeight, "px"), placeholderElement.style.width = "".concat(popupElement.offsetWidth, "px"), popupElement.style.left = "0", popupElement.style.top = "0", popupElement.style.right = "auto", popupElement.style.bottom = "auto", popupElement.style.overflow = "hidden";
6332
5919
  var targetRect;
6333
5920
  if (Array.isArray(target))
@@ -6338,15 +5925,17 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
6338
5925
  height: 0
6339
5926
  };
6340
5927
  else {
6341
- var rect = target.getBoundingClientRect();
6342
- targetRect = {
5928
+ var _rect$x, _rect$y, rect = target.getBoundingClientRect();
5929
+ rect.x = (_rect$x = rect.x) !== null && _rect$x !== void 0 ? _rect$x : rect.left, rect.y = (_rect$y = rect.y) !== null && _rect$y !== void 0 ? _rect$y : rect.top, targetRect = {
6343
5930
  x: rect.x,
6344
5931
  y: rect.y,
6345
5932
  width: rect.width,
6346
5933
  height: rect.height
6347
5934
  };
6348
5935
  }
6349
- var popupRect = popupElement.getBoundingClientRect(), _doc$documentElement = doc.documentElement, clientWidth = _doc$documentElement.clientWidth, clientHeight = _doc$documentElement.clientHeight, scrollWidth = _doc$documentElement.scrollWidth, scrollHeight = _doc$documentElement.scrollHeight, scrollTop = _doc$documentElement.scrollTop, scrollLeft = _doc$documentElement.scrollLeft, popupHeight = popupRect.height, popupWidth = popupRect.width, targetHeight = targetRect.height, targetWidth = targetRect.width, visibleRegion = {
5936
+ var popupRect = popupElement.getBoundingClientRect();
5937
+ popupRect.x = (_popupRect$x = popupRect.x) !== null && _popupRect$x !== void 0 ? _popupRect$x : popupRect.left, popupRect.y = (_popupRect$y = popupRect.y) !== null && _popupRect$y !== void 0 ? _popupRect$y : popupRect.top;
5938
+ var _doc$documentElement = doc.documentElement, clientWidth = _doc$documentElement.clientWidth, clientHeight = _doc$documentElement.clientHeight, scrollWidth = _doc$documentElement.scrollWidth, scrollHeight = _doc$documentElement.scrollHeight, scrollTop = _doc$documentElement.scrollTop, scrollLeft = _doc$documentElement.scrollLeft, popupHeight = popupRect.height, popupWidth = popupRect.width, targetHeight = targetRect.height, targetWidth = targetRect.width, visibleRegion = {
6350
5939
  left: 0,
6351
5940
  top: 0,
6352
5941
  right: clientWidth,
@@ -6365,9 +5954,9 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
6365
5954
  var _scaleX = toNum(Math.round(popupWidth / parseFloat(width2) * 1e3) / 1e3), _scaleY = toNum(Math.round(popupHeight / parseFloat(height2) * 1e3) / 1e3);
6366
5955
  if (_scaleX === 0 || _scaleY === 0 || isDOM(target) && !isVisible(target))
6367
5956
  return;
6368
- var offset2 = placementInfo.offset, targetOffset2 = placementInfo.targetOffset, _getNumberOffset = getNumberOffset(popupRect, offset2), _getNumberOffset2 = _slicedToArray$3(_getNumberOffset, 2), popupOffsetX = _getNumberOffset2[0], popupOffsetY = _getNumberOffset2[1], _getNumberOffset3 = getNumberOffset(targetRect, targetOffset2), _getNumberOffset4 = _slicedToArray$3(_getNumberOffset3, 2), targetOffsetX = _getNumberOffset4[0], targetOffsetY = _getNumberOffset4[1];
5957
+ var offset2 = placementInfo.offset, targetOffset2 = placementInfo.targetOffset, _getNumberOffset = getNumberOffset(popupRect, offset2), _getNumberOffset2 = _slicedToArray$1(_getNumberOffset, 2), popupOffsetX = _getNumberOffset2[0], popupOffsetY = _getNumberOffset2[1], _getNumberOffset3 = getNumberOffset(targetRect, targetOffset2), _getNumberOffset4 = _slicedToArray$1(_getNumberOffset3, 2), targetOffsetX = _getNumberOffset4[0], targetOffsetY = _getNumberOffset4[1];
6369
5958
  targetRect.x -= targetOffsetX, targetRect.y -= targetOffsetY;
6370
- var _ref3 = placementInfo.points || [], _ref4 = _slicedToArray$3(_ref3, 2), popupPoint = _ref4[0], targetPoint = _ref4[1], targetPoints = splitPoints(targetPoint), popupPoints = splitPoints(popupPoint), targetAlignPoint = getAlignPoint(targetRect, targetPoints), popupAlignPoint = getAlignPoint(popupRect, popupPoints), nextAlignInfo = _objectSpread2$3({}, placementInfo), nextOffsetX = targetAlignPoint.x - popupAlignPoint.x + popupOffsetX, nextOffsetY = targetAlignPoint.y - popupAlignPoint.y + popupOffsetY, originIntersectionVisibleArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY), originIntersectionRecommendArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY, visibleRegionArea), targetAlignPointTL = getAlignPoint(targetRect, ["t", "l"]), popupAlignPointTL = getAlignPoint(popupRect, ["t", "l"]), targetAlignPointBR = getAlignPoint(targetRect, ["b", "r"]), popupAlignPointBR = getAlignPoint(popupRect, ["b", "r"]), overflow = placementInfo.overflow || {}, adjustX = overflow.adjustX, adjustY = overflow.adjustY, shiftX = overflow.shiftX, shiftY = overflow.shiftY, supportAdjust = /* @__PURE__ */ __name(function(val) {
5959
+ var _ref3 = placementInfo.points || [], _ref4 = _slicedToArray$1(_ref3, 2), popupPoint = _ref4[0], targetPoint = _ref4[1], targetPoints = splitPoints(targetPoint), popupPoints = splitPoints(popupPoint), targetAlignPoint = getAlignPoint(targetRect, targetPoints), popupAlignPoint = getAlignPoint(popupRect, popupPoints), nextAlignInfo = _objectSpread2$1({}, placementInfo), nextOffsetX = targetAlignPoint.x - popupAlignPoint.x + popupOffsetX, nextOffsetY = targetAlignPoint.y - popupAlignPoint.y + popupOffsetY, originIntersectionVisibleArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY), originIntersectionRecommendArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY, visibleRegionArea), targetAlignPointTL = getAlignPoint(targetRect, ["t", "l"]), popupAlignPointTL = getAlignPoint(popupRect, ["t", "l"]), targetAlignPointBR = getAlignPoint(targetRect, ["b", "r"]), popupAlignPointBR = getAlignPoint(popupRect, ["b", "r"]), overflow = placementInfo.overflow || {}, adjustX = overflow.adjustX, adjustY = overflow.adjustY, shiftX = overflow.shiftX, shiftY = overflow.shiftY, supportAdjust = /* @__PURE__ */ __name(function(val) {
6371
5960
  return typeof val == "boolean" ? val : val >= 0;
6372
5961
  }, "supportAdjust"), nextPopupY, nextPopupBottom, nextPopupX, nextPopupRight;
6373
5962
  syncNextPopupPosition();
@@ -6436,7 +6025,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
6436
6025
  });
6437
6026
  }, "triggerAlign"), resetReady = /* @__PURE__ */ __name(function() {
6438
6027
  setOffsetInfo(function(ori) {
6439
- return _objectSpread2$3(_objectSpread2$3({}, ori), {}, {
6028
+ return _objectSpread2$1(_objectSpread2$1({}, ori), {}, {
6440
6029
  ready: !1
6441
6030
  });
6442
6031
  });
@@ -6489,7 +6078,7 @@ __name(useWinClick, "useWinClick");
6489
6078
  var _excluded$v = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
6490
6079
  function generateTrigger() {
6491
6080
  var PortalComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Portal, Trigger2 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
6492
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? !0 : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup2 = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$3(props, _excluded$v), mergedAutoDestroy = autoDestroy || destroyPopupOnHide || !1, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$3(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
6081
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? !0 : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup2 = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$2(props, _excluded$v), mergedAutoDestroy = autoDestroy || destroyPopupOnHide || !1, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
6493
6082
  useLayoutEffect$1(function() {
6494
6083
  setMobile(isMobile());
6495
6084
  }, []);
@@ -6499,16 +6088,16 @@ function generateTrigger() {
6499
6088
  subPopupElements.current[id2] = subPopupEle, parentContext == null || parentContext.registerSubPopup(id2, subPopupEle);
6500
6089
  }, "registerSubPopup")
6501
6090
  };
6502
- }, [parentContext]), id = useId$1(), _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$3(_React$useState3, 2), popupEle = _React$useState4[0], setPopupEle = _React$useState4[1], externalPopupRef = React$6.useRef(null), setPopupRef = useEvent(function(node) {
6091
+ }, [parentContext]), id = useId$1(), _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$1(_React$useState3, 2), popupEle = _React$useState4[0], setPopupEle = _React$useState4[1], externalPopupRef = React$6.useRef(null), setPopupRef = useEvent(function(node) {
6503
6092
  externalPopupRef.current = node, isDOM(node) && popupEle !== node && setPopupEle(node), parentContext == null || parentContext.registerSubPopup(id, node);
6504
- }), _React$useState5 = React$6.useState(null), _React$useState6 = _slicedToArray$3(_React$useState5, 2), targetEle = _React$useState6[0], setTargetEle = _React$useState6[1], externalForwardRef = React$6.useRef(null), setTargetRef = useEvent(function(node) {
6093
+ }), _React$useState5 = React$6.useState(null), _React$useState6 = _slicedToArray$1(_React$useState5, 2), targetEle = _React$useState6[0], setTargetEle = _React$useState6[1], externalForwardRef = React$6.useRef(null), setTargetRef = useEvent(function(node) {
6505
6094
  isDOM(node) && targetEle !== node && (setTargetEle(node), externalForwardRef.current = node);
6506
6095
  }), child = React$6.Children.only(children), originChildProps = (child == null ? void 0 : child.props) || {}, cloneProps = {}, inPopupOrChild = useEvent(function(ele) {
6507
6096
  var _getShadowRoot, _getShadowRoot2, childDOM = targetEle;
6508
6097
  return (childDOM == null ? void 0 : childDOM.contains(ele)) || ((_getShadowRoot = getShadowRoot(childDOM)) === null || _getShadowRoot === void 0 ? void 0 : _getShadowRoot.host) === ele || ele === childDOM || (popupEle == null ? void 0 : popupEle.contains(ele)) || ((_getShadowRoot2 = getShadowRoot(popupEle)) === null || _getShadowRoot2 === void 0 ? void 0 : _getShadowRoot2.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function(subPopupEle) {
6509
6098
  return (subPopupEle == null ? void 0 : subPopupEle.contains(ele)) || ele === subPopupEle;
6510
6099
  });
6511
- }), mergePopupMotion = getMotion$1(prefixCls, popupMotion, popupAnimation, popupTransitionName), mergeMaskMotion = getMotion$1(prefixCls, maskMotion, maskAnimation, maskTransitionName), _React$useState7 = React$6.useState(defaultPopupVisible || !1), _React$useState8 = _slicedToArray$3(_React$useState7, 2), internalOpen = _React$useState8[0], setInternalOpen = _React$useState8[1], mergedOpen = popupVisible != null ? popupVisible : internalOpen, setMergedOpen = useEvent(function(nextOpen) {
6100
+ }), mergePopupMotion = getMotion$1(prefixCls, popupMotion, popupAnimation, popupTransitionName), mergeMaskMotion = getMotion$1(prefixCls, maskMotion, maskAnimation, maskTransitionName), _React$useState7 = React$6.useState(defaultPopupVisible || !1), _React$useState8 = _slicedToArray$1(_React$useState7, 2), internalOpen = _React$useState8[0], setInternalOpen = _React$useState8[1], mergedOpen = popupVisible != null ? popupVisible : internalOpen, setMergedOpen = useEvent(function(nextOpen) {
6512
6101
  popupVisible === void 0 && setInternalOpen(nextOpen);
6513
6102
  });
6514
6103
  useLayoutEffect$1(function() {
@@ -6532,13 +6121,13 @@ function generateTrigger() {
6532
6121
  React$6.useEffect(function() {
6533
6122
  return clearDelay;
6534
6123
  }, []);
6535
- var _React$useState9 = React$6.useState(!1), _React$useState10 = _slicedToArray$3(_React$useState9, 2), inMotion = _React$useState10[0], setInMotion = _React$useState10[1];
6124
+ var _React$useState9 = React$6.useState(!1), _React$useState10 = _slicedToArray$1(_React$useState9, 2), inMotion = _React$useState10[0], setInMotion = _React$useState10[1];
6536
6125
  useLayoutEffect$1(function(firstMount) {
6537
6126
  (!firstMount || mergedOpen) && setInMotion(!0);
6538
6127
  }, [mergedOpen]);
6539
- var _React$useState11 = React$6.useState(null), _React$useState12 = _slicedToArray$3(_React$useState11, 2), motionPrepareResolve = _React$useState12[0], setMotionPrepareResolve = _React$useState12[1], _React$useState13 = React$6.useState([0, 0]), _React$useState14 = _slicedToArray$3(_React$useState13, 2), mousePos = _React$useState14[0], setMousePos = _React$useState14[1], setMousePosByEvent = /* @__PURE__ */ __name(function(event) {
6128
+ var _React$useState11 = React$6.useState(null), _React$useState12 = _slicedToArray$1(_React$useState11, 2), motionPrepareResolve = _React$useState12[0], setMotionPrepareResolve = _React$useState12[1], _React$useState13 = React$6.useState(null), _React$useState14 = _slicedToArray$1(_React$useState13, 2), mousePos = _React$useState14[0], setMousePos = _React$useState14[1], setMousePosByEvent = /* @__PURE__ */ __name(function(event) {
6540
6129
  setMousePos([event.clientX, event.clientY]);
6541
- }, "setMousePosByEvent2"), _useAlign = useAlign(mergedOpen, popupEle, alignPoint ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign), _useAlign2 = _slicedToArray$3(_useAlign, 11), ready = _useAlign2[0], offsetX = _useAlign2[1], offsetY = _useAlign2[2], offsetR = _useAlign2[3], offsetB = _useAlign2[4], arrowX = _useAlign2[5], arrowY = _useAlign2[6], scaleX = _useAlign2[7], scaleY = _useAlign2[8], alignInfo = _useAlign2[9], onAlign = _useAlign2[10], _useAction = useAction(mobile, action, showAction, hideAction), _useAction2 = _slicedToArray$3(_useAction, 2), showActions = _useAction2[0], hideActions = _useAction2[1], clickToShow = showActions.has("click"), clickToHide = hideActions.has("click") || hideActions.has("contextMenu"), triggerAlign = useEvent(function() {
6130
+ }, "setMousePosByEvent2"), _useAlign = useAlign(mergedOpen, popupEle, alignPoint && mousePos !== null ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign), _useAlign2 = _slicedToArray$1(_useAlign, 11), ready = _useAlign2[0], offsetX = _useAlign2[1], offsetY = _useAlign2[2], offsetR = _useAlign2[3], offsetB = _useAlign2[4], arrowX = _useAlign2[5], arrowY = _useAlign2[6], scaleX = _useAlign2[7], scaleY = _useAlign2[8], alignInfo = _useAlign2[9], onAlign = _useAlign2[10], _useAction = useAction(mobile, action, showAction, hideAction), _useAction2 = _slicedToArray$1(_useAction, 2), showActions = _useAction2[0], hideActions = _useAction2[1], clickToShow = showActions.has("click"), clickToHide = hideActions.has("click") || hideActions.has("contextMenu"), triggerAlign = useEvent(function() {
6542
6131
  inMotion || onAlign();
6543
6132
  }), onScroll = /* @__PURE__ */ __name(function() {
6544
6133
  openRef.current && alignPoint && clickToHide && triggerOpen(!1);
@@ -6559,7 +6148,7 @@ function generateTrigger() {
6559
6148
  forceAlign: triggerAlign
6560
6149
  };
6561
6150
  });
6562
- var _React$useState15 = React$6.useState(0), _React$useState16 = _slicedToArray$3(_React$useState15, 2), targetWidth = _React$useState16[0], setTargetWidth = _React$useState16[1], _React$useState17 = React$6.useState(0), _React$useState18 = _slicedToArray$3(_React$useState17, 2), targetHeight = _React$useState18[0], setTargetHeight = _React$useState18[1], syncTargetSize = /* @__PURE__ */ __name(function() {
6151
+ var _React$useState15 = React$6.useState(0), _React$useState16 = _slicedToArray$1(_React$useState15, 2), targetWidth = _React$useState16[0], setTargetWidth = _React$useState16[1], _React$useState17 = React$6.useState(0), _React$useState18 = _slicedToArray$1(_React$useState17, 2), targetHeight = _React$useState18[0], setTargetHeight = _React$useState18[1], syncTargetSize = /* @__PURE__ */ __name(function() {
6563
6152
  if (stretch && targetEle) {
6564
6153
  var rect = targetEle.getBoundingClientRect();
6565
6154
  setTargetWidth(rect.width), setTargetHeight(rect.height);
@@ -6613,7 +6202,7 @@ function generateTrigger() {
6613
6202
  args[_key3 - 1] = arguments[_key3];
6614
6203
  (_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 || _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event].concat(args));
6615
6204
  }), className && (cloneProps.className = clsx(originChildProps.className, className));
6616
- var mergedChildrenProps = _objectSpread2$3(_objectSpread2$3({}, originChildProps), cloneProps), passedProps = {}, passedEventList = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
6205
+ var mergedChildrenProps = _objectSpread2$1(_objectSpread2$1({}, originChildProps), cloneProps), passedProps = {}, passedEventList = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
6617
6206
  passedEventList.forEach(function(eventName) {
6618
6207
  restProps[eventName] && (passedProps[eventName] = function() {
6619
6208
  for (var _mergedChildrenProps$, _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++)
@@ -6621,10 +6210,10 @@ function generateTrigger() {
6621
6210
  (_mergedChildrenProps$ = mergedChildrenProps[eventName]) === null || _mergedChildrenProps$ === void 0 || _mergedChildrenProps$.call.apply(_mergedChildrenProps$, [mergedChildrenProps].concat(args)), restProps[eventName].apply(restProps, args);
6622
6211
  });
6623
6212
  });
6624
- var triggerNode = /* @__PURE__ */ React$6.cloneElement(child, _objectSpread2$3(_objectSpread2$3({}, mergedChildrenProps), passedProps)), arrowPos = {
6213
+ var triggerNode = /* @__PURE__ */ React$6.cloneElement(child, _objectSpread2$1(_objectSpread2$1({}, mergedChildrenProps), passedProps)), arrowPos = {
6625
6214
  x: arrowX,
6626
6215
  y: arrowY
6627
- }, innerArrow = arrow ? _objectSpread2$3({}, arrow !== !0 ? arrow : {}) : null;
6216
+ }, innerArrow = arrow ? _objectSpread2$1({}, arrow !== !0 ? arrow : {}) : null;
6628
6217
  return /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, /* @__PURE__ */ React$6.createElement(RefResizeObserver, {
6629
6218
  disabled: !mergedOpen,
6630
6219
  ref: setTargetRef,
@@ -6732,7 +6321,7 @@ function PickerTrigger(_ref) {
6732
6321
  popup: popupElement,
6733
6322
  popupAlign,
6734
6323
  popupVisible: visible,
6735
- popupClassName: clsx(popupClassName, _defineProperty$d(_defineProperty$d({}, "".concat(dropdownPrefixCls, "-range"), range), "".concat(dropdownPrefixCls, "-rtl"), direction === "rtl")),
6324
+ popupClassName: clsx(popupClassName, _defineProperty$b(_defineProperty$b({}, "".concat(dropdownPrefixCls, "-range"), range), "".concat(dropdownPrefixCls, "-rtl"), direction === "rtl")),
6736
6325
  popupStyle,
6737
6326
  stretch: "minWidth",
6738
6327
  getPopupContainer,
@@ -6796,7 +6385,7 @@ function useCellRender(cellRender, dateRender, monthCellRender, range) {
6796
6385
  return dateRender && info.type === "date" ? dateRender(date, info.today) : monthCellRender && info.type === "month" ? monthCellRender(date, info.locale) : info.originNode;
6797
6386
  };
6798
6387
  }, [cellRender, monthCellRender, dateRender]), onInternalCellRender = React$6.useCallback(function(date, info) {
6799
- return mergedCellRender(date, _objectSpread2$3(_objectSpread2$3({}, info), {}, {
6388
+ return mergedCellRender(date, _objectSpread2$1(_objectSpread2$1({}, info), {}, {
6800
6389
  range
6801
6390
  }));
6802
6391
  }, [mergedCellRender, range]);
@@ -6804,7 +6393,7 @@ function useCellRender(cellRender, dateRender, monthCellRender, range) {
6804
6393
  }
6805
6394
  __name(useCellRender, "useCellRender");
6806
6395
  function useFieldsInvalidate(calendarValue, isInvalidateDate) {
6807
- var allowEmpty = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], _React$useState = React$6.useState([!1, !1]), _React$useState2 = _slicedToArray$3(_React$useState, 2), fieldsInvalidates = _React$useState2[0], setFieldsInvalidates = _React$useState2[1], onSelectorInvalid = /* @__PURE__ */ __name(function(invalid, index2) {
6396
+ var allowEmpty = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], _React$useState = React$6.useState([!1, !1]), _React$useState2 = _slicedToArray$1(_React$useState, 2), fieldsInvalidates = _React$useState2[0], setFieldsInvalidates = _React$useState2[1], onSelectorInvalid = /* @__PURE__ */ __name(function(invalid, index2) {
6808
6397
  setFieldsInvalidates(function(ori) {
6809
6398
  return fillIndex(ori, index2, invalid);
6810
6399
  });
@@ -6828,7 +6417,7 @@ function fillTimeFormat(showHour, showMinute, showSecond, showMillisecond, showM
6828
6417
  __name(fillTimeFormat, "fillTimeFormat");
6829
6418
  function fillLocale(locale, showHour, showMinute, showSecond, showMillisecond, use12Hours) {
6830
6419
  var fieldDateTimeFormat = locale.fieldDateTimeFormat, fieldDateFormat = locale.fieldDateFormat, fieldTimeFormat = locale.fieldTimeFormat, fieldMonthFormat = locale.fieldMonthFormat, fieldYearFormat = locale.fieldYearFormat, fieldWeekFormat = locale.fieldWeekFormat, fieldQuarterFormat = locale.fieldQuarterFormat, yearFormat = locale.yearFormat, cellYearFormat = locale.cellYearFormat, cellQuarterFormat = locale.cellQuarterFormat, dayFormat = locale.dayFormat, cellDateFormat = locale.cellDateFormat, timeFormat = fillTimeFormat(showHour, showMinute, showSecond, showMillisecond, use12Hours);
6831
- return _objectSpread2$3(_objectSpread2$3({}, locale), {}, {
6420
+ return _objectSpread2$1(_objectSpread2$1({}, locale), {}, {
6832
6421
  fieldDateTimeFormat: fieldDateTimeFormat || "YYYY-MM-DD ".concat(timeFormat),
6833
6422
  fieldDateFormat: fieldDateFormat || "YYYY-MM-DD",
6834
6423
  fieldTimeFormat: fieldTimeFormat || timeFormat,
@@ -6880,7 +6469,7 @@ var showTimeKeys = [
6880
6469
  ];
6881
6470
  function pickTimeProps(props) {
6882
6471
  var timeProps = pickProps(props, showTimeKeys), format2 = props.format, picker = props.picker, propFormat = null;
6883
- return format2 && (propFormat = format2, Array.isArray(propFormat) && (propFormat = propFormat[0]), propFormat = _typeof$4(propFormat) === "object" ? propFormat.format : propFormat), picker === "time" && (timeProps.format = propFormat), [timeProps, propFormat];
6472
+ return format2 && (propFormat = format2, Array.isArray(propFormat) && (propFormat = propFormat[0]), propFormat = _typeof$2(propFormat) === "object" ? propFormat.format : propFormat), picker === "time" && (timeProps.format = propFormat), [timeProps, propFormat];
6884
6473
  }
6885
6474
  __name(pickTimeProps, "pickTimeProps");
6886
6475
  function isStringFormat(format2) {
@@ -6909,10 +6498,10 @@ function fillShowConfig(hasShowConfig, showHour, showMinute, showSecond, showMil
6909
6498
  }
6910
6499
  __name(fillShowConfig, "fillShowConfig");
6911
6500
  function getTimeProps(componentProps) {
6912
- var showTime = componentProps.showTime, _pickTimeProps = pickTimeProps(componentProps), _pickTimeProps2 = _slicedToArray$3(_pickTimeProps, 2), pickedProps = _pickTimeProps2[0], propFormat = _pickTimeProps2[1], showTimeConfig = showTime && _typeof$4(showTime) === "object" ? showTime : {}, timeConfig = _objectSpread2$3(_objectSpread2$3({
6501
+ var showTime = componentProps.showTime, _pickTimeProps = pickTimeProps(componentProps), _pickTimeProps2 = _slicedToArray$1(_pickTimeProps, 2), pickedProps = _pickTimeProps2[0], propFormat = _pickTimeProps2[1], showTimeConfig = showTime && _typeof$2(showTime) === "object" ? showTime : {}, timeConfig = _objectSpread2$1(_objectSpread2$1({
6913
6502
  defaultOpenValue: showTimeConfig.defaultOpenValue || showTimeConfig.defaultValue
6914
- }, pickedProps), showTimeConfig), showMillisecond = timeConfig.showMillisecond, showHour = timeConfig.showHour, showMinute = timeConfig.showMinute, showSecond = timeConfig.showSecond, hasShowConfig = existShowConfig(showHour, showMinute, showSecond, showMillisecond), _fillShowConfig = fillShowConfig(hasShowConfig, showHour, showMinute, showSecond, showMillisecond), _fillShowConfig2 = _slicedToArray$3(_fillShowConfig, 3);
6915
- return showHour = _fillShowConfig2[0], showMinute = _fillShowConfig2[1], showSecond = _fillShowConfig2[2], [timeConfig, _objectSpread2$3(_objectSpread2$3({}, timeConfig), {}, {
6503
+ }, pickedProps), showTimeConfig), showMillisecond = timeConfig.showMillisecond, showHour = timeConfig.showHour, showMinute = timeConfig.showMinute, showSecond = timeConfig.showSecond, hasShowConfig = existShowConfig(showHour, showMinute, showSecond, showMillisecond), _fillShowConfig = fillShowConfig(hasShowConfig, showHour, showMinute, showSecond, showMillisecond), _fillShowConfig2 = _slicedToArray$1(_fillShowConfig, 3);
6504
+ return showHour = _fillShowConfig2[0], showMinute = _fillShowConfig2[1], showSecond = _fillShowConfig2[2], [timeConfig, _objectSpread2$1(_objectSpread2$1({}, timeConfig), {}, {
6916
6505
  showHour,
6917
6506
  showMinute,
6918
6507
  showSecond,
@@ -6932,10 +6521,10 @@ function fillShowTimeConfig(picker, showTimeFormat, propFormat, timeConfig, loca
6932
6521
  }
6933
6522
  var showHour = pickedProps.showHour, showMinute = pickedProps.showMinute, showSecond = pickedProps.showSecond, showMillisecond = pickedProps.showMillisecond, use12Hours = pickedProps.use12Hours, showMeridiem = checkShow(baselineFormat, ["a", "A", "LT", "LLL", "LTS"], use12Hours), hasShowConfig = existShowConfig(showHour, showMinute, showSecond, showMillisecond);
6934
6523
  hasShowConfig || (showHour = checkShow(baselineFormat, ["H", "h", "k", "LT", "LLL"]), showMinute = checkShow(baselineFormat, ["m", "LT", "LLL"]), showSecond = checkShow(baselineFormat, ["s", "LTS"]), showMillisecond = checkShow(baselineFormat, ["SSS"]));
6935
- var _fillShowConfig3 = fillShowConfig(hasShowConfig, showHour, showMinute, showSecond, showMillisecond), _fillShowConfig4 = _slicedToArray$3(_fillShowConfig3, 3);
6524
+ var _fillShowConfig3 = fillShowConfig(hasShowConfig, showHour, showMinute, showSecond, showMillisecond), _fillShowConfig4 = _slicedToArray$1(_fillShowConfig3, 3);
6936
6525
  showHour = _fillShowConfig4[0], showMinute = _fillShowConfig4[1], showSecond = _fillShowConfig4[2];
6937
6526
  var timeFormat = showTimeFormat || fillTimeFormat(showHour, showMinute, showSecond, showMillisecond, showMeridiem);
6938
- return _objectSpread2$3(_objectSpread2$3({}, pickedProps), {}, {
6527
+ return _objectSpread2$1(_objectSpread2$1({}, pickedProps), {}, {
6939
6528
  // Format
6940
6529
  format: timeFormat,
6941
6530
  // Show Config
@@ -6952,7 +6541,7 @@ __name(fillShowTimeConfig, "fillShowTimeConfig");
6952
6541
  function fillClearIcon(prefixCls, allowClear, clearIcon) {
6953
6542
  if (allowClear === !1)
6954
6543
  return null;
6955
- var config2 = allowClear && _typeof$4(allowClear) === "object" ? allowClear : {};
6544
+ var config2 = allowClear && _typeof$2(allowClear) === "object" ? allowClear : {};
6956
6545
  return config2.clearIcon || clearIcon || /* @__PURE__ */ React$6.createElement("span", {
6957
6546
  className: "".concat(prefixCls, "-clear-btn")
6958
6547
  });
@@ -7073,7 +6662,7 @@ function useDisabledBoundary(generateConfig2, locale, disabledDate, minDate, max
7073
6662
  __name(useDisabledBoundary, "useDisabledBoundary");
7074
6663
  function useFieldFormat(picker, locale, format2) {
7075
6664
  return React$6.useMemo(function() {
7076
- var rawFormat = getRowFormat(picker, locale, format2), formatList = toArray$1(rawFormat), firstFormat = formatList[0], maskFormat = _typeof$4(firstFormat) === "object" && firstFormat.type === "mask" ? firstFormat.format : null;
6665
+ var rawFormat = getRowFormat(picker, locale, format2), formatList = toArray$1(rawFormat), firstFormat = formatList[0], maskFormat = _typeof$2(firstFormat) === "object" && firstFormat.type === "mask" ? firstFormat.format : null;
7077
6666
  return [
7078
6667
  // Format list
7079
6668
  formatList.map(function(config2) {
@@ -7091,7 +6680,7 @@ function useInputReadOnly(formatList, inputReadOnly, multiple) {
7091
6680
  __name(useInputReadOnly, "useInputReadOnly");
7092
6681
  function useInvalidate(generateConfig2, picker, disabledDate, showTime) {
7093
6682
  var isInvalidate = useEvent(function(date, info) {
7094
- var outsideInfo = _objectSpread2$3({
6683
+ var outsideInfo = _objectSpread2$1({
7095
6684
  type: picker
7096
6685
  }, info);
7097
6686
  if (delete outsideInfo.activeIndex, // Date object is invalid
@@ -7119,17 +6708,17 @@ function useList(value) {
7119
6708
  }
7120
6709
  __name(useList, "useList");
7121
6710
  function useFilledProps(props, updater) {
7122
- var generateConfig2 = props.generateConfig, locale = props.locale, _props$picker = props.picker, picker = _props$picker === void 0 ? "date" : _props$picker, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-picker" : _props$prefixCls, _props$styles = props.styles, styles2 = _props$styles === void 0 ? {} : _props$styles, _props$classNames = props.classNames, classNames = _props$classNames === void 0 ? {} : _props$classNames, _props$order = props.order, order = _props$order === void 0 ? !0 : _props$order, _props$components = props.components, components = _props$components === void 0 ? {} : _props$components, inputRender = props.inputRender, allowClear = props.allowClear, clearIcon = props.clearIcon, needConfirm = props.needConfirm, multiple = props.multiple, format2 = props.format, inputReadOnly = props.inputReadOnly, disabledDate = props.disabledDate, minDate = props.minDate, maxDate = props.maxDate, showTime = props.showTime, value = props.value, defaultValue = props.defaultValue, pickerValue = props.pickerValue, defaultPickerValue = props.defaultPickerValue, values3 = useList(value), defaultValues = useList(defaultValue), pickerValues = useList(pickerValue), defaultPickerValues = useList(defaultPickerValue), internalPicker = picker === "date" && showTime ? "datetime" : picker, multipleInteractivePicker = internalPicker === "time" || internalPicker === "datetime", complexPicker = multipleInteractivePicker || multiple, mergedNeedConfirm = needConfirm != null ? needConfirm : multipleInteractivePicker, _getTimeProps = getTimeProps(props), _getTimeProps2 = _slicedToArray$3(_getTimeProps, 4), timeProps = _getTimeProps2[0], localeTimeProps = _getTimeProps2[1], showTimeFormat = _getTimeProps2[2], propFormat = _getTimeProps2[3], mergedLocale = useLocale(locale, localeTimeProps), mergedShowTime = React$6.useMemo(function() {
6711
+ var generateConfig2 = props.generateConfig, locale = props.locale, _props$picker = props.picker, picker = _props$picker === void 0 ? "date" : _props$picker, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-picker" : _props$prefixCls, _props$styles = props.styles, styles2 = _props$styles === void 0 ? {} : _props$styles, _props$classNames = props.classNames, classNames = _props$classNames === void 0 ? {} : _props$classNames, _props$order = props.order, order = _props$order === void 0 ? !0 : _props$order, _props$components = props.components, components = _props$components === void 0 ? {} : _props$components, inputRender = props.inputRender, allowClear = props.allowClear, clearIcon = props.clearIcon, needConfirm = props.needConfirm, multiple = props.multiple, format2 = props.format, inputReadOnly = props.inputReadOnly, disabledDate = props.disabledDate, minDate = props.minDate, maxDate = props.maxDate, showTime = props.showTime, value = props.value, defaultValue = props.defaultValue, pickerValue = props.pickerValue, defaultPickerValue = props.defaultPickerValue, values3 = useList(value), defaultValues = useList(defaultValue), pickerValues = useList(pickerValue), defaultPickerValues = useList(defaultPickerValue), internalPicker = picker === "date" && showTime ? "datetime" : picker, multipleInteractivePicker = internalPicker === "time" || internalPicker === "datetime", complexPicker = multipleInteractivePicker || multiple, mergedNeedConfirm = needConfirm != null ? needConfirm : multipleInteractivePicker, _getTimeProps = getTimeProps(props), _getTimeProps2 = _slicedToArray$1(_getTimeProps, 4), timeProps = _getTimeProps2[0], localeTimeProps = _getTimeProps2[1], showTimeFormat = _getTimeProps2[2], propFormat = _getTimeProps2[3], mergedLocale = useLocale(locale, localeTimeProps), mergedShowTime = React$6.useMemo(function() {
7123
6712
  return fillShowTimeConfig(internalPicker, showTimeFormat, propFormat, timeProps, mergedLocale);
7124
6713
  }, [internalPicker, showTimeFormat, propFormat, timeProps, mergedLocale]), filledProps = React$6.useMemo(function() {
7125
- return _objectSpread2$3(_objectSpread2$3({}, props), {}, {
6714
+ return _objectSpread2$1(_objectSpread2$1({}, props), {}, {
7126
6715
  prefixCls,
7127
6716
  locale: mergedLocale,
7128
6717
  picker,
7129
6718
  styles: styles2,
7130
6719
  classNames,
7131
6720
  order,
7132
- components: _objectSpread2$3({
6721
+ components: _objectSpread2$1({
7133
6722
  input: inputRender
7134
6723
  }, components),
7135
6724
  clearIcon: fillClearIcon(prefixCls, allowClear, clearIcon),
@@ -7139,8 +6728,8 @@ function useFilledProps(props, updater) {
7139
6728
  pickerValue: pickerValues,
7140
6729
  defaultPickerValue: defaultPickerValues
7141
6730
  }, void 0);
7142
- }, [props]), _useFieldFormat = useFieldFormat(internalPicker, mergedLocale, format2), _useFieldFormat2 = _slicedToArray$3(_useFieldFormat, 2), formatList = _useFieldFormat2[0], maskFormat = _useFieldFormat2[1], mergedInputReadOnly = useInputReadOnly(formatList, inputReadOnly, multiple), disabledBoundaryDate = useDisabledBoundary(generateConfig2, locale, disabledDate, minDate, maxDate), isInvalidateDate = useInvalidate(generateConfig2, picker, disabledBoundaryDate, mergedShowTime), mergedProps = React$6.useMemo(function() {
7143
- return _objectSpread2$3(_objectSpread2$3({}, filledProps), {}, {
6731
+ }, [props]), _useFieldFormat = useFieldFormat(internalPicker, mergedLocale, format2), _useFieldFormat2 = _slicedToArray$1(_useFieldFormat, 2), formatList = _useFieldFormat2[0], maskFormat = _useFieldFormat2[1], mergedInputReadOnly = useInputReadOnly(formatList, inputReadOnly, multiple), disabledBoundaryDate = useDisabledBoundary(generateConfig2, locale, disabledDate, minDate, maxDate), isInvalidateDate = useInvalidate(generateConfig2, picker, disabledBoundaryDate, mergedShowTime), mergedProps = React$6.useMemo(function() {
6732
+ return _objectSpread2$1(_objectSpread2$1({}, filledProps), {}, {
7144
6733
  needConfirm: mergedNeedConfirm,
7145
6734
  inputReadOnly: mergedInputReadOnly,
7146
6735
  disabledDate: disabledBoundaryDate
@@ -7152,7 +6741,7 @@ __name(useFilledProps, "useFilledProps");
7152
6741
  function useDelayState(value, defaultValue, onChange) {
7153
6742
  var _useMergedState = useMergedState(defaultValue, {
7154
6743
  value
7155
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), state = _useMergedState2[0], setState = _useMergedState2[1], nextValueRef = React__default.useRef(value), rafRef = React__default.useRef(), cancelRaf = /* @__PURE__ */ __name(function() {
6744
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), state = _useMergedState2[0], setState = _useMergedState2[1], nextValueRef = React__default.useRef(value), rafRef = React__default.useRef(), cancelRaf = /* @__PURE__ */ __name(function() {
7156
6745
  wrapperRaf.cancel(rafRef.current);
7157
6746
  }, "cancelRaf"), doUpdate = useEvent(function() {
7158
6747
  setState(nextValueRef.current), onChange && state !== nextValueRef.current && onChange(nextValueRef.current);
@@ -7167,7 +6756,7 @@ __name(useDelayState, "useDelayState");
7167
6756
  function useOpen(open, defaultOpen) {
7168
6757
  var disabledList = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], onOpenChange = arguments.length > 3 ? arguments[3] : void 0, mergedOpen = disabledList.every(function(disabled) {
7169
6758
  return disabled;
7170
- }) ? !1 : open, _useDelayState = useDelayState(mergedOpen, defaultOpen || !1, onOpenChange), _useDelayState2 = _slicedToArray$3(_useDelayState, 2), rafOpen = _useDelayState2[0], setRafOpen = _useDelayState2[1];
6759
+ }) ? !1 : open, _useDelayState = useDelayState(mergedOpen, defaultOpen || !1, onOpenChange), _useDelayState2 = _slicedToArray$1(_useDelayState, 2), rafOpen = _useDelayState2[0], setRafOpen = _useDelayState2[1];
7171
6760
  function setOpen(next) {
7172
6761
  var config2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7173
6762
  (!config2.inherit || rafOpen) && setRafOpen(next, config2.force);
@@ -7216,7 +6805,7 @@ function useLockEffect(condition, callback) {
7216
6805
  }
7217
6806
  __name(useLockEffect, "useLockEffect");
7218
6807
  function useRangeActive(disabled) {
7219
- var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], mergedOpen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, _React$useState = React$6.useState(0), _React$useState2 = _slicedToArray$3(_React$useState, 2), activeIndex = _React$useState2[0], setActiveIndex = _React$useState2[1], _React$useState3 = React$6.useState(!1), _React$useState4 = _slicedToArray$3(_React$useState3, 2), focused = _React$useState4[0], setFocused = _React$useState4[1], activeListRef = React$6.useRef([]), lastOperationRef = React$6.useRef(null), triggerFocus2 = /* @__PURE__ */ __name(function(nextFocus) {
6808
+ var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], mergedOpen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, _React$useState = React$6.useState(0), _React$useState2 = _slicedToArray$1(_React$useState, 2), activeIndex = _React$useState2[0], setActiveIndex = _React$useState2[1], _React$useState3 = React$6.useState(!1), _React$useState4 = _slicedToArray$1(_React$useState3, 2), focused = _React$useState4[0], setFocused = _React$useState4[1], activeListRef = React$6.useRef([]), lastOperationRef = React$6.useRef(null), triggerFocus2 = /* @__PURE__ */ __name(function(nextFocus) {
7220
6809
  setFocused(nextFocus);
7221
6810
  }, "triggerFocus"), lastOperation = /* @__PURE__ */ __name(function(type2) {
7222
6811
  return type2 && (lastOperationRef.current = type2), lastOperationRef.current;
@@ -7255,15 +6844,15 @@ function useRangePickerValue(generateConfig2, locale, calendarValue, modes, open
7255
6844
  var defaultPickerValue = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : EMPTY_LIST$1, pickerValue = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : EMPTY_LIST$1, timeDefaultValue = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : EMPTY_LIST$1, onPickerValueChange = arguments.length > 11 ? arguments[11] : void 0, minDate = arguments.length > 12 ? arguments[12] : void 0, maxDate = arguments.length > 13 ? arguments[13] : void 0, isTimePicker = pickerMode === "time", mergedActiveIndex = activeIndex || 0, getDefaultPickerValue = /* @__PURE__ */ __name(function(index2) {
7256
6845
  var now = generateConfig2.getNow();
7257
6846
  return isTimePicker && (now = fillTime(generateConfig2, now)), defaultPickerValue[index2] || calendarValue[index2] || now;
7258
- }, "getDefaultPickerValue"), _pickerValue = _slicedToArray$3(pickerValue, 2), startPickerValue = _pickerValue[0], endPickerValue = _pickerValue[1], _useMergedState = useMergedState(function() {
6847
+ }, "getDefaultPickerValue"), _pickerValue = _slicedToArray$1(pickerValue, 2), startPickerValue = _pickerValue[0], endPickerValue = _pickerValue[1], _useMergedState = useMergedState(function() {
7259
6848
  return getDefaultPickerValue(0);
7260
6849
  }, {
7261
6850
  value: startPickerValue
7262
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), mergedStartPickerValue = _useMergedState2[0], setStartPickerValue = _useMergedState2[1], _useMergedState3 = useMergedState(function() {
6851
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), mergedStartPickerValue = _useMergedState2[0], setStartPickerValue = _useMergedState2[1], _useMergedState3 = useMergedState(function() {
7263
6852
  return getDefaultPickerValue(1);
7264
6853
  }, {
7265
6854
  value: endPickerValue
7266
- }), _useMergedState4 = _slicedToArray$3(_useMergedState3, 2), mergedEndPickerValue = _useMergedState4[0], setEndPickerValue = _useMergedState4[1], currentPickerValue = React$6.useMemo(function() {
6855
+ }), _useMergedState4 = _slicedToArray$1(_useMergedState3, 2), mergedEndPickerValue = _useMergedState4[0], setEndPickerValue = _useMergedState4[1], currentPickerValue = React$6.useMemo(function() {
7267
6856
  var current = [mergedStartPickerValue, mergedEndPickerValue][mergedActiveIndex];
7268
6857
  return isTimePicker ? current : fillTime(generateConfig2, current, timeDefaultValue[mergedActiveIndex]);
7269
6858
  }, [isTimePicker, mergedStartPickerValue, mergedEndPickerValue, mergedActiveIndex, generateConfig2, timeDefaultValue]), setCurrentPickerValue = /* @__PURE__ */ __name(function(nextPickerValue) {
@@ -7295,7 +6884,7 @@ function useRangePickerValue(generateConfig2, locale, calendarValue, modes, open
7295
6884
  }
7296
6885
  __name(useRangePickerValue, "useRangePickerValue");
7297
6886
  function useSyncState(defaultValue, controlledValue) {
7298
- var valueRef = React$6.useRef(defaultValue), _React$useState = React$6.useState({}), _React$useState2 = _slicedToArray$3(_React$useState, 2), forceUpdate = _React$useState2[1], getter = /* @__PURE__ */ __name(function(useControlledValueFirst) {
6887
+ var valueRef = React$6.useRef(defaultValue), _React$useState = React$6.useState({}), _React$useState2 = _slicedToArray$1(_React$useState, 2), forceUpdate = _React$useState2[1], getter = /* @__PURE__ */ __name(function(useControlledValueFirst) {
7299
6888
  return useControlledValueFirst && controlledValue !== void 0 ? controlledValue : valueRef.current;
7300
6889
  }, "getter"), setter = /* @__PURE__ */ __name(function(nextValue) {
7301
6890
  valueRef.current = nextValue, forceUpdate({});
@@ -7333,7 +6922,7 @@ function orderDates(dates, generateConfig2) {
7333
6922
  }
7334
6923
  __name(orderDates, "orderDates");
7335
6924
  function useCalendarValue(mergedValue) {
7336
- var _useSyncState = useSyncState(mergedValue), _useSyncState2 = _slicedToArray$3(_useSyncState, 2), calendarValue = _useSyncState2[0], setCalendarValue = _useSyncState2[1], syncWithValue = useEvent(function() {
6925
+ var _useSyncState = useSyncState(mergedValue), _useSyncState2 = _slicedToArray$1(_useSyncState, 2), calendarValue = _useSyncState2[0], setCalendarValue = _useSyncState2[1], syncWithValue = useEvent(function() {
7337
6926
  setCalendarValue(mergedValue);
7338
6927
  });
7339
6928
  return React$6.useEffect(function() {
@@ -7344,12 +6933,12 @@ __name(useCalendarValue, "useCalendarValue");
7344
6933
  function useInnerValue(generateConfig2, locale, formatList, rangeValue, order, defaultValue, value, onCalendarChange, onOk) {
7345
6934
  var _useMergedState = useMergedState(defaultValue, {
7346
6935
  value
7347
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), innerValue = _useMergedState2[0], setInnerValue = _useMergedState2[1], mergedValue = innerValue || EMPTY_VALUE, _useCalendarValue = useCalendarValue(mergedValue), _useCalendarValue2 = _slicedToArray$3(_useCalendarValue, 2), calendarValue = _useCalendarValue2[0], setCalendarValue = _useCalendarValue2[1], _useUtil = useUtil(generateConfig2, locale, formatList), _useUtil2 = _slicedToArray$3(_useUtil, 2), getDateTexts = _useUtil2[0], isSameDates = _useUtil2[1], triggerCalendarChange = useEvent(function(nextCalendarValues) {
6936
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), innerValue = _useMergedState2[0], setInnerValue = _useMergedState2[1], mergedValue = innerValue || EMPTY_VALUE, _useCalendarValue = useCalendarValue(mergedValue), _useCalendarValue2 = _slicedToArray$1(_useCalendarValue, 2), calendarValue = _useCalendarValue2[0], setCalendarValue = _useCalendarValue2[1], _useUtil = useUtil(generateConfig2, locale, formatList), _useUtil2 = _slicedToArray$1(_useUtil, 2), getDateTexts = _useUtil2[0], isSameDates = _useUtil2[1], triggerCalendarChange = useEvent(function(nextCalendarValues) {
7348
6937
  var clone = _toConsumableArray$4(nextCalendarValues);
7349
6938
  order && (clone = orderDates(clone.filter(function(date) {
7350
6939
  return date;
7351
6940
  }), generateConfig2));
7352
- var _isSameDates = isSameDates(calendarValue(), clone), _isSameDates2 = _slicedToArray$3(_isSameDates, 2), isSameMergedDates = _isSameDates2[0], isSameStart = _isSameDates2[1];
6941
+ var _isSameDates = isSameDates(calendarValue(), clone), _isSameDates2 = _slicedToArray$1(_isSameDates, 2), isSameMergedDates = _isSameDates2[0], isSameStart = _isSameDates2[1];
7353
6942
  if (!isSameMergedDates && (setCalendarValue(clone), onCalendarChange)) {
7354
6943
  var cellTexts = getDateTexts(clone);
7355
6944
  onCalendarChange(clone, cellTexts, {
@@ -7365,7 +6954,7 @@ __name(useInnerValue, "useInnerValue");
7365
6954
  function useRangeValue(info, mergedValue, setInnerValue, getCalendarValue, triggerCalendarChange, disabled, formatList, focused, open, isInvalidateDate) {
7366
6955
  var generateConfig2 = info.generateConfig, locale = info.locale, picker = info.picker, onChange = info.onChange, allowEmpty = info.allowEmpty, order = info.order, orderOnChange = disabled.some(function(d2) {
7367
6956
  return d2;
7368
- }) ? !1 : order, _useUtil3 = useUtil(generateConfig2, locale, formatList), _useUtil4 = _slicedToArray$3(_useUtil3, 2), getDateTexts = _useUtil4[0], isSameDates = _useUtil4[1], _useSyncState3 = useSyncState(mergedValue), _useSyncState4 = _slicedToArray$3(_useSyncState3, 2), submitValue = _useSyncState4[0], setSubmitValue = _useSyncState4[1], syncWithValue = useEvent(function() {
6957
+ }) ? !1 : order, _useUtil3 = useUtil(generateConfig2, locale, formatList), _useUtil4 = _slicedToArray$1(_useUtil3, 2), getDateTexts = _useUtil4[0], isSameDates = _useUtil4[1], _useSyncState3 = useSyncState(mergedValue), _useSyncState4 = _slicedToArray$1(_useSyncState3, 2), submitValue = _useSyncState4[0], setSubmitValue = _useSyncState4[1], syncWithValue = useEvent(function() {
7369
6958
  setSubmitValue(mergedValue);
7370
6959
  });
7371
6960
  React$6.useEffect(function() {
@@ -7377,7 +6966,7 @@ function useRangeValue(info, mergedValue, setInnerValue, getCalendarValue, trigg
7377
6966
  for (var maxLen = Math.max(disabled.length, clone.length), i = 0; i < maxLen; i += 1)
7378
6967
  disabled[i] || (clone[i] = null);
7379
6968
  orderOnChange && clone[0] && clone[1] && (clone = orderDates(clone, generateConfig2)), triggerCalendarChange(clone);
7380
- var _clone = clone, _clone2 = _slicedToArray$3(_clone, 2), start = _clone2[0], end = _clone2[1], startEmpty = !start, endEmpty = !end, validateEmptyDateRange = allowEmpty ? (
6969
+ var _clone = clone, _clone2 = _slicedToArray$1(_clone, 2), start = _clone2[0], end = _clone2[1], startEmpty = !start, endEmpty = !end, validateEmptyDateRange = allowEmpty ? (
7381
6970
  // Validate empty start
7382
6971
  (!startEmpty || allowEmpty[0]) && // Validate empty end
7383
6972
  (!endEmpty || allowEmpty[1])
@@ -7397,7 +6986,7 @@ function useRangeValue(info, mergedValue, setInnerValue, getCalendarValue, trigg
7397
6986
  );
7398
6987
  if (allPassed) {
7399
6988
  setInnerValue(clone);
7400
- var _isSameDates3 = isSameDates(clone, mergedValue), _isSameDates4 = _slicedToArray$3(_isSameDates3, 1), isSameMergedDates = _isSameDates4[0];
6989
+ var _isSameDates3 = isSameDates(clone, mergedValue), _isSameDates4 = _slicedToArray$1(_isSameDates3, 1), isSameMergedDates = _isSameDates4[0];
7401
6990
  onChange && !isSameMergedDates && onChange(
7402
6991
  // Return null directly if all date are empty
7403
6992
  isNullValue && clone.every(function(val) {
@@ -7465,9 +7054,9 @@ function useTimeInfo(generateConfig2) {
7465
7054
  return [disabledConfig.disabledHours || disabledHours || emptyDisabled, disabledConfig.disabledMinutes || disabledMinutes || emptyDisabled, disabledConfig.disabledSeconds || disabledSeconds || emptyDisabled, disabledConfig.disabledMilliseconds || emptyDisabled];
7466
7055
  }, [disabledTime, disabledHours, disabledMinutes, disabledSeconds]), _React$useMemo = React$6.useMemo(function() {
7467
7056
  return getDisabledTimes(mergedDate);
7468
- }, [mergedDate, getDisabledTimes]), _React$useMemo2 = _slicedToArray$3(_React$useMemo, 4), mergedDisabledHours = _React$useMemo2[0], mergedDisabledMinutes = _React$useMemo2[1], mergedDisabledSeconds = _React$useMemo2[2], mergedDisabledMilliseconds = _React$useMemo2[3], getAllUnits = React$6.useCallback(function(getDisabledHours, getDisabledMinutes, getDisabledSeconds, getDisabledMilliseconds) {
7057
+ }, [mergedDate, getDisabledTimes]), _React$useMemo2 = _slicedToArray$1(_React$useMemo, 4), mergedDisabledHours = _React$useMemo2[0], mergedDisabledMinutes = _React$useMemo2[1], mergedDisabledSeconds = _React$useMemo2[2], mergedDisabledMilliseconds = _React$useMemo2[3], getAllUnits = React$6.useCallback(function(getDisabledHours, getDisabledMinutes, getDisabledSeconds, getDisabledMilliseconds) {
7469
7058
  var hours = generateUnits(0, 23, hourStep, hideDisabledOptions, getDisabledHours()), rowHourUnits2 = use12Hours ? hours.map(function(unit) {
7470
- return _objectSpread2$3(_objectSpread2$3({}, unit), {}, {
7059
+ return _objectSpread2$1(_objectSpread2$1({}, unit), {}, {
7471
7060
  label: leftPad(unit.value % 12 || 12, 2)
7472
7061
  });
7473
7062
  }) : hours, getMinuteUnits2 = /* @__PURE__ */ __name(function(nextHour) {
@@ -7480,12 +7069,12 @@ function useTimeInfo(generateConfig2) {
7480
7069
  return [rowHourUnits2, getMinuteUnits2, getSecondUnits2, getMillisecondUnits2];
7481
7070
  }, [hideDisabledOptions, hourStep, use12Hours, millisecondStep, minuteStep, secondStep]), _React$useMemo3 = React$6.useMemo(function() {
7482
7071
  return getAllUnits(mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds);
7483
- }, [getAllUnits, mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds]), _React$useMemo4 = _slicedToArray$3(_React$useMemo3, 4), rowHourUnits = _React$useMemo4[0], getMinuteUnits = _React$useMemo4[1], getSecondUnits = _React$useMemo4[2], getMillisecondUnits = _React$useMemo4[3], getValidTime = /* @__PURE__ */ __name(function(nextTime, certainDate) {
7072
+ }, [getAllUnits, mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds]), _React$useMemo4 = _slicedToArray$1(_React$useMemo3, 4), rowHourUnits = _React$useMemo4[0], getMinuteUnits = _React$useMemo4[1], getSecondUnits = _React$useMemo4[2], getMillisecondUnits = _React$useMemo4[3], getValidTime = /* @__PURE__ */ __name(function(nextTime, certainDate) {
7484
7073
  var getCheckHourUnits = /* @__PURE__ */ __name(function() {
7485
7074
  return rowHourUnits;
7486
7075
  }, "getCheckHourUnits2"), getCheckMinuteUnits = getMinuteUnits, getCheckSecondUnits = getSecondUnits, getCheckMillisecondUnits = getMillisecondUnits;
7487
7076
  if (certainDate) {
7488
- var _getDisabledTimes = getDisabledTimes(certainDate), _getDisabledTimes2 = _slicedToArray$3(_getDisabledTimes, 4), targetDisabledHours = _getDisabledTimes2[0], targetDisabledMinutes = _getDisabledTimes2[1], targetDisabledSeconds = _getDisabledTimes2[2], targetDisabledMilliseconds = _getDisabledTimes2[3], _getAllUnits = getAllUnits(targetDisabledHours, targetDisabledMinutes, targetDisabledSeconds, targetDisabledMilliseconds), _getAllUnits2 = _slicedToArray$3(_getAllUnits, 4), targetRowHourUnits = _getAllUnits2[0], targetGetMinuteUnits = _getAllUnits2[1], targetGetSecondUnits = _getAllUnits2[2], targetGetMillisecondUnits = _getAllUnits2[3];
7077
+ var _getDisabledTimes = getDisabledTimes(certainDate), _getDisabledTimes2 = _slicedToArray$1(_getDisabledTimes, 4), targetDisabledHours = _getDisabledTimes2[0], targetDisabledMinutes = _getDisabledTimes2[1], targetDisabledSeconds = _getDisabledTimes2[2], targetDisabledMilliseconds = _getDisabledTimes2[3], _getAllUnits = getAllUnits(targetDisabledHours, targetDisabledMinutes, targetDisabledSeconds, targetDisabledMilliseconds), _getAllUnits2 = _slicedToArray$1(_getAllUnits, 4), targetRowHourUnits = _getAllUnits2[0], targetGetMinuteUnits = _getAllUnits2[1], targetGetSecondUnits = _getAllUnits2[2], targetGetMillisecondUnits = _getAllUnits2[3];
7489
7078
  getCheckHourUnits = /* @__PURE__ */ __name(function() {
7490
7079
  return targetRowHourUnits;
7491
7080
  }, "getCheckHourUnits2"), getCheckMinuteUnits = targetGetMinuteUnits, getCheckSecondUnits = targetGetSecondUnits, getCheckMillisecondUnits = targetGetMillisecondUnits;
@@ -7505,7 +7094,7 @@ function useTimeInfo(generateConfig2) {
7505
7094
  }
7506
7095
  __name(useTimeInfo, "useTimeInfo");
7507
7096
  function Footer(props) {
7508
- var mode = props.mode, internalMode = props.internalMode, renderExtraFooter = props.renderExtraFooter, showNow = props.showNow, showTime = props.showTime, onSubmit = props.onSubmit, onNow = props.onNow, invalid = props.invalid, needConfirm = props.needConfirm, generateConfig2 = props.generateConfig, disabledDate = props.disabledDate, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, locale = _React$useContext.locale, _React$useContext$but = _React$useContext.button, Button2 = _React$useContext$but === void 0 ? "button" : _React$useContext$but, now = generateConfig2.getNow(), _useTimeInfo = useTimeInfo(generateConfig2, showTime, now), _useTimeInfo2 = _slicedToArray$3(_useTimeInfo, 1), getValidTime = _useTimeInfo2[0], extraNode = renderExtraFooter == null ? void 0 : renderExtraFooter(mode), nowDisabled = disabledDate(now, {
7097
+ var mode = props.mode, internalMode = props.internalMode, renderExtraFooter = props.renderExtraFooter, showNow = props.showNow, showTime = props.showTime, onSubmit = props.onSubmit, onNow = props.onNow, invalid = props.invalid, needConfirm = props.needConfirm, generateConfig2 = props.generateConfig, disabledDate = props.disabledDate, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, locale = _React$useContext.locale, _React$useContext$but = _React$useContext.button, Button2 = _React$useContext$but === void 0 ? "button" : _React$useContext$but, now = generateConfig2.getNow(), _useTimeInfo = useTimeInfo(generateConfig2, showTime, now), _useTimeInfo2 = _slicedToArray$1(_useTimeInfo, 1), getValidTime = _useTimeInfo2[0], extraNode = renderExtraFooter == null ? void 0 : renderExtraFooter(mode), nowDisabled = disabledDate(now, {
7509
7098
  type: mode
7510
7099
  }), onInternalNow = /* @__PURE__ */ __name(function() {
7511
7100
  if (!nowDisabled) {
@@ -7591,7 +7180,7 @@ function PanelBody(props) {
7591
7180
  col === 0 && (rowStartDate = currentDate, prefixColumn && rowNode.push(prefixColumn(rowStartDate)));
7592
7181
  var inRange = !1, rangeStart = !1, rangeEnd = !1;
7593
7182
  if (cellSelection && hoverRangeValue) {
7594
- var _hoverRangeValue = _slicedToArray$3(hoverRangeValue, 2), hoverStart = _hoverRangeValue[0], hoverEnd = _hoverRangeValue[1];
7183
+ var _hoverRangeValue = _slicedToArray$1(hoverRangeValue, 2), hoverStart = _hoverRangeValue[0], hoverEnd = _hoverRangeValue[1];
7595
7184
  inRange = isInRange(generateConfig2, hoverStart, hoverEnd, currentDate), rangeStart = isSame(generateConfig2, locale, currentDate, hoverStart, type2), rangeEnd = isSame(generateConfig2, locale, currentDate, hoverEnd, type2);
7596
7185
  }
7597
7186
  var title = titleFormat ? formatValue(currentDate, {
@@ -7604,7 +7193,7 @@ function PanelBody(props) {
7604
7193
  rowNode.push(/* @__PURE__ */ React$6.createElement("td", {
7605
7194
  key: col,
7606
7195
  title,
7607
- className: clsx(cellPrefixCls, _objectSpread2$3(_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d({}, "".concat(cellPrefixCls, "-disabled"), disabled), "".concat(cellPrefixCls, "-hover"), (hoverValue || []).some(function(date) {
7196
+ className: clsx(cellPrefixCls, _objectSpread2$1(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b({}, "".concat(cellPrefixCls, "-disabled"), disabled), "".concat(cellPrefixCls, "-hover"), (hoverValue || []).some(function(date) {
7608
7197
  return isSame(generateConfig2, locale, currentDate, date, type2);
7609
7198
  })), "".concat(cellPrefixCls, "-in-range"), inRange && !rangeStart && !rangeEnd), "".concat(cellPrefixCls, "-range-start"), rangeStart), "".concat(cellPrefixCls, "-range-end"), rangeEnd), "".concat(prefixCls, "-cell-selected"), !hoverRangeValue && // WeekPicker use row instead
7610
7199
  type2 !== "week" && matchValues(currentDate)), getCellClassName(currentDate))),
@@ -7721,13 +7310,13 @@ function PanelHeader(props) {
7721
7310
  }
7722
7311
  __name(PanelHeader, "PanelHeader");
7723
7312
  function DatePanel$1(props) {
7724
- var prefixCls = props.prefixCls, _props$panelName = props.panelName, panelName = _props$panelName === void 0 ? "date" : _props$panelName, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, _props$mode = props.mode, mode = _props$mode === void 0 ? "date" : _props$mode, disabledDate = props.disabledDate, onSelect2 = props.onSelect, onHover = props.onHover, showWeek = props.showWeek, panelPrefixCls = "".concat(prefixCls, "-").concat(panelName, "-panel"), cellPrefixCls = "".concat(prefixCls, "-cell"), isWeek = mode === "week", _useInfo = useInfo(props, mode), _useInfo2 = _slicedToArray$3(_useInfo, 2), info = _useInfo2[0], now = _useInfo2[1], weekFirstDay = generateConfig2.locale.getWeekFirstDay(locale.locale), monthStartDate = generateConfig2.setDate(pickerValue, 1), baseDate = getWeekStartDate(locale.locale, generateConfig2, monthStartDate), month = generateConfig2.getMonth(pickerValue), showPrefixColumn = showWeek === void 0 ? isWeek : showWeek, prefixColumn = showPrefixColumn ? function(date) {
7313
+ var prefixCls = props.prefixCls, _props$panelName = props.panelName, panelName = _props$panelName === void 0 ? "date" : _props$panelName, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, _props$mode = props.mode, mode = _props$mode === void 0 ? "date" : _props$mode, disabledDate = props.disabledDate, onSelect2 = props.onSelect, onHover = props.onHover, showWeek = props.showWeek, panelPrefixCls = "".concat(prefixCls, "-").concat(panelName, "-panel"), cellPrefixCls = "".concat(prefixCls, "-cell"), isWeek = mode === "week", _useInfo = useInfo(props, mode), _useInfo2 = _slicedToArray$1(_useInfo, 2), info = _useInfo2[0], now = _useInfo2[1], weekFirstDay = generateConfig2.locale.getWeekFirstDay(locale.locale), monthStartDate = generateConfig2.setDate(pickerValue, 1), baseDate = getWeekStartDate(locale.locale, generateConfig2, monthStartDate), month = generateConfig2.getMonth(pickerValue), showPrefixColumn = showWeek === void 0 ? isWeek : showWeek, prefixColumn = showPrefixColumn ? function(date) {
7725
7314
  var disabled = disabledDate == null ? void 0 : disabledDate(date, {
7726
7315
  type: "week"
7727
7316
  });
7728
7317
  return /* @__PURE__ */ React$6.createElement("td", {
7729
7318
  key: "week",
7730
- className: clsx(cellPrefixCls, "".concat(cellPrefixCls, "-week"), _defineProperty$d({}, "".concat(cellPrefixCls, "-disabled"), disabled)),
7319
+ className: clsx(cellPrefixCls, "".concat(cellPrefixCls, "-week"), _defineProperty$b({}, "".concat(cellPrefixCls, "-disabled"), disabled)),
7731
7320
  onClick: /* @__PURE__ */ __name(function() {
7732
7321
  disabled || onSelect2(date);
7733
7322
  }, "onClick"),
@@ -7758,7 +7347,7 @@ function DatePanel$1(props) {
7758
7347
  generateConfig: generateConfig2
7759
7348
  });
7760
7349
  }, "getCellText"), getCellClassName = /* @__PURE__ */ __name(function(date) {
7761
- var classObj = _defineProperty$d(_defineProperty$d({}, "".concat(prefixCls, "-cell-in-view"), isSameMonth(generateConfig2, date, pickerValue)), "".concat(prefixCls, "-cell-today"), isSameDate(generateConfig2, date, now));
7350
+ var classObj = _defineProperty$b(_defineProperty$b({}, "".concat(prefixCls, "-cell-in-view"), isSameMonth(generateConfig2, date, pickerValue)), "".concat(prefixCls, "-cell-today"), isSameDate(generateConfig2, date, now));
7762
7351
  return classObj;
7763
7352
  }, "getCellClassName"), monthsLocale = locale.shortMonths || (generateConfig2.locale.getShortMonths ? generateConfig2.locale.getShortMonths(locale.locale) : []), yearNode = /* @__PURE__ */ React$6.createElement("button", {
7764
7353
  type: "button",
@@ -7806,7 +7395,7 @@ function DatePanel$1(props) {
7806
7395
  var clone = generateConfig2.setDate(date, 1);
7807
7396
  return clone = generateConfig2.addMonth(clone, 1), generateConfig2.addDate(clone, -1);
7808
7397
  }, "getEnd")
7809
- }, monthYearNodes), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$7({
7398
+ }, monthYearNodes), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$6({
7810
7399
  titleFormat: locale.fieldDateFormat
7811
7400
  }, props, {
7812
7401
  colNum: WEEK_DAY_COUNT,
@@ -7858,7 +7447,7 @@ var SCROLL_DELAY = 300;
7858
7447
  function TimeColumn(props) {
7859
7448
  var units = props.units, value = props.value, optionalValue = props.optionalValue, type2 = props.type, onChange = props.onChange, onHover = props.onHover, onDblClick = props.onDblClick, changeOnScroll = props.changeOnScroll, _usePanelContext = usePanelContext(), prefixCls = _usePanelContext.prefixCls, cellRender = _usePanelContext.cellRender, now = _usePanelContext.now, locale = _usePanelContext.locale, panelPrefixCls = "".concat(prefixCls, "-time-panel"), cellPrefixCls = "".concat(prefixCls, "-time-panel-cell"), ulRef = React$6.useRef(null), checkDelayRef = React$6.useRef(), clearDelayCheck = /* @__PURE__ */ __name(function() {
7860
7449
  clearTimeout(checkDelayRef.current);
7861
- }, "clearDelayCheck"), _useScrollTo = useScrollTo$1(ulRef, value != null ? value : optionalValue), _useScrollTo2 = _slicedToArray$3(_useScrollTo, 3), syncScroll = _useScrollTo2[0], stopScroll = _useScrollTo2[1], isScrolling = _useScrollTo2[2];
7450
+ }, "clearDelayCheck"), _useScrollTo = useScrollTo$1(ulRef, value != null ? value : optionalValue), _useScrollTo2 = _slicedToArray$1(_useScrollTo, 3), syncScroll = _useScrollTo2[0], stopScroll = _useScrollTo2[1], isScrolling = _useScrollTo2[2];
7862
7451
  useLayoutEffect$1(function() {
7863
7452
  return syncScroll(), clearDelayCheck(), function() {
7864
7453
  stopScroll(), clearDelayCheck();
@@ -7889,7 +7478,7 @@ function TimeColumn(props) {
7889
7478
  }, label);
7890
7479
  return /* @__PURE__ */ React$6.createElement("li", {
7891
7480
  key: unitValue,
7892
- className: clsx(cellPrefixCls, _defineProperty$d(_defineProperty$d({}, "".concat(cellPrefixCls, "-selected"), value === unitValue), "".concat(cellPrefixCls, "-disabled"), disabled)),
7481
+ className: clsx(cellPrefixCls, _defineProperty$b(_defineProperty$b({}, "".concat(cellPrefixCls, "-selected"), value === unitValue), "".concat(cellPrefixCls, "-disabled"), disabled)),
7893
7482
  onClick: /* @__PURE__ */ __name(function() {
7894
7483
  disabled || onChange(unitValue);
7895
7484
  }, "onClick"),
@@ -7919,10 +7508,11 @@ function isAM(hour) {
7919
7508
  }
7920
7509
  __name(isAM, "isAM");
7921
7510
  function TimePanelBody(props) {
7922
- var showHour = props.showHour, showMinute = props.showMinute, showSecond = props.showSecond, showMillisecond = props.showMillisecond, showMeridiem = props.use12Hours, changeOnScroll = props.changeOnScroll, _usePanelContext = usePanelContext(), prefixCls = _usePanelContext.prefixCls, values3 = _usePanelContext.values, generateConfig2 = _usePanelContext.generateConfig, locale = _usePanelContext.locale, onSelect2 = _usePanelContext.onSelect, onHover = _usePanelContext.onHover, pickerValue = _usePanelContext.pickerValue, value = (values3 == null ? void 0 : values3[0]) || null, _React$useContext = React$6.useContext(PickerHackContext), onCellDblClick = _React$useContext.onCellDblClick, _useTimeInfo = useTimeInfo(generateConfig2, props, value), _useTimeInfo2 = _slicedToArray$3(_useTimeInfo, 5), getValidTime = _useTimeInfo2[0], rowHourUnits = _useTimeInfo2[1], getMinuteUnits = _useTimeInfo2[2], getSecondUnits = _useTimeInfo2[3], getMillisecondUnits = _useTimeInfo2[4], getUnitValue = /* @__PURE__ */ __name(function(func) {
7511
+ var showHour = props.showHour, showMinute = props.showMinute, showSecond = props.showSecond, showMillisecond = props.showMillisecond, showMeridiem = props.use12Hours, changeOnScroll = props.changeOnScroll, _usePanelContext = usePanelContext(), prefixCls = _usePanelContext.prefixCls, values3 = _usePanelContext.values, generateConfig2 = _usePanelContext.generateConfig, locale = _usePanelContext.locale, onSelect2 = _usePanelContext.onSelect, _usePanelContext$onHo = _usePanelContext.onHover, onHover = _usePanelContext$onHo === void 0 ? function() {
7512
+ } : _usePanelContext$onHo, pickerValue = _usePanelContext.pickerValue, value = (values3 == null ? void 0 : values3[0]) || null, _React$useContext = React$6.useContext(PickerHackContext), onCellDblClick = _React$useContext.onCellDblClick, _useTimeInfo = useTimeInfo(generateConfig2, props, value), _useTimeInfo2 = _slicedToArray$1(_useTimeInfo, 5), getValidTime = _useTimeInfo2[0], rowHourUnits = _useTimeInfo2[1], getMinuteUnits = _useTimeInfo2[2], getSecondUnits = _useTimeInfo2[3], getMillisecondUnits = _useTimeInfo2[4], getUnitValue = /* @__PURE__ */ __name(function(func) {
7923
7513
  var valueUnitVal = value && generateConfig2[func](value), pickerUnitValue = pickerValue && generateConfig2[func](pickerValue);
7924
7514
  return [valueUnitVal, pickerUnitValue];
7925
- }, "getUnitValue"), _getUnitValue = getUnitValue("getHour"), _getUnitValue2 = _slicedToArray$3(_getUnitValue, 2), hour = _getUnitValue2[0], pickerHour = _getUnitValue2[1], _getUnitValue3 = getUnitValue("getMinute"), _getUnitValue4 = _slicedToArray$3(_getUnitValue3, 2), minute = _getUnitValue4[0], pickerMinute = _getUnitValue4[1], _getUnitValue5 = getUnitValue("getSecond"), _getUnitValue6 = _slicedToArray$3(_getUnitValue5, 2), second = _getUnitValue6[0], pickerSecond = _getUnitValue6[1], _getUnitValue7 = getUnitValue("getMillisecond"), _getUnitValue8 = _slicedToArray$3(_getUnitValue7, 2), millisecond = _getUnitValue8[0], pickerMillisecond = _getUnitValue8[1], meridiem = hour === null ? null : isAM(hour) ? "am" : "pm", hourUnits = React$6.useMemo(function() {
7515
+ }, "getUnitValue"), _getUnitValue = getUnitValue("getHour"), _getUnitValue2 = _slicedToArray$1(_getUnitValue, 2), hour = _getUnitValue2[0], pickerHour = _getUnitValue2[1], _getUnitValue3 = getUnitValue("getMinute"), _getUnitValue4 = _slicedToArray$1(_getUnitValue3, 2), minute = _getUnitValue4[0], pickerMinute = _getUnitValue4[1], _getUnitValue5 = getUnitValue("getSecond"), _getUnitValue6 = _slicedToArray$1(_getUnitValue5, 2), second = _getUnitValue6[0], pickerSecond = _getUnitValue6[1], _getUnitValue7 = getUnitValue("getMillisecond"), _getUnitValue8 = _slicedToArray$1(_getUnitValue7, 2), millisecond = _getUnitValue8[0], pickerMillisecond = _getUnitValue8[1], meridiem = hour === null ? null : isAM(hour) ? "am" : "pm", hourUnits = React$6.useMemo(function() {
7926
7516
  return showMeridiem ? isAM(hour) ? rowHourUnits.filter(function(h2) {
7927
7517
  return isAM(h2.value);
7928
7518
  }) : rowHourUnits.filter(function(h2) {
@@ -8012,35 +7602,35 @@ function TimePanelBody(props) {
8012
7602
  };
8013
7603
  return /* @__PURE__ */ React$6.createElement("div", {
8014
7604
  className: "".concat(prefixCls, "-content")
8015
- }, showHour && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$7({
7605
+ }, showHour && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$6({
8016
7606
  units: hourUnits,
8017
7607
  value: hour,
8018
7608
  optionalValue: pickerHour,
8019
7609
  type: "hour",
8020
7610
  onChange: onHourChange,
8021
7611
  onHover: onHourHover
8022
- }, sharedColumnProps)), showMinute && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$7({
7612
+ }, sharedColumnProps)), showMinute && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$6({
8023
7613
  units: minuteUnits,
8024
7614
  value: minute,
8025
7615
  optionalValue: pickerMinute,
8026
7616
  type: "minute",
8027
7617
  onChange: onMinuteChange,
8028
7618
  onHover: onMinuteHover
8029
- }, sharedColumnProps)), showSecond && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$7({
7619
+ }, sharedColumnProps)), showSecond && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$6({
8030
7620
  units: secondUnits,
8031
7621
  value: second,
8032
7622
  optionalValue: pickerSecond,
8033
7623
  type: "second",
8034
7624
  onChange: onSecondChange,
8035
7625
  onHover: onSecondHover
8036
- }, sharedColumnProps)), showMillisecond && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$7({
7626
+ }, sharedColumnProps)), showMillisecond && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$6({
8037
7627
  units: millisecondUnits,
8038
7628
  value: millisecond,
8039
7629
  optionalValue: pickerMillisecond,
8040
7630
  type: "millisecond",
8041
7631
  onChange: onMillisecondChange,
8042
7632
  onHover: onMillisecondHover
8043
- }, sharedColumnProps)), showMeridiem && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$7({
7633
+ }, sharedColumnProps)), showMeridiem && /* @__PURE__ */ React$6.createElement(TimeColumn, _extends$6({
8044
7634
  units: meridiemUnits,
8045
7635
  value: meridiem,
8046
7636
  type: "meridiem",
@@ -8050,7 +7640,7 @@ function TimePanelBody(props) {
8050
7640
  }
8051
7641
  __name(TimePanelBody, "TimePanelBody");
8052
7642
  function TimePanel(props) {
8053
- var prefixCls = props.prefixCls, value = props.value, locale = props.locale, generateConfig2 = props.generateConfig, showTime = props.showTime, _ref = showTime || {}, format2 = _ref.format, panelPrefixCls = "".concat(prefixCls, "-time-panel"), _useInfo = useInfo(props, "time"), _useInfo2 = _slicedToArray$3(_useInfo, 1), info = _useInfo2[0];
7643
+ var prefixCls = props.prefixCls, value = props.value, locale = props.locale, generateConfig2 = props.generateConfig, showTime = props.showTime, _ref = showTime || {}, format2 = _ref.format, panelPrefixCls = "".concat(prefixCls, "-time-panel"), _useInfo = useInfo(props, "time"), _useInfo2 = _slicedToArray$1(_useInfo, 1), info = _useInfo2[0];
8054
7644
  return /* @__PURE__ */ React$6.createElement(PanelContext.Provider, {
8055
7645
  value: info
8056
7646
  }, /* @__PURE__ */ React$6.createElement("div", {
@@ -8063,7 +7653,7 @@ function TimePanel(props) {
8063
7653
  }
8064
7654
  __name(TimePanel, "TimePanel");
8065
7655
  function DateTimePanel(props) {
8066
- var prefixCls = props.prefixCls, generateConfig2 = props.generateConfig, showTime = props.showTime, onSelect2 = props.onSelect, value = props.value, pickerValue = props.pickerValue, onHover = props.onHover, panelPrefixCls = "".concat(prefixCls, "-datetime-panel"), _useTimeInfo = useTimeInfo(generateConfig2, showTime), _useTimeInfo2 = _slicedToArray$3(_useTimeInfo, 1), getValidTime = _useTimeInfo2[0], mergeTime = /* @__PURE__ */ __name(function(date) {
7656
+ var prefixCls = props.prefixCls, generateConfig2 = props.generateConfig, showTime = props.showTime, onSelect2 = props.onSelect, value = props.value, pickerValue = props.pickerValue, onHover = props.onHover, panelPrefixCls = "".concat(prefixCls, "-datetime-panel"), _useTimeInfo = useTimeInfo(generateConfig2, showTime), _useTimeInfo2 = _slicedToArray$1(_useTimeInfo, 1), getValidTime = _useTimeInfo2[0], mergeTime = /* @__PURE__ */ __name(function(date) {
8067
7657
  return value ? fillTime(generateConfig2, date, value) : fillTime(generateConfig2, date, pickerValue);
8068
7658
  }, "mergeTime"), onDateHover = /* @__PURE__ */ __name(function(date) {
8069
7659
  onHover == null || onHover(date && mergeTime(date));
@@ -8073,14 +7663,14 @@ function DateTimePanel(props) {
8073
7663
  }, "onDateSelect");
8074
7664
  return /* @__PURE__ */ React$6.createElement("div", {
8075
7665
  className: panelPrefixCls
8076
- }, /* @__PURE__ */ React$6.createElement(DatePanel$1, _extends$7({}, props, {
7666
+ }, /* @__PURE__ */ React$6.createElement(DatePanel$1, _extends$6({}, props, {
8077
7667
  onSelect: onDateSelect,
8078
7668
  onHover: onDateHover
8079
7669
  })), /* @__PURE__ */ React$6.createElement(TimePanel, props));
8080
7670
  }
8081
7671
  __name(DateTimePanel, "DateTimePanel");
8082
7672
  function DecadePanel(props) {
8083
- var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, panelPrefixCls = "".concat(prefixCls, "-decade-panel"), _useInfo = useInfo(props, "decade"), _useInfo2 = _slicedToArray$3(_useInfo, 1), info = _useInfo2[0], getStartYear = /* @__PURE__ */ __name(function(date) {
7673
+ var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, panelPrefixCls = "".concat(prefixCls, "-decade-panel"), _useInfo = useInfo(props, "decade"), _useInfo2 = _slicedToArray$1(_useInfo, 1), info = _useInfo2[0], getStartYear = /* @__PURE__ */ __name(function(date) {
8084
7674
  var startYear = Math.floor(generateConfig2.getYear(pickerValue) / 100) * 100;
8085
7675
  return generateConfig2.setYear(date, startYear);
8086
7676
  }, "getStartYear"), getEndYear = /* @__PURE__ */ __name(function(date) {
@@ -8100,7 +7690,7 @@ function DecadePanel(props) {
8100
7690
  });
8101
7691
  return "".concat(startYearStr, "-").concat(endYearStr);
8102
7692
  }, "getCellText"), getCellClassName = /* @__PURE__ */ __name(function(date) {
8103
- return _defineProperty$d({}, "".concat(prefixCls, "-cell-in-view"), isSameDecade(generateConfig2, date, startYearDate) || isSameDecade(generateConfig2, date, endYearDate) || isInRange(generateConfig2, startYearDate, endYearDate, date));
7693
+ return _defineProperty$b({}, "".concat(prefixCls, "-cell-in-view"), isSameDecade(generateConfig2, date, startYearDate) || isSameDecade(generateConfig2, date, endYearDate) || isInRange(generateConfig2, startYearDate, endYearDate, date));
8104
7694
  }, "getCellClassName"), mergedDisabledDate = disabledDate ? function(currentDate, disabledInfo) {
8105
7695
  var baseStartDate = generateConfig2.setDate(currentDate, 1), baseStartMonth = generateConfig2.setMonth(baseStartDate, 0), baseStartYear = generateConfig2.setYear(baseStartMonth, Math.floor(generateConfig2.getYear(baseStartMonth) / 10) * 10), baseEndYear = generateConfig2.addYear(baseStartYear, 10), baseEndDate = generateConfig2.addDate(baseEndYear, -1);
8106
7696
  return disabledDate(baseStartYear, disabledInfo) && disabledDate(baseEndDate, disabledInfo);
@@ -8124,7 +7714,7 @@ function DecadePanel(props) {
8124
7714
  onChange: onPickerValueChange,
8125
7715
  getStart: getStartYear,
8126
7716
  getEnd: getEndYear
8127
- }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$7({}, props, {
7717
+ }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$6({}, props, {
8128
7718
  disabledDate: mergedDisabledDate,
8129
7719
  colNum: 3,
8130
7720
  rowNum: 4,
@@ -8136,7 +7726,7 @@ function DecadePanel(props) {
8136
7726
  }
8137
7727
  __name(DecadePanel, "DecadePanel");
8138
7728
  function MonthPanel(props) {
8139
- var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-month-panel"), _useInfo = useInfo(props, "month"), _useInfo2 = _slicedToArray$3(_useInfo, 1), info = _useInfo2[0], baseDate = generateConfig2.setMonth(pickerValue, 0), monthsLocale = locale.shortMonths || (generateConfig2.locale.getShortMonths ? generateConfig2.locale.getShortMonths(locale.locale) : []), getCellDate = /* @__PURE__ */ __name(function(date, offset2) {
7729
+ var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-month-panel"), _useInfo = useInfo(props, "month"), _useInfo2 = _slicedToArray$1(_useInfo, 1), info = _useInfo2[0], baseDate = generateConfig2.setMonth(pickerValue, 0), monthsLocale = locale.shortMonths || (generateConfig2.locale.getShortMonths ? generateConfig2.locale.getShortMonths(locale.locale) : []), getCellDate = /* @__PURE__ */ __name(function(date, offset2) {
8140
7730
  return generateConfig2.addMonth(date, offset2);
8141
7731
  }, "getCellDate"), getCellText = /* @__PURE__ */ __name(function(date) {
8142
7732
  var month = generateConfig2.getMonth(date);
@@ -8146,7 +7736,7 @@ function MonthPanel(props) {
8146
7736
  generateConfig: generateConfig2
8147
7737
  }) : monthsLocale[month];
8148
7738
  }, "getCellText"), getCellClassName = /* @__PURE__ */ __name(function() {
8149
- return _defineProperty$d({}, "".concat(prefixCls, "-cell-in-view"), !0);
7739
+ return _defineProperty$b({}, "".concat(prefixCls, "-cell-in-view"), !0);
8150
7740
  }, "getCellClassName"), mergedDisabledDate = disabledDate ? function(currentDate, disabledInfo) {
8151
7741
  var startDate = generateConfig2.setDate(currentDate, 1), nextMonthStartDate = generateConfig2.setMonth(startDate, generateConfig2.getMonth(startDate) + 1), endDate = generateConfig2.addDate(nextMonthStartDate, -1);
8152
7742
  return disabledDate(startDate, disabledInfo) && disabledDate(endDate, disabledInfo);
@@ -8179,7 +7769,7 @@ function MonthPanel(props) {
8179
7769
  getEnd: /* @__PURE__ */ __name(function(date) {
8180
7770
  return generateConfig2.setMonth(date, 11);
8181
7771
  }, "getEnd")
8182
- }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$7({}, props, {
7772
+ }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$6({}, props, {
8183
7773
  disabledDate: mergedDisabledDate,
8184
7774
  titleFormat: locale.fieldMonthFormat,
8185
7775
  colNum: 3,
@@ -8192,7 +7782,7 @@ function MonthPanel(props) {
8192
7782
  }
8193
7783
  __name(MonthPanel, "MonthPanel");
8194
7784
  function QuarterPanel(props) {
8195
- var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-quarter-panel"), _useInfo = useInfo(props, "quarter"), _useInfo2 = _slicedToArray$3(_useInfo, 1), info = _useInfo2[0], baseDate = generateConfig2.setMonth(pickerValue, 0), getCellDate = /* @__PURE__ */ __name(function(date, offset2) {
7785
+ var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-quarter-panel"), _useInfo = useInfo(props, "quarter"), _useInfo2 = _slicedToArray$1(_useInfo, 1), info = _useInfo2[0], baseDate = generateConfig2.setMonth(pickerValue, 0), getCellDate = /* @__PURE__ */ __name(function(date, offset2) {
8196
7786
  return generateConfig2.addMonth(date, offset2 * 3);
8197
7787
  }, "getCellDate"), getCellText = /* @__PURE__ */ __name(function(date) {
8198
7788
  return formatValue(date, {
@@ -8201,7 +7791,7 @@ function QuarterPanel(props) {
8201
7791
  generateConfig: generateConfig2
8202
7792
  });
8203
7793
  }, "getCellText"), getCellClassName = /* @__PURE__ */ __name(function() {
8204
- return _defineProperty$d({}, "".concat(prefixCls, "-cell-in-view"), !0);
7794
+ return _defineProperty$b({}, "".concat(prefixCls, "-cell-in-view"), !0);
8205
7795
  }, "getCellClassName"), yearNode = /* @__PURE__ */ React$6.createElement("button", {
8206
7796
  type: "button",
8207
7797
  key: "year",
@@ -8231,7 +7821,7 @@ function QuarterPanel(props) {
8231
7821
  getEnd: /* @__PURE__ */ __name(function(date) {
8232
7822
  return generateConfig2.setMonth(date, 11);
8233
7823
  }, "getEnd")
8234
- }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$7({}, props, {
7824
+ }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$6({}, props, {
8235
7825
  titleFormat: locale.fieldQuarterFormat,
8236
7826
  colNum: 4,
8237
7827
  rowNum: 1,
@@ -8246,19 +7836,19 @@ function WeekPanel(props) {
8246
7836
  var prefixCls = props.prefixCls, generateConfig2 = props.generateConfig, locale = props.locale, value = props.value, hoverValue = props.hoverValue, hoverRangeValue = props.hoverRangeValue, localeName = locale.locale, rowPrefixCls = "".concat(prefixCls, "-week-panel-row"), rowClassName = /* @__PURE__ */ __name(function(currentDate) {
8247
7837
  var rangeCls = {};
8248
7838
  if (hoverRangeValue) {
8249
- var _hoverRangeValue = _slicedToArray$3(hoverRangeValue, 2), rangeStart = _hoverRangeValue[0], rangeEnd = _hoverRangeValue[1], isRangeStart = isSameWeek(generateConfig2, localeName, rangeStart, currentDate), isRangeEnd = isSameWeek(generateConfig2, localeName, rangeEnd, currentDate);
7839
+ var _hoverRangeValue = _slicedToArray$1(hoverRangeValue, 2), rangeStart = _hoverRangeValue[0], rangeEnd = _hoverRangeValue[1], isRangeStart = isSameWeek(generateConfig2, localeName, rangeStart, currentDate), isRangeEnd = isSameWeek(generateConfig2, localeName, rangeEnd, currentDate);
8250
7840
  rangeCls["".concat(rowPrefixCls, "-range-start")] = isRangeStart, rangeCls["".concat(rowPrefixCls, "-range-end")] = isRangeEnd, rangeCls["".concat(rowPrefixCls, "-range-hover")] = !isRangeStart && !isRangeEnd && isInRange(generateConfig2, rangeStart, rangeEnd, currentDate);
8251
7841
  }
8252
7842
  return hoverValue && (rangeCls["".concat(rowPrefixCls, "-hover")] = hoverValue.some(function(date) {
8253
7843
  return isSameWeek(generateConfig2, localeName, currentDate, date);
8254
7844
  })), clsx(
8255
7845
  rowPrefixCls,
8256
- _defineProperty$d({}, "".concat(rowPrefixCls, "-selected"), !hoverRangeValue && isSameWeek(generateConfig2, localeName, value, currentDate)),
7846
+ _defineProperty$b({}, "".concat(rowPrefixCls, "-selected"), !hoverRangeValue && isSameWeek(generateConfig2, localeName, value, currentDate)),
8257
7847
  // Patch for hover range
8258
7848
  rangeCls
8259
7849
  );
8260
7850
  }, "rowClassName");
8261
- return /* @__PURE__ */ React$6.createElement(DatePanel$1, _extends$7({}, props, {
7851
+ return /* @__PURE__ */ React$6.createElement(DatePanel$1, _extends$6({}, props, {
8262
7852
  mode: "week",
8263
7853
  panelName: "week",
8264
7854
  rowClassName
@@ -8266,7 +7856,7 @@ function WeekPanel(props) {
8266
7856
  }
8267
7857
  __name(WeekPanel, "WeekPanel");
8268
7858
  function YearPanel(props) {
8269
- var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-year-panel"), _useInfo = useInfo(props, "year"), _useInfo2 = _slicedToArray$3(_useInfo, 1), info = _useInfo2[0], getStartYear = /* @__PURE__ */ __name(function(date) {
7859
+ var prefixCls = props.prefixCls, locale = props.locale, generateConfig2 = props.generateConfig, pickerValue = props.pickerValue, disabledDate = props.disabledDate, onPickerValueChange = props.onPickerValueChange, onModeChange = props.onModeChange, panelPrefixCls = "".concat(prefixCls, "-year-panel"), _useInfo = useInfo(props, "year"), _useInfo2 = _slicedToArray$1(_useInfo, 1), info = _useInfo2[0], getStartYear = /* @__PURE__ */ __name(function(date) {
8270
7860
  var startYear = Math.floor(generateConfig2.getYear(pickerValue) / 10) * 10;
8271
7861
  return generateConfig2.setYear(date, startYear);
8272
7862
  }, "getStartYear"), getEndYear = /* @__PURE__ */ __name(function(date) {
@@ -8281,7 +7871,7 @@ function YearPanel(props) {
8281
7871
  generateConfig: generateConfig2
8282
7872
  });
8283
7873
  }, "getCellText"), getCellClassName = /* @__PURE__ */ __name(function(date) {
8284
- return _defineProperty$d({}, "".concat(prefixCls, "-cell-in-view"), isSameYear(generateConfig2, date, startYearDate) || isSameYear(generateConfig2, date, endYearDate) || isInRange(generateConfig2, startYearDate, endYearDate, date));
7874
+ return _defineProperty$b({}, "".concat(prefixCls, "-cell-in-view"), isSameYear(generateConfig2, date, startYearDate) || isSameYear(generateConfig2, date, endYearDate) || isInRange(generateConfig2, startYearDate, endYearDate, date));
8285
7875
  }, "getCellClassName"), mergedDisabledDate = disabledDate ? function(currentDate, disabledInfo) {
8286
7876
  var startMonth = generateConfig2.setMonth(currentDate, 0), startDate = generateConfig2.setDate(startMonth, 1), endMonth = generateConfig2.addYear(startDate, 1), endDate = generateConfig2.addDate(endMonth, -1);
8287
7877
  return disabledDate(startDate, disabledInfo) && disabledDate(endDate, disabledInfo);
@@ -8314,7 +7904,7 @@ function YearPanel(props) {
8314
7904
  onChange: onPickerValueChange,
8315
7905
  getStart: getStartYear,
8316
7906
  getEnd: getEndYear
8317
- }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$7({}, props, {
7907
+ }, yearNode), /* @__PURE__ */ React$6.createElement(PanelBody, _extends$6({}, props, {
8318
7908
  disabledDate: mergedDisabledDate,
8319
7909
  titleFormat: locale.fieldYearFormat,
8320
7910
  colNum: 3,
@@ -8343,16 +7933,16 @@ function PickerPanel(props, ref) {
8343
7933
  nativeElement: rootRef.current
8344
7934
  };
8345
7935
  });
8346
- var _getTimeProps = getTimeProps(props), _getTimeProps2 = _slicedToArray$3(_getTimeProps, 4), timeProps = _getTimeProps2[0], localeTimeProps = _getTimeProps2[1], showTimeFormat = _getTimeProps2[2], propFormat = _getTimeProps2[3], filledLocale = useLocale(locale, localeTimeProps), internalPicker = picker === "date" && showTime ? "datetime" : picker, mergedShowTime = React$6.useMemo(function() {
7936
+ var _getTimeProps = getTimeProps(props), _getTimeProps2 = _slicedToArray$1(_getTimeProps, 4), timeProps = _getTimeProps2[0], localeTimeProps = _getTimeProps2[1], showTimeFormat = _getTimeProps2[2], propFormat = _getTimeProps2[3], filledLocale = useLocale(locale, localeTimeProps), internalPicker = picker === "date" && showTime ? "datetime" : picker, mergedShowTime = React$6.useMemo(function() {
8347
7937
  return fillShowTimeConfig(internalPicker, showTimeFormat, propFormat, timeProps, filledLocale);
8348
7938
  }, [internalPicker, showTimeFormat, propFormat, timeProps, filledLocale]), now = generateConfig2.getNow(), _useMergedState = useMergedState(picker, {
8349
7939
  value: mode,
8350
7940
  postState: /* @__PURE__ */ __name(function(val) {
8351
7941
  return val || "date";
8352
7942
  }, "postState")
8353
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), mergedMode = _useMergedState2[0], setMergedMode = _useMergedState2[1], internalMode = mergedMode === "date" && mergedShowTime ? "datetime" : mergedMode, toggleDates = useToggleDates(generateConfig2, locale, internalPicker), _useMergedState3 = useMergedState(defaultValue, {
7943
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), mergedMode = _useMergedState2[0], setMergedMode = _useMergedState2[1], internalMode = mergedMode === "date" && mergedShowTime ? "datetime" : mergedMode, toggleDates = useToggleDates(generateConfig2, locale, internalPicker), _useMergedState3 = useMergedState(defaultValue, {
8354
7944
  value
8355
- }), _useMergedState4 = _slicedToArray$3(_useMergedState3, 2), innerValue = _useMergedState4[0], setMergedValue = _useMergedState4[1], mergedValue = React$6.useMemo(function() {
7945
+ }), _useMergedState4 = _slicedToArray$1(_useMergedState3, 2), innerValue = _useMergedState4[0], setMergedValue = _useMergedState4[1], mergedValue = React$6.useMemo(function() {
8356
7946
  var values3 = toArray$1(innerValue).filter(function(val) {
8357
7947
  return val;
8358
7948
  });
@@ -8368,7 +7958,7 @@ function PickerPanel(props, ref) {
8368
7958
  }
8369
7959
  }), _useMergedState5 = useMergedState(defaultPickerValue || mergedValue[0] || now, {
8370
7960
  value: pickerValue
8371
- }), _useMergedState6 = _slicedToArray$3(_useMergedState5, 2), mergedPickerValue = _useMergedState6[0], setInternalPickerValue = _useMergedState6[1];
7961
+ }), _useMergedState6 = _slicedToArray$1(_useMergedState5, 2), mergedPickerValue = _useMergedState6[0], setInternalPickerValue = _useMergedState6[1];
8372
7962
  React$6.useEffect(function() {
8373
7963
  mergedValue[0] && !pickerValue && setInternalPickerValue(mergedValue[0]);
8374
7964
  }, [mergedValue[0]]);
@@ -8391,13 +7981,13 @@ function PickerPanel(props, ref) {
8391
7981
  }, "onPanelValueSelect2"), hoverRangeDate = React$6.useMemo(function() {
8392
7982
  var start, end;
8393
7983
  if (Array.isArray(hoverRangeValue)) {
8394
- var _hoverRangeValue = _slicedToArray$3(hoverRangeValue, 2);
7984
+ var _hoverRangeValue = _slicedToArray$1(hoverRangeValue, 2);
8395
7985
  start = _hoverRangeValue[0], end = _hoverRangeValue[1];
8396
7986
  } else
8397
7987
  start = hoverRangeValue;
8398
7988
  return !start && !end ? null : (start = start || end, end = end || start, generateConfig2.isAfter(start, end) ? [end, start] : [start, end]);
8399
7989
  }, [hoverRangeValue, generateConfig2]), onInternalCellRender = useCellRender(cellRender, dateRender, monthCellRender), PanelComponent = components[internalMode] || DefaultComponents[internalMode] || DatePanel$1, parentHackContext = React$6.useContext(PickerHackContext), pickerPanelContext = React$6.useMemo(function() {
8400
- return _objectSpread2$3(_objectSpread2$3({}, parentHackContext), {}, {
7990
+ return _objectSpread2$1(_objectSpread2$1({}, parentHackContext), {}, {
8401
7991
  hideHeader
8402
7992
  });
8403
7993
  }, [parentHackContext, hideHeader]), panelCls = "".concat(mergedPrefixCls, "-panel"), panelProps = pickProps(props, [
@@ -8420,8 +8010,8 @@ function PickerPanel(props, ref) {
8420
8010
  }, /* @__PURE__ */ React$6.createElement("div", {
8421
8011
  ref: rootRef,
8422
8012
  tabIndex,
8423
- className: clsx(panelCls, _defineProperty$d({}, "".concat(panelCls, "-rtl"), direction === "rtl"))
8424
- }, /* @__PURE__ */ React$6.createElement(PanelComponent, _extends$7({}, panelProps, {
8013
+ className: clsx(panelCls, _defineProperty$b({}, "".concat(panelCls, "-rtl"), direction === "rtl"))
8014
+ }, /* @__PURE__ */ React$6.createElement(PanelComponent, _extends$6({}, panelProps, {
8425
8015
  // Time
8426
8016
  showTime: mergedShowTime,
8427
8017
  prefixCls: mergedPrefixCls,
@@ -8453,7 +8043,7 @@ function PopupPanel(props) {
8453
8043
  onCellDblClick: /* @__PURE__ */ __name(function() {
8454
8044
  needConfirm && onSubmit();
8455
8045
  }, "onCellDblClick")
8456
- }, hideHeader = picker === "time", pickerProps = _objectSpread2$3(_objectSpread2$3({}, props), {}, {
8046
+ }, hideHeader = picker === "time", pickerProps = _objectSpread2$1(_objectSpread2$1({}, props), {}, {
8457
8047
  hoverValue: null,
8458
8048
  hoverRangeValue: null,
8459
8049
  hideHeader
@@ -8461,18 +8051,18 @@ function PopupPanel(props) {
8461
8051
  return range ? pickerProps.hoverRangeValue = hoverValue : pickerProps.hoverValue = hoverValue, multiplePanel ? /* @__PURE__ */ React$6.createElement("div", {
8462
8052
  className: "".concat(prefixCls, "-panels")
8463
8053
  }, /* @__PURE__ */ React$6.createElement(PickerHackContext.Provider, {
8464
- value: _objectSpread2$3(_objectSpread2$3({}, sharedContext), {}, {
8054
+ value: _objectSpread2$1(_objectSpread2$1({}, sharedContext), {}, {
8465
8055
  hideNext: !0
8466
8056
  })
8467
8057
  }, /* @__PURE__ */ React$6.createElement(RefPanelPicker, pickerProps)), /* @__PURE__ */ React$6.createElement(PickerHackContext.Provider, {
8468
- value: _objectSpread2$3(_objectSpread2$3({}, sharedContext), {}, {
8058
+ value: _objectSpread2$1(_objectSpread2$1({}, sharedContext), {}, {
8469
8059
  hidePrev: !0
8470
8060
  })
8471
- }, /* @__PURE__ */ React$6.createElement(RefPanelPicker, _extends$7({}, pickerProps, {
8061
+ }, /* @__PURE__ */ React$6.createElement(RefPanelPicker, _extends$6({}, pickerProps, {
8472
8062
  pickerValue: nextPickerValue,
8473
8063
  onPickerValueChange: onSecondPickerValueChange
8474
8064
  })))) : /* @__PURE__ */ React$6.createElement(PickerHackContext.Provider, {
8475
- value: _objectSpread2$3({}, sharedContext)
8065
+ value: _objectSpread2$1({}, sharedContext)
8476
8066
  }, /* @__PURE__ */ React$6.createElement(RefPanelPicker, pickerProps));
8477
8067
  }
8478
8068
  __name(PopupPanel, "PopupPanel");
@@ -8502,7 +8092,7 @@ function PresetPanel(props) {
8502
8092
  }
8503
8093
  __name(PresetPanel, "PresetPanel");
8504
8094
  function Popup$2(props) {
8505
- var panelRender = props.panelRender, internalMode = props.internalMode, picker = props.picker, showNow = props.showNow, range = props.range, multiple = props.multiple, _props$activeOffset = props.activeOffset, activeOffset = _props$activeOffset === void 0 ? 0 : _props$activeOffset, placement = props.placement, presets = props.presets, onPresetHover = props.onPresetHover, onPresetSubmit = props.onPresetSubmit, onFocus = props.onFocus, onBlur2 = props.onBlur, onPanelMouseDown = props.onPanelMouseDown, direction = props.direction, value = props.value, onSelect2 = props.onSelect, isInvalid = props.isInvalid, defaultOpenValue = props.defaultOpenValue, onOk = props.onOk, onSubmit = props.onSubmit, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, panelPrefixCls = "".concat(prefixCls, "-panel"), rtl = direction === "rtl", arrowRef = React$6.useRef(null), wrapperRef = React$6.useRef(null), _React$useState = React$6.useState(0), _React$useState2 = _slicedToArray$3(_React$useState, 2), containerWidth = _React$useState2[0], setContainerWidth = _React$useState2[1], _React$useState3 = React$6.useState(0), _React$useState4 = _slicedToArray$3(_React$useState3, 2), containerOffset = _React$useState4[0], setContainerOffset = _React$useState4[1], onResize2 = /* @__PURE__ */ __name(function(info) {
8095
+ var panelRender = props.panelRender, internalMode = props.internalMode, picker = props.picker, showNow = props.showNow, range = props.range, multiple = props.multiple, _props$activeOffset = props.activeOffset, activeOffset = _props$activeOffset === void 0 ? 0 : _props$activeOffset, placement = props.placement, presets = props.presets, onPresetHover = props.onPresetHover, onPresetSubmit = props.onPresetSubmit, onFocus = props.onFocus, onBlur2 = props.onBlur, onPanelMouseDown = props.onPanelMouseDown, direction = props.direction, value = props.value, onSelect2 = props.onSelect, isInvalid = props.isInvalid, defaultOpenValue = props.defaultOpenValue, onOk = props.onOk, onSubmit = props.onSubmit, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, panelPrefixCls = "".concat(prefixCls, "-panel"), rtl = direction === "rtl", arrowRef = React$6.useRef(null), wrapperRef = React$6.useRef(null), _React$useState = React$6.useState(0), _React$useState2 = _slicedToArray$1(_React$useState, 2), containerWidth = _React$useState2[0], setContainerWidth = _React$useState2[1], _React$useState3 = React$6.useState(0), _React$useState4 = _slicedToArray$1(_React$useState3, 2), containerOffset = _React$useState4[0], setContainerOffset = _React$useState4[1], onResize2 = /* @__PURE__ */ __name(function(info) {
8506
8096
  info.offsetWidth && setContainerWidth(info.offsetWidth);
8507
8097
  }, "onResize");
8508
8098
  React$6.useEffect(function() {
@@ -8534,9 +8124,9 @@ function Popup$2(props) {
8534
8124
  presets,
8535
8125
  onClick: onPresetSubmit,
8536
8126
  onHover: onPresetHover
8537
- }), /* @__PURE__ */ React$6.createElement("div", null, /* @__PURE__ */ React$6.createElement(PopupPanel, _extends$7({}, props, {
8127
+ }), /* @__PURE__ */ React$6.createElement("div", null, /* @__PURE__ */ React$6.createElement(PopupPanel, _extends$6({}, props, {
8538
8128
  value: popupPanelValue
8539
- })), /* @__PURE__ */ React$6.createElement(Footer, _extends$7({}, props, {
8129
+ })), /* @__PURE__ */ React$6.createElement(Footer, _extends$6({}, props, {
8540
8130
  showNow: multiple ? !1 : showNow,
8541
8131
  invalid: disableSubmit,
8542
8132
  onSubmit: onFooterSubmit
@@ -8550,7 +8140,7 @@ function Popup$2(props) {
8550
8140
  // Used for Today Button style, safe to remove if no need
8551
8141
  "".concat(prefixCls, "-").concat(internalMode, "-panel-container")
8552
8142
  ),
8553
- style: _defineProperty$d(_defineProperty$d({}, rtl ? marginRight : marginLeft, containerOffset), rtl ? marginLeft : marginRight, "auto"),
8143
+ style: _defineProperty$b(_defineProperty$b({}, rtl ? marginRight : marginLeft, containerOffset), rtl ? marginLeft : marginRight, "auto"),
8554
8144
  onFocus,
8555
8145
  onBlur: onBlur2
8556
8146
  }, mergedNodes);
@@ -8563,7 +8153,7 @@ function Popup$2(props) {
8563
8153
  }, /* @__PURE__ */ React$6.createElement("div", {
8564
8154
  ref: arrowRef,
8565
8155
  className: "".concat(prefixCls, "-range-arrow"),
8566
- style: _defineProperty$d({}, offsetUnit, activeOffset)
8156
+ style: _defineProperty$b({}, offsetUnit, activeOffset)
8567
8157
  }), /* @__PURE__ */ React$6.createElement(RefResizeObserver, {
8568
8158
  onResize: onResize2
8569
8159
  }, renderNode));
@@ -8604,7 +8194,7 @@ function useInputProps(props, postProps) {
8604
8194
  var pickedAttrs = pickAttrs(props, {
8605
8195
  aria: !0,
8606
8196
  data: !0
8607
- }), inputProps = _objectSpread2$3(_objectSpread2$3({}, pickedAttrs), {}, {
8197
+ }), inputProps = _objectSpread2$1(_objectSpread2$1({}, pickedAttrs), {}, {
8608
8198
  // ============== Shared ==============
8609
8199
  format: maskFormat,
8610
8200
  validateFormat: /* @__PURE__ */ __name(function(text) {
@@ -8682,15 +8272,15 @@ function useRootProps(props) {
8682
8272
  __name(useRootProps, "useRootProps");
8683
8273
  var _excluded$u = ["icon", "type"], _excluded2$5 = ["onClear"];
8684
8274
  function Icon$1(props) {
8685
- var icon = props.icon, type2 = props.type, restProps = _objectWithoutProperties$3(props, _excluded$u), _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
8686
- return icon ? /* @__PURE__ */ React$6.createElement("span", _extends$7({
8275
+ var icon = props.icon, type2 = props.type, restProps = _objectWithoutProperties$2(props, _excluded$u), _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
8276
+ return icon ? /* @__PURE__ */ React$6.createElement("span", _extends$6({
8687
8277
  className: "".concat(prefixCls, "-").concat(type2)
8688
8278
  }, restProps), icon) : null;
8689
8279
  }
8690
8280
  __name(Icon$1, "Icon$1");
8691
8281
  function ClearIcon(_ref) {
8692
- var onClear = _ref.onClear, restProps = _objectWithoutProperties$3(_ref, _excluded2$5);
8693
- return /* @__PURE__ */ React$6.createElement(Icon$1, _extends$7({}, restProps, {
8282
+ var onClear = _ref.onClear, restProps = _objectWithoutProperties$2(_ref, _excluded2$5);
8283
+ return /* @__PURE__ */ React$6.createElement(Icon$1, _extends$6({}, restProps, {
8694
8284
  type: "clear",
8695
8285
  role: "button",
8696
8286
  onMouseDown: /* @__PURE__ */ __name(function(e2) {
@@ -8704,7 +8294,7 @@ function ClearIcon(_ref) {
8704
8294
  __name(ClearIcon, "ClearIcon");
8705
8295
  var FORMAT_KEYS = ["YYYY", "MM", "DD", "HH", "mm", "ss", "SSS"], REPLACE_KEY = "顧", MaskFormat = /* @__PURE__ */ function() {
8706
8296
  function MaskFormat2(format2) {
8707
- _classCallCheck$3(this, MaskFormat2), _defineProperty$d(this, "format", void 0), _defineProperty$d(this, "maskFormat", void 0), _defineProperty$d(this, "cells", void 0), _defineProperty$d(this, "maskCells", void 0), this.format = format2;
8297
+ _classCallCheck$2(this, MaskFormat2), _defineProperty$b(this, "format", void 0), _defineProperty$b(this, "maskFormat", void 0), _defineProperty$b(this, "cells", void 0), _defineProperty$b(this, "maskCells", void 0), this.format = format2;
8708
8298
  var replaceKeys = FORMAT_KEYS.map(function(key) {
8709
8299
  return "(".concat(key, ")");
8710
8300
  }).join("|"), replaceReg = new RegExp(replaceKeys, "g");
@@ -8730,7 +8320,7 @@ var FORMAT_KEYS = ["YYYY", "MM", "DD", "HH", "mm", "ss", "SSS"], REPLACE_KEY = "
8730
8320
  return cell.mask;
8731
8321
  });
8732
8322
  }
8733
- return __name(MaskFormat2, "MaskFormat"), _createClass$3(MaskFormat2, [{
8323
+ return __name(MaskFormat2, "MaskFormat"), _createClass$2(MaskFormat2, [{
8734
8324
  key: "getSelection",
8735
8325
  value: /* @__PURE__ */ __name(function(maskCellIndex) {
8736
8326
  var _ref = this.maskCells[maskCellIndex] || {}, start = _ref.start, end = _ref.end;
@@ -8783,7 +8373,7 @@ __name(getMaskRange, "getMaskRange");
8783
8373
  var _excluded$t = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"], Input$3 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
8784
8374
  var active = props.active, _props$showActiveCls = props.showActiveCls, showActiveCls = _props$showActiveCls === void 0 ? !0 : _props$showActiveCls, suffixIcon = props.suffixIcon, format2 = props.format, validateFormat = props.validateFormat, onChange = props.onChange;
8785
8375
  props.onInput;
8786
- var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? !1 : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$3(props, _excluded$t), value = props.value, onFocus = props.onFocus, onBlur2 = props.onBlur, onMouseUp = props.onMouseUp, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp, inputPrefixCls = "".concat(prefixCls, "-input"), _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$3(_React$useState, 2), focused = _React$useState2[0], setFocused = _React$useState2[1], _React$useState3 = React$6.useState(value), _React$useState4 = _slicedToArray$3(_React$useState3, 2), internalInputValue = _React$useState4[0], setInputValue = _React$useState4[1], _React$useState5 = React$6.useState(""), _React$useState6 = _slicedToArray$3(_React$useState5, 2), focusCellText = _React$useState6[0], setFocusCellText = _React$useState6[1], _React$useState7 = React$6.useState(null), _React$useState8 = _slicedToArray$3(_React$useState7, 2), focusCellIndex = _React$useState8[0], setFocusCellIndex = _React$useState8[1], _React$useState9 = React$6.useState(null), _React$useState10 = _slicedToArray$3(_React$useState9, 2), forceSelectionSyncMark = _React$useState10[0], forceSelectionSync = _React$useState10[1], inputValue = internalInputValue || "";
8376
+ var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? !1 : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$2(props, _excluded$t), value = props.value, onFocus = props.onFocus, onBlur2 = props.onBlur, onMouseUp = props.onMouseUp, _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp, inputPrefixCls = "".concat(prefixCls, "-input"), _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), focused = _React$useState2[0], setFocused = _React$useState2[1], _React$useState3 = React$6.useState(value), _React$useState4 = _slicedToArray$1(_React$useState3, 2), internalInputValue = _React$useState4[0], setInputValue = _React$useState4[1], _React$useState5 = React$6.useState(""), _React$useState6 = _slicedToArray$1(_React$useState5, 2), focusCellText = _React$useState6[0], setFocusCellText = _React$useState6[1], _React$useState7 = React$6.useState(null), _React$useState8 = _slicedToArray$1(_React$useState7, 2), focusCellIndex = _React$useState8[0], setFocusCellIndex = _React$useState8[1], _React$useState9 = React$6.useState(null), _React$useState10 = _slicedToArray$1(_React$useState9, 2), forceSelectionSyncMark = _React$useState10[0], forceSelectionSync = _React$useState10[1], inputValue = internalInputValue || "";
8787
8377
  React$6.useEffect(function() {
8788
8378
  setInputValue(value);
8789
8379
  }, [value]);
@@ -8804,7 +8394,7 @@ var _excluded$t = ["active", "showActiveCls", "suffixIcon", "format", "validateF
8804
8394
  return new MaskFormat(format2 || "");
8805
8395
  }, [format2]), _React$useMemo = React$6.useMemo(function() {
8806
8396
  return helped ? [0, 0] : maskFormat.getSelection(focusCellIndex);
8807
- }, [maskFormat, focusCellIndex, helped]), _React$useMemo2 = _slicedToArray$3(_React$useMemo, 2), selectionStart = _React$useMemo2[0], selectionEnd = _React$useMemo2[1], onModify = /* @__PURE__ */ __name(function(text) {
8397
+ }, [maskFormat, focusCellIndex, helped]), _React$useMemo2 = _slicedToArray$1(_React$useMemo, 2), selectionStart = _React$useMemo2[0], selectionEnd = _React$useMemo2[1], onModify = /* @__PURE__ */ __name(function(text) {
8808
8398
  text && text !== format2 && text !== value && onHelp();
8809
8399
  }, "onModify2"), triggerInputChange = useEvent(function(text) {
8810
8400
  validateFormat(text) && onChange(text), setInputValue(text), onModify(text);
@@ -8841,7 +8431,7 @@ var _excluded$t = ["active", "showActiveCls", "suffixIcon", "format", "validateF
8841
8431
  return nextIndex = Math.max(nextIndex, 0), nextIndex = Math.min(nextIndex, maskFormat.size() - 1), nextIndex;
8842
8432
  });
8843
8433
  }, "offsetCellIndex2"), offsetCellValue = /* @__PURE__ */ __name(function(offset2) {
8844
- var _getMaskRange = getMaskRange(cellFormat), _getMaskRange2 = _slicedToArray$3(_getMaskRange, 3), rangeStart = _getMaskRange2[0], rangeEnd = _getMaskRange2[1], rangeDefault = _getMaskRange2[2], currentText = inputValue.slice(selectionStart, selectionEnd), currentTextNum = Number(currentText);
8434
+ var _getMaskRange = getMaskRange(cellFormat), _getMaskRange2 = _slicedToArray$1(_getMaskRange, 3), rangeStart = _getMaskRange2[0], rangeEnd = _getMaskRange2[1], rangeDefault = _getMaskRange2[2], currentText = inputValue.slice(selectionStart, selectionEnd), currentTextNum = Number(currentText);
8845
8435
  if (isNaN(currentTextNum))
8846
8436
  return String(rangeDefault || (offset2 > 0 ? rangeStart : rangeEnd));
8847
8437
  var num = currentTextNum + offset2, range = rangeEnd - rangeStart + 1;
@@ -8902,8 +8492,8 @@ var _excluded$t = ["active", "showActiveCls", "suffixIcon", "format", "validateF
8902
8492
  } : {};
8903
8493
  return /* @__PURE__ */ React$6.createElement("div", {
8904
8494
  ref: holderRef,
8905
- className: clsx(inputPrefixCls, _defineProperty$d(_defineProperty$d({}, "".concat(inputPrefixCls, "-active"), active && showActiveCls), "".concat(inputPrefixCls, "-placeholder"), helped))
8906
- }, /* @__PURE__ */ React$6.createElement(Component, _extends$7({
8495
+ className: clsx(inputPrefixCls, _defineProperty$b(_defineProperty$b({}, "".concat(inputPrefixCls, "-active"), active && showActiveCls), "".concat(inputPrefixCls, "-placeholder"), helped))
8496
+ }, /* @__PURE__ */ React$6.createElement(Component, _extends$6({
8907
8497
  ref: inputRef,
8908
8498
  "aria-invalid": invalid,
8909
8499
  autoComplete: "off"
@@ -8919,7 +8509,28 @@ var _excluded$t = ["active", "showActiveCls", "suffixIcon", "format", "validateF
8919
8509
  type: "suffix",
8920
8510
  icon: suffixIcon
8921
8511
  }), clearIcon);
8922
- }), _excluded$s = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], UNDEFINED = void 0;
8512
+ });
8513
+ function _objectWithoutPropertiesLoose$3(r, e2) {
8514
+ if (r == null) return {};
8515
+ var t2 = {};
8516
+ for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
8517
+ if (e2.indexOf(n2) >= 0) continue;
8518
+ t2[n2] = r[n2];
8519
+ }
8520
+ return t2;
8521
+ }
8522
+ __name(_objectWithoutPropertiesLoose$3, "_objectWithoutPropertiesLoose$3");
8523
+ function _objectWithoutProperties$1(e2, t2) {
8524
+ if (e2 == null) return {};
8525
+ var o, r, i = _objectWithoutPropertiesLoose$3(e2, t2);
8526
+ if (Object.getOwnPropertySymbols) {
8527
+ var n2 = Object.getOwnPropertySymbols(e2);
8528
+ for (r = 0; r < n2.length; r++) o = n2[r], t2.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e2, o) && (i[o] = e2[o]);
8529
+ }
8530
+ return i;
8531
+ }
8532
+ __name(_objectWithoutProperties$1, "_objectWithoutProperties$1");
8533
+ var _excluded$s = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], UNDEFINED = void 0;
8923
8534
  function InternalItem(props, ref) {
8924
8535
  var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children = props.children, display = props.display, order = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$s), mergedHidden = responsive && !display;
8925
8536
  function internalRegisterSize(width2) {
@@ -9212,7 +8823,7 @@ function SingleSelector$1(props, ref) {
9212
8823
  props.onOpenChange;
9213
8824
  var _onMouseDown = props.onMouseDown;
9214
8825
  props.required, props["aria-required"];
9215
- var autoFocus = props.autoFocus, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$3(props, _excluded$p), rtl = direction === "rtl", _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, rootRef = React$6.useRef(), inputRef = React$6.useRef();
8826
+ var autoFocus = props.autoFocus, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$2(props, _excluded$p), rtl = direction === "rtl", _React$useContext = React$6.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, rootRef = React$6.useRef(), inputRef = React$6.useRef();
9216
8827
  React$6.useImperativeHandle(ref, function() {
9217
8828
  return {
9218
8829
  nativeElement: rootRef.current,
@@ -9233,7 +8844,7 @@ function SingleSelector$1(props, ref) {
9233
8844
  return oriDate && !isSame(generateConfig2, locale, oriDate, date, internalPicker);
9234
8845
  });
9235
8846
  onChange(nextValues), open || onSubmit();
9236
- }, "onMultipleRemove2"), _useInputProps = useInputProps(_objectSpread2$3(_objectSpread2$3({}, props), {}, {
8847
+ }, "onMultipleRemove2"), _useInputProps = useInputProps(_objectSpread2$1(_objectSpread2$1({}, props), {}, {
9237
8848
  onChange: onSingleChange
9238
8849
  }), function(_ref) {
9239
8850
  var valueTexts = _ref.valueTexts;
@@ -9241,7 +8852,7 @@ function SingleSelector$1(props, ref) {
9241
8852
  value: valueTexts[0] || "",
9242
8853
  active: focused
9243
8854
  };
9244
- }), _useInputProps2 = _slicedToArray$3(_useInputProps, 2), getInputProps = _useInputProps2[0], getText = _useInputProps2[1], showClear = !!(clearIcon && value.length && !disabled), selectorNode = multiple ? /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, /* @__PURE__ */ React$6.createElement(MultipleDates, {
8855
+ }), _useInputProps2 = _slicedToArray$1(_useInputProps, 2), getInputProps = _useInputProps2[0], getText = _useInputProps2[1], showClear = !!(clearIcon && value.length && !disabled), selectorNode = multiple ? /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, /* @__PURE__ */ React$6.createElement(MultipleDates, {
9245
8856
  prefixCls,
9246
8857
  value,
9247
8858
  onRemove: onMultipleRemove,
@@ -9262,7 +8873,7 @@ function SingleSelector$1(props, ref) {
9262
8873
  }), showClear && /* @__PURE__ */ React$6.createElement(ClearIcon, {
9263
8874
  icon: clearIcon,
9264
8875
  onClear
9265
- })) : /* @__PURE__ */ React$6.createElement(Input$3, _extends$7({
8876
+ })) : /* @__PURE__ */ React$6.createElement(Input$3, _extends$6({
9266
8877
  ref: inputRef
9267
8878
  }, getInputProps(), {
9268
8879
  autoFocus,
@@ -9273,8 +8884,8 @@ function SingleSelector$1(props, ref) {
9273
8884
  }),
9274
8885
  showActiveCls: !1
9275
8886
  }));
9276
- return /* @__PURE__ */ React$6.createElement("div", _extends$7({}, rootProps, {
9277
- className: clsx(prefixCls, _defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d(_defineProperty$d({}, "".concat(prefixCls, "-multiple"), multiple), "".concat(prefixCls, "-focused"), focused), "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-invalid"), invalid), "".concat(prefixCls, "-rtl"), rtl), className),
8887
+ return /* @__PURE__ */ React$6.createElement("div", _extends$6({}, rootProps, {
8888
+ className: clsx(prefixCls, _defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b({}, "".concat(prefixCls, "-multiple"), multiple), "".concat(prefixCls, "-focused"), focused), "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-invalid"), invalid), "".concat(prefixCls, "-rtl"), rtl), className),
9278
8889
  style: style2,
9279
8890
  ref: rootRef,
9280
8891
  onClick,
@@ -9287,28 +8898,28 @@ function SingleSelector$1(props, ref) {
9287
8898
  __name(SingleSelector$1, "SingleSelector$1");
9288
8899
  var RefSingleSelector = /* @__PURE__ */ React$6.forwardRef(SingleSelector$1);
9289
8900
  function Picker2(props, ref) {
9290
- var _useFilledProps = useFilledProps(props), _useFilledProps2 = _slicedToArray$3(_useFilledProps, 6), filledProps = _useFilledProps2[0], internalPicker = _useFilledProps2[1], complexPicker = _useFilledProps2[2], formatList = _useFilledProps2[3], maskFormat = _useFilledProps2[4], isInvalidateDate = _useFilledProps2[5], _ref = filledProps, prefixCls = _ref.prefixCls, styles2 = _ref.styles, classNames = _ref.classNames, order = _ref.order, defaultValue = _ref.defaultValue, value = _ref.value, needConfirm = _ref.needConfirm, onChange = _ref.onChange, onKeyDown2 = _ref.onKeyDown, disabled = _ref.disabled, disabledDate = _ref.disabledDate, minDate = _ref.minDate, maxDate = _ref.maxDate, defaultOpen = _ref.defaultOpen, open = _ref.open, onOpenChange = _ref.onOpenChange, locale = _ref.locale, generateConfig2 = _ref.generateConfig, picker = _ref.picker, showNow = _ref.showNow, showToday = _ref.showToday, showTime = _ref.showTime, mode = _ref.mode, onPanelChange = _ref.onPanelChange, onCalendarChange = _ref.onCalendarChange, onOk = _ref.onOk, multiple = _ref.multiple, defaultPickerValue = _ref.defaultPickerValue, pickerValue = _ref.pickerValue, onPickerValueChange = _ref.onPickerValueChange, inputReadOnly = _ref.inputReadOnly, suffixIcon = _ref.suffixIcon, removeIcon = _ref.removeIcon, onFocus = _ref.onFocus, onBlur2 = _ref.onBlur, presets = _ref.presets, components = _ref.components, cellRender = _ref.cellRender, dateRender = _ref.dateRender, monthCellRender = _ref.monthCellRender, onClick = _ref.onClick, selectorRef = usePickerRef(ref);
8901
+ var _useFilledProps = useFilledProps(props), _useFilledProps2 = _slicedToArray$1(_useFilledProps, 6), filledProps = _useFilledProps2[0], internalPicker = _useFilledProps2[1], complexPicker = _useFilledProps2[2], formatList = _useFilledProps2[3], maskFormat = _useFilledProps2[4], isInvalidateDate = _useFilledProps2[5], _ref = filledProps, prefixCls = _ref.prefixCls, styles2 = _ref.styles, classNames = _ref.classNames, order = _ref.order, defaultValue = _ref.defaultValue, value = _ref.value, needConfirm = _ref.needConfirm, onChange = _ref.onChange, onKeyDown2 = _ref.onKeyDown, disabled = _ref.disabled, disabledDate = _ref.disabledDate, minDate = _ref.minDate, maxDate = _ref.maxDate, defaultOpen = _ref.defaultOpen, open = _ref.open, onOpenChange = _ref.onOpenChange, locale = _ref.locale, generateConfig2 = _ref.generateConfig, picker = _ref.picker, showNow = _ref.showNow, showToday = _ref.showToday, showTime = _ref.showTime, mode = _ref.mode, onPanelChange = _ref.onPanelChange, onCalendarChange = _ref.onCalendarChange, onOk = _ref.onOk, multiple = _ref.multiple, defaultPickerValue = _ref.defaultPickerValue, pickerValue = _ref.pickerValue, onPickerValueChange = _ref.onPickerValueChange, inputReadOnly = _ref.inputReadOnly, suffixIcon = _ref.suffixIcon, removeIcon = _ref.removeIcon, onFocus = _ref.onFocus, onBlur2 = _ref.onBlur, presets = _ref.presets, components = _ref.components, cellRender = _ref.cellRender, dateRender = _ref.dateRender, monthCellRender = _ref.monthCellRender, onClick = _ref.onClick, selectorRef = usePickerRef(ref);
9291
8902
  function pickerParam(values3) {
9292
8903
  return values3 === null ? null : multiple ? values3 : values3[0];
9293
8904
  }
9294
8905
  __name(pickerParam, "pickerParam");
9295
- var toggleDates = useToggleDates(generateConfig2, locale, internalPicker), _useOpen = useOpen(open, defaultOpen, [disabled], onOpenChange), _useOpen2 = _slicedToArray$3(_useOpen, 2), mergedOpen = _useOpen2[0], triggerOpen = _useOpen2[1], onInternalCalendarChange = /* @__PURE__ */ __name(function(dates, dateStrings, info) {
8906
+ var toggleDates = useToggleDates(generateConfig2, locale, internalPicker), _useOpen = useOpen(open, defaultOpen, [disabled], onOpenChange), _useOpen2 = _slicedToArray$1(_useOpen, 2), mergedOpen = _useOpen2[0], triggerOpen = _useOpen2[1], onInternalCalendarChange = /* @__PURE__ */ __name(function(dates, dateStrings, info) {
9296
8907
  if (onCalendarChange) {
9297
- var filteredInfo = _objectSpread2$3({}, info);
8908
+ var filteredInfo = _objectSpread2$1({}, info);
9298
8909
  delete filteredInfo.range, onCalendarChange(pickerParam(dates), pickerParam(dateStrings), filteredInfo);
9299
8910
  }
9300
8911
  }, "onInternalCalendarChange2"), onInternalOk = /* @__PURE__ */ __name(function(dates) {
9301
8912
  onOk == null || onOk(pickerParam(dates));
9302
- }, "onInternalOk2"), _useInnerValue = useInnerValue(generateConfig2, locale, formatList, !1, order, defaultValue, value, onInternalCalendarChange, onInternalOk), _useInnerValue2 = _slicedToArray$3(_useInnerValue, 5), mergedValue = _useInnerValue2[0], setInnerValue = _useInnerValue2[1], getCalendarValue = _useInnerValue2[2], triggerCalendarChange = _useInnerValue2[3], triggerOk = _useInnerValue2[4], calendarValue = getCalendarValue(), _useRangeActive = useRangeActive([disabled]), _useRangeActive2 = _slicedToArray$3(_useRangeActive, 4), focused = _useRangeActive2[0], triggerFocus2 = _useRangeActive2[1], lastOperation = _useRangeActive2[2], activeIndex = _useRangeActive2[3], onSharedFocus = /* @__PURE__ */ __name(function(event) {
8913
+ }, "onInternalOk2"), _useInnerValue = useInnerValue(generateConfig2, locale, formatList, !1, order, defaultValue, value, onInternalCalendarChange, onInternalOk), _useInnerValue2 = _slicedToArray$1(_useInnerValue, 5), mergedValue = _useInnerValue2[0], setInnerValue = _useInnerValue2[1], getCalendarValue = _useInnerValue2[2], triggerCalendarChange = _useInnerValue2[3], triggerOk = _useInnerValue2[4], calendarValue = getCalendarValue(), _useRangeActive = useRangeActive([disabled]), _useRangeActive2 = _slicedToArray$1(_useRangeActive, 4), focused = _useRangeActive2[0], triggerFocus2 = _useRangeActive2[1], lastOperation = _useRangeActive2[2], activeIndex = _useRangeActive2[3], onSharedFocus = /* @__PURE__ */ __name(function(event) {
9303
8914
  triggerFocus2(!0), onFocus == null || onFocus(event, {});
9304
8915
  }, "onSharedFocus2"), onSharedBlur = /* @__PURE__ */ __name(function(event) {
9305
8916
  triggerFocus2(!1), onBlur2 == null || onBlur2(event, {});
9306
8917
  }, "onSharedBlur2"), _useMergedState = useMergedState(picker, {
9307
8918
  value: mode
9308
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), mergedMode = _useMergedState2[0], setMode = _useMergedState2[1], internalMode = mergedMode === "date" && showTime ? "datetime" : mergedMode, mergedShowNow = useShowNow(picker, mergedMode, showNow, showToday), onInternalChange = onChange && function(dates, dateStrings) {
8919
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), mergedMode = _useMergedState2[0], setMode = _useMergedState2[1], internalMode = mergedMode === "date" && showTime ? "datetime" : mergedMode, mergedShowNow = useShowNow(picker, mergedMode, showNow, showToday), onInternalChange = onChange && function(dates, dateStrings) {
9309
8920
  onChange(pickerParam(dates), pickerParam(dateStrings));
9310
8921
  }, _useRangeValue = useRangeValue(
9311
- _objectSpread2$3(_objectSpread2$3({}, filledProps), {}, {
8922
+ _objectSpread2$1(_objectSpread2$1({}, filledProps), {}, {
9312
8923
  onChange: onInternalChange
9313
8924
  }),
9314
8925
  mergedValue,
@@ -9321,13 +8932,13 @@ function Picker2(props, ref) {
9321
8932
  focused,
9322
8933
  mergedOpen,
9323
8934
  isInvalidateDate
9324
- ), _useRangeValue2 = _slicedToArray$3(_useRangeValue, 2), triggerSubmitChange = _useRangeValue2[1], _useFieldsInvalidate = useFieldsInvalidate(calendarValue, isInvalidateDate), _useFieldsInvalidate2 = _slicedToArray$3(_useFieldsInvalidate, 2), submitInvalidates = _useFieldsInvalidate2[0], onSelectorInvalid = _useFieldsInvalidate2[1], submitInvalidate = React$6.useMemo(function() {
8935
+ ), _useRangeValue2 = _slicedToArray$1(_useRangeValue, 2), triggerSubmitChange = _useRangeValue2[1], _useFieldsInvalidate = useFieldsInvalidate(calendarValue, isInvalidateDate), _useFieldsInvalidate2 = _slicedToArray$1(_useFieldsInvalidate, 2), submitInvalidates = _useFieldsInvalidate2[0], onSelectorInvalid = _useFieldsInvalidate2[1], submitInvalidate = React$6.useMemo(function() {
9325
8936
  return submitInvalidates.some(function(invalidated) {
9326
8937
  return invalidated;
9327
8938
  });
9328
8939
  }, [submitInvalidates]), onInternalPickerValueChange = /* @__PURE__ */ __name(function(dates, info) {
9329
8940
  if (onPickerValueChange) {
9330
- var cleanInfo = _objectSpread2$3(_objectSpread2$3({}, info), {}, {
8941
+ var cleanInfo = _objectSpread2$1(_objectSpread2$1({}, info), {}, {
9331
8942
  mode: info.mode[0]
9332
8943
  });
9333
8944
  delete cleanInfo.range, onPickerValueChange(dates[0], cleanInfo);
@@ -9348,7 +8959,7 @@ function Picker2(props, ref) {
9348
8959
  onInternalPickerValueChange,
9349
8960
  minDate,
9350
8961
  maxDate
9351
- ), _useRangePickerValue2 = _slicedToArray$3(_useRangePickerValue, 2), currentPickerValue = _useRangePickerValue2[0], setCurrentPickerValue = _useRangePickerValue2[1], triggerModeChange = useEvent(function(nextPickerValue, nextMode, triggerEvent) {
8962
+ ), _useRangePickerValue2 = _slicedToArray$1(_useRangePickerValue, 2), currentPickerValue = _useRangePickerValue2[0], setCurrentPickerValue = _useRangePickerValue2[1], triggerModeChange = useEvent(function(nextPickerValue, nextMode, triggerEvent) {
9352
8963
  if (setMode(nextMode), onPanelChange && triggerEvent !== !1) {
9353
8964
  var lastPickerValue = nextPickerValue || calendarValue[calendarValue.length - 1];
9354
8965
  onPanelChange(lastPickerValue, nextMode);
@@ -9363,7 +8974,7 @@ function Picker2(props, ref) {
9363
8974
  triggerSubmitChange(null), triggerOpen(!1, {
9364
8975
  force: !0
9365
8976
  });
9366
- }, "onSelectorClear2"), _React$useState = React$6.useState(null), _React$useState2 = _slicedToArray$3(_React$useState, 2), hoverSource = _React$useState2[0], setHoverSource = _React$useState2[1], _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$3(_React$useState3, 2), internalHoverValue = _React$useState4[0], setInternalHoverValue = _React$useState4[1], hoverValues = React$6.useMemo(function() {
8977
+ }, "onSelectorClear2"), _React$useState = React$6.useState(null), _React$useState2 = _slicedToArray$1(_React$useState, 2), hoverSource = _React$useState2[0], setHoverSource = _React$useState2[1], _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$1(_React$useState3, 2), internalHoverValue = _React$useState4[0], setInternalHoverValue = _React$useState4[1], hoverValues = React$6.useMemo(function() {
9367
8978
  var values3 = [internalHoverValue].concat(_toConsumableArray$4(calendarValue)).filter(function(date) {
9368
8979
  return date;
9369
8980
  });
@@ -9397,10 +9008,10 @@ function Picker2(props, ref) {
9397
9008
  triggerOpen(!1);
9398
9009
  }, "onPopupClose2"), onInternalCellRender = useCellRender(cellRender, dateRender, monthCellRender), panelProps = React$6.useMemo(function() {
9399
9010
  var domProps = pickAttrs(filledProps, !1), restProps = omit$2(filledProps, [].concat(_toConsumableArray$4(Object.keys(domProps)), ["onChange", "onCalendarChange", "style", "className", "onPanelChange"]));
9400
- return _objectSpread2$3(_objectSpread2$3({}, restProps), {}, {
9011
+ return _objectSpread2$1(_objectSpread2$1({}, restProps), {}, {
9401
9012
  multiple: filledProps.multiple
9402
9013
  });
9403
- }, [filledProps]), panel = /* @__PURE__ */ React$6.createElement(Popup$2, _extends$7({}, panelProps, {
9014
+ }, [filledProps]), panel = /* @__PURE__ */ React$6.createElement(Popup$2, _extends$6({}, panelProps, {
9404
9015
  showNow: mergedShowNow,
9405
9016
  showTime,
9406
9017
  disabledDate,
@@ -9456,7 +9067,7 @@ function Picker2(props, ref) {
9456
9067
  !mergedOpen && lastOp === "input" && (triggerOpen(!1), triggerConfirm()), !mergedOpen && complexPicker && !needConfirm && lastOp === "panel" && (triggerOpen(!0), triggerConfirm());
9457
9068
  }, [mergedOpen]), /* @__PURE__ */ React$6.createElement(PickerContext.Provider, {
9458
9069
  value: context
9459
- }, /* @__PURE__ */ React$6.createElement(PickerTrigger, _extends$7({}, pickTriggerProps(filledProps), {
9070
+ }, /* @__PURE__ */ React$6.createElement(PickerTrigger, _extends$6({}, pickTriggerProps(filledProps), {
9460
9071
  popupElement: panel,
9461
9072
  popupStyle: styles2.popup,
9462
9073
  popupClassName: classNames.popup,
@@ -9464,7 +9075,7 @@ function Picker2(props, ref) {
9464
9075
  onClose: onPopupClose
9465
9076
  }), /* @__PURE__ */ React$6.createElement(
9466
9077
  RefSingleSelector,
9467
- _extends$7({}, filledProps, {
9078
+ _extends$6({}, filledProps, {
9468
9079
  // Ref
9469
9080
  ref: selectorRef,
9470
9081
  suffixIcon,
@@ -10069,8 +9680,8 @@ const formLayout = "univer-form-layout", formLayoutLabel = "univer-form-layout-l
10069
9680
  formLayoutError,
10070
9681
  formDualColumnLayout
10071
9682
  }, FormLayout = /* @__PURE__ */ __name((props) => {
10072
- const { label, desc, children, style: style2, className, error } = props;
10073
- return /* @__PURE__ */ React__default.createElement("div", { className: clsx$1(styles$j.formLayout, className), style: style2 }, label && /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutLabel }, label), desc && /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutDesc }, desc), /* @__PURE__ */ React__default.createElement("div", { className: clsx$1(styles$j.formLayoutContent, error ? styles$j.formLayoutContentError : "") }, children, error ? /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutError }, error) : null));
9683
+ const { label, desc, children, style: style2, className, error, contentStyle } = props;
9684
+ return /* @__PURE__ */ React__default.createElement("div", { className: clsx$1(styles$j.formLayout, className), style: style2 }, label && /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutLabel }, label), desc && /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutDesc }, desc), /* @__PURE__ */ React__default.createElement("div", { style: contentStyle, className: clsx$1(styles$j.formLayoutContent, error ? styles$j.formLayoutContentError : "") }, children, error ? /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formLayoutError }, error) : null));
10074
9685
  }, "FormLayout"), FormDualColumnLayout = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React__default.createElement("div", { className: styles$j.formDualColumnLayout }, props.children), "FormDualColumnLayout");
10075
9686
  function hasAddon(props) {
10076
9687
  return !!(props.addonBefore || props.addonAfter);
@@ -10190,7 +9801,25 @@ var BaseInput = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
10190
9801
  style: _objectSpread2$3(_objectSpread2$3({}, (_element$props2 = element2.props) === null || _element$props2 === void 0 ? void 0 : _element$props2.style), style2),
10191
9802
  hidden
10192
9803
  });
10193
- }), _excluded$n = ["show"];
9804
+ });
9805
+ function _arrayWithoutHoles$2(r) {
9806
+ if (Array.isArray(r)) return _arrayLikeToArray$2(r);
9807
+ }
9808
+ __name(_arrayWithoutHoles$2, "_arrayWithoutHoles$2");
9809
+ function _iterableToArray$2(r) {
9810
+ if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
9811
+ }
9812
+ __name(_iterableToArray$2, "_iterableToArray$2");
9813
+ function _nonIterableSpread$2() {
9814
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
9815
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
9816
+ }
9817
+ __name(_nonIterableSpread$2, "_nonIterableSpread$2");
9818
+ function _toConsumableArray$3(r) {
9819
+ return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread$2();
9820
+ }
9821
+ __name(_toConsumableArray$3, "_toConsumableArray$3");
9822
+ var _excluded$n = ["show"];
10194
9823
  function useCount(count, showCount) {
10195
9824
  return React$6.useMemo(function() {
10196
9825
  var mergedConfig = {};
@@ -10252,7 +9881,7 @@ var _excluded$m = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
10252
9881
  useEffect(function() {
10253
9882
  if (selection) {
10254
9883
  var _inputRef$current6;
10255
- (_inputRef$current6 = inputRef.current) === null || _inputRef$current6 === void 0 || _inputRef$current6.setSelectionRange.apply(_inputRef$current6, _toConsumableArray$4(selection));
9884
+ (_inputRef$current6 = inputRef.current) === null || _inputRef$current6 === void 0 || _inputRef$current6.setSelectionRange.apply(_inputRef$current6, _toConsumableArray$3(selection));
10256
9885
  }
10257
9886
  }, [selection]);
10258
9887
  var onInternalChange = /* @__PURE__ */ __name(function(e2) {
@@ -11090,23 +10719,6 @@ const inputNumber = "univer-input-number", inputNumberFocused = "univer-input-nu
11090
10719
  }
11091
10720
  );
11092
10721
  });
11093
- function _arrayWithoutHoles$2(r) {
11094
- if (Array.isArray(r)) return _arrayLikeToArray(r);
11095
- }
11096
- __name(_arrayWithoutHoles$2, "_arrayWithoutHoles$2");
11097
- function _iterableToArray$2(r) {
11098
- if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
11099
- }
11100
- __name(_iterableToArray$2, "_iterableToArray$2");
11101
- function _nonIterableSpread$2() {
11102
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
11103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
11104
- }
11105
- __name(_nonIterableSpread$2, "_nonIterableSpread$2");
11106
- function _toConsumableArray$3(r) {
11107
- return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray(r) || _nonIterableSpread$2();
11108
- }
11109
- __name(_toConsumableArray$3, "_toConsumableArray$3");
11110
10722
  function isEqual(obj1, obj2) {
11111
10723
  var shallow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, refSet = /* @__PURE__ */ new Set();
11112
10724
  function deepEqual(a, b2) {
@@ -11177,7 +10789,7 @@ var PathTrackerContext = /* @__PURE__ */ React$6.createContext(EmptyList);
11177
10789
  function useFullPath(eventKey) {
11178
10790
  var parentKeyPath = React$6.useContext(PathTrackerContext);
11179
10791
  return React$6.useMemo(function() {
11180
- return eventKey !== void 0 ? [].concat(_toConsumableArray$3(parentKeyPath), [eventKey]) : parentKeyPath;
10792
+ return eventKey !== void 0 ? [].concat(_toConsumableArray$4(parentKeyPath), [eventKey]) : parentKeyPath;
11181
10793
  }, [parentKeyPath, eventKey]);
11182
10794
  }
11183
10795
  __name(useFullPath, "useFullPath");
@@ -11374,11 +10986,11 @@ function useKeyRecords() {
11374
10986
  return pathKeyList.includes(eventKey);
11375
10987
  });
11376
10988
  }, [getKeyPath]), getKeys = /* @__PURE__ */ __name(function() {
11377
- var keys4 = _toConsumableArray$3(key2pathRef.current.keys());
10989
+ var keys4 = _toConsumableArray$4(key2pathRef.current.keys());
11378
10990
  return overflowKeys.length && keys4.push(OVERFLOW_KEY), keys4;
11379
10991
  }, "getKeys2"), getSubPathKeys = useCallback(function(key) {
11380
10992
  var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT), pathKeys = /* @__PURE__ */ new Set();
11381
- return _toConsumableArray$3(path2keyRef.current.keys()).forEach(function(pathKey) {
10993
+ return _toConsumableArray$4(path2keyRef.current.keys()).forEach(function(pathKey) {
11382
10994
  pathKey.startsWith(connectedPath) && pathKeys.add(path2keyRef.current.get(pathKey));
11383
10995
  }), pathKeys;
11384
10996
  }, []);
@@ -11490,7 +11102,7 @@ var _excluded$i = ["title", "attribute", "elementRef"], _excluded2$2 = ["style",
11490
11102
  return {
11491
11103
  key: eventKey,
11492
11104
  // Note: For legacy code is reversed which not like other antd component
11493
- keyPath: _toConsumableArray$3(connectedKeys).reverse(),
11105
+ keyPath: _toConsumableArray$4(connectedKeys).reverse(),
11494
11106
  item: legacyMenuItemRef.current,
11495
11107
  domEvent: e2
11496
11108
  };
@@ -11560,7 +11172,7 @@ function parseChildren(children, keyPath) {
11560
11172
  return toArray$3(children).map(function(child, index2) {
11561
11173
  if (/* @__PURE__ */ React$6.isValidElement(child)) {
11562
11174
  var _eventKey, _child$props, key = child.key, eventKey = (_eventKey = (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.eventKey) !== null && _eventKey !== void 0 ? _eventKey : key, emptyKey = eventKey == null;
11563
- emptyKey && (eventKey = "tmp_key-".concat([].concat(_toConsumableArray$3(keyPath), [index2]).join("-")));
11175
+ emptyKey && (eventKey = "tmp_key-".concat([].concat(_toConsumableArray$4(keyPath), [index2]).join("-")));
11564
11176
  var cloneProps = {
11565
11177
  key: eventKey,
11566
11178
  eventKey
@@ -11706,7 +11318,7 @@ function InlineSubMenuList(_ref) {
11706
11318
  }, destroy ? null : /* @__PURE__ */ React$6.createElement(InheritableContextProvider, {
11707
11319
  mode: fixedMode,
11708
11320
  locked: !sameModeRef.current
11709
- }, /* @__PURE__ */ React$6.createElement(CSSMotion$1, _extends$6({
11321
+ }, /* @__PURE__ */ React$6.createElement(CSSMotion, _extends$6({
11710
11322
  visible: mergedOpen
11711
11323
  }, mergedMotion, {
11712
11324
  forceRender: forceSubMenuRender,
@@ -11986,7 +11598,7 @@ var _excluded$d = ["prefixCls", "rootClassName", "style", "className", "tabIndex
11986
11598
  var targetKey = info.key, exist = mergedSelectKeys.includes(targetKey), newSelectKeys;
11987
11599
  multiple ? exist ? newSelectKeys = mergedSelectKeys.filter(function(key) {
11988
11600
  return key !== targetKey;
11989
- }) : newSelectKeys = [].concat(_toConsumableArray$3(mergedSelectKeys), [targetKey]) : newSelectKeys = [targetKey], setMergedSelectKeys(newSelectKeys);
11601
+ }) : newSelectKeys = [].concat(_toConsumableArray$4(mergedSelectKeys), [targetKey]) : newSelectKeys = [targetKey], setMergedSelectKeys(newSelectKeys);
11990
11602
  var selectInfo = _objectSpread2$1(_objectSpread2$1({}, info), {}, {
11991
11603
  selectedKeys: newSelectKeys
11992
11604
  });
@@ -13183,8 +12795,8 @@ function Pager(props) {
13183
12795
  return /* @__PURE__ */ React__default.createElement("div", { className: styles$e.pager }, hasValue2 ? /* @__PURE__ */ React__default.createElement(Fragment, null, /* @__PURE__ */ React__default.createElement("div", { role: "button", className: styles$e.pagerLeftArrow, onClick: onClickLeftArrow }, /* @__PURE__ */ React__default.createElement(MoreLeftSingle, null)), /* @__PURE__ */ React__default.createElement("div", { className: styles$e.pagerNumber }, text), /* @__PURE__ */ React__default.createElement("div", { role: "button", className: styles$e.pagerRightArrow, onClick: onClickRightArrow }, /* @__PURE__ */ React__default.createElement(MoreRightSingle, null))) : /* @__PURE__ */ React__default.createElement("div", { className: styles$e.pagerNumber }, text));
13184
12796
  }
13185
12797
  __name(Pager, "Pager");
13186
- const popupAbsolute = "univer-popup-absolute", popup = "univer-popup", popupEnter = "univer-popup-enter", popupEnterActive = "univer-popup-enter-active", popupSlideUpIn = "univer-popup-slide-up-in", popupExit = "univer-popup-exit", popupSlideUpOut = "univer-popup-slide-up-out", popupExitActive = "univer-popup-exit-active", popupMask = "univer-popup-mask", styles$d = {
13187
- popupAbsolute,
12798
+ const popupFixed = "univer-popup-fixed", popup = "univer-popup", popupEnter = "univer-popup-enter", popupEnterActive = "univer-popup-enter-active", popupSlideUpIn = "univer-popup-slide-up-in", popupExit = "univer-popup-exit", popupSlideUpOut = "univer-popup-slide-up-out", popupExitActive = "univer-popup-exit-active", popupMask = "univer-popup-mask", styles$d = {
12799
+ popupFixed,
13188
12800
  popup,
13189
12801
  popupEnter,
13190
12802
  popupEnterActive,
@@ -13246,8 +12858,16 @@ __name(Popup$1, "Popup$1");
13246
12858
  const RectPopupContext = createContext({ top: 0, bottom: 0, left: 0, right: 0 }), PUSHING_MINIMUM_GAP = 8;
13247
12859
  function calcPopupPosition(layout) {
13248
12860
  const { position, width: width2, height: height2, containerHeight, containerWidth, direction = "vertical" } = layout;
13249
- if (direction === "vertical" || direction === "top" || direction === "bottom") {
13250
- const { left: startX2, top: startY2, right: endX2, bottom: endY2 } = position, verticalStyle2 = direction === "top" ? { top: Math.max(startY2 - height2, PUSHING_MINIMUM_GAP) } : { top: Math.min(endY2, containerHeight - height2 - PUSHING_MINIMUM_GAP) }, horizontalStyle2 = startX2 + width2 > containerWidth ? { left: Math.max(endX2 - width2, PUSHING_MINIMUM_GAP) } : { left: Math.min(startX2, containerWidth - width2 - PUSHING_MINIMUM_GAP) };
12861
+ if (direction === "vertical" || direction.includes("top") || direction.includes("bottom")) {
12862
+ const { left: startX2, top: startY2, right: endX2, bottom: endY2 } = position, verticalStyle2 = direction.indexOf("top") > -1 ? { top: Math.max(startY2 - height2, PUSHING_MINIMUM_GAP) } : { top: Math.min(endY2, containerHeight - height2 - PUSHING_MINIMUM_GAP) };
12863
+ let horizontalStyle2;
12864
+ if (direction.includes("center")) {
12865
+ const offsetX = (endX2 - startX2 - width2) / 2;
12866
+ horizontalStyle2 = {
12867
+ left: startX2 + offsetX
12868
+ };
12869
+ } else
12870
+ horizontalStyle2 = startX2 + width2 > containerWidth ? { left: Math.max(endX2 - width2, PUSHING_MINIMUM_GAP) } : { left: Math.min(startX2, containerWidth - width2 - PUSHING_MINIMUM_GAP) };
13251
12871
  return { ...verticalStyle2, ...horizontalStyle2 };
13252
12872
  }
13253
12873
  const { left: startX, top: startY, right: endX, bottom: endY } = position, horizontalStyle = direction === "left" ? { left: Math.max(startX - width2, PUSHING_MINIMUM_GAP) } : { left: Math.min(endX, containerWidth - width2 - PUSHING_MINIMUM_GAP) };
@@ -13255,7 +12875,7 @@ function calcPopupPosition(layout) {
13255
12875
  }
13256
12876
  __name(calcPopupPosition, "calcPopupPosition");
13257
12877
  function RectPopup(props) {
13258
- const { children, anchorRect, direction = "vertical", onClickOutside, excludeOutside, excludeRects } = props, nodeRef = useRef(null), clickOtherFn = useEvent(onClickOutside != null ? onClickOutside : () => {
12878
+ const { children, anchorRect, direction = "vertical", onClickOutside, excludeOutside, excludeRects, onPinterEnter, onPointerLeave, onClick, hidden } = props, nodeRef = useRef(null), clickOtherFn = useEvent(onClickOutside != null ? onClickOutside : () => {
13259
12879
  }), [position, setPosition] = useState({
13260
12880
  top: -9999,
13261
12881
  left: -9999
@@ -13304,10 +12924,13 @@ function RectPopup(props) {
13304
12924
  }, [anchorRect, anchorRect.bottom, anchorRect.left, anchorRect.right, anchorRect.top, clickOtherFn, excludeOutside]), /* @__PURE__ */ React__default.createElement(
13305
12925
  "section",
13306
12926
  {
12927
+ onPointerEnter: onPinterEnter,
12928
+ onPointerLeave,
13307
12929
  ref: nodeRef,
13308
- style: style2,
13309
- className: styles$d.popupAbsolute,
13310
- onPointerDown: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onPointerDown")
12930
+ style: { ...style2, ...hidden ? { display: "none" } : null },
12931
+ className: styles$d.popupFixed,
12932
+ onPointerDown: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onPointerDown"),
12933
+ onClick
13311
12934
  },
13312
12935
  /* @__PURE__ */ React__default.createElement(RectPopupContext.Provider, { value: anchorRect }, children)
13313
12936
  );
@@ -13456,7 +13079,7 @@ var TransBtn = /* @__PURE__ */ __name(function(props) {
13456
13079
  }, children));
13457
13080
  }, "TransBtn"), useAllowClear = /* @__PURE__ */ __name(function(prefixCls, onClearMouseDown, displayValues, allowClear, clearIcon) {
13458
13081
  var disabled = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !1, mergedSearchValue = arguments.length > 6 ? arguments[6] : void 0, mode = arguments.length > 7 ? arguments[7] : void 0, mergedClearIcon = React__default.useMemo(function() {
13459
- if (_typeof$3(allowClear) === "object")
13082
+ if (_typeof$2(allowClear) === "object")
13460
13083
  return allowClear.clearIcon;
13461
13084
  if (clearIcon)
13462
13085
  return clearIcon;
@@ -13477,7 +13100,7 @@ function useBaseProps() {
13477
13100
  }
13478
13101
  __name(useBaseProps, "useBaseProps");
13479
13102
  function useDelayReset() {
13480
- var timeout = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$2(_React$useState, 2), bool = _React$useState2[0], setBool = _React$useState2[1], delayRef = React$6.useRef(null), cancelLatest = /* @__PURE__ */ __name(function() {
13103
+ var timeout = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), bool = _React$useState2[0], setBool = _React$useState2[1], delayRef = React$6.useRef(null), cancelLatest = /* @__PURE__ */ __name(function() {
13481
13104
  window.clearTimeout(delayRef.current);
13482
13105
  }, "cancelLatest");
13483
13106
  React$6.useEffect(function() {
@@ -13566,7 +13189,7 @@ function isValidateOpenKey(currentKeyCode) {
13566
13189
  __name(isValidateOpenKey, "isValidateOpenKey");
13567
13190
  var Input = /* @__PURE__ */ __name(function(props, ref) {
13568
13191
  var _inputNode2, prefixCls = props.prefixCls, id = props.id, inputElement = props.inputElement, disabled = props.disabled, tabIndex = props.tabIndex, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value = props.value, maxLength = props.maxLength, _onKeyDown = props.onKeyDown, _onMouseDown = props.onMouseDown, _onChange = props.onChange, onPaste = props.onPaste, _onCompositionStart = props.onCompositionStart, _onCompositionEnd = props.onCompositionEnd, open = props.open, attrs = props.attrs, inputNode = inputElement || /* @__PURE__ */ React$6.createElement("input", null), _inputNode = inputNode, originRef = _inputNode.ref, originProps = _inputNode.props, onOriginKeyDown = originProps.onKeyDown, onOriginChange = originProps.onChange, onOriginMouseDown = originProps.onMouseDown, onOriginCompositionStart = originProps.onCompositionStart, onOriginCompositionEnd = originProps.onCompositionEnd, style2 = originProps.style;
13569
- return "maxLength" in inputNode.props, inputNode = /* @__PURE__ */ React$6.cloneElement(inputNode, _objectSpread2$2(_objectSpread2$2(_objectSpread2$2({
13192
+ return "maxLength" in inputNode.props, inputNode = /* @__PURE__ */ React$6.cloneElement(inputNode, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({
13570
13193
  type: "search"
13571
13194
  }, originProps), {}, {
13572
13195
  // Override over origin props
@@ -13589,7 +13212,7 @@ var Input = /* @__PURE__ */ __name(function(props, ref) {
13589
13212
  maxLength,
13590
13213
  readOnly: !editable,
13591
13214
  unselectable: editable ? null : "on",
13592
- style: _objectSpread2$2(_objectSpread2$2({}, style2), {}, {
13215
+ style: _objectSpread2$1(_objectSpread2$1({}, style2), {}, {
13593
13216
  opacity: editable ? null : 0
13594
13217
  }),
13595
13218
  onKeyDown: /* @__PURE__ */ __name(function(event) {
@@ -13624,7 +13247,7 @@ function isComboNoValue(value) {
13624
13247
  }
13625
13248
  __name(isComboNoValue, "isComboNoValue");
13626
13249
  function isTitleType$1(title) {
13627
- return ["string", "number"].includes(_typeof$3(title));
13250
+ return ["string", "number"].includes(_typeof$2(title));
13628
13251
  }
13629
13252
  __name(isTitleType$1, "isTitleType$1");
13630
13253
  function getTitle(item) {
@@ -13646,14 +13269,14 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13646
13269
  }, "onPreventMouseDown"), SelectSelector = /* @__PURE__ */ __name(function(props) {
13647
13270
  var id = props.id, prefixCls = props.prefixCls, values3 = props.values, open = props.open, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, inputRef = props.inputRef, placeholder = props.placeholder, disabled = props.disabled, mode = props.mode, showSearch = props.showSearch, autoFocus = props.autoFocus, autoComplete = props.autoComplete, activeDescendantId = props.activeDescendantId, tabIndex = props.tabIndex, removeIcon = props.removeIcon, maxTagCount = props.maxTagCount, maxTagTextLength = props.maxTagTextLength, _props$maxTagPlacehol = props.maxTagPlaceholder, maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function(omittedValues) {
13648
13271
  return "+ ".concat(omittedValues.length, " ...");
13649
- } : _props$maxTagPlacehol, tagRender = props.tagRender, onToggleOpen = props.onToggleOpen, onRemove2 = props.onRemove, onInputChange = props.onInputChange, onInputPaste = props.onInputPaste, onInputKeyDown = props.onInputKeyDown, onInputMouseDown = props.onInputMouseDown, onInputCompositionStart = props.onInputCompositionStart, onInputCompositionEnd = props.onInputCompositionEnd, measureRef = React$6.useRef(null), _useState = useState(0), _useState2 = _slicedToArray$2(_useState, 2), inputWidth = _useState2[0], setInputWidth = _useState2[1], _useState3 = useState(!1), _useState4 = _slicedToArray$2(_useState3, 2), focused = _useState4[0], setFocused = _useState4[1], selectionPrefixCls = "".concat(prefixCls, "-selection"), inputValue = open || mode === "multiple" && autoClearSearchValue === !1 || mode === "tags" ? searchValue : "", inputEditable = mode === "tags" || mode === "multiple" && autoClearSearchValue === !1 || showSearch && (open || focused);
13272
+ } : _props$maxTagPlacehol, tagRender = props.tagRender, onToggleOpen = props.onToggleOpen, onRemove2 = props.onRemove, onInputChange = props.onInputChange, onInputPaste = props.onInputPaste, onInputKeyDown = props.onInputKeyDown, onInputMouseDown = props.onInputMouseDown, onInputCompositionStart = props.onInputCompositionStart, onInputCompositionEnd = props.onInputCompositionEnd, measureRef = React$6.useRef(null), _useState = useState(0), _useState2 = _slicedToArray$1(_useState, 2), inputWidth = _useState2[0], setInputWidth = _useState2[1], _useState3 = useState(!1), _useState4 = _slicedToArray$1(_useState3, 2), focused = _useState4[0], setFocused = _useState4[1], selectionPrefixCls = "".concat(prefixCls, "-selection"), inputValue = open || mode === "multiple" && autoClearSearchValue === !1 || mode === "tags" ? searchValue : "", inputEditable = mode === "tags" || mode === "multiple" && autoClearSearchValue === !1 || showSearch && (open || focused);
13650
13273
  useLayoutEffect(function() {
13651
13274
  setInputWidth(measureRef.current.scrollWidth);
13652
13275
  }, [inputValue]);
13653
13276
  var defaultRenderSelector = /* @__PURE__ */ __name(function(item, content, itemDisabled, closable, onClose) {
13654
13277
  return /* @__PURE__ */ React$6.createElement("span", {
13655
13278
  title: getTitle(item),
13656
- className: clsx("".concat(selectionPrefixCls, "-item"), _defineProperty$c({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled))
13279
+ className: clsx("".concat(selectionPrefixCls, "-item"), _defineProperty$b({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled))
13657
13280
  }, /* @__PURE__ */ React$6.createElement("span", {
13658
13281
  className: "".concat(selectionPrefixCls, "-item-content")
13659
13282
  }, content), closable && /* @__PURE__ */ React$6.createElement(TransBtn, {
@@ -13739,7 +13362,7 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13739
13362
  className: "".concat(selectionPrefixCls, "-placeholder")
13740
13363
  }, placeholder));
13741
13364
  }, "SelectSelector"), SingleSelector = /* @__PURE__ */ __name(function(props) {
13742
- var inputElement = props.inputElement, prefixCls = props.prefixCls, id = props.id, inputRef = props.inputRef, disabled = props.disabled, autoFocus = props.autoFocus, autoComplete = props.autoComplete, activeDescendantId = props.activeDescendantId, mode = props.mode, open = props.open, values3 = props.values, placeholder = props.placeholder, tabIndex = props.tabIndex, showSearch = props.showSearch, searchValue = props.searchValue, activeValue = props.activeValue, maxLength = props.maxLength, onInputKeyDown = props.onInputKeyDown, onInputMouseDown = props.onInputMouseDown, onInputChange = props.onInputChange, onInputPaste = props.onInputPaste, onInputCompositionStart = props.onInputCompositionStart, onInputCompositionEnd = props.onInputCompositionEnd, title = props.title, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$2(_React$useState, 2), inputChanged = _React$useState2[0], setInputChanged = _React$useState2[1], combobox = mode === "combobox", inputEditable = combobox || showSearch, item = values3[0], inputValue = searchValue || "";
13365
+ var inputElement = props.inputElement, prefixCls = props.prefixCls, id = props.id, inputRef = props.inputRef, disabled = props.disabled, autoFocus = props.autoFocus, autoComplete = props.autoComplete, activeDescendantId = props.activeDescendantId, mode = props.mode, open = props.open, values3 = props.values, placeholder = props.placeholder, tabIndex = props.tabIndex, showSearch = props.showSearch, searchValue = props.searchValue, activeValue = props.activeValue, maxLength = props.maxLength, onInputKeyDown = props.onInputKeyDown, onInputMouseDown = props.onInputMouseDown, onInputChange = props.onInputChange, onInputPaste = props.onInputPaste, onInputCompositionStart = props.onInputCompositionStart, onInputCompositionEnd = props.onInputCompositionEnd, title = props.title, _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), inputChanged = _React$useState2[0], setInputChanged = _React$useState2[1], combobox = mode === "combobox", inputEditable = combobox || showSearch, item = values3[0], inputValue = searchValue || "";
13743
13366
  combobox && activeValue && !inputChanged && (inputValue = activeValue), React$6.useEffect(function() {
13744
13367
  combobox && setInputChanged(!1);
13745
13368
  }, [combobox, activeValue]);
@@ -13795,7 +13418,7 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13795
13418
  }, "blur")
13796
13419
  };
13797
13420
  });
13798
- var _useLock = useLock(0), _useLock2 = _slicedToArray$2(_useLock, 2), getInputMouseDown = _useLock2[0], setInputMouseDown = _useLock2[1], onInternalInputKeyDown = /* @__PURE__ */ __name(function(event) {
13421
+ var _useLock = useLock(0), _useLock2 = _slicedToArray$1(_useLock, 2), getInputMouseDown = _useLock2[0], setInputMouseDown = _useLock2[1], onInternalInputKeyDown = /* @__PURE__ */ __name(function(event) {
13799
13422
  var which = event.which;
13800
13423
  (which === KeyCode.UP || which === KeyCode.DOWN) && event.preventDefault(), onInputKeyDown && onInputKeyDown(event), which === KeyCode.ENTER && mode === "tags" && !compositionStatusRef.current && !open && (onSearchSubmit == null || onSearchSubmit(event.target.value)), isValidateOpenKey(which) && onToggleOpen(!0);
13801
13424
  }, "onInternalInputKeyDown2"), onInternalInputMouseDown = /* @__PURE__ */ __name(function() {
@@ -13835,7 +13458,7 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13835
13458
  onInputPaste,
13836
13459
  onInputCompositionStart,
13837
13460
  onInputCompositionEnd
13838
- }, selectNode = mode === "multiple" || mode === "tags" ? /* @__PURE__ */ React$6.createElement(SelectSelector, _extends$5({}, props, sharedProps)) : /* @__PURE__ */ React$6.createElement(SingleSelector, _extends$5({}, props, sharedProps));
13461
+ }, selectNode = mode === "multiple" || mode === "tags" ? /* @__PURE__ */ React$6.createElement(SelectSelector, _extends$6({}, props, sharedProps)) : /* @__PURE__ */ React$6.createElement(SingleSelector, _extends$6({}, props, sharedProps));
13839
13462
  return /* @__PURE__ */ React$6.createElement("div", {
13840
13463
  ref: domRef,
13841
13464
  className: "".concat(prefixCls, "-selector"),
@@ -13885,14 +13508,14 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13885
13508
  }, "getBuiltInPlacements2"), SelectTrigger = /* @__PURE__ */ __name(function(props, ref) {
13886
13509
  var prefixCls = props.prefixCls;
13887
13510
  props.disabled;
13888
- var visible = props.visible, children = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$c), dropdownPrefixCls = "".concat(prefixCls, "-dropdown"), popupNode = popupElement;
13511
+ var visible = props.visible, children = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$2(props, _excluded$c), dropdownPrefixCls = "".concat(prefixCls, "-dropdown"), popupNode = popupElement;
13889
13512
  dropdownRender && (popupNode = dropdownRender(popupElement));
13890
13513
  var mergedBuiltinPlacements = React$6.useMemo(function() {
13891
13514
  return builtinPlacements || getBuiltInPlacements(dropdownMatchSelectWidth);
13892
13515
  }, [builtinPlacements, dropdownMatchSelectWidth]), mergedTransitionName = animation ? "".concat(dropdownPrefixCls, "-").concat(animation) : transitionName, isNumberPopupWidth = typeof dropdownMatchSelectWidth == "number", stretch = React$6.useMemo(function() {
13893
13516
  return isNumberPopupWidth ? null : dropdownMatchSelectWidth === !1 ? "minWidth" : "width";
13894
13517
  }, [dropdownMatchSelectWidth, isNumberPopupWidth]), popupStyle = dropdownStyle;
13895
- isNumberPopupWidth && (popupStyle = _objectSpread2$2(_objectSpread2$2({}, popupStyle), {}, {
13518
+ isNumberPopupWidth && (popupStyle = _objectSpread2$1(_objectSpread2$1({}, popupStyle), {}, {
13896
13519
  width: dropdownMatchSelectWidth
13897
13520
  }));
13898
13521
  var triggerPopupRef = React$6.useRef(null);
@@ -13903,7 +13526,7 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13903
13526
  return (_triggerPopupRef$curr = triggerPopupRef.current) === null || _triggerPopupRef$curr === void 0 ? void 0 : _triggerPopupRef$curr.popupElement;
13904
13527
  }, "getPopupElement")
13905
13528
  };
13906
- }), /* @__PURE__ */ React$6.createElement(Trigger, _extends$5({}, restProps, {
13529
+ }), /* @__PURE__ */ React$6.createElement(Trigger, _extends$6({}, restProps, {
13907
13530
  showAction: onPopupVisibleChange ? ["click"] : [],
13908
13531
  hideAction: onPopupVisibleChange ? ["click"] : [],
13909
13532
  popupPlacement: placement || (direction === "rtl" ? "bottomRight" : "bottomLeft"),
@@ -13918,12 +13541,16 @@ var onPreventMouseDown = /* @__PURE__ */ __name(function(event) {
13918
13541
  popupAlign: dropdownAlign,
13919
13542
  popupVisible: visible,
13920
13543
  getPopupContainer,
13921
- popupClassName: clsx(dropdownClassName, _defineProperty$c({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
13544
+ popupClassName: clsx(dropdownClassName, _defineProperty$b({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
13922
13545
  popupStyle,
13923
13546
  getTriggerDOMNode,
13924
13547
  onPopupVisibleChange
13925
13548
  }), children);
13926
13549
  }, "SelectTrigger2"), RefSelectTrigger = /* @__PURE__ */ React$6.forwardRef(SelectTrigger);
13550
+ function _toArray(r) {
13551
+ return _arrayWithHoles$1(r) || _iterableToArray$3(r) || _unsupportedIterableToArray(r) || _nonIterableRest$1();
13552
+ }
13553
+ __name(_toArray, "_toArray");
13927
13554
  function getKey(data, index2) {
13928
13555
  var key = data.key, value;
13929
13556
  return "value" in data && (value = data.value), key != null ? key : value !== void 0 ? value : "rc-index-key-".concat(index2);
@@ -13971,7 +13598,7 @@ function flattenOptions(options) {
13971
13598
  }
13972
13599
  __name(flattenOptions, "flattenOptions");
13973
13600
  function injectPropsWithOption(option) {
13974
- var newOption = _objectSpread2$2({}, option);
13601
+ var newOption = _objectSpread2$1({}, option);
13975
13602
  return "props" in newOption || Object.defineProperty(newOption, "props", {
13976
13603
  get: /* @__PURE__ */ __name(function() {
13977
13604
  return warningOnce$1(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), newOption;
@@ -13988,7 +13615,7 @@ var getSeparatedContent = /* @__PURE__ */ __name(function(text, tokens, end) {
13988
13615
  return [str];
13989
13616
  var list2 = str.split(token);
13990
13617
  return match2 = match2 || list2.length > 1, list2.reduce(function(prevList, unitStr) {
13991
- return [].concat(_toConsumableArray$5(prevList), _toConsumableArray$5(separate2(unitStr, restTokens)));
13618
+ return [].concat(_toConsumableArray$4(prevList), _toConsumableArray$4(separate2(unitStr, restTokens)));
13992
13619
  }, []).filter(Boolean);
13993
13620
  }, "separate"), list = separate(text, tokens);
13994
13621
  return match2 ? typeof end < "u" ? list.slice(0, end) : list : null;
@@ -14009,24 +13636,24 @@ function Polite(props) {
14009
13636
  }
14010
13637
  }, "".concat(values3.slice(0, MAX_COUNT).map(function(_ref) {
14011
13638
  var label = _ref.label, value = _ref.value;
14012
- return ["number", "string"].includes(_typeof$3(label)) ? label : value;
13639
+ return ["number", "string"].includes(_typeof$2(label)) ? label : value;
14013
13640
  }).join(", ")), values3.length > MAX_COUNT ? ", ..." : null);
14014
13641
  }
14015
13642
  __name(Polite, "Polite");
14016
13643
  var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], isMultiple = /* @__PURE__ */ __name(function(mode) {
14017
13644
  return mode === "tags" || mode === "multiple";
14018
13645
  }, "isMultiple2"), BaseSelect = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
14019
- var _customizeRawInputEle, id = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur2 = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$b), multiple = isMultiple(mode), mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox", domProps = _objectSpread2$2({}, restProps);
13646
+ var _customizeRawInputEle, id = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur2 = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$2(props, _excluded$b), multiple = isMultiple(mode), mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox", domProps = _objectSpread2$1({}, restProps);
14020
13647
  DEFAULT_OMIT_PROPS.forEach(function(propName) {
14021
13648
  delete domProps[propName];
14022
13649
  }), omitDomProps == null || omitDomProps.forEach(function(propName) {
14023
13650
  delete domProps[propName];
14024
13651
  });
14025
- var _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$2(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
13652
+ var _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
14026
13653
  React$6.useEffect(function() {
14027
13654
  setMobile(isMobile());
14028
13655
  }, []);
14029
- var containerRef = React$6.useRef(null), selectorDomRef = React$6.useRef(null), triggerRef = React$6.useRef(null), selectorRef = React$6.useRef(null), listRef = React$6.useRef(null), blurRef = React$6.useRef(!1), _useDelayReset = useDelayReset(), _useDelayReset2 = _slicedToArray$2(_useDelayReset, 3), mockFocused = _useDelayReset2[0], setMockFocused = _useDelayReset2[1], cancelSetMockFocused = _useDelayReset2[2];
13656
+ var containerRef = React$6.useRef(null), selectorDomRef = React$6.useRef(null), triggerRef = React$6.useRef(null), selectorRef = React$6.useRef(null), listRef = React$6.useRef(null), blurRef = React$6.useRef(!1), _useDelayReset = useDelayReset(), _useDelayReset2 = _slicedToArray$1(_useDelayReset, 3), mockFocused = _useDelayReset2[0], setMockFocused = _useDelayReset2[1], cancelSetMockFocused = _useDelayReset2[2];
14030
13657
  React$6.useImperativeHandle(ref, function() {
14031
13658
  var _selectorRef$current, _selectorRef$current2;
14032
13659
  return {
@@ -14045,14 +13672,14 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14045
13672
  return searchValue;
14046
13673
  var val = (_displayValues$ = displayValues[0]) === null || _displayValues$ === void 0 ? void 0 : _displayValues$.value;
14047
13674
  return typeof val == "string" || typeof val == "number" ? String(val) : "";
14048
- }, [searchValue, mode, displayValues]), customizeInputElement = mode === "combobox" && typeof getInputElement == "function" && getInputElement() || null, customizeRawInputElement = typeof getRawInputElement == "function" && getRawInputElement(), customizeRawInputRef = useComposeRef(selectorDomRef, customizeRawInputElement == null || (_customizeRawInputEle = customizeRawInputElement.props) === null || _customizeRawInputEle === void 0 ? void 0 : _customizeRawInputEle.ref), _React$useState3 = React$6.useState(!1), _React$useState4 = _slicedToArray$2(_React$useState3, 2), rendered = _React$useState4[0], setRendered = _React$useState4[1];
13675
+ }, [searchValue, mode, displayValues]), customizeInputElement = mode === "combobox" && typeof getInputElement == "function" && getInputElement() || null, customizeRawInputElement = typeof getRawInputElement == "function" && getRawInputElement(), customizeRawInputRef = useComposeRef(selectorDomRef, customizeRawInputElement == null || (_customizeRawInputEle = customizeRawInputElement.props) === null || _customizeRawInputEle === void 0 ? void 0 : _customizeRawInputEle.ref), _React$useState3 = React$6.useState(!1), _React$useState4 = _slicedToArray$1(_React$useState3, 2), rendered = _React$useState4[0], setRendered = _React$useState4[1];
14049
13676
  useLayoutEffect$1(function() {
14050
13677
  setRendered(!0);
14051
13678
  }, []);
14052
13679
  var _useMergedState = useMergedState(!1, {
14053
13680
  defaultValue: defaultOpen,
14054
13681
  value: open
14055
- }), _useMergedState2 = _slicedToArray$2(_useMergedState, 2), innerOpen = _useMergedState2[0], setInnerOpen = _useMergedState2[1], mergedOpen = rendered ? innerOpen : !1, emptyListContent = !notFoundContent && emptyOptions;
13682
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), innerOpen = _useMergedState2[0], setInnerOpen = _useMergedState2[1], mergedOpen = rendered ? innerOpen : !1, emptyListContent = !notFoundContent && emptyOptions;
14056
13683
  (disabled || emptyListContent && mergedOpen && mode === "combobox") && (mergedOpen = !1);
14057
13684
  var triggerOpen = emptyListContent ? !1 : mergedOpen, onToggleOpen = React$6.useCallback(function(newOpen) {
14058
13685
  var nextOpen = newOpen !== void 0 ? newOpen : !mergedOpen;
@@ -14082,10 +13709,10 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14082
13709
  }, [mergedOpen]), React$6.useEffect(function() {
14083
13710
  innerOpen && disabled && setInnerOpen(!1), disabled && !blurRef.current && setMockFocused(!1);
14084
13711
  }, [disabled]);
14085
- var _useLock = useLock(), _useLock2 = _slicedToArray$2(_useLock, 2), getClearLock = _useLock2[0], setClearLock = _useLock2[1], keyLockRef = React$6.useRef(!1), onInternalKeyDown = /* @__PURE__ */ __name(function(event) {
13712
+ var _useLock = useLock(), _useLock2 = _slicedToArray$1(_useLock, 2), getClearLock = _useLock2[0], setClearLock = _useLock2[1], keyLockRef = React$6.useRef(!1), onInternalKeyDown = /* @__PURE__ */ __name(function(event) {
14086
13713
  var clearLock = getClearLock(), key = event.key, isEnterKey = key === "Enter";
14087
13714
  if (isEnterKey && (mode !== "combobox" && event.preventDefault(), mergedOpen || onToggleOpen(!0)), setClearLock(!!mergedSearchValue), key === "Backspace" && !clearLock && multiple && !mergedSearchValue && displayValues.length) {
14088
- for (var cloneDisplayValues = _toConsumableArray$5(displayValues), removedDisplayValue = null, i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {
13715
+ for (var cloneDisplayValues = _toConsumableArray$4(displayValues), removedDisplayValue = null, i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {
14089
13716
  var current = cloneDisplayValues[i];
14090
13717
  if (!current.disabled) {
14091
13718
  cloneDisplayValues.splice(i, 1), removedDisplayValue = current;
@@ -14153,7 +13780,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14153
13780
  for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++)
14154
13781
  restArgs[_key3 - 1] = arguments[_key3];
14155
13782
  onMouseDown == null || onMouseDown.apply(void 0, [event].concat(restArgs));
14156
- }, "onInternalMouseDown2"), _React$useState5 = React$6.useState({}), _React$useState6 = _slicedToArray$2(_React$useState5, 2), forceUpdate = _React$useState6[1];
13783
+ }, "onInternalMouseDown2"), _React$useState5 = React$6.useState({}), _React$useState6 = _slicedToArray$1(_React$useState5, 2), forceUpdate = _React$useState6[1];
14157
13784
  function onPopupMouseEnter() {
14158
13785
  forceUpdate({});
14159
13786
  }
@@ -14166,7 +13793,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14166
13793
  return [containerRef.current, (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.getPopupElement()];
14167
13794
  }, triggerOpen, onToggleOpen, !!customizeRawInputElement);
14168
13795
  var baseSelectContext = React$6.useMemo(function() {
14169
- return _objectSpread2$2(_objectSpread2$2({}, props), {}, {
13796
+ return _objectSpread2$1(_objectSpread2$1({}, props), {}, {
14170
13797
  notFoundContent,
14171
13798
  open: mergedOpen,
14172
13799
  triggerOpen,
@@ -14177,7 +13804,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14177
13804
  });
14178
13805
  }, [props, notFoundContent, triggerOpen, mergedOpen, id, mergedShowSearch, multiple, onToggleOpen]), showSuffixIcon = !!suffixIcon || loading, arrowNode;
14179
13806
  showSuffixIcon && (arrowNode = /* @__PURE__ */ React$6.createElement(TransBtn, {
14180
- className: clsx("".concat(prefixCls, "-arrow"), _defineProperty$c({}, "".concat(prefixCls, "-arrow-loading"), loading)),
13807
+ className: clsx("".concat(prefixCls, "-arrow"), _defineProperty$b({}, "".concat(prefixCls, "-arrow-loading"), loading)),
14181
13808
  customizeIcon: suffixIcon,
14182
13809
  customizeIconProps: {
14183
13810
  loading,
@@ -14195,7 +13822,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14195
13822
  }), onInternalSearch("", !1, !1);
14196
13823
  }, "onClearMouseDown2"), _useAllowClear = useAllowClear(prefixCls, onClearMouseDown, displayValues, allowClear, clearIcon, disabled, mergedSearchValue, mode), mergedAllowClear = _useAllowClear.allowClear, clearNode = _useAllowClear.clearIcon, optionList = /* @__PURE__ */ React$6.createElement(OptionList3, {
14197
13824
  ref: listRef
14198
- }), mergedClassName = clsx(prefixCls, className, _defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({}, "".concat(prefixCls, "-focused"), mockFocused), "".concat(prefixCls, "-multiple"), multiple), "".concat(prefixCls, "-single"), !multiple), "".concat(prefixCls, "-allow-clear"), allowClear), "".concat(prefixCls, "-show-arrow"), showSuffixIcon), "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-loading"), loading), "".concat(prefixCls, "-open"), mergedOpen), "".concat(prefixCls, "-customize-input"), customizeInputElement), "".concat(prefixCls, "-show-search"), mergedShowSearch)), selectorNode = /* @__PURE__ */ React$6.createElement(RefSelectTrigger, {
13825
+ }), mergedClassName = clsx(prefixCls, className, _defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b({}, "".concat(prefixCls, "-focused"), mockFocused), "".concat(prefixCls, "-multiple"), multiple), "".concat(prefixCls, "-single"), !multiple), "".concat(prefixCls, "-allow-clear"), allowClear), "".concat(prefixCls, "-show-arrow"), showSuffixIcon), "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-loading"), loading), "".concat(prefixCls, "-open"), mergedOpen), "".concat(prefixCls, "-customize-input"), customizeInputElement), "".concat(prefixCls, "-show-search"), mergedShowSearch)), selectorNode = /* @__PURE__ */ React$6.createElement(RefSelectTrigger, {
14199
13826
  ref: triggerRef,
14200
13827
  disabled,
14201
13828
  prefixCls,
@@ -14225,7 +13852,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14225
13852
  onPopupMouseEnter
14226
13853
  }, customizeRawInputElement ? /* @__PURE__ */ React$6.cloneElement(customizeRawInputElement, {
14227
13854
  ref: customizeRawInputRef
14228
- }) : /* @__PURE__ */ React$6.createElement(ForwardSelector, _extends$5({}, props, {
13855
+ }) : /* @__PURE__ */ React$6.createElement(ForwardSelector, _extends$6({}, props, {
14229
13856
  domRef: selectorDomRef,
14230
13857
  prefixCls,
14231
13858
  inputElement: customizeInputElement,
@@ -14246,7 +13873,7 @@ var _excluded$b = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
14246
13873
  onRemove: onSelectorRemove,
14247
13874
  tokenWithEnter
14248
13875
  }))), renderNode;
14249
- return customizeRawInputElement ? renderNode = selectorNode : renderNode = /* @__PURE__ */ React$6.createElement("div", _extends$5({
13876
+ return customizeRawInputElement ? renderNode = selectorNode : renderNode = /* @__PURE__ */ React$6.createElement("div", _extends$6({
14250
13877
  className: mergedClassName
14251
13878
  }, domProps, {
14252
13879
  ref: containerRef,
@@ -14966,7 +14593,7 @@ var OptionList = /* @__PURE__ */ __name(function(_, ref) {
14966
14593
  return -1;
14967
14594
  }, "getEnabledActiveIndex2"), _React$useState = React$6.useState(function() {
14968
14595
  return getEnabledActiveIndex(0);
14969
- }), _React$useState2 = _slicedToArray$2(_React$useState, 2), activeIndex = _React$useState2[0], setActiveIndex = _React$useState2[1], setActive = /* @__PURE__ */ __name(function(index2) {
14596
+ }), _React$useState2 = _slicedToArray$1(_React$useState, 2), activeIndex = _React$useState2[0], setActiveIndex = _React$useState2[1], setActive = /* @__PURE__ */ __name(function(index2) {
14970
14597
  var fromKeyboard = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
14971
14598
  setActiveIndex(index2);
14972
14599
  var info = {
@@ -14983,7 +14610,7 @@ var OptionList = /* @__PURE__ */ __name(function(_, ref) {
14983
14610
  }, [memoFlattenOptions.length, searchValue]);
14984
14611
  var isSelected = React$6.useCallback(function(value) {
14985
14612
  return rawValues.has(value) && mode !== "combobox";
14986
- }, [mode, _toConsumableArray$5(rawValues).toString(), rawValues.size]);
14613
+ }, [mode, _toConsumableArray$4(rawValues).toString(), rawValues.size]);
14987
14614
  useEffect(function() {
14988
14615
  var timeoutId = setTimeout(function() {
14989
14616
  if (!multiple && open && rawValues.size === 1) {
@@ -15063,7 +14690,7 @@ var OptionList = /* @__PURE__ */ __name(function(_, ref) {
15063
14690
  if (!item)
15064
14691
  return null;
15065
14692
  var itemData = item.data || {}, value = itemData.value, group = item.group, attrs = pickAttrs(itemData, !0), mergedLabel = getLabel(item);
15066
- return item ? /* @__PURE__ */ React$6.createElement("div", _extends$5({
14693
+ return item ? /* @__PURE__ */ React$6.createElement("div", _extends$6({
15067
14694
  "aria-label": typeof mergedLabel == "string" && !group ? mergedLabel : null
15068
14695
  }, attrs, {
15069
14696
  key: index2
@@ -15074,7 +14701,7 @@ var OptionList = /* @__PURE__ */ __name(function(_, ref) {
15074
14701
  role: "listbox",
15075
14702
  id: "".concat(id, "_list")
15076
14703
  };
15077
- return /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, virtual && /* @__PURE__ */ React$6.createElement("div", _extends$5({}, a11yProps, {
14704
+ return /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, virtual && /* @__PURE__ */ React$6.createElement("div", _extends$6({}, a11yProps, {
15078
14705
  style: {
15079
14706
  height: 0,
15080
14707
  width: 0,
@@ -15103,8 +14730,8 @@ var OptionList = /* @__PURE__ */ __name(function(_, ref) {
15103
14730
  }
15104
14731
  var disabled = data.disabled, title = data.title;
15105
14732
  data.children;
15106
- var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$9), passedProps = omit$2(otherProps, omitFieldNameList), selected = isSelected(value), mergedDisabled = disabled || !selected && overMaxCount, optionPrefixCls = "".concat(itemPrefixCls, "-option"), optionClassName = clsx(itemPrefixCls, optionPrefixCls, className, _defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({}, "".concat(optionPrefixCls, "-grouped"), groupOption), "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !mergedDisabled), "".concat(optionPrefixCls, "-disabled"), mergedDisabled), "".concat(optionPrefixCls, "-selected"), selected)), mergedLabel = getLabel(item), iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon == "function" || selected, content = typeof mergedLabel == "number" ? mergedLabel : mergedLabel || value, optionTitle = isTitleType(content) ? content.toString() : void 0;
15107
- return title !== void 0 && (optionTitle = title), /* @__PURE__ */ React$6.createElement("div", _extends$5({}, pickAttrs(passedProps), virtual ? {} : getItemAriaProps(item, itemIndex), {
14733
+ var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$2(data, _excluded$9), passedProps = omit$2(otherProps, omitFieldNameList), selected = isSelected(value), mergedDisabled = disabled || !selected && overMaxCount, optionPrefixCls = "".concat(itemPrefixCls, "-option"), optionClassName = clsx(itemPrefixCls, optionPrefixCls, className, _defineProperty$b(_defineProperty$b(_defineProperty$b(_defineProperty$b({}, "".concat(optionPrefixCls, "-grouped"), groupOption), "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !mergedDisabled), "".concat(optionPrefixCls, "-disabled"), mergedDisabled), "".concat(optionPrefixCls, "-selected"), selected)), mergedLabel = getLabel(item), iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon == "function" || selected, content = typeof mergedLabel == "number" ? mergedLabel : mergedLabel || value, optionTitle = isTitleType(content) ? content.toString() : void 0;
14734
+ return title !== void 0 && (optionTitle = title), /* @__PURE__ */ React$6.createElement("div", _extends$6({}, pickAttrs(passedProps), virtual ? {} : getItemAriaProps(item, itemIndex), {
15108
14735
  "aria-selected": selected,
15109
14736
  className: optionClassName,
15110
14737
  title: optionTitle,
@@ -15138,7 +14765,7 @@ const useCache = /* @__PURE__ */ __name(function(labeledValues, valueOptions) {
15138
14765
  var _cacheRef$current = cacheRef.current, prevValueCache = _cacheRef$current.values, prevOptionCache = _cacheRef$current.options, patchedValues = labeledValues.map(function(item) {
15139
14766
  if (item.label === void 0) {
15140
14767
  var _prevValueCache$get;
15141
- return _objectSpread2$2(_objectSpread2$2({}, item), {}, {
14768
+ return _objectSpread2$1(_objectSpread2$1({}, item), {}, {
15142
14769
  label: (_prevValueCache$get = prevValueCache.get(item.value)) === null || _prevValueCache$get === void 0 ? void 0 : _prevValueCache$get.label
15143
14770
  });
15144
14771
  }
@@ -15176,7 +14803,7 @@ const useFilterOptions = /* @__PURE__ */ __name(function(options, fieldNames, se
15176
14803
  var subOptions = item[fieldOptions].filter(function(subItem) {
15177
14804
  return filterFunc(searchValue, wrapOption(subItem));
15178
14805
  });
15179
- subOptions.length && filteredOptions.push(_objectSpread2$2(_objectSpread2$2({}, item), {}, _defineProperty$c({}, fieldOptions, subOptions)));
14806
+ subOptions.length && filteredOptions.push(_objectSpread2$1(_objectSpread2$1({}, item), {}, _defineProperty$b({}, fieldOptions, subOptions)));
15180
14807
  }
15181
14808
  return;
15182
14809
  }
@@ -15191,7 +14818,7 @@ function getUUID() {
15191
14818
  }
15192
14819
  __name(getUUID, "getUUID");
15193
14820
  function useId2(id) {
15194
- var _React$useState = React$6.useState(), _React$useState2 = _slicedToArray$2(_React$useState, 2), innerId = _React$useState2[0], setInnerId = _React$useState2[1];
14821
+ var _React$useState = React$6.useState(), _React$useState2 = _slicedToArray$1(_React$useState, 2), innerId = _React$useState2[0], setInnerId = _React$useState2[1];
15195
14822
  return React$6.useEffect(function() {
15196
14823
  setInnerId("rc_select_".concat(getUUID()));
15197
14824
  }, []), id || innerId;
@@ -15199,8 +14826,8 @@ function useId2(id) {
15199
14826
  __name(useId2, "useId");
15200
14827
  var _excluded$8 = ["children", "value"], _excluded2 = ["children"];
15201
14828
  function convertNodeToOption(node) {
15202
- var _ref = node, key = _ref.key, _ref$props = _ref.props, children = _ref$props.children, value = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$8);
15203
- return _objectSpread2$2({
14829
+ var _ref = node, key = _ref.key, _ref$props = _ref.props, children = _ref$props.children, value = _ref$props.value, restProps = _objectWithoutProperties$2(_ref$props, _excluded$8);
14830
+ return _objectSpread2$1({
15204
14831
  key,
15205
14832
  value: value !== void 0 ? value : key,
15206
14833
  children
@@ -15212,8 +14839,8 @@ function convertChildrenToData(nodes) {
15212
14839
  return toArray$3(nodes).map(function(node, index2) {
15213
14840
  if (!/* @__PURE__ */ React$6.isValidElement(node) || !node.type)
15214
14841
  return null;
15215
- var _ref2 = node, isSelectOptGroup = _ref2.type.isSelectOptGroup, key = _ref2.key, _ref2$props = _ref2.props, children = _ref2$props.children, restProps = _objectWithoutProperties$1(_ref2$props, _excluded2);
15216
- return optionOnly || !isSelectOptGroup ? convertNodeToOption(node) : _objectSpread2$2(_objectSpread2$2({
14842
+ var _ref2 = node, isSelectOptGroup = _ref2.type.isSelectOptGroup, key = _ref2.key, _ref2$props = _ref2.props, children = _ref2$props.children, restProps = _objectWithoutProperties$2(_ref2$props, _excluded2);
14843
+ return optionOnly || !isSelectOptGroup ? convertNodeToOption(node) : _objectSpread2$1(_objectSpread2$1({
15217
14844
  key: "__RC_SELECT_GRP__".concat(key === null ? index2 : key, "__"),
15218
14845
  label: key
15219
14846
  }, restProps), {}, {
@@ -15254,11 +14881,11 @@ function useRefFunc(callback) {
15254
14881
  __name(useRefFunc, "useRefFunc");
15255
14882
  var _excluded$7 = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], OMIT_DOM_PROPS = ["inputValue"];
15256
14883
  function isRawValue(value) {
15257
- return !value || _typeof$3(value) !== "object";
14884
+ return !value || _typeof$2(value) !== "object";
15258
14885
  }
15259
14886
  __name(isRawValue, "isRawValue");
15260
14887
  var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15261
- var id = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? !0 : _props$autoClearSearc, onSelect2 = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? !0 : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$7), mergedId = useId2(id), multiple = isMultiple(mode), childrenAsData = !!(!options && children), mergedFilterOption = React$6.useMemo(function() {
14888
+ var id = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? !0 : _props$autoClearSearc, onSelect2 = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? !0 : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$2(props, _excluded$7), mergedId = useId2(id), multiple = isMultiple(mode), childrenAsData = !!(!options && children), mergedFilterOption = React$6.useMemo(function() {
15262
14889
  return filterOption === void 0 && mode === "combobox" ? !1 : filterOption;
15263
14890
  }, [filterOption, mode]), mergedFieldNames = React$6.useMemo(
15264
14891
  function() {
@@ -15276,7 +14903,7 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15276
14903
  postState: /* @__PURE__ */ __name(function(search) {
15277
14904
  return search || "";
15278
14905
  }, "postState")
15279
- }), _useMergedState2 = _slicedToArray$2(_useMergedState, 2), mergedSearchValue = _useMergedState2[0], setSearchValue = _useMergedState2[1], parsedOptions = useOptions(options, children, mergedFieldNames, optionFilterProp, optionLabelProp), valueOptions = parsedOptions.valueOptions, labelOptions = parsedOptions.labelOptions, mergedOptions = parsedOptions.options, convert2LabelValues = React$6.useCallback(function(draftValues) {
14906
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), mergedSearchValue = _useMergedState2[0], setSearchValue = _useMergedState2[1], parsedOptions = useOptions(options, children, mergedFieldNames, optionFilterProp, optionLabelProp), valueOptions = parsedOptions.valueOptions, labelOptions = parsedOptions.labelOptions, mergedOptions = parsedOptions.options, convert2LabelValues = React$6.useCallback(function(draftValues) {
15280
14907
  var valueList = toArray(draftValues);
15281
14908
  return valueList.map(function(val) {
15282
14909
  var rawValue, rawLabel, rawKey, rawDisabled, rawTitle;
@@ -15301,10 +14928,10 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15301
14928
  });
15302
14929
  }, [mergedFieldNames, optionLabelProp, valueOptions]), _useMergedState3 = useMergedState(defaultValue, {
15303
14930
  value
15304
- }), _useMergedState4 = _slicedToArray$2(_useMergedState3, 2), internalValue = _useMergedState4[0], setInternalValue = _useMergedState4[1], rawLabeledValues = React$6.useMemo(function() {
14931
+ }), _useMergedState4 = _slicedToArray$1(_useMergedState3, 2), internalValue = _useMergedState4[0], setInternalValue = _useMergedState4[1], rawLabeledValues = React$6.useMemo(function() {
15305
14932
  var _values$, newInternalValue = multiple && internalValue === null ? [] : internalValue, values3 = convert2LabelValues(newInternalValue);
15306
14933
  return mode === "combobox" && isComboNoValue((_values$ = values3[0]) === null || _values$ === void 0 ? void 0 : _values$.value) ? [] : values3;
15307
- }, [internalValue, convert2LabelValues, mode, multiple]), _useCache = useCache(rawLabeledValues, valueOptions), _useCache2 = _slicedToArray$2(_useCache, 2), mergedValues = _useCache2[0], getMixedOption = _useCache2[1], displayValues = React$6.useMemo(function() {
14934
+ }, [internalValue, convert2LabelValues, mode, multiple]), _useCache = useCache(rawLabeledValues, valueOptions), _useCache2 = _slicedToArray$1(_useCache, 2), mergedValues = _useCache2[0], getMixedOption = _useCache2[1], displayValues = React$6.useMemo(function() {
15308
14935
  if (!mode && mergedValues.length === 1) {
15309
14936
  var firstValue = mergedValues[0];
15310
14937
  if (firstValue.value === null && (firstValue.label === null || firstValue.label === void 0))
@@ -15312,7 +14939,7 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15312
14939
  }
15313
14940
  return mergedValues.map(function(item) {
15314
14941
  var _ref;
15315
- return _objectSpread2$2(_objectSpread2$2({}, item), {}, {
14942
+ return _objectSpread2$1(_objectSpread2$1({}, item), {}, {
15316
14943
  label: (_ref = typeof labelRender == "function" ? labelRender(item) : item.label) !== null && _ref !== void 0 ? _ref : item.value
15317
14944
  });
15318
14945
  });
@@ -15329,14 +14956,14 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15329
14956
  }, [mergedValues]);
15330
14957
  var createTagOption = useRefFunc(function(val, label) {
15331
14958
  var mergedLabel = label != null ? label : val;
15332
- return _defineProperty$c(_defineProperty$c({}, mergedFieldNames.value, val), mergedFieldNames.label, mergedLabel);
14959
+ return _defineProperty$b(_defineProperty$b({}, mergedFieldNames.value, val), mergedFieldNames.label, mergedLabel);
15333
14960
  }), filledTagOptions = React$6.useMemo(function() {
15334
14961
  if (mode !== "tags")
15335
14962
  return mergedOptions;
15336
- var cloneOptions = _toConsumableArray$5(mergedOptions), existOptions = /* @__PURE__ */ __name(function(val) {
14963
+ var cloneOptions = _toConsumableArray$4(mergedOptions), existOptions = /* @__PURE__ */ __name(function(val) {
15337
14964
  return valueOptions.has(val);
15338
14965
  }, "existOptions2");
15339
- return _toConsumableArray$5(mergedValues).sort(function(a, b2) {
14966
+ return _toConsumableArray$4(mergedValues).sort(function(a, b2) {
15340
14967
  return a.value < b2.value ? -1 : 1;
15341
14968
  }).forEach(function(item) {
15342
14969
  var val = item.value;
@@ -15347,13 +14974,20 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15347
14974
  return item[optionFilterProp || "value"] === mergedSearchValue;
15348
14975
  }) || filteredOptions.some(function(item) {
15349
14976
  return item[mergedFieldNames.value] === mergedSearchValue;
15350
- }) ? filteredOptions : [createTagOption(mergedSearchValue)].concat(_toConsumableArray$5(filteredOptions));
15351
- }, [createTagOption, optionFilterProp, mode, filteredOptions, mergedSearchValue, mergedFieldNames]), orderedFilteredOptions = React$6.useMemo(function() {
15352
- return filterSort ? _toConsumableArray$5(filledSearchOptions).sort(function(a, b2) {
14977
+ }) ? filteredOptions : [createTagOption(mergedSearchValue)].concat(_toConsumableArray$4(filteredOptions));
14978
+ }, [createTagOption, optionFilterProp, mode, filteredOptions, mergedSearchValue, mergedFieldNames]), sorter = /* @__PURE__ */ __name(function sorter2(inputOptions) {
14979
+ var sortedOptions = _toConsumableArray$4(inputOptions).sort(function(a, b2) {
15353
14980
  return filterSort(a, b2, {
15354
14981
  searchValue: mergedSearchValue
15355
14982
  });
15356
- }) : filledSearchOptions;
14983
+ });
14984
+ return sortedOptions.map(function(item) {
14985
+ return Array.isArray(item.options) ? _objectSpread2$1(_objectSpread2$1({}, item), {}, {
14986
+ options: item.options.length > 0 ? sorter2(item.options) : item.options
14987
+ }) : item;
14988
+ });
14989
+ }, "sorter2"), orderedFilteredOptions = React$6.useMemo(function() {
14990
+ return filterSort ? sorter(filledSearchOptions) : filledSearchOptions;
15357
14991
  }, [filledSearchOptions, filterSort, mergedSearchValue]), displayOptions = React$6.useMemo(function() {
15358
14992
  return flattenOptions(orderedFilteredOptions, {
15359
14993
  fieldNames: mergedFieldNames,
@@ -15378,7 +15012,7 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15378
15012
  multiple ? returnOptions : returnOptions[0]
15379
15013
  );
15380
15014
  }
15381
- }, "triggerChange2"), _React$useState = React$6.useState(null), _React$useState2 = _slicedToArray$2(_React$useState, 2), activeValue = _React$useState2[0], setActiveValue = _React$useState2[1], _React$useState3 = React$6.useState(0), _React$useState4 = _slicedToArray$2(_React$useState3, 2), accessibilityIndex = _React$useState4[0], setAccessibilityIndex = _React$useState4[1], mergedDefaultActiveFirstOption = defaultActiveFirstOption !== void 0 ? defaultActiveFirstOption : mode !== "combobox", onActiveValue = React$6.useCallback(function(active, index2) {
15015
+ }, "triggerChange2"), _React$useState = React$6.useState(null), _React$useState2 = _slicedToArray$1(_React$useState, 2), activeValue = _React$useState2[0], setActiveValue = _React$useState2[1], _React$useState3 = React$6.useState(0), _React$useState4 = _slicedToArray$1(_React$useState3, 2), accessibilityIndex = _React$useState4[0], setAccessibilityIndex = _React$useState4[1], mergedDefaultActiveFirstOption = defaultActiveFirstOption !== void 0 ? defaultActiveFirstOption : mode !== "combobox", onActiveValue = React$6.useCallback(function(active, index2) {
15382
15016
  var _ref3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ref3$source = _ref3.source, source = _ref3$source === void 0 ? "keyboard" : _ref3$source;
15383
15017
  setAccessibilityIndex(index2), backfill && mode === "combobox" && active !== null && source === "keyboard" && setActiveValue(String(active));
15384
15018
  }, [backfill, mode]), triggerSelect = /* @__PURE__ */ __name(function(val, selected, type2) {
@@ -15391,15 +15025,15 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15391
15025
  } : val, injectPropsWithOption(option)];
15392
15026
  }, "getSelectEnt2");
15393
15027
  if (selected && onSelect2) {
15394
- var _getSelectEnt = getSelectEnt(), _getSelectEnt2 = _slicedToArray$2(_getSelectEnt, 2), wrappedValue = _getSelectEnt2[0], _option = _getSelectEnt2[1];
15028
+ var _getSelectEnt = getSelectEnt(), _getSelectEnt2 = _slicedToArray$1(_getSelectEnt, 2), wrappedValue = _getSelectEnt2[0], _option = _getSelectEnt2[1];
15395
15029
  onSelect2(wrappedValue, _option);
15396
15030
  } else if (!selected && onDeselect && type2 !== "clear") {
15397
- var _getSelectEnt3 = getSelectEnt(), _getSelectEnt4 = _slicedToArray$2(_getSelectEnt3, 2), _wrappedValue = _getSelectEnt4[0], _option2 = _getSelectEnt4[1];
15031
+ var _getSelectEnt3 = getSelectEnt(), _getSelectEnt4 = _slicedToArray$1(_getSelectEnt3, 2), _wrappedValue = _getSelectEnt4[0], _option2 = _getSelectEnt4[1];
15398
15032
  onDeselect(_wrappedValue, _option2);
15399
15033
  }
15400
15034
  }, "triggerSelect2"), onInternalSelect = useRefFunc(function(val, info) {
15401
15035
  var cloneValues, mergedSelect = multiple ? info.selected : !0;
15402
- mergedSelect ? cloneValues = multiple ? [].concat(_toConsumableArray$5(mergedValues), [val]) : [val] : cloneValues = mergedValues.filter(function(v2) {
15036
+ mergedSelect ? cloneValues = multiple ? [].concat(_toConsumableArray$4(mergedValues), [val]) : [val] : cloneValues = mergedValues.filter(function(v2) {
15403
15037
  return v2.value !== val;
15404
15038
  }), triggerChange(cloneValues), triggerSelect(val, mergedSelect), mode === "combobox" ? setActiveValue("") : (!isMultiple || autoClearSearchValue) && (setSearchValue(""), setActiveValue(""));
15405
15039
  }), onDisplayValuesChange = /* @__PURE__ */ __name(function(nextValues, info) {
@@ -15412,7 +15046,7 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15412
15046
  if (setSearchValue(searchText), setActiveValue(null), info.source === "submit") {
15413
15047
  var formatted = (searchText || "").trim();
15414
15048
  if (formatted) {
15415
- var newRawValues = Array.from(new Set([].concat(_toConsumableArray$5(rawValues), [formatted])));
15049
+ var newRawValues = Array.from(new Set([].concat(_toConsumableArray$4(rawValues), [formatted])));
15416
15050
  triggerChange(newRawValues), triggerSelect(formatted, !0), setSearchValue("");
15417
15051
  }
15418
15052
  return;
@@ -15426,13 +15060,13 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15426
15060
  }).filter(function(val) {
15427
15061
  return val !== void 0;
15428
15062
  }));
15429
- var newRawValues = Array.from(new Set([].concat(_toConsumableArray$5(rawValues), _toConsumableArray$5(patchValues))));
15063
+ var newRawValues = Array.from(new Set([].concat(_toConsumableArray$4(rawValues), _toConsumableArray$4(patchValues))));
15430
15064
  triggerChange(newRawValues), newRawValues.forEach(function(newRawValue) {
15431
15065
  triggerSelect(newRawValue, !0);
15432
15066
  });
15433
15067
  }, "onInternalSearchSplit2"), selectContext = React$6.useMemo(function() {
15434
15068
  var realVirtual = virtual !== !1 && dropdownMatchSelectWidth !== !1;
15435
- return _objectSpread2$2(_objectSpread2$2({}, parsedOptions), {}, {
15069
+ return _objectSpread2$1(_objectSpread2$1({}, parsedOptions), {}, {
15436
15070
  flattenOptions: displayOptions,
15437
15071
  onActiveValue,
15438
15072
  defaultActiveFirstOption: mergedDefaultActiveFirstOption,
@@ -15451,7 +15085,7 @@ var Select$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15451
15085
  }, [maxCount, parsedOptions, displayOptions, onActiveValue, mergedDefaultActiveFirstOption, onInternalSelect, menuItemSelectedIcon, rawValues, mergedFieldNames, virtual, dropdownMatchSelectWidth, direction, listHeight, listItemHeight, childrenAsData, optionRender]);
15452
15086
  return /* @__PURE__ */ React$6.createElement(SelectContext.Provider, {
15453
15087
  value: selectContext
15454
- }, /* @__PURE__ */ React$6.createElement(BaseSelect, _extends$5({}, restProps, {
15088
+ }, /* @__PURE__ */ React$6.createElement(BaseSelect, _extends$6({}, restProps, {
15455
15089
  // >>> MISC
15456
15090
  id: mergedId,
15457
15091
  prefixCls,
@@ -15593,37 +15227,70 @@ function SelectList(props) {
15593
15227
  }));
15594
15228
  }
15595
15229
  __name(SelectList, "SelectList");
15596
- var calcThumbStyle = /* @__PURE__ */ __name(function(targetElement) {
15597
- return targetElement ? {
15230
+ var calcThumbStyle = /* @__PURE__ */ __name(function(targetElement, vertical) {
15231
+ if (!targetElement) return null;
15232
+ var style2 = {
15598
15233
  left: targetElement.offsetLeft,
15599
15234
  right: targetElement.parentElement.clientWidth - targetElement.clientWidth - targetElement.offsetLeft,
15600
- width: targetElement.clientWidth
15601
- } : null;
15235
+ width: targetElement.clientWidth,
15236
+ top: targetElement.offsetTop,
15237
+ bottom: targetElement.parentElement.clientHeight - targetElement.clientHeight - targetElement.offsetTop,
15238
+ height: targetElement.clientHeight
15239
+ };
15240
+ return vertical ? {
15241
+ left: 0,
15242
+ right: 0,
15243
+ width: 0,
15244
+ top: style2.top,
15245
+ bottom: style2.bottom,
15246
+ height: style2.height
15247
+ } : {
15248
+ left: style2.left,
15249
+ right: style2.right,
15250
+ width: style2.width,
15251
+ top: 0,
15252
+ bottom: 0,
15253
+ height: 0
15254
+ };
15602
15255
  }, "calcThumbStyle2"), toPX = /* @__PURE__ */ __name(function(value) {
15603
15256
  return value !== void 0 ? "".concat(value, "px") : void 0;
15604
15257
  }, "toPX2");
15605
15258
  function MotionThumb(props) {
15606
- var prefixCls = props.prefixCls, containerRef = props.containerRef, value = props.value, getValueIndex = props.getValueIndex, motionName = props.motionName, onMotionStart = props.onMotionStart, onMotionEnd = props.onMotionEnd, direction = props.direction, thumbRef = React$6.useRef(null), _React$useState = React$6.useState(value), _React$useState2 = _slicedToArray$3(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1], findValueElement = /* @__PURE__ */ __name(function(val) {
15259
+ var prefixCls = props.prefixCls, containerRef = props.containerRef, value = props.value, getValueIndex = props.getValueIndex, motionName = props.motionName, onMotionStart = props.onMotionStart, onMotionEnd = props.onMotionEnd, direction = props.direction, _props$vertical = props.vertical, vertical = _props$vertical === void 0 ? !1 : _props$vertical, thumbRef = React$6.useRef(null), _React$useState = React$6.useState(value), _React$useState2 = _slicedToArray$1(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1], findValueElement = /* @__PURE__ */ __name(function(val) {
15607
15260
  var _containerRef$current, index2 = getValueIndex(val), ele = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelectorAll(".".concat(prefixCls, "-item"))[index2];
15608
15261
  return (ele == null ? void 0 : ele.offsetParent) && ele;
15609
- }, "findValueElement2"), _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$3(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1], _React$useState5 = React$6.useState(null), _React$useState6 = _slicedToArray$3(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
15262
+ }, "findValueElement2"), _React$useState3 = React$6.useState(null), _React$useState4 = _slicedToArray$1(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1], _React$useState5 = React$6.useState(null), _React$useState6 = _slicedToArray$1(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
15610
15263
  useLayoutEffect$1(function() {
15611
15264
  if (prevValue !== value) {
15612
- var prev = findValueElement(prevValue), next = findValueElement(value), calcPrevStyle = calcThumbStyle(prev), calcNextStyle = calcThumbStyle(next);
15265
+ var prev = findValueElement(prevValue), next = findValueElement(value), calcPrevStyle = calcThumbStyle(prev, vertical), calcNextStyle = calcThumbStyle(next, vertical);
15613
15266
  setPrevValue(value), setPrevStyle(calcPrevStyle), setNextStyle(calcNextStyle), prev && next ? onMotionStart() : onMotionEnd();
15614
15267
  }
15615
15268
  }, [value]);
15616
15269
  var thumbStart = React$6.useMemo(function() {
15270
+ if (vertical) {
15271
+ var _prevStyle$top;
15272
+ return toPX((_prevStyle$top = prevStyle == null ? void 0 : prevStyle.top) !== null && _prevStyle$top !== void 0 ? _prevStyle$top : 0);
15273
+ }
15617
15274
  return toPX(direction === "rtl" ? -(prevStyle == null ? void 0 : prevStyle.right) : prevStyle == null ? void 0 : prevStyle.left);
15618
- }, [direction, prevStyle]), thumbActive = React$6.useMemo(function() {
15275
+ }, [vertical, direction, prevStyle]), thumbActive = React$6.useMemo(function() {
15276
+ if (vertical) {
15277
+ var _nextStyle$top;
15278
+ return toPX((_nextStyle$top = nextStyle == null ? void 0 : nextStyle.top) !== null && _nextStyle$top !== void 0 ? _nextStyle$top : 0);
15279
+ }
15619
15280
  return toPX(direction === "rtl" ? -(nextStyle == null ? void 0 : nextStyle.right) : nextStyle == null ? void 0 : nextStyle.left);
15620
- }, [direction, nextStyle]), onAppearStart = /* @__PURE__ */ __name(function() {
15621
- return {
15281
+ }, [vertical, direction, nextStyle]), onAppearStart = /* @__PURE__ */ __name(function() {
15282
+ return vertical ? {
15283
+ transform: "translateY(var(--thumb-start-top))",
15284
+ height: "var(--thumb-start-height)"
15285
+ } : {
15622
15286
  transform: "translateX(var(--thumb-start-left))",
15623
15287
  width: "var(--thumb-start-width)"
15624
15288
  };
15625
15289
  }, "onAppearStart2"), onAppearActive = /* @__PURE__ */ __name(function() {
15626
- return {
15290
+ return vertical ? {
15291
+ transform: "translateY(var(--thumb-active-top))",
15292
+ height: "var(--thumb-active-height)"
15293
+ } : {
15627
15294
  transform: "translateX(var(--thumb-active-left))",
15628
15295
  width: "var(--thumb-active-width)"
15629
15296
  };
@@ -15638,11 +15305,15 @@ function MotionThumb(props) {
15638
15305
  onAppearActive,
15639
15306
  onVisibleChanged
15640
15307
  }, function(_ref, ref) {
15641
- var motionClassName = _ref.className, motionStyle = _ref.style, mergedStyle = _objectSpread2$3(_objectSpread2$3({}, motionStyle), {}, {
15308
+ var motionClassName = _ref.className, motionStyle = _ref.style, mergedStyle = _objectSpread2$1(_objectSpread2$1({}, motionStyle), {}, {
15642
15309
  "--thumb-start-left": thumbStart,
15643
15310
  "--thumb-start-width": toPX(prevStyle == null ? void 0 : prevStyle.width),
15644
15311
  "--thumb-active-left": thumbActive,
15645
- "--thumb-active-width": toPX(nextStyle == null ? void 0 : nextStyle.width)
15312
+ "--thumb-active-width": toPX(nextStyle == null ? void 0 : nextStyle.width),
15313
+ "--thumb-start-top": thumbStart,
15314
+ "--thumb-start-height": toPX(prevStyle == null ? void 0 : prevStyle.height),
15315
+ "--thumb-active-top": thumbActive,
15316
+ "--thumb-active-height": toPX(nextStyle == null ? void 0 : nextStyle.height)
15646
15317
  }), motionProps = {
15647
15318
  ref: composeRef(thumbRef, ref),
15648
15319
  style: mergedStyle,
@@ -15652,11 +15323,11 @@ function MotionThumb(props) {
15652
15323
  });
15653
15324
  }
15654
15325
  __name(MotionThumb, "MotionThumb");
15655
- var _excluded$6 = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
15326
+ var _excluded$6 = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
15656
15327
  function getValidTitle(option) {
15657
15328
  if (typeof option.title < "u")
15658
15329
  return option.title;
15659
- if (_typeof$4(option.label) !== "object") {
15330
+ if (_typeof$2(option.label) !== "object") {
15660
15331
  var _option$label;
15661
15332
  return (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString();
15662
15333
  }
@@ -15664,9 +15335,9 @@ function getValidTitle(option) {
15664
15335
  __name(getValidTitle, "getValidTitle");
15665
15336
  function normalizeOptions(options) {
15666
15337
  return options.map(function(option) {
15667
- if (_typeof$4(option) === "object" && option !== null) {
15338
+ if (_typeof$2(option) === "object" && option !== null) {
15668
15339
  var validTitle = getValidTitle(option);
15669
- return _objectSpread2$3(_objectSpread2$3({}, option), {}, {
15340
+ return _objectSpread2$1(_objectSpread2$1({}, option), {}, {
15670
15341
  title: validTitle
15671
15342
  });
15672
15343
  }
@@ -15683,7 +15354,7 @@ var InternalSegmentedOption = /* @__PURE__ */ __name(function(_ref) {
15683
15354
  disabled || onChange(event, value);
15684
15355
  }, "handleChange2");
15685
15356
  return /* @__PURE__ */ React$6.createElement("label", {
15686
- className: clsx(className, _defineProperty$d({}, "".concat(prefixCls, "-item-disabled"), disabled))
15357
+ className: clsx(className, _defineProperty$b({}, "".concat(prefixCls, "-item-disabled"), disabled))
15687
15358
  }, /* @__PURE__ */ React$6.createElement("input", {
15688
15359
  className: "".concat(prefixCls, "-item-input"),
15689
15360
  type: "radio",
@@ -15697,25 +15368,26 @@ var InternalSegmentedOption = /* @__PURE__ */ __name(function(_ref) {
15697
15368
  "aria-selected": checked
15698
15369
  }, label));
15699
15370
  }, "InternalSegmentedOption2"), Segmented$1 = /* @__PURE__ */ React$6.forwardRef(function(props, ref) {
15700
- var _segmentedOptions$, _classNames2, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled = props.disabled, defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$3(props, _excluded$6), containerRef = React$6.useRef(null), mergedRef = React$6.useMemo(function() {
15371
+ var _segmentedOptions$, _classNames2, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, vertical = props.vertical, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled = props.disabled, defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$2(props, _excluded$6), containerRef = React$6.useRef(null), mergedRef = React$6.useMemo(function() {
15701
15372
  return composeRef(containerRef, ref);
15702
15373
  }, [containerRef, ref]), segmentedOptions = React$6.useMemo(function() {
15703
15374
  return normalizeOptions(options);
15704
15375
  }, [options]), _useMergedState = useMergedState((_segmentedOptions$ = segmentedOptions[0]) === null || _segmentedOptions$ === void 0 ? void 0 : _segmentedOptions$.value, {
15705
15376
  value,
15706
15377
  defaultValue
15707
- }), _useMergedState2 = _slicedToArray$3(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1], _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$3(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1], handleChange = /* @__PURE__ */ __name(function(event, val) {
15378
+ }), _useMergedState2 = _slicedToArray$1(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1], _React$useState = React$6.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1], handleChange = /* @__PURE__ */ __name(function(event, val) {
15708
15379
  disabled || (setRawValue(val), onChange == null || onChange(val));
15709
15380
  }, "handleChange2"), divProps = omit$2(restProps, ["children"]);
15710
- return /* @__PURE__ */ React$6.createElement("div", _extends$7({
15381
+ return /* @__PURE__ */ React$6.createElement("div", _extends$6({
15711
15382
  role: "listbox",
15712
15383
  "aria-label": "segmented control"
15713
15384
  }, divProps, {
15714
- className: clsx(prefixCls, (_classNames2 = {}, _defineProperty$d(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty$d(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), className),
15385
+ className: clsx(prefixCls, (_classNames2 = {}, _defineProperty$b(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty$b(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty$b(_classNames2, "".concat(prefixCls, "-vertical"), vertical), _classNames2), className),
15715
15386
  ref: mergedRef
15716
15387
  }), /* @__PURE__ */ React$6.createElement("div", {
15717
15388
  className: "".concat(prefixCls, "-group")
15718
15389
  }, /* @__PURE__ */ React$6.createElement(MotionThumb, {
15390
+ vertical,
15719
15391
  prefixCls,
15720
15392
  value: rawValue,
15721
15393
  containerRef,
@@ -15733,10 +15405,10 @@ var InternalSegmentedOption = /* @__PURE__ */ __name(function(_ref) {
15733
15405
  setThumbShow(!1);
15734
15406
  }, "onMotionEnd")
15735
15407
  }), segmentedOptions.map(function(segmentedOption) {
15736
- return /* @__PURE__ */ React$6.createElement(InternalSegmentedOption, _extends$7({}, segmentedOption, {
15408
+ return /* @__PURE__ */ React$6.createElement(InternalSegmentedOption, _extends$6({}, segmentedOption, {
15737
15409
  key: segmentedOption.value,
15738
15410
  prefixCls,
15739
- className: clsx(segmentedOption.className, "".concat(prefixCls, "-item"), _defineProperty$d({}, "".concat(prefixCls, "-item-selected"), segmentedOption.value === rawValue && !thumbShow)),
15411
+ className: clsx(segmentedOption.className, "".concat(prefixCls, "-item"), _defineProperty$b({}, "".concat(prefixCls, "-item-selected"), segmentedOption.value === rawValue && !thumbShow)),
15740
15412
  checked: segmentedOption.value === rawValue,
15741
15413
  onChange: handleChange,
15742
15414
  disabled: !!disabled || !!segmentedOption.disabled