@gobolt/genesis 0.8.4 → 0.9.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.js CHANGED
@@ -1842,18 +1842,18 @@ var ThemeCache = /* @__PURE__ */ (function() {
1842
1842
  })();
1843
1843
  _defineProperty$1(ThemeCache, "MAX_CACHE_SIZE", 20);
1844
1844
  _defineProperty$1(ThemeCache, "MAX_CACHE_OFFSET", 5);
1845
- var uuid$5 = 0;
1845
+ var uuid$6 = 0;
1846
1846
  var Theme = /* @__PURE__ */ (function() {
1847
1847
  function Theme2(derivatives) {
1848
1848
  _classCallCheck(this, Theme2);
1849
1849
  _defineProperty$1(this, "derivatives", void 0);
1850
1850
  _defineProperty$1(this, "id", void 0);
1851
1851
  this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
1852
- this.id = uuid$5;
1852
+ this.id = uuid$6;
1853
1853
  if (derivatives.length === 0) {
1854
1854
  warning$3(derivatives.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function.");
1855
1855
  }
1856
- uuid$5 += 1;
1856
+ uuid$6 += 1;
1857
1857
  }
1858
1858
  _createClass(Theme2, [{
1859
1859
  key: "getDerivativeToken",
@@ -3392,20 +3392,23 @@ const localeValues = {
3392
3392
  gradientColor: "Gradient"
3393
3393
  }
3394
3394
  };
3395
- Object.assign({}, localeValues.Modal);
3395
+ let runtimeLocale = Object.assign({}, localeValues.Modal);
3396
3396
  let localeList = [];
3397
3397
  const generateLocale = () => localeList.reduce((merged, locale2) => Object.assign(Object.assign({}, merged), locale2), localeValues.Modal);
3398
3398
  function changeConfirmLocale(newLocale) {
3399
3399
  if (newLocale) {
3400
3400
  const cloneLocale = Object.assign({}, newLocale);
3401
3401
  localeList.push(cloneLocale);
3402
- generateLocale();
3402
+ runtimeLocale = generateLocale();
3403
3403
  return () => {
3404
3404
  localeList = localeList.filter((locale2) => locale2 !== cloneLocale);
3405
- generateLocale();
3405
+ runtimeLocale = generateLocale();
3406
3406
  };
3407
3407
  }
3408
- Object.assign({}, localeValues.Modal);
3408
+ runtimeLocale = Object.assign({}, localeValues.Modal);
3409
+ }
3410
+ function getConfirmLocale() {
3411
+ return runtimeLocale;
3409
3412
  }
3410
3413
  const LocaleContext = /* @__PURE__ */ createContext$1(void 0);
3411
3414
  const useLocale$1 = (componentName, defaultLocale2) => {
@@ -5253,7 +5256,7 @@ function getAlphaColor(frontColor, backgroundColor) {
5253
5256
  a: 1
5254
5257
  }).toRgbString();
5255
5258
  }
5256
- var __rest$$ = function(s, e3) {
5259
+ var __rest$13 = function(s, e3) {
5257
5260
  var t2 = {};
5258
5261
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5259
5262
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5264,7 +5267,7 @@ var __rest$$ = function(s, e3) {
5264
5267
  function formatToken(derivativeToken) {
5265
5268
  const {
5266
5269
  override
5267
- } = derivativeToken, restToken = __rest$$(derivativeToken, ["override"]);
5270
+ } = derivativeToken, restToken = __rest$13(derivativeToken, ["override"]);
5268
5271
  const overrideTokens = Object.assign({}, override);
5269
5272
  Object.keys(seedToken).forEach((token2) => {
5270
5273
  delete overrideTokens[token2];
@@ -5418,7 +5421,7 @@ function formatToken(derivativeToken) {
5418
5421
  }), overrideTokens);
5419
5422
  return aliasToken;
5420
5423
  }
5421
- var __rest$_ = function(s, e3) {
5424
+ var __rest$12 = function(s, e3) {
5422
5425
  var t2 = {};
5423
5426
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
5424
5427
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -5468,7 +5471,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5468
5471
  const derivativeToken = theme.getDerivativeToken(originToken);
5469
5472
  const {
5470
5473
  override
5471
- } = overrideToken, components2 = __rest$_(overrideToken, ["override"]);
5474
+ } = overrideToken, components2 = __rest$12(overrideToken, ["override"]);
5472
5475
  let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
5473
5476
  override
5474
5477
  });
@@ -5477,7 +5480,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
5477
5480
  Object.entries(components2).forEach(([key, value2]) => {
5478
5481
  const {
5479
5482
  theme: componentTheme
5480
- } = value2, componentTokens = __rest$_(value2, ["theme"]);
5483
+ } = value2, componentTokens = __rest$12(value2, ["theme"]);
5481
5484
  let mergedComponentToken = componentTokens;
5482
5485
  if (componentTheme) {
5483
5486
  mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
@@ -6432,7 +6435,7 @@ if (process.env.NODE_ENV !== "production") {
6432
6435
  PropWarning.displayName = "PropWarning";
6433
6436
  }
6434
6437
  const PropWarning$1 = process.env.NODE_ENV !== "production" ? PropWarning : () => null;
6435
- var __rest$Z = function(s, e3) {
6438
+ var __rest$11 = function(s, e3) {
6436
6439
  var t2 = {};
6437
6440
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
6438
6441
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -6441,7 +6444,7 @@ var __rest$Z = function(s, e3) {
6441
6444
  return t2;
6442
6445
  };
6443
6446
  let existThemeConfig = false;
6444
- process.env.NODE_ENV !== "production" ? (componentName) => {
6447
+ const warnContext = process.env.NODE_ENV !== "production" ? (componentName) => {
6445
6448
  process.env.NODE_ENV !== "production" ? warning$2(!existThemeConfig, componentName, `Static function can not consume context like dynamic theme. Please use 'App' component instead.`) : void 0;
6446
6449
  } : (
6447
6450
  /* istanbul ignore next */
@@ -6449,9 +6452,15 @@ process.env.NODE_ENV !== "production" ? (componentName) => {
6449
6452
  );
6450
6453
  const PASSED_PROPS = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
6451
6454
  let globalPrefixCls;
6455
+ let globalIconPrefixCls;
6456
+ let globalTheme;
6457
+ let globalHolderRender;
6452
6458
  function getGlobalPrefixCls() {
6453
6459
  return globalPrefixCls || defaultPrefixCls;
6454
6460
  }
6461
+ function getGlobalIconPrefixCls() {
6462
+ return globalIconPrefixCls || defaultIconPrefixCls;
6463
+ }
6455
6464
  function isLegacyTheme(theme) {
6456
6465
  return Object.keys(theme).some((key) => key.endsWith("Color"));
6457
6466
  }
@@ -6465,13 +6474,38 @@ const setGlobalConfig = (props) => {
6465
6474
  if (prefixCls !== void 0) {
6466
6475
  globalPrefixCls = prefixCls;
6467
6476
  }
6477
+ if (iconPrefixCls !== void 0) {
6478
+ globalIconPrefixCls = iconPrefixCls;
6479
+ }
6480
+ if ("holderRender" in props) {
6481
+ globalHolderRender = holderRender;
6482
+ }
6468
6483
  if (theme) {
6469
6484
  if (isLegacyTheme(theme)) {
6470
6485
  process.env.NODE_ENV !== "production" ? warning$2(false, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead.") : void 0;
6471
6486
  registerTheme(getGlobalPrefixCls(), theme);
6487
+ } else {
6488
+ globalTheme = theme;
6472
6489
  }
6473
6490
  }
6474
6491
  };
6492
+ const globalConfig = () => ({
6493
+ getPrefixCls: (suffixCls, customizePrefixCls) => {
6494
+ if (customizePrefixCls) {
6495
+ return customizePrefixCls;
6496
+ }
6497
+ return suffixCls ? `${getGlobalPrefixCls()}-${suffixCls}` : getGlobalPrefixCls();
6498
+ },
6499
+ getIconPrefixCls: getGlobalIconPrefixCls,
6500
+ getRootPrefixCls: () => {
6501
+ if (globalPrefixCls) {
6502
+ return globalPrefixCls;
6503
+ }
6504
+ return getGlobalPrefixCls();
6505
+ },
6506
+ getTheme: () => globalTheme,
6507
+ holderRender: globalHolderRender
6508
+ });
6475
6509
  const ProviderChildren = (props) => {
6476
6510
  const {
6477
6511
  children: children2,
@@ -6719,7 +6753,7 @@ const ProviderChildren = (props) => {
6719
6753
  token: token2,
6720
6754
  components: components2,
6721
6755
  cssVar
6722
- } = _a, rest = __rest$Z(_a, ["algorithm", "token", "components", "cssVar"]);
6756
+ } = _a, rest = __rest$11(_a, ["algorithm", "token", "components", "cssVar"]);
6723
6757
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
6724
6758
  const parsedComponents = {};
6725
6759
  Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
@@ -7233,7 +7267,7 @@ const genActionStyle = (token2) => {
7233
7267
  }
7234
7268
  };
7235
7269
  };
7236
- const prepareComponentToken$q = (token2) => {
7270
+ const prepareComponentToken$r = (token2) => {
7237
7271
  const paddingHorizontal = 12;
7238
7272
  return {
7239
7273
  withDescriptionIconSize: token2.fontSizeHeading3,
@@ -7241,8 +7275,8 @@ const prepareComponentToken$q = (token2) => {
7241
7275
  withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
7242
7276
  };
7243
7277
  };
7244
- const useStyle$w = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$q);
7245
- var __rest$Y = function(s, e3) {
7278
+ const useStyle$x = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$r);
7279
+ var __rest$10 = function(s, e3) {
7246
7280
  var t2 = {};
7247
7281
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
7248
7282
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -7309,7 +7343,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7309
7343
  closeIcon,
7310
7344
  action,
7311
7345
  id: id2
7312
- } = props, otherProps = __rest$Y(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7346
+ } = props, otherProps = __rest$10(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
7313
7347
  const [closed, setClosed] = React.useState(false);
7314
7348
  if (process.env.NODE_ENV !== "production") {
7315
7349
  const warning3 = devUseWarning("Alert");
@@ -7328,7 +7362,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7328
7362
  style: contextStyle
7329
7363
  } = useComponentConfig("alert");
7330
7364
  const prefixCls = getPrefixCls("alert", customizePrefixCls);
7331
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$w(prefixCls);
7365
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$x(prefixCls);
7332
7366
  const handleClose = (e3) => {
7333
7367
  var _a;
7334
7368
  setClosed(true);
@@ -7384,7 +7418,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
7384
7418
  if (typeof merged === "object") {
7385
7419
  const {
7386
7420
  closeIcon: _
7387
- } = merged, ariaProps = __rest$Y(merged, ["closeIcon"]);
7421
+ } = merged, ariaProps = __rest$10(merged, ["closeIcon"]);
7388
7422
  return ariaProps;
7389
7423
  }
7390
7424
  return {};
@@ -7574,7 +7608,7 @@ function e(e3, r2) {
7574
7608
  function isWindow(obj) {
7575
7609
  return obj !== null && obj !== void 0 && obj === obj.window;
7576
7610
  }
7577
- const getScroll = (target) => {
7611
+ const getScroll$1 = (target) => {
7578
7612
  var _a, _b;
7579
7613
  if (typeof window === "undefined") {
7580
7614
  return 0;
@@ -7609,7 +7643,7 @@ function scrollTo(y2, options = {}) {
7609
7643
  duration = 450
7610
7644
  } = options;
7611
7645
  const container = getContainer2();
7612
- const scrollTop = getScroll(container);
7646
+ const scrollTop = getScroll$1(container);
7613
7647
  const startTime = Date.now();
7614
7648
  const frameFunc = () => {
7615
7649
  const timestamp = Date.now();
@@ -7850,6 +7884,16 @@ const useZIndex = (componentType, customZIndex) => {
7850
7884
  }
7851
7885
  return result;
7852
7886
  };
7887
+ function usePatchElement() {
7888
+ const [elements, setElements] = React.useState([]);
7889
+ const patchElement = React.useCallback((element2) => {
7890
+ setElements((originElements) => [].concat(_toConsumableArray(originElements), [element2]));
7891
+ return () => {
7892
+ setElements((originElements) => originElements.filter((ele) => ele !== element2));
7893
+ };
7894
+ }, []);
7895
+ return [elements, patchElement];
7896
+ }
7853
7897
  function _OverloadYield(e3, d) {
7854
7898
  this.v = e3, this.k = d;
7855
7899
  }
@@ -8290,7 +8334,7 @@ const genWaveStyle = (token2) => {
8290
8334
  }
8291
8335
  };
8292
8336
  };
8293
- const useStyle$v = genComponentStyleHook("Wave", genWaveStyle);
8337
+ const useStyle$w = genComponentStyleHook("Wave", genWaveStyle);
8294
8338
  const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
8295
8339
  function isValidWaveColor(color2) {
8296
8340
  return color2 && color2 !== "#fff" && color2 !== "#ffffff" && color2 !== "rgb(255, 255, 255)" && color2 !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(color2) && // any transparent rgba color
@@ -8468,7 +8512,7 @@ const Wave = (props) => {
8468
8512
  } = useContext$1(ConfigContext);
8469
8513
  const containerRef = useRef(null);
8470
8514
  const prefixCls = getPrefixCls("wave");
8471
- const [, hashId] = useStyle$v(prefixCls);
8515
+ const [, hashId] = useStyle$w(prefixCls);
8472
8516
  const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
8473
8517
  React__default.useEffect(() => {
8474
8518
  const node2 = containerRef.current;
@@ -8596,7 +8640,7 @@ const genSpaceGapStyle = (token2) => {
8596
8640
  }
8597
8641
  };
8598
8642
  };
8599
- const useStyle$u = genStyleHooks("Space", (token2) => {
8643
+ const useStyle$v = genStyleHooks("Space", (token2) => {
8600
8644
  const spaceToken = merge$1(token2, {
8601
8645
  spaceGapSmallSize: token2.paddingXS,
8602
8646
  spaceGapMiddleSize: token2.padding,
@@ -8608,7 +8652,7 @@ const useStyle$u = genStyleHooks("Space", (token2) => {
8608
8652
  // https://github.com/ant-design/ant-design/issues/40315
8609
8653
  resetStyle: false
8610
8654
  });
8611
- var __rest$X = function(s, e3) {
8655
+ var __rest$$ = function(s, e3) {
8612
8656
  var t2 = {};
8613
8657
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8614
8658
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8652,7 +8696,7 @@ const NoCompactStyle = (props) => {
8652
8696
  const CompactItem = (props) => {
8653
8697
  const {
8654
8698
  children: children2
8655
- } = props, others = __rest$X(props, ["children"]);
8699
+ } = props, others = __rest$$(props, ["children"]);
8656
8700
  return /* @__PURE__ */ React.createElement(SpaceCompactItemContext.Provider, {
8657
8701
  value: React.useMemo(() => others, [others])
8658
8702
  }, children2);
@@ -8670,10 +8714,10 @@ const Compact$1 = (props) => {
8670
8714
  className,
8671
8715
  rootClassName,
8672
8716
  children: children2
8673
- } = props, restProps = __rest$X(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8717
+ } = props, restProps = __rest$$(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
8674
8718
  const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
8675
8719
  const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
8676
- const [wrapCSSVar, hashId] = useStyle$u(prefixCls);
8720
+ const [wrapCSSVar, hashId] = useStyle$v(prefixCls);
8677
8721
  const clx = classNames(prefixCls, hashId, {
8678
8722
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
8679
8723
  [`${prefixCls}-block`]: block,
@@ -8698,7 +8742,7 @@ const Compact$1 = (props) => {
8698
8742
  className: clx
8699
8743
  }, restProps), nodes));
8700
8744
  };
8701
- var __rest$W = function(s, e3) {
8745
+ var __rest$_ = function(s, e3) {
8702
8746
  var t2 = {};
8703
8747
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
8704
8748
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -8716,7 +8760,7 @@ const ButtonGroup = (props) => {
8716
8760
  prefixCls: customizePrefixCls,
8717
8761
  size,
8718
8762
  className
8719
- } = props, others = __rest$W(props, ["prefixCls", "size", "className"]);
8763
+ } = props, others = __rest$_(props, ["prefixCls", "size", "className"]);
8720
8764
  const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
8721
8765
  const [, , hashId] = useToken();
8722
8766
  const sizeCls = React.useMemo(() => {
@@ -9616,6 +9660,41 @@ const initMotion = (motionCls, inKeyframes, outKeyframes, duration, sameLevel =
9616
9660
  }
9617
9661
  };
9618
9662
  };
9663
+ const fadeIn = new Keyframe("antFadeIn", {
9664
+ "0%": {
9665
+ opacity: 0
9666
+ },
9667
+ "100%": {
9668
+ opacity: 1
9669
+ }
9670
+ });
9671
+ const fadeOut = new Keyframe("antFadeOut", {
9672
+ "0%": {
9673
+ opacity: 1
9674
+ },
9675
+ "100%": {
9676
+ opacity: 0
9677
+ }
9678
+ });
9679
+ const initFadeMotion = (token2, sameLevel = false) => {
9680
+ const {
9681
+ antCls
9682
+ } = token2;
9683
+ const motionCls = `${antCls}-fade`;
9684
+ const sameLevelPrefix = sameLevel ? "&" : "";
9685
+ return [initMotion(motionCls, fadeIn, fadeOut, token2.motionDurationMid, sameLevel), {
9686
+ [`
9687
+ ${sameLevelPrefix}${motionCls}-enter,
9688
+ ${sameLevelPrefix}${motionCls}-appear
9689
+ `]: {
9690
+ opacity: 0,
9691
+ animationTimingFunction: "linear"
9692
+ },
9693
+ [`${sameLevelPrefix}${motionCls}-leave`]: {
9694
+ animationTimingFunction: "linear"
9695
+ }
9696
+ }];
9697
+ };
9619
9698
  const moveDownIn = new Keyframe("antMoveDownIn", {
9620
9699
  "0%": {
9621
9700
  transform: "translate3d(0, 100%, 0)",
@@ -10094,7 +10173,7 @@ const isBright = (value2, bgColorToken) => {
10094
10173
  }
10095
10174
  return r2 * 0.299 + g * 0.587 + b * 0.114 > 192;
10096
10175
  };
10097
- const prepareToken$2 = (token2) => {
10176
+ const prepareToken$3 = (token2) => {
10098
10177
  const {
10099
10178
  paddingInline,
10100
10179
  onlyIconSize
@@ -10106,7 +10185,7 @@ const prepareToken$2 = (token2) => {
10106
10185
  });
10107
10186
  return buttonToken;
10108
10187
  };
10109
- const prepareComponentToken$p = (token2) => {
10188
+ const prepareComponentToken$q = (token2) => {
10110
10189
  var _a, _b, _c, _d, _e, _f;
10111
10190
  const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
10112
10191
  const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
@@ -10613,8 +10692,8 @@ const genBlockButtonStyle = (token2) => {
10613
10692
  }
10614
10693
  };
10615
10694
  };
10616
- const useStyle$t = genStyleHooks("Button", (token2) => {
10617
- const buttonToken = prepareToken$2(token2);
10695
+ const useStyle$u = genStyleHooks("Button", (token2) => {
10696
+ const buttonToken = prepareToken$3(token2);
10618
10697
  return [
10619
10698
  // Shared
10620
10699
  genSharedButtonStyle(buttonToken),
@@ -10631,7 +10710,7 @@ const useStyle$t = genStyleHooks("Button", (token2) => {
10631
10710
  // Button Group
10632
10711
  genGroupStyle$2(buttonToken)
10633
10712
  ];
10634
- }, prepareComponentToken$p, {
10713
+ }, prepareComponentToken$q, {
10635
10714
  unitless: {
10636
10715
  fontWeight: true,
10637
10716
  contentLineHeight: true,
@@ -10772,15 +10851,15 @@ const genButtonCompactStyle = (token2) => {
10772
10851
  return Object.assign(Object.assign({}, getCompactBorderStyle()), getCompactBorderStyle(true));
10773
10852
  };
10774
10853
  const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
10775
- const buttonToken = prepareToken$2(token2);
10854
+ const buttonToken = prepareToken$3(token2);
10776
10855
  return [
10777
10856
  // Space Compact
10778
10857
  genCompactItemStyle(buttonToken),
10779
10858
  genCompactItemVerticalStyle(buttonToken),
10780
10859
  genButtonCompactStyle(buttonToken)
10781
10860
  ];
10782
- }, prepareComponentToken$p);
10783
- var __rest$V = function(s, e3) {
10861
+ }, prepareComponentToken$q);
10862
+ var __rest$Z = function(s, e3) {
10784
10863
  var t2 = {};
10785
10864
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
10786
10865
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -10836,7 +10915,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
10836
10915
  style: customStyle = {},
10837
10916
  autoInsertSpace,
10838
10917
  autoFocus
10839
- } = props, rest = __rest$V(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
10918
+ } = props, rest = __rest$Z(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
10840
10919
  const mergedType = type4 || "default";
10841
10920
  const {
10842
10921
  button: button2
@@ -10871,7 +10950,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
10871
10950
  } = useComponentConfig("button");
10872
10951
  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
10873
10952
  const prefixCls = getPrefixCls("btn", customizePrefixCls);
10874
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
10953
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
10875
10954
  const disabled2 = useContext$1(DisabledContext);
10876
10955
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
10877
10956
  const groupSize = useContext$1(GroupSizeContext);
@@ -11116,6 +11195,59 @@ const ActionButton$1 = (props) => {
11116
11195
  ref: buttonRef
11117
11196
  }), children2);
11118
11197
  };
11198
+ const ModalContext = /* @__PURE__ */ React__default.createContext({});
11199
+ const {
11200
+ Provider: ModalContextProvider
11201
+ } = ModalContext;
11202
+ const ConfirmCancelBtn = () => {
11203
+ const {
11204
+ autoFocusButton,
11205
+ cancelButtonProps,
11206
+ cancelTextLocale,
11207
+ isSilent,
11208
+ mergedOkCancel,
11209
+ rootPrefixCls,
11210
+ close,
11211
+ onCancel,
11212
+ onConfirm
11213
+ } = useContext$1(ModalContext);
11214
+ return mergedOkCancel ? /* @__PURE__ */ React__default.createElement(ActionButton$1, {
11215
+ isSilent,
11216
+ actionFn: onCancel,
11217
+ close: (...args) => {
11218
+ close === null || close === void 0 ? void 0 : close.apply(void 0, args);
11219
+ onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);
11220
+ },
11221
+ autoFocus: autoFocusButton === "cancel",
11222
+ buttonProps: cancelButtonProps,
11223
+ prefixCls: `${rootPrefixCls}-btn`
11224
+ }, cancelTextLocale) : null;
11225
+ };
11226
+ const ConfirmOkBtn = () => {
11227
+ const {
11228
+ autoFocusButton,
11229
+ close,
11230
+ isSilent,
11231
+ okButtonProps,
11232
+ rootPrefixCls,
11233
+ okTextLocale,
11234
+ okType,
11235
+ onConfirm,
11236
+ onOk
11237
+ } = useContext$1(ModalContext);
11238
+ return /* @__PURE__ */ React__default.createElement(ActionButton$1, {
11239
+ isSilent,
11240
+ type: okType || "primary",
11241
+ actionFn: onOk,
11242
+ close: (...args) => {
11243
+ close === null || close === void 0 ? void 0 : close.apply(void 0, args);
11244
+ onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(true);
11245
+ },
11246
+ autoFocus: autoFocusButton === "ok",
11247
+ buttonProps: okButtonProps,
11248
+ prefixCls: `${rootPrefixCls}-btn`
11249
+ }, okTextLocale);
11250
+ };
11119
11251
  var OrderContext = /* @__PURE__ */ React.createContext(null);
11120
11252
  var EMPTY_LIST$5 = [];
11121
11253
  function useDom(render2, debug) {
@@ -11234,12 +11366,12 @@ function isBodyOverflowing() {
11234
11366
  return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
11235
11367
  }
11236
11368
  var UNIQUE_ID = "rc-util-locker-".concat(Date.now());
11237
- var uuid$4 = 0;
11369
+ var uuid$5 = 0;
11238
11370
  function useScrollLocker(lock) {
11239
11371
  var mergedLock = !!lock;
11240
11372
  var _React$useState = React.useState(function() {
11241
- uuid$4 += 1;
11242
- return "".concat(UNIQUE_ID, "_").concat(uuid$4);
11373
+ uuid$5 += 1;
11374
+ return "".concat(UNIQUE_ID, "_").concat(uuid$5);
11243
11375
  }), _React$useState2 = _slicedToArray(_React$useState, 1), id2 = _React$useState2[0];
11244
11376
  useLayoutEffect$1(function() {
11245
11377
  if (mergedLock) {
@@ -11318,11 +11450,12 @@ var Portal = /* @__PURE__ */ React.forwardRef(function(props, ref) {
11318
11450
  if (process.env.NODE_ENV !== "production") {
11319
11451
  Portal.displayName = "Portal";
11320
11452
  }
11453
+ var RefContext$1 = /* @__PURE__ */ React.createContext({});
11321
11454
  function getUseId() {
11322
11455
  var fullClone2 = _objectSpread2({}, React);
11323
11456
  return fullClone2.useId;
11324
11457
  }
11325
- var uuid$3 = 0;
11458
+ var uuid$4 = 0;
11326
11459
  var useOriginId = getUseId();
11327
11460
  const useId$2 = useOriginId ? (
11328
11461
  // Use React `useId`
@@ -11341,8 +11474,8 @@ const useId$2 = useOriginId ? (
11341
11474
  function useCompatId(id2) {
11342
11475
  var _React$useState = React.useState("ssr-id"), _React$useState2 = _slicedToArray(_React$useState, 2), innerId = _React$useState2[0], setInnerId = _React$useState2[1];
11343
11476
  React.useEffect(function() {
11344
- var nextId = uuid$3;
11345
- uuid$3 += 1;
11477
+ var nextId = uuid$4;
11478
+ uuid$4 += 1;
11346
11479
  setInnerId("rc_unique_".concat(nextId));
11347
11480
  }, []);
11348
11481
  if (id2) {
@@ -11354,6 +11487,366 @@ const useId$2 = useOriginId ? (
11354
11487
  return innerId;
11355
11488
  }
11356
11489
  );
11490
+ function getMotionName(prefixCls, transitionName, animationName) {
11491
+ var motionName = transitionName;
11492
+ if (!motionName && animationName) {
11493
+ motionName = "".concat(prefixCls, "-").concat(animationName);
11494
+ }
11495
+ return motionName;
11496
+ }
11497
+ function getScroll(w, top) {
11498
+ var ret = w["page".concat(top ? "Y" : "X", "Offset")];
11499
+ var method4 = "scroll".concat(top ? "Top" : "Left");
11500
+ if (typeof ret !== "number") {
11501
+ var d = w.document;
11502
+ ret = d.documentElement[method4];
11503
+ if (typeof ret !== "number") {
11504
+ ret = d.body[method4];
11505
+ }
11506
+ }
11507
+ return ret;
11508
+ }
11509
+ function offset$1(el) {
11510
+ var rect = el.getBoundingClientRect();
11511
+ var pos = {
11512
+ left: rect.left,
11513
+ top: rect.top
11514
+ };
11515
+ var doc = el.ownerDocument;
11516
+ var w = doc.defaultView || doc.parentWindow;
11517
+ pos.left += getScroll(w);
11518
+ pos.top += getScroll(w, true);
11519
+ return pos;
11520
+ }
11521
+ const MemoChildren = /* @__PURE__ */ React.memo(function(_ref) {
11522
+ var children2 = _ref.children;
11523
+ return children2;
11524
+ }, function(_, _ref2) {
11525
+ var shouldUpdate = _ref2.shouldUpdate;
11526
+ return !shouldUpdate;
11527
+ });
11528
+ var sentinelStyle$1 = {
11529
+ width: 0,
11530
+ height: 0,
11531
+ overflow: "hidden",
11532
+ outline: "none"
11533
+ };
11534
+ var entityStyle = {
11535
+ outline: "none"
11536
+ };
11537
+ var Panel$1 = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
11538
+ var prefixCls = props.prefixCls, className = props.className, style2 = props.style, title = props.title, ariaId = props.ariaId, footer2 = props.footer, closable = props.closable, closeIcon = props.closeIcon, onClose = props.onClose, children2 = props.children, bodyStyle = props.bodyStyle, bodyProps = props.bodyProps, modalRender = props.modalRender, onMouseDown = props.onMouseDown, onMouseUp = props.onMouseUp, holderRef = props.holderRef, visible = props.visible, forceRender = props.forceRender, width = props.width, height = props.height, modalClassNames = props.classNames, modalStyles = props.styles;
11539
+ var _React$useContext = React__default.useContext(RefContext$1), panelRef = _React$useContext.panel;
11540
+ var mergedRef = useComposeRef(holderRef, panelRef);
11541
+ var sentinelStartRef = useRef();
11542
+ var sentinelEndRef = useRef();
11543
+ React__default.useImperativeHandle(ref, function() {
11544
+ return {
11545
+ focus: function focus() {
11546
+ var _sentinelStartRef$cur;
11547
+ (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
11548
+ preventScroll: true
11549
+ });
11550
+ },
11551
+ changeActive: function changeActive(next2) {
11552
+ var _document = document, activeElement = _document.activeElement;
11553
+ if (next2 && activeElement === sentinelEndRef.current) {
11554
+ sentinelStartRef.current.focus({
11555
+ preventScroll: true
11556
+ });
11557
+ } else if (!next2 && activeElement === sentinelStartRef.current) {
11558
+ sentinelEndRef.current.focus({
11559
+ preventScroll: true
11560
+ });
11561
+ }
11562
+ }
11563
+ };
11564
+ });
11565
+ var contentStyle = {};
11566
+ if (width !== void 0) {
11567
+ contentStyle.width = width;
11568
+ }
11569
+ if (height !== void 0) {
11570
+ contentStyle.height = height;
11571
+ }
11572
+ var footerNode = footer2 ? /* @__PURE__ */ React__default.createElement("div", {
11573
+ className: classNames("".concat(prefixCls, "-footer"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.footer),
11574
+ style: _objectSpread2({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.footer)
11575
+ }, footer2) : null;
11576
+ var headerNode = title ? /* @__PURE__ */ React__default.createElement("div", {
11577
+ className: classNames("".concat(prefixCls, "-header"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.header),
11578
+ style: _objectSpread2({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.header)
11579
+ }, /* @__PURE__ */ React__default.createElement("div", {
11580
+ className: "".concat(prefixCls, "-title"),
11581
+ id: ariaId
11582
+ }, title)) : null;
11583
+ var closableObj = useMemo$1(function() {
11584
+ if (_typeof(closable) === "object" && closable !== null) {
11585
+ return closable;
11586
+ }
11587
+ if (closable) {
11588
+ return {
11589
+ closeIcon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : /* @__PURE__ */ React__default.createElement("span", {
11590
+ className: "".concat(prefixCls, "-close-x")
11591
+ })
11592
+ };
11593
+ }
11594
+ return {};
11595
+ }, [closable, closeIcon, prefixCls]);
11596
+ var ariaProps = pickAttrs(closableObj, true);
11597
+ var closeBtnIsDisabled = _typeof(closable) === "object" && closable.disabled;
11598
+ var closerNode = closable ? /* @__PURE__ */ React__default.createElement("button", _extends$1({
11599
+ type: "button",
11600
+ onClick: onClose,
11601
+ "aria-label": "Close"
11602
+ }, ariaProps, {
11603
+ className: "".concat(prefixCls, "-close"),
11604
+ disabled: closeBtnIsDisabled
11605
+ }), closableObj.closeIcon) : null;
11606
+ var content2 = /* @__PURE__ */ React__default.createElement("div", {
11607
+ className: classNames("".concat(prefixCls, "-content"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.content),
11608
+ style: modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.content
11609
+ }, closerNode, headerNode, /* @__PURE__ */ React__default.createElement("div", _extends$1({
11610
+ className: classNames("".concat(prefixCls, "-body"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.body),
11611
+ style: _objectSpread2(_objectSpread2({}, bodyStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body)
11612
+ }, bodyProps), children2), footerNode);
11613
+ return /* @__PURE__ */ React__default.createElement("div", {
11614
+ key: "dialog-element",
11615
+ role: "dialog",
11616
+ "aria-labelledby": title ? ariaId : null,
11617
+ "aria-modal": "true",
11618
+ ref: mergedRef,
11619
+ style: _objectSpread2(_objectSpread2({}, style2), contentStyle),
11620
+ className: classNames(prefixCls, className),
11621
+ onMouseDown,
11622
+ onMouseUp
11623
+ }, /* @__PURE__ */ React__default.createElement("div", {
11624
+ ref: sentinelStartRef,
11625
+ tabIndex: 0,
11626
+ style: entityStyle
11627
+ }, /* @__PURE__ */ React__default.createElement(MemoChildren, {
11628
+ shouldUpdate: visible || forceRender
11629
+ }, modalRender ? modalRender(content2) : content2)), /* @__PURE__ */ React__default.createElement("div", {
11630
+ tabIndex: 0,
11631
+ ref: sentinelEndRef,
11632
+ style: sentinelStyle$1
11633
+ }));
11634
+ });
11635
+ if (process.env.NODE_ENV !== "production") {
11636
+ Panel$1.displayName = "Panel";
11637
+ }
11638
+ var Content$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
11639
+ var prefixCls = props.prefixCls, title = props.title, style2 = props.style, className = props.className, visible = props.visible, forceRender = props.forceRender, destroyOnClose = props.destroyOnClose, motionName = props.motionName, ariaId = props.ariaId, onVisibleChanged = props.onVisibleChanged, mousePosition2 = props.mousePosition;
11640
+ var dialogRef = useRef();
11641
+ var _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), transformOrigin = _React$useState2[0], setTransformOrigin = _React$useState2[1];
11642
+ var contentStyle = {};
11643
+ if (transformOrigin) {
11644
+ contentStyle.transformOrigin = transformOrigin;
11645
+ }
11646
+ function onPrepare() {
11647
+ var elementOffset = offset$1(dialogRef.current);
11648
+ setTransformOrigin(mousePosition2 && (mousePosition2.x || mousePosition2.y) ? "".concat(mousePosition2.x - elementOffset.left, "px ").concat(mousePosition2.y - elementOffset.top, "px") : "");
11649
+ }
11650
+ return /* @__PURE__ */ React.createElement(CSSMotion, {
11651
+ visible,
11652
+ onVisibleChanged,
11653
+ onAppearPrepare: onPrepare,
11654
+ onEnterPrepare: onPrepare,
11655
+ forceRender,
11656
+ motionName,
11657
+ removeOnLeave: destroyOnClose,
11658
+ ref: dialogRef
11659
+ }, function(_ref, motionRef) {
11660
+ var motionClassName = _ref.className, motionStyle = _ref.style;
11661
+ return /* @__PURE__ */ React.createElement(Panel$1, _extends$1({}, props, {
11662
+ ref,
11663
+ title,
11664
+ ariaId,
11665
+ prefixCls,
11666
+ holderRef: motionRef,
11667
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style2), contentStyle),
11668
+ className: classNames(className, motionClassName)
11669
+ }));
11670
+ });
11671
+ });
11672
+ Content$3.displayName = "Content";
11673
+ var Mask$1 = function Mask(props) {
11674
+ var prefixCls = props.prefixCls, style2 = props.style, visible = props.visible, maskProps = props.maskProps, motionName = props.motionName, className = props.className;
11675
+ return /* @__PURE__ */ React.createElement(CSSMotion, {
11676
+ key: "mask",
11677
+ visible,
11678
+ motionName,
11679
+ leavedClassName: "".concat(prefixCls, "-mask-hidden")
11680
+ }, function(_ref, ref) {
11681
+ var motionClassName = _ref.className, motionStyle = _ref.style;
11682
+ return /* @__PURE__ */ React.createElement("div", _extends$1({
11683
+ ref,
11684
+ style: _objectSpread2(_objectSpread2({}, motionStyle), style2),
11685
+ className: classNames("".concat(prefixCls, "-mask"), motionClassName, className)
11686
+ }, maskProps));
11687
+ });
11688
+ };
11689
+ var Dialog = function Dialog2(props) {
11690
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dialog" : _props$prefixCls, zIndex = props.zIndex, _props$visible = props.visible, visible = _props$visible === void 0 ? false : _props$visible, _props$keyboard = props.keyboard, keyboard = _props$keyboard === void 0 ? true : _props$keyboard, _props$focusTriggerAf = props.focusTriggerAfterClose, focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf, wrapStyle = props.wrapStyle, wrapClassName = props.wrapClassName, wrapProps = props.wrapProps, onClose = props.onClose, afterOpenChange = props.afterOpenChange, afterClose = props.afterClose, transitionName = props.transitionName, animation = props.animation, _props$closable = props.closable, closable = _props$closable === void 0 ? true : _props$closable, _props$mask = props.mask, mask = _props$mask === void 0 ? true : _props$mask, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, maskStyle = props.maskStyle, maskProps = props.maskProps, rootClassName = props.rootClassName, modalClassNames = props.classNames, modalStyles = props.styles;
11691
+ if (process.env.NODE_ENV !== "production") {
11692
+ ["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(prop) {
11693
+ warning$3(!(prop in props), "".concat(prop, " is deprecated, please use styles instead."));
11694
+ });
11695
+ if ("wrapClassName" in props) {
11696
+ warning$3(false, "wrapClassName is deprecated, please use classNames instead.");
11697
+ }
11698
+ }
11699
+ var lastOutSideActiveElementRef = useRef();
11700
+ var wrapperRef = useRef();
11701
+ var contentRef = useRef();
11702
+ var _React$useState = React.useState(visible), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
11703
+ var ariaId = useId$2();
11704
+ function saveLastOutSideActiveElementRef() {
11705
+ if (!contains(wrapperRef.current, document.activeElement)) {
11706
+ lastOutSideActiveElementRef.current = document.activeElement;
11707
+ }
11708
+ }
11709
+ function focusDialogContent() {
11710
+ if (!contains(wrapperRef.current, document.activeElement)) {
11711
+ var _contentRef$current;
11712
+ (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 || _contentRef$current.focus();
11713
+ }
11714
+ }
11715
+ function onDialogVisibleChanged(newVisible) {
11716
+ if (newVisible) {
11717
+ focusDialogContent();
11718
+ } else {
11719
+ setAnimatedVisible(false);
11720
+ if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
11721
+ try {
11722
+ lastOutSideActiveElementRef.current.focus({
11723
+ preventScroll: true
11724
+ });
11725
+ } catch (e3) {
11726
+ }
11727
+ lastOutSideActiveElementRef.current = null;
11728
+ }
11729
+ if (animatedVisible) {
11730
+ afterClose === null || afterClose === void 0 || afterClose();
11731
+ }
11732
+ }
11733
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(newVisible);
11734
+ }
11735
+ function onInternalClose(e3) {
11736
+ onClose === null || onClose === void 0 || onClose(e3);
11737
+ }
11738
+ var contentClickRef = useRef(false);
11739
+ var contentTimeoutRef = useRef();
11740
+ var onContentMouseDown = function onContentMouseDown2() {
11741
+ clearTimeout(contentTimeoutRef.current);
11742
+ contentClickRef.current = true;
11743
+ };
11744
+ var onContentMouseUp = function onContentMouseUp2() {
11745
+ contentTimeoutRef.current = setTimeout(function() {
11746
+ contentClickRef.current = false;
11747
+ });
11748
+ };
11749
+ var onWrapperClick = null;
11750
+ if (maskClosable) {
11751
+ onWrapperClick = function onWrapperClick2(e3) {
11752
+ if (contentClickRef.current) {
11753
+ contentClickRef.current = false;
11754
+ } else if (wrapperRef.current === e3.target) {
11755
+ onInternalClose(e3);
11756
+ }
11757
+ };
11758
+ }
11759
+ function onWrapperKeyDown(e3) {
11760
+ if (keyboard && e3.keyCode === KeyCode.ESC) {
11761
+ e3.stopPropagation();
11762
+ onInternalClose(e3);
11763
+ return;
11764
+ }
11765
+ if (visible && e3.keyCode === KeyCode.TAB) {
11766
+ contentRef.current.changeActive(!e3.shiftKey);
11767
+ }
11768
+ }
11769
+ useEffect(function() {
11770
+ if (visible) {
11771
+ setAnimatedVisible(true);
11772
+ saveLastOutSideActiveElementRef();
11773
+ }
11774
+ }, [visible]);
11775
+ useEffect(function() {
11776
+ return function() {
11777
+ clearTimeout(contentTimeoutRef.current);
11778
+ };
11779
+ }, []);
11780
+ var mergedStyle = _objectSpread2(_objectSpread2(_objectSpread2({
11781
+ zIndex
11782
+ }, wrapStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.wrapper), {}, {
11783
+ display: !animatedVisible ? "none" : null
11784
+ });
11785
+ return /* @__PURE__ */ React.createElement("div", _extends$1({
11786
+ className: classNames("".concat(prefixCls, "-root"), rootClassName)
11787
+ }, pickAttrs(props, {
11788
+ data: true
11789
+ })), /* @__PURE__ */ React.createElement(Mask$1, {
11790
+ prefixCls,
11791
+ visible: mask && visible,
11792
+ motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
11793
+ style: _objectSpread2(_objectSpread2({
11794
+ zIndex
11795
+ }, maskStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.mask),
11796
+ maskProps,
11797
+ className: modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.mask
11798
+ }), /* @__PURE__ */ React.createElement("div", _extends$1({
11799
+ tabIndex: -1,
11800
+ onKeyDown: onWrapperKeyDown,
11801
+ className: classNames("".concat(prefixCls, "-wrap"), wrapClassName, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper),
11802
+ ref: wrapperRef,
11803
+ onClick: onWrapperClick,
11804
+ style: mergedStyle
11805
+ }, wrapProps), /* @__PURE__ */ React.createElement(Content$3, _extends$1({}, props, {
11806
+ onMouseDown: onContentMouseDown,
11807
+ onMouseUp: onContentMouseUp,
11808
+ ref: contentRef,
11809
+ closable,
11810
+ ariaId,
11811
+ prefixCls,
11812
+ visible: visible && animatedVisible,
11813
+ onClose: onInternalClose,
11814
+ onVisibleChanged: onDialogVisibleChanged,
11815
+ motionName: getMotionName(prefixCls, transitionName, animation)
11816
+ }))));
11817
+ };
11818
+ var DialogWrap = function DialogWrap2(props) {
11819
+ var visible = props.visible, getContainer2 = props.getContainer, forceRender = props.forceRender, _props$destroyOnClose = props.destroyOnClose, destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose, _afterClose = props.afterClose, panelRef = props.panelRef;
11820
+ var _React$useState = React.useState(visible), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
11821
+ var refContext = React.useMemo(function() {
11822
+ return {
11823
+ panel: panelRef
11824
+ };
11825
+ }, [panelRef]);
11826
+ React.useEffect(function() {
11827
+ if (visible) {
11828
+ setAnimatedVisible(true);
11829
+ }
11830
+ }, [visible]);
11831
+ if (!forceRender && destroyOnClose && !animatedVisible) {
11832
+ return null;
11833
+ }
11834
+ return /* @__PURE__ */ React.createElement(RefContext$1.Provider, {
11835
+ value: refContext
11836
+ }, /* @__PURE__ */ React.createElement(Portal, {
11837
+ open: visible || forceRender || animatedVisible,
11838
+ autoDestroy: false,
11839
+ getContainer: getContainer2,
11840
+ autoLock: visible || animatedVisible
11841
+ }, /* @__PURE__ */ React.createElement(Dialog, _extends$1({}, props, {
11842
+ destroyOnClose,
11843
+ afterClose: function afterClose() {
11844
+ _afterClose === null || _afterClose === void 0 || _afterClose();
11845
+ setAnimatedVisible(false);
11846
+ }
11847
+ }))));
11848
+ };
11849
+ DialogWrap.displayName = "Dialog";
11357
11850
  var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
11358
11851
  var warningFunc = function warningFunc2() {
11359
11852
  warningOnce(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
@@ -14655,6 +15148,7 @@ function isStyleSupport(styleName, styleValue2) {
14655
15148
  }
14656
15149
  return isStyleNameSupport(styleName);
14657
15150
  }
15151
+ const canUseDocElement = () => canUseDom() && window.document.documentElement;
14658
15152
  const Element$1 = (props) => {
14659
15153
  const {
14660
15154
  prefixCls,
@@ -14948,7 +15442,7 @@ const genBaseStyle$8 = (token2) => {
14948
15442
  }
14949
15443
  };
14950
15444
  };
14951
- const prepareComponentToken$o = (token2) => {
15445
+ const prepareComponentToken$p = (token2) => {
14952
15446
  const {
14953
15447
  colorFillContent,
14954
15448
  colorFill
@@ -14966,7 +15460,7 @@ const prepareComponentToken$o = (token2) => {
14966
15460
  paragraphLiHeight: token2.controlHeight / 2
14967
15461
  };
14968
15462
  };
14969
- const useStyle$s = genStyleHooks("Skeleton", (token2) => {
15463
+ const useStyle$t = genStyleHooks("Skeleton", (token2) => {
14970
15464
  const {
14971
15465
  componentCls,
14972
15466
  calc
@@ -14985,7 +15479,7 @@ const useStyle$s = genStyleHooks("Skeleton", (token2) => {
14985
15479
  skeletonLoadingMotionDuration: "1.4s"
14986
15480
  });
14987
15481
  return genBaseStyle$8(skeletonToken);
14988
- }, prepareComponentToken$o, {
15482
+ }, prepareComponentToken$p, {
14989
15483
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
14990
15484
  });
14991
15485
  const SkeletonAvatar = (props) => {
@@ -15001,7 +15495,7 @@ const SkeletonAvatar = (props) => {
15001
15495
  getPrefixCls
15002
15496
  } = React.useContext(ConfigContext);
15003
15497
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15004
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15498
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15005
15499
  const otherProps = omit(props, ["prefixCls", "className"]);
15006
15500
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15007
15501
  [`${prefixCls}-active`]: active
@@ -15027,7 +15521,7 @@ const SkeletonButton = (props) => {
15027
15521
  getPrefixCls
15028
15522
  } = React.useContext(ConfigContext);
15029
15523
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15030
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15524
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15031
15525
  const otherProps = omit(props, ["prefixCls"]);
15032
15526
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15033
15527
  [`${prefixCls}-active`]: active,
@@ -15053,7 +15547,7 @@ const SkeletonImage = (props) => {
15053
15547
  getPrefixCls
15054
15548
  } = React.useContext(ConfigContext);
15055
15549
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15056
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15550
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15057
15551
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15058
15552
  [`${prefixCls}-active`]: active
15059
15553
  }, className, rootClassName, hashId, cssVarCls);
@@ -15084,7 +15578,7 @@ const SkeletonInput = (props) => {
15084
15578
  getPrefixCls
15085
15579
  } = React.useContext(ConfigContext);
15086
15580
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15087
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15581
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15088
15582
  const otherProps = omit(props, ["prefixCls"]);
15089
15583
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15090
15584
  [`${prefixCls}-active`]: active,
@@ -15110,7 +15604,7 @@ const SkeletonNode = (props) => {
15110
15604
  getPrefixCls
15111
15605
  } = React.useContext(ConfigContext);
15112
15606
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15113
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15607
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15114
15608
  const cls = classNames(prefixCls, `${prefixCls}-element`, {
15115
15609
  [`${prefixCls}-active`]: active
15116
15610
  }, hashId, className, rootClassName, cssVarCls);
@@ -15235,7 +15729,7 @@ const Skeleton$1 = (props) => {
15235
15729
  style: contextStyle
15236
15730
  } = useComponentConfig("skeleton");
15237
15731
  const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
15238
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
15732
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
15239
15733
  if (loading || !("loading" in props)) {
15240
15734
  const hasAvatar = !!avatar;
15241
15735
  const hasTitle = !!title;
@@ -15301,7 +15795,7 @@ function usePanelRef(panelSelector) {
15301
15795
  const panelEleRef = React.useRef(null);
15302
15796
  const panelRef = useEvent((ele) => {
15303
15797
  if (ele) {
15304
- const innerContentEle = ele;
15798
+ const innerContentEle = panelSelector ? ele.querySelector(panelSelector) : ele;
15305
15799
  watermark.add(innerContentEle);
15306
15800
  panelEleRef.current = innerContentEle;
15307
15801
  } else {
@@ -15310,6 +15804,81 @@ function usePanelRef(panelSelector) {
15310
15804
  });
15311
15805
  return panelRef;
15312
15806
  }
15807
+ const NormalCancelBtn = () => {
15808
+ const {
15809
+ cancelButtonProps,
15810
+ cancelTextLocale,
15811
+ onCancel
15812
+ } = useContext$1(ModalContext);
15813
+ return /* @__PURE__ */ React__default.createElement(Button$4, Object.assign({
15814
+ onClick: onCancel
15815
+ }, cancelButtonProps), cancelTextLocale);
15816
+ };
15817
+ const NormalOkBtn = () => {
15818
+ const {
15819
+ confirmLoading,
15820
+ okButtonProps,
15821
+ okType,
15822
+ okTextLocale,
15823
+ onOk
15824
+ } = useContext$1(ModalContext);
15825
+ return /* @__PURE__ */ React__default.createElement(Button$4, Object.assign({}, convertLegacyProps(okType), {
15826
+ loading: confirmLoading,
15827
+ onClick: onOk
15828
+ }, okButtonProps), okTextLocale);
15829
+ };
15830
+ function renderCloseIcon(prefixCls, closeIcon) {
15831
+ return /* @__PURE__ */ React__default.createElement("span", {
15832
+ className: `${prefixCls}-close-x`
15833
+ }, closeIcon || /* @__PURE__ */ React__default.createElement(RefIcon$D, {
15834
+ className: `${prefixCls}-close-icon`
15835
+ }));
15836
+ }
15837
+ const Footer$3 = (props) => {
15838
+ const {
15839
+ okText,
15840
+ okType = "primary",
15841
+ cancelText,
15842
+ confirmLoading,
15843
+ onOk,
15844
+ onCancel,
15845
+ okButtonProps,
15846
+ cancelButtonProps,
15847
+ footer: footer2
15848
+ } = props;
15849
+ const [locale2] = useLocale$1("Modal", getConfirmLocale());
15850
+ const okTextLocale = okText || (locale2 === null || locale2 === void 0 ? void 0 : locale2.okText);
15851
+ const cancelTextLocale = cancelText || (locale2 === null || locale2 === void 0 ? void 0 : locale2.cancelText);
15852
+ const btnCtxValue = {
15853
+ confirmLoading,
15854
+ okButtonProps,
15855
+ cancelButtonProps,
15856
+ okTextLocale,
15857
+ cancelTextLocale,
15858
+ okType,
15859
+ onOk,
15860
+ onCancel
15861
+ };
15862
+ const btnCtxValueMemo = React__default.useMemo(() => btnCtxValue, _toConsumableArray(Object.values(btnCtxValue)));
15863
+ let footerNode;
15864
+ if (typeof footer2 === "function" || typeof footer2 === "undefined") {
15865
+ footerNode = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(NormalCancelBtn, null), /* @__PURE__ */ React__default.createElement(NormalOkBtn, null));
15866
+ if (typeof footer2 === "function") {
15867
+ footerNode = footer2(footerNode, {
15868
+ OkBtn: NormalOkBtn,
15869
+ CancelBtn: NormalCancelBtn
15870
+ });
15871
+ }
15872
+ footerNode = /* @__PURE__ */ React__default.createElement(ModalContextProvider, {
15873
+ value: btnCtxValueMemo
15874
+ }, footerNode);
15875
+ } else {
15876
+ footerNode = footer2;
15877
+ }
15878
+ return /* @__PURE__ */ React__default.createElement(DisabledContextProvider, {
15879
+ disabled: false
15880
+ }, footerNode);
15881
+ };
15313
15882
  const genGridRowStyle = (token2) => {
15314
15883
  const {
15315
15884
  componentCls
@@ -15467,6 +16036,1002 @@ const useColStyle = genStyleHooks("Grid", (token2) => {
15467
16036
  delete gridMediaSizesMap.xs;
15468
16037
  return [genGridColStyle(gridToken), genGridStyle(gridToken, ""), genGridStyle(gridToken, "-xs"), Object.keys(gridMediaSizesMap).map((key) => genGridMediaStyle(gridToken, gridMediaSizesMap[key], `-${key}`)).reduce((pre, cur) => Object.assign(Object.assign({}, pre), cur), {})];
15469
16038
  }, prepareColComponentToken);
16039
+ function box(position2) {
16040
+ return {
16041
+ position: position2,
16042
+ inset: 0
16043
+ };
16044
+ }
16045
+ const genModalMaskStyle = (token2) => {
16046
+ const {
16047
+ componentCls,
16048
+ antCls
16049
+ } = token2;
16050
+ return [{
16051
+ [`${componentCls}-root`]: {
16052
+ [`${componentCls}${antCls}-zoom-enter, ${componentCls}${antCls}-zoom-appear`]: {
16053
+ // reset scale avoid mousePosition bug
16054
+ transform: "none",
16055
+ opacity: 0,
16056
+ animationDuration: token2.motionDurationSlow,
16057
+ // https://github.com/ant-design/ant-design/issues/11777
16058
+ userSelect: "none"
16059
+ },
16060
+ // https://github.com/ant-design/ant-design/issues/37329
16061
+ // https://github.com/ant-design/ant-design/issues/40272
16062
+ [`${componentCls}${antCls}-zoom-leave ${componentCls}-content`]: {
16063
+ pointerEvents: "none"
16064
+ },
16065
+ [`${componentCls}-mask`]: Object.assign(Object.assign({}, box("fixed")), {
16066
+ zIndex: token2.zIndexPopupBase,
16067
+ height: "100%",
16068
+ backgroundColor: token2.colorBgMask,
16069
+ pointerEvents: "none",
16070
+ [`${componentCls}-hidden`]: {
16071
+ display: "none"
16072
+ }
16073
+ }),
16074
+ [`${componentCls}-wrap`]: Object.assign(Object.assign({}, box("fixed")), {
16075
+ zIndex: token2.zIndexPopupBase,
16076
+ overflow: "auto",
16077
+ outline: 0,
16078
+ WebkitOverflowScrolling: "touch"
16079
+ })
16080
+ }
16081
+ }, {
16082
+ [`${componentCls}-root`]: initFadeMotion(token2)
16083
+ }];
16084
+ };
16085
+ const genModalStyle = (token2) => {
16086
+ const {
16087
+ componentCls
16088
+ } = token2;
16089
+ return [
16090
+ // ======================== Root =========================
16091
+ {
16092
+ [`${componentCls}-root`]: {
16093
+ [`${componentCls}-wrap-rtl`]: {
16094
+ direction: "rtl"
16095
+ },
16096
+ [`${componentCls}-centered`]: {
16097
+ textAlign: "center",
16098
+ "&::before": {
16099
+ display: "inline-block",
16100
+ width: 0,
16101
+ height: "100%",
16102
+ verticalAlign: "middle",
16103
+ content: '""'
16104
+ },
16105
+ [componentCls]: {
16106
+ top: 0,
16107
+ display: "inline-block",
16108
+ paddingBottom: 0,
16109
+ textAlign: "start",
16110
+ verticalAlign: "middle"
16111
+ }
16112
+ },
16113
+ [`@media (max-width: ${token2.screenSMMax}px)`]: {
16114
+ [componentCls]: {
16115
+ maxWidth: "calc(100vw - 16px)",
16116
+ margin: `${unit$2(token2.marginXS)} auto`
16117
+ },
16118
+ [`${componentCls}-centered`]: {
16119
+ [componentCls]: {
16120
+ flex: 1
16121
+ }
16122
+ }
16123
+ }
16124
+ }
16125
+ },
16126
+ // ======================== Modal ========================
16127
+ {
16128
+ [componentCls]: Object.assign(Object.assign({}, resetComponent(token2)), {
16129
+ pointerEvents: "none",
16130
+ position: "relative",
16131
+ top: 100,
16132
+ width: "auto",
16133
+ maxWidth: `calc(100vw - ${unit$2(token2.calc(token2.margin).mul(2).equal())})`,
16134
+ margin: "0 auto",
16135
+ paddingBottom: token2.paddingLG,
16136
+ [`${componentCls}-title`]: {
16137
+ margin: 0,
16138
+ color: token2.titleColor,
16139
+ fontWeight: token2.fontWeightStrong,
16140
+ fontSize: token2.titleFontSize,
16141
+ lineHeight: token2.titleLineHeight,
16142
+ wordWrap: "break-word"
16143
+ },
16144
+ [`${componentCls}-content`]: {
16145
+ position: "relative",
16146
+ backgroundColor: token2.contentBg,
16147
+ backgroundClip: "padding-box",
16148
+ border: 0,
16149
+ borderRadius: token2.borderRadiusLG,
16150
+ boxShadow: token2.boxShadow,
16151
+ pointerEvents: "auto",
16152
+ padding: token2.contentPadding
16153
+ },
16154
+ [`${componentCls}-close`]: Object.assign({
16155
+ position: "absolute",
16156
+ top: token2.calc(token2.modalHeaderHeight).sub(token2.modalCloseBtnSize).div(2).equal(),
16157
+ insetInlineEnd: token2.calc(token2.modalHeaderHeight).sub(token2.modalCloseBtnSize).div(2).equal(),
16158
+ zIndex: token2.calc(token2.zIndexPopupBase).add(10).equal(),
16159
+ padding: 0,
16160
+ color: token2.modalCloseIconColor,
16161
+ fontWeight: token2.fontWeightStrong,
16162
+ lineHeight: 1,
16163
+ textDecoration: "none",
16164
+ background: "transparent",
16165
+ borderRadius: token2.borderRadiusSM,
16166
+ width: token2.modalCloseBtnSize,
16167
+ height: token2.modalCloseBtnSize,
16168
+ border: 0,
16169
+ outline: 0,
16170
+ cursor: "pointer",
16171
+ transition: `color ${token2.motionDurationMid}, background-color ${token2.motionDurationMid}`,
16172
+ "&-x": {
16173
+ display: "flex",
16174
+ fontSize: token2.fontSizeLG,
16175
+ fontStyle: "normal",
16176
+ lineHeight: unit$2(token2.modalCloseBtnSize),
16177
+ justifyContent: "center",
16178
+ textTransform: "none",
16179
+ textRendering: "auto"
16180
+ },
16181
+ "&:disabled": {
16182
+ pointerEvents: "none"
16183
+ },
16184
+ "&:hover": {
16185
+ color: token2.modalCloseIconHoverColor,
16186
+ backgroundColor: token2.colorBgTextHover,
16187
+ textDecoration: "none"
16188
+ },
16189
+ "&:active": {
16190
+ backgroundColor: token2.colorBgTextActive
16191
+ }
16192
+ }, genFocusStyle(token2)),
16193
+ [`${componentCls}-header`]: {
16194
+ color: token2.colorText,
16195
+ background: token2.headerBg,
16196
+ borderRadius: `${unit$2(token2.borderRadiusLG)} ${unit$2(token2.borderRadiusLG)} 0 0`,
16197
+ marginBottom: token2.headerMarginBottom,
16198
+ padding: token2.headerPadding,
16199
+ borderBottom: token2.headerBorderBottom
16200
+ },
16201
+ [`${componentCls}-body`]: {
16202
+ fontSize: token2.fontSize,
16203
+ lineHeight: token2.lineHeight,
16204
+ wordWrap: "break-word",
16205
+ padding: token2.bodyPadding,
16206
+ [`${componentCls}-body-skeleton`]: {
16207
+ width: "100%",
16208
+ height: "100%",
16209
+ display: "flex",
16210
+ justifyContent: "center",
16211
+ alignItems: "center",
16212
+ margin: `${unit$2(token2.margin)} auto`
16213
+ }
16214
+ },
16215
+ [`${componentCls}-footer`]: {
16216
+ textAlign: "end",
16217
+ background: token2.footerBg,
16218
+ marginTop: token2.footerMarginTop,
16219
+ padding: token2.footerPadding,
16220
+ borderTop: token2.footerBorderTop,
16221
+ borderRadius: token2.footerBorderRadius,
16222
+ [`> ${token2.antCls}-btn + ${token2.antCls}-btn`]: {
16223
+ marginInlineStart: token2.marginXS
16224
+ }
16225
+ },
16226
+ [`${componentCls}-open`]: {
16227
+ overflow: "hidden"
16228
+ }
16229
+ })
16230
+ },
16231
+ // ======================== Pure =========================
16232
+ {
16233
+ [`${componentCls}-pure-panel`]: {
16234
+ top: "auto",
16235
+ padding: 0,
16236
+ display: "flex",
16237
+ flexDirection: "column",
16238
+ [`${componentCls}-content,
16239
+ ${componentCls}-body,
16240
+ ${componentCls}-confirm-body-wrapper`]: {
16241
+ display: "flex",
16242
+ flexDirection: "column",
16243
+ flex: "auto"
16244
+ },
16245
+ [`${componentCls}-confirm-body`]: {
16246
+ marginBottom: "auto"
16247
+ }
16248
+ }
16249
+ }
16250
+ ];
16251
+ };
16252
+ const genRTLStyle = (token2) => {
16253
+ const {
16254
+ componentCls
16255
+ } = token2;
16256
+ return {
16257
+ [`${componentCls}-root`]: {
16258
+ [`${componentCls}-wrap-rtl`]: {
16259
+ direction: "rtl",
16260
+ [`${componentCls}-confirm-body`]: {
16261
+ direction: "rtl"
16262
+ }
16263
+ }
16264
+ }
16265
+ };
16266
+ };
16267
+ const genResponsiveWidthStyle = (token2) => {
16268
+ const {
16269
+ componentCls
16270
+ } = token2;
16271
+ const oriGridMediaSizesMap = getMediaSize(token2);
16272
+ const gridMediaSizesMap = Object.assign({}, oriGridMediaSizesMap);
16273
+ delete gridMediaSizesMap.xs;
16274
+ const cssVarPrefix = `--${componentCls.replace(".", "")}-`;
16275
+ const responsiveStyles = Object.keys(gridMediaSizesMap).map((key) => ({
16276
+ [`@media (min-width: ${unit$2(gridMediaSizesMap[key])})`]: {
16277
+ width: `var(${cssVarPrefix}${key}-width)`
16278
+ }
16279
+ }));
16280
+ return {
16281
+ [`${componentCls}-root`]: {
16282
+ [componentCls]: [].concat(_toConsumableArray(Object.keys(oriGridMediaSizesMap).map((currentKey, index2) => {
16283
+ const previousKey = Object.keys(oriGridMediaSizesMap)[index2 - 1];
16284
+ return previousKey ? {
16285
+ [`${cssVarPrefix}${currentKey}-width`]: `var(${cssVarPrefix}${previousKey}-width)`
16286
+ } : null;
16287
+ })), [{
16288
+ width: `var(${cssVarPrefix}xs-width)`
16289
+ }], _toConsumableArray(responsiveStyles))
16290
+ }
16291
+ };
16292
+ };
16293
+ const prepareToken$2 = (token2) => {
16294
+ const headerPaddingVertical = token2.padding;
16295
+ const headerFontSize = token2.fontSizeHeading5;
16296
+ const headerLineHeight = token2.lineHeightHeading5;
16297
+ const modalToken = merge$1(token2, {
16298
+ modalHeaderHeight: token2.calc(token2.calc(headerLineHeight).mul(headerFontSize).equal()).add(token2.calc(headerPaddingVertical).mul(2).equal()).equal(),
16299
+ modalFooterBorderColorSplit: token2.colorSplit,
16300
+ modalFooterBorderStyle: token2.lineType,
16301
+ modalFooterBorderWidth: token2.lineWidth,
16302
+ modalCloseIconColor: token2.colorIcon,
16303
+ modalCloseIconHoverColor: token2.colorIconHover,
16304
+ modalCloseBtnSize: token2.controlHeight,
16305
+ modalConfirmIconSize: token2.fontHeight,
16306
+ modalTitleHeight: token2.calc(token2.titleFontSize).mul(token2.titleLineHeight).equal()
16307
+ });
16308
+ return modalToken;
16309
+ };
16310
+ const prepareComponentToken$o = (token2) => ({
16311
+ footerBg: "transparent",
16312
+ headerBg: token2.colorBgElevated,
16313
+ titleLineHeight: token2.lineHeightHeading5,
16314
+ titleFontSize: token2.fontSizeHeading5,
16315
+ contentBg: token2.colorBgElevated,
16316
+ titleColor: token2.colorTextHeading,
16317
+ // internal
16318
+ contentPadding: token2.wireframe ? 0 : `${unit$2(token2.paddingMD)} ${unit$2(token2.paddingContentHorizontalLG)}`,
16319
+ headerPadding: token2.wireframe ? `${unit$2(token2.padding)} ${unit$2(token2.paddingLG)}` : 0,
16320
+ headerBorderBottom: token2.wireframe ? `${unit$2(token2.lineWidth)} ${token2.lineType} ${token2.colorSplit}` : "none",
16321
+ headerMarginBottom: token2.wireframe ? 0 : token2.marginXS,
16322
+ bodyPadding: token2.wireframe ? token2.paddingLG : 0,
16323
+ footerPadding: token2.wireframe ? `${unit$2(token2.paddingXS)} ${unit$2(token2.padding)}` : 0,
16324
+ footerBorderTop: token2.wireframe ? `${unit$2(token2.lineWidth)} ${token2.lineType} ${token2.colorSplit}` : "none",
16325
+ footerBorderRadius: token2.wireframe ? `0 0 ${unit$2(token2.borderRadiusLG)} ${unit$2(token2.borderRadiusLG)}` : 0,
16326
+ footerMarginTop: token2.wireframe ? 0 : token2.marginSM,
16327
+ confirmBodyPadding: token2.wireframe ? `${unit$2(token2.padding * 2)} ${unit$2(token2.padding * 2)} ${unit$2(token2.paddingLG)}` : 0,
16328
+ confirmIconMarginInlineEnd: token2.wireframe ? token2.margin : token2.marginSM,
16329
+ confirmBtnsMarginTop: token2.wireframe ? token2.marginLG : token2.marginSM
16330
+ });
16331
+ const useStyle$s = genStyleHooks("Modal", (token2) => {
16332
+ const modalToken = prepareToken$2(token2);
16333
+ return [genModalStyle(modalToken), genRTLStyle(modalToken), genModalMaskStyle(modalToken), initZoomMotion(modalToken, "zoom"), genResponsiveWidthStyle(modalToken)];
16334
+ }, prepareComponentToken$o, {
16335
+ unitless: {
16336
+ titleLineHeight: true
16337
+ }
16338
+ });
16339
+ var __rest$Y = function(s, e3) {
16340
+ var t2 = {};
16341
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
16342
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16343
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
16344
+ }
16345
+ return t2;
16346
+ };
16347
+ let mousePosition;
16348
+ const getClickPosition = (e3) => {
16349
+ mousePosition = {
16350
+ x: e3.pageX,
16351
+ y: e3.pageY
16352
+ };
16353
+ setTimeout(() => {
16354
+ mousePosition = null;
16355
+ }, 100);
16356
+ };
16357
+ if (canUseDocElement()) {
16358
+ document.documentElement.addEventListener("click", getClickPosition, true);
16359
+ }
16360
+ const Modal$2 = (props) => {
16361
+ const {
16362
+ prefixCls: customizePrefixCls,
16363
+ className,
16364
+ rootClassName,
16365
+ open,
16366
+ wrapClassName,
16367
+ centered,
16368
+ getContainer: getContainer2,
16369
+ focusTriggerAfterClose = true,
16370
+ style: style2,
16371
+ // Deprecated
16372
+ visible,
16373
+ width = 520,
16374
+ footer: footer2,
16375
+ classNames: modalClassNames,
16376
+ styles: modalStyles,
16377
+ children: children2,
16378
+ loading,
16379
+ confirmLoading,
16380
+ zIndex: customizeZIndex,
16381
+ mousePosition: customizeMousePosition,
16382
+ onOk,
16383
+ onCancel,
16384
+ destroyOnHidden,
16385
+ destroyOnClose,
16386
+ panelRef = null
16387
+ } = props, restProps = __rest$Y(props, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading", "confirmLoading", "zIndex", "mousePosition", "onOk", "onCancel", "destroyOnHidden", "destroyOnClose", "panelRef"]);
16388
+ const {
16389
+ getPopupContainer: getContextPopupContainer,
16390
+ getPrefixCls,
16391
+ direction,
16392
+ modal: modalContext
16393
+ } = React.useContext(ConfigContext);
16394
+ const handleCancel = (e3) => {
16395
+ if (confirmLoading) {
16396
+ return;
16397
+ }
16398
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel(e3);
16399
+ };
16400
+ const handleOk = (e3) => {
16401
+ onOk === null || onOk === void 0 ? void 0 : onOk(e3);
16402
+ };
16403
+ if (process.env.NODE_ENV !== "production") {
16404
+ const warning3 = devUseWarning("Modal");
16405
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"], ["destroyOnClose", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
16406
+ warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
16407
+ });
16408
+ }
16409
+ const prefixCls = getPrefixCls("modal", customizePrefixCls);
16410
+ const rootPrefixCls = getPrefixCls();
16411
+ const rootCls = useCSSVarCls(prefixCls);
16412
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls, rootCls);
16413
+ const wrapClassNameExtended = classNames(wrapClassName, {
16414
+ [`${prefixCls}-centered`]: centered !== null && centered !== void 0 ? centered : modalContext === null || modalContext === void 0 ? void 0 : modalContext.centered,
16415
+ [`${prefixCls}-wrap-rtl`]: direction === "rtl"
16416
+ });
16417
+ const dialogFooter = footer2 !== null && !loading ? /* @__PURE__ */ React.createElement(Footer$3, Object.assign({}, props, {
16418
+ onOk: handleOk,
16419
+ onCancel: handleCancel
16420
+ })) : null;
16421
+ const [mergedClosable, mergedCloseIcon, closeBtnIsDisabled, ariaProps] = useClosable(pickClosable(props), pickClosable(modalContext), {
16422
+ closable: true,
16423
+ closeIcon: /* @__PURE__ */ React.createElement(RefIcon$D, {
16424
+ className: `${prefixCls}-close-icon`
16425
+ }),
16426
+ closeIconRender: (icon) => renderCloseIcon(prefixCls, icon)
16427
+ });
16428
+ const innerPanelRef = usePanelRef(`.${prefixCls}-content`);
16429
+ const mergedPanelRef = composeRef(panelRef, innerPanelRef);
16430
+ const [zIndex, contextZIndex] = useZIndex("Modal", customizeZIndex);
16431
+ const [numWidth, responsiveWidth] = React.useMemo(() => {
16432
+ if (width && typeof width === "object") {
16433
+ return [void 0, width];
16434
+ }
16435
+ return [width, void 0];
16436
+ }, [width]);
16437
+ const responsiveWidthVars = React.useMemo(() => {
16438
+ const vars = {};
16439
+ if (responsiveWidth) {
16440
+ Object.keys(responsiveWidth).forEach((breakpoint) => {
16441
+ const breakpointWidth = responsiveWidth[breakpoint];
16442
+ if (breakpointWidth !== void 0) {
16443
+ vars[`--${prefixCls}-${breakpoint}-width`] = typeof breakpointWidth === "number" ? `${breakpointWidth}px` : breakpointWidth;
16444
+ }
16445
+ });
16446
+ }
16447
+ return vars;
16448
+ }, [responsiveWidth]);
16449
+ return wrapCSSVar(/* @__PURE__ */ React.createElement(ContextIsolator, {
16450
+ form: true,
16451
+ space: true
16452
+ }, /* @__PURE__ */ React.createElement(zIndexContext.Provider, {
16453
+ value: contextZIndex
16454
+ }, /* @__PURE__ */ React.createElement(DialogWrap, Object.assign({
16455
+ width: numWidth
16456
+ }, restProps, {
16457
+ zIndex,
16458
+ getContainer: getContainer2 === void 0 ? getContextPopupContainer : getContainer2,
16459
+ prefixCls,
16460
+ rootClassName: classNames(hashId, rootClassName, cssVarCls, rootCls),
16461
+ footer: dialogFooter,
16462
+ visible: open !== null && open !== void 0 ? open : visible,
16463
+ mousePosition: customizeMousePosition !== null && customizeMousePosition !== void 0 ? customizeMousePosition : mousePosition,
16464
+ onClose: handleCancel,
16465
+ closable: mergedClosable ? Object.assign({
16466
+ disabled: closeBtnIsDisabled,
16467
+ closeIcon: mergedCloseIcon
16468
+ }, ariaProps) : mergedClosable,
16469
+ closeIcon: mergedCloseIcon,
16470
+ focusTriggerAfterClose,
16471
+ transitionName: getTransitionName(rootPrefixCls, "zoom", props.transitionName),
16472
+ maskTransitionName: getTransitionName(rootPrefixCls, "fade", props.maskTransitionName),
16473
+ className: classNames(hashId, className, modalContext === null || modalContext === void 0 ? void 0 : modalContext.className),
16474
+ style: Object.assign(Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.style), style2), responsiveWidthVars),
16475
+ classNames: Object.assign(Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.classNames), modalClassNames), {
16476
+ wrapper: classNames(wrapClassNameExtended, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper)
16477
+ }),
16478
+ styles: Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.styles), modalStyles),
16479
+ panelRef: mergedPanelRef,
16480
+ // TODO: In the future, destroyOnClose in rc-dialog needs to be upgrade to destroyOnHidden
16481
+ destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
16482
+ }), loading ? /* @__PURE__ */ React.createElement(Skeleton$1, {
16483
+ active: true,
16484
+ title: false,
16485
+ paragraph: {
16486
+ rows: 4
16487
+ },
16488
+ className: `${prefixCls}-body-skeleton`
16489
+ }) : children2))));
16490
+ };
16491
+ const genModalConfirmStyle = (token2) => {
16492
+ const {
16493
+ componentCls,
16494
+ titleFontSize,
16495
+ titleLineHeight,
16496
+ modalConfirmIconSize,
16497
+ fontSize,
16498
+ lineHeight,
16499
+ modalTitleHeight,
16500
+ fontHeight,
16501
+ confirmBodyPadding
16502
+ } = token2;
16503
+ const confirmComponentCls = `${componentCls}-confirm`;
16504
+ return {
16505
+ [confirmComponentCls]: {
16506
+ "&-rtl": {
16507
+ direction: "rtl"
16508
+ },
16509
+ [`${token2.antCls}-modal-header`]: {
16510
+ display: "none"
16511
+ },
16512
+ [`${confirmComponentCls}-body-wrapper`]: Object.assign({}, clearFix()),
16513
+ [`&${componentCls} ${componentCls}-body`]: {
16514
+ padding: confirmBodyPadding
16515
+ },
16516
+ // ====================== Body ======================
16517
+ [`${confirmComponentCls}-body`]: {
16518
+ display: "flex",
16519
+ flexWrap: "nowrap",
16520
+ alignItems: "start",
16521
+ [`> ${token2.iconCls}`]: {
16522
+ flex: "none",
16523
+ fontSize: modalConfirmIconSize,
16524
+ marginInlineEnd: token2.confirmIconMarginInlineEnd,
16525
+ marginTop: token2.calc(token2.calc(fontHeight).sub(modalConfirmIconSize).equal()).div(2).equal()
16526
+ },
16527
+ [`&-has-title > ${token2.iconCls}`]: {
16528
+ marginTop: token2.calc(token2.calc(modalTitleHeight).sub(modalConfirmIconSize).equal()).div(2).equal()
16529
+ }
16530
+ },
16531
+ [`${confirmComponentCls}-paragraph`]: {
16532
+ display: "flex",
16533
+ flexDirection: "column",
16534
+ flex: "auto",
16535
+ rowGap: token2.marginXS,
16536
+ // https://github.com/ant-design/ant-design/issues/51912
16537
+ maxWidth: `calc(100% - ${unit$2(token2.marginSM)})`
16538
+ },
16539
+ // https://github.com/ant-design/ant-design/issues/48159
16540
+ [`${token2.iconCls} + ${confirmComponentCls}-paragraph`]: {
16541
+ maxWidth: `calc(100% - ${unit$2(token2.calc(token2.modalConfirmIconSize).add(token2.marginSM).equal())})`
16542
+ },
16543
+ [`${confirmComponentCls}-title`]: {
16544
+ color: token2.colorTextHeading,
16545
+ fontWeight: token2.fontWeightStrong,
16546
+ fontSize: titleFontSize,
16547
+ lineHeight: titleLineHeight
16548
+ },
16549
+ [`${confirmComponentCls}-content`]: {
16550
+ color: token2.colorText,
16551
+ fontSize,
16552
+ lineHeight
16553
+ },
16554
+ // ===================== Footer =====================
16555
+ [`${confirmComponentCls}-btns`]: {
16556
+ textAlign: "end",
16557
+ marginTop: token2.confirmBtnsMarginTop,
16558
+ [`${token2.antCls}-btn + ${token2.antCls}-btn`]: {
16559
+ marginBottom: 0,
16560
+ marginInlineStart: token2.marginXS
16561
+ }
16562
+ }
16563
+ },
16564
+ [`${confirmComponentCls}-error ${confirmComponentCls}-body > ${token2.iconCls}`]: {
16565
+ color: token2.colorError
16566
+ },
16567
+ [`${confirmComponentCls}-warning ${confirmComponentCls}-body > ${token2.iconCls},
16568
+ ${confirmComponentCls}-confirm ${confirmComponentCls}-body > ${token2.iconCls}`]: {
16569
+ color: token2.colorWarning
16570
+ },
16571
+ [`${confirmComponentCls}-info ${confirmComponentCls}-body > ${token2.iconCls}`]: {
16572
+ color: token2.colorInfo
16573
+ },
16574
+ [`${confirmComponentCls}-success ${confirmComponentCls}-body > ${token2.iconCls}`]: {
16575
+ color: token2.colorSuccess
16576
+ }
16577
+ };
16578
+ };
16579
+ const Confirm = genSubStyleComponent(["Modal", "confirm"], (token2) => {
16580
+ const modalToken = prepareToken$2(token2);
16581
+ return genModalConfirmStyle(modalToken);
16582
+ }, prepareComponentToken$o, {
16583
+ // confirm is weak than modal since no conflict here
16584
+ order: -1e3
16585
+ });
16586
+ var __rest$X = function(s, e3) {
16587
+ var t2 = {};
16588
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
16589
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16590
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
16591
+ }
16592
+ return t2;
16593
+ };
16594
+ function ConfirmContent(props) {
16595
+ const {
16596
+ prefixCls,
16597
+ icon,
16598
+ okText,
16599
+ cancelText,
16600
+ confirmPrefixCls,
16601
+ type: type4,
16602
+ okCancel,
16603
+ footer: footer2,
16604
+ // Legacy for static function usage
16605
+ locale: staticLocale
16606
+ } = props, resetProps = __rest$X(props, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
16607
+ if (process.env.NODE_ENV !== "production") {
16608
+ const warning3 = devUseWarning("Modal");
16609
+ process.env.NODE_ENV !== "production" ? warning3(!(typeof icon === "string" && icon.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${icon}\` at https://ant.design/components/icon`) : void 0;
16610
+ }
16611
+ let mergedIcon = icon;
16612
+ if (!icon && icon !== null) {
16613
+ switch (type4) {
16614
+ case "info":
16615
+ mergedIcon = /* @__PURE__ */ React.createElement(RefIcon$B, null);
16616
+ break;
16617
+ case "success":
16618
+ mergedIcon = /* @__PURE__ */ React.createElement(RefIcon$F, null);
16619
+ break;
16620
+ case "error":
16621
+ mergedIcon = /* @__PURE__ */ React.createElement(RefIcon$E, null);
16622
+ break;
16623
+ default:
16624
+ mergedIcon = /* @__PURE__ */ React.createElement(RefIcon$C, null);
16625
+ }
16626
+ }
16627
+ const mergedOkCancel = okCancel !== null && okCancel !== void 0 ? okCancel : type4 === "confirm";
16628
+ const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || "ok";
16629
+ const [locale2] = useLocale$1("Modal");
16630
+ const mergedLocale = staticLocale || locale2;
16631
+ const okTextLocale = okText || (mergedOkCancel ? mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.okText : mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.justOkText);
16632
+ const cancelTextLocale = cancelText || (mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.cancelText);
16633
+ const btnCtxValue = Object.assign({
16634
+ autoFocusButton,
16635
+ cancelTextLocale,
16636
+ okTextLocale,
16637
+ mergedOkCancel
16638
+ }, resetProps);
16639
+ const btnCtxValueMemo = React.useMemo(() => btnCtxValue, _toConsumableArray(Object.values(btnCtxValue)));
16640
+ const footerOriginNode = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ConfirmCancelBtn, null), /* @__PURE__ */ React.createElement(ConfirmOkBtn, null));
16641
+ const hasTitle = props.title !== void 0 && props.title !== null;
16642
+ const bodyCls = `${confirmPrefixCls}-body`;
16643
+ return /* @__PURE__ */ React.createElement("div", {
16644
+ className: `${confirmPrefixCls}-body-wrapper`
16645
+ }, /* @__PURE__ */ React.createElement("div", {
16646
+ className: classNames(bodyCls, {
16647
+ [`${bodyCls}-has-title`]: hasTitle
16648
+ })
16649
+ }, mergedIcon, /* @__PURE__ */ React.createElement("div", {
16650
+ className: `${confirmPrefixCls}-paragraph`
16651
+ }, hasTitle && /* @__PURE__ */ React.createElement("span", {
16652
+ className: `${confirmPrefixCls}-title`
16653
+ }, props.title), /* @__PURE__ */ React.createElement("div", {
16654
+ className: `${confirmPrefixCls}-content`
16655
+ }, props.content))), footer2 === void 0 || typeof footer2 === "function" ? /* @__PURE__ */ React.createElement(ModalContextProvider, {
16656
+ value: btnCtxValueMemo
16657
+ }, /* @__PURE__ */ React.createElement("div", {
16658
+ className: `${confirmPrefixCls}-btns`
16659
+ }, typeof footer2 === "function" ? footer2(footerOriginNode, {
16660
+ OkBtn: ConfirmOkBtn,
16661
+ CancelBtn: ConfirmCancelBtn
16662
+ }) : footerOriginNode)) : footer2, /* @__PURE__ */ React.createElement(Confirm, {
16663
+ prefixCls
16664
+ }));
16665
+ }
16666
+ const ConfirmDialog = (props) => {
16667
+ const {
16668
+ close,
16669
+ zIndex,
16670
+ maskStyle,
16671
+ direction,
16672
+ prefixCls,
16673
+ wrapClassName,
16674
+ rootPrefixCls,
16675
+ bodyStyle,
16676
+ closable = false,
16677
+ onConfirm,
16678
+ styles
16679
+ } = props;
16680
+ if (process.env.NODE_ENV !== "production") {
16681
+ const warning3 = devUseWarning("Modal");
16682
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([deprecatedName, newName]) => {
16683
+ warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
16684
+ });
16685
+ }
16686
+ const confirmPrefixCls = `${prefixCls}-confirm`;
16687
+ const width = props.width || 416;
16688
+ const style2 = props.style || {};
16689
+ const mask = props.mask === void 0 ? true : props.mask;
16690
+ const maskClosable = props.maskClosable === void 0 ? false : props.maskClosable;
16691
+ const classString = classNames(confirmPrefixCls, `${confirmPrefixCls}-${props.type}`, {
16692
+ [`${confirmPrefixCls}-rtl`]: direction === "rtl"
16693
+ }, props.className);
16694
+ const [, token2] = useToken();
16695
+ const mergedZIndex = React.useMemo(() => {
16696
+ if (zIndex !== void 0) {
16697
+ return zIndex;
16698
+ }
16699
+ return token2.zIndexPopupBase + CONTAINER_MAX_OFFSET;
16700
+ }, [zIndex, token2]);
16701
+ return /* @__PURE__ */ React.createElement(Modal$2, Object.assign({}, props, {
16702
+ className: classString,
16703
+ wrapClassName: classNames({
16704
+ [`${confirmPrefixCls}-centered`]: !!props.centered
16705
+ }, wrapClassName),
16706
+ onCancel: () => {
16707
+ close === null || close === void 0 ? void 0 : close({
16708
+ triggerCancel: true
16709
+ });
16710
+ onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);
16711
+ },
16712
+ title: "",
16713
+ footer: null,
16714
+ transitionName: getTransitionName(rootPrefixCls || "", "zoom", props.transitionName),
16715
+ maskTransitionName: getTransitionName(rootPrefixCls || "", "fade", props.maskTransitionName),
16716
+ mask,
16717
+ maskClosable,
16718
+ style: style2,
16719
+ styles: Object.assign({
16720
+ body: bodyStyle,
16721
+ mask: maskStyle
16722
+ }, styles),
16723
+ width,
16724
+ zIndex: mergedZIndex,
16725
+ closable
16726
+ }), /* @__PURE__ */ React.createElement(ConfirmContent, Object.assign({}, props, {
16727
+ confirmPrefixCls
16728
+ })));
16729
+ };
16730
+ const ConfirmDialogWrapper$1 = (props) => {
16731
+ const {
16732
+ rootPrefixCls,
16733
+ iconPrefixCls,
16734
+ direction,
16735
+ theme
16736
+ } = props;
16737
+ return /* @__PURE__ */ React.createElement(ConfigProvider, {
16738
+ prefixCls: rootPrefixCls,
16739
+ iconPrefixCls,
16740
+ direction,
16741
+ theme
16742
+ }, /* @__PURE__ */ React.createElement(ConfirmDialog, Object.assign({}, props)));
16743
+ };
16744
+ if (process.env.NODE_ENV !== "production") {
16745
+ ConfirmDialog.displayName = "ConfirmDialog";
16746
+ ConfirmDialogWrapper$1.displayName = "ConfirmDialogWrapper";
16747
+ }
16748
+ const destroyFns = [];
16749
+ let defaultRootPrefixCls = "";
16750
+ function getRootPrefixCls() {
16751
+ return defaultRootPrefixCls;
16752
+ }
16753
+ const ConfirmDialogWrapper = (props) => {
16754
+ var _a, _b;
16755
+ const {
16756
+ prefixCls: customizePrefixCls,
16757
+ getContainer: getContainer2,
16758
+ direction
16759
+ } = props;
16760
+ const runtimeLocale2 = getConfirmLocale();
16761
+ const config = useContext$1(ConfigContext);
16762
+ const rootPrefixCls = getRootPrefixCls() || config.getPrefixCls();
16763
+ const prefixCls = customizePrefixCls || `${rootPrefixCls}-modal`;
16764
+ let mergedGetContainer = getContainer2;
16765
+ if (mergedGetContainer === false) {
16766
+ mergedGetContainer = void 0;
16767
+ if (process.env.NODE_ENV !== "production") {
16768
+ process.env.NODE_ENV !== "production" ? warning$2(false, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.") : void 0;
16769
+ }
16770
+ }
16771
+ return /* @__PURE__ */ React__default.createElement(ConfirmDialogWrapper$1, Object.assign({}, props, {
16772
+ rootPrefixCls,
16773
+ prefixCls,
16774
+ iconPrefixCls: config.iconPrefixCls,
16775
+ theme: config.theme,
16776
+ direction: direction !== null && direction !== void 0 ? direction : config.direction,
16777
+ locale: (_b = (_a = config.locale) === null || _a === void 0 ? void 0 : _a.Modal) !== null && _b !== void 0 ? _b : runtimeLocale2,
16778
+ getContainer: mergedGetContainer
16779
+ }));
16780
+ };
16781
+ function confirm(config) {
16782
+ const global2 = globalConfig();
16783
+ if (process.env.NODE_ENV !== "production" && !global2.holderRender) {
16784
+ warnContext("Modal");
16785
+ }
16786
+ const container = document.createDocumentFragment();
16787
+ let currentConfig = Object.assign(Object.assign({}, config), {
16788
+ close,
16789
+ open: true
16790
+ });
16791
+ let timeoutId;
16792
+ let reactUnmount;
16793
+ function destroy(...args) {
16794
+ var _a;
16795
+ const triggerCancel = args.some((param) => param === null || param === void 0 ? void 0 : param.triggerCancel);
16796
+ if (triggerCancel) {
16797
+ var _a2;
16798
+ (_a = config.onCancel) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [config, () => {
16799
+ }].concat(_toConsumableArray(args.slice(1))));
16800
+ }
16801
+ for (let i = 0; i < destroyFns.length; i++) {
16802
+ const fn = destroyFns[i];
16803
+ if (fn === close) {
16804
+ destroyFns.splice(i, 1);
16805
+ break;
16806
+ }
16807
+ }
16808
+ reactUnmount();
16809
+ }
16810
+ function render2(props) {
16811
+ clearTimeout(timeoutId);
16812
+ timeoutId = setTimeout(() => {
16813
+ const rootPrefixCls = global2.getPrefixCls(void 0, getRootPrefixCls());
16814
+ const iconPrefixCls = global2.getIconPrefixCls();
16815
+ const theme = global2.getTheme();
16816
+ const dom = /* @__PURE__ */ React__default.createElement(ConfirmDialogWrapper, Object.assign({}, props));
16817
+ const reactRender2 = unstableSetRender();
16818
+ reactUnmount = reactRender2(/* @__PURE__ */ React__default.createElement(ConfigProvider, {
16819
+ prefixCls: rootPrefixCls,
16820
+ iconPrefixCls,
16821
+ theme
16822
+ }, global2.holderRender ? global2.holderRender(dom) : dom), container);
16823
+ });
16824
+ }
16825
+ function close(...args) {
16826
+ currentConfig = Object.assign(Object.assign({}, currentConfig), {
16827
+ open: false,
16828
+ afterClose: () => {
16829
+ if (typeof config.afterClose === "function") {
16830
+ config.afterClose();
16831
+ }
16832
+ destroy.apply(this, args);
16833
+ }
16834
+ });
16835
+ if (currentConfig.visible) {
16836
+ delete currentConfig.visible;
16837
+ }
16838
+ render2(currentConfig);
16839
+ }
16840
+ function update(configUpdate) {
16841
+ if (typeof configUpdate === "function") {
16842
+ currentConfig = configUpdate(currentConfig);
16843
+ } else {
16844
+ currentConfig = Object.assign(Object.assign({}, currentConfig), configUpdate);
16845
+ }
16846
+ render2(currentConfig);
16847
+ }
16848
+ render2(currentConfig);
16849
+ destroyFns.push(close);
16850
+ return {
16851
+ destroy: close,
16852
+ update
16853
+ };
16854
+ }
16855
+ function withWarn(props) {
16856
+ return Object.assign(Object.assign({}, props), {
16857
+ type: "warning"
16858
+ });
16859
+ }
16860
+ function withInfo(props) {
16861
+ return Object.assign(Object.assign({}, props), {
16862
+ type: "info"
16863
+ });
16864
+ }
16865
+ function withSuccess(props) {
16866
+ return Object.assign(Object.assign({}, props), {
16867
+ type: "success"
16868
+ });
16869
+ }
16870
+ function withError(props) {
16871
+ return Object.assign(Object.assign({}, props), {
16872
+ type: "error"
16873
+ });
16874
+ }
16875
+ function withConfirm(props) {
16876
+ return Object.assign(Object.assign({}, props), {
16877
+ type: "confirm"
16878
+ });
16879
+ }
16880
+ function modalGlobalConfig({
16881
+ rootPrefixCls
16882
+ }) {
16883
+ process.env.NODE_ENV !== "production" ? warning$2(false, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead.") : void 0;
16884
+ defaultRootPrefixCls = rootPrefixCls;
16885
+ }
16886
+ var __rest$W = function(s, e3) {
16887
+ var t2 = {};
16888
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
16889
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16890
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
16891
+ }
16892
+ return t2;
16893
+ };
16894
+ const HookModal = (_a, ref) => {
16895
+ var _b;
16896
+ var {
16897
+ afterClose: hookAfterClose,
16898
+ config
16899
+ } = _a, restProps = __rest$W(_a, ["afterClose", "config"]);
16900
+ const [open, setOpen] = React.useState(true);
16901
+ const [innerConfig, setInnerConfig] = React.useState(config);
16902
+ const {
16903
+ direction,
16904
+ getPrefixCls
16905
+ } = React.useContext(ConfigContext);
16906
+ const prefixCls = getPrefixCls("modal");
16907
+ const rootPrefixCls = getPrefixCls();
16908
+ const afterClose = () => {
16909
+ var _a2;
16910
+ hookAfterClose();
16911
+ (_a2 = innerConfig.afterClose) === null || _a2 === void 0 ? void 0 : _a2.call(innerConfig);
16912
+ };
16913
+ const close = (...args) => {
16914
+ var _a2;
16915
+ setOpen(false);
16916
+ const triggerCancel = args.some((param) => param === null || param === void 0 ? void 0 : param.triggerCancel);
16917
+ if (triggerCancel) {
16918
+ var _a22;
16919
+ (_a2 = innerConfig.onCancel) === null || _a2 === void 0 ? void 0 : (_a22 = _a2).call.apply(_a22, [innerConfig, () => {
16920
+ }].concat(_toConsumableArray(args.slice(1))));
16921
+ }
16922
+ };
16923
+ React.useImperativeHandle(ref, () => ({
16924
+ destroy: close,
16925
+ update: (newConfig) => {
16926
+ setInnerConfig((originConfig) => {
16927
+ const nextConfig = typeof newConfig === "function" ? newConfig(originConfig) : newConfig;
16928
+ return Object.assign(Object.assign({}, originConfig), nextConfig);
16929
+ });
16930
+ }
16931
+ }));
16932
+ const mergedOkCancel = (_b = innerConfig.okCancel) !== null && _b !== void 0 ? _b : innerConfig.type === "confirm";
16933
+ const [contextLocale] = useLocale$1("Modal", localeValues.Modal);
16934
+ return /* @__PURE__ */ React.createElement(ConfirmDialogWrapper$1, Object.assign({
16935
+ prefixCls,
16936
+ rootPrefixCls
16937
+ }, innerConfig, {
16938
+ close,
16939
+ open,
16940
+ afterClose,
16941
+ okText: innerConfig.okText || (mergedOkCancel ? contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.okText : contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.justOkText),
16942
+ direction: innerConfig.direction || direction,
16943
+ cancelText: innerConfig.cancelText || (contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.cancelText)
16944
+ }, restProps));
16945
+ };
16946
+ const HookModal$1 = /* @__PURE__ */ React.forwardRef(HookModal);
16947
+ let uuid$3 = 0;
16948
+ const ElementsHolder = /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef((_props, ref) => {
16949
+ const [elements, patchElement] = usePatchElement();
16950
+ React.useImperativeHandle(ref, () => ({
16951
+ patchElement
16952
+ }), []);
16953
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, elements);
16954
+ }));
16955
+ function useModal() {
16956
+ const holderRef = React.useRef(null);
16957
+ const [actionQueue, setActionQueue] = React.useState([]);
16958
+ React.useEffect(() => {
16959
+ if (actionQueue.length) {
16960
+ const cloneQueue = _toConsumableArray(actionQueue);
16961
+ cloneQueue.forEach((action) => {
16962
+ action();
16963
+ });
16964
+ setActionQueue([]);
16965
+ }
16966
+ }, [actionQueue]);
16967
+ const getConfirmFunc = React.useCallback((withFunc) => function hookConfirm(config) {
16968
+ var _a;
16969
+ uuid$3 += 1;
16970
+ const modalRef = /* @__PURE__ */ React.createRef();
16971
+ let resolvePromise;
16972
+ const promise = new Promise((resolve) => {
16973
+ resolvePromise = resolve;
16974
+ });
16975
+ let silent = false;
16976
+ let closeFunc;
16977
+ const modal = /* @__PURE__ */ React.createElement(HookModal$1, {
16978
+ key: `modal-${uuid$3}`,
16979
+ config: withFunc(config),
16980
+ ref: modalRef,
16981
+ afterClose: () => {
16982
+ closeFunc === null || closeFunc === void 0 ? void 0 : closeFunc();
16983
+ },
16984
+ isSilent: () => silent,
16985
+ onConfirm: (confirmed) => {
16986
+ resolvePromise(confirmed);
16987
+ }
16988
+ });
16989
+ closeFunc = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.patchElement(modal);
16990
+ if (closeFunc) {
16991
+ destroyFns.push(closeFunc);
16992
+ }
16993
+ const instance = {
16994
+ destroy: () => {
16995
+ function destroyAction() {
16996
+ var _a2;
16997
+ (_a2 = modalRef.current) === null || _a2 === void 0 ? void 0 : _a2.destroy();
16998
+ }
16999
+ if (modalRef.current) {
17000
+ destroyAction();
17001
+ } else {
17002
+ setActionQueue((prev2) => [].concat(_toConsumableArray(prev2), [destroyAction]));
17003
+ }
17004
+ },
17005
+ update: (newConfig) => {
17006
+ function updateAction() {
17007
+ var _a2;
17008
+ (_a2 = modalRef.current) === null || _a2 === void 0 ? void 0 : _a2.update(newConfig);
17009
+ }
17010
+ if (modalRef.current) {
17011
+ updateAction();
17012
+ } else {
17013
+ setActionQueue((prev2) => [].concat(_toConsumableArray(prev2), [updateAction]));
17014
+ }
17015
+ },
17016
+ then: (resolve) => {
17017
+ silent = true;
17018
+ return promise.then(resolve);
17019
+ }
17020
+ };
17021
+ return instance;
17022
+ }, []);
17023
+ const fns = React.useMemo(() => ({
17024
+ info: getConfirmFunc(withInfo),
17025
+ success: getConfirmFunc(withSuccess),
17026
+ error: getConfirmFunc(withError),
17027
+ warning: getConfirmFunc(withWarn),
17028
+ confirm: getConfirmFunc(withConfirm)
17029
+ }), []);
17030
+ return [fns, /* @__PURE__ */ React.createElement(ElementsHolder, {
17031
+ key: "modal-holder",
17032
+ ref: holderRef
17033
+ })];
17034
+ }
15470
17035
  function withPureRenderTheme(Component) {
15471
17036
  return (props) => /* @__PURE__ */ React.createElement(ConfigProvider, {
15472
17037
  theme: {
@@ -16468,7 +18033,7 @@ function Arrow(props) {
16468
18033
  style: alignStyle
16469
18034
  }, content2);
16470
18035
  }
16471
- function Mask(props) {
18036
+ function Mask2(props) {
16472
18037
  var prefixCls = props.prefixCls, open = props.open, zIndex = props.zIndex, mask = props.mask, motion2 = props.motion;
16473
18038
  if (!mask) {
16474
18039
  return null;
@@ -16560,7 +18125,7 @@ var Popup$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
16560
18125
  return getPopupContainer(target);
16561
18126
  },
16562
18127
  autoDestroy
16563
- }, /* @__PURE__ */ React.createElement(Mask, {
18128
+ }, /* @__PURE__ */ React.createElement(Mask2, {
16564
18129
  prefixCls,
16565
18130
  open,
16566
18131
  zIndex,
@@ -20467,7 +22032,7 @@ const useStyle$r = genStyleHooks("Empty", (token2) => {
20467
22032
  });
20468
22033
  return genSharedEmptyStyle(emptyToken);
20469
22034
  });
20470
- var __rest$U = function(s, e3) {
22035
+ var __rest$V = function(s, e3) {
20471
22036
  var t2 = {};
20472
22037
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
20473
22038
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -20490,7 +22055,7 @@ const Empty = (props) => {
20490
22055
  style: style2,
20491
22056
  classNames: emptyClassNames,
20492
22057
  styles
20493
- } = props, restProps = __rest$U(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
22058
+ } = props, restProps = __rest$V(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
20494
22059
  const {
20495
22060
  getPrefixCls,
20496
22061
  direction,
@@ -21827,7 +23392,7 @@ function usePopupRender(renderFn) {
21827
23392
  function useShowArrow(suffixIcon, showArrow) {
21828
23393
  return showArrow !== void 0 ? showArrow : suffixIcon !== null;
21829
23394
  }
21830
- var __rest$T = function(s, e3) {
23395
+ var __rest$U = function(s, e3) {
21831
23396
  var t2 = {};
21832
23397
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
21833
23398
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -21871,7 +23436,7 @@ const InternalSelect = (props, ref) => {
21871
23436
  onOpenChange,
21872
23437
  styles,
21873
23438
  classNames: classNames$1
21874
- } = props, rest = __rest$T(props, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix", "dropdownRender", "popupRender", "onDropdownVisibleChange", "onOpenChange", "styles", "classNames"]);
23439
+ } = props, rest = __rest$U(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"]);
21875
23440
  const {
21876
23441
  getPopupContainer: getContextPopupContainer,
21877
23442
  getPrefixCls,
@@ -22030,11 +23595,11 @@ if (process.env.NODE_ENV !== "production") {
22030
23595
  InternalSelect.displayName = "Select";
22031
23596
  }
22032
23597
  const Select$1 = /* @__PURE__ */ React.forwardRef(InternalSelect);
22033
- const PurePanel$6 = genPurePanel(Select$1, "dropdownAlign");
23598
+ const PurePanel$8 = genPurePanel(Select$1, "dropdownAlign");
22034
23599
  Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
22035
23600
  Select$1.Option = Option;
22036
23601
  Select$1.OptGroup = OptGroup;
22037
- Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
23602
+ Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$8;
22038
23603
  if (process.env.NODE_ENV !== "production") {
22039
23604
  Select$1.displayName = "Select";
22040
23605
  }
@@ -22294,7 +23859,7 @@ const useStyle$q = genStyleHooks("Avatar", (token2) => {
22294
23859
  });
22295
23860
  return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
22296
23861
  }, prepareComponentToken$m);
22297
- var __rest$S = function(s, e3) {
23862
+ var __rest$T = function(s, e3) {
22298
23863
  var t2 = {};
22299
23864
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
22300
23865
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -22319,7 +23884,7 @@ const Avatar$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
22319
23884
  crossOrigin,
22320
23885
  gap = 4,
22321
23886
  onError
22322
- } = props, others = __rest$S(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
23887
+ } = props, others = __rest$T(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
22323
23888
  const [scale, setScale] = React.useState(1);
22324
23889
  const [mounted, setMounted] = React.useState(false);
22325
23890
  const [isImgExist, setIsImgExist] = React.useState(true);
@@ -23147,7 +24712,7 @@ function parseColor(prefixCls, color2) {
23147
24712
  arrowStyle
23148
24713
  };
23149
24714
  }
23150
- const PurePanel$5 = (props) => {
24715
+ const PurePanel$7 = (props) => {
23151
24716
  const {
23152
24717
  prefixCls: customizePrefixCls,
23153
24718
  className,
@@ -23176,7 +24741,7 @@ const PurePanel$5 = (props) => {
23176
24741
  overlayInnerStyle: formattedOverlayInnerStyle
23177
24742
  }), title)));
23178
24743
  };
23179
- var __rest$R = function(s, e3) {
24744
+ var __rest$S = function(s, e3) {
23180
24745
  var t2 = {};
23181
24746
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23182
24747
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23213,7 +24778,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
23213
24778
  overlayClassName,
23214
24779
  styles,
23215
24780
  classNames: tooltipClassNames
23216
- } = props, restProps = __rest$R(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
24781
+ } = props, restProps = __rest$S(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"]);
23217
24782
  const mergedShowArrow = !!arrow;
23218
24783
  const [, token2] = useToken();
23219
24784
  const {
@@ -23347,7 +24912,7 @@ const Tooltip$2 = InternalTooltip;
23347
24912
  if (process.env.NODE_ENV !== "production") {
23348
24913
  Tooltip$2.displayName = "Tooltip";
23349
24914
  }
23350
- Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
24915
+ Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$7;
23351
24916
  const genBaseStyle$5 = (token2) => {
23352
24917
  const {
23353
24918
  componentCls,
@@ -23502,7 +25067,7 @@ const useStyle$o = genStyleHooks("Popover", (token2) => {
23502
25067
  resetStyle: false,
23503
25068
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
23504
25069
  });
23505
- var __rest$Q = function(s, e3) {
25070
+ var __rest$R = function(s, e3) {
23506
25071
  var t2 = {};
23507
25072
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23508
25073
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23552,11 +25117,11 @@ const RawPurePanel = (props) => {
23552
25117
  content: contentNode
23553
25118
  })));
23554
25119
  };
23555
- const PurePanel$4 = (props) => {
25120
+ const PurePanel$6 = (props) => {
23556
25121
  const {
23557
25122
  prefixCls: customizePrefixCls,
23558
25123
  className
23559
- } = props, restProps = __rest$Q(props, ["prefixCls", "className"]);
25124
+ } = props, restProps = __rest$R(props, ["prefixCls", "className"]);
23560
25125
  const {
23561
25126
  getPrefixCls
23562
25127
  } = React.useContext(ConfigContext);
@@ -23568,7 +25133,7 @@ const PurePanel$4 = (props) => {
23568
25133
  className: classNames(className, cssVarCls)
23569
25134
  })));
23570
25135
  };
23571
- var __rest$P = function(s, e3) {
25136
+ var __rest$Q = function(s, e3) {
23572
25137
  var t2 = {};
23573
25138
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
23574
25139
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -23592,7 +25157,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
23592
25157
  overlayStyle = {},
23593
25158
  styles,
23594
25159
  classNames: popoverClassNames
23595
- } = props, otherProps = __rest$P(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
25160
+ } = props, otherProps = __rest$Q(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
23596
25161
  const {
23597
25162
  getPrefixCls,
23598
25163
  className: contextClassName,
@@ -23659,7 +25224,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
23659
25224
  })));
23660
25225
  });
23661
25226
  const Popover$2 = InternalPopover;
23662
- Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
25227
+ Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
23663
25228
  if (process.env.NODE_ENV !== "production") {
23664
25229
  Popover$2.displayName = "Popover";
23665
25230
  }
@@ -25583,7 +27148,7 @@ const genSiderStyle = (token2) => {
25583
27148
  const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
25584
27149
  deprecatedTokens: DEPRECATED_TOKENS
25585
27150
  });
25586
- var __rest$O = function(s, e3) {
27151
+ var __rest$P = function(s, e3) {
25587
27152
  var t2 = {};
25588
27153
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25589
27154
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25625,7 +27190,7 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
25625
27190
  breakpoint,
25626
27191
  onCollapse,
25627
27192
  onBreakpoint
25628
- } = props, otherProps = __rest$O(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
27193
+ } = props, otherProps = __rest$P(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
25629
27194
  const {
25630
27195
  siderHook
25631
27196
  } = useContext$1(LayoutContext);
@@ -25746,7 +27311,7 @@ const MenuContext = /* @__PURE__ */ createContext$1({
25746
27311
  firstLevel: true,
25747
27312
  inlineCollapsed: false
25748
27313
  });
25749
- var __rest$N = function(s, e3) {
27314
+ var __rest$O = function(s, e3) {
25750
27315
  var t2 = {};
25751
27316
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25752
27317
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25759,7 +27324,7 @@ const MenuDivider = (props) => {
25759
27324
  prefixCls: customizePrefixCls,
25760
27325
  className,
25761
27326
  dashed
25762
- } = props, restProps = __rest$N(props, ["prefixCls", "className", "dashed"]);
27327
+ } = props, restProps = __rest$O(props, ["prefixCls", "className", "dashed"]);
25763
27328
  const {
25764
27329
  getPrefixCls
25765
27330
  } = React.useContext(ConfigContext);
@@ -25840,7 +27405,7 @@ const MenuItem$1 = (props) => {
25840
27405
  }
25841
27406
  return returnNode;
25842
27407
  };
25843
- var __rest$M = function(s, e3) {
27408
+ var __rest$N = function(s, e3) {
25844
27409
  var t2 = {};
25845
27410
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
25846
27411
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -25852,7 +27417,7 @@ const OverrideContext = /* @__PURE__ */ React.createContext(null);
25852
27417
  const OverrideProvider = /* @__PURE__ */ React.forwardRef((props, ref) => {
25853
27418
  const {
25854
27419
  children: children2
25855
- } = props, restProps = __rest$M(props, ["children"]);
27420
+ } = props, restProps = __rest$N(props, ["children"]);
25856
27421
  const override = React.useContext(OverrideContext);
25857
27422
  const context = React.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
25858
27423
  override,
@@ -26930,7 +28495,7 @@ const SubMenu = (props) => {
26930
28495
  }, props.popupStyle)
26931
28496
  })));
26932
28497
  };
26933
- var __rest$L = function(s, e3) {
28498
+ var __rest$M = function(s, e3) {
26934
28499
  var t2 = {};
26935
28500
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
26936
28501
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -26971,7 +28536,7 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
26971
28536
  selectable,
26972
28537
  onClick,
26973
28538
  overflowedIndicatorPopupClassName
26974
- } = props, restProps = __rest$L(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
28539
+ } = props, restProps = __rest$M(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
26975
28540
  const passedProps = omit(restProps, ["collapsedWidth"]);
26976
28541
  if (process.env.NODE_ENV !== "production") {
26977
28542
  const warning3 = devUseWarning("Menu");
@@ -27561,8 +29126,8 @@ const Dropdown$1 = (props) => {
27561
29126
  }
27562
29127
  return wrapCSSVar(renderNode);
27563
29128
  };
27564
- const PurePanel$3 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
27565
- const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$3, Object.assign({}, props), /* @__PURE__ */ React.createElement("span", null));
29129
+ const PurePanel$5 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
29130
+ const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$5, Object.assign({}, props), /* @__PURE__ */ React.createElement("span", null));
27566
29131
  Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
27567
29132
  if (process.env.NODE_ENV !== "production") {
27568
29133
  Dropdown$1.displayName = "Dropdown";
@@ -27580,7 +29145,7 @@ const BreadcrumbSeparator = ({
27580
29145
  }, children2 === "" ? children2 : children2 || "/");
27581
29146
  };
27582
29147
  BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
27583
- var __rest$K = function(s, e3) {
29148
+ var __rest$L = function(s, e3) {
27584
29149
  var t2 = {};
27585
29150
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27586
29151
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27602,7 +29167,7 @@ function renderItem(prefixCls, item, children2, href) {
27602
29167
  const {
27603
29168
  className,
27604
29169
  onClick
27605
- } = item, restItem = __rest$K(item, ["className", "onClick"]);
29170
+ } = item, restItem = __rest$L(item, ["className", "onClick"]);
27606
29171
  const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
27607
29172
  data: true,
27608
29173
  aria: true
@@ -27629,7 +29194,7 @@ function useItemRender(prefixCls, itemRender) {
27629
29194
  };
27630
29195
  return mergedItemRender;
27631
29196
  }
27632
- var __rest$J = function(s, e3) {
29197
+ var __rest$K = function(s, e3) {
27633
29198
  var t2 = {};
27634
29199
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27635
29200
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27657,7 +29222,7 @@ const InternalBreadcrumbItem = (props) => {
27657
29222
  if (menu) {
27658
29223
  const _a = menu || {}, {
27659
29224
  items
27660
- } = _a, menuProps = __rest$J(_a, ["items"]);
29225
+ } = _a, menuProps = __rest$K(_a, ["items"]);
27661
29226
  mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
27662
29227
  items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
27663
29228
  var {
@@ -27665,7 +29230,7 @@ const InternalBreadcrumbItem = (props) => {
27665
29230
  title,
27666
29231
  label,
27667
29232
  path: path2
27668
- } = _a2, itemProps = __rest$J(_a2, ["key", "title", "label", "path"]);
29233
+ } = _a2, itemProps = __rest$K(_a2, ["key", "title", "label", "path"]);
27669
29234
  let mergedLabel = label !== null && label !== void 0 ? label : title;
27670
29235
  if (path2) {
27671
29236
  mergedLabel = /* @__PURE__ */ React.createElement("a", {
@@ -27700,7 +29265,7 @@ const BreadcrumbItem = (props) => {
27700
29265
  prefixCls: customizePrefixCls,
27701
29266
  children: children2,
27702
29267
  href
27703
- } = props, restProps = __rest$J(props, ["prefixCls", "children", "href"]);
29268
+ } = props, restProps = __rest$K(props, ["prefixCls", "children", "href"]);
27704
29269
  const {
27705
29270
  getPrefixCls
27706
29271
  } = React.useContext(ConfigContext);
@@ -27801,7 +29366,7 @@ const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
27801
29366
  const breadcrumbToken = merge$1(token2, {});
27802
29367
  return genBreadcrumbStyle(breadcrumbToken);
27803
29368
  }, prepareComponentToken$g);
27804
- var __rest$I = function(s, e3) {
29369
+ var __rest$J = function(s, e3) {
27805
29370
  var t2 = {};
27806
29371
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27807
29372
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27813,7 +29378,7 @@ function route2item(route) {
27813
29378
  const {
27814
29379
  breadcrumbName,
27815
29380
  children: children2
27816
- } = route, rest = __rest$I(route, ["breadcrumbName", "children"]);
29381
+ } = route, rest = __rest$J(route, ["breadcrumbName", "children"]);
27817
29382
  const clone = Object.assign({
27818
29383
  title: breadcrumbName
27819
29384
  }, rest);
@@ -27822,7 +29387,7 @@ function route2item(route) {
27822
29387
  items: children2.map((_a) => {
27823
29388
  var {
27824
29389
  breadcrumbName: itemBreadcrumbName
27825
- } = _a, itemProps = __rest$I(_a, ["breadcrumbName"]);
29390
+ } = _a, itemProps = __rest$J(_a, ["breadcrumbName"]);
27826
29391
  return Object.assign(Object.assign({}, itemProps), {
27827
29392
  title: itemBreadcrumbName
27828
29393
  });
@@ -27842,7 +29407,7 @@ function useItems(items, routes) {
27842
29407
  return null;
27843
29408
  }, [items, routes]);
27844
29409
  }
27845
- var __rest$H = function(s, e3) {
29410
+ var __rest$I = function(s, e3) {
27846
29411
  var t2 = {};
27847
29412
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
27848
29413
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -27872,7 +29437,7 @@ const Breadcrumb$2 = (props) => {
27872
29437
  children: children2,
27873
29438
  itemRender,
27874
29439
  params = {}
27875
- } = props, restProps = __rest$H(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
29440
+ } = props, restProps = __rest$I(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
27876
29441
  const {
27877
29442
  getPrefixCls,
27878
29443
  direction,
@@ -33547,7 +35112,7 @@ const useStyle$j = genStyleHooks("Radio", (token2) => {
33547
35112
  dotSize: true
33548
35113
  }
33549
35114
  });
33550
- var __rest$G = function(s, e3) {
35115
+ var __rest$H = function(s, e3) {
33551
35116
  var t2 = {};
33552
35117
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33553
35118
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33585,7 +35150,7 @@ const InternalRadio = (props, ref) => {
33585
35150
  children: children2,
33586
35151
  style: style2,
33587
35152
  title
33588
- } = props, restProps = __rest$G(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
35153
+ } = props, restProps = __rest$H(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
33589
35154
  const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
33590
35155
  const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
33591
35156
  const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
@@ -33666,7 +35231,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
33666
35231
  }
33667
35232
  return status;
33668
35233
  }
33669
- var __rest$F = function(s, e3) {
35234
+ var __rest$G = function(s, e3) {
33670
35235
  var t2 = {};
33671
35236
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33672
35237
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33706,7 +35271,7 @@ function useForm(form) {
33706
35271
  scrollToField: (name2, options = {}) => {
33707
35272
  const {
33708
35273
  focus
33709
- } = options, restOpt = __rest$F(options, ["focus"]);
35274
+ } = options, restOpt = __rest$G(options, ["focus"]);
33710
35275
  const node2 = getFieldDOMNode(name2, wrapForm);
33711
35276
  if (node2) {
33712
35277
  e(node2, Object.assign({
@@ -33839,7 +35404,7 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
33839
35404
  }, childrenToRender)));
33840
35405
  });
33841
35406
  const Group$1 = /* @__PURE__ */ React.memo(RadioGroup$1);
33842
- var __rest$E = function(s, e3) {
35407
+ var __rest$F = function(s, e3) {
33843
35408
  var t2 = {};
33844
35409
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
33845
35410
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -33853,7 +35418,7 @@ const RadioButton = (props, ref) => {
33853
35418
  } = React.useContext(ConfigContext);
33854
35419
  const {
33855
35420
  prefixCls: customizePrefixCls
33856
- } = props, radioProps = __rest$E(props, ["prefixCls"]);
35421
+ } = props, radioProps = __rest$F(props, ["prefixCls"]);
33857
35422
  const prefixCls = getPrefixCls("radio", customizePrefixCls);
33858
35423
  return /* @__PURE__ */ React.createElement(RadioOptionTypeContextProvider, {
33859
35424
  value: "button"
@@ -37390,7 +38955,7 @@ function useAnimateConfig(prefixCls, animated = {
37390
38955
  }
37391
38956
  return mergedAnimated;
37392
38957
  }
37393
- var __rest$D = function(s, e3) {
38958
+ var __rest$E = function(s, e3) {
37394
38959
  var t2 = {};
37395
38960
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
37396
38961
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -37424,7 +38989,7 @@ function useLegacyItems(items, children2) {
37424
38989
  } = node2;
37425
38990
  const _a = props || {}, {
37426
38991
  tab: tab2
37427
- } = _a, restProps = __rest$D(_a, ["tab"]);
38992
+ } = _a, restProps = __rest$E(_a, ["tab"]);
37428
38993
  const item = Object.assign(Object.assign({
37429
38994
  key: String(key)
37430
38995
  }, restProps), {
@@ -38334,7 +39899,7 @@ const TabPane = () => null;
38334
39899
  if (process.env.NODE_ENV !== "production") {
38335
39900
  TabPane.displayName = "DeprecatedTabPane";
38336
39901
  }
38337
- var __rest$C = function(s, e3) {
39902
+ var __rest$D = function(s, e3) {
38338
39903
  var t2 = {};
38339
39904
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38340
39905
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38365,7 +39930,7 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
38365
39930
  indicator,
38366
39931
  destroyInactiveTabPane,
38367
39932
  destroyOnHidden
38368
- } = props, otherProps = __rest$C(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
39933
+ } = props, otherProps = __rest$D(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
38369
39934
  const {
38370
39935
  prefixCls: customizePrefixCls
38371
39936
  } = otherProps;
@@ -38442,7 +40007,7 @@ Tabs$2.TabPane = TabPane;
38442
40007
  if (process.env.NODE_ENV !== "production") {
38443
40008
  Tabs$2.displayName = "Tabs";
38444
40009
  }
38445
- var __rest$B = function(s, e3) {
40010
+ var __rest$C = function(s, e3) {
38446
40011
  var t2 = {};
38447
40012
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38448
40013
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38455,7 +40020,7 @@ const Grid$1 = (_a) => {
38455
40020
  prefixCls,
38456
40021
  className,
38457
40022
  hoverable = true
38458
- } = _a, props = __rest$B(_a, ["prefixCls", "className", "hoverable"]);
40023
+ } = _a, props = __rest$C(_a, ["prefixCls", "className", "hoverable"]);
38459
40024
  const {
38460
40025
  getPrefixCls
38461
40026
  } = React.useContext(ConfigContext);
@@ -38806,7 +40371,7 @@ const useStyle$f = genStyleHooks("Card", (token2) => {
38806
40371
  genCardSizeStyle(cardToken)
38807
40372
  ];
38808
40373
  }, prepareComponentToken$c);
38809
- var __rest$A = function(s, e3) {
40374
+ var __rest$B = function(s, e3) {
38810
40375
  var t2 = {};
38811
40376
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38812
40377
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38859,7 +40424,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38859
40424
  tabProps = {},
38860
40425
  classNames: customClassNames,
38861
40426
  styles: customStyles
38862
- } = props, others = __rest$A(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
40427
+ } = props, others = __rest$B(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"]);
38863
40428
  const {
38864
40429
  getPrefixCls,
38865
40430
  direction,
@@ -38919,7 +40484,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38919
40484
  items: tabList.map((_a) => {
38920
40485
  var {
38921
40486
  tab: tab2
38922
- } = _a, item = __rest$A(_a, ["tab"]);
40487
+ } = _a, item = __rest$B(_a, ["tab"]);
38923
40488
  return Object.assign({
38924
40489
  label: tab2
38925
40490
  }, item);
@@ -38979,7 +40544,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
38979
40544
  style: mergedStyle
38980
40545
  }), head, coverDom, body, actionDom));
38981
40546
  });
38982
- var __rest$z = function(s, e3) {
40547
+ var __rest$A = function(s, e3) {
38983
40548
  var t2 = {};
38984
40549
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
38985
40550
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -38994,7 +40559,7 @@ const Meta = (props) => {
38994
40559
  avatar,
38995
40560
  title,
38996
40561
  description
38997
- } = props, others = __rest$z(props, ["prefixCls", "className", "avatar", "title", "description"]);
40562
+ } = props, others = __rest$A(props, ["prefixCls", "className", "avatar", "title", "description"]);
38998
40563
  const {
38999
40564
  getPrefixCls
39000
40565
  } = React.useContext(ConfigContext);
@@ -39722,7 +41287,7 @@ const useStyle$e = genStyleHooks("Checkbox", (token2, {
39722
41287
  prefixCls
39723
41288
  }) => [getStyle$1(prefixCls, token2)]);
39724
41289
  const GroupContext = /* @__PURE__ */ React__default.createContext(null);
39725
- var __rest$y = function(s, e3) {
41290
+ var __rest$z = function(s, e3) {
39726
41291
  var t2 = {};
39727
41292
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39728
41293
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39743,7 +41308,7 @@ const InternalCheckbox = (props, ref) => {
39743
41308
  onMouseLeave,
39744
41309
  skipGroup = false,
39745
41310
  disabled: disabled2
39746
- } = props, restProps = __rest$y(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
41311
+ } = props, restProps = __rest$z(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
39747
41312
  const {
39748
41313
  getPrefixCls,
39749
41314
  direction,
@@ -39834,7 +41399,7 @@ const Checkbox$2 = /* @__PURE__ */ React.forwardRef(InternalCheckbox);
39834
41399
  if (process.env.NODE_ENV !== "production") {
39835
41400
  Checkbox$2.displayName = "Checkbox";
39836
41401
  }
39837
- var __rest$x = function(s, e3) {
41402
+ var __rest$y = function(s, e3) {
39838
41403
  var t2 = {};
39839
41404
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39840
41405
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39852,7 +41417,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
39852
41417
  rootClassName,
39853
41418
  style: style2,
39854
41419
  onChange
39855
- } = props, restProps = __rest$x(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
41420
+ } = props, restProps = __rest$y(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
39856
41421
  const {
39857
41422
  getPrefixCls,
39858
41423
  direction
@@ -39942,7 +41507,7 @@ if (process.env.NODE_ENV !== "production") {
39942
41507
  Checkbox$1.displayName = "Checkbox";
39943
41508
  }
39944
41509
  const RowContext = /* @__PURE__ */ createContext$1({});
39945
- var __rest$w = function(s, e3) {
41510
+ var __rest$x = function(s, e3) {
39946
41511
  var t2 = {};
39947
41512
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
39948
41513
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -39980,7 +41545,7 @@ const Col = /* @__PURE__ */ React.forwardRef((props, ref) => {
39980
41545
  children: children2,
39981
41546
  flex,
39982
41547
  style: style2
39983
- } = props, others = __rest$w(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
41548
+ } = props, others = __rest$x(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
39984
41549
  const prefixCls = getPrefixCls("col", customizePrefixCls);
39985
41550
  const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
39986
41551
  const sizeStyle = {};
@@ -40061,7 +41626,7 @@ function useGutter(gutter, screens) {
40061
41626
  });
40062
41627
  return results;
40063
41628
  }
40064
- var __rest$v = function(s, e3) {
41629
+ var __rest$w = function(s, e3) {
40065
41630
  var t2 = {};
40066
41631
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
40067
41632
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -40105,7 +41670,7 @@ const Row$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
40105
41670
  children: children2,
40106
41671
  gutter = 0,
40107
41672
  wrap: wrap2
40108
- } = props, others = __rest$v(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
41673
+ } = props, others = __rest$w(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
40109
41674
  const {
40110
41675
  getPrefixCls,
40111
41676
  direction
@@ -40659,7 +42224,7 @@ const useStyle$d = genStyleHooks("Segmented", (token2) => {
40659
42224
  });
40660
42225
  return genSegmentedStyle(segmentedToken);
40661
42226
  }, prepareComponentToken$b);
40662
- var __rest$u = function(s, e3) {
42227
+ var __rest$v = function(s, e3) {
40663
42228
  var t2 = {};
40664
42229
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
40665
42230
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -40683,7 +42248,7 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
40683
42248
  vertical,
40684
42249
  shape = "default",
40685
42250
  name: name2 = defaultName
40686
- } = props, restProps = __rest$u(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
42251
+ } = props, restProps = __rest$v(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
40687
42252
  const {
40688
42253
  getPrefixCls,
40689
42254
  direction,
@@ -40698,7 +42263,7 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
40698
42263
  const {
40699
42264
  icon,
40700
42265
  label
40701
- } = option, restOption = __rest$u(option, ["icon", "label"]);
42266
+ } = option, restOption = __rest$v(option, ["icon", "label"]);
40702
42267
  return Object.assign(Object.assign({}, restOption), {
40703
42268
  label: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
40704
42269
  className: `${prefixCls}-item-icon`
@@ -41118,7 +42683,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
41118
42683
  function hasPrefixSuffix(props) {
41119
42684
  return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
41120
42685
  }
41121
- var __rest$t = function(s, e3) {
42686
+ var __rest$u = function(s, e3) {
41122
42687
  var t2 = {};
41123
42688
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41124
42689
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41146,7 +42711,7 @@ const Input$3 = /* @__PURE__ */ forwardRef((props, ref) => {
41146
42711
  onChange,
41147
42712
  classNames: classNames$1,
41148
42713
  variant: customVariant
41149
- } = props, rest = __rest$t(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
42714
+ } = props, rest = __rest$u(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
41150
42715
  if (process.env.NODE_ENV !== "production") {
41151
42716
  const {
41152
42717
  deprecated
@@ -41453,7 +43018,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
41453
43018
  return [filledClassNames, filledStyles];
41454
43019
  }, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
41455
43020
  };
41456
- var __rest$s = function(s, e3) {
43021
+ var __rest$t = function(s, e3) {
41457
43022
  var t2 = {};
41458
43023
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41459
43024
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41484,7 +43049,7 @@ const generateRangePicker = (generateConfig2) => {
41484
43049
  picker,
41485
43050
  styles,
41486
43051
  classNames: classNames$1
41487
- } = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
43052
+ } = props, restProps = __rest$t(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
41488
43053
  const pickerType = picker === TIME ? "timePicker" : "datePicker";
41489
43054
  const innerRef = React.useRef(null);
41490
43055
  const {
@@ -41589,7 +43154,7 @@ const generateRangePicker = (generateConfig2) => {
41589
43154
  }
41590
43155
  return RangePicker2;
41591
43156
  };
41592
- var __rest$r = function(s, e3) {
43157
+ var __rest$s = function(s, e3) {
41593
43158
  var t2 = {};
41594
43159
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
41595
43160
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -41622,7 +43187,7 @@ const generatePicker$1 = (generateConfig2) => {
41622
43187
  onCalendarChange,
41623
43188
  styles,
41624
43189
  classNames: classNames$1
41625
- } = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
43190
+ } = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
41626
43191
  const {
41627
43192
  getPrefixCls,
41628
43193
  direction,
@@ -41779,8 +43344,8 @@ const generatePicker = (generateConfig2) => {
41779
43344
  return MergedDatePicker;
41780
43345
  };
41781
43346
  const DatePicker$1 = generatePicker(generateConfig);
41782
- const PurePanel$2 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
41783
- DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
43347
+ const PurePanel$4 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
43348
+ DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
41784
43349
  const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
41785
43350
  DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
41786
43351
  DatePicker$1.generatePicker = generatePicker;
@@ -42403,7 +43968,7 @@ const useStyle$c = genStyleHooks("Drawer", (token2) => {
42403
43968
  const drawerToken = merge$1(token2, {});
42404
43969
  return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
42405
43970
  }, prepareComponentToken$a);
42406
- var __rest$q = function(s, e3) {
43971
+ var __rest$r = function(s, e3) {
42407
43972
  var t2 = {};
42408
43973
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
42409
43974
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -42439,7 +44004,7 @@ const Drawer2 = (props) => {
42439
44004
  contentWrapperStyle,
42440
44005
  destroyOnClose,
42441
44006
  destroyOnHidden
42442
- } = props, rest = __rest$q(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
44007
+ } = props, rest = __rest$r(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
42443
44008
  const {
42444
44009
  getPopupContainer,
42445
44010
  getPrefixCls,
@@ -42532,13 +44097,13 @@ const Drawer2 = (props) => {
42532
44097
  onClose
42533
44098
  }))))));
42534
44099
  };
42535
- const PurePanel$1 = (props) => {
44100
+ const PurePanel$3 = (props) => {
42536
44101
  const {
42537
44102
  prefixCls: customizePrefixCls,
42538
44103
  style: style2,
42539
44104
  className,
42540
44105
  placement = "right"
42541
- } = props, restProps = __rest$q(props, ["prefixCls", "style", "className", "placement"]);
44106
+ } = props, restProps = __rest$r(props, ["prefixCls", "style", "className", "placement"]);
42542
44107
  const {
42543
44108
  getPrefixCls
42544
44109
  } = React.useContext(ConfigContext);
@@ -42552,7 +44117,7 @@ const PurePanel$1 = (props) => {
42552
44117
  prefixCls
42553
44118
  }, restProps))));
42554
44119
  };
42555
- Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
44120
+ Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$3;
42556
44121
  if (process.env.NODE_ENV !== "production") {
42557
44122
  Drawer2.displayName = "Drawer";
42558
44123
  }
@@ -42589,7 +44154,7 @@ const Item = ({
42589
44154
  className: `${className}-split`
42590
44155
  }, split));
42591
44156
  };
42592
- var __rest$p = function(s, e3) {
44157
+ var __rest$q = function(s, e3) {
42593
44158
  var t2 = {};
42594
44159
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
42595
44160
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -42621,7 +44186,7 @@ const InternalSpace = /* @__PURE__ */ React.forwardRef((props, ref) => {
42621
44186
  wrap: wrap2 = false,
42622
44187
  classNames: customClassNames,
42623
44188
  styles
42624
- } = props, otherProps = __rest$p(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
44189
+ } = props, otherProps = __rest$q(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
42625
44190
  const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
42626
44191
  const isPresetVerticalSize = isPresetSize(verticalSize);
42627
44192
  const isPresetHorizontalSize = isPresetSize(horizontalSize);
@@ -42632,7 +44197,7 @@ const InternalSpace = /* @__PURE__ */ React.forwardRef((props, ref) => {
42632
44197
  });
42633
44198
  const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
42634
44199
  const prefixCls = getPrefixCls("space", customizePrefixCls);
42635
- const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
44200
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$v(prefixCls);
42636
44201
  const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
42637
44202
  [`${prefixCls}-rtl`]: directionConfig === "rtl",
42638
44203
  [`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
@@ -42684,7 +44249,7 @@ Space.Compact = Compact$1;
42684
44249
  if (process.env.NODE_ENV !== "production") {
42685
44250
  Space.displayName = "Space";
42686
44251
  }
42687
- var __rest$o = function(s, e3) {
44252
+ var __rest$p = function(s, e3) {
42688
44253
  var t2 = {};
42689
44254
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
42690
44255
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -42730,7 +44295,7 @@ const DropdownButton = (props) => {
42730
44295
  destroyPopupOnHide,
42731
44296
  dropdownRender,
42732
44297
  popupRender
42733
- } = props, restProps = __rest$o(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]);
44298
+ } = props, restProps = __rest$p(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]);
42734
44299
  const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
42735
44300
  const buttonPrefixCls = `${prefixCls}-button`;
42736
44301
  const mergedPopupRender = popupRender || dropdownRender;
@@ -43423,7 +44988,7 @@ function useFormWarning({
43423
44988
  }
43424
44989
  }, [name2]);
43425
44990
  }
43426
- var __rest$n = function(s, e3) {
44991
+ var __rest$o = function(s, e3) {
43427
44992
  var t2 = {};
43428
44993
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
43429
44994
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -43463,7 +45028,7 @@ const InternalForm = (props, ref) => {
43463
45028
  style: style2,
43464
45029
  feedbackIcons,
43465
45030
  variant
43466
- } = props, restFormProps = __rest$n(props, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]);
45031
+ } = props, restFormProps = __rest$o(props, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]);
43467
45032
  const mergedSize = useSize(size);
43468
45033
  const contextValidateMessages = React.useContext(ValidateMessagesContext);
43469
45034
  if (process.env.NODE_ENV !== "production") {
@@ -43662,7 +45227,7 @@ const FallbackCmp = genSubStyleComponent(["Form", "item-item"], (token2, {
43662
45227
  const formToken = prepareToken$1(token2, rootPrefixCls);
43663
45228
  return genFallbackStyle(formToken);
43664
45229
  });
43665
- var __rest$m = function(s, e3) {
45230
+ var __rest$n = function(s, e3) {
43666
45231
  var t2 = {};
43667
45232
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
43668
45233
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -43712,7 +45277,7 @@ const FormItemInput = (props) => {
43712
45277
  const {
43713
45278
  labelCol: labelCol2,
43714
45279
  wrapperCol: wrapperCol2
43715
- } = formContext, rest = __rest$m(formContext, ["labelCol", "wrapperCol"]);
45280
+ } = formContext, rest = __rest$n(formContext, ["labelCol", "wrapperCol"]);
43716
45281
  return rest;
43717
45282
  }, [formContext]);
43718
45283
  const extraRef = React.useRef(null);
@@ -43782,7 +45347,7 @@ var RefIcon$o = /* @__PURE__ */ React.forwardRef(QuestionCircleOutlined);
43782
45347
  if (process.env.NODE_ENV !== "production") {
43783
45348
  RefIcon$o.displayName = "QuestionCircleOutlined";
43784
45349
  }
43785
- var __rest$l = function(s, e3) {
45350
+ var __rest$m = function(s, e3) {
43786
45351
  var t2 = {};
43787
45352
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
43788
45353
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -43829,7 +45394,7 @@ const FormItemLabel = ({
43829
45394
  if (tooltipProps) {
43830
45395
  const {
43831
45396
  icon = /* @__PURE__ */ React.createElement(RefIcon$o, null)
43832
- } = tooltipProps, restTooltipProps = __rest$l(tooltipProps, ["icon"]);
45397
+ } = tooltipProps, restTooltipProps = __rest$m(tooltipProps, ["icon"]);
43833
45398
  const tooltipNode = /* @__PURE__ */ React.createElement(Tooltip$2, Object.assign({}, restTooltipProps), /* @__PURE__ */ React.cloneElement(icon, {
43834
45399
  className: `${prefixCls}-item-tooltip`,
43835
45400
  title: "",
@@ -43938,7 +45503,7 @@ function StatusProvider({
43938
45503
  value: formItemStatusContext
43939
45504
  }, children2);
43940
45505
  }
43941
- var __rest$k = function(s, e3) {
45506
+ var __rest$l = function(s, e3) {
43942
45507
  var t2 = {};
43943
45508
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
43944
45509
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -43966,7 +45531,7 @@ function ItemHolder(props) {
43966
45531
  onSubItemMetaChange,
43967
45532
  layout: propsLayout,
43968
45533
  name: name2
43969
- } = props, restProps = __rest$k(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]);
45534
+ } = props, restProps = __rest$l(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]);
43970
45535
  const itemPrefixCls = `${prefixCls}-item`;
43971
45536
  const {
43972
45537
  requiredMark,
@@ -44308,7 +45873,7 @@ function InternalFormItem(props) {
44308
45873
  }
44309
45874
  const FormItem$1 = InternalFormItem;
44310
45875
  FormItem$1.useStatus = useFormItemStatus;
44311
- var __rest$j = function(s, e3) {
45876
+ var __rest$k = function(s, e3) {
44312
45877
  var t2 = {};
44313
45878
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
44314
45879
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -44320,7 +45885,7 @@ const FormList = (_a) => {
44320
45885
  var {
44321
45886
  prefixCls: customizePrefixCls,
44322
45887
  children: children2
44323
- } = _a, props = __rest$j(_a, ["prefixCls", "children"]);
45888
+ } = _a, props = __rest$k(_a, ["prefixCls", "children"]);
44324
45889
  if (process.env.NODE_ENV !== "production") {
44325
45890
  const warning3 = devUseWarning("Form.List");
44326
45891
  process.env.NODE_ENV !== "production" ? warning3(typeof props.name === "number" || (Array.isArray(props.name) ? !!props.name.length : !!props.name), "usage", "Miss `name` prop.") : void 0;
@@ -44476,7 +46041,7 @@ const useStyle$a = genStyleHooks(["Input", "OTP"], (token2) => {
44476
46041
  const inputToken = merge$1(token2, initInputToken(token2));
44477
46042
  return genOTPStyle(inputToken);
44478
46043
  }, initComponentToken$1);
44479
- var __rest$i = function(s, e3) {
46044
+ var __rest$j = function(s, e3) {
44480
46045
  var t2 = {};
44481
46046
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
44482
46047
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -44492,7 +46057,7 @@ const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
44492
46057
  onActiveChange,
44493
46058
  index: index2,
44494
46059
  mask
44495
- } = props, restProps = __rest$i(props, ["className", "value", "onChange", "onActiveChange", "index", "mask"]);
46060
+ } = props, restProps = __rest$j(props, ["className", "value", "onChange", "onActiveChange", "index", "mask"]);
44496
46061
  const {
44497
46062
  getPrefixCls
44498
46063
  } = React.useContext(ConfigContext);
@@ -44556,7 +46121,7 @@ const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
44556
46121
  })
44557
46122
  })));
44558
46123
  });
44559
- var __rest$h = function(s, e3) {
46124
+ var __rest$i = function(s, e3) {
44560
46125
  var t2 = {};
44561
46126
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
44562
46127
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -44599,7 +46164,7 @@ const OTP = /* @__PURE__ */ React.forwardRef((props, ref) => {
44599
46164
  type: type4,
44600
46165
  onInput,
44601
46166
  inputMode
44602
- } = props, restProps = __rest$h(props, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "separator", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
46167
+ } = props, restProps = __rest$i(props, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "separator", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
44603
46168
  if (process.env.NODE_ENV !== "production") {
44604
46169
  const warning3 = devUseWarning("Input.OTP");
44605
46170
  process.env.NODE_ENV !== "production" ? warning3(!(typeof mask === "string" && mask.length > 1), "usage", "`mask` prop should be a single character.") : void 0;
@@ -44750,7 +46315,7 @@ var RefIcon$m = /* @__PURE__ */ React.forwardRef(EyeInvisibleOutlined);
44750
46315
  if (process.env.NODE_ENV !== "production") {
44751
46316
  RefIcon$m.displayName = "EyeInvisibleOutlined";
44752
46317
  }
44753
- var __rest$g = function(s, e3) {
46318
+ var __rest$h = function(s, e3) {
44754
46319
  var t2 = {};
44755
46320
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
44756
46321
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -44817,7 +46382,7 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
44817
46382
  prefixCls: customizePrefixCls,
44818
46383
  inputPrefixCls: customizeInputPrefixCls,
44819
46384
  size
44820
- } = props, restProps = __rest$g(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
46385
+ } = props, restProps = __rest$h(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
44821
46386
  const {
44822
46387
  getPrefixCls
44823
46388
  } = React.useContext(ConfigContext);
@@ -44843,7 +46408,7 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
44843
46408
  if (process.env.NODE_ENV !== "production") {
44844
46409
  Password.displayName = "Input.Password";
44845
46410
  }
44846
- var __rest$f = function(s, e3) {
46411
+ var __rest$g = function(s, e3) {
44847
46412
  var t2 = {};
44848
46413
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
44849
46414
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -44868,7 +46433,7 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
44868
46433
  onCompositionEnd,
44869
46434
  variant,
44870
46435
  onPressEnter: customOnPressEnter
44871
- } = props, restProps = __rest$f(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
46436
+ } = props, restProps = __rest$g(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
44872
46437
  const {
44873
46438
  getPrefixCls,
44874
46439
  direction
@@ -45425,7 +46990,7 @@ const useStyle$9 = genStyleHooks(["Input", "TextArea"], (token2) => {
45425
46990
  }, initComponentToken$1, {
45426
46991
  resetFont: false
45427
46992
  });
45428
- var __rest$e = function(s, e3) {
46993
+ var __rest$f = function(s, e3) {
45429
46994
  var t2 = {};
45430
46995
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
45431
46996
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -45451,7 +47016,7 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
45451
47016
  showCount,
45452
47017
  onMouseDown,
45453
47018
  onResize: onResize2
45454
- } = props, rest = __rest$e(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
47019
+ } = props, rest = __rest$f(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
45455
47020
  if (process.env.NODE_ENV !== "production") {
45456
47021
  const {
45457
47022
  deprecated
@@ -46728,7 +48293,7 @@ function useShowSizeChanger(showSizeChanger) {
46728
48293
  return [void 0, void 0];
46729
48294
  }, [showSizeChanger]);
46730
48295
  }
46731
- var __rest$d = function(s, e3) {
48296
+ var __rest$e = function(s, e3) {
46732
48297
  var t2 = {};
46733
48298
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
46734
48299
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -46750,7 +48315,7 @@ const Pagination2 = (props) => {
46750
48315
  showSizeChanger,
46751
48316
  selectComponentClass,
46752
48317
  pageSizeOptions
46753
- } = props, restProps = __rest$d(props, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "responsive", "showSizeChanger", "selectComponentClass", "pageSizeOptions"]);
48318
+ } = props, restProps = __rest$e(props, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "responsive", "showSizeChanger", "selectComponentClass", "pageSizeOptions"]);
46754
48319
  const {
46755
48320
  xs
46756
48321
  } = useBreakpoint$1(responsive);
@@ -47284,7 +48849,7 @@ function usePercent(spinning, percent) {
47284
48849
  }, [isAuto, spinning]);
47285
48850
  return isAuto ? mockPercent : percent;
47286
48851
  }
47287
- var __rest$c = function(s, e3) {
48852
+ var __rest$d = function(s, e3) {
47288
48853
  var t2 = {};
47289
48854
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
47290
48855
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -47312,7 +48877,7 @@ const Spin = (props) => {
47312
48877
  fullscreen = false,
47313
48878
  indicator,
47314
48879
  percent
47315
- } = props, restProps = __rest$c(props, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen", "indicator", "percent"]);
48880
+ } = props, restProps = __rest$d(props, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen", "indicator", "percent"]);
47316
48881
  const {
47317
48882
  getPrefixCls,
47318
48883
  direction,
@@ -47397,6 +48962,95 @@ const toList$1 = (candidate, skipEmpty = false) => {
47397
48962
  }
47398
48963
  return Array.isArray(candidate) ? candidate : [candidate];
47399
48964
  };
48965
+ var __rest$c = function(s, e3) {
48966
+ var t2 = {};
48967
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
48968
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
48969
+ if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
48970
+ }
48971
+ return t2;
48972
+ };
48973
+ const PurePanel$1 = (props) => {
48974
+ const {
48975
+ prefixCls: customizePrefixCls,
48976
+ className,
48977
+ closeIcon,
48978
+ closable,
48979
+ type: type4,
48980
+ title,
48981
+ children: children2,
48982
+ footer: footer2
48983
+ } = props, restProps = __rest$c(props, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]);
48984
+ const {
48985
+ getPrefixCls
48986
+ } = React.useContext(ConfigContext);
48987
+ const rootPrefixCls = getPrefixCls();
48988
+ const prefixCls = customizePrefixCls || getPrefixCls("modal");
48989
+ const rootCls = useCSSVarCls(rootPrefixCls);
48990
+ const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls, rootCls);
48991
+ const confirmPrefixCls = `${prefixCls}-confirm`;
48992
+ let additionalProps = {};
48993
+ if (type4) {
48994
+ additionalProps = {
48995
+ closable: closable !== null && closable !== void 0 ? closable : false,
48996
+ title: "",
48997
+ footer: "",
48998
+ children: /* @__PURE__ */ React.createElement(ConfirmContent, Object.assign({}, props, {
48999
+ prefixCls,
49000
+ confirmPrefixCls,
49001
+ rootPrefixCls,
49002
+ content: children2
49003
+ }))
49004
+ };
49005
+ } else {
49006
+ additionalProps = {
49007
+ closable: closable !== null && closable !== void 0 ? closable : true,
49008
+ title,
49009
+ footer: footer2 !== null && /* @__PURE__ */ React.createElement(Footer$3, Object.assign({}, props)),
49010
+ children: children2
49011
+ };
49012
+ }
49013
+ return wrapCSSVar(/* @__PURE__ */ React.createElement(Panel$1, Object.assign({
49014
+ prefixCls,
49015
+ className: classNames(hashId, `${prefixCls}-pure-panel`, type4 && confirmPrefixCls, type4 && `${confirmPrefixCls}-${type4}`, className, cssVarCls, rootCls)
49016
+ }, restProps, {
49017
+ closeIcon: renderCloseIcon(prefixCls, closeIcon),
49018
+ closable
49019
+ }, additionalProps)));
49020
+ };
49021
+ const PurePanel$2 = withPureRenderTheme(PurePanel$1);
49022
+ function modalWarn(props) {
49023
+ return confirm(withWarn(props));
49024
+ }
49025
+ const Modal$1 = Modal$2;
49026
+ Modal$1.useModal = useModal;
49027
+ Modal$1.info = function infoFn(props) {
49028
+ return confirm(withInfo(props));
49029
+ };
49030
+ Modal$1.success = function successFn(props) {
49031
+ return confirm(withSuccess(props));
49032
+ };
49033
+ Modal$1.error = function errorFn(props) {
49034
+ return confirm(withError(props));
49035
+ };
49036
+ Modal$1.warning = modalWarn;
49037
+ Modal$1.warn = modalWarn;
49038
+ Modal$1.confirm = function confirmFn(props) {
49039
+ return confirm(withConfirm(props));
49040
+ };
49041
+ Modal$1.destroyAll = function destroyAllFn() {
49042
+ while (destroyFns.length) {
49043
+ const close = destroyFns.pop();
49044
+ if (close) {
49045
+ close();
49046
+ }
49047
+ }
49048
+ };
49049
+ Modal$1.config = modalGlobalConfig;
49050
+ Modal$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
49051
+ if (process.env.NODE_ENV !== "production") {
49052
+ Modal$1.displayName = "Modal";
49053
+ }
47400
49054
  const genBaseStyle$3 = (token2) => {
47401
49055
  const {
47402
49056
  componentCls,
@@ -47533,7 +49187,7 @@ const PurePanel = (props) => {
47533
49187
  } = React.useContext(ConfigContext);
47534
49188
  const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
47535
49189
  const [wrapCSSVar] = useStyle$6(prefixCls);
47536
- return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$4, {
49190
+ return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$6, {
47537
49191
  placement,
47538
49192
  className: classNames(prefixCls, className),
47539
49193
  style: style2,
@@ -51666,11 +53320,11 @@ function Panel(_ref) {
51666
53320
  }
51667
53321
  function getOffset(node2) {
51668
53322
  var element2 = getDOM(node2);
51669
- var box = element2.getBoundingClientRect();
53323
+ var box2 = element2.getBoundingClientRect();
51670
53324
  var docElem = document.documentElement;
51671
53325
  return {
51672
- left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
51673
- top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
53326
+ left: box2.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
53327
+ top: box2.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
51674
53328
  };
51675
53329
  }
51676
53330
  var StickyScrollBar = function StickyScrollBar2(_ref, ref) {
@@ -56160,13 +57814,13 @@ const FilterDropdown = (props) => {
56160
57814
  internalTriggerFilter(getFilteredKeysSync());
56161
57815
  };
56162
57816
  const onReset = ({
56163
- confirm,
57817
+ confirm: confirm2,
56164
57818
  closeDropdown
56165
57819
  } = {
56166
57820
  confirm: false,
56167
57821
  closeDropdown: false
56168
57822
  }) => {
56169
- if (confirm) {
57823
+ if (confirm2) {
56170
57824
  internalTriggerFilter([]);
56171
57825
  }
56172
57826
  if (closeDropdown) {
@@ -80475,6 +82129,156 @@ const Message = ({
80475
82129
  ) : null
80476
82130
  ] });
80477
82131
  };
82132
+ const getGenesisModalClass = ({ borderRadius: borderRadius2, shadows: shadows2 }) => `
82133
+ .ant-modal-content {
82134
+ padding: 0 !important;
82135
+ border-radius: ${borderRadius2.BorderRadiusMd}px !important;
82136
+ box-shadow: ${shadows2.general["2"]} !important;
82137
+ overflow: hidden;
82138
+ }
82139
+
82140
+ .ant-modal-body {
82141
+ display: flex;
82142
+ flex-direction: column;
82143
+ max-height: 80vh;
82144
+ }
82145
+
82146
+ .ant-modal-footer {
82147
+ margin: 0 !important;
82148
+ padding: 0 !important;
82149
+ }
82150
+ `;
82151
+ const StyledModal = styled(Modal$1).attrs({
82152
+ destroyOnHidden: true,
82153
+ closable: false,
82154
+ footer: null
82155
+ })`
82156
+ ${({ theme }) => {
82157
+ if (!theme) return "";
82158
+ return getGenesisModalClass(theme);
82159
+ }}
82160
+ `;
82161
+ const ScrollableContent$1 = styled.div`
82162
+ overflow-y: auto;
82163
+ flex: 1;
82164
+ display: flex;
82165
+ flex-direction: column;
82166
+
82167
+ scrollbar-width: thin;
82168
+ scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
82169
+
82170
+ &::-webkit-scrollbar {
82171
+ width: 4px;
82172
+ }
82173
+
82174
+ &::-webkit-scrollbar-track {
82175
+ background: transparent;
82176
+ }
82177
+
82178
+ &::-webkit-scrollbar-thumb {
82179
+ background: rgba(0, 0, 0, 0.15);
82180
+ border-radius: 4px;
82181
+ }
82182
+
82183
+ &::-webkit-scrollbar-thumb:hover {
82184
+ background: rgba(0, 0, 0, 0.3);
82185
+ }
82186
+ `;
82187
+ const MODAL_WIDTHS = {
82188
+ sm: 400,
82189
+ md: 492,
82190
+ lg: 720
82191
+ };
82192
+ const Modal = ({
82193
+ open,
82194
+ size = "md",
82195
+ closable = true,
82196
+ children: children2,
82197
+ header,
82198
+ footer: footer2
82199
+ }) => {
82200
+ const theme = useTheme$1();
82201
+ const { title, description, onClose } = header;
82202
+ const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
82203
+ const spacing = {
82204
+ Size3: theme?.sizing?.Size3 || 12,
82205
+ Size4: theme?.sizing?.Size4 || 16,
82206
+ Size6: theme?.sizing?.Size6 || 24
82207
+ };
82208
+ const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
82209
+ const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
82210
+ const ModalHeader = () => /* @__PURE__ */ jsx(
82211
+ Tile,
82212
+ {
82213
+ isHorizontal: true,
82214
+ style: {
82215
+ alignItems: "center",
82216
+ justifyContent: "space-between",
82217
+ padding: `${spacing.Size6}px`,
82218
+ borderBottom: `1px solid ${borderColor}`
82219
+ },
82220
+ children: /* @__PURE__ */ jsxs(
82221
+ Tile,
82222
+ {
82223
+ isHorizontal: true,
82224
+ style: {
82225
+ alignItems: "flexStart",
82226
+ gap: `${spacing.Size4}px`,
82227
+ flex: 1
82228
+ },
82229
+ children: [
82230
+ /* @__PURE__ */ jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1 }, children: [
82231
+ /* @__PURE__ */ jsx(
82232
+ Tile,
82233
+ {
82234
+ isHorizontal: true,
82235
+ style: {
82236
+ gap: `${spacing.Size3}px`,
82237
+ alignItems: "center",
82238
+ height: "40px"
82239
+ },
82240
+ children: /* @__PURE__ */ jsx(Typography, { fontSize: "24px", fontWeight: 400, color: textColor, children: title })
82241
+ }
82242
+ ),
82243
+ description && /* @__PURE__ */ jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description })
82244
+ ] }),
82245
+ /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiX, {}), onClick: onClose })
82246
+ ]
82247
+ }
82248
+ )
82249
+ }
82250
+ );
82251
+ const ModalFooter = () => {
82252
+ const visibleActions = footerActions.slice(0, 2);
82253
+ return showFooter && visibleActions.length > 0 ? /* @__PURE__ */ jsx(
82254
+ Tile,
82255
+ {
82256
+ isHorizontal: true,
82257
+ style: {
82258
+ padding: `${spacing.Size6}px`,
82259
+ gap: `${spacing.Size4}px`,
82260
+ // borderTop: `1px solid ${borderColor}`,
82261
+ justifyContent: "flex-end"
82262
+ },
82263
+ children: visibleActions.map((action, index2) => /* @__PURE__ */ jsx(Button$1, { ...action.btnProps, onClick: action.onClick, children: action.label }, index2))
82264
+ }
82265
+ ) : null;
82266
+ };
82267
+ return /* @__PURE__ */ jsxs(
82268
+ StyledModal,
82269
+ {
82270
+ open,
82271
+ width: MODAL_WIDTHS[size],
82272
+ maskClosable: closable,
82273
+ onCancel: onClose,
82274
+ children: [
82275
+ /* @__PURE__ */ jsx(ModalHeader, {}),
82276
+ /* @__PURE__ */ jsx(ScrollableContent$1, { children: children2 }),
82277
+ /* @__PURE__ */ jsx(ModalFooter, {})
82278
+ ]
82279
+ }
82280
+ );
82281
+ };
80478
82282
  styled.nav`
80479
82283
  display: flex;
80480
82284
  align-items: center;
@@ -85539,6 +87343,7 @@ const Select = ({
85539
87343
  const [isFocused, setIsFocused] = React__default.useState(false);
85540
87344
  const [dropdownAnimation, setDropdownAnimation] = React__default.useState("entered");
85541
87345
  const selectReference = React__default.useRef(null);
87346
+ const [dropdownRect, setDropdownRect] = React__default.useState(null);
85542
87347
  const { theme } = useGenesis();
85543
87348
  React__default.useEffect(() => {
85544
87349
  const handleClickOutside = (event2) => {
@@ -85567,6 +87372,9 @@ const Select = ({
85567
87372
  if (isOpen) {
85568
87373
  handleClose();
85569
87374
  } else {
87375
+ if (selectReference.current) {
87376
+ setDropdownRect(selectReference.current.getBoundingClientRect());
87377
+ }
85570
87378
  setIsOpen(true);
85571
87379
  setDropdownAnimation("entering");
85572
87380
  setTimeout(() => {
@@ -85601,18 +87409,18 @@ const Select = ({
85601
87409
  return value22;
85602
87410
  };
85603
87411
  const modeValue = getSelectModeValue(value2);
85604
- return /* @__PURE__ */ jsx("div", { style: { position: "relative", width }, children: /* @__PURE__ */ jsxs(
85605
- SelectWrapper,
85606
- {
85607
- ref: selectReference,
85608
- $isFocused: isFocused,
85609
- type: type4,
85610
- disabled: disabled2,
85611
- onFocus: () => !disabled2 && setIsFocused(true),
85612
- onBlur: () => !isOpen && setIsFocused(false),
85613
- tabIndex: disabled2 ? -1 : 0,
85614
- children: [
85615
- /* @__PURE__ */ jsx(
87412
+ return /* @__PURE__ */ jsxs("div", { style: { position: "relative", width }, children: [
87413
+ /* @__PURE__ */ jsx(
87414
+ SelectWrapper,
87415
+ {
87416
+ ref: selectReference,
87417
+ $isFocused: isFocused,
87418
+ type: type4,
87419
+ disabled: disabled2,
87420
+ onFocus: () => !disabled2 && setIsFocused(true),
87421
+ onBlur: () => !isOpen && setIsFocused(false),
87422
+ tabIndex: disabled2 ? -1 : 0,
87423
+ children: /* @__PURE__ */ jsx(
85616
87424
  SelectTrigger2,
85617
87425
  {
85618
87426
  theme,
@@ -85626,46 +87434,49 @@ const Select = ({
85626
87434
  disabled: disabled2,
85627
87435
  variant
85628
87436
  }
85629
- ),
85630
- isOpen && !disabled2 && /* @__PURE__ */ jsx(
85631
- SelectDropdown,
85632
- {
85633
- type: type4,
85634
- state,
85635
- className: dropdownAnimation,
85636
- style: {
85637
- position: "absolute",
85638
- top: "calc(100% + 4px)",
85639
- left: 0,
85640
- right: 0,
85641
- zIndex: 1e3,
85642
- backgroundColor: "white",
85643
- boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
85644
- border: "1px solid #d9d9d9",
85645
- transformOrigin: "top"
85646
- },
85647
- children: options.map((option) => {
85648
- const isSelected = Array.isArray(value2) ? value2.map(String).includes(option.value) : String(value2) === option.value;
85649
- return /* @__PURE__ */ jsxs(
85650
- MenuItem,
85651
- {
85652
- onClick: () => handleOptionSelect(option.value),
85653
- $isSelected: isSelected,
85654
- type: type4,
85655
- disabled: disabled2,
85656
- children: [
85657
- option.label,
85658
- isSelected && /* @__PURE__ */ jsx("span", { style: { marginLeft: "8px" }, children: "✓" })
85659
- ]
85660
- },
85661
- option.value
85662
- );
85663
- })
85664
- }
85665
87437
  )
85666
- ]
85667
- }
85668
- ) });
87438
+ }
87439
+ ),
87440
+ isOpen && !disabled2 && dropdownRect && ReactDOM__default.createPortal(
87441
+ /* @__PURE__ */ jsx(
87442
+ SelectDropdown,
87443
+ {
87444
+ type: type4,
87445
+ state,
87446
+ className: dropdownAnimation,
87447
+ style: {
87448
+ position: "fixed",
87449
+ top: dropdownRect.bottom + 4,
87450
+ left: dropdownRect.left,
87451
+ width: dropdownRect.width,
87452
+ zIndex: 1050,
87453
+ backgroundColor: "white",
87454
+ boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
87455
+ border: "1px solid #d9d9d9",
87456
+ transformOrigin: "top"
87457
+ },
87458
+ children: options.map((option) => {
87459
+ const isSelected = Array.isArray(value2) ? value2.map(String).includes(option.value) : String(value2) === option.value;
87460
+ return /* @__PURE__ */ jsxs(
87461
+ MenuItem,
87462
+ {
87463
+ onClick: () => handleOptionSelect(option.value),
87464
+ $isSelected: isSelected,
87465
+ type: type4,
87466
+ disabled: disabled2,
87467
+ children: [
87468
+ option.label,
87469
+ isSelected && /* @__PURE__ */ jsx("span", { style: { marginLeft: "8px" }, children: "✓" })
87470
+ ]
87471
+ },
87472
+ option.value
87473
+ );
87474
+ })
87475
+ }
87476
+ ),
87477
+ document.body
87478
+ )
87479
+ ] });
85669
87480
  };
85670
87481
  const Circle2 = ({ fill = "#CF3237", dataTestId }) => /* @__PURE__ */ jsx(
85671
87482
  "svg",
@@ -89201,6 +91012,10 @@ const Content = styled(Tile)`
89201
91012
  flex: 1;
89202
91013
  min-width: 0;
89203
91014
  padding: ${({ theme }) => theme.sizing.Size3}px 0;
91015
+
91016
+ .ant-skeleton-paragraph {
91017
+ margin: 0px !important;
91018
+ }
89204
91019
  `;
89205
91020
  const ActionNote = styled(Tile)`
89206
91021
  padding: 0;
@@ -89444,6 +91259,7 @@ export {
89444
91259
  Layout,
89445
91260
  LineChart,
89446
91261
  Message,
91262
+ Modal,
89447
91263
  NavBar,
89448
91264
  Notification,
89449
91265
  OverflowMenu,