@gobolt/genesis 0.8.0 → 0.8.1

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/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import styled, { useTheme as useTheme$1, keyframes, ThemeProvider, createGlobalStyle } from "styled-components";
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import React__default, { isValidElement, version as version$2, useContext as useContext$1, createContext as createContext$1, useRef, useLayoutEffect as useLayoutEffect$2, useEffect, forwardRef, useState, useMemo as useMemo$1, Children, useCallback, useImperativeHandle, cloneElement as cloneElement$1, useSyncExternalStore } from "react";
4
+ import React__default, { isValidElement, version as version$2, useContext as useContext$1, createContext as createContext$1, useRef, useLayoutEffect as useLayoutEffect$2, useEffect, forwardRef, useState, useMemo as useMemo$1, Children, useCallback, useImperativeHandle, cloneElement as cloneElement$1, useSyncExternalStore, createElement } from "react";
5
5
  import * as ReactDOM from "react-dom";
6
6
  import ReactDOM__default, { createPortal, unstable_batchedUpdates, flushSync } from "react-dom";
7
7
  function getDefaultExportFromCjs(x2) {
@@ -5253,7 +5253,7 @@ function getAlphaColor(frontColor, backgroundColor) {
5253
5253
  a: 1
5254
5254
  }).toRgbString();
5255
5255
  }
5256
- var __rest$_ = function(s, e3) {
5256
+ var __rest$$ = function(s, e3) {
5257
5257
  var t2 = {};
5258
5258
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5259
5259
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5264,7 +5264,7 @@ var __rest$_ = function(s, e3) {
5264
5264
  function formatToken(derivativeToken) {
5265
5265
  const {
5266
5266
  override
5267
- } = derivativeToken, restToken = __rest$_(derivativeToken, ["override"]);
5267
+ } = derivativeToken, restToken = __rest$$(derivativeToken, ["override"]);
5268
5268
  const overrideTokens = Object.assign({}, override);
5269
5269
  Object.keys(seedToken).forEach((token2) => {
5270
5270
  delete overrideTokens[token2];
@@ -5418,7 +5418,7 @@ function formatToken(derivativeToken) {
5418
5418
  }), overrideTokens);
5419
5419
  return aliasToken;
5420
5420
  }
5421
- var __rest$Z = function(s, e3) {
5421
+ var __rest$_ = function(s, e3) {
5422
5422
  var t2 = {};
5423
5423
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5424
5424
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5468,7 +5468,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5468
5468
  const derivativeToken = theme.getDerivativeToken(originToken);
5469
5469
  const {
5470
5470
  override
5471
- } = overrideToken, components2 = __rest$Z(overrideToken, ["override"]);
5471
+ } = overrideToken, components2 = __rest$_(overrideToken, ["override"]);
5472
5472
  let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
5473
5473
  override
5474
5474
  });
@@ -5477,7 +5477,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5477
5477
  Object.entries(components2).forEach(([key, value2]) => {
5478
5478
  const {
5479
5479
  theme: componentTheme
5480
- } = value2, componentTokens = __rest$Z(value2, ["theme"]);
5480
+ } = value2, componentTokens = __rest$_(value2, ["theme"]);
5481
5481
  let mergedComponentToken = componentTokens;
5482
5482
  if (componentTheme) {
5483
5483
  mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
@@ -5768,10 +5768,10 @@ function useTheme(theme, parentTheme, config) {
5768
5768
  return !isEqual(prevTheme, nextTheme, true);
5769
5769
  }));
5770
5770
  }
5771
- var _excluded$S = ["children"];
5771
+ var _excluded$T = ["children"];
5772
5772
  var Context$1 = /* @__PURE__ */ React.createContext({});
5773
5773
  function MotionProvider(_ref) {
5774
- var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$S);
5774
+ var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$T);
5775
5775
  return /* @__PURE__ */ React.createElement(Context$1.Provider, {
5776
5776
  value: props
5777
5777
  }, children2);
@@ -6290,7 +6290,7 @@ function diffKeys() {
6290
6290
  });
6291
6291
  return list2;
6292
6292
  }
6293
- var _excluded$R = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
6293
+ var _excluded$S = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
6294
6294
  var MOTION_PROP_NAMES = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
6295
6295
  function genCSSMotionList(transitionSupport) {
6296
6296
  var CSSMotion$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion;
@@ -6338,7 +6338,7 @@ function genCSSMotionList(transitionSupport) {
6338
6338
  var keyEntities = this.state.keyEntities;
6339
6339
  var _this$props = this.props, component = _this$props.component, children2 = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged;
6340
6340
  _this$props.onAllRemoved;
6341
- var restProps = _objectWithoutProperties$1(_this$props, _excluded$R);
6341
+ var restProps = _objectWithoutProperties$1(_this$props, _excluded$S);
6342
6342
  var Component = component || React.Fragment;
6343
6343
  var motionProps = {};
6344
6344
  MOTION_PROP_NAMES.forEach(function(prop) {
@@ -6432,7 +6432,7 @@ if (process.env.NODE_ENV !== "production") {
6432
6432
  PropWarning.displayName = "PropWarning";
6433
6433
  }
6434
6434
  const PropWarning$1 = process.env.NODE_ENV !== "production" ? PropWarning : () => null;
6435
- var __rest$Y = function(s, e3) {
6435
+ var __rest$Z = function(s, e3) {
6436
6436
  var t2 = {};
6437
6437
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
6438
6438
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -6477,7 +6477,7 @@ const ProviderChildren = (props) => {
6477
6477
  children: children2,
6478
6478
  csp: customCsp,
6479
6479
  autoInsertSpaceInButton,
6480
- alert,
6480
+ alert: alert2,
6481
6481
  anchor,
6482
6482
  form,
6483
6483
  locale: locale2,
@@ -6577,7 +6577,7 @@ const ProviderChildren = (props) => {
6577
6577
  const baseConfig = {
6578
6578
  csp,
6579
6579
  autoInsertSpaceInButton,
6580
- alert,
6580
+ alert: alert2,
6581
6581
  anchor,
6582
6582
  locale: locale2 || legacyLocale,
6583
6583
  direction,
@@ -6719,7 +6719,7 @@ const ProviderChildren = (props) => {
6719
6719
  token: token2,
6720
6720
  components: components2,
6721
6721
  cssVar
6722
- } = _a, rest = __rest$Y(_a, ["algorithm", "token", "components", "cssVar"]);
6722
+ } = _a, rest = __rest$Z(_a, ["algorithm", "token", "components", "cssVar"]);
6723
6723
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
6724
6724
  const parsedComponents = {};
6725
6725
  Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
@@ -6866,7 +6866,7 @@ var useInsertStyles = function useInsertStyles2(eleRef) {
6866
6866
  });
6867
6867
  }, []);
6868
6868
  };
6869
- var _excluded$Q = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
6869
+ var _excluded$R = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
6870
6870
  var twoToneColorPalette = {
6871
6871
  primaryColor: "#333",
6872
6872
  secondaryColor: "#E6E6E6",
@@ -6882,7 +6882,7 @@ function getTwoToneColors() {
6882
6882
  return _objectSpread2({}, twoToneColorPalette);
6883
6883
  }
6884
6884
  var IconBase$1 = function IconBase(props) {
6885
- var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$Q);
6885
+ var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$R);
6886
6886
  var svgRef = React.useRef();
6887
6887
  var colors2 = twoToneColorPalette;
6888
6888
  if (primaryColor) {
@@ -6932,10 +6932,10 @@ function getTwoToneColor() {
6932
6932
  }
6933
6933
  return [colors2.primaryColor, colors2.secondaryColor];
6934
6934
  }
6935
- var _excluded$P = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6935
+ var _excluded$Q = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6936
6936
  setTwoToneColor(blue.primary);
6937
6937
  var Icon$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
6938
- var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$P);
6938
+ var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$Q);
6939
6939
  var _React$useContext = React.useContext(IconContext$1), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
6940
6940
  var classString = classNames(rootClassName, prefixCls, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), className);
6941
6941
  var iconTabIndex = tabIndex;
@@ -7233,7 +7233,7 @@ const genActionStyle = (token2) => {
7233
7233
  }
7234
7234
  };
7235
7235
  };
7236
- const prepareComponentToken$p = (token2) => {
7236
+ const prepareComponentToken$q = (token2) => {
7237
7237
  const paddingHorizontal = 12;
7238
7238
  return {
7239
7239
  withDescriptionIconSize: token2.fontSizeHeading3,
@@ -7241,8 +7241,8 @@ const prepareComponentToken$p = (token2) => {
7241
7241
  withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
7242
7242
  };
7243
7243
  };
7244
- const useStyle$v = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$p);
7245
- var __rest$X = function(s, e3) {
7244
+ const useStyle$w = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$q);
7245
+ var __rest$Y = function(s, e3) {
7246
7246
  var t2 = {};
7247
7247
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
7248
7248
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -7309,7 +7309,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7309
7309
  closeIcon,
7310
7310
  action,
7311
7311
  id: id2
7312
- } = props, otherProps = __rest$X(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7312
+ } = props, otherProps = __rest$Y(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7313
7313
  const [closed, setClosed] = React.useState(false);
7314
7314
  if (process.env.NODE_ENV !== "production") {
7315
7315
  const warning3 = devUseWarning("Alert");
@@ -7328,7 +7328,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7328
7328
  style: contextStyle
7329
7329
  } = useComponentConfig("alert");
7330
7330
  const prefixCls = getPrefixCls("alert", customizePrefixCls);
7331
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$v(prefixCls);
7331
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$w(prefixCls);
7332
7332
  const handleClose = (e3) => {
7333
7333
  var _a;
7334
7334
  setClosed(true);
@@ -7384,7 +7384,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7384
7384
  if (typeof merged === "object") {
7385
7385
  const {
7386
7386
  closeIcon: _
7387
- } = merged, ariaProps = __rest$X(merged, ["closeIcon"]);
7387
+ } = merged, ariaProps = __rest$Y(merged, ["closeIcon"]);
7388
7388
  return ariaProps;
7389
7389
  }
7390
7390
  return {};
@@ -8290,7 +8290,7 @@ const genWaveStyle = (token2) => {
8290
8290
  }
8291
8291
  };
8292
8292
  };
8293
- const useStyle$u = genComponentStyleHook("Wave", genWaveStyle);
8293
+ const useStyle$v = genComponentStyleHook("Wave", genWaveStyle);
8294
8294
  const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
8295
8295
  function isValidWaveColor(color2) {
8296
8296
  return color2 && color2 !== "#fff" && color2 !== "#ffffff" && color2 !== "rgb(255, 255, 255)" && color2 !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(color2) && // any transparent rgba color
@@ -8468,7 +8468,7 @@ const Wave = (props) => {
8468
8468
  } = useContext$1(ConfigContext);
8469
8469
  const containerRef = useRef(null);
8470
8470
  const prefixCls = getPrefixCls("wave");
8471
- const [, hashId] = useStyle$u(prefixCls);
8471
+ const [, hashId] = useStyle$v(prefixCls);
8472
8472
  const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
8473
8473
  React__default.useEffect(() => {
8474
8474
  const node2 = containerRef.current;
@@ -8596,7 +8596,7 @@ const genSpaceGapStyle = (token2) => {
8596
8596
  }
8597
8597
  };
8598
8598
  };
8599
- const useStyle$t = genStyleHooks("Space", (token2) => {
8599
+ const useStyle$u = genStyleHooks("Space", (token2) => {
8600
8600
  const spaceToken = merge$1(token2, {
8601
8601
  spaceGapSmallSize: token2.paddingXS,
8602
8602
  spaceGapMiddleSize: token2.padding,
@@ -8608,7 +8608,7 @@ const useStyle$t = genStyleHooks("Space", (token2) => {
8608
8608
  // https://github.com/ant-design/ant-design/issues/40315
8609
8609
  resetStyle: false
8610
8610
  });
8611
- var __rest$W = function(s, e3) {
8611
+ var __rest$X = function(s, e3) {
8612
8612
  var t2 = {};
8613
8613
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8614
8614
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8652,7 +8652,7 @@ const NoCompactStyle = (props) => {
8652
8652
  const CompactItem = (props) => {
8653
8653
  const {
8654
8654
  children: children2
8655
- } = props, others = __rest$W(props, ["children"]);
8655
+ } = props, others = __rest$X(props, ["children"]);
8656
8656
  return /* @__PURE__ */ React.createElement(SpaceCompactItemContext.Provider, {
8657
8657
  value: React.useMemo(() => others, [others])
8658
8658
  }, children2);
@@ -8670,10 +8670,10 @@ const Compact$1 = (props) => {
8670
8670
  className,
8671
8671
  rootClassName,
8672
8672
  children: children2
8673
- } = props, restProps = __rest$W(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8673
+ } = props, restProps = __rest$X(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8674
8674
  const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
8675
8675
  const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
8676
- const [wrapCSSVar, hashId] = useStyle$t(prefixCls);
8676
+ const [wrapCSSVar, hashId] = useStyle$u(prefixCls);
8677
8677
  const clx = classNames(prefixCls, hashId, {
8678
8678
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
8679
8679
  [`${prefixCls}-block`]: block,
@@ -8698,7 +8698,7 @@ const Compact$1 = (props) => {
8698
8698
  className: clx
8699
8699
  }, restProps), nodes));
8700
8700
  };
8701
- var __rest$V = function(s, e3) {
8701
+ var __rest$W = function(s, e3) {
8702
8702
  var t2 = {};
8703
8703
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8704
8704
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8716,7 +8716,7 @@ const ButtonGroup = (props) => {
8716
8716
  prefixCls: customizePrefixCls,
8717
8717
  size,
8718
8718
  className
8719
- } = props, others = __rest$V(props, ["prefixCls", "size", "className"]);
8719
+ } = props, others = __rest$W(props, ["prefixCls", "size", "className"]);
8720
8720
  const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
8721
8721
  const [, , hashId] = useToken();
8722
8722
  const sizeCls = React.useMemo(() => {
@@ -8951,7 +8951,7 @@ const genGroupStyle$2 = (token2) => {
8951
8951
  ]
8952
8952
  };
8953
8953
  };
8954
- var _excluded$O = ["b"], _excluded2$8 = ["v"];
8954
+ var _excluded$P = ["b"], _excluded2$8 = ["v"];
8955
8955
  var getRoundNumber = function getRoundNumber2(value2) {
8956
8956
  return Math.round(Number(value2 || 0));
8957
8957
  };
@@ -8960,7 +8960,7 @@ var convertHsb2Hsv = function convertHsb2Hsv2(color2) {
8960
8960
  return color2;
8961
8961
  }
8962
8962
  if (color2 && _typeof(color2) === "object" && "h" in color2 && "b" in color2) {
8963
- var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$O);
8963
+ var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$P);
8964
8964
  return _objectSpread2(_objectSpread2({}, resets), {}, {
8965
8965
  v: b
8966
8966
  });
@@ -10106,7 +10106,7 @@ const prepareToken$2 = (token2) => {
10106
10106
  });
10107
10107
  return buttonToken;
10108
10108
  };
10109
- const prepareComponentToken$o = (token2) => {
10109
+ const prepareComponentToken$p = (token2) => {
10110
10110
  var _a, _b, _c, _d, _e, _f;
10111
10111
  const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
10112
10112
  const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
@@ -10613,7 +10613,7 @@ const genBlockButtonStyle = (token2) => {
10613
10613
  }
10614
10614
  };
10615
10615
  };
10616
- const useStyle$s = genStyleHooks("Button", (token2) => {
10616
+ const useStyle$t = genStyleHooks("Button", (token2) => {
10617
10617
  const buttonToken = prepareToken$2(token2);
10618
10618
  return [
10619
10619
  // Shared
@@ -10631,7 +10631,7 @@ const useStyle$s = genStyleHooks("Button", (token2) => {
10631
10631
  // Button Group
10632
10632
  genGroupStyle$2(buttonToken)
10633
10633
  ];
10634
- }, prepareComponentToken$o, {
10634
+ }, prepareComponentToken$p, {
10635
10635
  unitless: {
10636
10636
  fontWeight: true,
10637
10637
  contentLineHeight: true,
@@ -10779,8 +10779,8 @@ const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
10779
10779
  genCompactItemVerticalStyle(buttonToken),
10780
10780
  genButtonCompactStyle(buttonToken)
10781
10781
  ];
10782
- }, prepareComponentToken$o);
10783
- var __rest$U = function(s, e3) {
10782
+ }, prepareComponentToken$p);
10783
+ var __rest$V = function(s, e3) {
10784
10784
  var t2 = {};
10785
10785
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
10786
10786
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -10836,7 +10836,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
10836
10836
  style: customStyle = {},
10837
10837
  autoInsertSpace,
10838
10838
  autoFocus
10839
- } = props, rest = __rest$U(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
10839
+ } = props, rest = __rest$V(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
10840
10840
  const mergedType = type4 || "default";
10841
10841
  const {
10842
10842
  button: button2
@@ -10871,7 +10871,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
10871
10871
  } = useComponentConfig("button");
10872
10872
  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
10873
10873
  const prefixCls = getPrefixCls("btn", customizePrefixCls);
10874
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
10874
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
10875
10875
  const disabled2 = useContext$1(DisabledContext);
10876
10876
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
10877
10877
  const groupSize = useContext$1(GroupSizeContext);
@@ -12808,7 +12808,7 @@ function move(array4, moveIndex, toIndex) {
12808
12808
  }
12809
12809
  return array4;
12810
12810
  }
12811
- var _excluded$N = ["name"];
12811
+ var _excluded$O = ["name"];
12812
12812
  var EMPTY_ERRORS = [];
12813
12813
  function requireUpdate(shouldUpdate, prev2, next2, prevValue, nextValue, info) {
12814
12814
  if (typeof shouldUpdate === "function") {
@@ -13255,7 +13255,7 @@ _defineProperty$1(Field, "defaultProps", {
13255
13255
  });
13256
13256
  function WrapperField(_ref6) {
13257
13257
  var _restProps$isListFiel;
13258
- var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$N);
13258
+ var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$O);
13259
13259
  var fieldContext = React.useContext(Context);
13260
13260
  var listContext = React.useContext(ListContext);
13261
13261
  var namePath = name2 !== void 0 ? getNamePath(name2) : void 0;
@@ -13487,7 +13487,7 @@ var NameMap = /* @__PURE__ */ (function() {
13487
13487
  }]);
13488
13488
  return NameMap2;
13489
13489
  })();
13490
- var _excluded$M = ["name"];
13490
+ var _excluded$N = ["name"];
13491
13491
  var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate) {
13492
13492
  var _this = this;
13493
13493
  _classCallCheck(this, FormStore2);
@@ -13889,7 +13889,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
13889
13889
  var prevStore = _this.store;
13890
13890
  var namePathList = [];
13891
13891
  fields.forEach(function(fieldData) {
13892
- var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$M);
13892
+ var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$N);
13893
13893
  var namePath = getNamePath(name2);
13894
13894
  namePathList.push(namePath);
13895
13895
  if ("value" in data) {
@@ -14295,9 +14295,9 @@ var FormProvider$1 = function FormProvider(_ref) {
14295
14295
  })
14296
14296
  }, children2);
14297
14297
  };
14298
- var _excluded$L = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
14298
+ var _excluded$M = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
14299
14299
  var Form$4 = function Form(_ref, ref) {
14300
- var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$L);
14300
+ var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$M);
14301
14301
  var nativeElementRef = React.useRef(null);
14302
14302
  var formContext = React.useContext(FormContext$1);
14303
14303
  var _useForm = useForm$1(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
@@ -14543,6 +14543,93 @@ function mergeProps$1(...items) {
14543
14543
  });
14544
14544
  return ret;
14545
14545
  }
14546
+ function pickClosable(context) {
14547
+ if (!context) {
14548
+ return void 0;
14549
+ }
14550
+ const {
14551
+ closable,
14552
+ closeIcon
14553
+ } = context;
14554
+ return {
14555
+ closable,
14556
+ closeIcon
14557
+ };
14558
+ }
14559
+ function useClosableConfig(closableCollection) {
14560
+ const {
14561
+ closable,
14562
+ closeIcon
14563
+ } = closableCollection || {};
14564
+ return React__default.useMemo(() => {
14565
+ if (
14566
+ // If `closable`, whatever rest be should be true
14567
+ !closable && (closable === false || closeIcon === false || closeIcon === null)
14568
+ ) {
14569
+ return false;
14570
+ }
14571
+ if (closable === void 0 && closeIcon === void 0) {
14572
+ return null;
14573
+ }
14574
+ let closableConfig = {
14575
+ closeIcon: typeof closeIcon !== "boolean" && closeIcon !== null ? closeIcon : void 0
14576
+ };
14577
+ if (closable && typeof closable === "object") {
14578
+ closableConfig = Object.assign(Object.assign({}, closableConfig), closable);
14579
+ }
14580
+ return closableConfig;
14581
+ }, [closable, closeIcon]);
14582
+ }
14583
+ const EmptyFallbackCloseCollection = {};
14584
+ function useClosable(propCloseCollection, contextCloseCollection, fallbackCloseCollection = EmptyFallbackCloseCollection) {
14585
+ const propCloseConfig = useClosableConfig(propCloseCollection);
14586
+ const contextCloseConfig = useClosableConfig(contextCloseCollection);
14587
+ const [contextLocale] = useLocale$1("global", localeValues.global);
14588
+ const closeBtnIsDisabled = typeof propCloseConfig !== "boolean" ? !!(propCloseConfig === null || propCloseConfig === void 0 ? void 0 : propCloseConfig.disabled) : false;
14589
+ const mergedFallbackCloseCollection = React__default.useMemo(() => Object.assign({
14590
+ closeIcon: /* @__PURE__ */ React__default.createElement(RefIcon$D, null)
14591
+ }, fallbackCloseCollection), [fallbackCloseCollection]);
14592
+ const mergedClosableConfig = React__default.useMemo(() => {
14593
+ if (propCloseConfig === false) {
14594
+ return false;
14595
+ }
14596
+ if (propCloseConfig) {
14597
+ return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig, propCloseConfig);
14598
+ }
14599
+ if (contextCloseConfig === false) {
14600
+ return false;
14601
+ }
14602
+ if (contextCloseConfig) {
14603
+ return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig);
14604
+ }
14605
+ return !mergedFallbackCloseCollection.closable ? false : mergedFallbackCloseCollection;
14606
+ }, [propCloseConfig, contextCloseConfig, mergedFallbackCloseCollection]);
14607
+ return React__default.useMemo(() => {
14608
+ var _a, _b;
14609
+ if (mergedClosableConfig === false) {
14610
+ return [false, null, closeBtnIsDisabled, {}];
14611
+ }
14612
+ const {
14613
+ closeIconRender
14614
+ } = mergedFallbackCloseCollection;
14615
+ const {
14616
+ closeIcon
14617
+ } = mergedClosableConfig;
14618
+ let mergedCloseIcon = closeIcon;
14619
+ const ariaOrDataProps = pickAttrs(mergedClosableConfig, true);
14620
+ if (mergedCloseIcon !== null && mergedCloseIcon !== void 0) {
14621
+ if (closeIconRender) {
14622
+ mergedCloseIcon = closeIconRender(closeIcon);
14623
+ }
14624
+ mergedCloseIcon = /* @__PURE__ */ React__default.isValidElement(mergedCloseIcon) ? /* @__PURE__ */ React__default.cloneElement(mergedCloseIcon, Object.assign(Object.assign(Object.assign({}, mergedCloseIcon.props), {
14625
+ "aria-label": (_b = (_a = mergedCloseIcon.props) === null || _a === void 0 ? void 0 : _a["aria-label"]) !== null && _b !== void 0 ? _b : contextLocale.close
14626
+ }), ariaOrDataProps)) : /* @__PURE__ */ React__default.createElement("span", Object.assign({
14627
+ "aria-label": contextLocale.close
14628
+ }, ariaOrDataProps), mergedCloseIcon);
14629
+ }
14630
+ return [true, mergedCloseIcon, closeBtnIsDisabled, ariaOrDataProps];
14631
+ }, [mergedClosableConfig, mergedFallbackCloseCollection]);
14632
+ }
14546
14633
  var isStyleNameSupport = function isStyleNameSupport2(styleName) {
14547
14634
  if (canUseDom() && window.document.documentElement) {
14548
14635
  var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
@@ -14861,7 +14948,7 @@ const genBaseStyle$8 = (token2) => {
14861
14948
  }
14862
14949
  };
14863
14950
  };
14864
- const prepareComponentToken$n = (token2) => {
14951
+ const prepareComponentToken$o = (token2) => {
14865
14952
  const {
14866
14953
  colorFillContent,
14867
14954
  colorFill
@@ -14879,7 +14966,7 @@ const prepareComponentToken$n = (token2) => {
14879
14966
  paragraphLiHeight: token2.controlHeight / 2
14880
14967
  };
14881
14968
  };
14882
- const useStyle$r = genStyleHooks("Skeleton", (token2) => {
14969
+ const useStyle$s = genStyleHooks("Skeleton", (token2) => {
14883
14970
  const {
14884
14971
  componentCls,
14885
14972
  calc
@@ -14898,7 +14985,7 @@ const useStyle$r = genStyleHooks("Skeleton", (token2) => {
14898
14985
  skeletonLoadingMotionDuration: "1.4s"
14899
14986
  });
14900
14987
  return genBaseStyle$8(skeletonToken);
14901
- }, prepareComponentToken$n, {
14988
+ }, prepareComponentToken$o, {
14902
14989
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
14903
14990
  });
14904
14991
  const SkeletonAvatar = (props) => {
@@ -14914,7 +15001,7 @@ const SkeletonAvatar = (props) => {
14914
15001
  getPrefixCls
14915
15002
  } = React.useContext(ConfigContext);
14916
15003
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
14917
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15004
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
14918
15005
  const otherProps = omit(props, ["prefixCls", "className"]);
14919
15006
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
14920
15007
  [`${prefixCls}-active`]: active
@@ -14940,7 +15027,7 @@ const SkeletonButton = (props) => {
14940
15027
  getPrefixCls
14941
15028
  } = React.useContext(ConfigContext);
14942
15029
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
14943
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15030
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
14944
15031
  const otherProps = omit(props, ["prefixCls"]);
14945
15032
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
14946
15033
  [`${prefixCls}-active`]: active,
@@ -14966,7 +15053,7 @@ const SkeletonImage = (props) => {
14966
15053
  getPrefixCls
14967
15054
  } = React.useContext(ConfigContext);
14968
15055
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
14969
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15056
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
14970
15057
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
14971
15058
  [`${prefixCls}-active`]: active
14972
15059
  }, className, rootClassName, hashId, cssVarCls);
@@ -14997,7 +15084,7 @@ const SkeletonInput = (props) => {
14997
15084
  getPrefixCls
14998
15085
  } = React.useContext(ConfigContext);
14999
15086
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15000
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15087
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15001
15088
  const otherProps = omit(props, ["prefixCls"]);
15002
15089
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15003
15090
  [`${prefixCls}-active`]: active,
@@ -15023,7 +15110,7 @@ const SkeletonNode = (props) => {
15023
15110
  getPrefixCls
15024
15111
  } = React.useContext(ConfigContext);
15025
15112
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15026
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15113
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15027
15114
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15028
15115
  [`${prefixCls}-active`]: active
15029
15116
  }, hashId, className, rootClassName, cssVarCls);
@@ -15148,7 +15235,7 @@ const Skeleton$1 = (props) => {
15148
15235
  style: contextStyle
15149
15236
  } = useComponentConfig("skeleton");
15150
15237
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15151
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15238
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15152
15239
  if (loading || !("loading" in props)) {
15153
15240
  const hasAvatar = !!avatar;
15154
15241
  const hasTitle = !!title;
@@ -15203,6 +15290,26 @@ Skeleton$1.Node = SkeletonNode;
15203
15290
  if (process.env.NODE_ENV !== "production") {
15204
15291
  Skeleton$1.displayName = "Skeleton";
15205
15292
  }
15293
+ function voidFunc() {
15294
+ }
15295
+ const WatermarkContext = /* @__PURE__ */ React.createContext({
15296
+ add: voidFunc,
15297
+ remove: voidFunc
15298
+ });
15299
+ function usePanelRef(panelSelector) {
15300
+ const watermark = React.useContext(WatermarkContext);
15301
+ const panelEleRef = React.useRef(null);
15302
+ const panelRef = useEvent((ele) => {
15303
+ if (ele) {
15304
+ const innerContentEle = ele;
15305
+ watermark.add(innerContentEle);
15306
+ panelEleRef.current = innerContentEle;
15307
+ } else {
15308
+ watermark.remove(panelEleRef.current);
15309
+ }
15310
+ });
15311
+ return panelRef;
15312
+ }
15206
15313
  const genGridRowStyle = (token2) => {
15207
15314
  const {
15208
15315
  componentCls
@@ -15609,10 +15716,10 @@ function isValidateOpenKey(currentKeyCode) {
15609
15716
  ].includes(currentKeyCode)
15610
15717
  );
15611
15718
  }
15612
- var _excluded$K = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
15719
+ var _excluded$L = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
15613
15720
  var UNDEFINED = void 0;
15614
15721
  function InternalItem(props, ref) {
15615
- var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$K);
15722
+ var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$L);
15616
15723
  var mergedHidden = responsive && !display;
15617
15724
  function internalRegisterSize(width) {
15618
15725
  registerSize(itemKey2, width);
@@ -15698,11 +15805,11 @@ function useEffectState(notifyEffectUpdate, defaultValue) {
15698
15805
  return [stateValue, setEffectVal];
15699
15806
  }
15700
15807
  var OverflowContext = /* @__PURE__ */ React__default.createContext(null);
15701
- var _excluded$J = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
15808
+ var _excluded$K = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
15702
15809
  var InternalRawItem = function InternalRawItem2(props, ref) {
15703
15810
  var context = React.useContext(OverflowContext);
15704
15811
  if (!context) {
15705
- var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$J);
15812
+ var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$K);
15706
15813
  return /* @__PURE__ */ React.createElement(Component, _extends$1({}, _restProps, {
15707
15814
  ref
15708
15815
  }));
@@ -15718,14 +15825,14 @@ var InternalRawItem = function InternalRawItem2(props, ref) {
15718
15825
  };
15719
15826
  var RawItem = /* @__PURE__ */ React.forwardRef(InternalRawItem);
15720
15827
  RawItem.displayName = "RawItem";
15721
- var _excluded$I = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
15828
+ var _excluded$J = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
15722
15829
  var RESPONSIVE = "responsive";
15723
15830
  var INVALIDATE = "invalidate";
15724
15831
  function defaultRenderRest(omittedItems) {
15725
15832
  return "+ ".concat(omittedItems.length, " ...");
15726
15833
  }
15727
15834
  function Overflow(props, ref) {
15728
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$I);
15835
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$J);
15729
15836
  var fullySSR = ssr === "full";
15730
15837
  var notifyEffectUpdate = useBatcher();
15731
15838
  var _useEffectState = useEffectState(notifyEffectUpdate, null), _useEffectState2 = _slicedToArray(_useEffectState, 2), containerWidth = _useEffectState2[0], setContainerWidth = _useEffectState2[1];
@@ -15940,9 +16047,9 @@ function composeProps(originProps, patchProps, isAll) {
15940
16047
  });
15941
16048
  return composedProps;
15942
16049
  }
15943
- var _excluded$H = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
16050
+ var _excluded$I = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
15944
16051
  var Input$6 = function Input(props, ref) {
15945
- var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$H);
16052
+ var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$I);
15946
16053
  var inputNode = inputElement || /* @__PURE__ */ React.createElement("input", null);
15947
16054
  var _inputNode = inputNode, originRef = _inputNode.ref, originProps = _inputNode.props;
15948
16055
  warning$3(!("maxLength" in inputNode.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.");
@@ -17139,11 +17246,11 @@ function useWinClick(open, clickToHide, targetEle, popupEle, mask, maskClosable,
17139
17246
  }
17140
17247
  return onPopupPointerDown;
17141
17248
  }
17142
- var _excluded$G = ["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"];
17249
+ var _excluded$H = ["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"];
17143
17250
  function generateTrigger() {
17144
17251
  var PortalComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Portal;
17145
17252
  var Trigger2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
17146
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = 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 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = 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$1(props, _excluded$G);
17253
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = 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 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = 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$1(props, _excluded$H);
17147
17254
  var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;
17148
17255
  var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
17149
17256
  useLayoutEffect$1(function() {
@@ -17465,7 +17572,7 @@ function generateTrigger() {
17465
17572
  return Trigger2;
17466
17573
  }
17467
17574
  const Trigger = generateTrigger(Portal);
17468
- var _excluded$F = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
17575
+ var _excluded$G = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
17469
17576
  var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWidth) {
17470
17577
  var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
17471
17578
  return {
@@ -17510,7 +17617,7 @@ var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWi
17510
17617
  var SelectTrigger$1 = function SelectTrigger(props, ref) {
17511
17618
  var prefixCls = props.prefixCls;
17512
17619
  props.disabled;
17513
- var visible = props.visible, children2 = 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, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$F);
17620
+ var visible = props.visible, children2 = 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, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$G);
17514
17621
  var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
17515
17622
  var popupNode = popupElement;
17516
17623
  if (dropdownRender) {
@@ -17686,14 +17793,14 @@ function Polite(props) {
17686
17793
  return ["number", "string"].includes(_typeof(label)) ? label : value2;
17687
17794
  }).join(", ")), values.length > MAX_COUNT ? ", ..." : null);
17688
17795
  }
17689
- var _excluded$E = ["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", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"];
17796
+ var _excluded$F = ["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", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"];
17690
17797
  var DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
17691
17798
  var isMultiple = function isMultiple2(mode) {
17692
17799
  return mode === "tags" || mode === "multiple";
17693
17800
  };
17694
17801
  var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
17695
17802
  var _customizeRawInputEle;
17696
- var id2 = 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, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = 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, prefix = props.prefix, 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, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$E);
17803
+ var id2 = 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, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = 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, prefix = props.prefix, 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, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$F);
17697
17804
  var multiple = isMultiple(mode);
17698
17805
  var mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox";
17699
17806
  var domProps = _objectSpread2({}, restProps);
@@ -18891,14 +18998,14 @@ function getSpinSize() {
18891
18998
  baseSize = Math.max(baseSize, MIN_SIZE);
18892
18999
  return Math.floor(baseSize);
18893
19000
  }
18894
- var _excluded$D = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
19001
+ var _excluded$E = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
18895
19002
  var EMPTY_DATA$1 = [];
18896
19003
  var ScrollStyle = {
18897
19004
  overflowY: "auto",
18898
19005
  overflowAnchor: "none"
18899
19006
  };
18900
19007
  function RawList(props, ref) {
18901
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$D);
19008
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$E);
18902
19009
  var getKey2 = React.useCallback(function(item) {
18903
19010
  if (typeof itemKey2 === "function") {
18904
19011
  return itemKey2(item);
@@ -19297,7 +19404,7 @@ List.displayName = "List";
19297
19404
  function isPlatformMac() {
19298
19405
  return /(mac\sos|macintosh)/i.test(navigator.appVersion);
19299
19406
  }
19300
- var _excluded$C = ["disabled", "title", "children", "style", "className"];
19407
+ var _excluded$D = ["disabled", "title", "children", "style", "className"];
19301
19408
  function isTitleType(content2) {
19302
19409
  return typeof content2 === "string" || typeof content2 === "number";
19303
19410
  }
@@ -19532,7 +19639,7 @@ var OptionList = function OptionList2(_, ref) {
19532
19639
  }
19533
19640
  var disabled2 = data.disabled, title = data.title;
19534
19641
  data.children;
19535
- var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$C);
19642
+ var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$D);
19536
19643
  var passedProps = omit(otherProps, omitFieldNameList);
19537
19644
  var selected = isSelected(value2);
19538
19645
  var mergedDisabled = disabled2 || !selected && overMaxCount;
@@ -19678,9 +19785,9 @@ function useId$1(id2) {
19678
19785
  }, []);
19679
19786
  return id2 || innerId;
19680
19787
  }
19681
- var _excluded$B = ["children", "value"], _excluded2$6 = ["children"];
19788
+ var _excluded$C = ["children", "value"], _excluded2$6 = ["children"];
19682
19789
  function convertNodeToOption(node2) {
19683
- var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$B);
19790
+ var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$C);
19684
19791
  return _objectSpread2({
19685
19792
  key,
19686
19793
  value: value2 !== void 0 ? value2 : key,
@@ -19835,13 +19942,13 @@ function warningNullOptions(options, fieldNames) {
19835
19942
  recursiveOptions(options);
19836
19943
  }
19837
19944
  }
19838
- var _excluded$A = ["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"];
19945
+ var _excluded$B = ["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"];
19839
19946
  var OMIT_DOM_PROPS = ["inputValue"];
19840
19947
  function isRawValue(value2) {
19841
19948
  return !value2 || _typeof(value2) !== "object";
19842
19949
  }
19843
19950
  var Select$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
19844
- var id2 = 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 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = 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, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$A);
19951
+ var id2 = 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 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = 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, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$B);
19845
19952
  var mergedId = useId$1(id2);
19846
19953
  var multiple = isMultiple(mode);
19847
19954
  var childrenAsData = !!(!options && children2);
@@ -20346,7 +20453,7 @@ const genSharedEmptyStyle = (token2) => {
20346
20453
  }
20347
20454
  };
20348
20455
  };
20349
- const useStyle$q = genStyleHooks("Empty", (token2) => {
20456
+ const useStyle$r = genStyleHooks("Empty", (token2) => {
20350
20457
  const {
20351
20458
  componentCls,
20352
20459
  controlHeightLG,
@@ -20360,7 +20467,7 @@ const useStyle$q = genStyleHooks("Empty", (token2) => {
20360
20467
  });
20361
20468
  return genSharedEmptyStyle(emptyToken);
20362
20469
  });
20363
- var __rest$T = function(s, e3) {
20470
+ var __rest$U = function(s, e3) {
20364
20471
  var t2 = {};
20365
20472
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
20366
20473
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -20383,7 +20490,7 @@ const Empty = (props) => {
20383
20490
  style: style2,
20384
20491
  classNames: emptyClassNames,
20385
20492
  styles
20386
- } = props, restProps = __rest$T(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
20493
+ } = props, restProps = __rest$U(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
20387
20494
  const {
20388
20495
  getPrefixCls,
20389
20496
  direction,
@@ -20394,7 +20501,7 @@ const Empty = (props) => {
20394
20501
  image: contextImage
20395
20502
  } = useComponentConfig("empty");
20396
20503
  const prefixCls = getPrefixCls("empty", customizePrefixCls);
20397
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls);
20504
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
20398
20505
  const [locale2] = useLocale$1("Empty");
20399
20506
  const des = typeof description !== "undefined" ? description : locale2 === null || locale2 === void 0 ? void 0 : locale2.description;
20400
20507
  const alt = typeof des === "string" ? des : "empty";
@@ -21093,7 +21200,7 @@ function genSingleStyle(token2) {
21093
21200
  }), "lg")
21094
21201
  ];
21095
21202
  }
21096
- const prepareComponentToken$m = (token2) => {
21203
+ const prepareComponentToken$n = (token2) => {
21097
21204
  const {
21098
21205
  fontSize,
21099
21206
  lineHeight,
@@ -21599,7 +21706,7 @@ const useSelectStyle = genStyleHooks("Select", (token2, {
21599
21706
  selectHeight: token2.controlHeight
21600
21707
  });
21601
21708
  return [genSelectStyle(selectToken), genVariantsStyle$1(selectToken)];
21602
- }, prepareComponentToken$m, {
21709
+ }, prepareComponentToken$n, {
21603
21710
  unitless: {
21604
21711
  optionLineHeight: true,
21605
21712
  optionSelectedFontWeight: true
@@ -21720,7 +21827,7 @@ function usePopupRender(renderFn) {
21720
21827
  function useShowArrow(suffixIcon, showArrow) {
21721
21828
  return showArrow !== void 0 ? showArrow : suffixIcon !== null;
21722
21829
  }
21723
- var __rest$S = function(s, e3) {
21830
+ var __rest$T = function(s, e3) {
21724
21831
  var t2 = {};
21725
21832
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
21726
21833
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -21764,7 +21871,7 @@ const InternalSelect = (props, ref) => {
21764
21871
  onOpenChange,
21765
21872
  styles,
21766
21873
  classNames: classNames$1
21767
- } = props, rest = __rest$S(props, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix", "dropdownRender", "popupRender", "onDropdownVisibleChange", "onOpenChange", "styles", "classNames"]);
21874
+ } = props, rest = __rest$T(props, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix", "dropdownRender", "popupRender", "onDropdownVisibleChange", "onOpenChange", "styles", "classNames"]);
21768
21875
  const {
21769
21876
  getPopupContainer: getContextPopupContainer,
21770
21877
  getPrefixCls,
@@ -21923,11 +22030,11 @@ if (process.env.NODE_ENV !== "production") {
21923
22030
  InternalSelect.displayName = "Select";
21924
22031
  }
21925
22032
  const Select$1 = /* @__PURE__ */ React.forwardRef(InternalSelect);
21926
- const PurePanel$5 = genPurePanel(Select$1, "dropdownAlign");
22033
+ const PurePanel$6 = genPurePanel(Select$1, "dropdownAlign");
21927
22034
  Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
21928
22035
  Select$1.Option = Option;
21929
22036
  Select$1.OptGroup = OptGroup;
21930
- Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
22037
+ Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
21931
22038
  if (process.env.NODE_ENV !== "production") {
21932
22039
  Select$1.displayName = "Select";
21933
22040
  }
@@ -22148,7 +22255,7 @@ const genGroupStyle$1 = (token2) => {
22148
22255
  }
22149
22256
  };
22150
22257
  };
22151
- const prepareComponentToken$l = (token2) => {
22258
+ const prepareComponentToken$m = (token2) => {
22152
22259
  const {
22153
22260
  controlHeight,
22154
22261
  controlHeightLG,
@@ -22176,7 +22283,7 @@ const prepareComponentToken$l = (token2) => {
22176
22283
  groupBorderColor: colorBorderBg
22177
22284
  };
22178
22285
  };
22179
- const useStyle$p = genStyleHooks("Avatar", (token2) => {
22286
+ const useStyle$q = genStyleHooks("Avatar", (token2) => {
22180
22287
  const {
22181
22288
  colorTextLightSolid,
22182
22289
  colorTextPlaceholder
@@ -22186,8 +22293,8 @@ const useStyle$p = genStyleHooks("Avatar", (token2) => {
22186
22293
  avatarColor: colorTextLightSolid
22187
22294
  });
22188
22295
  return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
22189
- }, prepareComponentToken$l);
22190
- var __rest$R = function(s, e3) {
22296
+ }, prepareComponentToken$m);
22297
+ var __rest$S = function(s, e3) {
22191
22298
  var t2 = {};
22192
22299
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
22193
22300
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -22212,7 +22319,7 @@ const Avatar$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
22212
22319
  crossOrigin,
22213
22320
  gap = 4,
22214
22321
  onError
22215
- } = props, others = __rest$R(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
22322
+ } = props, others = __rest$S(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
22216
22323
  const [scale, setScale] = React.useState(1);
22217
22324
  const [mounted, setMounted] = React.useState(false);
22218
22325
  const [isImgExist, setIsImgExist] = React.useState(true);
@@ -22274,7 +22381,7 @@ const Avatar$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
22274
22381
  }
22275
22382
  const prefixCls = getPrefixCls("avatar", customizePrefixCls);
22276
22383
  const rootCls = useCSSVarCls(prefixCls);
22277
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, rootCls);
22384
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
22278
22385
  const sizeCls = classNames({
22279
22386
  [`${prefixCls}-lg`]: size === "large",
22280
22387
  [`${prefixCls}-sm`]: size === "small"
@@ -22437,11 +22544,11 @@ var placements$2 = {
22437
22544
  targetOffset: targetOffset$1
22438
22545
  }
22439
22546
  };
22440
- var _excluded$z = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"];
22547
+ var _excluded$A = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"];
22441
22548
  var Tooltip$3 = function Tooltip(props, ref) {
22442
22549
  var overlayClassName = props.overlayClassName, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, _props$mouseEnterDela = props.mouseEnterDelay, mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, overlayStyle = props.overlayStyle, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tooltip" : _props$prefixCls, children2 = props.children, onVisibleChange = props.onVisibleChange, afterVisibleChange = props.afterVisibleChange, transitionName = props.transitionName, animation = props.animation, motion2 = props.motion, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$align = props.align, align = _props$align === void 0 ? {} : _props$align, _props$destroyTooltip = props.destroyTooltipOnHide, destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip, defaultVisible = props.defaultVisible, getTooltipContainer = props.getTooltipContainer, overlayInnerStyle = props.overlayInnerStyle;
22443
22550
  props.arrowContent;
22444
- var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$z);
22551
+ var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$A);
22445
22552
  var mergedId = useId$2(id2);
22446
22553
  var triggerRef = useRef(null);
22447
22554
  useImperativeHandle(ref, function() {
@@ -22982,7 +23089,7 @@ const genTooltipStyle = (token2) => {
22982
23089
  }
22983
23090
  ];
22984
23091
  };
22985
- const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
23092
+ const prepareComponentToken$l = (token2) => Object.assign(Object.assign({
22986
23093
  zIndexPopup: token2.zIndexPopupBase + 70
22987
23094
  }, getArrowOffsetToken({
22988
23095
  contentRadius: token2.borderRadius,
@@ -22990,7 +23097,7 @@ const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
22990
23097
  })), getArrowToken(merge$1(token2, {
22991
23098
  borderRadiusOuter: Math.min(token2.borderRadiusOuter, 4)
22992
23099
  })));
22993
- const useStyle$o = (prefixCls, injectStyle = true) => {
23100
+ const useStyle$p = (prefixCls, injectStyle = true) => {
22994
23101
  const useStyle2 = genStyleHooks("Tooltip", (token2) => {
22995
23102
  const {
22996
23103
  borderRadius: borderRadius2,
@@ -23005,7 +23112,7 @@ const useStyle$o = (prefixCls, injectStyle = true) => {
23005
23112
  tooltipBg: colorBgSpotlight
23006
23113
  });
23007
23114
  return [genTooltipStyle(TooltipToken), initZoomMotion(token2, "zoom-big-fast")];
23008
- }, prepareComponentToken$k, {
23115
+ }, prepareComponentToken$l, {
23009
23116
  resetStyle: false,
23010
23117
  // Popover use Tooltip as internal component. We do not need to handle this.
23011
23118
  injectStyle
@@ -23040,7 +23147,7 @@ function parseColor(prefixCls, color2) {
23040
23147
  arrowStyle
23041
23148
  };
23042
23149
  }
23043
- const PurePanel$4 = (props) => {
23150
+ const PurePanel$5 = (props) => {
23044
23151
  const {
23045
23152
  prefixCls: customizePrefixCls,
23046
23153
  className,
@@ -23053,7 +23160,7 @@ const PurePanel$4 = (props) => {
23053
23160
  getPrefixCls
23054
23161
  } = React.useContext(ConfigContext);
23055
23162
  const prefixCls = getPrefixCls("tooltip", customizePrefixCls);
23056
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23163
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls);
23057
23164
  const colorInfo = parseColor(prefixCls, color2);
23058
23165
  const arrowContentStyle = colorInfo.arrowStyle;
23059
23166
  const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);
@@ -23069,7 +23176,7 @@ const PurePanel$4 = (props) => {
23069
23176
  overlayInnerStyle: formattedOverlayInnerStyle
23070
23177
  }), title)));
23071
23178
  };
23072
- var __rest$Q = function(s, e3) {
23179
+ var __rest$R = function(s, e3) {
23073
23180
  var t2 = {};
23074
23181
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23075
23182
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23106,7 +23213,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
23106
23213
  overlayClassName,
23107
23214
  styles,
23108
23215
  classNames: tooltipClassNames
23109
- } = props, restProps = __rest$Q(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
23216
+ } = props, restProps = __rest$R(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
23110
23217
  const mergedShowArrow = !!arrow;
23111
23218
  const [, token2] = useToken();
23112
23219
  const {
@@ -23190,7 +23297,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
23190
23297
  const child = /* @__PURE__ */ React.isValidElement(children2) && !isFragment(children2) ? children2 : /* @__PURE__ */ React.createElement("span", null, children2);
23191
23298
  const childProps = child.props;
23192
23299
  const childCls = !childProps.className || typeof childProps.className === "string" ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;
23193
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls, !injectFromPopover);
23300
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, !injectFromPopover);
23194
23301
  const colorInfo = parseColor(prefixCls, color2);
23195
23302
  const arrowContentStyle = colorInfo.arrowStyle;
23196
23303
  const rootClassNames = classNames(overlayClassName, {
@@ -23240,7 +23347,7 @@ const Tooltip$2 = InternalTooltip;
23240
23347
  if (process.env.NODE_ENV !== "production") {
23241
23348
  Tooltip$2.displayName = "Tooltip";
23242
23349
  }
23243
- Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
23350
+ Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
23244
23351
  const genBaseStyle$5 = (token2) => {
23245
23352
  const {
23246
23353
  componentCls,
@@ -23348,7 +23455,7 @@ const genColorStyle = (token2) => {
23348
23455
  })
23349
23456
  };
23350
23457
  };
23351
- const prepareComponentToken$j = (token2) => {
23458
+ const prepareComponentToken$k = (token2) => {
23352
23459
  const {
23353
23460
  lineWidth,
23354
23461
  controlHeight,
@@ -23381,7 +23488,7 @@ const prepareComponentToken$j = (token2) => {
23381
23488
  innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0
23382
23489
  });
23383
23490
  };
23384
- const useStyle$n = genStyleHooks("Popover", (token2) => {
23491
+ const useStyle$o = genStyleHooks("Popover", (token2) => {
23385
23492
  const {
23386
23493
  colorBgElevated,
23387
23494
  colorText
@@ -23391,11 +23498,11 @@ const useStyle$n = genStyleHooks("Popover", (token2) => {
23391
23498
  popoverColor: colorText
23392
23499
  });
23393
23500
  return [genBaseStyle$5(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
23394
- }, prepareComponentToken$j, {
23501
+ }, prepareComponentToken$k, {
23395
23502
  resetStyle: false,
23396
23503
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
23397
23504
  });
23398
- var __rest$P = function(s, e3) {
23505
+ var __rest$Q = function(s, e3) {
23399
23506
  var t2 = {};
23400
23507
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23401
23508
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23445,23 +23552,23 @@ const RawPurePanel = (props) => {
23445
23552
  content: contentNode
23446
23553
  })));
23447
23554
  };
23448
- const PurePanel$3 = (props) => {
23555
+ const PurePanel$4 = (props) => {
23449
23556
  const {
23450
23557
  prefixCls: customizePrefixCls,
23451
23558
  className
23452
- } = props, restProps = __rest$P(props, ["prefixCls", "className"]);
23559
+ } = props, restProps = __rest$Q(props, ["prefixCls", "className"]);
23453
23560
  const {
23454
23561
  getPrefixCls
23455
23562
  } = React.useContext(ConfigContext);
23456
23563
  const prefixCls = getPrefixCls("popover", customizePrefixCls);
23457
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
23564
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23458
23565
  return wrapCSSVar(/* @__PURE__ */ React.createElement(RawPurePanel, Object.assign({}, restProps, {
23459
23566
  prefixCls,
23460
23567
  hashId,
23461
23568
  className: classNames(className, cssVarCls)
23462
23569
  })));
23463
23570
  };
23464
- var __rest$O = function(s, e3) {
23571
+ var __rest$P = function(s, e3) {
23465
23572
  var t2 = {};
23466
23573
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23467
23574
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23485,7 +23592,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
23485
23592
  overlayStyle = {},
23486
23593
  styles,
23487
23594
  classNames: popoverClassNames
23488
- } = props, otherProps = __rest$O(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
23595
+ } = props, otherProps = __rest$P(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
23489
23596
  const {
23490
23597
  getPrefixCls,
23491
23598
  className: contextClassName,
@@ -23494,7 +23601,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
23494
23601
  styles: contextStyles
23495
23602
  } = useComponentConfig("popover");
23496
23603
  const prefixCls = getPrefixCls("popover", customizePrefixCls);
23497
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
23604
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23498
23605
  const rootPrefixCls = getPrefixCls();
23499
23606
  const rootClassNames = classNames(overlayClassName, hashId, cssVarCls, contextClassName, contextClassNames.root, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.root);
23500
23607
  const bodyClassNames = classNames(contextClassNames.body, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.body);
@@ -23552,7 +23659,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
23552
23659
  })));
23553
23660
  });
23554
23661
  const Popover$2 = InternalPopover;
23555
- Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$3;
23662
+ Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
23556
23663
  if (process.env.NODE_ENV !== "production") {
23557
23664
  Popover$2.displayName = "Popover";
23558
23665
  }
@@ -23598,7 +23705,7 @@ const AvatarGroup = (props) => {
23598
23705
  const prefixCls = getPrefixCls("avatar", customizePrefixCls);
23599
23706
  const groupPrefixCls = `${prefixCls}-group`;
23600
23707
  const rootCls = useCSSVarCls(prefixCls);
23601
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, rootCls);
23708
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
23602
23709
  const cls = classNames(groupPrefixCls, {
23603
23710
  [`${groupPrefixCls}-rtl`]: direction === "rtl"
23604
23711
  }, cssVarCls, rootCls, className, rootClassName, hashId);
@@ -23774,10 +23881,10 @@ var placements$1 = {
23774
23881
  targetOffset
23775
23882
  }
23776
23883
  };
23777
- var _excluded$y = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
23884
+ var _excluded$z = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
23778
23885
  function Dropdown$2(props, ref) {
23779
23886
  var _children$props;
23780
- var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$y);
23887
+ var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$z);
23781
23888
  var _React$useState = React__default.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1];
23782
23889
  var mergedVisible = "visible" in props ? visible : triggerVisible;
23783
23890
  var triggerRef = React__default.useRef(null);
@@ -23875,7 +23982,7 @@ function useMenuId(eventKey) {
23875
23982
  var id2 = React.useContext(IdContext);
23876
23983
  return getMenuId(id2, eventKey);
23877
23984
  }
23878
- var _excluded$x = ["children", "locked"];
23985
+ var _excluded$y = ["children", "locked"];
23879
23986
  var MenuContext$1 = /* @__PURE__ */ React.createContext(null);
23880
23987
  function mergeProps(origin, target) {
23881
23988
  var clone = _objectSpread2({}, origin);
@@ -23888,7 +23995,7 @@ function mergeProps(origin, target) {
23888
23995
  return clone;
23889
23996
  }
23890
23997
  function InheritableContextProvider(_ref) {
23891
- var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$x);
23998
+ var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$y);
23892
23999
  var context = React.useContext(MenuContext$1);
23893
24000
  var inheritableContext = useMemo(function() {
23894
24001
  return mergeProps(context, restProps);
@@ -24318,9 +24425,9 @@ function Icon$2(_ref) {
24318
24425
  }
24319
24426
  return iconNode || children2 || null;
24320
24427
  }
24321
- var _excluded$w = ["item"];
24428
+ var _excluded$x = ["item"];
24322
24429
  function warnItemProp(_ref) {
24323
- var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$w);
24430
+ var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$x);
24324
24431
  Object.defineProperty(restInfo, "item", {
24325
24432
  get: function get2() {
24326
24433
  warningOnce(false, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future.");
@@ -24329,7 +24436,7 @@ function warnItemProp(_ref) {
24329
24436
  });
24330
24437
  return restInfo;
24331
24438
  }
24332
- var _excluded$v = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
24439
+ var _excluded$w = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
24333
24440
  var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
24334
24441
  _inherits(LegacyMenuItem2, _React$Component);
24335
24442
  var _super = _createSuper(LegacyMenuItem2);
@@ -24340,7 +24447,7 @@ var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
24340
24447
  _createClass(LegacyMenuItem2, [{
24341
24448
  key: "render",
24342
24449
  value: function render2() {
24343
- var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$v);
24450
+ var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$w);
24344
24451
  var passedProps = omit(restProps, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
24345
24452
  warningOnce(!attribute, "`attribute` of Menu.Item is deprecated. Please pass attribute directly.");
24346
24453
  return /* @__PURE__ */ React.createElement(ForwardOverflow.Item, _extends$1({}, attribute, {
@@ -24450,9 +24557,9 @@ function MenuItem$2(props, ref) {
24450
24557
  }));
24451
24558
  }
24452
24559
  const MenuItem$3 = /* @__PURE__ */ React.forwardRef(MenuItem$2);
24453
- var _excluded$u = ["className", "children"];
24560
+ var _excluded$v = ["className", "children"];
24454
24561
  var InternalSubMenuList = function InternalSubMenuList2(_ref, ref) {
24455
- var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$u);
24562
+ var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$v);
24456
24563
  var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, rtl = _React$useContext.rtl;
24457
24564
  return /* @__PURE__ */ React.createElement("ul", _extends$1({
24458
24565
  className: classNames(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === "inline" ? "inline" : "vertical"), className),
@@ -24665,9 +24772,9 @@ function InlineSubMenuList(_ref) {
24665
24772
  }, children2);
24666
24773
  }));
24667
24774
  }
24668
- var _excluded$t = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], _excluded2$4 = ["active"];
24775
+ var _excluded$u = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], _excluded2$4 = ["active"];
24669
24776
  var InternalSubMenu = /* @__PURE__ */ React.forwardRef(function(props, ref) {
24670
- var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$t);
24777
+ var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$u);
24671
24778
  var domDataId = useMenuId(eventKey);
24672
24779
  var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, openKeys = _React$useContext.openKeys, contextDisabled = _React$useContext.disabled, overflowDisabled = _React$useContext.overflowDisabled, activeKey = _React$useContext.activeKey, selectedKeys = _React$useContext.selectedKeys, contextItemIcon = _React$useContext.itemIcon, contextExpandIcon = _React$useContext.expandIcon, onItemClick = _React$useContext.onItemClick, onOpenChange = _React$useContext.onOpenChange, onActive = _React$useContext.onActive;
24673
24780
  var _React$useContext2 = React.useContext(PrivateContext), _internalRenderSubMenuItem = _React$useContext2._internalRenderSubMenuItem;
@@ -24867,11 +24974,11 @@ function Divider(_ref) {
24867
24974
  style: style2
24868
24975
  });
24869
24976
  }
24870
- var _excluded$s = ["className", "title", "eventKey", "children"];
24977
+ var _excluded$t = ["className", "title", "eventKey", "children"];
24871
24978
  var InternalMenuItemGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
24872
24979
  var className = props.className, title = props.title;
24873
24980
  props.eventKey;
24874
- var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$s);
24981
+ var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$t);
24875
24982
  var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls;
24876
24983
  var groupPrefixCls = "".concat(prefixCls, "-item-group");
24877
24984
  return /* @__PURE__ */ React.createElement("li", _extends$1({
@@ -24906,12 +25013,12 @@ var MenuItemGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
24906
25013
  if (process.env.NODE_ENV !== "production") {
24907
25014
  MenuItemGroup.displayName = "MenuItemGroup";
24908
25015
  }
24909
- var _excluded$r = ["label", "children", "key", "type", "extra"];
25016
+ var _excluded$s = ["label", "children", "key", "type", "extra"];
24910
25017
  function convertItemsToNodes(list2, components2, prefixCls) {
24911
25018
  var MergedMenuItem = components2.item, MergedMenuItemGroup = components2.group, MergedSubMenu = components2.submenu, MergedDivider = components2.divider;
24912
25019
  return (list2 || []).map(function(opt, index2) {
24913
25020
  if (opt && _typeof(opt) === "object") {
24914
- var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$r);
25021
+ var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$s);
24915
25022
  var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index2);
24916
25023
  if (children2 || type4 === "group") {
24917
25024
  if (type4 === "group") {
@@ -24958,11 +25065,11 @@ function parseItems(children2, items, keyPath, components2, prefixCls) {
24958
25065
  }
24959
25066
  return parseChildren(childNodes, keyPath);
24960
25067
  }
24961
- var _excluded$q = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"];
25068
+ var _excluded$r = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"];
24962
25069
  var EMPTY_LIST$4 = [];
24963
25070
  var Menu$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
24964
25071
  var _childList$;
24965
- var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$q);
25072
+ var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$r);
24966
25073
  var _React$useMemo = React.useMemo(function() {
24967
25074
  return [parseItems(children2, items, EMPTY_LIST$4, _internalComponents, prefixCls), parseItems(children2, items, EMPTY_LIST$4, {}, prefixCls)];
24968
25075
  }, [children2, items, _internalComponents]), _React$useMemo2 = _slicedToArray(_React$useMemo, 2), childList = _React$useMemo2[0], measureChildList = _React$useMemo2[1];
@@ -25327,7 +25434,7 @@ const genLayoutStyle = (token2) => {
25327
25434
  }
25328
25435
  };
25329
25436
  };
25330
- const prepareComponentToken$i = (token2) => {
25437
+ const prepareComponentToken$j = (token2) => {
25331
25438
  const {
25332
25439
  colorBgLayout,
25333
25440
  controlHeight,
@@ -25363,7 +25470,7 @@ const prepareComponentToken$i = (token2) => {
25363
25470
  };
25364
25471
  };
25365
25472
  const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
25366
- genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$i, {
25473
+ genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$j, {
25367
25474
  deprecatedTokens: DEPRECATED_TOKENS
25368
25475
  });
25369
25476
  const genSiderStyle = (token2) => {
@@ -25473,10 +25580,10 @@ const genSiderStyle = (token2) => {
25473
25580
  }
25474
25581
  };
25475
25582
  };
25476
- const useStyle$m = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$i, {
25583
+ const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
25477
25584
  deprecatedTokens: DEPRECATED_TOKENS
25478
25585
  });
25479
- var __rest$N = function(s, e3) {
25586
+ var __rest$O = function(s, e3) {
25480
25587
  var t2 = {};
25481
25588
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25482
25589
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25518,7 +25625,7 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
25518
25625
  breakpoint,
25519
25626
  onCollapse,
25520
25627
  onBreakpoint
25521
- } = props, otherProps = __rest$N(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
25628
+ } = props, otherProps = __rest$O(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
25522
25629
  const {
25523
25630
  siderHook
25524
25631
  } = useContext$1(LayoutContext);
@@ -25540,7 +25647,7 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
25540
25647
  direction
25541
25648
  } = useContext$1(ConfigContext);
25542
25649
  const prefixCls = getPrefixCls("layout-sider", customizePrefixCls);
25543
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls);
25650
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
25544
25651
  const responsiveHandlerRef = useRef(null);
25545
25652
  responsiveHandlerRef.current = (mql) => {
25546
25653
  setBelow(mql.matches);
@@ -25639,7 +25746,7 @@ const MenuContext = /* @__PURE__ */ createContext$1({
25639
25746
  firstLevel: true,
25640
25747
  inlineCollapsed: false
25641
25748
  });
25642
- var __rest$M = function(s, e3) {
25749
+ var __rest$N = function(s, e3) {
25643
25750
  var t2 = {};
25644
25751
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25645
25752
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25652,7 +25759,7 @@ const MenuDivider = (props) => {
25652
25759
  prefixCls: customizePrefixCls,
25653
25760
  className,
25654
25761
  dashed
25655
- } = props, restProps = __rest$M(props, ["prefixCls", "className", "dashed"]);
25762
+ } = props, restProps = __rest$N(props, ["prefixCls", "className", "dashed"]);
25656
25763
  const {
25657
25764
  getPrefixCls
25658
25765
  } = React.useContext(ConfigContext);
@@ -25733,7 +25840,7 @@ const MenuItem$1 = (props) => {
25733
25840
  }
25734
25841
  return returnNode;
25735
25842
  };
25736
- var __rest$L = function(s, e3) {
25843
+ var __rest$M = function(s, e3) {
25737
25844
  var t2 = {};
25738
25845
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25739
25846
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25745,7 +25852,7 @@ const OverrideContext = /* @__PURE__ */ React.createContext(null);
25745
25852
  const OverrideProvider = /* @__PURE__ */ React.forwardRef((props, ref) => {
25746
25853
  const {
25747
25854
  children: children2
25748
- } = props, restProps = __rest$L(props, ["children"]);
25855
+ } = props, restProps = __rest$M(props, ["children"]);
25749
25856
  const override = React.useContext(OverrideContext);
25750
25857
  const context = React.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
25751
25858
  override,
@@ -26572,7 +26679,7 @@ const getBaseStyle = (token2) => {
26572
26679
  }
26573
26680
  ];
26574
26681
  };
26575
- const prepareComponentToken$h = (token2) => {
26682
+ const prepareComponentToken$i = (token2) => {
26576
26683
  var _a, _b, _c;
26577
26684
  const {
26578
26685
  colorPrimary,
@@ -26690,7 +26797,7 @@ const prepareComponentToken$h = (token2) => {
26690
26797
  itemWidth: activeBarWidth ? `calc(100% + ${activeBarBorderWidth}px)` : `calc(100% - ${itemMarginInline * 2}px)`
26691
26798
  };
26692
26799
  };
26693
- const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26800
+ const useStyle$m = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26694
26801
  const useStyle2 = genStyleHooks("Menu", (token2) => {
26695
26802
  const {
26696
26803
  colorBgElevated,
@@ -26769,7 +26876,7 @@ const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26769
26876
  initSlideMotion(menuToken, "slide-down"),
26770
26877
  initZoomMotion(menuToken, "zoom-big")
26771
26878
  ];
26772
- }, prepareComponentToken$h, {
26879
+ }, prepareComponentToken$i, {
26773
26880
  deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
26774
26881
  // Dropdown will handle menu style self. We do not need to handle this.
26775
26882
  injectStyle,
@@ -26823,7 +26930,7 @@ const SubMenu = (props) => {
26823
26930
  }, props.popupStyle)
26824
26931
  })));
26825
26932
  };
26826
- var __rest$K = function(s, e3) {
26933
+ var __rest$L = function(s, e3) {
26827
26934
  var t2 = {};
26828
26935
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
26829
26936
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -26864,7 +26971,7 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
26864
26971
  selectable,
26865
26972
  onClick,
26866
26973
  overflowedIndicatorPopupClassName
26867
- } = props, restProps = __rest$K(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
26974
+ } = props, restProps = __rest$L(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
26868
26975
  const passedProps = omit(restProps, ["collapsedWidth"]);
26869
26976
  if (process.env.NODE_ENV !== "production") {
26870
26977
  const warning3 = devUseWarning("Menu");
@@ -26893,7 +27000,7 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
26893
27000
  };
26894
27001
  const prefixCls = getPrefixCls("menu", customizePrefixCls || overrideObj.prefixCls);
26895
27002
  const rootCls = useCSSVarCls(prefixCls);
26896
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls, !override);
27003
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls, rootCls, !override);
26897
27004
  const menuClassName = classNames(`${prefixCls}-${theme}`, menu === null || menu === void 0 ? void 0 : menu.className, className);
26898
27005
  const mergedExpandIcon = React.useMemo(() => {
26899
27006
  var _a2, _b;
@@ -27256,14 +27363,14 @@ const genBaseStyle$4 = (token2) => {
27256
27363
  [initSlideMotion(token2, "slide-up"), initSlideMotion(token2, "slide-down"), initMoveMotion(token2, "move-up"), initMoveMotion(token2, "move-down"), initZoomMotion(token2, "zoom-big")]
27257
27364
  ];
27258
27365
  };
27259
- const prepareComponentToken$g = (token2) => Object.assign(Object.assign({
27366
+ const prepareComponentToken$h = (token2) => Object.assign(Object.assign({
27260
27367
  zIndexPopup: token2.zIndexPopupBase + 50,
27261
27368
  paddingBlock: (token2.controlHeight - token2.fontSize * token2.lineHeight) / 2
27262
27369
  }, getArrowOffsetToken({
27263
27370
  contentRadius: token2.borderRadiusLG,
27264
27371
  limitVerticalRadius: true
27265
27372
  })), getArrowToken(token2));
27266
- const useStyle$k = genStyleHooks("Dropdown", (token2) => {
27373
+ const useStyle$l = genStyleHooks("Dropdown", (token2) => {
27267
27374
  const {
27268
27375
  marginXXS,
27269
27376
  sizePopupArrow,
@@ -27276,7 +27383,7 @@ const useStyle$k = genStyleHooks("Dropdown", (token2) => {
27276
27383
  dropdownEdgeChildPadding: paddingXXS
27277
27384
  });
27278
27385
  return [genBaseStyle$4(dropdownToken), genStatusStyle(dropdownToken)];
27279
- }, prepareComponentToken$g, {
27386
+ }, prepareComponentToken$h, {
27280
27387
  resetStyle: false
27281
27388
  });
27282
27389
  const Dropdown$1 = (props) => {
@@ -27352,7 +27459,7 @@ const Dropdown$1 = (props) => {
27352
27459
  }, [placement, direction]);
27353
27460
  const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
27354
27461
  const rootCls = useCSSVarCls(prefixCls);
27355
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls, rootCls);
27462
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls);
27356
27463
  const [, token2] = useToken();
27357
27464
  const child = React.Children.only(isPrimitive(children2) ? /* @__PURE__ */ React.createElement("span", null, children2) : children2);
27358
27465
  const popupTrigger = cloneElement(child, {
@@ -27454,8 +27561,8 @@ const Dropdown$1 = (props) => {
27454
27561
  }
27455
27562
  return wrapCSSVar(renderNode);
27456
27563
  };
27457
- const PurePanel$2 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
27458
- const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$2, Object.assign({}, props), /* @__PURE__ */ React.createElement("span", null));
27564
+ const PurePanel$3 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
27565
+ const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$3, Object.assign({}, props), /* @__PURE__ */ React.createElement("span", null));
27459
27566
  Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
27460
27567
  if (process.env.NODE_ENV !== "production") {
27461
27568
  Dropdown$1.displayName = "Dropdown";
@@ -27473,7 +27580,7 @@ const BreadcrumbSeparator = ({
27473
27580
  }, children2 === "" ? children2 : children2 || "/");
27474
27581
  };
27475
27582
  BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
27476
- var __rest$J = function(s, e3) {
27583
+ var __rest$K = function(s, e3) {
27477
27584
  var t2 = {};
27478
27585
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27479
27586
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27495,7 +27602,7 @@ function renderItem(prefixCls, item, children2, href) {
27495
27602
  const {
27496
27603
  className,
27497
27604
  onClick
27498
- } = item, restItem = __rest$J(item, ["className", "onClick"]);
27605
+ } = item, restItem = __rest$K(item, ["className", "onClick"]);
27499
27606
  const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
27500
27607
  data: true,
27501
27608
  aria: true
@@ -27522,7 +27629,7 @@ function useItemRender(prefixCls, itemRender) {
27522
27629
  };
27523
27630
  return mergedItemRender;
27524
27631
  }
27525
- var __rest$I = function(s, e3) {
27632
+ var __rest$J = function(s, e3) {
27526
27633
  var t2 = {};
27527
27634
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27528
27635
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27550,7 +27657,7 @@ const InternalBreadcrumbItem = (props) => {
27550
27657
  if (menu) {
27551
27658
  const _a = menu || {}, {
27552
27659
  items
27553
- } = _a, menuProps = __rest$I(_a, ["items"]);
27660
+ } = _a, menuProps = __rest$J(_a, ["items"]);
27554
27661
  mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
27555
27662
  items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
27556
27663
  var {
@@ -27558,7 +27665,7 @@ const InternalBreadcrumbItem = (props) => {
27558
27665
  title,
27559
27666
  label,
27560
27667
  path: path2
27561
- } = _a2, itemProps = __rest$I(_a2, ["key", "title", "label", "path"]);
27668
+ } = _a2, itemProps = __rest$J(_a2, ["key", "title", "label", "path"]);
27562
27669
  let mergedLabel = label !== null && label !== void 0 ? label : title;
27563
27670
  if (path2) {
27564
27671
  mergedLabel = /* @__PURE__ */ React.createElement("a", {
@@ -27593,7 +27700,7 @@ const BreadcrumbItem = (props) => {
27593
27700
  prefixCls: customizePrefixCls,
27594
27701
  children: children2,
27595
27702
  href
27596
- } = props, restProps = __rest$I(props, ["prefixCls", "children", "href"]);
27703
+ } = props, restProps = __rest$J(props, ["prefixCls", "children", "href"]);
27597
27704
  const {
27598
27705
  getPrefixCls
27599
27706
  } = React.useContext(ConfigContext);
@@ -27681,7 +27788,7 @@ const genBreadcrumbStyle = (token2) => {
27681
27788
  })
27682
27789
  };
27683
27790
  };
27684
- const prepareComponentToken$f = (token2) => ({
27791
+ const prepareComponentToken$g = (token2) => ({
27685
27792
  itemColor: token2.colorTextDescription,
27686
27793
  lastItemColor: token2.colorText,
27687
27794
  iconFontSize: token2.fontSize,
@@ -27690,11 +27797,11 @@ const prepareComponentToken$f = (token2) => ({
27690
27797
  separatorColor: token2.colorTextDescription,
27691
27798
  separatorMargin: token2.marginXS
27692
27799
  });
27693
- const useStyle$j = genStyleHooks("Breadcrumb", (token2) => {
27800
+ const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
27694
27801
  const breadcrumbToken = merge$1(token2, {});
27695
27802
  return genBreadcrumbStyle(breadcrumbToken);
27696
- }, prepareComponentToken$f);
27697
- var __rest$H = function(s, e3) {
27803
+ }, prepareComponentToken$g);
27804
+ var __rest$I = function(s, e3) {
27698
27805
  var t2 = {};
27699
27806
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27700
27807
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27706,7 +27813,7 @@ function route2item(route) {
27706
27813
  const {
27707
27814
  breadcrumbName,
27708
27815
  children: children2
27709
- } = route, rest = __rest$H(route, ["breadcrumbName", "children"]);
27816
+ } = route, rest = __rest$I(route, ["breadcrumbName", "children"]);
27710
27817
  const clone = Object.assign({
27711
27818
  title: breadcrumbName
27712
27819
  }, rest);
@@ -27715,7 +27822,7 @@ function route2item(route) {
27715
27822
  items: children2.map((_a) => {
27716
27823
  var {
27717
27824
  breadcrumbName: itemBreadcrumbName
27718
- } = _a, itemProps = __rest$H(_a, ["breadcrumbName"]);
27825
+ } = _a, itemProps = __rest$I(_a, ["breadcrumbName"]);
27719
27826
  return Object.assign(Object.assign({}, itemProps), {
27720
27827
  title: itemBreadcrumbName
27721
27828
  });
@@ -27735,7 +27842,7 @@ function useItems(items, routes) {
27735
27842
  return null;
27736
27843
  }, [items, routes]);
27737
27844
  }
27738
- var __rest$G = function(s, e3) {
27845
+ var __rest$H = function(s, e3) {
27739
27846
  var t2 = {};
27740
27847
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27741
27848
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27765,7 +27872,7 @@ const Breadcrumb$2 = (props) => {
27765
27872
  children: children2,
27766
27873
  itemRender,
27767
27874
  params = {}
27768
- } = props, restProps = __rest$G(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
27875
+ } = props, restProps = __rest$H(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
27769
27876
  const {
27770
27877
  getPrefixCls,
27771
27878
  direction,
@@ -27773,7 +27880,7 @@ const Breadcrumb$2 = (props) => {
27773
27880
  } = React.useContext(ConfigContext);
27774
27881
  let crumbs;
27775
27882
  const prefixCls = getPrefixCls("breadcrumb", customizePrefixCls);
27776
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls);
27883
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls);
27777
27884
  const mergedItems = useItems(items, legacyRoutes);
27778
27885
  if (process.env.NODE_ENV !== "production") {
27779
27886
  const warning3 = devUseWarning("Breadcrumb");
@@ -31583,9 +31690,9 @@ function useRootProps(props) {
31583
31690
  return pickProps(props, propNames);
31584
31691
  }, [props]);
31585
31692
  }
31586
- var _excluded$p = ["icon", "type"], _excluded2$3 = ["onClear"];
31693
+ var _excluded$q = ["icon", "type"], _excluded2$3 = ["onClear"];
31587
31694
  function Icon$1(props) {
31588
- var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$p);
31695
+ var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$q);
31589
31696
  var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
31590
31697
  return icon ? /* @__PURE__ */ React.createElement("span", _extends$1({
31591
31698
  className: "".concat(prefixCls, "-").concat(type4)
@@ -31705,11 +31812,11 @@ function getMaskRange(key) {
31705
31812
  };
31706
31813
  return PresetRange[key];
31707
31814
  }
31708
- var _excluded$o = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
31815
+ var _excluded$p = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
31709
31816
  var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
31710
31817
  var active = props.active, _props$showActiveCls = props.showActiveCls, showActiveCls = _props$showActiveCls === void 0 ? true : _props$showActiveCls, suffixIcon = props.suffixIcon, format3 = props.format, validateFormat = props.validateFormat, onChange = props.onChange;
31711
31818
  props.onInput;
31712
- var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$o);
31819
+ var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$p);
31713
31820
  var value2 = props.value, onFocus = props.onFocus, onBlur = props.onBlur, onMouseUp = props.onMouseUp;
31714
31821
  var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp;
31715
31822
  var inputPrefixCls = "".concat(prefixCls, "-input");
@@ -31935,7 +32042,7 @@ var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
31935
32042
  if (process.env.NODE_ENV !== "production") {
31936
32043
  Input$5.displayName = "Input";
31937
32044
  }
31938
- var _excluded$n = ["id", "prefix", "clearIcon", "suffixIcon", "separator", "activeIndex", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "value", "onChange", "onSubmit", "onInputChange", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onActiveInfo", "placement", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex"], _excluded2$2 = ["index"];
32045
+ var _excluded$o = ["id", "prefix", "clearIcon", "suffixIcon", "separator", "activeIndex", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "value", "onChange", "onSubmit", "onInputChange", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onActiveInfo", "placement", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex"], _excluded2$2 = ["index"];
31939
32046
  function RangeSelector(props, ref) {
31940
32047
  var id2 = props.id, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon, _props$separator = props.separator, separator = _props$separator === void 0 ? "~" : _props$separator, activeIndex = props.activeIndex;
31941
32048
  props.activeHelp;
@@ -31963,7 +32070,7 @@ function RangeSelector(props, ref) {
31963
32070
  var _onMouseDown = props.onMouseDown;
31964
32071
  props.required;
31965
32072
  props["aria-required"];
31966
- var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$n);
32073
+ var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$o);
31967
32074
  var rtl = direction === "rtl";
31968
32075
  var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
31969
32076
  var ids = React.useMemo(function() {
@@ -32477,7 +32584,7 @@ function MultipleDates(props) {
32477
32584
  className: "".concat(prefixCls, "-selection-placeholder")
32478
32585
  }, placeholder));
32479
32586
  }
32480
- var _excluded$m = ["id", "open", "prefix", "clearIcon", "suffixIcon", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "internalPicker", "value", "onChange", "onSubmit", "onInputChange", "multiple", "maxTagCount", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex", "removeIcon"];
32587
+ var _excluded$n = ["id", "open", "prefix", "clearIcon", "suffixIcon", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "internalPicker", "value", "onChange", "onSubmit", "onInputChange", "multiple", "maxTagCount", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex", "removeIcon"];
32481
32588
  function SingleSelector2(props, ref) {
32482
32589
  props.id;
32483
32590
  var open = props.open, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon;
@@ -32501,7 +32608,7 @@ function SingleSelector2(props, ref) {
32501
32608
  var _onMouseDown = props.onMouseDown;
32502
32609
  props.required;
32503
32610
  props["aria-required"];
32504
- var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$m);
32611
+ var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$n);
32505
32612
  var rtl = direction === "rtl";
32506
32613
  var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
32507
32614
  var rootRef = React.useRef();
@@ -32904,9 +33011,9 @@ const RadioGroupContext = /* @__PURE__ */ React.createContext(null);
32904
33011
  const RadioGroupContextProvider = RadioGroupContext.Provider;
32905
33012
  const RadioOptionTypeContext = /* @__PURE__ */ React.createContext(null);
32906
33013
  const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
32907
- var _excluded$l = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
33014
+ var _excluded$m = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
32908
33015
  var Checkbox$3 = /* @__PURE__ */ forwardRef(function(props, ref) {
32909
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$l);
33016
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$m);
32910
33017
  var inputRef = useRef(null);
32911
33018
  var holderRef = useRef(null);
32912
33019
  var _useMergedState = useMergedState(defaultChecked, {
@@ -33380,7 +33487,7 @@ const getRadioButtonStyle = (token2) => {
33380
33487
  }
33381
33488
  };
33382
33489
  };
33383
- const prepareComponentToken$e = (token2) => {
33490
+ const prepareComponentToken$f = (token2) => {
33384
33491
  const {
33385
33492
  wireframe,
33386
33493
  padding,
@@ -33422,7 +33529,7 @@ const prepareComponentToken$e = (token2) => {
33422
33529
  radioBgColor: wireframe ? colorBgContainer : colorPrimary
33423
33530
  };
33424
33531
  };
33425
- const useStyle$i = genStyleHooks("Radio", (token2) => {
33532
+ const useStyle$j = genStyleHooks("Radio", (token2) => {
33426
33533
  const {
33427
33534
  controlOutline,
33428
33535
  controlOutlineWidth
@@ -33434,13 +33541,13 @@ const useStyle$i = genStyleHooks("Radio", (token2) => {
33434
33541
  radioButtonFocusShadow
33435
33542
  });
33436
33543
  return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];
33437
- }, prepareComponentToken$e, {
33544
+ }, prepareComponentToken$f, {
33438
33545
  unitless: {
33439
33546
  radioSize: true,
33440
33547
  dotSize: true
33441
33548
  }
33442
33549
  });
33443
- var __rest$F = function(s, e3) {
33550
+ var __rest$G = function(s, e3) {
33444
33551
  var t2 = {};
33445
33552
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33446
33553
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33478,12 +33585,12 @@ const InternalRadio = (props, ref) => {
33478
33585
  children: children2,
33479
33586
  style: style2,
33480
33587
  title
33481
- } = props, restProps = __rest$F(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
33588
+ } = props, restProps = __rest$G(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
33482
33589
  const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
33483
33590
  const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
33484
33591
  const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
33485
33592
  const rootCls = useCSSVarCls(radioPrefixCls);
33486
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(radioPrefixCls, rootCls);
33593
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(radioPrefixCls, rootCls);
33487
33594
  const radioProps = Object.assign({}, restProps);
33488
33595
  const disabled2 = React.useContext(DisabledContext);
33489
33596
  if (groupContext) {
@@ -33559,7 +33666,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
33559
33666
  }
33560
33667
  return status;
33561
33668
  }
33562
- var __rest$E = function(s, e3) {
33669
+ var __rest$F = function(s, e3) {
33563
33670
  var t2 = {};
33564
33671
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33565
33672
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33599,7 +33706,7 @@ function useForm(form) {
33599
33706
  scrollToField: (name2, options = {}) => {
33600
33707
  const {
33601
33708
  focus
33602
- } = options, restOpt = __rest$E(options, ["focus"]);
33709
+ } = options, restOpt = __rest$F(options, ["focus"]);
33603
33710
  const node2 = getFieldDOMNode(name2, wrapForm);
33604
33711
  if (node2) {
33605
33712
  e(node2, Object.assign({
@@ -33674,7 +33781,7 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
33674
33781
  const prefixCls = getPrefixCls("radio", customizePrefixCls);
33675
33782
  const groupPrefixCls = `${prefixCls}-group`;
33676
33783
  const rootCls = useCSSVarCls(prefixCls);
33677
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(prefixCls, rootCls);
33784
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls, rootCls);
33678
33785
  let childrenToRender = children2;
33679
33786
  if (options && options.length > 0) {
33680
33787
  childrenToRender = options.map((option) => {
@@ -33732,7 +33839,7 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
33732
33839
  }, childrenToRender)));
33733
33840
  });
33734
33841
  const Group$1 = /* @__PURE__ */ React.memo(RadioGroup$1);
33735
- var __rest$D = function(s, e3) {
33842
+ var __rest$E = function(s, e3) {
33736
33843
  var t2 = {};
33737
33844
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33738
33845
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33746,7 +33853,7 @@ const RadioButton = (props, ref) => {
33746
33853
  } = React.useContext(ConfigContext);
33747
33854
  const {
33748
33855
  prefixCls: customizePrefixCls
33749
- } = props, radioProps = __rest$D(props, ["prefixCls"]);
33856
+ } = props, radioProps = __rest$E(props, ["prefixCls"]);
33750
33857
  const prefixCls = getPrefixCls("radio", customizePrefixCls);
33751
33858
  return /* @__PURE__ */ React.createElement(RadioOptionTypeContextProvider, {
33752
33859
  value: "button"
@@ -34747,7 +34854,7 @@ const useSharedStyle = genStyleHooks(["Input", "Shared"], (token2) => {
34747
34854
  }, initComponentToken$1, {
34748
34855
  resetFont: false
34749
34856
  });
34750
- const useStyle$h = genStyleHooks(["Input", "Component"], (token2) => {
34857
+ const useStyle$i = genStyleHooks(["Input", "Component"], (token2) => {
34751
34858
  const inputToken = merge$1(token2, initInputToken(token2));
34752
34859
  return [
34753
34860
  genGroupStyle(inputToken),
@@ -35509,7 +35616,7 @@ const initPanelComponentToken = (token2) => {
35509
35616
  };
35510
35617
  return filledToken;
35511
35618
  };
35512
- const prepareComponentToken$d = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
35619
+ const prepareComponentToken$e = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
35513
35620
  presetsWidth: 120,
35514
35621
  presetsMaxWidth: 200,
35515
35622
  zIndexPopup: token2.zIndexPopupBase + 50
@@ -35961,7 +36068,7 @@ const genPickerStyle = (token2) => {
35961
36068
  initMoveMotion(token2, "move-down")
35962
36069
  ];
35963
36070
  };
35964
- const useStyle$g = genStyleHooks("DatePicker", (token2) => {
36071
+ const useStyle$h = genStyleHooks("DatePicker", (token2) => {
35965
36072
  const pickerToken = merge$1(initInputToken(token2), initPickerPanelToken(token2), {
35966
36073
  inputPaddingHorizontalBase: token2.calc(token2.paddingSM).sub(1).equal(),
35967
36074
  multipleSelectItemHeight: token2.multipleItemHeight,
@@ -35980,7 +36087,7 @@ const useStyle$g = genStyleHooks("DatePicker", (token2) => {
35980
36087
  focusElCls: `${token2.componentCls}-focused`
35981
36088
  })
35982
36089
  ];
35983
- }, prepareComponentToken$d);
36090
+ }, prepareComponentToken$e);
35984
36091
  var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
35985
36092
  var PlusOutlined = function PlusOutlined2(props, ref) {
35986
36093
  return /* @__PURE__ */ React.createElement(Icon$3, _extends$1({}, props, {
@@ -37063,9 +37170,9 @@ var TabPane$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
37063
37170
  if (process.env.NODE_ENV !== "production") {
37064
37171
  TabPane$1.displayName = "TabPane";
37065
37172
  }
37066
- var _excluded$k = ["renderTabBar"], _excluded2$1 = ["label", "key"];
37173
+ var _excluded$l = ["renderTabBar"], _excluded2$1 = ["label", "key"];
37067
37174
  var TabNavListWrapper = function TabNavListWrapper2(_ref) {
37068
- var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$k);
37175
+ var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$l);
37069
37176
  var _React$useContext = React.useContext(TabContext), tabs = _React$useContext.tabs;
37070
37177
  if (renderTabBar) {
37071
37178
  var tabNavBarProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
@@ -37086,7 +37193,7 @@ var TabNavListWrapper = function TabNavListWrapper2(_ref) {
37086
37193
  if (process.env.NODE_ENV !== "production") {
37087
37194
  TabNavListWrapper.displayName = "TabNavListWrapper";
37088
37195
  }
37089
- var _excluded$j = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
37196
+ var _excluded$k = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
37090
37197
  var TabPanelList = function TabPanelList2(props) {
37091
37198
  var id2 = props.id, activeKey = props.activeKey, animated = props.animated, tabPosition = props.tabPosition, destroyInactiveTabPane = props.destroyInactiveTabPane;
37092
37199
  var _React$useContext = React.useContext(TabContext), prefixCls = _React$useContext.prefixCls, tabs = _React$useContext.tabs;
@@ -37097,7 +37204,7 @@ var TabPanelList = function TabPanelList2(props) {
37097
37204
  }, /* @__PURE__ */ React.createElement("div", {
37098
37205
  className: classNames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty$1({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated))
37099
37206
  }, tabs.map(function(item) {
37100
- var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$j);
37207
+ var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$k);
37101
37208
  var active = key === activeKey;
37102
37209
  return /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
37103
37210
  key,
@@ -37152,10 +37259,10 @@ function useAnimateConfig$1() {
37152
37259
  }
37153
37260
  return mergedAnimated;
37154
37261
  }
37155
- var _excluded$i = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"];
37262
+ var _excluded$j = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"];
37156
37263
  var uuid$1 = 0;
37157
37264
  var Tabs$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
37158
- var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$i);
37265
+ var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$j);
37159
37266
  var tabs = React.useMemo(function() {
37160
37267
  return (items || []).filter(function(item) {
37161
37268
  return item && _typeof(item) === "object" && "key" in item;
@@ -37283,7 +37390,7 @@ function useAnimateConfig(prefixCls, animated = {
37283
37390
  }
37284
37391
  return mergedAnimated;
37285
37392
  }
37286
- var __rest$C = function(s, e3) {
37393
+ var __rest$D = function(s, e3) {
37287
37394
  var t2 = {};
37288
37395
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
37289
37396
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -37317,7 +37424,7 @@ function useLegacyItems(items, children2) {
37317
37424
  } = node2;
37318
37425
  const _a = props || {}, {
37319
37426
  tab: tab2
37320
- } = _a, restProps = __rest$C(_a, ["tab"]);
37427
+ } = _a, restProps = __rest$D(_a, ["tab"]);
37321
37428
  const item = Object.assign(Object.assign({
37322
37429
  key: String(key)
37323
37430
  }, restProps), {
@@ -37329,7 +37436,7 @@ function useLegacyItems(items, children2) {
37329
37436
  });
37330
37437
  return filter$1(childrenItems);
37331
37438
  }
37332
- const genMotionStyle = (token2) => {
37439
+ const genMotionStyle$1 = (token2) => {
37333
37440
  const {
37334
37441
  componentCls,
37335
37442
  motionDurationSlow
@@ -38165,7 +38272,7 @@ const genTabsStyle = (token2) => {
38165
38272
  }
38166
38273
  };
38167
38274
  };
38168
- const prepareComponentToken$c = (token2) => {
38275
+ const prepareComponentToken$d = (token2) => {
38169
38276
  const {
38170
38277
  cardHeight,
38171
38278
  cardHeightSM,
@@ -38210,7 +38317,7 @@ const prepareComponentToken$c = (token2) => {
38210
38317
  cardGutter: token2.marginXXS / 2
38211
38318
  };
38212
38319
  };
38213
- const useStyle$f = genStyleHooks("Tabs", (token2) => {
38320
+ const useStyle$g = genStyleHooks("Tabs", (token2) => {
38214
38321
  const tabsToken = merge$1(token2, {
38215
38322
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
38216
38323
  tabsCardPadding: token2.cardPadding,
@@ -38221,13 +38328,13 @@ const useStyle$f = genStyleHooks("Tabs", (token2) => {
38221
38328
  tabsHorizontalItemMargin: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`,
38222
38329
  tabsHorizontalItemMarginRTL: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`
38223
38330
  });
38224
- return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle(tabsToken)];
38225
- }, prepareComponentToken$c);
38331
+ return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle$1(tabsToken)];
38332
+ }, prepareComponentToken$d);
38226
38333
  const TabPane = () => null;
38227
38334
  if (process.env.NODE_ENV !== "production") {
38228
38335
  TabPane.displayName = "DeprecatedTabPane";
38229
38336
  }
38230
- var __rest$B = function(s, e3) {
38337
+ var __rest$C = function(s, e3) {
38231
38338
  var t2 = {};
38232
38339
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38233
38340
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38258,7 +38365,7 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
38258
38365
  indicator,
38259
38366
  destroyInactiveTabPane,
38260
38367
  destroyOnHidden
38261
- } = props, otherProps = __rest$B(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
38368
+ } = props, otherProps = __rest$C(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
38262
38369
  const {
38263
38370
  prefixCls: customizePrefixCls
38264
38371
  } = otherProps;
@@ -38270,7 +38377,7 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
38270
38377
  } = React.useContext(ConfigContext);
38271
38378
  const prefixCls = getPrefixCls("tabs", customizePrefixCls);
38272
38379
  const rootCls = useCSSVarCls(prefixCls);
38273
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls, rootCls);
38380
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
38274
38381
  const tabsRef = React.useRef(null);
38275
38382
  React.useImperativeHandle(ref, () => ({
38276
38383
  nativeElement: tabsRef.current
@@ -38335,7 +38442,7 @@ Tabs$2.TabPane = TabPane;
38335
38442
  if (process.env.NODE_ENV !== "production") {
38336
38443
  Tabs$2.displayName = "Tabs";
38337
38444
  }
38338
- var __rest$A = function(s, e3) {
38445
+ var __rest$B = function(s, e3) {
38339
38446
  var t2 = {};
38340
38447
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38341
38448
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38348,7 +38455,7 @@ const Grid$1 = (_a) => {
38348
38455
  prefixCls,
38349
38456
  className,
38350
38457
  hoverable = true
38351
- } = _a, props = __rest$A(_a, ["prefixCls", "className", "hoverable"]);
38458
+ } = _a, props = __rest$B(_a, ["prefixCls", "className", "hoverable"]);
38352
38459
  const {
38353
38460
  getPrefixCls
38354
38461
  } = React.useContext(ConfigContext);
@@ -38666,7 +38773,7 @@ const genCardSizeStyle = (token2) => {
38666
38773
  }
38667
38774
  };
38668
38775
  };
38669
- const prepareComponentToken$b = (token2) => {
38776
+ const prepareComponentToken$c = (token2) => {
38670
38777
  var _a, _b;
38671
38778
  return {
38672
38779
  headerBg: "transparent",
@@ -38685,7 +38792,7 @@ const prepareComponentToken$b = (token2) => {
38685
38792
  headerPadding: (_b = token2.headerPadding) !== null && _b !== void 0 ? _b : token2.paddingLG
38686
38793
  };
38687
38794
  };
38688
- const useStyle$e = genStyleHooks("Card", (token2) => {
38795
+ const useStyle$f = genStyleHooks("Card", (token2) => {
38689
38796
  const cardToken = merge$1(token2, {
38690
38797
  cardShadow: token2.boxShadowCard,
38691
38798
  cardHeadPadding: token2.padding,
@@ -38698,8 +38805,8 @@ const useStyle$e = genStyleHooks("Card", (token2) => {
38698
38805
  // Size
38699
38806
  genCardSizeStyle(cardToken)
38700
38807
  ];
38701
- }, prepareComponentToken$b);
38702
- var __rest$z = function(s, e3) {
38808
+ }, prepareComponentToken$c);
38809
+ var __rest$A = function(s, e3) {
38703
38810
  var t2 = {};
38704
38811
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38705
38812
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38752,7 +38859,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38752
38859
  tabProps = {},
38753
38860
  classNames: customClassNames,
38754
38861
  styles: customStyles
38755
- } = props, others = __rest$z(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
38862
+ } = props, others = __rest$A(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
38756
38863
  const {
38757
38864
  getPrefixCls,
38758
38865
  direction,
@@ -38787,7 +38894,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38787
38894
  return containGrid;
38788
38895
  }, [children2]);
38789
38896
  const prefixCls = getPrefixCls("card", customizePrefixCls);
38790
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls);
38897
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls);
38791
38898
  const loadingBlock = /* @__PURE__ */ React.createElement(Skeleton$1, {
38792
38899
  loading: true,
38793
38900
  active: true,
@@ -38812,7 +38919,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38812
38919
  items: tabList.map((_a) => {
38813
38920
  var {
38814
38921
  tab: tab2
38815
- } = _a, item = __rest$z(_a, ["tab"]);
38922
+ } = _a, item = __rest$A(_a, ["tab"]);
38816
38923
  return Object.assign({
38817
38924
  label: tab2
38818
38925
  }, item);
@@ -38872,7 +38979,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38872
38979
  style: mergedStyle
38873
38980
  }), head, coverDom, body, actionDom));
38874
38981
  });
38875
- var __rest$y = function(s, e3) {
38982
+ var __rest$z = function(s, e3) {
38876
38983
  var t2 = {};
38877
38984
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38878
38985
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38887,7 +38994,7 @@ const Meta = (props) => {
38887
38994
  avatar,
38888
38995
  title,
38889
38996
  description
38890
- } = props, others = __rest$y(props, ["prefixCls", "className", "avatar", "title", "description"]);
38997
+ } = props, others = __rest$z(props, ["prefixCls", "className", "avatar", "title", "description"]);
38891
38998
  const {
38892
38999
  getPrefixCls
38893
39000
  } = React.useContext(ConfigContext);
@@ -38975,7 +39082,7 @@ function debounce(delay, callback, options) {
38975
39082
  function getEntity(keyEntities, key) {
38976
39083
  return keyEntities[key];
38977
39084
  }
38978
- var _excluded$h = ["children"];
39085
+ var _excluded$i = ["children"];
38979
39086
  function getPosition(level, index2) {
38980
39087
  return "".concat(level, "-").concat(index2);
38981
39088
  }
@@ -39023,7 +39130,7 @@ function convertTreeToData(rootNodes) {
39023
39130
  return null;
39024
39131
  }
39025
39132
  var key = treeNode.key;
39026
- var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$h);
39133
+ var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$i);
39027
39134
  var dataNode = _objectSpread2({
39028
39135
  key
39029
39136
  }, rest);
@@ -39611,11 +39718,11 @@ function getStyle$1(prefixCls, token2) {
39611
39718
  });
39612
39719
  return genCheckboxStyle(checkboxToken);
39613
39720
  }
39614
- const useStyle$d = genStyleHooks("Checkbox", (token2, {
39721
+ const useStyle$e = genStyleHooks("Checkbox", (token2, {
39615
39722
  prefixCls
39616
39723
  }) => [getStyle$1(prefixCls, token2)]);
39617
39724
  const GroupContext = /* @__PURE__ */ React__default.createContext(null);
39618
- var __rest$x = function(s, e3) {
39725
+ var __rest$y = function(s, e3) {
39619
39726
  var t2 = {};
39620
39727
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39621
39728
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39636,7 +39743,7 @@ const InternalCheckbox = (props, ref) => {
39636
39743
  onMouseLeave,
39637
39744
  skipGroup = false,
39638
39745
  disabled: disabled2
39639
- } = props, restProps = __rest$x(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
39746
+ } = props, restProps = __rest$y(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
39640
39747
  const {
39641
39748
  getPrefixCls,
39642
39749
  direction,
@@ -39677,7 +39784,7 @@ const InternalCheckbox = (props, ref) => {
39677
39784
  }, [indeterminate]);
39678
39785
  const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
39679
39786
  const rootCls = useCSSVarCls(prefixCls);
39680
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls, rootCls);
39787
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
39681
39788
  const checkboxProps = Object.assign({}, restProps);
39682
39789
  if (checkboxGroup && !skipGroup) {
39683
39790
  checkboxProps.onChange = (...args) => {
@@ -39727,7 +39834,7 @@ const Checkbox$2 = /* @__PURE__ */ React.forwardRef(InternalCheckbox);
39727
39834
  if (process.env.NODE_ENV !== "production") {
39728
39835
  Checkbox$2.displayName = "Checkbox";
39729
39836
  }
39730
- var __rest$w = function(s, e3) {
39837
+ var __rest$x = function(s, e3) {
39731
39838
  var t2 = {};
39732
39839
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39733
39840
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39745,7 +39852,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
39745
39852
  rootClassName,
39746
39853
  style: style2,
39747
39854
  onChange
39748
- } = props, restProps = __rest$w(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
39855
+ } = props, restProps = __rest$x(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
39749
39856
  const {
39750
39857
  getPrefixCls,
39751
39858
  direction
@@ -39792,7 +39899,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
39792
39899
  const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
39793
39900
  const groupPrefixCls = `${prefixCls}-group`;
39794
39901
  const rootCls = useCSSVarCls(prefixCls);
39795
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls, rootCls);
39902
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
39796
39903
  const domProps = omit(restProps, ["value", "disabled"]);
39797
39904
  const childrenNode = options.length ? memoizedOptions.map((option) => /* @__PURE__ */ React.createElement(Checkbox$2, {
39798
39905
  prefixCls,
@@ -39835,7 +39942,7 @@ if (process.env.NODE_ENV !== "production") {
39835
39942
  Checkbox$1.displayName = "Checkbox";
39836
39943
  }
39837
39944
  const RowContext = /* @__PURE__ */ createContext$1({});
39838
- var __rest$v = function(s, e3) {
39945
+ var __rest$w = function(s, e3) {
39839
39946
  var t2 = {};
39840
39947
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39841
39948
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39873,7 +39980,7 @@ const Col = /* @__PURE__ */ React.forwardRef((props, ref) => {
39873
39980
  children: children2,
39874
39981
  flex,
39875
39982
  style: style2
39876
- } = props, others = __rest$v(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
39983
+ } = props, others = __rest$w(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
39877
39984
  const prefixCls = getPrefixCls("col", customizePrefixCls);
39878
39985
  const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
39879
39986
  const sizeStyle = {};
@@ -39954,7 +40061,7 @@ function useGutter(gutter, screens) {
39954
40061
  });
39955
40062
  return results;
39956
40063
  }
39957
- var __rest$u = function(s, e3) {
40064
+ var __rest$v = function(s, e3) {
39958
40065
  var t2 = {};
39959
40066
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39960
40067
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39998,7 +40105,7 @@ const Row$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
39998
40105
  children: children2,
39999
40106
  gutter = 0,
40000
40107
  wrap: wrap2
40001
- } = props, others = __rest$u(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
40108
+ } = props, others = __rest$v(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
40002
40109
  const {
40003
40110
  getPrefixCls,
40004
40111
  direction
@@ -40180,7 +40287,7 @@ function MotionThumb(props) {
40180
40287
  return /* @__PURE__ */ React.createElement("div", motionProps);
40181
40288
  });
40182
40289
  }
40183
- var _excluded$g = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
40290
+ var _excluded$h = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
40184
40291
  function getValidTitle(option) {
40185
40292
  if (typeof option.title !== "undefined") {
40186
40293
  return option.title;
@@ -40235,7 +40342,7 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
40235
40342
  };
40236
40343
  var Segmented$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
40237
40344
  var _segmentedOptions$, _classNames2;
40238
- var _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, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, 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$1(props, _excluded$g);
40345
+ var _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, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, 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$1(props, _excluded$h);
40239
40346
  var containerRef = React.useRef(null);
40240
40347
  var mergedRef = React.useMemo(function() {
40241
40348
  return composeRef(containerRef, ref);
@@ -40520,7 +40627,7 @@ const genSegmentedStyle = (token2) => {
40520
40627
  })
40521
40628
  };
40522
40629
  };
40523
- const prepareComponentToken$a = (token2) => {
40630
+ const prepareComponentToken$b = (token2) => {
40524
40631
  const {
40525
40632
  colorTextLabel,
40526
40633
  colorText,
@@ -40541,7 +40648,7 @@ const prepareComponentToken$a = (token2) => {
40541
40648
  itemSelectedColor: colorText
40542
40649
  };
40543
40650
  };
40544
- const useStyle$c = genStyleHooks("Segmented", (token2) => {
40651
+ const useStyle$d = genStyleHooks("Segmented", (token2) => {
40545
40652
  const {
40546
40653
  lineWidth,
40547
40654
  calc
@@ -40551,8 +40658,8 @@ const useStyle$c = genStyleHooks("Segmented", (token2) => {
40551
40658
  segmentedPaddingHorizontalSM: calc(token2.controlPaddingHorizontalSM).sub(lineWidth).equal()
40552
40659
  });
40553
40660
  return genSegmentedStyle(segmentedToken);
40554
- }, prepareComponentToken$a);
40555
- var __rest$t = function(s, e3) {
40661
+ }, prepareComponentToken$b);
40662
+ var __rest$u = function(s, e3) {
40556
40663
  var t2 = {};
40557
40664
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
40558
40665
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -40576,7 +40683,7 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
40576
40683
  vertical,
40577
40684
  shape = "default",
40578
40685
  name: name2 = defaultName
40579
- } = props, restProps = __rest$t(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
40686
+ } = props, restProps = __rest$u(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
40580
40687
  const {
40581
40688
  getPrefixCls,
40582
40689
  direction,
@@ -40584,14 +40691,14 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
40584
40691
  style: contextStyle
40585
40692
  } = useComponentConfig("segmented");
40586
40693
  const prefixCls = getPrefixCls("segmented", customizePrefixCls);
40587
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
40694
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls);
40588
40695
  const mergedSize = useSize(customSize);
40589
40696
  const extendedOptions = React.useMemo(() => options.map((option) => {
40590
40697
  if (isSegmentedLabeledOptionWithIcon(option)) {
40591
40698
  const {
40592
40699
  icon,
40593
40700
  label
40594
- } = option, restOption = __rest$t(option, ["icon", "label"]);
40701
+ } = option, restOption = __rest$u(option, ["icon", "label"]);
40595
40702
  return Object.assign(Object.assign({}, restOption), {
40596
40703
  label: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
40597
40704
  className: `${prefixCls}-item-icon`
@@ -40769,7 +40876,7 @@ var BaseInput = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
40769
40876
  hidden
40770
40877
  });
40771
40878
  });
40772
- var _excluded$f = ["show"];
40879
+ var _excluded$g = ["show"];
40773
40880
  function useCount(count, showCount) {
40774
40881
  return React.useMemo(function() {
40775
40882
  var mergedConfig = {};
@@ -40777,7 +40884,7 @@ function useCount(count, showCount) {
40777
40884
  mergedConfig.show = _typeof(showCount) === "object" && showCount.formatter ? showCount.formatter : !!showCount;
40778
40885
  }
40779
40886
  mergedConfig = _objectSpread2(_objectSpread2({}, mergedConfig), count);
40780
- var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$f);
40887
+ var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$g);
40781
40888
  return _objectSpread2(_objectSpread2({}, rest), {}, {
40782
40889
  show: !!show,
40783
40890
  showFormatter: typeof show === "function" ? show : void 0,
@@ -40787,9 +40894,9 @@ function useCount(count, showCount) {
40787
40894
  });
40788
40895
  }, [count, showCount]);
40789
40896
  }
40790
- var _excluded$e = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
40897
+ var _excluded$f = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
40791
40898
  var Input$4 = /* @__PURE__ */ forwardRef(function(props, ref) {
40792
- var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$e);
40899
+ var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$f);
40793
40900
  var _useState = useState(false), _useState2 = _slicedToArray(_useState, 2), focused = _useState2[0], setFocused = _useState2[1];
40794
40901
  var compositionRef = useRef(false);
40795
40902
  var keyLockRef = useRef(false);
@@ -41011,7 +41118,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
41011
41118
  function hasPrefixSuffix(props) {
41012
41119
  return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
41013
41120
  }
41014
- var __rest$s = function(s, e3) {
41121
+ var __rest$t = function(s, e3) {
41015
41122
  var t2 = {};
41016
41123
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41017
41124
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41039,7 +41146,7 @@ const Input$3 = /* @__PURE__ */ forwardRef((props, ref) => {
41039
41146
  onChange,
41040
41147
  classNames: classNames$1,
41041
41148
  variant: customVariant
41042
- } = props, rest = __rest$s(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
41149
+ } = props, rest = __rest$t(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
41043
41150
  if (process.env.NODE_ENV !== "production") {
41044
41151
  const {
41045
41152
  deprecated
@@ -41060,7 +41167,7 @@ const Input$3 = /* @__PURE__ */ forwardRef((props, ref) => {
41060
41167
  const inputRef = useRef(null);
41061
41168
  const rootCls = useCSSVarCls(prefixCls);
41062
41169
  const [wrapSharedCSSVar, hashId, cssVarCls] = useSharedStyle(prefixCls, rootClassName);
41063
- const [wrapCSSVar] = useStyle$h(prefixCls, rootCls);
41170
+ const [wrapCSSVar] = useStyle$i(prefixCls, rootCls);
41064
41171
  const {
41065
41172
  compactSize,
41066
41173
  compactItemClassnames
@@ -41346,7 +41453,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
41346
41453
  return [filledClassNames, filledStyles];
41347
41454
  }, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
41348
41455
  };
41349
- var __rest$r = function(s, e3) {
41456
+ var __rest$s = function(s, e3) {
41350
41457
  var t2 = {};
41351
41458
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41352
41459
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41377,7 +41484,7 @@ const generateRangePicker = (generateConfig2) => {
41377
41484
  picker,
41378
41485
  styles,
41379
41486
  classNames: classNames$1
41380
- } = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
41487
+ } = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
41381
41488
  const pickerType = picker === TIME ? "timePicker" : "datePicker";
41382
41489
  const innerRef = React.useRef(null);
41383
41490
  const {
@@ -41394,7 +41501,7 @@ const generateRangePicker = (generateConfig2) => {
41394
41501
  const rootPrefixCls = getPrefixCls();
41395
41502
  const [variant, enableVariantCls] = useVariant("rangePicker", customVariant, bordered);
41396
41503
  const rootCls = useCSSVarCls(prefixCls);
41397
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
41504
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
41398
41505
  if (process.env.NODE_ENV !== "production") {
41399
41506
  const warning3 = devUseWarning("DatePicker.RangePicker");
41400
41507
  const deprecatedProps = {
@@ -41482,7 +41589,7 @@ const generateRangePicker = (generateConfig2) => {
41482
41589
  }
41483
41590
  return RangePicker2;
41484
41591
  };
41485
- var __rest$q = function(s, e3) {
41592
+ var __rest$r = function(s, e3) {
41486
41593
  var t2 = {};
41487
41594
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41488
41595
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41515,7 +41622,7 @@ const generatePicker$1 = (generateConfig2) => {
41515
41622
  onCalendarChange,
41516
41623
  styles,
41517
41624
  classNames: classNames$1
41518
- } = props, restProps = __rest$q(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
41625
+ } = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
41519
41626
  const {
41520
41627
  getPrefixCls,
41521
41628
  direction,
@@ -41531,7 +41638,7 @@ const generatePicker$1 = (generateConfig2) => {
41531
41638
  const innerRef = React.useRef(null);
41532
41639
  const [variant, enableVariantCls] = useVariant("datePicker", customVariant, bordered);
41533
41640
  const rootCls = useCSSVarCls(prefixCls);
41534
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
41641
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
41535
41642
  useImperativeHandle(ref, () => innerRef.current);
41536
41643
  const additionalProps = {
41537
41644
  showToday: true
@@ -41672,11 +41779,783 @@ const generatePicker = (generateConfig2) => {
41672
41779
  return MergedDatePicker;
41673
41780
  };
41674
41781
  const DatePicker$1 = generatePicker(generateConfig);
41675
- const PurePanel$1 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
41676
- DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
41782
+ const PurePanel$2 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
41783
+ DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
41677
41784
  const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
41678
41785
  DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
41679
41786
  DatePicker$1.generatePicker = generatePicker;
41787
+ var DrawerContext = /* @__PURE__ */ React.createContext(null);
41788
+ var RefContext = /* @__PURE__ */ React.createContext({});
41789
+ var _excluded$e = ["prefixCls", "className", "containerRef"];
41790
+ var DrawerPanel$1 = function DrawerPanel(props) {
41791
+ var prefixCls = props.prefixCls, className = props.className, containerRef = props.containerRef, restProps = _objectWithoutProperties$1(props, _excluded$e);
41792
+ var _React$useContext = React.useContext(RefContext), panelRef = _React$useContext.panel;
41793
+ var mergedRef = useComposeRef(panelRef, containerRef);
41794
+ return /* @__PURE__ */ React.createElement("div", _extends$1({
41795
+ className: classNames("".concat(prefixCls, "-content"), className),
41796
+ role: "dialog",
41797
+ ref: mergedRef
41798
+ }, pickAttrs(props, {
41799
+ aria: true
41800
+ }), {
41801
+ "aria-modal": "true"
41802
+ }, restProps));
41803
+ };
41804
+ if (process.env.NODE_ENV !== "production") {
41805
+ DrawerPanel$1.displayName = "DrawerPanel";
41806
+ }
41807
+ function parseWidthHeight(value2) {
41808
+ if (typeof value2 === "string" && String(Number(value2)) === value2) {
41809
+ warningOnce(false, "Invalid value type of `width` or `height` which should be number type instead.");
41810
+ return Number(value2);
41811
+ }
41812
+ return value2;
41813
+ }
41814
+ function warnCheck(props) {
41815
+ warningOnce(!("wrapperClassName" in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
41816
+ warningOnce(canUseDom() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
41817
+ }
41818
+ var sentinelStyle = {
41819
+ width: 0,
41820
+ height: 0,
41821
+ overflow: "hidden",
41822
+ outline: "none",
41823
+ position: "absolute"
41824
+ };
41825
+ function DrawerPopup(props, ref) {
41826
+ var _ref, _pushConfig$distance, _pushConfig;
41827
+ var prefixCls = props.prefixCls, open = props.open, placement = props.placement, inline2 = props.inline, push2 = props.push, forceRender = props.forceRender, autoFocus = props.autoFocus, keyboard = props.keyboard, drawerClassNames = props.classNames, rootClassName = props.rootClassName, rootStyle = props.rootStyle, zIndex = props.zIndex, className = props.className, id2 = props.id, style2 = props.style, motion2 = props.motion, width = props.width, height = props.height, children2 = props.children, mask = props.mask, maskClosable = props.maskClosable, maskMotion = props.maskMotion, maskClassName = props.maskClassName, maskStyle = props.maskStyle, afterOpenChange = props.afterOpenChange, onClose = props.onClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, styles = props.styles, drawerRender = props.drawerRender;
41828
+ var panelRef = React.useRef();
41829
+ var sentinelStartRef = React.useRef();
41830
+ var sentinelEndRef = React.useRef();
41831
+ React.useImperativeHandle(ref, function() {
41832
+ return panelRef.current;
41833
+ });
41834
+ var onPanelKeyDown = function onPanelKeyDown2(event2) {
41835
+ var keyCode = event2.keyCode, shiftKey = event2.shiftKey;
41836
+ switch (keyCode) {
41837
+ // Tab active
41838
+ case KeyCode.TAB: {
41839
+ if (keyCode === KeyCode.TAB) {
41840
+ if (!shiftKey && document.activeElement === sentinelEndRef.current) {
41841
+ var _sentinelStartRef$cur;
41842
+ (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
41843
+ preventScroll: true
41844
+ });
41845
+ } else if (shiftKey && document.activeElement === sentinelStartRef.current) {
41846
+ var _sentinelEndRef$curre;
41847
+ (_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
41848
+ preventScroll: true
41849
+ });
41850
+ }
41851
+ }
41852
+ break;
41853
+ }
41854
+ // Close
41855
+ case KeyCode.ESC: {
41856
+ if (onClose && keyboard) {
41857
+ event2.stopPropagation();
41858
+ onClose(event2);
41859
+ }
41860
+ break;
41861
+ }
41862
+ }
41863
+ };
41864
+ React.useEffect(function() {
41865
+ if (open && autoFocus) {
41866
+ var _panelRef$current;
41867
+ (_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
41868
+ preventScroll: true
41869
+ });
41870
+ }
41871
+ }, [open]);
41872
+ var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), pushed = _React$useState2[0], setPushed = _React$useState2[1];
41873
+ var parentContext = React.useContext(DrawerContext);
41874
+ var pushConfig;
41875
+ if (typeof push2 === "boolean") {
41876
+ pushConfig = push2 ? {} : {
41877
+ distance: 0
41878
+ };
41879
+ } else {
41880
+ pushConfig = push2 || {};
41881
+ }
41882
+ var pushDistance = (_ref = (_pushConfig$distance = (_pushConfig = pushConfig) === null || _pushConfig === void 0 ? void 0 : _pushConfig.distance) !== null && _pushConfig$distance !== void 0 ? _pushConfig$distance : parentContext === null || parentContext === void 0 ? void 0 : parentContext.pushDistance) !== null && _ref !== void 0 ? _ref : 180;
41883
+ var mergedContext = React.useMemo(function() {
41884
+ return {
41885
+ pushDistance,
41886
+ push: function push3() {
41887
+ setPushed(true);
41888
+ },
41889
+ pull: function pull() {
41890
+ setPushed(false);
41891
+ }
41892
+ };
41893
+ }, [pushDistance]);
41894
+ React.useEffect(function() {
41895
+ if (open) {
41896
+ var _parentContext$push;
41897
+ parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
41898
+ } else {
41899
+ var _parentContext$pull;
41900
+ parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
41901
+ }
41902
+ }, [open]);
41903
+ React.useEffect(function() {
41904
+ return function() {
41905
+ var _parentContext$pull2;
41906
+ parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
41907
+ };
41908
+ }, []);
41909
+ var maskNode = /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
41910
+ key: "mask"
41911
+ }, maskMotion, {
41912
+ visible: mask && open
41913
+ }), function(_ref2, maskRef) {
41914
+ var motionMaskClassName = _ref2.className, motionMaskStyle = _ref2.style;
41915
+ return /* @__PURE__ */ React.createElement("div", {
41916
+ className: classNames("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
41917
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
41918
+ onClick: maskClosable && open ? onClose : void 0,
41919
+ ref: maskRef
41920
+ });
41921
+ });
41922
+ var motionProps = typeof motion2 === "function" ? motion2(placement) : motion2;
41923
+ var wrapperStyle = {};
41924
+ if (pushed && pushDistance) {
41925
+ switch (placement) {
41926
+ case "top":
41927
+ wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
41928
+ break;
41929
+ case "bottom":
41930
+ wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
41931
+ break;
41932
+ case "left":
41933
+ wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
41934
+ break;
41935
+ default:
41936
+ wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
41937
+ break;
41938
+ }
41939
+ }
41940
+ if (placement === "left" || placement === "right") {
41941
+ wrapperStyle.width = parseWidthHeight(width);
41942
+ } else {
41943
+ wrapperStyle.height = parseWidthHeight(height);
41944
+ }
41945
+ var eventHandlers = {
41946
+ onMouseEnter,
41947
+ onMouseOver,
41948
+ onMouseLeave,
41949
+ onClick,
41950
+ onKeyDown: onKeyDown2,
41951
+ onKeyUp
41952
+ };
41953
+ var panelNode = /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
41954
+ key: "panel"
41955
+ }, motionProps, {
41956
+ visible: open,
41957
+ forceRender,
41958
+ onVisibleChanged: function onVisibleChanged(nextVisible) {
41959
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
41960
+ },
41961
+ removeOnLeave: false,
41962
+ leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
41963
+ }), function(_ref3, motionRef) {
41964
+ var motionClassName = _ref3.className, motionStyle = _ref3.style;
41965
+ var content2 = /* @__PURE__ */ React.createElement(DrawerPanel$1, _extends$1({
41966
+ id: id2,
41967
+ containerRef: motionRef,
41968
+ prefixCls,
41969
+ className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
41970
+ style: _objectSpread2(_objectSpread2({}, style2), styles === null || styles === void 0 ? void 0 : styles.content)
41971
+ }, pickAttrs(props, {
41972
+ aria: true
41973
+ }), eventHandlers), children2);
41974
+ return /* @__PURE__ */ React.createElement("div", _extends$1({
41975
+ className: classNames("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
41976
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
41977
+ }, pickAttrs(props, {
41978
+ data: true
41979
+ })), drawerRender ? drawerRender(content2) : content2);
41980
+ });
41981
+ var containerStyle = _objectSpread2({}, rootStyle);
41982
+ if (zIndex) {
41983
+ containerStyle.zIndex = zIndex;
41984
+ }
41985
+ return /* @__PURE__ */ React.createElement(DrawerContext.Provider, {
41986
+ value: mergedContext
41987
+ }, /* @__PURE__ */ React.createElement("div", {
41988
+ className: classNames(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline2)),
41989
+ style: containerStyle,
41990
+ tabIndex: -1,
41991
+ ref: panelRef,
41992
+ onKeyDown: onPanelKeyDown
41993
+ }, maskNode, /* @__PURE__ */ React.createElement("div", {
41994
+ tabIndex: 0,
41995
+ ref: sentinelStartRef,
41996
+ style: sentinelStyle,
41997
+ "aria-hidden": "true",
41998
+ "data-sentinel": "start"
41999
+ }), panelNode, /* @__PURE__ */ React.createElement("div", {
42000
+ tabIndex: 0,
42001
+ ref: sentinelEndRef,
42002
+ style: sentinelStyle,
42003
+ "aria-hidden": "true",
42004
+ "data-sentinel": "end"
42005
+ })));
42006
+ }
42007
+ var RefDrawerPopup = /* @__PURE__ */ React.forwardRef(DrawerPopup);
42008
+ if (process.env.NODE_ENV !== "production") {
42009
+ RefDrawerPopup.displayName = "DrawerPopup";
42010
+ }
42011
+ var Drawer$1 = function Drawer(props) {
42012
+ var _props$open = props.open, open = _props$open === void 0 ? false : _props$open, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-drawer" : _props$prefixCls, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, _props$keyboard = props.keyboard, keyboard = _props$keyboard === void 0 ? true : _props$keyboard, _props$width = props.width, width = _props$width === void 0 ? 378 : _props$width, _props$mask = props.mask, mask = _props$mask === void 0 ? true : _props$mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getContainer2 = props.getContainer, forceRender = props.forceRender, afterOpenChange = props.afterOpenChange, destroyOnClose = props.destroyOnClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, panelRef = props.panelRef;
42013
+ var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
42014
+ if (process.env.NODE_ENV !== "production") {
42015
+ warnCheck(props);
42016
+ }
42017
+ var _React$useState3 = React.useState(false), _React$useState4 = _slicedToArray(_React$useState3, 2), mounted = _React$useState4[0], setMounted = _React$useState4[1];
42018
+ useLayoutEffect$1(function() {
42019
+ setMounted(true);
42020
+ }, []);
42021
+ var mergedOpen = mounted ? open : false;
42022
+ var popupRef = React.useRef();
42023
+ var lastActiveRef = React.useRef();
42024
+ useLayoutEffect$1(function() {
42025
+ if (mergedOpen) {
42026
+ lastActiveRef.current = document.activeElement;
42027
+ }
42028
+ }, [mergedOpen]);
42029
+ var internalAfterOpenChange = function internalAfterOpenChange2(nextVisible) {
42030
+ var _popupRef$current;
42031
+ setAnimatedVisible(nextVisible);
42032
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
42033
+ if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
42034
+ var _lastActiveRef$curren;
42035
+ (_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
42036
+ preventScroll: true
42037
+ });
42038
+ }
42039
+ };
42040
+ var refContext = React.useMemo(function() {
42041
+ return {
42042
+ panel: panelRef
42043
+ };
42044
+ }, [panelRef]);
42045
+ if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
42046
+ return null;
42047
+ }
42048
+ var eventHandlers = {
42049
+ onMouseEnter,
42050
+ onMouseOver,
42051
+ onMouseLeave,
42052
+ onClick,
42053
+ onKeyDown: onKeyDown2,
42054
+ onKeyUp
42055
+ };
42056
+ var drawerPopupProps = _objectSpread2(_objectSpread2({}, props), {}, {
42057
+ open: mergedOpen,
42058
+ prefixCls,
42059
+ placement,
42060
+ autoFocus,
42061
+ keyboard,
42062
+ width,
42063
+ mask,
42064
+ maskClosable,
42065
+ inline: getContainer2 === false,
42066
+ afterOpenChange: internalAfterOpenChange,
42067
+ ref: popupRef
42068
+ }, eventHandlers);
42069
+ return /* @__PURE__ */ React.createElement(RefContext.Provider, {
42070
+ value: refContext
42071
+ }, /* @__PURE__ */ React.createElement(Portal, {
42072
+ open: mergedOpen || forceRender || animatedVisible,
42073
+ autoDestroy: false,
42074
+ getContainer: getContainer2,
42075
+ autoLock: mask && (mergedOpen || animatedVisible)
42076
+ }, /* @__PURE__ */ React.createElement(RefDrawerPopup, drawerPopupProps)));
42077
+ };
42078
+ if (process.env.NODE_ENV !== "production") {
42079
+ Drawer$1.displayName = "Drawer";
42080
+ }
42081
+ const DrawerPanel2 = (props) => {
42082
+ var _a, _b;
42083
+ const {
42084
+ prefixCls,
42085
+ title,
42086
+ footer: footer2,
42087
+ extra,
42088
+ loading,
42089
+ onClose,
42090
+ headerStyle,
42091
+ bodyStyle,
42092
+ footerStyle,
42093
+ children: children2,
42094
+ classNames: drawerClassNames,
42095
+ styles: drawerStyles
42096
+ } = props;
42097
+ const drawerContext = useComponentConfig("drawer");
42098
+ const customCloseIconRender = React.useCallback((icon) => /* @__PURE__ */ React.createElement("button", {
42099
+ type: "button",
42100
+ onClick: onClose,
42101
+ className: `${prefixCls}-close`
42102
+ }, icon), [onClose]);
42103
+ const [mergedClosable, mergedCloseIcon] = useClosable(pickClosable(props), pickClosable(drawerContext), {
42104
+ closable: true,
42105
+ closeIconRender: customCloseIconRender
42106
+ });
42107
+ const headerNode = React.useMemo(() => {
42108
+ var _a2, _b2;
42109
+ if (!title && !mergedClosable) {
42110
+ return null;
42111
+ }
42112
+ return /* @__PURE__ */ React.createElement("div", {
42113
+ style: Object.assign(Object.assign(Object.assign({}, (_a2 = drawerContext.styles) === null || _a2 === void 0 ? void 0 : _a2.header), headerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.header),
42114
+ className: classNames(`${prefixCls}-header`, {
42115
+ [`${prefixCls}-header-close-only`]: mergedClosable && !title && !extra
42116
+ }, (_b2 = drawerContext.classNames) === null || _b2 === void 0 ? void 0 : _b2.header, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.header)
42117
+ }, /* @__PURE__ */ React.createElement("div", {
42118
+ className: `${prefixCls}-header-title`
42119
+ }, mergedCloseIcon, title && /* @__PURE__ */ React.createElement("div", {
42120
+ className: `${prefixCls}-title`
42121
+ }, title)), extra && /* @__PURE__ */ React.createElement("div", {
42122
+ className: `${prefixCls}-extra`
42123
+ }, extra));
42124
+ }, [mergedClosable, mergedCloseIcon, extra, headerStyle, prefixCls, title]);
42125
+ const footerNode = React.useMemo(() => {
42126
+ var _a2, _b2;
42127
+ if (!footer2) {
42128
+ return null;
42129
+ }
42130
+ const footerClassName = `${prefixCls}-footer`;
42131
+ return /* @__PURE__ */ React.createElement("div", {
42132
+ className: classNames(footerClassName, (_a2 = drawerContext.classNames) === null || _a2 === void 0 ? void 0 : _a2.footer, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.footer),
42133
+ style: Object.assign(Object.assign(Object.assign({}, (_b2 = drawerContext.styles) === null || _b2 === void 0 ? void 0 : _b2.footer), footerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.footer)
42134
+ }, footer2);
42135
+ }, [footer2, footerStyle, prefixCls]);
42136
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, headerNode, /* @__PURE__ */ React.createElement("div", {
42137
+ className: classNames(`${prefixCls}-body`, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.body, (_a = drawerContext.classNames) === null || _a === void 0 ? void 0 : _a.body),
42138
+ style: Object.assign(Object.assign(Object.assign({}, (_b = drawerContext.styles) === null || _b === void 0 ? void 0 : _b.body), bodyStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.body)
42139
+ }, loading ? /* @__PURE__ */ React.createElement(Skeleton$1, {
42140
+ active: true,
42141
+ title: false,
42142
+ paragraph: {
42143
+ rows: 5
42144
+ },
42145
+ className: `${prefixCls}-body-skeleton`
42146
+ }) : children2), footerNode);
42147
+ };
42148
+ const getMoveTranslate = (direction) => {
42149
+ const value2 = "100%";
42150
+ return {
42151
+ left: `translateX(-${value2})`,
42152
+ right: `translateX(${value2})`,
42153
+ top: `translateY(-${value2})`,
42154
+ bottom: `translateY(${value2})`
42155
+ }[direction];
42156
+ };
42157
+ const getEnterLeaveStyle = (startStyle, endStyle) => ({
42158
+ "&-enter, &-appear": Object.assign(Object.assign({}, startStyle), {
42159
+ "&-active": endStyle
42160
+ }),
42161
+ "&-leave": Object.assign(Object.assign({}, endStyle), {
42162
+ "&-active": startStyle
42163
+ })
42164
+ });
42165
+ const getFadeStyle = (from2, duration) => Object.assign({
42166
+ "&-enter, &-appear, &-leave": {
42167
+ "&-start": {
42168
+ transition: "none"
42169
+ },
42170
+ "&-active": {
42171
+ transition: `all ${duration}`
42172
+ }
42173
+ }
42174
+ }, getEnterLeaveStyle({
42175
+ opacity: from2
42176
+ }, {
42177
+ opacity: 1
42178
+ }));
42179
+ const getPanelMotionStyles = (direction, duration) => [getFadeStyle(0.7, duration), getEnterLeaveStyle({
42180
+ transform: getMoveTranslate(direction)
42181
+ }, {
42182
+ transform: "none"
42183
+ })];
42184
+ const genMotionStyle = (token2) => {
42185
+ const {
42186
+ componentCls,
42187
+ motionDurationSlow
42188
+ } = token2;
42189
+ return {
42190
+ [componentCls]: {
42191
+ // ======================== Mask ========================
42192
+ [`${componentCls}-mask-motion`]: getFadeStyle(0, motionDurationSlow),
42193
+ // ======================= Panel ========================
42194
+ [`${componentCls}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((obj, direction) => Object.assign(Object.assign({}, obj), {
42195
+ [`&-${direction}`]: getPanelMotionStyles(direction, motionDurationSlow)
42196
+ }), {})
42197
+ }
42198
+ };
42199
+ };
42200
+ const genDrawerStyle = (token2) => {
42201
+ const {
42202
+ borderRadiusSM,
42203
+ componentCls,
42204
+ zIndexPopup,
42205
+ colorBgMask,
42206
+ colorBgElevated,
42207
+ motionDurationSlow,
42208
+ motionDurationMid,
42209
+ paddingXS,
42210
+ padding,
42211
+ paddingLG,
42212
+ fontSizeLG,
42213
+ lineHeightLG,
42214
+ lineWidth,
42215
+ lineType,
42216
+ colorSplit,
42217
+ marginXS,
42218
+ colorIcon,
42219
+ colorIconHover,
42220
+ colorBgTextHover,
42221
+ colorBgTextActive,
42222
+ colorText,
42223
+ fontWeightStrong,
42224
+ footerPaddingBlock,
42225
+ footerPaddingInline,
42226
+ calc
42227
+ } = token2;
42228
+ const wrapperCls = `${componentCls}-content-wrapper`;
42229
+ return {
42230
+ [componentCls]: {
42231
+ position: "fixed",
42232
+ inset: 0,
42233
+ zIndex: zIndexPopup,
42234
+ pointerEvents: "none",
42235
+ color: colorText,
42236
+ "&-pure": {
42237
+ position: "relative",
42238
+ background: colorBgElevated,
42239
+ display: "flex",
42240
+ flexDirection: "column",
42241
+ [`&${componentCls}-left`]: {
42242
+ boxShadow: token2.boxShadowDrawerLeft
42243
+ },
42244
+ [`&${componentCls}-right`]: {
42245
+ boxShadow: token2.boxShadowDrawerRight
42246
+ },
42247
+ [`&${componentCls}-top`]: {
42248
+ boxShadow: token2.boxShadowDrawerUp
42249
+ },
42250
+ [`&${componentCls}-bottom`]: {
42251
+ boxShadow: token2.boxShadowDrawerDown
42252
+ }
42253
+ },
42254
+ "&-inline": {
42255
+ position: "absolute"
42256
+ },
42257
+ // ====================== Mask ======================
42258
+ [`${componentCls}-mask`]: {
42259
+ position: "absolute",
42260
+ inset: 0,
42261
+ zIndex: zIndexPopup,
42262
+ background: colorBgMask,
42263
+ pointerEvents: "auto"
42264
+ },
42265
+ // ==================== Content =====================
42266
+ [wrapperCls]: {
42267
+ position: "absolute",
42268
+ zIndex: zIndexPopup,
42269
+ maxWidth: "100vw",
42270
+ transition: `all ${motionDurationSlow}`,
42271
+ "&-hidden": {
42272
+ display: "none"
42273
+ }
42274
+ },
42275
+ // Placement
42276
+ [`&-left > ${wrapperCls}`]: {
42277
+ top: 0,
42278
+ bottom: 0,
42279
+ left: {
42280
+ _skip_check_: true,
42281
+ value: 0
42282
+ },
42283
+ boxShadow: token2.boxShadowDrawerLeft
42284
+ },
42285
+ [`&-right > ${wrapperCls}`]: {
42286
+ top: 0,
42287
+ right: {
42288
+ _skip_check_: true,
42289
+ value: 0
42290
+ },
42291
+ bottom: 0,
42292
+ boxShadow: token2.boxShadowDrawerRight
42293
+ },
42294
+ [`&-top > ${wrapperCls}`]: {
42295
+ top: 0,
42296
+ insetInline: 0,
42297
+ boxShadow: token2.boxShadowDrawerUp
42298
+ },
42299
+ [`&-bottom > ${wrapperCls}`]: {
42300
+ bottom: 0,
42301
+ insetInline: 0,
42302
+ boxShadow: token2.boxShadowDrawerDown
42303
+ },
42304
+ [`${componentCls}-content`]: {
42305
+ display: "flex",
42306
+ flexDirection: "column",
42307
+ width: "100%",
42308
+ height: "100%",
42309
+ overflow: "auto",
42310
+ background: colorBgElevated,
42311
+ pointerEvents: "auto"
42312
+ },
42313
+ // Header
42314
+ [`${componentCls}-header`]: {
42315
+ display: "flex",
42316
+ flex: 0,
42317
+ alignItems: "center",
42318
+ padding: `${unit$2(padding)} ${unit$2(paddingLG)}`,
42319
+ fontSize: fontSizeLG,
42320
+ lineHeight: lineHeightLG,
42321
+ borderBottom: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`,
42322
+ "&-title": {
42323
+ display: "flex",
42324
+ flex: 1,
42325
+ alignItems: "center",
42326
+ minWidth: 0,
42327
+ minHeight: 0
42328
+ }
42329
+ },
42330
+ [`${componentCls}-extra`]: {
42331
+ flex: "none"
42332
+ },
42333
+ [`${componentCls}-close`]: Object.assign({
42334
+ display: "inline-flex",
42335
+ width: calc(fontSizeLG).add(paddingXS).equal(),
42336
+ height: calc(fontSizeLG).add(paddingXS).equal(),
42337
+ borderRadius: borderRadiusSM,
42338
+ justifyContent: "center",
42339
+ alignItems: "center",
42340
+ marginInlineEnd: marginXS,
42341
+ color: colorIcon,
42342
+ fontWeight: fontWeightStrong,
42343
+ fontSize: fontSizeLG,
42344
+ fontStyle: "normal",
42345
+ lineHeight: 1,
42346
+ textAlign: "center",
42347
+ textTransform: "none",
42348
+ textDecoration: "none",
42349
+ background: "transparent",
42350
+ border: 0,
42351
+ cursor: "pointer",
42352
+ transition: `all ${motionDurationMid}`,
42353
+ textRendering: "auto",
42354
+ "&:hover": {
42355
+ color: colorIconHover,
42356
+ backgroundColor: colorBgTextHover,
42357
+ textDecoration: "none"
42358
+ },
42359
+ "&:active": {
42360
+ backgroundColor: colorBgTextActive
42361
+ }
42362
+ }, genFocusStyle(token2)),
42363
+ [`${componentCls}-title`]: {
42364
+ flex: 1,
42365
+ margin: 0,
42366
+ fontWeight: token2.fontWeightStrong,
42367
+ fontSize: fontSizeLG,
42368
+ lineHeight: lineHeightLG
42369
+ },
42370
+ // Body
42371
+ [`${componentCls}-body`]: {
42372
+ flex: 1,
42373
+ minWidth: 0,
42374
+ minHeight: 0,
42375
+ padding: paddingLG,
42376
+ overflow: "auto",
42377
+ [`${componentCls}-body-skeleton`]: {
42378
+ width: "100%",
42379
+ height: "100%",
42380
+ display: "flex",
42381
+ justifyContent: "center"
42382
+ }
42383
+ },
42384
+ // Footer
42385
+ [`${componentCls}-footer`]: {
42386
+ flexShrink: 0,
42387
+ padding: `${unit$2(footerPaddingBlock)} ${unit$2(footerPaddingInline)}`,
42388
+ borderTop: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`
42389
+ },
42390
+ // ====================== RTL =======================
42391
+ "&-rtl": {
42392
+ direction: "rtl"
42393
+ }
42394
+ }
42395
+ };
42396
+ };
42397
+ const prepareComponentToken$a = (token2) => ({
42398
+ zIndexPopup: token2.zIndexPopupBase,
42399
+ footerPaddingBlock: token2.paddingXS,
42400
+ footerPaddingInline: token2.padding
42401
+ });
42402
+ const useStyle$c = genStyleHooks("Drawer", (token2) => {
42403
+ const drawerToken = merge$1(token2, {});
42404
+ return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
42405
+ }, prepareComponentToken$a);
42406
+ var __rest$q = function(s, e3) {
42407
+ var t2 = {};
42408
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
42409
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42410
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
42411
+ }
42412
+ return t2;
42413
+ };
42414
+ const defaultPushState = {
42415
+ distance: 180
42416
+ };
42417
+ const Drawer2 = (props) => {
42418
+ var _a;
42419
+ const {
42420
+ rootClassName,
42421
+ width,
42422
+ height,
42423
+ size = "default",
42424
+ mask = true,
42425
+ push: push2 = defaultPushState,
42426
+ open,
42427
+ afterOpenChange,
42428
+ onClose,
42429
+ prefixCls: customizePrefixCls,
42430
+ getContainer: customizeGetContainer,
42431
+ panelRef = null,
42432
+ style: style2,
42433
+ className,
42434
+ // Deprecated
42435
+ visible,
42436
+ afterVisibleChange,
42437
+ maskStyle,
42438
+ drawerStyle,
42439
+ contentWrapperStyle,
42440
+ destroyOnClose,
42441
+ destroyOnHidden
42442
+ } = props, rest = __rest$q(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
42443
+ const {
42444
+ getPopupContainer,
42445
+ getPrefixCls,
42446
+ direction,
42447
+ className: contextClassName,
42448
+ style: contextStyle,
42449
+ classNames: contextClassNames,
42450
+ styles: contextStyles
42451
+ } = useComponentConfig("drawer");
42452
+ const prefixCls = getPrefixCls("drawer", customizePrefixCls);
42453
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
42454
+ const getContainer2 = (
42455
+ // 有可能为 false,所以不能直接判断
42456
+ customizeGetContainer === void 0 && getPopupContainer ? () => getPopupContainer(document.body) : customizeGetContainer
42457
+ );
42458
+ const drawerClassName = classNames({
42459
+ "no-mask": !mask,
42460
+ [`${prefixCls}-rtl`]: direction === "rtl"
42461
+ }, rootClassName, hashId, cssVarCls);
42462
+ if (process.env.NODE_ENV !== "production") {
42463
+ const warning3 = devUseWarning("Drawer");
42464
+ [["visible", "open"], ["afterVisibleChange", "afterOpenChange"], ["headerStyle", "styles.header"], ["bodyStyle", "styles.body"], ["footerStyle", "styles.footer"], ["contentWrapperStyle", "styles.wrapper"], ["maskStyle", "styles.mask"], ["drawerStyle", "styles.content"], ["destroyInactivePanel", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
42465
+ warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
42466
+ });
42467
+ if (getContainer2 !== void 0 && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.position) === "absolute") {
42468
+ process.env.NODE_ENV !== "production" ? warning3(false, "breaking", "`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.") : void 0;
42469
+ }
42470
+ }
42471
+ const mergedWidth = React.useMemo(() => width !== null && width !== void 0 ? width : size === "large" ? 736 : 378, [width, size]);
42472
+ const mergedHeight = React.useMemo(() => height !== null && height !== void 0 ? height : size === "large" ? 736 : 378, [height, size]);
42473
+ const maskMotion = {
42474
+ motionName: getTransitionName(prefixCls, "mask-motion"),
42475
+ motionAppear: true,
42476
+ motionEnter: true,
42477
+ motionLeave: true,
42478
+ motionDeadline: 500
42479
+ };
42480
+ const panelMotion = (motionPlacement) => ({
42481
+ motionName: getTransitionName(prefixCls, `panel-motion-${motionPlacement}`),
42482
+ motionAppear: true,
42483
+ motionEnter: true,
42484
+ motionLeave: true,
42485
+ motionDeadline: 500
42486
+ });
42487
+ const innerPanelRef = usePanelRef();
42488
+ const mergedPanelRef = composeRef(panelRef, innerPanelRef);
42489
+ const [zIndex, contextZIndex] = useZIndex("Drawer", rest.zIndex);
42490
+ const {
42491
+ classNames: propClassNames = {},
42492
+ styles: propStyles = {}
42493
+ } = rest;
42494
+ return wrapCSSVar(/* @__PURE__ */ React.createElement(ContextIsolator, {
42495
+ form: true,
42496
+ space: true
42497
+ }, /* @__PURE__ */ React.createElement(zIndexContext.Provider, {
42498
+ value: contextZIndex
42499
+ }, /* @__PURE__ */ React.createElement(Drawer$1, Object.assign({
42500
+ prefixCls,
42501
+ onClose,
42502
+ maskMotion,
42503
+ motion: panelMotion
42504
+ }, rest, {
42505
+ classNames: {
42506
+ mask: classNames(propClassNames.mask, contextClassNames.mask),
42507
+ content: classNames(propClassNames.content, contextClassNames.content),
42508
+ wrapper: classNames(propClassNames.wrapper, contextClassNames.wrapper)
42509
+ },
42510
+ styles: {
42511
+ mask: Object.assign(Object.assign(Object.assign({}, propStyles.mask), maskStyle), contextStyles.mask),
42512
+ content: Object.assign(Object.assign(Object.assign({}, propStyles.content), drawerStyle), contextStyles.content),
42513
+ wrapper: Object.assign(Object.assign(Object.assign({}, propStyles.wrapper), contentWrapperStyle), contextStyles.wrapper)
42514
+ },
42515
+ open: open !== null && open !== void 0 ? open : visible,
42516
+ mask,
42517
+ push: push2,
42518
+ width: mergedWidth,
42519
+ height: mergedHeight,
42520
+ style: Object.assign(Object.assign({}, contextStyle), style2),
42521
+ className: classNames(contextClassName, className),
42522
+ rootClassName: drawerClassName,
42523
+ getContainer: getContainer2,
42524
+ afterOpenChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
42525
+ panelRef: mergedPanelRef,
42526
+ zIndex,
42527
+ // TODO: In the future, destroyOnClose in rc-drawer needs to be upgrade to destroyOnHidden
42528
+ destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
42529
+ }), /* @__PURE__ */ React.createElement(DrawerPanel2, Object.assign({
42530
+ prefixCls
42531
+ }, rest, {
42532
+ onClose
42533
+ }))))));
42534
+ };
42535
+ const PurePanel$1 = (props) => {
42536
+ const {
42537
+ prefixCls: customizePrefixCls,
42538
+ style: style2,
42539
+ className,
42540
+ placement = "right"
42541
+ } = props, restProps = __rest$q(props, ["prefixCls", "style", "className", "placement"]);
42542
+ const {
42543
+ getPrefixCls
42544
+ } = React.useContext(ConfigContext);
42545
+ const prefixCls = getPrefixCls("drawer", customizePrefixCls);
42546
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
42547
+ const cls = classNames(prefixCls, `${prefixCls}-pure`, `${prefixCls}-${placement}`, hashId, cssVarCls, className);
42548
+ return wrapCSSVar(/* @__PURE__ */ React.createElement("div", {
42549
+ className: cls,
42550
+ style: style2
42551
+ }, /* @__PURE__ */ React.createElement(DrawerPanel2, Object.assign({
42552
+ prefixCls
42553
+ }, restProps))));
42554
+ };
42555
+ Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
42556
+ if (process.env.NODE_ENV !== "production") {
42557
+ Drawer2.displayName = "Drawer";
42558
+ }
41680
42559
  function isPresetSize(size) {
41681
42560
  return ["small", "middle", "large"].includes(size);
41682
42561
  }
@@ -41753,7 +42632,7 @@ const InternalSpace = /* @__PURE__ */ React.forwardRef((props, ref) => {
41753
42632
  });
41754
42633
  const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
41755
42634
  const prefixCls = getPrefixCls("space", customizePrefixCls);
41756
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
42635
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
41757
42636
  const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
41758
42637
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
41759
42638
  [`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
@@ -43517,7 +44396,7 @@ const Group = (props) => {
43517
44396
  } = props;
43518
44397
  const prefixCls = getPrefixCls("input-group", customizePrefixCls);
43519
44398
  const inputPrefixCls = getPrefixCls("input");
43520
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(inputPrefixCls);
44399
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(inputPrefixCls);
43521
44400
  const cls = classNames(prefixCls, cssVarCls, {
43522
44401
  [`${prefixCls}-lg`]: props.size === "large",
43523
44402
  [`${prefixCls}-sm`]: props.size === "small",
@@ -46654,7 +47533,7 @@ const PurePanel = (props) => {
46654
47533
  } = React.useContext(ConfigContext);
46655
47534
  const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
46656
47535
  const [wrapCSSVar] = useStyle$6(prefixCls);
46657
- return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$3, {
47536
+ return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$4, {
46658
47537
  placement,
46659
47538
  className: classNames(prefixCls, className),
46660
47539
  style: style2,
@@ -60701,6 +61580,9 @@ function FaCircleCheck(props) {
60701
61580
  function HiArrowCircleRight(props) {
60702
61581
  return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
60703
61582
  }
61583
+ function HiArrowLeft(props) {
61584
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
61585
+ }
60704
61586
  function HiCheckCircle(props) {
60705
61587
  return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", "clipRule": "evenodd" }, "child": [] }] })(props);
60706
61588
  }
@@ -60728,6 +61610,9 @@ function HiSearch(props) {
60728
61610
  function HiXCircle(props) {
60729
61611
  return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", "clipRule": "evenodd" }, "child": [] }] })(props);
60730
61612
  }
61613
+ function HiX(props) {
61614
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
61615
+ }
60731
61616
  function HiOutlineAdjustments(props) {
60732
61617
  return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" }, "child": [] }] })(props);
60733
61618
  }
@@ -84845,6 +85730,243 @@ const Shapes = ({ variant = "triangle", fill }) => {
84845
85730
  }
84846
85731
  return /* @__PURE__ */ jsx(Triangle, { fill, dataTestId: "shape-triangle" });
84847
85732
  };
85733
+ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 }, $type = "float", placement = "right") => {
85734
+ const isFloat = $type === "float";
85735
+ const offset2 = isFloat ? 24 : 0;
85736
+ const edge = placement === "right" ? "right" : "left";
85737
+ return `
85738
+ .ant-drawer-content-wrapper {
85739
+ box-shadow: none !important;
85740
+ }
85741
+
85742
+ .ant-drawer-content {
85743
+ position: relative !important;
85744
+ box-shadow: none !important;
85745
+ ${edge}: ${offset2}px !important;
85746
+ top: ${offset2}px !important;
85747
+ height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
85748
+ border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
85749
+ }
85750
+
85751
+ .ant-drawer-footer {
85752
+ padding: 0px !important;
85753
+ }
85754
+
85755
+ .ant-drawer-body {
85756
+ padding: 0px;
85757
+ overflow: hidden;
85758
+ display: flex;
85759
+ flex-direction: column;
85760
+ height: 100%;
85761
+ }
85762
+ `;
85763
+ };
85764
+ const StyledSidePanel = styled(Drawer2).attrs({
85765
+ destroyOnHidden: true,
85766
+ push: false
85767
+ })`
85768
+ ${({ theme, $type = "float", placement = "right" }) => {
85769
+ if (!theme) return "";
85770
+ return getGenesisDrawerClass(theme, $type, placement);
85771
+ }}
85772
+ `;
85773
+ const ScrollableContent = styled.div`
85774
+ overflow-y: auto;
85775
+ flex: 1;
85776
+ display: flex;
85777
+ flex-direction: column;
85778
+ `;
85779
+ const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
85780
+ position: sticky;
85781
+ top: 0;
85782
+ z-index: 10;
85783
+ background-color: ${colors2?.surface?.active?.backgroundColor || "#FFFFFF"};
85784
+ `;
85785
+ const StickyHeader = styled(Tile)`
85786
+ ${({ theme }) => {
85787
+ if (!theme) return "";
85788
+ return getGenesisStickyHeaderClass(theme);
85789
+ }}
85790
+ `;
85791
+ const SidePanel = ({
85792
+ type: type4 = "float",
85793
+ open,
85794
+ closable = true,
85795
+ children: children2,
85796
+ placement = "right",
85797
+ header,
85798
+ footer: footer2
85799
+ }) => {
85800
+ const theme = useTheme$1();
85801
+ const {
85802
+ avatar,
85803
+ title,
85804
+ description,
85805
+ showBackBtn = false,
85806
+ actions: headerActions = [],
85807
+ onClose,
85808
+ onBackBtnClick = () => {
85809
+ alert("Back button event not defined");
85810
+ }
85811
+ } = header;
85812
+ const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
85813
+ const spacing = {
85814
+ Size1: theme?.sizing?.Size1 || 4,
85815
+ Size3: theme?.sizing?.Size3 || 12,
85816
+ Size4: theme?.sizing?.Size4 || 16,
85817
+ Size6: theme?.sizing?.Size6 || 24
85818
+ };
85819
+ const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
85820
+ const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
85821
+ const handleClose = () => {
85822
+ onClose();
85823
+ };
85824
+ const BackBtn = () => {
85825
+ return showBackBtn ? /* @__PURE__ */ jsx(
85826
+ UtilityButton,
85827
+ {
85828
+ icon: /* @__PURE__ */ jsx(HiArrowLeft, {}),
85829
+ onClick: onBackBtnClick
85830
+ }
85831
+ ) : null;
85832
+ };
85833
+ const HeaderActions = () => {
85834
+ const showMenuBtn = headerActions.length > 1;
85835
+ const menuItems = headerActions.slice(1);
85836
+ return headerActions.length > 0 ? /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size4}px` }, children: [
85837
+ /* @__PURE__ */ jsx(
85838
+ Button$1,
85839
+ {
85840
+ ...headerActions[0].btnProps,
85841
+ onClick: headerActions[0].onClick,
85842
+ children: headerActions[0].label
85843
+ }
85844
+ ),
85845
+ showMenuBtn && /* @__PURE__ */ jsx(
85846
+ OverflowMenu,
85847
+ {
85848
+ trigger: /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
85849
+ placement: "bottom",
85850
+ alignment: "left",
85851
+ children: menuItems.map((item, index2) => /* @__PURE__ */ createElement(
85852
+ OverflowMenuItem,
85853
+ {
85854
+ ...item.menuItemProps,
85855
+ key: index2,
85856
+ onClick: item.onClick
85857
+ },
85858
+ item.label
85859
+ ))
85860
+ }
85861
+ )
85862
+ ] }) : null;
85863
+ };
85864
+ const SidePanelHeader = () => {
85865
+ return /* @__PURE__ */ jsx(
85866
+ Tile,
85867
+ {
85868
+ isHorizontal: true,
85869
+ style: {
85870
+ overflowY: "auto",
85871
+ alignItems: "center",
85872
+ justifyContent: "space-between",
85873
+ padding: `${spacing.Size6}px`,
85874
+ borderBottom: `1px solid ${borderColor}`
85875
+ },
85876
+ children: /* @__PURE__ */ jsxs(
85877
+ Tile,
85878
+ {
85879
+ isHorizontal: true,
85880
+ style: {
85881
+ alignItems: "flexStart",
85882
+ gap: `${spacing.Size4}px`,
85883
+ flex: 1
85884
+ },
85885
+ children: [
85886
+ /* @__PURE__ */ jsx(BackBtn, {}),
85887
+ /* @__PURE__ */ jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1 }, children: [
85888
+ /* @__PURE__ */ jsxs(
85889
+ Tile,
85890
+ {
85891
+ isHorizontal: true,
85892
+ style: {
85893
+ gap: `${spacing.Size3}px`,
85894
+ alignItems: "center",
85895
+ height: "40px"
85896
+ },
85897
+ children: [
85898
+ avatar && /* @__PURE__ */ jsx(Avatar, { ...avatar, size: 32 }),
85899
+ /* @__PURE__ */ jsx(Typography, { fontSize: "24px", fontWeight: 400, color: textColor, children: title })
85900
+ ]
85901
+ }
85902
+ ),
85903
+ description && /* @__PURE__ */ jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description }),
85904
+ /* @__PURE__ */ jsx(HeaderActions, {})
85905
+ ] }),
85906
+ /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiX, {}), onClick: handleClose })
85907
+ ]
85908
+ }
85909
+ )
85910
+ }
85911
+ );
85912
+ };
85913
+ const SidePanelFooter = () => {
85914
+ const showMenuBtn = footerActions.length > 1;
85915
+ const menuItems = footerActions.slice(1);
85916
+ return showFooter && footerActions.length > 0 ? /* @__PURE__ */ jsxs(
85917
+ Tile,
85918
+ {
85919
+ isHorizontal: true,
85920
+ style: { padding: `${spacing.Size6}px`, gap: `${spacing.Size4}px` },
85921
+ children: [
85922
+ /* @__PURE__ */ jsx(
85923
+ Button$1,
85924
+ {
85925
+ ...footerActions[0].btnProps,
85926
+ onClick: footerActions[0].onClick,
85927
+ style: { flex: 1, ...footerActions[0].btnProps?.style },
85928
+ children: footerActions[0].label
85929
+ }
85930
+ ),
85931
+ showMenuBtn && /* @__PURE__ */ jsx(
85932
+ OverflowMenu,
85933
+ {
85934
+ trigger: /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
85935
+ placement: "top",
85936
+ alignment: "right",
85937
+ children: menuItems.map((item, index2) => /* @__PURE__ */ createElement(
85938
+ OverflowMenuItem,
85939
+ {
85940
+ ...item.menuItemProps,
85941
+ key: index2,
85942
+ onClick: item.onClick
85943
+ },
85944
+ item.label
85945
+ ))
85946
+ }
85947
+ )
85948
+ ]
85949
+ }
85950
+ ) : null;
85951
+ };
85952
+ return /* @__PURE__ */ jsxs(
85953
+ StyledSidePanel,
85954
+ {
85955
+ closable: false,
85956
+ maskClosable: closable,
85957
+ onClose,
85958
+ width: 520,
85959
+ footer: /* @__PURE__ */ jsx(SidePanelFooter, {}),
85960
+ open,
85961
+ $type: type4,
85962
+ placement,
85963
+ children: [
85964
+ /* @__PURE__ */ jsx(StickyHeader, { children: /* @__PURE__ */ jsx(SidePanelHeader, {}) }),
85965
+ /* @__PURE__ */ jsx(ScrollableContent, { children: children2 })
85966
+ ]
85967
+ }
85968
+ );
85969
+ };
84848
85970
  const getGenesisClass$3 = ({ colors: colors2, borderRadius: borderRadius2 }) => `
84849
85971
  &.ant-switch {
84850
85972
  background-color: ${colors2.primary.active};
@@ -87572,11 +88694,11 @@ const mockColumns = [
87572
88694
  render: (appointment, record) => {
87573
88695
  const { address } = appointment;
87574
88696
  const textColor = record.isSelected ? "white" : "#6c6c6c";
87575
- return React__default.createElement(Typography, {
87576
- variant: "body2",
87577
- color: `${textColor}`,
87578
- children: typeof address === "string" ? address : JSON.stringify(address)
87579
- });
88697
+ return React__default.createElement(
88698
+ Typography,
88699
+ { variant: "body2", color: `${textColor}` },
88700
+ typeof address === "string" ? address : JSON.stringify(address)
88701
+ );
87580
88702
  }
87581
88703
  },
87582
88704
  {
@@ -88255,6 +89377,7 @@ export {
88255
89377
  SegmentedControls,
88256
89378
  Select,
88257
89379
  Shapes,
89380
+ SidePanel,
88258
89381
  Switch,
88259
89382
  TablePagination as Table,
88260
89383
  TableWithControls,