@gobolt/genesis 0.6.3 → 0.7.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5294,7 +5294,7 @@ function getAlphaColor(frontColor, backgroundColor) {
5294
5294
  a: 1
5295
5295
  }).toRgbString();
5296
5296
  }
5297
- var __rest$_ = function(s, e3) {
5297
+ var __rest$$ = function(s, e3) {
5298
5298
  var t2 = {};
5299
5299
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5300
5300
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5305,7 +5305,7 @@ var __rest$_ = function(s, e3) {
5305
5305
  function formatToken(derivativeToken) {
5306
5306
  const {
5307
5307
  override
5308
- } = derivativeToken, restToken = __rest$_(derivativeToken, ["override"]);
5308
+ } = derivativeToken, restToken = __rest$$(derivativeToken, ["override"]);
5309
5309
  const overrideTokens = Object.assign({}, override);
5310
5310
  Object.keys(seedToken).forEach((token2) => {
5311
5311
  delete overrideTokens[token2];
@@ -5459,7 +5459,7 @@ function formatToken(derivativeToken) {
5459
5459
  }), overrideTokens);
5460
5460
  return aliasToken;
5461
5461
  }
5462
- var __rest$Z = function(s, e3) {
5462
+ var __rest$_ = function(s, e3) {
5463
5463
  var t2 = {};
5464
5464
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5465
5465
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5509,7 +5509,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5509
5509
  const derivativeToken = theme.getDerivativeToken(originToken);
5510
5510
  const {
5511
5511
  override
5512
- } = overrideToken, components2 = __rest$Z(overrideToken, ["override"]);
5512
+ } = overrideToken, components2 = __rest$_(overrideToken, ["override"]);
5513
5513
  let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
5514
5514
  override
5515
5515
  });
@@ -5518,7 +5518,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5518
5518
  Object.entries(components2).forEach(([key, value2]) => {
5519
5519
  const {
5520
5520
  theme: componentTheme
5521
- } = value2, componentTokens = __rest$Z(value2, ["theme"]);
5521
+ } = value2, componentTokens = __rest$_(value2, ["theme"]);
5522
5522
  let mergedComponentToken = componentTokens;
5523
5523
  if (componentTheme) {
5524
5524
  mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
@@ -5809,10 +5809,10 @@ function useTheme(theme, parentTheme, config) {
5809
5809
  return !isEqual(prevTheme, nextTheme, true);
5810
5810
  }));
5811
5811
  }
5812
- var _excluded$S = ["children"];
5812
+ var _excluded$T = ["children"];
5813
5813
  var Context$1 = /* @__PURE__ */ React__namespace.createContext({});
5814
5814
  function MotionProvider(_ref) {
5815
- var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$S);
5815
+ var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$T);
5816
5816
  return /* @__PURE__ */ React__namespace.createElement(Context$1.Provider, {
5817
5817
  value: props
5818
5818
  }, children2);
@@ -6331,7 +6331,7 @@ function diffKeys() {
6331
6331
  });
6332
6332
  return list2;
6333
6333
  }
6334
- var _excluded$R = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
6334
+ var _excluded$S = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
6335
6335
  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"];
6336
6336
  function genCSSMotionList(transitionSupport) {
6337
6337
  var CSSMotion$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion;
@@ -6379,7 +6379,7 @@ function genCSSMotionList(transitionSupport) {
6379
6379
  var keyEntities = this.state.keyEntities;
6380
6380
  var _this$props = this.props, component = _this$props.component, children2 = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged;
6381
6381
  _this$props.onAllRemoved;
6382
- var restProps = _objectWithoutProperties$1(_this$props, _excluded$R);
6382
+ var restProps = _objectWithoutProperties$1(_this$props, _excluded$S);
6383
6383
  var Component = component || React__namespace.Fragment;
6384
6384
  var motionProps = {};
6385
6385
  MOTION_PROP_NAMES.forEach(function(prop) {
@@ -6473,7 +6473,7 @@ if (process.env.NODE_ENV !== "production") {
6473
6473
  PropWarning.displayName = "PropWarning";
6474
6474
  }
6475
6475
  const PropWarning$1 = process.env.NODE_ENV !== "production" ? PropWarning : () => null;
6476
- var __rest$Y = function(s, e3) {
6476
+ var __rest$Z = function(s, e3) {
6477
6477
  var t2 = {};
6478
6478
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
6479
6479
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -6518,7 +6518,7 @@ const ProviderChildren = (props) => {
6518
6518
  children: children2,
6519
6519
  csp: customCsp,
6520
6520
  autoInsertSpaceInButton,
6521
- alert,
6521
+ alert: alert2,
6522
6522
  anchor,
6523
6523
  form,
6524
6524
  locale: locale2,
@@ -6618,7 +6618,7 @@ const ProviderChildren = (props) => {
6618
6618
  const baseConfig = {
6619
6619
  csp,
6620
6620
  autoInsertSpaceInButton,
6621
- alert,
6621
+ alert: alert2,
6622
6622
  anchor,
6623
6623
  locale: locale2 || legacyLocale,
6624
6624
  direction,
@@ -6760,7 +6760,7 @@ const ProviderChildren = (props) => {
6760
6760
  token: token2,
6761
6761
  components: components2,
6762
6762
  cssVar
6763
- } = _a, rest = __rest$Y(_a, ["algorithm", "token", "components", "cssVar"]);
6763
+ } = _a, rest = __rest$Z(_a, ["algorithm", "token", "components", "cssVar"]);
6764
6764
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
6765
6765
  const parsedComponents = {};
6766
6766
  Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
@@ -6907,7 +6907,7 @@ var useInsertStyles = function useInsertStyles2(eleRef) {
6907
6907
  });
6908
6908
  }, []);
6909
6909
  };
6910
- var _excluded$Q = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
6910
+ var _excluded$R = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
6911
6911
  var twoToneColorPalette = {
6912
6912
  primaryColor: "#333",
6913
6913
  secondaryColor: "#E6E6E6",
@@ -6923,7 +6923,7 @@ function getTwoToneColors() {
6923
6923
  return _objectSpread2({}, twoToneColorPalette);
6924
6924
  }
6925
6925
  var IconBase$1 = function IconBase(props) {
6926
- 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);
6926
+ 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);
6927
6927
  var svgRef = React__namespace.useRef();
6928
6928
  var colors2 = twoToneColorPalette;
6929
6929
  if (primaryColor) {
@@ -6973,10 +6973,10 @@ function getTwoToneColor() {
6973
6973
  }
6974
6974
  return [colors2.primaryColor, colors2.secondaryColor];
6975
6975
  }
6976
- var _excluded$P = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6976
+ var _excluded$Q = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6977
6977
  setTwoToneColor(blue.primary);
6978
6978
  var Icon$3 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
6979
- 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);
6979
+ 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);
6980
6980
  var _React$useContext = React__namespace.useContext(IconContext$1), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
6981
6981
  var classString = classNames(rootClassName, prefixCls, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), className);
6982
6982
  var iconTabIndex = tabIndex;
@@ -7274,7 +7274,7 @@ const genActionStyle = (token2) => {
7274
7274
  }
7275
7275
  };
7276
7276
  };
7277
- const prepareComponentToken$p = (token2) => {
7277
+ const prepareComponentToken$q = (token2) => {
7278
7278
  const paddingHorizontal = 12;
7279
7279
  return {
7280
7280
  withDescriptionIconSize: token2.fontSizeHeading3,
@@ -7282,8 +7282,8 @@ const prepareComponentToken$p = (token2) => {
7282
7282
  withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
7283
7283
  };
7284
7284
  };
7285
- const useStyle$v = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$p);
7286
- var __rest$X = function(s, e3) {
7285
+ const useStyle$w = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$q);
7286
+ var __rest$Y = function(s, e3) {
7287
7287
  var t2 = {};
7288
7288
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
7289
7289
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -7350,7 +7350,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
7350
7350
  closeIcon,
7351
7351
  action,
7352
7352
  id: id2
7353
- } = props, otherProps = __rest$X(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7353
+ } = props, otherProps = __rest$Y(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7354
7354
  const [closed, setClosed] = React__namespace.useState(false);
7355
7355
  if (process.env.NODE_ENV !== "production") {
7356
7356
  const warning3 = devUseWarning("Alert");
@@ -7369,7 +7369,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
7369
7369
  style: contextStyle
7370
7370
  } = useComponentConfig("alert");
7371
7371
  const prefixCls = getPrefixCls("alert", customizePrefixCls);
7372
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$v(prefixCls);
7372
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$w(prefixCls);
7373
7373
  const handleClose = (e3) => {
7374
7374
  var _a;
7375
7375
  setClosed(true);
@@ -7425,7 +7425,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
7425
7425
  if (typeof merged === "object") {
7426
7426
  const {
7427
7427
  closeIcon: _
7428
- } = merged, ariaProps = __rest$X(merged, ["closeIcon"]);
7428
+ } = merged, ariaProps = __rest$Y(merged, ["closeIcon"]);
7429
7429
  return ariaProps;
7430
7430
  }
7431
7431
  return {};
@@ -8332,7 +8332,7 @@ const genWaveStyle = (token2) => {
8332
8332
  }
8333
8333
  };
8334
8334
  };
8335
- const useStyle$u = genComponentStyleHook("Wave", genWaveStyle);
8335
+ const useStyle$v = genComponentStyleHook("Wave", genWaveStyle);
8336
8336
  const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
8337
8337
  function isValidWaveColor(color2) {
8338
8338
  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
@@ -8510,7 +8510,7 @@ const Wave = (props) => {
8510
8510
  } = React.useContext(ConfigContext);
8511
8511
  const containerRef = React.useRef(null);
8512
8512
  const prefixCls = getPrefixCls("wave");
8513
- const [, hashId] = useStyle$u(prefixCls);
8513
+ const [, hashId] = useStyle$v(prefixCls);
8514
8514
  const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
8515
8515
  React.useEffect(() => {
8516
8516
  const node2 = containerRef.current;
@@ -8638,7 +8638,7 @@ const genSpaceGapStyle = (token2) => {
8638
8638
  }
8639
8639
  };
8640
8640
  };
8641
- const useStyle$t = genStyleHooks("Space", (token2) => {
8641
+ const useStyle$u = genStyleHooks("Space", (token2) => {
8642
8642
  const spaceToken = merge$1(token2, {
8643
8643
  spaceGapSmallSize: token2.paddingXS,
8644
8644
  spaceGapMiddleSize: token2.padding,
@@ -8650,7 +8650,7 @@ const useStyle$t = genStyleHooks("Space", (token2) => {
8650
8650
  // https://github.com/ant-design/ant-design/issues/40315
8651
8651
  resetStyle: false
8652
8652
  });
8653
- var __rest$W = function(s, e3) {
8653
+ var __rest$X = function(s, e3) {
8654
8654
  var t2 = {};
8655
8655
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8656
8656
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8694,7 +8694,7 @@ const NoCompactStyle = (props) => {
8694
8694
  const CompactItem = (props) => {
8695
8695
  const {
8696
8696
  children: children2
8697
- } = props, others = __rest$W(props, ["children"]);
8697
+ } = props, others = __rest$X(props, ["children"]);
8698
8698
  return /* @__PURE__ */ React__namespace.createElement(SpaceCompactItemContext.Provider, {
8699
8699
  value: React__namespace.useMemo(() => others, [others])
8700
8700
  }, children2);
@@ -8712,10 +8712,10 @@ const Compact$1 = (props) => {
8712
8712
  className,
8713
8713
  rootClassName,
8714
8714
  children: children2
8715
- } = props, restProps = __rest$W(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8715
+ } = props, restProps = __rest$X(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8716
8716
  const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
8717
8717
  const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
8718
- const [wrapCSSVar, hashId] = useStyle$t(prefixCls);
8718
+ const [wrapCSSVar, hashId] = useStyle$u(prefixCls);
8719
8719
  const clx = classNames(prefixCls, hashId, {
8720
8720
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
8721
8721
  [`${prefixCls}-block`]: block,
@@ -8740,7 +8740,7 @@ const Compact$1 = (props) => {
8740
8740
  className: clx
8741
8741
  }, restProps), nodes));
8742
8742
  };
8743
- var __rest$V = function(s, e3) {
8743
+ var __rest$W = function(s, e3) {
8744
8744
  var t2 = {};
8745
8745
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8746
8746
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8758,7 +8758,7 @@ const ButtonGroup = (props) => {
8758
8758
  prefixCls: customizePrefixCls,
8759
8759
  size,
8760
8760
  className
8761
- } = props, others = __rest$V(props, ["prefixCls", "size", "className"]);
8761
+ } = props, others = __rest$W(props, ["prefixCls", "size", "className"]);
8762
8762
  const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
8763
8763
  const [, , hashId] = useToken();
8764
8764
  const sizeCls = React__namespace.useMemo(() => {
@@ -8993,7 +8993,7 @@ const genGroupStyle$2 = (token2) => {
8993
8993
  ]
8994
8994
  };
8995
8995
  };
8996
- var _excluded$O = ["b"], _excluded2$8 = ["v"];
8996
+ var _excluded$P = ["b"], _excluded2$8 = ["v"];
8997
8997
  var getRoundNumber = function getRoundNumber2(value2) {
8998
8998
  return Math.round(Number(value2 || 0));
8999
8999
  };
@@ -9002,7 +9002,7 @@ var convertHsb2Hsv = function convertHsb2Hsv2(color2) {
9002
9002
  return color2;
9003
9003
  }
9004
9004
  if (color2 && _typeof(color2) === "object" && "h" in color2 && "b" in color2) {
9005
- var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$O);
9005
+ var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$P);
9006
9006
  return _objectSpread2(_objectSpread2({}, resets), {}, {
9007
9007
  v: b
9008
9008
  });
@@ -10148,7 +10148,7 @@ const prepareToken$2 = (token2) => {
10148
10148
  });
10149
10149
  return buttonToken;
10150
10150
  };
10151
- const prepareComponentToken$o = (token2) => {
10151
+ const prepareComponentToken$p = (token2) => {
10152
10152
  var _a, _b, _c, _d, _e, _f;
10153
10153
  const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
10154
10154
  const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
@@ -10655,7 +10655,7 @@ const genBlockButtonStyle = (token2) => {
10655
10655
  }
10656
10656
  };
10657
10657
  };
10658
- const useStyle$s = genStyleHooks("Button", (token2) => {
10658
+ const useStyle$t = genStyleHooks("Button", (token2) => {
10659
10659
  const buttonToken = prepareToken$2(token2);
10660
10660
  return [
10661
10661
  // Shared
@@ -10673,7 +10673,7 @@ const useStyle$s = genStyleHooks("Button", (token2) => {
10673
10673
  // Button Group
10674
10674
  genGroupStyle$2(buttonToken)
10675
10675
  ];
10676
- }, prepareComponentToken$o, {
10676
+ }, prepareComponentToken$p, {
10677
10677
  unitless: {
10678
10678
  fontWeight: true,
10679
10679
  contentLineHeight: true,
@@ -10821,8 +10821,8 @@ const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
10821
10821
  genCompactItemVerticalStyle(buttonToken),
10822
10822
  genButtonCompactStyle(buttonToken)
10823
10823
  ];
10824
- }, prepareComponentToken$o);
10825
- var __rest$U = function(s, e3) {
10824
+ }, prepareComponentToken$p);
10825
+ var __rest$V = function(s, e3) {
10826
10826
  var t2 = {};
10827
10827
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
10828
10828
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -10878,7 +10878,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
10878
10878
  style: customStyle = {},
10879
10879
  autoInsertSpace,
10880
10880
  autoFocus
10881
- } = 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"]);
10881
+ } = 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"]);
10882
10882
  const mergedType = type4 || "default";
10883
10883
  const {
10884
10884
  button: button2
@@ -10913,7 +10913,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
10913
10913
  } = useComponentConfig("button");
10914
10914
  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
10915
10915
  const prefixCls = getPrefixCls("btn", customizePrefixCls);
10916
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
10916
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
10917
10917
  const disabled2 = React.useContext(DisabledContext);
10918
10918
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
10919
10919
  const groupSize = React.useContext(GroupSizeContext);
@@ -12850,7 +12850,7 @@ function move(array4, moveIndex, toIndex) {
12850
12850
  }
12851
12851
  return array4;
12852
12852
  }
12853
- var _excluded$N = ["name"];
12853
+ var _excluded$O = ["name"];
12854
12854
  var EMPTY_ERRORS = [];
12855
12855
  function requireUpdate(shouldUpdate, prev2, next2, prevValue, nextValue, info) {
12856
12856
  if (typeof shouldUpdate === "function") {
@@ -13297,7 +13297,7 @@ _defineProperty$1(Field, "defaultProps", {
13297
13297
  });
13298
13298
  function WrapperField(_ref6) {
13299
13299
  var _restProps$isListFiel;
13300
- var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$N);
13300
+ var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$O);
13301
13301
  var fieldContext = React__namespace.useContext(Context);
13302
13302
  var listContext = React__namespace.useContext(ListContext);
13303
13303
  var namePath = name2 !== void 0 ? getNamePath(name2) : void 0;
@@ -13529,7 +13529,7 @@ var NameMap = /* @__PURE__ */ (function() {
13529
13529
  }]);
13530
13530
  return NameMap2;
13531
13531
  })();
13532
- var _excluded$M = ["name"];
13532
+ var _excluded$N = ["name"];
13533
13533
  var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate) {
13534
13534
  var _this = this;
13535
13535
  _classCallCheck(this, FormStore2);
@@ -13931,7 +13931,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
13931
13931
  var prevStore = _this.store;
13932
13932
  var namePathList = [];
13933
13933
  fields.forEach(function(fieldData) {
13934
- var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$M);
13934
+ var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$N);
13935
13935
  var namePath = getNamePath(name2);
13936
13936
  namePathList.push(namePath);
13937
13937
  if ("value" in data) {
@@ -14337,9 +14337,9 @@ var FormProvider$1 = function FormProvider(_ref) {
14337
14337
  })
14338
14338
  }, children2);
14339
14339
  };
14340
- var _excluded$L = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
14340
+ var _excluded$M = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
14341
14341
  var Form$4 = function Form(_ref, ref) {
14342
- 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);
14342
+ 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);
14343
14343
  var nativeElementRef = React__namespace.useRef(null);
14344
14344
  var formContext = React__namespace.useContext(FormContext$1);
14345
14345
  var _useForm = useForm$1(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
@@ -14585,6 +14585,93 @@ function mergeProps$1(...items) {
14585
14585
  });
14586
14586
  return ret;
14587
14587
  }
14588
+ function pickClosable(context) {
14589
+ if (!context) {
14590
+ return void 0;
14591
+ }
14592
+ const {
14593
+ closable,
14594
+ closeIcon
14595
+ } = context;
14596
+ return {
14597
+ closable,
14598
+ closeIcon
14599
+ };
14600
+ }
14601
+ function useClosableConfig(closableCollection) {
14602
+ const {
14603
+ closable,
14604
+ closeIcon
14605
+ } = closableCollection || {};
14606
+ return React.useMemo(() => {
14607
+ if (
14608
+ // If `closable`, whatever rest be should be true
14609
+ !closable && (closable === false || closeIcon === false || closeIcon === null)
14610
+ ) {
14611
+ return false;
14612
+ }
14613
+ if (closable === void 0 && closeIcon === void 0) {
14614
+ return null;
14615
+ }
14616
+ let closableConfig = {
14617
+ closeIcon: typeof closeIcon !== "boolean" && closeIcon !== null ? closeIcon : void 0
14618
+ };
14619
+ if (closable && typeof closable === "object") {
14620
+ closableConfig = Object.assign(Object.assign({}, closableConfig), closable);
14621
+ }
14622
+ return closableConfig;
14623
+ }, [closable, closeIcon]);
14624
+ }
14625
+ const EmptyFallbackCloseCollection = {};
14626
+ function useClosable(propCloseCollection, contextCloseCollection, fallbackCloseCollection = EmptyFallbackCloseCollection) {
14627
+ const propCloseConfig = useClosableConfig(propCloseCollection);
14628
+ const contextCloseConfig = useClosableConfig(contextCloseCollection);
14629
+ const [contextLocale] = useLocale$1("global", localeValues.global);
14630
+ const closeBtnIsDisabled = typeof propCloseConfig !== "boolean" ? !!(propCloseConfig === null || propCloseConfig === void 0 ? void 0 : propCloseConfig.disabled) : false;
14631
+ const mergedFallbackCloseCollection = React.useMemo(() => Object.assign({
14632
+ closeIcon: /* @__PURE__ */ React.createElement(RefIcon$C, null)
14633
+ }, fallbackCloseCollection), [fallbackCloseCollection]);
14634
+ const mergedClosableConfig = React.useMemo(() => {
14635
+ if (propCloseConfig === false) {
14636
+ return false;
14637
+ }
14638
+ if (propCloseConfig) {
14639
+ return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig, propCloseConfig);
14640
+ }
14641
+ if (contextCloseConfig === false) {
14642
+ return false;
14643
+ }
14644
+ if (contextCloseConfig) {
14645
+ return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig);
14646
+ }
14647
+ return !mergedFallbackCloseCollection.closable ? false : mergedFallbackCloseCollection;
14648
+ }, [propCloseConfig, contextCloseConfig, mergedFallbackCloseCollection]);
14649
+ return React.useMemo(() => {
14650
+ var _a, _b;
14651
+ if (mergedClosableConfig === false) {
14652
+ return [false, null, closeBtnIsDisabled, {}];
14653
+ }
14654
+ const {
14655
+ closeIconRender
14656
+ } = mergedFallbackCloseCollection;
14657
+ const {
14658
+ closeIcon
14659
+ } = mergedClosableConfig;
14660
+ let mergedCloseIcon = closeIcon;
14661
+ const ariaOrDataProps = pickAttrs(mergedClosableConfig, true);
14662
+ if (mergedCloseIcon !== null && mergedCloseIcon !== void 0) {
14663
+ if (closeIconRender) {
14664
+ mergedCloseIcon = closeIconRender(closeIcon);
14665
+ }
14666
+ mergedCloseIcon = /* @__PURE__ */ React.isValidElement(mergedCloseIcon) ? /* @__PURE__ */ React.cloneElement(mergedCloseIcon, Object.assign(Object.assign(Object.assign({}, mergedCloseIcon.props), {
14667
+ "aria-label": (_b = (_a = mergedCloseIcon.props) === null || _a === void 0 ? void 0 : _a["aria-label"]) !== null && _b !== void 0 ? _b : contextLocale.close
14668
+ }), ariaOrDataProps)) : /* @__PURE__ */ React.createElement("span", Object.assign({
14669
+ "aria-label": contextLocale.close
14670
+ }, ariaOrDataProps), mergedCloseIcon);
14671
+ }
14672
+ return [true, mergedCloseIcon, closeBtnIsDisabled, ariaOrDataProps];
14673
+ }, [mergedClosableConfig, mergedFallbackCloseCollection]);
14674
+ }
14588
14675
  var isStyleNameSupport = function isStyleNameSupport2(styleName) {
14589
14676
  if (canUseDom() && window.document.documentElement) {
14590
14677
  var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
@@ -14903,7 +14990,7 @@ const genBaseStyle$8 = (token2) => {
14903
14990
  }
14904
14991
  };
14905
14992
  };
14906
- const prepareComponentToken$n = (token2) => {
14993
+ const prepareComponentToken$o = (token2) => {
14907
14994
  const {
14908
14995
  colorFillContent,
14909
14996
  colorFill
@@ -14921,7 +15008,7 @@ const prepareComponentToken$n = (token2) => {
14921
15008
  paragraphLiHeight: token2.controlHeight / 2
14922
15009
  };
14923
15010
  };
14924
- const useStyle$r = genStyleHooks("Skeleton", (token2) => {
15011
+ const useStyle$s = genStyleHooks("Skeleton", (token2) => {
14925
15012
  const {
14926
15013
  componentCls,
14927
15014
  calc
@@ -14940,7 +15027,7 @@ const useStyle$r = genStyleHooks("Skeleton", (token2) => {
14940
15027
  skeletonLoadingMotionDuration: "1.4s"
14941
15028
  });
14942
15029
  return genBaseStyle$8(skeletonToken);
14943
- }, prepareComponentToken$n, {
15030
+ }, prepareComponentToken$o, {
14944
15031
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
14945
15032
  });
14946
15033
  const SkeletonAvatar = (props) => {
@@ -14956,7 +15043,7 @@ const SkeletonAvatar = (props) => {
14956
15043
  getPrefixCls
14957
15044
  } = React__namespace.useContext(ConfigContext);
14958
15045
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
14959
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15046
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
14960
15047
  const otherProps = omit(props, ["prefixCls", "className"]);
14961
15048
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
14962
15049
  [`${prefixCls}-active`]: active
@@ -14982,7 +15069,7 @@ const SkeletonButton = (props) => {
14982
15069
  getPrefixCls
14983
15070
  } = React__namespace.useContext(ConfigContext);
14984
15071
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
14985
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15072
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
14986
15073
  const otherProps = omit(props, ["prefixCls"]);
14987
15074
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
14988
15075
  [`${prefixCls}-active`]: active,
@@ -15008,7 +15095,7 @@ const SkeletonImage = (props) => {
15008
15095
  getPrefixCls
15009
15096
  } = React__namespace.useContext(ConfigContext);
15010
15097
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15011
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15098
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15012
15099
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15013
15100
  [`${prefixCls}-active`]: active
15014
15101
  }, className, rootClassName, hashId, cssVarCls);
@@ -15039,7 +15126,7 @@ const SkeletonInput = (props) => {
15039
15126
  getPrefixCls
15040
15127
  } = React__namespace.useContext(ConfigContext);
15041
15128
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15042
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15129
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15043
15130
  const otherProps = omit(props, ["prefixCls"]);
15044
15131
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15045
15132
  [`${prefixCls}-active`]: active,
@@ -15065,7 +15152,7 @@ const SkeletonNode = (props) => {
15065
15152
  getPrefixCls
15066
15153
  } = React__namespace.useContext(ConfigContext);
15067
15154
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15068
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15155
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15069
15156
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15070
15157
  [`${prefixCls}-active`]: active
15071
15158
  }, hashId, className, rootClassName, cssVarCls);
@@ -15190,7 +15277,7 @@ const Skeleton$1 = (props) => {
15190
15277
  style: contextStyle
15191
15278
  } = useComponentConfig("skeleton");
15192
15279
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15193
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
15280
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15194
15281
  if (loading || !("loading" in props)) {
15195
15282
  const hasAvatar = !!avatar;
15196
15283
  const hasTitle = !!title;
@@ -15245,6 +15332,26 @@ Skeleton$1.Node = SkeletonNode;
15245
15332
  if (process.env.NODE_ENV !== "production") {
15246
15333
  Skeleton$1.displayName = "Skeleton";
15247
15334
  }
15335
+ function voidFunc() {
15336
+ }
15337
+ const WatermarkContext = /* @__PURE__ */ React__namespace.createContext({
15338
+ add: voidFunc,
15339
+ remove: voidFunc
15340
+ });
15341
+ function usePanelRef(panelSelector) {
15342
+ const watermark = React__namespace.useContext(WatermarkContext);
15343
+ const panelEleRef = React__namespace.useRef(null);
15344
+ const panelRef = useEvent((ele) => {
15345
+ if (ele) {
15346
+ const innerContentEle = ele;
15347
+ watermark.add(innerContentEle);
15348
+ panelEleRef.current = innerContentEle;
15349
+ } else {
15350
+ watermark.remove(panelEleRef.current);
15351
+ }
15352
+ });
15353
+ return panelRef;
15354
+ }
15248
15355
  const genGridRowStyle = (token2) => {
15249
15356
  const {
15250
15357
  componentCls
@@ -15651,10 +15758,10 @@ function isValidateOpenKey(currentKeyCode) {
15651
15758
  ].includes(currentKeyCode)
15652
15759
  );
15653
15760
  }
15654
- var _excluded$K = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
15761
+ var _excluded$L = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
15655
15762
  var UNDEFINED = void 0;
15656
15763
  function InternalItem(props, ref) {
15657
- 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);
15764
+ 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);
15658
15765
  var mergedHidden = responsive && !display;
15659
15766
  function internalRegisterSize(width) {
15660
15767
  registerSize(itemKey2, width);
@@ -15740,11 +15847,11 @@ function useEffectState(notifyEffectUpdate, defaultValue) {
15740
15847
  return [stateValue, setEffectVal];
15741
15848
  }
15742
15849
  var OverflowContext = /* @__PURE__ */ React.createContext(null);
15743
- var _excluded$J = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
15850
+ var _excluded$K = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
15744
15851
  var InternalRawItem = function InternalRawItem2(props, ref) {
15745
15852
  var context = React__namespace.useContext(OverflowContext);
15746
15853
  if (!context) {
15747
- var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$J);
15854
+ var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$K);
15748
15855
  return /* @__PURE__ */ React__namespace.createElement(Component, _extends$1({}, _restProps, {
15749
15856
  ref
15750
15857
  }));
@@ -15760,14 +15867,14 @@ var InternalRawItem = function InternalRawItem2(props, ref) {
15760
15867
  };
15761
15868
  var RawItem = /* @__PURE__ */ React__namespace.forwardRef(InternalRawItem);
15762
15869
  RawItem.displayName = "RawItem";
15763
- var _excluded$I = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
15870
+ var _excluded$J = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
15764
15871
  var RESPONSIVE = "responsive";
15765
15872
  var INVALIDATE = "invalidate";
15766
15873
  function defaultRenderRest(omittedItems) {
15767
15874
  return "+ ".concat(omittedItems.length, " ...");
15768
15875
  }
15769
15876
  function Overflow(props, ref) {
15770
- 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);
15877
+ 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);
15771
15878
  var fullySSR = ssr === "full";
15772
15879
  var notifyEffectUpdate = useBatcher();
15773
15880
  var _useEffectState = useEffectState(notifyEffectUpdate, null), _useEffectState2 = _slicedToArray(_useEffectState, 2), containerWidth = _useEffectState2[0], setContainerWidth = _useEffectState2[1];
@@ -15982,9 +16089,9 @@ function composeProps(originProps, patchProps, isAll) {
15982
16089
  });
15983
16090
  return composedProps;
15984
16091
  }
15985
- var _excluded$H = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
16092
+ var _excluded$I = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
15986
16093
  var Input$6 = function Input(props, ref) {
15987
- 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);
16094
+ 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);
15988
16095
  var inputNode = inputElement || /* @__PURE__ */ React__namespace.createElement("input", null);
15989
16096
  var _inputNode = inputNode, originRef = _inputNode.ref, originProps = _inputNode.props;
15990
16097
  warning$3(!("maxLength" in inputNode.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.");
@@ -17181,11 +17288,11 @@ function useWinClick(open, clickToHide, targetEle, popupEle, mask, maskClosable,
17181
17288
  }
17182
17289
  return onPopupPointerDown;
17183
17290
  }
17184
- 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"];
17291
+ 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"];
17185
17292
  function generateTrigger() {
17186
17293
  var PortalComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Portal;
17187
17294
  var Trigger2 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
17188
- 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);
17295
+ 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);
17189
17296
  var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;
17190
17297
  var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
17191
17298
  useLayoutEffect$1(function() {
@@ -17507,7 +17614,7 @@ function generateTrigger() {
17507
17614
  return Trigger2;
17508
17615
  }
17509
17616
  const Trigger = generateTrigger(Portal);
17510
- var _excluded$F = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
17617
+ var _excluded$G = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
17511
17618
  var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWidth) {
17512
17619
  var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
17513
17620
  return {
@@ -17552,7 +17659,7 @@ var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWi
17552
17659
  var SelectTrigger$1 = function SelectTrigger(props, ref) {
17553
17660
  var prefixCls = props.prefixCls;
17554
17661
  props.disabled;
17555
- 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);
17662
+ 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);
17556
17663
  var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
17557
17664
  var popupNode = popupElement;
17558
17665
  if (dropdownRender) {
@@ -17728,14 +17835,14 @@ function Polite(props) {
17728
17835
  return ["number", "string"].includes(_typeof(label)) ? label : value2;
17729
17836
  }).join(", ")), values.length > MAX_COUNT ? ", ..." : null);
17730
17837
  }
17731
- 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"];
17838
+ 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"];
17732
17839
  var DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
17733
17840
  var isMultiple = function isMultiple2(mode) {
17734
17841
  return mode === "tags" || mode === "multiple";
17735
17842
  };
17736
17843
  var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
17737
17844
  var _customizeRawInputEle;
17738
- 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);
17845
+ 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);
17739
17846
  var multiple = isMultiple(mode);
17740
17847
  var mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox";
17741
17848
  var domProps = _objectSpread2({}, restProps);
@@ -18933,14 +19040,14 @@ function getSpinSize() {
18933
19040
  baseSize = Math.max(baseSize, MIN_SIZE);
18934
19041
  return Math.floor(baseSize);
18935
19042
  }
18936
- var _excluded$D = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
19043
+ var _excluded$E = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
18937
19044
  var EMPTY_DATA$1 = [];
18938
19045
  var ScrollStyle = {
18939
19046
  overflowY: "auto",
18940
19047
  overflowAnchor: "none"
18941
19048
  };
18942
19049
  function RawList(props, ref) {
18943
- 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);
19050
+ 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);
18944
19051
  var getKey2 = React__namespace.useCallback(function(item) {
18945
19052
  if (typeof itemKey2 === "function") {
18946
19053
  return itemKey2(item);
@@ -19339,7 +19446,7 @@ List.displayName = "List";
19339
19446
  function isPlatformMac() {
19340
19447
  return /(mac\sos|macintosh)/i.test(navigator.appVersion);
19341
19448
  }
19342
- var _excluded$C = ["disabled", "title", "children", "style", "className"];
19449
+ var _excluded$D = ["disabled", "title", "children", "style", "className"];
19343
19450
  function isTitleType(content2) {
19344
19451
  return typeof content2 === "string" || typeof content2 === "number";
19345
19452
  }
@@ -19574,7 +19681,7 @@ var OptionList = function OptionList2(_, ref) {
19574
19681
  }
19575
19682
  var disabled2 = data.disabled, title = data.title;
19576
19683
  data.children;
19577
- var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$C);
19684
+ var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$D);
19578
19685
  var passedProps = omit(otherProps, omitFieldNameList);
19579
19686
  var selected = isSelected(value2);
19580
19687
  var mergedDisabled = disabled2 || !selected && overMaxCount;
@@ -19720,9 +19827,9 @@ function useId$1(id2) {
19720
19827
  }, []);
19721
19828
  return id2 || innerId;
19722
19829
  }
19723
- var _excluded$B = ["children", "value"], _excluded2$6 = ["children"];
19830
+ var _excluded$C = ["children", "value"], _excluded2$6 = ["children"];
19724
19831
  function convertNodeToOption(node2) {
19725
- 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);
19832
+ 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);
19726
19833
  return _objectSpread2({
19727
19834
  key,
19728
19835
  value: value2 !== void 0 ? value2 : key,
@@ -19877,13 +19984,13 @@ function warningNullOptions(options, fieldNames) {
19877
19984
  recursiveOptions(options);
19878
19985
  }
19879
19986
  }
19880
- 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"];
19987
+ 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"];
19881
19988
  var OMIT_DOM_PROPS = ["inputValue"];
19882
19989
  function isRawValue(value2) {
19883
19990
  return !value2 || _typeof(value2) !== "object";
19884
19991
  }
19885
19992
  var Select$2 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
19886
- 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);
19993
+ 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);
19887
19994
  var mergedId = useId$1(id2);
19888
19995
  var multiple = isMultiple(mode);
19889
19996
  var childrenAsData = !!(!options && children2);
@@ -20388,7 +20495,7 @@ const genSharedEmptyStyle = (token2) => {
20388
20495
  }
20389
20496
  };
20390
20497
  };
20391
- const useStyle$q = genStyleHooks("Empty", (token2) => {
20498
+ const useStyle$r = genStyleHooks("Empty", (token2) => {
20392
20499
  const {
20393
20500
  componentCls,
20394
20501
  controlHeightLG,
@@ -20402,7 +20509,7 @@ const useStyle$q = genStyleHooks("Empty", (token2) => {
20402
20509
  });
20403
20510
  return genSharedEmptyStyle(emptyToken);
20404
20511
  });
20405
- var __rest$T = function(s, e3) {
20512
+ var __rest$U = function(s, e3) {
20406
20513
  var t2 = {};
20407
20514
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
20408
20515
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -20425,7 +20532,7 @@ const Empty = (props) => {
20425
20532
  style: style2,
20426
20533
  classNames: emptyClassNames,
20427
20534
  styles
20428
- } = props, restProps = __rest$T(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
20535
+ } = props, restProps = __rest$U(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
20429
20536
  const {
20430
20537
  getPrefixCls,
20431
20538
  direction,
@@ -20436,7 +20543,7 @@ const Empty = (props) => {
20436
20543
  image: contextImage
20437
20544
  } = useComponentConfig("empty");
20438
20545
  const prefixCls = getPrefixCls("empty", customizePrefixCls);
20439
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls);
20546
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
20440
20547
  const [locale2] = useLocale$1("Empty");
20441
20548
  const des = typeof description !== "undefined" ? description : locale2 === null || locale2 === void 0 ? void 0 : locale2.description;
20442
20549
  const alt = typeof des === "string" ? des : "empty";
@@ -21135,7 +21242,7 @@ function genSingleStyle(token2) {
21135
21242
  }), "lg")
21136
21243
  ];
21137
21244
  }
21138
- const prepareComponentToken$m = (token2) => {
21245
+ const prepareComponentToken$n = (token2) => {
21139
21246
  const {
21140
21247
  fontSize,
21141
21248
  lineHeight,
@@ -21641,7 +21748,7 @@ const useSelectStyle = genStyleHooks("Select", (token2, {
21641
21748
  selectHeight: token2.controlHeight
21642
21749
  });
21643
21750
  return [genSelectStyle(selectToken), genVariantsStyle$1(selectToken)];
21644
- }, prepareComponentToken$m, {
21751
+ }, prepareComponentToken$n, {
21645
21752
  unitless: {
21646
21753
  optionLineHeight: true,
21647
21754
  optionSelectedFontWeight: true
@@ -21762,7 +21869,7 @@ function usePopupRender(renderFn) {
21762
21869
  function useShowArrow(suffixIcon, showArrow) {
21763
21870
  return showArrow !== void 0 ? showArrow : suffixIcon !== null;
21764
21871
  }
21765
- var __rest$S = function(s, e3) {
21872
+ var __rest$T = function(s, e3) {
21766
21873
  var t2 = {};
21767
21874
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
21768
21875
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -21806,7 +21913,7 @@ const InternalSelect = (props, ref) => {
21806
21913
  onOpenChange,
21807
21914
  styles,
21808
21915
  classNames: classNames$1
21809
- } = 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"]);
21916
+ } = 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"]);
21810
21917
  const {
21811
21918
  getPopupContainer: getContextPopupContainer,
21812
21919
  getPrefixCls,
@@ -21965,11 +22072,11 @@ if (process.env.NODE_ENV !== "production") {
21965
22072
  InternalSelect.displayName = "Select";
21966
22073
  }
21967
22074
  const Select$1 = /* @__PURE__ */ React__namespace.forwardRef(InternalSelect);
21968
- const PurePanel$5 = genPurePanel(Select$1, "dropdownAlign");
22075
+ const PurePanel$6 = genPurePanel(Select$1, "dropdownAlign");
21969
22076
  Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
21970
22077
  Select$1.Option = Option;
21971
22078
  Select$1.OptGroup = OptGroup;
21972
- Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
22079
+ Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
21973
22080
  if (process.env.NODE_ENV !== "production") {
21974
22081
  Select$1.displayName = "Select";
21975
22082
  }
@@ -22190,7 +22297,7 @@ const genGroupStyle$1 = (token2) => {
22190
22297
  }
22191
22298
  };
22192
22299
  };
22193
- const prepareComponentToken$l = (token2) => {
22300
+ const prepareComponentToken$m = (token2) => {
22194
22301
  const {
22195
22302
  controlHeight,
22196
22303
  controlHeightLG,
@@ -22218,7 +22325,7 @@ const prepareComponentToken$l = (token2) => {
22218
22325
  groupBorderColor: colorBorderBg
22219
22326
  };
22220
22327
  };
22221
- const useStyle$p = genStyleHooks("Avatar", (token2) => {
22328
+ const useStyle$q = genStyleHooks("Avatar", (token2) => {
22222
22329
  const {
22223
22330
  colorTextLightSolid,
22224
22331
  colorTextPlaceholder
@@ -22228,8 +22335,8 @@ const useStyle$p = genStyleHooks("Avatar", (token2) => {
22228
22335
  avatarColor: colorTextLightSolid
22229
22336
  });
22230
22337
  return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
22231
- }, prepareComponentToken$l);
22232
- var __rest$R = function(s, e3) {
22338
+ }, prepareComponentToken$m);
22339
+ var __rest$S = function(s, e3) {
22233
22340
  var t2 = {};
22234
22341
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
22235
22342
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -22254,7 +22361,7 @@ const Avatar$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
22254
22361
  crossOrigin,
22255
22362
  gap = 4,
22256
22363
  onError
22257
- } = props, others = __rest$R(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
22364
+ } = props, others = __rest$S(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
22258
22365
  const [scale, setScale] = React__namespace.useState(1);
22259
22366
  const [mounted, setMounted] = React__namespace.useState(false);
22260
22367
  const [isImgExist, setIsImgExist] = React__namespace.useState(true);
@@ -22316,7 +22423,7 @@ const Avatar$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
22316
22423
  }
22317
22424
  const prefixCls = getPrefixCls("avatar", customizePrefixCls);
22318
22425
  const rootCls = useCSSVarCls(prefixCls);
22319
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, rootCls);
22426
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
22320
22427
  const sizeCls = classNames({
22321
22428
  [`${prefixCls}-lg`]: size === "large",
22322
22429
  [`${prefixCls}-sm`]: size === "small"
@@ -22479,11 +22586,11 @@ var placements$2 = {
22479
22586
  targetOffset: targetOffset$1
22480
22587
  }
22481
22588
  };
22482
- 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"];
22589
+ 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"];
22483
22590
  var Tooltip$3 = function Tooltip(props, ref) {
22484
22591
  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;
22485
22592
  props.arrowContent;
22486
- 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);
22593
+ 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);
22487
22594
  var mergedId = useId$2(id2);
22488
22595
  var triggerRef = React.useRef(null);
22489
22596
  React.useImperativeHandle(ref, function() {
@@ -23024,7 +23131,7 @@ const genTooltipStyle = (token2) => {
23024
23131
  }
23025
23132
  ];
23026
23133
  };
23027
- const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
23134
+ const prepareComponentToken$l = (token2) => Object.assign(Object.assign({
23028
23135
  zIndexPopup: token2.zIndexPopupBase + 70
23029
23136
  }, getArrowOffsetToken({
23030
23137
  contentRadius: token2.borderRadius,
@@ -23032,7 +23139,7 @@ const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
23032
23139
  })), getArrowToken(merge$1(token2, {
23033
23140
  borderRadiusOuter: Math.min(token2.borderRadiusOuter, 4)
23034
23141
  })));
23035
- const useStyle$o = (prefixCls, injectStyle = true) => {
23142
+ const useStyle$p = (prefixCls, injectStyle = true) => {
23036
23143
  const useStyle2 = genStyleHooks("Tooltip", (token2) => {
23037
23144
  const {
23038
23145
  borderRadius: borderRadius2,
@@ -23047,7 +23154,7 @@ const useStyle$o = (prefixCls, injectStyle = true) => {
23047
23154
  tooltipBg: colorBgSpotlight
23048
23155
  });
23049
23156
  return [genTooltipStyle(TooltipToken), initZoomMotion(token2, "zoom-big-fast")];
23050
- }, prepareComponentToken$k, {
23157
+ }, prepareComponentToken$l, {
23051
23158
  resetStyle: false,
23052
23159
  // Popover use Tooltip as internal component. We do not need to handle this.
23053
23160
  injectStyle
@@ -23082,7 +23189,7 @@ function parseColor(prefixCls, color2) {
23082
23189
  arrowStyle
23083
23190
  };
23084
23191
  }
23085
- const PurePanel$4 = (props) => {
23192
+ const PurePanel$5 = (props) => {
23086
23193
  const {
23087
23194
  prefixCls: customizePrefixCls,
23088
23195
  className,
@@ -23095,7 +23202,7 @@ const PurePanel$4 = (props) => {
23095
23202
  getPrefixCls
23096
23203
  } = React__namespace.useContext(ConfigContext);
23097
23204
  const prefixCls = getPrefixCls("tooltip", customizePrefixCls);
23098
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23205
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls);
23099
23206
  const colorInfo = parseColor(prefixCls, color2);
23100
23207
  const arrowContentStyle = colorInfo.arrowStyle;
23101
23208
  const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);
@@ -23111,7 +23218,7 @@ const PurePanel$4 = (props) => {
23111
23218
  overlayInnerStyle: formattedOverlayInnerStyle
23112
23219
  }), title)));
23113
23220
  };
23114
- var __rest$Q = function(s, e3) {
23221
+ var __rest$R = function(s, e3) {
23115
23222
  var t2 = {};
23116
23223
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23117
23224
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23148,7 +23255,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
23148
23255
  overlayClassName,
23149
23256
  styles,
23150
23257
  classNames: tooltipClassNames
23151
- } = 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"]);
23258
+ } = 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"]);
23152
23259
  const mergedShowArrow = !!arrow;
23153
23260
  const [, token2] = useToken();
23154
23261
  const {
@@ -23232,7 +23339,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
23232
23339
  const child = /* @__PURE__ */ React__namespace.isValidElement(children2) && !isFragment(children2) ? children2 : /* @__PURE__ */ React__namespace.createElement("span", null, children2);
23233
23340
  const childProps = child.props;
23234
23341
  const childCls = !childProps.className || typeof childProps.className === "string" ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;
23235
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls, !injectFromPopover);
23342
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, !injectFromPopover);
23236
23343
  const colorInfo = parseColor(prefixCls, color2);
23237
23344
  const arrowContentStyle = colorInfo.arrowStyle;
23238
23345
  const rootClassNames = classNames(overlayClassName, {
@@ -23282,7 +23389,7 @@ const Tooltip$2 = InternalTooltip;
23282
23389
  if (process.env.NODE_ENV !== "production") {
23283
23390
  Tooltip$2.displayName = "Tooltip";
23284
23391
  }
23285
- Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
23392
+ Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
23286
23393
  const genBaseStyle$5 = (token2) => {
23287
23394
  const {
23288
23395
  componentCls,
@@ -23390,7 +23497,7 @@ const genColorStyle = (token2) => {
23390
23497
  })
23391
23498
  };
23392
23499
  };
23393
- const prepareComponentToken$j = (token2) => {
23500
+ const prepareComponentToken$k = (token2) => {
23394
23501
  const {
23395
23502
  lineWidth,
23396
23503
  controlHeight,
@@ -23423,7 +23530,7 @@ const prepareComponentToken$j = (token2) => {
23423
23530
  innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0
23424
23531
  });
23425
23532
  };
23426
- const useStyle$n = genStyleHooks("Popover", (token2) => {
23533
+ const useStyle$o = genStyleHooks("Popover", (token2) => {
23427
23534
  const {
23428
23535
  colorBgElevated,
23429
23536
  colorText
@@ -23433,11 +23540,11 @@ const useStyle$n = genStyleHooks("Popover", (token2) => {
23433
23540
  popoverColor: colorText
23434
23541
  });
23435
23542
  return [genBaseStyle$5(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
23436
- }, prepareComponentToken$j, {
23543
+ }, prepareComponentToken$k, {
23437
23544
  resetStyle: false,
23438
23545
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
23439
23546
  });
23440
- var __rest$P = function(s, e3) {
23547
+ var __rest$Q = function(s, e3) {
23441
23548
  var t2 = {};
23442
23549
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23443
23550
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23487,23 +23594,23 @@ const RawPurePanel = (props) => {
23487
23594
  content: contentNode
23488
23595
  })));
23489
23596
  };
23490
- const PurePanel$3 = (props) => {
23597
+ const PurePanel$4 = (props) => {
23491
23598
  const {
23492
23599
  prefixCls: customizePrefixCls,
23493
23600
  className
23494
- } = props, restProps = __rest$P(props, ["prefixCls", "className"]);
23601
+ } = props, restProps = __rest$Q(props, ["prefixCls", "className"]);
23495
23602
  const {
23496
23603
  getPrefixCls
23497
23604
  } = React__namespace.useContext(ConfigContext);
23498
23605
  const prefixCls = getPrefixCls("popover", customizePrefixCls);
23499
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
23606
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23500
23607
  return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(RawPurePanel, Object.assign({}, restProps, {
23501
23608
  prefixCls,
23502
23609
  hashId,
23503
23610
  className: classNames(className, cssVarCls)
23504
23611
  })));
23505
23612
  };
23506
- var __rest$O = function(s, e3) {
23613
+ var __rest$P = function(s, e3) {
23507
23614
  var t2 = {};
23508
23615
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23509
23616
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23527,7 +23634,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
23527
23634
  overlayStyle = {},
23528
23635
  styles,
23529
23636
  classNames: popoverClassNames
23530
- } = props, otherProps = __rest$O(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
23637
+ } = props, otherProps = __rest$P(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
23531
23638
  const {
23532
23639
  getPrefixCls,
23533
23640
  className: contextClassName,
@@ -23536,7 +23643,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
23536
23643
  styles: contextStyles
23537
23644
  } = useComponentConfig("popover");
23538
23645
  const prefixCls = getPrefixCls("popover", customizePrefixCls);
23539
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
23646
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
23540
23647
  const rootPrefixCls = getPrefixCls();
23541
23648
  const rootClassNames = classNames(overlayClassName, hashId, cssVarCls, contextClassName, contextClassNames.root, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.root);
23542
23649
  const bodyClassNames = classNames(contextClassNames.body, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.body);
@@ -23594,7 +23701,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
23594
23701
  })));
23595
23702
  });
23596
23703
  const Popover$2 = InternalPopover;
23597
- Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$3;
23704
+ Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
23598
23705
  if (process.env.NODE_ENV !== "production") {
23599
23706
  Popover$2.displayName = "Popover";
23600
23707
  }
@@ -23640,7 +23747,7 @@ const AvatarGroup = (props) => {
23640
23747
  const prefixCls = getPrefixCls("avatar", customizePrefixCls);
23641
23748
  const groupPrefixCls = `${prefixCls}-group`;
23642
23749
  const rootCls = useCSSVarCls(prefixCls);
23643
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, rootCls);
23750
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
23644
23751
  const cls = classNames(groupPrefixCls, {
23645
23752
  [`${groupPrefixCls}-rtl`]: direction === "rtl"
23646
23753
  }, cssVarCls, rootCls, className, rootClassName, hashId);
@@ -23816,10 +23923,10 @@ var placements$1 = {
23816
23923
  targetOffset
23817
23924
  }
23818
23925
  };
23819
- var _excluded$y = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
23926
+ var _excluded$z = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
23820
23927
  function Dropdown$2(props, ref) {
23821
23928
  var _children$props;
23822
- 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);
23929
+ 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);
23823
23930
  var _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1];
23824
23931
  var mergedVisible = "visible" in props ? visible : triggerVisible;
23825
23932
  var triggerRef = React.useRef(null);
@@ -23917,7 +24024,7 @@ function useMenuId(eventKey) {
23917
24024
  var id2 = React__namespace.useContext(IdContext);
23918
24025
  return getMenuId(id2, eventKey);
23919
24026
  }
23920
- var _excluded$x = ["children", "locked"];
24027
+ var _excluded$y = ["children", "locked"];
23921
24028
  var MenuContext$1 = /* @__PURE__ */ React__namespace.createContext(null);
23922
24029
  function mergeProps(origin, target) {
23923
24030
  var clone = _objectSpread2({}, origin);
@@ -23930,7 +24037,7 @@ function mergeProps(origin, target) {
23930
24037
  return clone;
23931
24038
  }
23932
24039
  function InheritableContextProvider(_ref) {
23933
- var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$x);
24040
+ var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$y);
23934
24041
  var context = React__namespace.useContext(MenuContext$1);
23935
24042
  var inheritableContext = useMemo(function() {
23936
24043
  return mergeProps(context, restProps);
@@ -24360,9 +24467,9 @@ function Icon$2(_ref) {
24360
24467
  }
24361
24468
  return iconNode || children2 || null;
24362
24469
  }
24363
- var _excluded$w = ["item"];
24470
+ var _excluded$x = ["item"];
24364
24471
  function warnItemProp(_ref) {
24365
- var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$w);
24472
+ var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$x);
24366
24473
  Object.defineProperty(restInfo, "item", {
24367
24474
  get: function get2() {
24368
24475
  warningOnce(false, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future.");
@@ -24371,7 +24478,7 @@ function warnItemProp(_ref) {
24371
24478
  });
24372
24479
  return restInfo;
24373
24480
  }
24374
- var _excluded$v = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
24481
+ var _excluded$w = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
24375
24482
  var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
24376
24483
  _inherits(LegacyMenuItem2, _React$Component);
24377
24484
  var _super = _createSuper(LegacyMenuItem2);
@@ -24382,7 +24489,7 @@ var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
24382
24489
  _createClass(LegacyMenuItem2, [{
24383
24490
  key: "render",
24384
24491
  value: function render2() {
24385
- var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$v);
24492
+ var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$w);
24386
24493
  var passedProps = omit(restProps, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
24387
24494
  warningOnce(!attribute, "`attribute` of Menu.Item is deprecated. Please pass attribute directly.");
24388
24495
  return /* @__PURE__ */ React__namespace.createElement(ForwardOverflow.Item, _extends$1({}, attribute, {
@@ -24492,9 +24599,9 @@ function MenuItem$2(props, ref) {
24492
24599
  }));
24493
24600
  }
24494
24601
  const MenuItem$3 = /* @__PURE__ */ React__namespace.forwardRef(MenuItem$2);
24495
- var _excluded$u = ["className", "children"];
24602
+ var _excluded$v = ["className", "children"];
24496
24603
  var InternalSubMenuList = function InternalSubMenuList2(_ref, ref) {
24497
- var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$u);
24604
+ var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$v);
24498
24605
  var _React$useContext = React__namespace.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, rtl = _React$useContext.rtl;
24499
24606
  return /* @__PURE__ */ React__namespace.createElement("ul", _extends$1({
24500
24607
  className: classNames(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === "inline" ? "inline" : "vertical"), className),
@@ -24707,9 +24814,9 @@ function InlineSubMenuList(_ref) {
24707
24814
  }, children2);
24708
24815
  }));
24709
24816
  }
24710
- 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"];
24817
+ 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"];
24711
24818
  var InternalSubMenu = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
24712
- 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);
24819
+ 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);
24713
24820
  var domDataId = useMenuId(eventKey);
24714
24821
  var _React$useContext = React__namespace.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;
24715
24822
  var _React$useContext2 = React__namespace.useContext(PrivateContext), _internalRenderSubMenuItem = _React$useContext2._internalRenderSubMenuItem;
@@ -24909,11 +25016,11 @@ function Divider(_ref) {
24909
25016
  style: style2
24910
25017
  });
24911
25018
  }
24912
- var _excluded$s = ["className", "title", "eventKey", "children"];
25019
+ var _excluded$t = ["className", "title", "eventKey", "children"];
24913
25020
  var InternalMenuItemGroup = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
24914
25021
  var className = props.className, title = props.title;
24915
25022
  props.eventKey;
24916
- var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$s);
25023
+ var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$t);
24917
25024
  var _React$useContext = React__namespace.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls;
24918
25025
  var groupPrefixCls = "".concat(prefixCls, "-item-group");
24919
25026
  return /* @__PURE__ */ React__namespace.createElement("li", _extends$1({
@@ -24948,12 +25055,12 @@ var MenuItemGroup = /* @__PURE__ */ React__namespace.forwardRef(function(props,
24948
25055
  if (process.env.NODE_ENV !== "production") {
24949
25056
  MenuItemGroup.displayName = "MenuItemGroup";
24950
25057
  }
24951
- var _excluded$r = ["label", "children", "key", "type", "extra"];
25058
+ var _excluded$s = ["label", "children", "key", "type", "extra"];
24952
25059
  function convertItemsToNodes(list2, components2, prefixCls) {
24953
25060
  var MergedMenuItem = components2.item, MergedMenuItemGroup = components2.group, MergedSubMenu = components2.submenu, MergedDivider = components2.divider;
24954
25061
  return (list2 || []).map(function(opt, index2) {
24955
25062
  if (opt && _typeof(opt) === "object") {
24956
- var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$r);
25063
+ var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$s);
24957
25064
  var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index2);
24958
25065
  if (children2 || type4 === "group") {
24959
25066
  if (type4 === "group") {
@@ -25000,11 +25107,11 @@ function parseItems(children2, items, keyPath, components2, prefixCls) {
25000
25107
  }
25001
25108
  return parseChildren(childNodes, keyPath);
25002
25109
  }
25003
- 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"];
25110
+ 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"];
25004
25111
  var EMPTY_LIST$4 = [];
25005
25112
  var Menu$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
25006
25113
  var _childList$;
25007
- 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);
25114
+ 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);
25008
25115
  var _React$useMemo = React__namespace.useMemo(function() {
25009
25116
  return [parseItems(children2, items, EMPTY_LIST$4, _internalComponents, prefixCls), parseItems(children2, items, EMPTY_LIST$4, {}, prefixCls)];
25010
25117
  }, [children2, items, _internalComponents]), _React$useMemo2 = _slicedToArray(_React$useMemo, 2), childList = _React$useMemo2[0], measureChildList = _React$useMemo2[1];
@@ -25369,7 +25476,7 @@ const genLayoutStyle = (token2) => {
25369
25476
  }
25370
25477
  };
25371
25478
  };
25372
- const prepareComponentToken$i = (token2) => {
25479
+ const prepareComponentToken$j = (token2) => {
25373
25480
  const {
25374
25481
  colorBgLayout,
25375
25482
  controlHeight,
@@ -25405,7 +25512,7 @@ const prepareComponentToken$i = (token2) => {
25405
25512
  };
25406
25513
  };
25407
25514
  const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
25408
- genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$i, {
25515
+ genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$j, {
25409
25516
  deprecatedTokens: DEPRECATED_TOKENS
25410
25517
  });
25411
25518
  const genSiderStyle = (token2) => {
@@ -25515,10 +25622,10 @@ const genSiderStyle = (token2) => {
25515
25622
  }
25516
25623
  };
25517
25624
  };
25518
- const useStyle$m = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$i, {
25625
+ const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
25519
25626
  deprecatedTokens: DEPRECATED_TOKENS
25520
25627
  });
25521
- var __rest$N = function(s, e3) {
25628
+ var __rest$O = function(s, e3) {
25522
25629
  var t2 = {};
25523
25630
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25524
25631
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25560,7 +25667,7 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
25560
25667
  breakpoint,
25561
25668
  onCollapse,
25562
25669
  onBreakpoint
25563
- } = props, otherProps = __rest$N(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
25670
+ } = props, otherProps = __rest$O(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
25564
25671
  const {
25565
25672
  siderHook
25566
25673
  } = React.useContext(LayoutContext);
@@ -25582,7 +25689,7 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
25582
25689
  direction
25583
25690
  } = React.useContext(ConfigContext);
25584
25691
  const prefixCls = getPrefixCls("layout-sider", customizePrefixCls);
25585
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls);
25692
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
25586
25693
  const responsiveHandlerRef = React.useRef(null);
25587
25694
  responsiveHandlerRef.current = (mql) => {
25588
25695
  setBelow(mql.matches);
@@ -25681,7 +25788,7 @@ const MenuContext = /* @__PURE__ */ React.createContext({
25681
25788
  firstLevel: true,
25682
25789
  inlineCollapsed: false
25683
25790
  });
25684
- var __rest$M = function(s, e3) {
25791
+ var __rest$N = function(s, e3) {
25685
25792
  var t2 = {};
25686
25793
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25687
25794
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25694,7 +25801,7 @@ const MenuDivider = (props) => {
25694
25801
  prefixCls: customizePrefixCls,
25695
25802
  className,
25696
25803
  dashed
25697
- } = props, restProps = __rest$M(props, ["prefixCls", "className", "dashed"]);
25804
+ } = props, restProps = __rest$N(props, ["prefixCls", "className", "dashed"]);
25698
25805
  const {
25699
25806
  getPrefixCls
25700
25807
  } = React__namespace.useContext(ConfigContext);
@@ -25775,7 +25882,7 @@ const MenuItem$1 = (props) => {
25775
25882
  }
25776
25883
  return returnNode;
25777
25884
  };
25778
- var __rest$L = function(s, e3) {
25885
+ var __rest$M = function(s, e3) {
25779
25886
  var t2 = {};
25780
25887
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25781
25888
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25787,7 +25894,7 @@ const OverrideContext = /* @__PURE__ */ React__namespace.createContext(null);
25787
25894
  const OverrideProvider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
25788
25895
  const {
25789
25896
  children: children2
25790
- } = props, restProps = __rest$L(props, ["children"]);
25897
+ } = props, restProps = __rest$M(props, ["children"]);
25791
25898
  const override = React__namespace.useContext(OverrideContext);
25792
25899
  const context = React__namespace.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
25793
25900
  override,
@@ -26614,7 +26721,7 @@ const getBaseStyle = (token2) => {
26614
26721
  }
26615
26722
  ];
26616
26723
  };
26617
- const prepareComponentToken$h = (token2) => {
26724
+ const prepareComponentToken$i = (token2) => {
26618
26725
  var _a, _b, _c;
26619
26726
  const {
26620
26727
  colorPrimary,
@@ -26732,7 +26839,7 @@ const prepareComponentToken$h = (token2) => {
26732
26839
  itemWidth: activeBarWidth ? `calc(100% + ${activeBarBorderWidth}px)` : `calc(100% - ${itemMarginInline * 2}px)`
26733
26840
  };
26734
26841
  };
26735
- const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26842
+ const useStyle$m = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26736
26843
  const useStyle2 = genStyleHooks("Menu", (token2) => {
26737
26844
  const {
26738
26845
  colorBgElevated,
@@ -26811,7 +26918,7 @@ const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
26811
26918
  initSlideMotion(menuToken, "slide-down"),
26812
26919
  initZoomMotion(menuToken, "zoom-big")
26813
26920
  ];
26814
- }, prepareComponentToken$h, {
26921
+ }, prepareComponentToken$i, {
26815
26922
  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"]],
26816
26923
  // Dropdown will handle menu style self. We do not need to handle this.
26817
26924
  injectStyle,
@@ -26865,7 +26972,7 @@ const SubMenu = (props) => {
26865
26972
  }, props.popupStyle)
26866
26973
  })));
26867
26974
  };
26868
- var __rest$K = function(s, e3) {
26975
+ var __rest$L = function(s, e3) {
26869
26976
  var t2 = {};
26870
26977
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
26871
26978
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -26906,7 +27013,7 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
26906
27013
  selectable,
26907
27014
  onClick,
26908
27015
  overflowedIndicatorPopupClassName
26909
- } = props, restProps = __rest$K(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
27016
+ } = props, restProps = __rest$L(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
26910
27017
  const passedProps = omit(restProps, ["collapsedWidth"]);
26911
27018
  if (process.env.NODE_ENV !== "production") {
26912
27019
  const warning3 = devUseWarning("Menu");
@@ -26935,7 +27042,7 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
26935
27042
  };
26936
27043
  const prefixCls = getPrefixCls("menu", customizePrefixCls || overrideObj.prefixCls);
26937
27044
  const rootCls = useCSSVarCls(prefixCls);
26938
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls, !override);
27045
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls, rootCls, !override);
26939
27046
  const menuClassName = classNames(`${prefixCls}-${theme}`, menu === null || menu === void 0 ? void 0 : menu.className, className);
26940
27047
  const mergedExpandIcon = React__namespace.useMemo(() => {
26941
27048
  var _a2, _b;
@@ -27298,14 +27405,14 @@ const genBaseStyle$4 = (token2) => {
27298
27405
  [initSlideMotion(token2, "slide-up"), initSlideMotion(token2, "slide-down"), initMoveMotion(token2, "move-up"), initMoveMotion(token2, "move-down"), initZoomMotion(token2, "zoom-big")]
27299
27406
  ];
27300
27407
  };
27301
- const prepareComponentToken$g = (token2) => Object.assign(Object.assign({
27408
+ const prepareComponentToken$h = (token2) => Object.assign(Object.assign({
27302
27409
  zIndexPopup: token2.zIndexPopupBase + 50,
27303
27410
  paddingBlock: (token2.controlHeight - token2.fontSize * token2.lineHeight) / 2
27304
27411
  }, getArrowOffsetToken({
27305
27412
  contentRadius: token2.borderRadiusLG,
27306
27413
  limitVerticalRadius: true
27307
27414
  })), getArrowToken(token2));
27308
- const useStyle$k = genStyleHooks("Dropdown", (token2) => {
27415
+ const useStyle$l = genStyleHooks("Dropdown", (token2) => {
27309
27416
  const {
27310
27417
  marginXXS,
27311
27418
  sizePopupArrow,
@@ -27318,7 +27425,7 @@ const useStyle$k = genStyleHooks("Dropdown", (token2) => {
27318
27425
  dropdownEdgeChildPadding: paddingXXS
27319
27426
  });
27320
27427
  return [genBaseStyle$4(dropdownToken), genStatusStyle(dropdownToken)];
27321
- }, prepareComponentToken$g, {
27428
+ }, prepareComponentToken$h, {
27322
27429
  resetStyle: false
27323
27430
  });
27324
27431
  const Dropdown$1 = (props) => {
@@ -27394,7 +27501,7 @@ const Dropdown$1 = (props) => {
27394
27501
  }, [placement, direction]);
27395
27502
  const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
27396
27503
  const rootCls = useCSSVarCls(prefixCls);
27397
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls, rootCls);
27504
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls);
27398
27505
  const [, token2] = useToken();
27399
27506
  const child = React__namespace.Children.only(isPrimitive(children2) ? /* @__PURE__ */ React__namespace.createElement("span", null, children2) : children2);
27400
27507
  const popupTrigger = cloneElement(child, {
@@ -27496,8 +27603,8 @@ const Dropdown$1 = (props) => {
27496
27603
  }
27497
27604
  return wrapCSSVar(renderNode);
27498
27605
  };
27499
- const PurePanel$2 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
27500
- const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$2, Object.assign({}, props), /* @__PURE__ */ React__namespace.createElement("span", null));
27606
+ const PurePanel$3 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
27607
+ const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$3, Object.assign({}, props), /* @__PURE__ */ React__namespace.createElement("span", null));
27501
27608
  Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
27502
27609
  if (process.env.NODE_ENV !== "production") {
27503
27610
  Dropdown$1.displayName = "Dropdown";
@@ -27515,7 +27622,7 @@ const BreadcrumbSeparator = ({
27515
27622
  }, children2 === "" ? children2 : children2 || "/");
27516
27623
  };
27517
27624
  BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
27518
- var __rest$J = function(s, e3) {
27625
+ var __rest$K = function(s, e3) {
27519
27626
  var t2 = {};
27520
27627
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27521
27628
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27537,7 +27644,7 @@ function renderItem(prefixCls, item, children2, href) {
27537
27644
  const {
27538
27645
  className,
27539
27646
  onClick
27540
- } = item, restItem = __rest$J(item, ["className", "onClick"]);
27647
+ } = item, restItem = __rest$K(item, ["className", "onClick"]);
27541
27648
  const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
27542
27649
  data: true,
27543
27650
  aria: true
@@ -27564,7 +27671,7 @@ function useItemRender(prefixCls, itemRender) {
27564
27671
  };
27565
27672
  return mergedItemRender;
27566
27673
  }
27567
- var __rest$I = function(s, e3) {
27674
+ var __rest$J = function(s, e3) {
27568
27675
  var t2 = {};
27569
27676
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27570
27677
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27592,7 +27699,7 @@ const InternalBreadcrumbItem = (props) => {
27592
27699
  if (menu) {
27593
27700
  const _a = menu || {}, {
27594
27701
  items
27595
- } = _a, menuProps = __rest$I(_a, ["items"]);
27702
+ } = _a, menuProps = __rest$J(_a, ["items"]);
27596
27703
  mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
27597
27704
  items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
27598
27705
  var {
@@ -27600,7 +27707,7 @@ const InternalBreadcrumbItem = (props) => {
27600
27707
  title,
27601
27708
  label,
27602
27709
  path: path2
27603
- } = _a2, itemProps = __rest$I(_a2, ["key", "title", "label", "path"]);
27710
+ } = _a2, itemProps = __rest$J(_a2, ["key", "title", "label", "path"]);
27604
27711
  let mergedLabel = label !== null && label !== void 0 ? label : title;
27605
27712
  if (path2) {
27606
27713
  mergedLabel = /* @__PURE__ */ React__namespace.createElement("a", {
@@ -27635,7 +27742,7 @@ const BreadcrumbItem = (props) => {
27635
27742
  prefixCls: customizePrefixCls,
27636
27743
  children: children2,
27637
27744
  href
27638
- } = props, restProps = __rest$I(props, ["prefixCls", "children", "href"]);
27745
+ } = props, restProps = __rest$J(props, ["prefixCls", "children", "href"]);
27639
27746
  const {
27640
27747
  getPrefixCls
27641
27748
  } = React__namespace.useContext(ConfigContext);
@@ -27723,7 +27830,7 @@ const genBreadcrumbStyle = (token2) => {
27723
27830
  })
27724
27831
  };
27725
27832
  };
27726
- const prepareComponentToken$f = (token2) => ({
27833
+ const prepareComponentToken$g = (token2) => ({
27727
27834
  itemColor: token2.colorTextDescription,
27728
27835
  lastItemColor: token2.colorText,
27729
27836
  iconFontSize: token2.fontSize,
@@ -27732,11 +27839,11 @@ const prepareComponentToken$f = (token2) => ({
27732
27839
  separatorColor: token2.colorTextDescription,
27733
27840
  separatorMargin: token2.marginXS
27734
27841
  });
27735
- const useStyle$j = genStyleHooks("Breadcrumb", (token2) => {
27842
+ const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
27736
27843
  const breadcrumbToken = merge$1(token2, {});
27737
27844
  return genBreadcrumbStyle(breadcrumbToken);
27738
- }, prepareComponentToken$f);
27739
- var __rest$H = function(s, e3) {
27845
+ }, prepareComponentToken$g);
27846
+ var __rest$I = function(s, e3) {
27740
27847
  var t2 = {};
27741
27848
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27742
27849
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27748,7 +27855,7 @@ function route2item(route) {
27748
27855
  const {
27749
27856
  breadcrumbName,
27750
27857
  children: children2
27751
- } = route, rest = __rest$H(route, ["breadcrumbName", "children"]);
27858
+ } = route, rest = __rest$I(route, ["breadcrumbName", "children"]);
27752
27859
  const clone = Object.assign({
27753
27860
  title: breadcrumbName
27754
27861
  }, rest);
@@ -27757,7 +27864,7 @@ function route2item(route) {
27757
27864
  items: children2.map((_a) => {
27758
27865
  var {
27759
27866
  breadcrumbName: itemBreadcrumbName
27760
- } = _a, itemProps = __rest$H(_a, ["breadcrumbName"]);
27867
+ } = _a, itemProps = __rest$I(_a, ["breadcrumbName"]);
27761
27868
  return Object.assign(Object.assign({}, itemProps), {
27762
27869
  title: itemBreadcrumbName
27763
27870
  });
@@ -27777,7 +27884,7 @@ function useItems(items, routes) {
27777
27884
  return null;
27778
27885
  }, [items, routes]);
27779
27886
  }
27780
- var __rest$G = function(s, e3) {
27887
+ var __rest$H = function(s, e3) {
27781
27888
  var t2 = {};
27782
27889
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27783
27890
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27807,7 +27914,7 @@ const Breadcrumb$2 = (props) => {
27807
27914
  children: children2,
27808
27915
  itemRender,
27809
27916
  params = {}
27810
- } = props, restProps = __rest$G(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
27917
+ } = props, restProps = __rest$H(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
27811
27918
  const {
27812
27919
  getPrefixCls,
27813
27920
  direction,
@@ -27815,7 +27922,7 @@ const Breadcrumb$2 = (props) => {
27815
27922
  } = React__namespace.useContext(ConfigContext);
27816
27923
  let crumbs;
27817
27924
  const prefixCls = getPrefixCls("breadcrumb", customizePrefixCls);
27818
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls);
27925
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls);
27819
27926
  const mergedItems = useItems(items, legacyRoutes);
27820
27927
  if (process.env.NODE_ENV !== "production") {
27821
27928
  const warning3 = devUseWarning("Breadcrumb");
@@ -31625,9 +31732,9 @@ function useRootProps(props) {
31625
31732
  return pickProps(props, propNames);
31626
31733
  }, [props]);
31627
31734
  }
31628
- var _excluded$p = ["icon", "type"], _excluded2$3 = ["onClear"];
31735
+ var _excluded$q = ["icon", "type"], _excluded2$3 = ["onClear"];
31629
31736
  function Icon$1(props) {
31630
- var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$p);
31737
+ var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$q);
31631
31738
  var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
31632
31739
  return icon ? /* @__PURE__ */ React__namespace.createElement("span", _extends$1({
31633
31740
  className: "".concat(prefixCls, "-").concat(type4)
@@ -31747,11 +31854,11 @@ function getMaskRange(key) {
31747
31854
  };
31748
31855
  return PresetRange[key];
31749
31856
  }
31750
- var _excluded$o = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
31857
+ var _excluded$p = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
31751
31858
  var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
31752
31859
  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;
31753
31860
  props.onInput;
31754
- 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);
31861
+ 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);
31755
31862
  var value2 = props.value, onFocus = props.onFocus, onBlur = props.onBlur, onMouseUp = props.onMouseUp;
31756
31863
  var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp;
31757
31864
  var inputPrefixCls = "".concat(prefixCls, "-input");
@@ -31977,7 +32084,7 @@ var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
31977
32084
  if (process.env.NODE_ENV !== "production") {
31978
32085
  Input$5.displayName = "Input";
31979
32086
  }
31980
- 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"];
32087
+ 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"];
31981
32088
  function RangeSelector(props, ref) {
31982
32089
  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;
31983
32090
  props.activeHelp;
@@ -32005,7 +32112,7 @@ function RangeSelector(props, ref) {
32005
32112
  var _onMouseDown = props.onMouseDown;
32006
32113
  props.required;
32007
32114
  props["aria-required"];
32008
- var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$n);
32115
+ var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$o);
32009
32116
  var rtl = direction === "rtl";
32010
32117
  var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
32011
32118
  var ids = React__namespace.useMemo(function() {
@@ -32519,7 +32626,7 @@ function MultipleDates(props) {
32519
32626
  className: "".concat(prefixCls, "-selection-placeholder")
32520
32627
  }, placeholder));
32521
32628
  }
32522
- 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"];
32629
+ 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"];
32523
32630
  function SingleSelector2(props, ref) {
32524
32631
  props.id;
32525
32632
  var open = props.open, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon;
@@ -32543,7 +32650,7 @@ function SingleSelector2(props, ref) {
32543
32650
  var _onMouseDown = props.onMouseDown;
32544
32651
  props.required;
32545
32652
  props["aria-required"];
32546
- var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$m);
32653
+ var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$n);
32547
32654
  var rtl = direction === "rtl";
32548
32655
  var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
32549
32656
  var rootRef = React__namespace.useRef();
@@ -32946,9 +33053,9 @@ const RadioGroupContext = /* @__PURE__ */ React__namespace.createContext(null);
32946
33053
  const RadioGroupContextProvider = RadioGroupContext.Provider;
32947
33054
  const RadioOptionTypeContext = /* @__PURE__ */ React__namespace.createContext(null);
32948
33055
  const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
32949
- var _excluded$l = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
33056
+ var _excluded$m = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
32950
33057
  var Checkbox$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
32951
- 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);
33058
+ 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);
32952
33059
  var inputRef = React.useRef(null);
32953
33060
  var holderRef = React.useRef(null);
32954
33061
  var _useMergedState = useMergedState(defaultChecked, {
@@ -33422,7 +33529,7 @@ const getRadioButtonStyle = (token2) => {
33422
33529
  }
33423
33530
  };
33424
33531
  };
33425
- const prepareComponentToken$e = (token2) => {
33532
+ const prepareComponentToken$f = (token2) => {
33426
33533
  const {
33427
33534
  wireframe,
33428
33535
  padding,
@@ -33464,7 +33571,7 @@ const prepareComponentToken$e = (token2) => {
33464
33571
  radioBgColor: wireframe ? colorBgContainer : colorPrimary
33465
33572
  };
33466
33573
  };
33467
- const useStyle$i = genStyleHooks("Radio", (token2) => {
33574
+ const useStyle$j = genStyleHooks("Radio", (token2) => {
33468
33575
  const {
33469
33576
  controlOutline,
33470
33577
  controlOutlineWidth
@@ -33476,13 +33583,13 @@ const useStyle$i = genStyleHooks("Radio", (token2) => {
33476
33583
  radioButtonFocusShadow
33477
33584
  });
33478
33585
  return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];
33479
- }, prepareComponentToken$e, {
33586
+ }, prepareComponentToken$f, {
33480
33587
  unitless: {
33481
33588
  radioSize: true,
33482
33589
  dotSize: true
33483
33590
  }
33484
33591
  });
33485
- var __rest$F = function(s, e3) {
33592
+ var __rest$G = function(s, e3) {
33486
33593
  var t2 = {};
33487
33594
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33488
33595
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33520,12 +33627,12 @@ const InternalRadio = (props, ref) => {
33520
33627
  children: children2,
33521
33628
  style: style2,
33522
33629
  title
33523
- } = props, restProps = __rest$F(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
33630
+ } = props, restProps = __rest$G(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
33524
33631
  const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
33525
33632
  const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
33526
33633
  const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
33527
33634
  const rootCls = useCSSVarCls(radioPrefixCls);
33528
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(radioPrefixCls, rootCls);
33635
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(radioPrefixCls, rootCls);
33529
33636
  const radioProps = Object.assign({}, restProps);
33530
33637
  const disabled2 = React__namespace.useContext(DisabledContext);
33531
33638
  if (groupContext) {
@@ -33601,7 +33708,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
33601
33708
  }
33602
33709
  return status;
33603
33710
  }
33604
- var __rest$E = function(s, e3) {
33711
+ var __rest$F = function(s, e3) {
33605
33712
  var t2 = {};
33606
33713
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33607
33714
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33641,7 +33748,7 @@ function useForm(form) {
33641
33748
  scrollToField: (name2, options = {}) => {
33642
33749
  const {
33643
33750
  focus
33644
- } = options, restOpt = __rest$E(options, ["focus"]);
33751
+ } = options, restOpt = __rest$F(options, ["focus"]);
33645
33752
  const node2 = getFieldDOMNode(name2, wrapForm);
33646
33753
  if (node2) {
33647
33754
  e(node2, Object.assign({
@@ -33716,7 +33823,7 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
33716
33823
  const prefixCls = getPrefixCls("radio", customizePrefixCls);
33717
33824
  const groupPrefixCls = `${prefixCls}-group`;
33718
33825
  const rootCls = useCSSVarCls(prefixCls);
33719
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(prefixCls, rootCls);
33826
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls, rootCls);
33720
33827
  let childrenToRender = children2;
33721
33828
  if (options && options.length > 0) {
33722
33829
  childrenToRender = options.map((option) => {
@@ -33774,7 +33881,7 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
33774
33881
  }, childrenToRender)));
33775
33882
  });
33776
33883
  const Group$1 = /* @__PURE__ */ React__namespace.memo(RadioGroup$1);
33777
- var __rest$D = function(s, e3) {
33884
+ var __rest$E = function(s, e3) {
33778
33885
  var t2 = {};
33779
33886
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33780
33887
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33788,7 +33895,7 @@ const RadioButton = (props, ref) => {
33788
33895
  } = React__namespace.useContext(ConfigContext);
33789
33896
  const {
33790
33897
  prefixCls: customizePrefixCls
33791
- } = props, radioProps = __rest$D(props, ["prefixCls"]);
33898
+ } = props, radioProps = __rest$E(props, ["prefixCls"]);
33792
33899
  const prefixCls = getPrefixCls("radio", customizePrefixCls);
33793
33900
  return /* @__PURE__ */ React__namespace.createElement(RadioOptionTypeContextProvider, {
33794
33901
  value: "button"
@@ -34789,7 +34896,7 @@ const useSharedStyle = genStyleHooks(["Input", "Shared"], (token2) => {
34789
34896
  }, initComponentToken$1, {
34790
34897
  resetFont: false
34791
34898
  });
34792
- const useStyle$h = genStyleHooks(["Input", "Component"], (token2) => {
34899
+ const useStyle$i = genStyleHooks(["Input", "Component"], (token2) => {
34793
34900
  const inputToken = merge$1(token2, initInputToken(token2));
34794
34901
  return [
34795
34902
  genGroupStyle(inputToken),
@@ -35551,7 +35658,7 @@ const initPanelComponentToken = (token2) => {
35551
35658
  };
35552
35659
  return filledToken;
35553
35660
  };
35554
- const prepareComponentToken$d = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
35661
+ const prepareComponentToken$e = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
35555
35662
  presetsWidth: 120,
35556
35663
  presetsMaxWidth: 200,
35557
35664
  zIndexPopup: token2.zIndexPopupBase + 50
@@ -36003,7 +36110,7 @@ const genPickerStyle = (token2) => {
36003
36110
  initMoveMotion(token2, "move-down")
36004
36111
  ];
36005
36112
  };
36006
- const useStyle$g = genStyleHooks("DatePicker", (token2) => {
36113
+ const useStyle$h = genStyleHooks("DatePicker", (token2) => {
36007
36114
  const pickerToken = merge$1(initInputToken(token2), initPickerPanelToken(token2), {
36008
36115
  inputPaddingHorizontalBase: token2.calc(token2.paddingSM).sub(1).equal(),
36009
36116
  multipleSelectItemHeight: token2.multipleItemHeight,
@@ -36022,7 +36129,7 @@ const useStyle$g = genStyleHooks("DatePicker", (token2) => {
36022
36129
  focusElCls: `${token2.componentCls}-focused`
36023
36130
  })
36024
36131
  ];
36025
- }, prepareComponentToken$d);
36132
+ }, prepareComponentToken$e);
36026
36133
  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" };
36027
36134
  var PlusOutlined = function PlusOutlined2(props, ref) {
36028
36135
  return /* @__PURE__ */ React__namespace.createElement(Icon$3, _extends$1({}, props, {
@@ -37105,9 +37212,9 @@ var TabPane$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref)
37105
37212
  if (process.env.NODE_ENV !== "production") {
37106
37213
  TabPane$1.displayName = "TabPane";
37107
37214
  }
37108
- var _excluded$k = ["renderTabBar"], _excluded2$1 = ["label", "key"];
37215
+ var _excluded$l = ["renderTabBar"], _excluded2$1 = ["label", "key"];
37109
37216
  var TabNavListWrapper = function TabNavListWrapper2(_ref) {
37110
- var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$k);
37217
+ var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$l);
37111
37218
  var _React$useContext = React__namespace.useContext(TabContext), tabs = _React$useContext.tabs;
37112
37219
  if (renderTabBar) {
37113
37220
  var tabNavBarProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
@@ -37128,7 +37235,7 @@ var TabNavListWrapper = function TabNavListWrapper2(_ref) {
37128
37235
  if (process.env.NODE_ENV !== "production") {
37129
37236
  TabNavListWrapper.displayName = "TabNavListWrapper";
37130
37237
  }
37131
- var _excluded$j = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
37238
+ var _excluded$k = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
37132
37239
  var TabPanelList = function TabPanelList2(props) {
37133
37240
  var id2 = props.id, activeKey = props.activeKey, animated = props.animated, tabPosition = props.tabPosition, destroyInactiveTabPane = props.destroyInactiveTabPane;
37134
37241
  var _React$useContext = React__namespace.useContext(TabContext), prefixCls = _React$useContext.prefixCls, tabs = _React$useContext.tabs;
@@ -37139,7 +37246,7 @@ var TabPanelList = function TabPanelList2(props) {
37139
37246
  }, /* @__PURE__ */ React__namespace.createElement("div", {
37140
37247
  className: classNames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty$1({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated))
37141
37248
  }, tabs.map(function(item) {
37142
- var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$j);
37249
+ var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$k);
37143
37250
  var active = key === activeKey;
37144
37251
  return /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
37145
37252
  key,
@@ -37194,10 +37301,10 @@ function useAnimateConfig$1() {
37194
37301
  }
37195
37302
  return mergedAnimated;
37196
37303
  }
37197
- 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"];
37304
+ 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"];
37198
37305
  var uuid$1 = 0;
37199
37306
  var Tabs$3 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
37200
- 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);
37307
+ 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);
37201
37308
  var tabs = React__namespace.useMemo(function() {
37202
37309
  return (items || []).filter(function(item) {
37203
37310
  return item && _typeof(item) === "object" && "key" in item;
@@ -37325,7 +37432,7 @@ function useAnimateConfig(prefixCls, animated = {
37325
37432
  }
37326
37433
  return mergedAnimated;
37327
37434
  }
37328
- var __rest$C = function(s, e3) {
37435
+ var __rest$D = function(s, e3) {
37329
37436
  var t2 = {};
37330
37437
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
37331
37438
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -37359,7 +37466,7 @@ function useLegacyItems(items, children2) {
37359
37466
  } = node2;
37360
37467
  const _a = props || {}, {
37361
37468
  tab: tab2
37362
- } = _a, restProps = __rest$C(_a, ["tab"]);
37469
+ } = _a, restProps = __rest$D(_a, ["tab"]);
37363
37470
  const item = Object.assign(Object.assign({
37364
37471
  key: String(key)
37365
37472
  }, restProps), {
@@ -37371,7 +37478,7 @@ function useLegacyItems(items, children2) {
37371
37478
  });
37372
37479
  return filter$1(childrenItems);
37373
37480
  }
37374
- const genMotionStyle = (token2) => {
37481
+ const genMotionStyle$1 = (token2) => {
37375
37482
  const {
37376
37483
  componentCls,
37377
37484
  motionDurationSlow
@@ -38207,7 +38314,7 @@ const genTabsStyle = (token2) => {
38207
38314
  }
38208
38315
  };
38209
38316
  };
38210
- const prepareComponentToken$c = (token2) => {
38317
+ const prepareComponentToken$d = (token2) => {
38211
38318
  const {
38212
38319
  cardHeight,
38213
38320
  cardHeightSM,
@@ -38252,7 +38359,7 @@ const prepareComponentToken$c = (token2) => {
38252
38359
  cardGutter: token2.marginXXS / 2
38253
38360
  };
38254
38361
  };
38255
- const useStyle$f = genStyleHooks("Tabs", (token2) => {
38362
+ const useStyle$g = genStyleHooks("Tabs", (token2) => {
38256
38363
  const tabsToken = merge$1(token2, {
38257
38364
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
38258
38365
  tabsCardPadding: token2.cardPadding,
@@ -38263,13 +38370,13 @@ const useStyle$f = genStyleHooks("Tabs", (token2) => {
38263
38370
  tabsHorizontalItemMargin: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`,
38264
38371
  tabsHorizontalItemMarginRTL: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`
38265
38372
  });
38266
- return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle(tabsToken)];
38267
- }, prepareComponentToken$c);
38373
+ return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle$1(tabsToken)];
38374
+ }, prepareComponentToken$d);
38268
38375
  const TabPane = () => null;
38269
38376
  if (process.env.NODE_ENV !== "production") {
38270
38377
  TabPane.displayName = "DeprecatedTabPane";
38271
38378
  }
38272
- var __rest$B = function(s, e3) {
38379
+ var __rest$C = function(s, e3) {
38273
38380
  var t2 = {};
38274
38381
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38275
38382
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38300,7 +38407,7 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
38300
38407
  indicator,
38301
38408
  destroyInactiveTabPane,
38302
38409
  destroyOnHidden
38303
- } = 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"]);
38410
+ } = 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"]);
38304
38411
  const {
38305
38412
  prefixCls: customizePrefixCls
38306
38413
  } = otherProps;
@@ -38312,7 +38419,7 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
38312
38419
  } = React__namespace.useContext(ConfigContext);
38313
38420
  const prefixCls = getPrefixCls("tabs", customizePrefixCls);
38314
38421
  const rootCls = useCSSVarCls(prefixCls);
38315
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls, rootCls);
38422
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
38316
38423
  const tabsRef = React__namespace.useRef(null);
38317
38424
  React__namespace.useImperativeHandle(ref, () => ({
38318
38425
  nativeElement: tabsRef.current
@@ -38377,7 +38484,7 @@ Tabs$2.TabPane = TabPane;
38377
38484
  if (process.env.NODE_ENV !== "production") {
38378
38485
  Tabs$2.displayName = "Tabs";
38379
38486
  }
38380
- var __rest$A = function(s, e3) {
38487
+ var __rest$B = function(s, e3) {
38381
38488
  var t2 = {};
38382
38489
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38383
38490
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38390,7 +38497,7 @@ const Grid$1 = (_a) => {
38390
38497
  prefixCls,
38391
38498
  className,
38392
38499
  hoverable = true
38393
- } = _a, props = __rest$A(_a, ["prefixCls", "className", "hoverable"]);
38500
+ } = _a, props = __rest$B(_a, ["prefixCls", "className", "hoverable"]);
38394
38501
  const {
38395
38502
  getPrefixCls
38396
38503
  } = React__namespace.useContext(ConfigContext);
@@ -38708,7 +38815,7 @@ const genCardSizeStyle = (token2) => {
38708
38815
  }
38709
38816
  };
38710
38817
  };
38711
- const prepareComponentToken$b = (token2) => {
38818
+ const prepareComponentToken$c = (token2) => {
38712
38819
  var _a, _b;
38713
38820
  return {
38714
38821
  headerBg: "transparent",
@@ -38727,7 +38834,7 @@ const prepareComponentToken$b = (token2) => {
38727
38834
  headerPadding: (_b = token2.headerPadding) !== null && _b !== void 0 ? _b : token2.paddingLG
38728
38835
  };
38729
38836
  };
38730
- const useStyle$e = genStyleHooks("Card", (token2) => {
38837
+ const useStyle$f = genStyleHooks("Card", (token2) => {
38731
38838
  const cardToken = merge$1(token2, {
38732
38839
  cardShadow: token2.boxShadowCard,
38733
38840
  cardHeadPadding: token2.padding,
@@ -38740,8 +38847,8 @@ const useStyle$e = genStyleHooks("Card", (token2) => {
38740
38847
  // Size
38741
38848
  genCardSizeStyle(cardToken)
38742
38849
  ];
38743
- }, prepareComponentToken$b);
38744
- var __rest$z = function(s, e3) {
38850
+ }, prepareComponentToken$c);
38851
+ var __rest$A = function(s, e3) {
38745
38852
  var t2 = {};
38746
38853
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38747
38854
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38794,7 +38901,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
38794
38901
  tabProps = {},
38795
38902
  classNames: customClassNames,
38796
38903
  styles: customStyles
38797
- } = 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"]);
38904
+ } = 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"]);
38798
38905
  const {
38799
38906
  getPrefixCls,
38800
38907
  direction,
@@ -38829,7 +38936,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
38829
38936
  return containGrid;
38830
38937
  }, [children2]);
38831
38938
  const prefixCls = getPrefixCls("card", customizePrefixCls);
38832
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls);
38939
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls);
38833
38940
  const loadingBlock = /* @__PURE__ */ React__namespace.createElement(Skeleton$1, {
38834
38941
  loading: true,
38835
38942
  active: true,
@@ -38854,7 +38961,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
38854
38961
  items: tabList.map((_a) => {
38855
38962
  var {
38856
38963
  tab: tab2
38857
- } = _a, item = __rest$z(_a, ["tab"]);
38964
+ } = _a, item = __rest$A(_a, ["tab"]);
38858
38965
  return Object.assign({
38859
38966
  label: tab2
38860
38967
  }, item);
@@ -38914,7 +39021,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
38914
39021
  style: mergedStyle
38915
39022
  }), head, coverDom, body, actionDom));
38916
39023
  });
38917
- var __rest$y = function(s, e3) {
39024
+ var __rest$z = function(s, e3) {
38918
39025
  var t2 = {};
38919
39026
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38920
39027
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38929,7 +39036,7 @@ const Meta = (props) => {
38929
39036
  avatar,
38930
39037
  title,
38931
39038
  description
38932
- } = props, others = __rest$y(props, ["prefixCls", "className", "avatar", "title", "description"]);
39039
+ } = props, others = __rest$z(props, ["prefixCls", "className", "avatar", "title", "description"]);
38933
39040
  const {
38934
39041
  getPrefixCls
38935
39042
  } = React__namespace.useContext(ConfigContext);
@@ -39017,7 +39124,7 @@ function debounce(delay, callback, options) {
39017
39124
  function getEntity(keyEntities, key) {
39018
39125
  return keyEntities[key];
39019
39126
  }
39020
- var _excluded$h = ["children"];
39127
+ var _excluded$i = ["children"];
39021
39128
  function getPosition(level, index2) {
39022
39129
  return "".concat(level, "-").concat(index2);
39023
39130
  }
@@ -39065,7 +39172,7 @@ function convertTreeToData(rootNodes) {
39065
39172
  return null;
39066
39173
  }
39067
39174
  var key = treeNode.key;
39068
- var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$h);
39175
+ var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$i);
39069
39176
  var dataNode = _objectSpread2({
39070
39177
  key
39071
39178
  }, rest);
@@ -39653,11 +39760,11 @@ function getStyle$1(prefixCls, token2) {
39653
39760
  });
39654
39761
  return genCheckboxStyle(checkboxToken);
39655
39762
  }
39656
- const useStyle$d = genStyleHooks("Checkbox", (token2, {
39763
+ const useStyle$e = genStyleHooks("Checkbox", (token2, {
39657
39764
  prefixCls
39658
39765
  }) => [getStyle$1(prefixCls, token2)]);
39659
39766
  const GroupContext = /* @__PURE__ */ React.createContext(null);
39660
- var __rest$x = function(s, e3) {
39767
+ var __rest$y = function(s, e3) {
39661
39768
  var t2 = {};
39662
39769
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39663
39770
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39678,7 +39785,7 @@ const InternalCheckbox = (props, ref) => {
39678
39785
  onMouseLeave,
39679
39786
  skipGroup = false,
39680
39787
  disabled: disabled2
39681
- } = props, restProps = __rest$x(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
39788
+ } = props, restProps = __rest$y(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
39682
39789
  const {
39683
39790
  getPrefixCls,
39684
39791
  direction,
@@ -39719,7 +39826,7 @@ const InternalCheckbox = (props, ref) => {
39719
39826
  }, [indeterminate]);
39720
39827
  const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
39721
39828
  const rootCls = useCSSVarCls(prefixCls);
39722
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls, rootCls);
39829
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
39723
39830
  const checkboxProps = Object.assign({}, restProps);
39724
39831
  if (checkboxGroup && !skipGroup) {
39725
39832
  checkboxProps.onChange = (...args) => {
@@ -39769,7 +39876,7 @@ const Checkbox$2 = /* @__PURE__ */ React__namespace.forwardRef(InternalCheckbox)
39769
39876
  if (process.env.NODE_ENV !== "production") {
39770
39877
  Checkbox$2.displayName = "Checkbox";
39771
39878
  }
39772
- var __rest$w = function(s, e3) {
39879
+ var __rest$x = function(s, e3) {
39773
39880
  var t2 = {};
39774
39881
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39775
39882
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39787,7 +39894,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
39787
39894
  rootClassName,
39788
39895
  style: style2,
39789
39896
  onChange
39790
- } = props, restProps = __rest$w(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
39897
+ } = props, restProps = __rest$x(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
39791
39898
  const {
39792
39899
  getPrefixCls,
39793
39900
  direction
@@ -39834,7 +39941,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
39834
39941
  const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
39835
39942
  const groupPrefixCls = `${prefixCls}-group`;
39836
39943
  const rootCls = useCSSVarCls(prefixCls);
39837
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls, rootCls);
39944
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
39838
39945
  const domProps = omit(restProps, ["value", "disabled"]);
39839
39946
  const childrenNode = options.length ? memoizedOptions.map((option) => /* @__PURE__ */ React__namespace.createElement(Checkbox$2, {
39840
39947
  prefixCls,
@@ -39877,7 +39984,7 @@ if (process.env.NODE_ENV !== "production") {
39877
39984
  Checkbox$1.displayName = "Checkbox";
39878
39985
  }
39879
39986
  const RowContext = /* @__PURE__ */ React.createContext({});
39880
- var __rest$v = function(s, e3) {
39987
+ var __rest$w = function(s, e3) {
39881
39988
  var t2 = {};
39882
39989
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39883
39990
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39915,7 +40022,7 @@ const Col = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
39915
40022
  children: children2,
39916
40023
  flex,
39917
40024
  style: style2
39918
- } = props, others = __rest$v(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
40025
+ } = props, others = __rest$w(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
39919
40026
  const prefixCls = getPrefixCls("col", customizePrefixCls);
39920
40027
  const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
39921
40028
  const sizeStyle = {};
@@ -39996,7 +40103,7 @@ function useGutter(gutter, screens) {
39996
40103
  });
39997
40104
  return results;
39998
40105
  }
39999
- var __rest$u = function(s, e3) {
40106
+ var __rest$v = function(s, e3) {
40000
40107
  var t2 = {};
40001
40108
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
40002
40109
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -40040,7 +40147,7 @@ const Row$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
40040
40147
  children: children2,
40041
40148
  gutter = 0,
40042
40149
  wrap: wrap2
40043
- } = props, others = __rest$u(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
40150
+ } = props, others = __rest$v(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
40044
40151
  const {
40045
40152
  getPrefixCls,
40046
40153
  direction
@@ -40222,7 +40329,7 @@ function MotionThumb(props) {
40222
40329
  return /* @__PURE__ */ React__namespace.createElement("div", motionProps);
40223
40330
  });
40224
40331
  }
40225
- var _excluded$g = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
40332
+ var _excluded$h = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
40226
40333
  function getValidTitle(option) {
40227
40334
  if (typeof option.title !== "undefined") {
40228
40335
  return option.title;
@@ -40277,7 +40384,7 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
40277
40384
  };
40278
40385
  var Segmented$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
40279
40386
  var _segmentedOptions$, _classNames2;
40280
- 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);
40387
+ 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);
40281
40388
  var containerRef = React__namespace.useRef(null);
40282
40389
  var mergedRef = React__namespace.useMemo(function() {
40283
40390
  return composeRef(containerRef, ref);
@@ -40562,7 +40669,7 @@ const genSegmentedStyle = (token2) => {
40562
40669
  })
40563
40670
  };
40564
40671
  };
40565
- const prepareComponentToken$a = (token2) => {
40672
+ const prepareComponentToken$b = (token2) => {
40566
40673
  const {
40567
40674
  colorTextLabel,
40568
40675
  colorText,
@@ -40583,7 +40690,7 @@ const prepareComponentToken$a = (token2) => {
40583
40690
  itemSelectedColor: colorText
40584
40691
  };
40585
40692
  };
40586
- const useStyle$c = genStyleHooks("Segmented", (token2) => {
40693
+ const useStyle$d = genStyleHooks("Segmented", (token2) => {
40587
40694
  const {
40588
40695
  lineWidth,
40589
40696
  calc
@@ -40593,8 +40700,8 @@ const useStyle$c = genStyleHooks("Segmented", (token2) => {
40593
40700
  segmentedPaddingHorizontalSM: calc(token2.controlPaddingHorizontalSM).sub(lineWidth).equal()
40594
40701
  });
40595
40702
  return genSegmentedStyle(segmentedToken);
40596
- }, prepareComponentToken$a);
40597
- var __rest$t = function(s, e3) {
40703
+ }, prepareComponentToken$b);
40704
+ var __rest$u = function(s, e3) {
40598
40705
  var t2 = {};
40599
40706
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
40600
40707
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -40618,7 +40725,7 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
40618
40725
  vertical,
40619
40726
  shape = "default",
40620
40727
  name: name2 = defaultName
40621
- } = props, restProps = __rest$t(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
40728
+ } = props, restProps = __rest$u(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
40622
40729
  const {
40623
40730
  getPrefixCls,
40624
40731
  direction,
@@ -40626,14 +40733,14 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
40626
40733
  style: contextStyle
40627
40734
  } = useComponentConfig("segmented");
40628
40735
  const prefixCls = getPrefixCls("segmented", customizePrefixCls);
40629
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
40736
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls);
40630
40737
  const mergedSize = useSize(customSize);
40631
40738
  const extendedOptions = React__namespace.useMemo(() => options.map((option) => {
40632
40739
  if (isSegmentedLabeledOptionWithIcon(option)) {
40633
40740
  const {
40634
40741
  icon,
40635
40742
  label
40636
- } = option, restOption = __rest$t(option, ["icon", "label"]);
40743
+ } = option, restOption = __rest$u(option, ["icon", "label"]);
40637
40744
  return Object.assign(Object.assign({}, restOption), {
40638
40745
  label: /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement("span", {
40639
40746
  className: `${prefixCls}-item-icon`
@@ -40811,7 +40918,7 @@ var BaseInput = /* @__PURE__ */ React.forwardRef(function(props, ref) {
40811
40918
  hidden
40812
40919
  });
40813
40920
  });
40814
- var _excluded$f = ["show"];
40921
+ var _excluded$g = ["show"];
40815
40922
  function useCount(count, showCount) {
40816
40923
  return React__namespace.useMemo(function() {
40817
40924
  var mergedConfig = {};
@@ -40819,7 +40926,7 @@ function useCount(count, showCount) {
40819
40926
  mergedConfig.show = _typeof(showCount) === "object" && showCount.formatter ? showCount.formatter : !!showCount;
40820
40927
  }
40821
40928
  mergedConfig = _objectSpread2(_objectSpread2({}, mergedConfig), count);
40822
- var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$f);
40929
+ var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$g);
40823
40930
  return _objectSpread2(_objectSpread2({}, rest), {}, {
40824
40931
  show: !!show,
40825
40932
  showFormatter: typeof show === "function" ? show : void 0,
@@ -40829,9 +40936,9 @@ function useCount(count, showCount) {
40829
40936
  });
40830
40937
  }, [count, showCount]);
40831
40938
  }
40832
- var _excluded$e = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
40939
+ var _excluded$f = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
40833
40940
  var Input$4 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
40834
- 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);
40941
+ 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);
40835
40942
  var _useState = React.useState(false), _useState2 = _slicedToArray(_useState, 2), focused = _useState2[0], setFocused = _useState2[1];
40836
40943
  var compositionRef = React.useRef(false);
40837
40944
  var keyLockRef = React.useRef(false);
@@ -41053,7 +41160,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
41053
41160
  function hasPrefixSuffix(props) {
41054
41161
  return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
41055
41162
  }
41056
- var __rest$s = function(s, e3) {
41163
+ var __rest$t = function(s, e3) {
41057
41164
  var t2 = {};
41058
41165
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41059
41166
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41081,7 +41188,7 @@ const Input$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
41081
41188
  onChange,
41082
41189
  classNames: classNames$1,
41083
41190
  variant: customVariant
41084
- } = props, rest = __rest$s(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
41191
+ } = props, rest = __rest$t(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
41085
41192
  if (process.env.NODE_ENV !== "production") {
41086
41193
  const {
41087
41194
  deprecated
@@ -41102,7 +41209,7 @@ const Input$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
41102
41209
  const inputRef = React.useRef(null);
41103
41210
  const rootCls = useCSSVarCls(prefixCls);
41104
41211
  const [wrapSharedCSSVar, hashId, cssVarCls] = useSharedStyle(prefixCls, rootClassName);
41105
- const [wrapCSSVar] = useStyle$h(prefixCls, rootCls);
41212
+ const [wrapCSSVar] = useStyle$i(prefixCls, rootCls);
41106
41213
  const {
41107
41214
  compactSize,
41108
41215
  compactItemClassnames
@@ -41388,7 +41495,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
41388
41495
  return [filledClassNames, filledStyles];
41389
41496
  }, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
41390
41497
  };
41391
- var __rest$r = function(s, e3) {
41498
+ var __rest$s = function(s, e3) {
41392
41499
  var t2 = {};
41393
41500
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41394
41501
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41419,7 +41526,7 @@ const generateRangePicker = (generateConfig2) => {
41419
41526
  picker,
41420
41527
  styles,
41421
41528
  classNames: classNames$1
41422
- } = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
41529
+ } = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
41423
41530
  const pickerType = picker === TIME ? "timePicker" : "datePicker";
41424
41531
  const innerRef = React__namespace.useRef(null);
41425
41532
  const {
@@ -41436,7 +41543,7 @@ const generateRangePicker = (generateConfig2) => {
41436
41543
  const rootPrefixCls = getPrefixCls();
41437
41544
  const [variant, enableVariantCls] = useVariant("rangePicker", customVariant, bordered);
41438
41545
  const rootCls = useCSSVarCls(prefixCls);
41439
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
41546
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
41440
41547
  if (process.env.NODE_ENV !== "production") {
41441
41548
  const warning3 = devUseWarning("DatePicker.RangePicker");
41442
41549
  const deprecatedProps = {
@@ -41524,7 +41631,7 @@ const generateRangePicker = (generateConfig2) => {
41524
41631
  }
41525
41632
  return RangePicker2;
41526
41633
  };
41527
- var __rest$q = function(s, e3) {
41634
+ var __rest$r = function(s, e3) {
41528
41635
  var t2 = {};
41529
41636
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41530
41637
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41557,7 +41664,7 @@ const generatePicker$1 = (generateConfig2) => {
41557
41664
  onCalendarChange,
41558
41665
  styles,
41559
41666
  classNames: classNames$1
41560
- } = props, restProps = __rest$q(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
41667
+ } = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
41561
41668
  const {
41562
41669
  getPrefixCls,
41563
41670
  direction,
@@ -41573,7 +41680,7 @@ const generatePicker$1 = (generateConfig2) => {
41573
41680
  const innerRef = React__namespace.useRef(null);
41574
41681
  const [variant, enableVariantCls] = useVariant("datePicker", customVariant, bordered);
41575
41682
  const rootCls = useCSSVarCls(prefixCls);
41576
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
41683
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
41577
41684
  React.useImperativeHandle(ref, () => innerRef.current);
41578
41685
  const additionalProps = {
41579
41686
  showToday: true
@@ -41714,11 +41821,783 @@ const generatePicker = (generateConfig2) => {
41714
41821
  return MergedDatePicker;
41715
41822
  };
41716
41823
  const DatePicker$1 = generatePicker(generateConfig);
41717
- const PurePanel$1 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
41718
- DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
41824
+ const PurePanel$2 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
41825
+ DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
41719
41826
  const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
41720
41827
  DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
41721
41828
  DatePicker$1.generatePicker = generatePicker;
41829
+ var DrawerContext = /* @__PURE__ */ React__namespace.createContext(null);
41830
+ var RefContext = /* @__PURE__ */ React__namespace.createContext({});
41831
+ var _excluded$e = ["prefixCls", "className", "containerRef"];
41832
+ var DrawerPanel$1 = function DrawerPanel(props) {
41833
+ var prefixCls = props.prefixCls, className = props.className, containerRef = props.containerRef, restProps = _objectWithoutProperties$1(props, _excluded$e);
41834
+ var _React$useContext = React__namespace.useContext(RefContext), panelRef = _React$useContext.panel;
41835
+ var mergedRef = useComposeRef(panelRef, containerRef);
41836
+ return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
41837
+ className: classNames("".concat(prefixCls, "-content"), className),
41838
+ role: "dialog",
41839
+ ref: mergedRef
41840
+ }, pickAttrs(props, {
41841
+ aria: true
41842
+ }), {
41843
+ "aria-modal": "true"
41844
+ }, restProps));
41845
+ };
41846
+ if (process.env.NODE_ENV !== "production") {
41847
+ DrawerPanel$1.displayName = "DrawerPanel";
41848
+ }
41849
+ function parseWidthHeight(value2) {
41850
+ if (typeof value2 === "string" && String(Number(value2)) === value2) {
41851
+ warningOnce(false, "Invalid value type of `width` or `height` which should be number type instead.");
41852
+ return Number(value2);
41853
+ }
41854
+ return value2;
41855
+ }
41856
+ function warnCheck(props) {
41857
+ warningOnce(!("wrapperClassName" in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
41858
+ warningOnce(canUseDom() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
41859
+ }
41860
+ var sentinelStyle = {
41861
+ width: 0,
41862
+ height: 0,
41863
+ overflow: "hidden",
41864
+ outline: "none",
41865
+ position: "absolute"
41866
+ };
41867
+ function DrawerPopup(props, ref) {
41868
+ var _ref, _pushConfig$distance, _pushConfig;
41869
+ 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;
41870
+ var panelRef = React__namespace.useRef();
41871
+ var sentinelStartRef = React__namespace.useRef();
41872
+ var sentinelEndRef = React__namespace.useRef();
41873
+ React__namespace.useImperativeHandle(ref, function() {
41874
+ return panelRef.current;
41875
+ });
41876
+ var onPanelKeyDown = function onPanelKeyDown2(event2) {
41877
+ var keyCode = event2.keyCode, shiftKey = event2.shiftKey;
41878
+ switch (keyCode) {
41879
+ // Tab active
41880
+ case KeyCode.TAB: {
41881
+ if (keyCode === KeyCode.TAB) {
41882
+ if (!shiftKey && document.activeElement === sentinelEndRef.current) {
41883
+ var _sentinelStartRef$cur;
41884
+ (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
41885
+ preventScroll: true
41886
+ });
41887
+ } else if (shiftKey && document.activeElement === sentinelStartRef.current) {
41888
+ var _sentinelEndRef$curre;
41889
+ (_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
41890
+ preventScroll: true
41891
+ });
41892
+ }
41893
+ }
41894
+ break;
41895
+ }
41896
+ // Close
41897
+ case KeyCode.ESC: {
41898
+ if (onClose && keyboard) {
41899
+ event2.stopPropagation();
41900
+ onClose(event2);
41901
+ }
41902
+ break;
41903
+ }
41904
+ }
41905
+ };
41906
+ React__namespace.useEffect(function() {
41907
+ if (open && autoFocus) {
41908
+ var _panelRef$current;
41909
+ (_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
41910
+ preventScroll: true
41911
+ });
41912
+ }
41913
+ }, [open]);
41914
+ var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), pushed = _React$useState2[0], setPushed = _React$useState2[1];
41915
+ var parentContext = React__namespace.useContext(DrawerContext);
41916
+ var pushConfig;
41917
+ if (typeof push2 === "boolean") {
41918
+ pushConfig = push2 ? {} : {
41919
+ distance: 0
41920
+ };
41921
+ } else {
41922
+ pushConfig = push2 || {};
41923
+ }
41924
+ 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;
41925
+ var mergedContext = React__namespace.useMemo(function() {
41926
+ return {
41927
+ pushDistance,
41928
+ push: function push3() {
41929
+ setPushed(true);
41930
+ },
41931
+ pull: function pull() {
41932
+ setPushed(false);
41933
+ }
41934
+ };
41935
+ }, [pushDistance]);
41936
+ React__namespace.useEffect(function() {
41937
+ if (open) {
41938
+ var _parentContext$push;
41939
+ parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
41940
+ } else {
41941
+ var _parentContext$pull;
41942
+ parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
41943
+ }
41944
+ }, [open]);
41945
+ React__namespace.useEffect(function() {
41946
+ return function() {
41947
+ var _parentContext$pull2;
41948
+ parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
41949
+ };
41950
+ }, []);
41951
+ var maskNode = /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
41952
+ key: "mask"
41953
+ }, maskMotion, {
41954
+ visible: mask && open
41955
+ }), function(_ref2, maskRef) {
41956
+ var motionMaskClassName = _ref2.className, motionMaskStyle = _ref2.style;
41957
+ return /* @__PURE__ */ React__namespace.createElement("div", {
41958
+ className: classNames("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
41959
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
41960
+ onClick: maskClosable && open ? onClose : void 0,
41961
+ ref: maskRef
41962
+ });
41963
+ });
41964
+ var motionProps = typeof motion2 === "function" ? motion2(placement) : motion2;
41965
+ var wrapperStyle = {};
41966
+ if (pushed && pushDistance) {
41967
+ switch (placement) {
41968
+ case "top":
41969
+ wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
41970
+ break;
41971
+ case "bottom":
41972
+ wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
41973
+ break;
41974
+ case "left":
41975
+ wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
41976
+ break;
41977
+ default:
41978
+ wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
41979
+ break;
41980
+ }
41981
+ }
41982
+ if (placement === "left" || placement === "right") {
41983
+ wrapperStyle.width = parseWidthHeight(width);
41984
+ } else {
41985
+ wrapperStyle.height = parseWidthHeight(height);
41986
+ }
41987
+ var eventHandlers = {
41988
+ onMouseEnter,
41989
+ onMouseOver,
41990
+ onMouseLeave,
41991
+ onClick,
41992
+ onKeyDown: onKeyDown2,
41993
+ onKeyUp
41994
+ };
41995
+ var panelNode = /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
41996
+ key: "panel"
41997
+ }, motionProps, {
41998
+ visible: open,
41999
+ forceRender,
42000
+ onVisibleChanged: function onVisibleChanged(nextVisible) {
42001
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
42002
+ },
42003
+ removeOnLeave: false,
42004
+ leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
42005
+ }), function(_ref3, motionRef) {
42006
+ var motionClassName = _ref3.className, motionStyle = _ref3.style;
42007
+ var content2 = /* @__PURE__ */ React__namespace.createElement(DrawerPanel$1, _extends$1({
42008
+ id: id2,
42009
+ containerRef: motionRef,
42010
+ prefixCls,
42011
+ className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
42012
+ style: _objectSpread2(_objectSpread2({}, style2), styles === null || styles === void 0 ? void 0 : styles.content)
42013
+ }, pickAttrs(props, {
42014
+ aria: true
42015
+ }), eventHandlers), children2);
42016
+ return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
42017
+ className: classNames("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
42018
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
42019
+ }, pickAttrs(props, {
42020
+ data: true
42021
+ })), drawerRender ? drawerRender(content2) : content2);
42022
+ });
42023
+ var containerStyle = _objectSpread2({}, rootStyle);
42024
+ if (zIndex) {
42025
+ containerStyle.zIndex = zIndex;
42026
+ }
42027
+ return /* @__PURE__ */ React__namespace.createElement(DrawerContext.Provider, {
42028
+ value: mergedContext
42029
+ }, /* @__PURE__ */ React__namespace.createElement("div", {
42030
+ className: classNames(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline2)),
42031
+ style: containerStyle,
42032
+ tabIndex: -1,
42033
+ ref: panelRef,
42034
+ onKeyDown: onPanelKeyDown
42035
+ }, maskNode, /* @__PURE__ */ React__namespace.createElement("div", {
42036
+ tabIndex: 0,
42037
+ ref: sentinelStartRef,
42038
+ style: sentinelStyle,
42039
+ "aria-hidden": "true",
42040
+ "data-sentinel": "start"
42041
+ }), panelNode, /* @__PURE__ */ React__namespace.createElement("div", {
42042
+ tabIndex: 0,
42043
+ ref: sentinelEndRef,
42044
+ style: sentinelStyle,
42045
+ "aria-hidden": "true",
42046
+ "data-sentinel": "end"
42047
+ })));
42048
+ }
42049
+ var RefDrawerPopup = /* @__PURE__ */ React__namespace.forwardRef(DrawerPopup);
42050
+ if (process.env.NODE_ENV !== "production") {
42051
+ RefDrawerPopup.displayName = "DrawerPopup";
42052
+ }
42053
+ var Drawer$1 = function Drawer(props) {
42054
+ 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;
42055
+ var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
42056
+ if (process.env.NODE_ENV !== "production") {
42057
+ warnCheck(props);
42058
+ }
42059
+ var _React$useState3 = React__namespace.useState(false), _React$useState4 = _slicedToArray(_React$useState3, 2), mounted = _React$useState4[0], setMounted = _React$useState4[1];
42060
+ useLayoutEffect$1(function() {
42061
+ setMounted(true);
42062
+ }, []);
42063
+ var mergedOpen = mounted ? open : false;
42064
+ var popupRef = React__namespace.useRef();
42065
+ var lastActiveRef = React__namespace.useRef();
42066
+ useLayoutEffect$1(function() {
42067
+ if (mergedOpen) {
42068
+ lastActiveRef.current = document.activeElement;
42069
+ }
42070
+ }, [mergedOpen]);
42071
+ var internalAfterOpenChange = function internalAfterOpenChange2(nextVisible) {
42072
+ var _popupRef$current;
42073
+ setAnimatedVisible(nextVisible);
42074
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
42075
+ if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
42076
+ var _lastActiveRef$curren;
42077
+ (_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
42078
+ preventScroll: true
42079
+ });
42080
+ }
42081
+ };
42082
+ var refContext = React__namespace.useMemo(function() {
42083
+ return {
42084
+ panel: panelRef
42085
+ };
42086
+ }, [panelRef]);
42087
+ if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
42088
+ return null;
42089
+ }
42090
+ var eventHandlers = {
42091
+ onMouseEnter,
42092
+ onMouseOver,
42093
+ onMouseLeave,
42094
+ onClick,
42095
+ onKeyDown: onKeyDown2,
42096
+ onKeyUp
42097
+ };
42098
+ var drawerPopupProps = _objectSpread2(_objectSpread2({}, props), {}, {
42099
+ open: mergedOpen,
42100
+ prefixCls,
42101
+ placement,
42102
+ autoFocus,
42103
+ keyboard,
42104
+ width,
42105
+ mask,
42106
+ maskClosable,
42107
+ inline: getContainer2 === false,
42108
+ afterOpenChange: internalAfterOpenChange,
42109
+ ref: popupRef
42110
+ }, eventHandlers);
42111
+ return /* @__PURE__ */ React__namespace.createElement(RefContext.Provider, {
42112
+ value: refContext
42113
+ }, /* @__PURE__ */ React__namespace.createElement(Portal, {
42114
+ open: mergedOpen || forceRender || animatedVisible,
42115
+ autoDestroy: false,
42116
+ getContainer: getContainer2,
42117
+ autoLock: mask && (mergedOpen || animatedVisible)
42118
+ }, /* @__PURE__ */ React__namespace.createElement(RefDrawerPopup, drawerPopupProps)));
42119
+ };
42120
+ if (process.env.NODE_ENV !== "production") {
42121
+ Drawer$1.displayName = "Drawer";
42122
+ }
42123
+ const DrawerPanel2 = (props) => {
42124
+ var _a, _b;
42125
+ const {
42126
+ prefixCls,
42127
+ title,
42128
+ footer: footer2,
42129
+ extra,
42130
+ loading,
42131
+ onClose,
42132
+ headerStyle,
42133
+ bodyStyle,
42134
+ footerStyle,
42135
+ children: children2,
42136
+ classNames: drawerClassNames,
42137
+ styles: drawerStyles
42138
+ } = props;
42139
+ const drawerContext = useComponentConfig("drawer");
42140
+ const customCloseIconRender = React__namespace.useCallback((icon) => /* @__PURE__ */ React__namespace.createElement("button", {
42141
+ type: "button",
42142
+ onClick: onClose,
42143
+ className: `${prefixCls}-close`
42144
+ }, icon), [onClose]);
42145
+ const [mergedClosable, mergedCloseIcon] = useClosable(pickClosable(props), pickClosable(drawerContext), {
42146
+ closable: true,
42147
+ closeIconRender: customCloseIconRender
42148
+ });
42149
+ const headerNode = React__namespace.useMemo(() => {
42150
+ var _a2, _b2;
42151
+ if (!title && !mergedClosable) {
42152
+ return null;
42153
+ }
42154
+ return /* @__PURE__ */ React__namespace.createElement("div", {
42155
+ 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),
42156
+ className: classNames(`${prefixCls}-header`, {
42157
+ [`${prefixCls}-header-close-only`]: mergedClosable && !title && !extra
42158
+ }, (_b2 = drawerContext.classNames) === null || _b2 === void 0 ? void 0 : _b2.header, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.header)
42159
+ }, /* @__PURE__ */ React__namespace.createElement("div", {
42160
+ className: `${prefixCls}-header-title`
42161
+ }, mergedCloseIcon, title && /* @__PURE__ */ React__namespace.createElement("div", {
42162
+ className: `${prefixCls}-title`
42163
+ }, title)), extra && /* @__PURE__ */ React__namespace.createElement("div", {
42164
+ className: `${prefixCls}-extra`
42165
+ }, extra));
42166
+ }, [mergedClosable, mergedCloseIcon, extra, headerStyle, prefixCls, title]);
42167
+ const footerNode = React__namespace.useMemo(() => {
42168
+ var _a2, _b2;
42169
+ if (!footer2) {
42170
+ return null;
42171
+ }
42172
+ const footerClassName = `${prefixCls}-footer`;
42173
+ return /* @__PURE__ */ React__namespace.createElement("div", {
42174
+ className: classNames(footerClassName, (_a2 = drawerContext.classNames) === null || _a2 === void 0 ? void 0 : _a2.footer, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.footer),
42175
+ 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)
42176
+ }, footer2);
42177
+ }, [footer2, footerStyle, prefixCls]);
42178
+ return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, headerNode, /* @__PURE__ */ React__namespace.createElement("div", {
42179
+ className: classNames(`${prefixCls}-body`, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.body, (_a = drawerContext.classNames) === null || _a === void 0 ? void 0 : _a.body),
42180
+ 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)
42181
+ }, loading ? /* @__PURE__ */ React__namespace.createElement(Skeleton$1, {
42182
+ active: true,
42183
+ title: false,
42184
+ paragraph: {
42185
+ rows: 5
42186
+ },
42187
+ className: `${prefixCls}-body-skeleton`
42188
+ }) : children2), footerNode);
42189
+ };
42190
+ const getMoveTranslate = (direction) => {
42191
+ const value2 = "100%";
42192
+ return {
42193
+ left: `translateX(-${value2})`,
42194
+ right: `translateX(${value2})`,
42195
+ top: `translateY(-${value2})`,
42196
+ bottom: `translateY(${value2})`
42197
+ }[direction];
42198
+ };
42199
+ const getEnterLeaveStyle = (startStyle, endStyle) => ({
42200
+ "&-enter, &-appear": Object.assign(Object.assign({}, startStyle), {
42201
+ "&-active": endStyle
42202
+ }),
42203
+ "&-leave": Object.assign(Object.assign({}, endStyle), {
42204
+ "&-active": startStyle
42205
+ })
42206
+ });
42207
+ const getFadeStyle = (from2, duration) => Object.assign({
42208
+ "&-enter, &-appear, &-leave": {
42209
+ "&-start": {
42210
+ transition: "none"
42211
+ },
42212
+ "&-active": {
42213
+ transition: `all ${duration}`
42214
+ }
42215
+ }
42216
+ }, getEnterLeaveStyle({
42217
+ opacity: from2
42218
+ }, {
42219
+ opacity: 1
42220
+ }));
42221
+ const getPanelMotionStyles = (direction, duration) => [getFadeStyle(0.7, duration), getEnterLeaveStyle({
42222
+ transform: getMoveTranslate(direction)
42223
+ }, {
42224
+ transform: "none"
42225
+ })];
42226
+ const genMotionStyle = (token2) => {
42227
+ const {
42228
+ componentCls,
42229
+ motionDurationSlow
42230
+ } = token2;
42231
+ return {
42232
+ [componentCls]: {
42233
+ // ======================== Mask ========================
42234
+ [`${componentCls}-mask-motion`]: getFadeStyle(0, motionDurationSlow),
42235
+ // ======================= Panel ========================
42236
+ [`${componentCls}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((obj, direction) => Object.assign(Object.assign({}, obj), {
42237
+ [`&-${direction}`]: getPanelMotionStyles(direction, motionDurationSlow)
42238
+ }), {})
42239
+ }
42240
+ };
42241
+ };
42242
+ const genDrawerStyle = (token2) => {
42243
+ const {
42244
+ borderRadiusSM,
42245
+ componentCls,
42246
+ zIndexPopup,
42247
+ colorBgMask,
42248
+ colorBgElevated,
42249
+ motionDurationSlow,
42250
+ motionDurationMid,
42251
+ paddingXS,
42252
+ padding,
42253
+ paddingLG,
42254
+ fontSizeLG,
42255
+ lineHeightLG,
42256
+ lineWidth,
42257
+ lineType,
42258
+ colorSplit,
42259
+ marginXS,
42260
+ colorIcon,
42261
+ colorIconHover,
42262
+ colorBgTextHover,
42263
+ colorBgTextActive,
42264
+ colorText,
42265
+ fontWeightStrong,
42266
+ footerPaddingBlock,
42267
+ footerPaddingInline,
42268
+ calc
42269
+ } = token2;
42270
+ const wrapperCls = `${componentCls}-content-wrapper`;
42271
+ return {
42272
+ [componentCls]: {
42273
+ position: "fixed",
42274
+ inset: 0,
42275
+ zIndex: zIndexPopup,
42276
+ pointerEvents: "none",
42277
+ color: colorText,
42278
+ "&-pure": {
42279
+ position: "relative",
42280
+ background: colorBgElevated,
42281
+ display: "flex",
42282
+ flexDirection: "column",
42283
+ [`&${componentCls}-left`]: {
42284
+ boxShadow: token2.boxShadowDrawerLeft
42285
+ },
42286
+ [`&${componentCls}-right`]: {
42287
+ boxShadow: token2.boxShadowDrawerRight
42288
+ },
42289
+ [`&${componentCls}-top`]: {
42290
+ boxShadow: token2.boxShadowDrawerUp
42291
+ },
42292
+ [`&${componentCls}-bottom`]: {
42293
+ boxShadow: token2.boxShadowDrawerDown
42294
+ }
42295
+ },
42296
+ "&-inline": {
42297
+ position: "absolute"
42298
+ },
42299
+ // ====================== Mask ======================
42300
+ [`${componentCls}-mask`]: {
42301
+ position: "absolute",
42302
+ inset: 0,
42303
+ zIndex: zIndexPopup,
42304
+ background: colorBgMask,
42305
+ pointerEvents: "auto"
42306
+ },
42307
+ // ==================== Content =====================
42308
+ [wrapperCls]: {
42309
+ position: "absolute",
42310
+ zIndex: zIndexPopup,
42311
+ maxWidth: "100vw",
42312
+ transition: `all ${motionDurationSlow}`,
42313
+ "&-hidden": {
42314
+ display: "none"
42315
+ }
42316
+ },
42317
+ // Placement
42318
+ [`&-left > ${wrapperCls}`]: {
42319
+ top: 0,
42320
+ bottom: 0,
42321
+ left: {
42322
+ _skip_check_: true,
42323
+ value: 0
42324
+ },
42325
+ boxShadow: token2.boxShadowDrawerLeft
42326
+ },
42327
+ [`&-right > ${wrapperCls}`]: {
42328
+ top: 0,
42329
+ right: {
42330
+ _skip_check_: true,
42331
+ value: 0
42332
+ },
42333
+ bottom: 0,
42334
+ boxShadow: token2.boxShadowDrawerRight
42335
+ },
42336
+ [`&-top > ${wrapperCls}`]: {
42337
+ top: 0,
42338
+ insetInline: 0,
42339
+ boxShadow: token2.boxShadowDrawerUp
42340
+ },
42341
+ [`&-bottom > ${wrapperCls}`]: {
42342
+ bottom: 0,
42343
+ insetInline: 0,
42344
+ boxShadow: token2.boxShadowDrawerDown
42345
+ },
42346
+ [`${componentCls}-content`]: {
42347
+ display: "flex",
42348
+ flexDirection: "column",
42349
+ width: "100%",
42350
+ height: "100%",
42351
+ overflow: "auto",
42352
+ background: colorBgElevated,
42353
+ pointerEvents: "auto"
42354
+ },
42355
+ // Header
42356
+ [`${componentCls}-header`]: {
42357
+ display: "flex",
42358
+ flex: 0,
42359
+ alignItems: "center",
42360
+ padding: `${unit$2(padding)} ${unit$2(paddingLG)}`,
42361
+ fontSize: fontSizeLG,
42362
+ lineHeight: lineHeightLG,
42363
+ borderBottom: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`,
42364
+ "&-title": {
42365
+ display: "flex",
42366
+ flex: 1,
42367
+ alignItems: "center",
42368
+ minWidth: 0,
42369
+ minHeight: 0
42370
+ }
42371
+ },
42372
+ [`${componentCls}-extra`]: {
42373
+ flex: "none"
42374
+ },
42375
+ [`${componentCls}-close`]: Object.assign({
42376
+ display: "inline-flex",
42377
+ width: calc(fontSizeLG).add(paddingXS).equal(),
42378
+ height: calc(fontSizeLG).add(paddingXS).equal(),
42379
+ borderRadius: borderRadiusSM,
42380
+ justifyContent: "center",
42381
+ alignItems: "center",
42382
+ marginInlineEnd: marginXS,
42383
+ color: colorIcon,
42384
+ fontWeight: fontWeightStrong,
42385
+ fontSize: fontSizeLG,
42386
+ fontStyle: "normal",
42387
+ lineHeight: 1,
42388
+ textAlign: "center",
42389
+ textTransform: "none",
42390
+ textDecoration: "none",
42391
+ background: "transparent",
42392
+ border: 0,
42393
+ cursor: "pointer",
42394
+ transition: `all ${motionDurationMid}`,
42395
+ textRendering: "auto",
42396
+ "&:hover": {
42397
+ color: colorIconHover,
42398
+ backgroundColor: colorBgTextHover,
42399
+ textDecoration: "none"
42400
+ },
42401
+ "&:active": {
42402
+ backgroundColor: colorBgTextActive
42403
+ }
42404
+ }, genFocusStyle(token2)),
42405
+ [`${componentCls}-title`]: {
42406
+ flex: 1,
42407
+ margin: 0,
42408
+ fontWeight: token2.fontWeightStrong,
42409
+ fontSize: fontSizeLG,
42410
+ lineHeight: lineHeightLG
42411
+ },
42412
+ // Body
42413
+ [`${componentCls}-body`]: {
42414
+ flex: 1,
42415
+ minWidth: 0,
42416
+ minHeight: 0,
42417
+ padding: paddingLG,
42418
+ overflow: "auto",
42419
+ [`${componentCls}-body-skeleton`]: {
42420
+ width: "100%",
42421
+ height: "100%",
42422
+ display: "flex",
42423
+ justifyContent: "center"
42424
+ }
42425
+ },
42426
+ // Footer
42427
+ [`${componentCls}-footer`]: {
42428
+ flexShrink: 0,
42429
+ padding: `${unit$2(footerPaddingBlock)} ${unit$2(footerPaddingInline)}`,
42430
+ borderTop: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`
42431
+ },
42432
+ // ====================== RTL =======================
42433
+ "&-rtl": {
42434
+ direction: "rtl"
42435
+ }
42436
+ }
42437
+ };
42438
+ };
42439
+ const prepareComponentToken$a = (token2) => ({
42440
+ zIndexPopup: token2.zIndexPopupBase,
42441
+ footerPaddingBlock: token2.paddingXS,
42442
+ footerPaddingInline: token2.padding
42443
+ });
42444
+ const useStyle$c = genStyleHooks("Drawer", (token2) => {
42445
+ const drawerToken = merge$1(token2, {});
42446
+ return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
42447
+ }, prepareComponentToken$a);
42448
+ var __rest$q = function(s, e3) {
42449
+ var t2 = {};
42450
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
42451
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42452
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
42453
+ }
42454
+ return t2;
42455
+ };
42456
+ const defaultPushState = {
42457
+ distance: 180
42458
+ };
42459
+ const Drawer2 = (props) => {
42460
+ var _a;
42461
+ const {
42462
+ rootClassName,
42463
+ width,
42464
+ height,
42465
+ size = "default",
42466
+ mask = true,
42467
+ push: push2 = defaultPushState,
42468
+ open,
42469
+ afterOpenChange,
42470
+ onClose,
42471
+ prefixCls: customizePrefixCls,
42472
+ getContainer: customizeGetContainer,
42473
+ panelRef = null,
42474
+ style: style2,
42475
+ className,
42476
+ // Deprecated
42477
+ visible,
42478
+ afterVisibleChange,
42479
+ maskStyle,
42480
+ drawerStyle,
42481
+ contentWrapperStyle,
42482
+ destroyOnClose,
42483
+ destroyOnHidden
42484
+ } = 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"]);
42485
+ const {
42486
+ getPopupContainer,
42487
+ getPrefixCls,
42488
+ direction,
42489
+ className: contextClassName,
42490
+ style: contextStyle,
42491
+ classNames: contextClassNames,
42492
+ styles: contextStyles
42493
+ } = useComponentConfig("drawer");
42494
+ const prefixCls = getPrefixCls("drawer", customizePrefixCls);
42495
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
42496
+ const getContainer2 = (
42497
+ // 有可能为 false,所以不能直接判断
42498
+ customizeGetContainer === void 0 && getPopupContainer ? () => getPopupContainer(document.body) : customizeGetContainer
42499
+ );
42500
+ const drawerClassName = classNames({
42501
+ "no-mask": !mask,
42502
+ [`${prefixCls}-rtl`]: direction === "rtl"
42503
+ }, rootClassName, hashId, cssVarCls);
42504
+ if (process.env.NODE_ENV !== "production") {
42505
+ const warning3 = devUseWarning("Drawer");
42506
+ [["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]) => {
42507
+ warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
42508
+ });
42509
+ if (getContainer2 !== void 0 && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.position) === "absolute") {
42510
+ process.env.NODE_ENV !== "production" ? warning3(false, "breaking", "`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.") : void 0;
42511
+ }
42512
+ }
42513
+ const mergedWidth = React__namespace.useMemo(() => width !== null && width !== void 0 ? width : size === "large" ? 736 : 378, [width, size]);
42514
+ const mergedHeight = React__namespace.useMemo(() => height !== null && height !== void 0 ? height : size === "large" ? 736 : 378, [height, size]);
42515
+ const maskMotion = {
42516
+ motionName: getTransitionName(prefixCls, "mask-motion"),
42517
+ motionAppear: true,
42518
+ motionEnter: true,
42519
+ motionLeave: true,
42520
+ motionDeadline: 500
42521
+ };
42522
+ const panelMotion = (motionPlacement) => ({
42523
+ motionName: getTransitionName(prefixCls, `panel-motion-${motionPlacement}`),
42524
+ motionAppear: true,
42525
+ motionEnter: true,
42526
+ motionLeave: true,
42527
+ motionDeadline: 500
42528
+ });
42529
+ const innerPanelRef = usePanelRef();
42530
+ const mergedPanelRef = composeRef(panelRef, innerPanelRef);
42531
+ const [zIndex, contextZIndex] = useZIndex("Drawer", rest.zIndex);
42532
+ const {
42533
+ classNames: propClassNames = {},
42534
+ styles: propStyles = {}
42535
+ } = rest;
42536
+ return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(ContextIsolator, {
42537
+ form: true,
42538
+ space: true
42539
+ }, /* @__PURE__ */ React__namespace.createElement(zIndexContext.Provider, {
42540
+ value: contextZIndex
42541
+ }, /* @__PURE__ */ React__namespace.createElement(Drawer$1, Object.assign({
42542
+ prefixCls,
42543
+ onClose,
42544
+ maskMotion,
42545
+ motion: panelMotion
42546
+ }, rest, {
42547
+ classNames: {
42548
+ mask: classNames(propClassNames.mask, contextClassNames.mask),
42549
+ content: classNames(propClassNames.content, contextClassNames.content),
42550
+ wrapper: classNames(propClassNames.wrapper, contextClassNames.wrapper)
42551
+ },
42552
+ styles: {
42553
+ mask: Object.assign(Object.assign(Object.assign({}, propStyles.mask), maskStyle), contextStyles.mask),
42554
+ content: Object.assign(Object.assign(Object.assign({}, propStyles.content), drawerStyle), contextStyles.content),
42555
+ wrapper: Object.assign(Object.assign(Object.assign({}, propStyles.wrapper), contentWrapperStyle), contextStyles.wrapper)
42556
+ },
42557
+ open: open !== null && open !== void 0 ? open : visible,
42558
+ mask,
42559
+ push: push2,
42560
+ width: mergedWidth,
42561
+ height: mergedHeight,
42562
+ style: Object.assign(Object.assign({}, contextStyle), style2),
42563
+ className: classNames(contextClassName, className),
42564
+ rootClassName: drawerClassName,
42565
+ getContainer: getContainer2,
42566
+ afterOpenChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
42567
+ panelRef: mergedPanelRef,
42568
+ zIndex,
42569
+ // TODO: In the future, destroyOnClose in rc-drawer needs to be upgrade to destroyOnHidden
42570
+ destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
42571
+ }), /* @__PURE__ */ React__namespace.createElement(DrawerPanel2, Object.assign({
42572
+ prefixCls
42573
+ }, rest, {
42574
+ onClose
42575
+ }))))));
42576
+ };
42577
+ const PurePanel$1 = (props) => {
42578
+ const {
42579
+ prefixCls: customizePrefixCls,
42580
+ style: style2,
42581
+ className,
42582
+ placement = "right"
42583
+ } = props, restProps = __rest$q(props, ["prefixCls", "style", "className", "placement"]);
42584
+ const {
42585
+ getPrefixCls
42586
+ } = React__namespace.useContext(ConfigContext);
42587
+ const prefixCls = getPrefixCls("drawer", customizePrefixCls);
42588
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
42589
+ const cls = classNames(prefixCls, `${prefixCls}-pure`, `${prefixCls}-${placement}`, hashId, cssVarCls, className);
42590
+ return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement("div", {
42591
+ className: cls,
42592
+ style: style2
42593
+ }, /* @__PURE__ */ React__namespace.createElement(DrawerPanel2, Object.assign({
42594
+ prefixCls
42595
+ }, restProps))));
42596
+ };
42597
+ Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
42598
+ if (process.env.NODE_ENV !== "production") {
42599
+ Drawer2.displayName = "Drawer";
42600
+ }
41722
42601
  function isPresetSize(size) {
41723
42602
  return ["small", "middle", "large"].includes(size);
41724
42603
  }
@@ -41795,7 +42674,7 @@ const InternalSpace = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
41795
42674
  });
41796
42675
  const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
41797
42676
  const prefixCls = getPrefixCls("space", customizePrefixCls);
41798
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
42677
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
41799
42678
  const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
41800
42679
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
41801
42680
  [`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
@@ -43559,7 +44438,7 @@ const Group = (props) => {
43559
44438
  } = props;
43560
44439
  const prefixCls = getPrefixCls("input-group", customizePrefixCls);
43561
44440
  const inputPrefixCls = getPrefixCls("input");
43562
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(inputPrefixCls);
44441
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(inputPrefixCls);
43563
44442
  const cls = classNames(prefixCls, cssVarCls, {
43564
44443
  [`${prefixCls}-lg`]: props.size === "large",
43565
44444
  [`${prefixCls}-sm`]: props.size === "small",
@@ -46696,7 +47575,7 @@ const PurePanel = (props) => {
46696
47575
  } = React__namespace.useContext(ConfigContext);
46697
47576
  const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
46698
47577
  const [wrapCSSVar] = useStyle$6(prefixCls);
46699
- return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$3, {
47578
+ return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$4, {
46700
47579
  placement,
46701
47580
  className: classNames(prefixCls, className),
46702
47581
  style: style2,
@@ -60728,6 +61607,9 @@ function IconBase2(props) {
60728
61607
  function FaCircleCheck(props) {
60729
61608
  return GenIcon({ "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, "child": [] }] })(props);
60730
61609
  }
61610
+ function HiArrowLeft(props) {
61611
+ 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);
61612
+ }
60731
61613
  function HiClock(props) {
60732
61614
  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 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", "clipRule": "evenodd" }, "child": [] }] })(props);
60733
61615
  }
@@ -60746,6 +61628,9 @@ function HiSearch(props) {
60746
61628
  function HiXCircle(props) {
60747
61629
  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);
60748
61630
  }
61631
+ function HiX(props) {
61632
+ 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);
61633
+ }
60749
61634
  function HiOutlineAdjustments(props) {
60750
61635
  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);
60751
61636
  }
@@ -84299,6 +85184,195 @@ const Shapes = ({ variant = "triangle", fill }) => {
84299
85184
  }
84300
85185
  return /* @__PURE__ */ jsxRuntime.jsx(Triangle, { fill, dataTestId: "shape-triangle" });
84301
85186
  };
85187
+ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 }, $type = "float", placement = "right") => {
85188
+ const isFloat = $type === "float";
85189
+ const offset2 = isFloat ? 24 : 0;
85190
+ const edge = placement === "right" ? "right" : "left";
85191
+ return `
85192
+ .ant-drawer-content-wrapper {
85193
+ box-shadow: none !important;
85194
+ }
85195
+
85196
+ .ant-drawer-content {
85197
+ position: relative !important;
85198
+ box-shadow: none !important;
85199
+ ${edge}: ${offset2}px !important;
85200
+ top: ${offset2}px !important;
85201
+ height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
85202
+ border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
85203
+ }
85204
+
85205
+ .ant-drawer-footer {
85206
+ padding: 0px !important;
85207
+ }
85208
+
85209
+ .ant-drawer-body {
85210
+ padding: 0px;
85211
+ overflow: hidden;
85212
+ display: flex;
85213
+ flex-direction: column;
85214
+ height: 100%;
85215
+ }
85216
+ `;
85217
+ };
85218
+ const StyledSidePanel = styled(Drawer2).attrs({
85219
+ destroyOnHidden: true,
85220
+ push: false
85221
+ })`
85222
+ ${({ theme, $type = "float", placement = "right" }) => {
85223
+ if (!theme) return "";
85224
+ return getGenesisDrawerClass(theme, $type, placement);
85225
+ }}
85226
+ `;
85227
+ const ScrollableContent = styled.div`
85228
+ overflow-y: auto;
85229
+ flex: 1;
85230
+ display: flex;
85231
+ flex-direction: column;
85232
+ `;
85233
+ const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
85234
+ position: sticky;
85235
+ top: 0;
85236
+ z-index: 10;
85237
+ background-color: ${colors2?.surface?.active?.backgroundColor || "#FFFFFF"};
85238
+ `;
85239
+ const StickyHeader = styled(Tile)`
85240
+ ${({ theme }) => {
85241
+ if (!theme) return "";
85242
+ return getGenesisStickyHeaderClass(theme);
85243
+ }}
85244
+ `;
85245
+ const SidePanel = ({
85246
+ type: type4 = "float",
85247
+ open,
85248
+ children: children2,
85249
+ placement = "right",
85250
+ header,
85251
+ footer: footer2
85252
+ }) => {
85253
+ const theme = styled.useTheme();
85254
+ const {
85255
+ avatar,
85256
+ title,
85257
+ description,
85258
+ showBackBtn = false,
85259
+ actions: headerActions = [],
85260
+ onClose,
85261
+ onBackBtnClick = () => {
85262
+ alert("Back button event not defined");
85263
+ }
85264
+ } = header;
85265
+ const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
85266
+ const spacing = {
85267
+ Size1: theme?.sizing?.Size1 || 4,
85268
+ Size3: theme?.sizing?.Size3 || 12,
85269
+ Size4: theme?.sizing?.Size4 || 16,
85270
+ Size6: theme?.sizing?.Size6 || 24
85271
+ };
85272
+ const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
85273
+ const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
85274
+ const handleClose = () => {
85275
+ onClose();
85276
+ };
85277
+ const BackBtn = () => {
85278
+ return showBackBtn ? /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiArrowLeft, {}), onClick: onBackBtnClick }) : null;
85279
+ };
85280
+ const HeaderActions = () => {
85281
+ const showMenuBtn = headerActions.length > 1;
85282
+ const menuItems = headerActions.slice(1);
85283
+ return headerActions.length ? /* @__PURE__ */ jsxRuntime.jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size4}px` }, children: [
85284
+ /* @__PURE__ */ jsxRuntime.jsx(
85285
+ Button$1,
85286
+ {
85287
+ ...headerActions[0].btnProps,
85288
+ onClick: headerActions[0].onClick,
85289
+ children: headerActions[0].label
85290
+ }
85291
+ ),
85292
+ showMenuBtn && /* @__PURE__ */ jsxRuntime.jsx(
85293
+ OverflowMenu,
85294
+ {
85295
+ trigger: /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiDotsHorizontal, {}) }),
85296
+ placement: "bottom",
85297
+ alignment: "left",
85298
+ children: menuItems.map((item, index2) => /* @__PURE__ */ React.createElement(OverflowMenuItem, { ...item.menuItemProps, key: index2, onClick: item.onClick }, item.label))
85299
+ }
85300
+ )
85301
+ ] }) : null;
85302
+ };
85303
+ const SidePanelHeader = () => {
85304
+ return /* @__PURE__ */ jsxRuntime.jsx(
85305
+ Tile,
85306
+ {
85307
+ isHorizontal: true,
85308
+ style: {
85309
+ overflowY: "auto",
85310
+ alignItems: "center",
85311
+ justifyContent: "space-between",
85312
+ padding: `${spacing.Size6}px`,
85313
+ borderBottom: `1px solid ${borderColor}`
85314
+ },
85315
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Tile, { isHorizontal: true, style: {
85316
+ alignItems: "flexStart",
85317
+ gap: `${spacing.Size4}px`,
85318
+ flex: 1
85319
+ }, children: [
85320
+ /* @__PURE__ */ jsxRuntime.jsx(BackBtn, {}),
85321
+ /* @__PURE__ */ jsxRuntime.jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1, padding: `${spacing.Size1}px 0px` }, children: [
85322
+ /* @__PURE__ */ jsxRuntime.jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size3}px`, alignItems: "center" }, children: [
85323
+ avatar && /* @__PURE__ */ jsxRuntime.jsx(Avatar, { ...avatar, size: 32 }),
85324
+ /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "24px", variant: "heading1", fontWeight: 400, color: textColor, children: title })
85325
+ ] }),
85326
+ /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description }),
85327
+ /* @__PURE__ */ jsxRuntime.jsx(HeaderActions, {})
85328
+ ] }),
85329
+ /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiX, {}), onClick: handleClose })
85330
+ ] })
85331
+ }
85332
+ );
85333
+ };
85334
+ const SidePanelFooter = () => {
85335
+ const showMenuBtn = footerActions.length > 1;
85336
+ const menuItems = footerActions.slice(1);
85337
+ return showFooter && footerActions.length ? /* @__PURE__ */ jsxRuntime.jsxs(Tile, { isHorizontal: true, style: { padding: `${spacing.Size6}px`, gap: `${spacing.Size4}px` }, children: [
85338
+ /* @__PURE__ */ jsxRuntime.jsx(
85339
+ Button$1,
85340
+ {
85341
+ ...footerActions[0].btnProps,
85342
+ onClick: footerActions[0].onClick,
85343
+ style: { flex: 1, ...footerActions[0].btnProps?.style },
85344
+ children: footerActions[0].label
85345
+ }
85346
+ ),
85347
+ showMenuBtn && /* @__PURE__ */ jsxRuntime.jsx(
85348
+ OverflowMenu,
85349
+ {
85350
+ trigger: /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiDotsHorizontal, {}) }),
85351
+ placement: "top",
85352
+ alignment: "right",
85353
+ children: menuItems.map((item, index2) => /* @__PURE__ */ React.createElement(OverflowMenuItem, { ...item.menuItemProps, key: index2, onClick: item.onClick }, item.label))
85354
+ }
85355
+ )
85356
+ ] }) : null;
85357
+ };
85358
+ return /* @__PURE__ */ jsxRuntime.jsxs(
85359
+ StyledSidePanel,
85360
+ {
85361
+ closable: false,
85362
+ onClose: () => {
85363
+ },
85364
+ width: 520,
85365
+ footer: /* @__PURE__ */ jsxRuntime.jsx(SidePanelFooter, {}),
85366
+ open,
85367
+ $type: type4,
85368
+ placement,
85369
+ children: [
85370
+ /* @__PURE__ */ jsxRuntime.jsx(StickyHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SidePanelHeader, {}) }),
85371
+ /* @__PURE__ */ jsxRuntime.jsx(ScrollableContent, { children: children2 })
85372
+ ]
85373
+ }
85374
+ );
85375
+ };
84302
85376
  const getGenesisClass$2 = ({ colors: colors2, borderRadius: borderRadius2 }) => `
84303
85377
  &.ant-switch {
84304
85378
  background-color: ${colors2.primary.active};
@@ -87474,6 +88548,7 @@ exports.Row = Row;
87474
88548
  exports.SegmentedControls = SegmentedControls;
87475
88549
  exports.Select = Select;
87476
88550
  exports.Shapes = Shapes;
88551
+ exports.SidePanel = SidePanel;
87477
88552
  exports.Switch = Switch;
87478
88553
  exports.Table = TablePagination;
87479
88554
  exports.TableWithControls = TableWithControls;