@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0

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.
Files changed (44) hide show
  1. package/dist/Box-C1OwXVV-.js +68 -0
  2. package/dist/Button-CIvE-fcO.js +355 -0
  3. package/dist/ButtonBase-BeQnmGXr.js +966 -0
  4. package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
  5. package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
  6. package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
  7. package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
  8. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomPagination/CustomPagination.js +372 -483
  13. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  14. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  17. package/dist/components/KpiCard/KpiCard.js +4 -4
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
  19. package/dist/components/Login/Login.js +3837 -4489
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
  23. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
  28. package/dist/createSvgIcon-Db107M0j.js +250 -0
  29. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  30. package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
  31. package/dist/index-DpDv68WZ.js +19153 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  34. package/dist/types/Column.d.ts +2 -0
  35. package/package.json +28 -26
  36. package/dist/Box-DQNjUj2G.js +0 -102
  37. package/dist/Button-D2XVkO19.js +0 -676
  38. package/dist/ButtonBase-D-XlpvIZ.js +0 -954
  39. package/dist/CircularProgress-BOkP0juA.js +0 -247
  40. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  41. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
  42. package/dist/index-CyFfYou3.js +0 -411
  43. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  44. package/dist/useSlot-kDVPuVrn.js +0 -431
@@ -1,11 +1,11 @@
1
1
  import { jsx as ye, jsxs as eo } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import $t, { useRef as Ee, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as De, createContext as to } from "react";
3
+ import $t, { useRef as Pe, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as He, createContext as to } from "react";
4
4
  import { cn as oo } from "./portal-utils/cn.js";
5
- import { _ as Pe } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
6
- import { I as Ve, K as ie, H as no, U as We, ah as ro, g as ce, m as se, y as fe, u as E, a2 as io, a as ne, E as ao, v as ve, D as Be, c as _, p as lo, N as so, e as le, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as qe, o as be, an as uo, n as mo, a4 as po, A as go, z as fo, F as rt, aa as it, ad as vo, k as wt, ao as bo, B as at } from "./context-D_FWkiDE.js";
7
- import { R as ho, T as $o, c as yo, M as Co, a as xe, u as wo, S as xo, E as So, b as xt, d as Oo, s as Io, e as No, f as Eo, g as Po, D as Bo } from "./EllipsisOutlined-DfTPoz8U.js";
8
- import { P as ge, i as ze, C as St, b as zo, u as Ge, d as de, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-ByiFMw5U.js";
5
+ import { a as Be } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
6
+ import { I as Ve, K as ie, H as no, U as We, ah as ro, g as ce, m as se, y as fe, u as E, a2 as io, a as ne, E as ao, v as ve, D as ze, c as _, p as lo, N as so, e as le, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as qe, o as be, an as uo, n as mo, a4 as po, A as go, z as fo, F as rt, aa as it, ad as vo, k as wt, ao as bo, B as at } from "./context-Crxhk7DD.js";
7
+ import { R as ho, T as $o, c as yo, M as Co, a as xe, u as wo, S as xo, E as So, b as xt, d as Oo, s as Io, e as No, f as Eo, g as Po, D as Bo } from "./EllipsisOutlined-DZsCEqiL.js";
8
+ import { P as ge, i as je, C as St, b as zo, u as Ge, d as de, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-iUNZWTe_.js";
9
9
  import './assets/UserInfoDropdown.css';function Mo(e, t) {
10
10
  return ge.reduce((o, n) => {
11
11
  const r = e[`${n}1`], a = e[`${n}3`], i = e[`${n}6`], s = e[`${n}7`];
@@ -18,7 +18,7 @@ import './assets/UserInfoDropdown.css';function Mo(e, t) {
18
18
  }, {});
19
19
  }
20
20
  var Do = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Ho = function(t, o) {
21
- return /* @__PURE__ */ l.createElement(Ve, Pe({}, t, {
21
+ return /* @__PURE__ */ l.createElement(Ve, Be({}, t, {
22
22
  ref: o,
23
23
  icon: Do
24
24
  }));
@@ -234,16 +234,16 @@ function Qo() {
234
234
  return e;
235
235
  }
236
236
  function Jo() {
237
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
238
- const t = Ee({}), o = Qo(), n = Zo();
237
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
238
+ const o = Pe(t), n = Qo(), r = Zo();
239
239
  return ro(() => {
240
- const r = n.subscribe((a) => {
241
- t.current = a, e && o();
240
+ const a = r.subscribe((i) => {
241
+ o.current = i, e && n();
242
242
  });
243
- return () => n.unsubscribe(r);
244
- }, []), t.current;
243
+ return () => r.unsubscribe(a);
244
+ }, []), o.current;
245
245
  }
246
- const Ae = /* @__PURE__ */ l.createContext({}), en = (e) => {
246
+ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
247
247
  const {
248
248
  antCls: t,
249
249
  componentCls: o,
@@ -261,7 +261,7 @@ const Ae = /* @__PURE__ */ l.createContext({}), en = (e) => {
261
261
  borderRadiusSM: p,
262
262
  lineWidth: v,
263
263
  lineType: h
264
- } = e, y = (b, S, $) => ({
264
+ } = e, C = (b, S, $) => ({
265
265
  width: b,
266
266
  height: b,
267
267
  borderRadius: "50%",
@@ -294,9 +294,9 @@ const Ae = /* @__PURE__ */ l.createContext({}), en = (e) => {
294
294
  [`${t}-image-img`]: {
295
295
  display: "block"
296
296
  }
297
- }), y(i, u, m)), {
298
- "&-lg": Object.assign({}, y(s, d, g)),
299
- "&-sm": Object.assign({}, y(c, f, p)),
297
+ }), C(i, u, m)), {
298
+ "&-lg": Object.assign({}, C(s, d, g)),
299
+ "&-sm": Object.assign({}, C(c, f, p)),
300
300
  "> img": {
301
301
  display: "block",
302
302
  width: "100%",
@@ -373,7 +373,7 @@ const rn = (e, t) => {
373
373
  const [o, n] = l.useState(1), [r, a] = l.useState(!1), [i, s] = l.useState(!0), c = l.useRef(null), u = l.useRef(null), d = io(t, c), {
374
374
  getPrefixCls: f,
375
375
  avatar: m
376
- } = l.useContext(ne), g = l.useContext(Ae), p = () => {
376
+ } = l.useContext(ne), g = l.useContext(Le), p = () => {
377
377
  if (!u.current || !c.current)
378
378
  return;
379
379
  const x = u.current.offsetWidth, T = c.current.offsetWidth;
@@ -396,7 +396,7 @@ const rn = (e, t) => {
396
396
  (x == null ? void 0 : x()) !== !1 && s(!1);
397
397
  }, {
398
398
  prefixCls: h,
399
- shape: y,
399
+ shape: C,
400
400
  size: b,
401
401
  src: S,
402
402
  srcSet: $,
@@ -410,7 +410,7 @@ const rn = (e, t) => {
410
410
  } = e, z = nn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]), N = ao((x) => {
411
411
  var T, U;
412
412
  return (U = (T = b ?? (g == null ? void 0 : g.size)) !== null && T !== void 0 ? T : x) !== null && U !== void 0 ? U : "default";
413
- }), C = Object.keys(typeof N == "object" ? N || {} : {}).some((x) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(x)), P = Jo(C), A = l.useMemo(() => {
413
+ }), y = Object.keys(typeof N == "object" ? N || {} : {}).some((x) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(x)), P = Jo(y), A = l.useMemo(() => {
414
414
  if (typeof N != "object")
415
415
  return {};
416
416
  const x = It.find((U) => P[U]), T = N[x];
@@ -424,10 +424,10 @@ const rn = (e, t) => {
424
424
  const x = ve("Avatar");
425
425
  process.env.NODE_ENV !== "production" && x(!(typeof O == "string" && O.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${O}\` at https://ant.design/components/icon`);
426
426
  }
427
- const j = f("avatar", h), L = Be(j), [F, V, k] = Nt(j, L), D = _({
427
+ const j = f("avatar", h), L = ze(j), [F, V, k] = Nt(j, L), D = _({
428
428
  [`${j}-lg`]: N === "large",
429
429
  [`${j}-sm`]: N === "small"
430
- }), W = /* @__PURE__ */ l.isValidElement(S), q = y || (g == null ? void 0 : g.shape) || "circle", G = _(j, D, m == null ? void 0 : m.className, `${j}-${q}`, {
430
+ }), W = /* @__PURE__ */ l.isValidElement(S), q = C || (g == null ? void 0 : g.shape) || "circle", G = _(j, D, m == null ? void 0 : m.className, `${j}-${q}`, {
431
431
  [`${j}-image`]: W || S && i,
432
432
  [`${j}-icon`]: !!O
433
433
  }, k, L, H, R, V), Z = typeof N == "number" ? {
@@ -570,9 +570,9 @@ var ue = {
570
570
  targetOffset: J
571
571
  }
572
572
  }, ln = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], sn = function(t, o) {
573
- var n = t.overlayClassName, r = t.trigger, a = r === void 0 ? ["hover"] : r, i = t.mouseEnterDelay, s = i === void 0 ? 0 : i, c = t.mouseLeaveDelay, u = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f, g = t.children, p = t.onVisibleChange, v = t.afterVisibleChange, h = t.transitionName, y = t.animation, b = t.motion, S = t.placement, $ = S === void 0 ? "right" : S, O = t.align, H = O === void 0 ? {} : O, R = t.destroyTooltipOnHide, M = R === void 0 ? !1 : R, I = t.defaultVisible, w = t.getTooltipContainer, B = t.overlayInnerStyle;
573
+ var n = t.overlayClassName, r = t.trigger, a = r === void 0 ? ["hover"] : r, i = t.mouseEnterDelay, s = i === void 0 ? 0 : i, c = t.mouseLeaveDelay, u = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f, g = t.children, p = t.onVisibleChange, v = t.afterVisibleChange, h = t.transitionName, C = t.animation, b = t.motion, S = t.placement, $ = S === void 0 ? "right" : S, O = t.align, H = O === void 0 ? {} : O, R = t.destroyTooltipOnHide, M = R === void 0 ? !1 : R, I = t.defaultVisible, w = t.getTooltipContainer, B = t.overlayInnerStyle;
574
574
  t.arrowContent;
575
- var z = t.overlay, N = t.id, C = t.showArrow, P = C === void 0 ? !0 : C, A = t.classNames, j = t.styles, L = lo(t, ln), F = so(N), V = Ee(null);
575
+ var z = t.overlay, N = t.id, y = t.showArrow, P = y === void 0 ? !0 : y, A = t.classNames, j = t.styles, L = lo(t, ln), F = so(N), V = Pe(null);
576
576
  yt(o, function() {
577
577
  return V.current;
578
578
  });
@@ -592,7 +592,7 @@ var ue = {
592
592
  });
593
593
  return /* @__PURE__ */ l.cloneElement(g, Y);
594
594
  };
595
- return /* @__PURE__ */ l.createElement($o, Pe({
595
+ return /* @__PURE__ */ l.createElement($o, Be({
596
596
  popupClassName: _(n, A == null ? void 0 : A.root),
597
597
  prefixCls: m,
598
598
  popup: D,
@@ -605,7 +605,7 @@ var ue = {
605
605
  onPopupVisibleChange: p,
606
606
  afterPopupVisibleChange: v,
607
607
  popupTransitionName: h,
608
- popupAnimation: y,
608
+ popupAnimation: C,
609
609
  popupMotion: b,
610
610
  defaultPopupVisible: I,
611
611
  autoDestroy: M,
@@ -621,9 +621,9 @@ function Ke(e) {
621
621
  sizePopupArrow: t,
622
622
  borderRadiusXS: o,
623
623
  borderRadiusOuter: n
624
- } = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), u = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - u, m = d, g = 2 * r - s, p = c, v = 2 * r - a, h = i, y = r * Math.sqrt(2) + n * (Math.sqrt(2) - 2), b = n * (Math.sqrt(2) - 1), S = `polygon(${b}px 100%, 50% ${b}px, ${2 * r - b}px 100%, ${b}px 100%)`, $ = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${o} ${o} 0 0 1 ${f} ${m} L ${g} ${p} A ${n} ${n} 0 0 0 ${v} ${h} Z')`;
624
+ } = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), u = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - u, m = d, g = 2 * r - s, p = c, v = 2 * r - a, h = i, C = r * Math.sqrt(2) + n * (Math.sqrt(2) - 2), b = n * (Math.sqrt(2) - 1), S = `polygon(${b}px 100%, 50% ${b}px, ${2 * r - b}px 100%, ${b}px 100%)`, $ = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${o} ${o} 0 0 1 ${f} ${m} L ${g} ${p} A ${n} ${n} 0 0 0 ${v} ${h} Z')`;
625
625
  return {
626
- arrowShadowWidth: y,
626
+ arrowShadowWidth: C,
627
627
  arrowPath: $,
628
628
  arrowPolygon: S
629
629
  };
@@ -674,7 +674,7 @@ const dn = (e, t, o) => {
674
674
  }
675
675
  };
676
676
  }, Et = 8;
677
- function je(e) {
677
+ function Te(e) {
678
678
  const {
679
679
  contentRadius: t,
680
680
  limitVerticalRadius: o
@@ -938,7 +938,7 @@ function Pt(e) {
938
938
  f.offset[0] = s + r;
939
939
  break;
940
940
  }
941
- const m = je({
941
+ const m = Te({
942
942
  contentRadius: a,
943
943
  limitVerticalRadius: !0
944
944
  });
@@ -1024,10 +1024,10 @@ const gn = (e) => {
1024
1024
  [`${o}-content`]: {
1025
1025
  position: "relative"
1026
1026
  }
1027
- }), Mo(e, (h, y) => {
1027
+ }), Mo(e, (h, C) => {
1028
1028
  let {
1029
1029
  darkColor: b
1030
- } = y;
1030
+ } = C;
1031
1031
  return {
1032
1032
  [`&${o}-${h}`]: {
1033
1033
  [`${o}-inner`]: {
@@ -1058,7 +1058,7 @@ const gn = (e) => {
1058
1058
  ];
1059
1059
  }, fn = (e) => Object.assign(Object.assign({
1060
1060
  zIndexPopup: e.zIndexPopupBase + 70
1061
- }, je({
1061
+ }, Te({
1062
1062
  contentRadius: e.borderRadius,
1063
1063
  limitVerticalRadius: !0
1064
1064
  })), Ke(se(e, {
@@ -1077,7 +1077,7 @@ const gn = (e) => {
1077
1077
  tooltipBorderRadius: r,
1078
1078
  tooltipBg: i
1079
1079
  });
1080
- return [gn(s), ze(n, "zoom-big-fast")];
1080
+ return [gn(s), je(n, "zoom-big-fast")];
1081
1081
  }, fn, {
1082
1082
  resetStyle: !1,
1083
1083
  // Popover use Tooltip as internal component. We do not need to handle this.
@@ -1142,7 +1142,7 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
1142
1142
  title: p,
1143
1143
  overlay: v,
1144
1144
  builtinPlacements: h,
1145
- arrowPointAtCenter: y = !1,
1145
+ arrowPointAtCenter: C = !1,
1146
1146
  autoAdjustOverflow: b = !0,
1147
1147
  motion: S,
1148
1148
  getPopupContainer: $,
@@ -1154,7 +1154,7 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
1154
1154
  overlayClassName: w,
1155
1155
  styles: B,
1156
1156
  classNames: z
1157
- } = e, N = $n(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), C = !!g, [, P] = We(), {
1157
+ } = e, N = $n(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), y = !!g, [, P] = We(), {
1158
1158
  getPopupContainer: A,
1159
1159
  getPrefixCls: j,
1160
1160
  direction: L,
@@ -1188,25 +1188,25 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
1188
1188
  Y(x ? !1 : K), x || ((Q = e.onOpenChange) === null || Q === void 0 || Q.call(e, K), (re = e.onVisibleChange) === null || re === void 0 || re.call(e, K));
1189
1189
  }, U = l.useMemo(() => {
1190
1190
  var K, Q;
1191
- let re = y;
1192
- return typeof g == "object" && (re = (Q = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && Q !== void 0 ? Q : y), h || Pt({
1191
+ let re = C;
1192
+ return typeof g == "object" && (re = (Q = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && Q !== void 0 ? Q : C), h || Pt({
1193
1193
  arrowPointAtCenter: re,
1194
1194
  autoAdjustOverflow: b,
1195
- arrowWidth: C ? P.sizePopupArrow : 0,
1195
+ arrowWidth: y ? P.sizePopupArrow : 0,
1196
1196
  borderRadius: P.borderRadius,
1197
1197
  offset: P.marginXXS,
1198
1198
  visibleFirst: !0
1199
1199
  });
1200
- }, [y, g, h, P]), ae = l.useMemo(() => p === 0 ? p : v || p || "", [v, p]), _e = /* @__PURE__ */ l.createElement(St, {
1200
+ }, [C, g, h, P]), ae = l.useMemo(() => p === 0 ? p : v || p || "", [v, p]), Re = /* @__PURE__ */ l.createElement(St, {
1201
1201
  space: !0
1202
1202
  }, typeof ae == "function" ? ae() : ae), te = j("tooltip", r), X = j(), oe = e["data-popover-inject"];
1203
1203
  let ee = Z;
1204
1204
  !("open" in e) && !("visible" in e) && x && (ee = !1);
1205
- const Re = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), $e = Re.props, Xt = !$e.className || typeof $e.className == "string" ? _($e.className, a || `${te}-open`) : $e.className, [Ft, qt, Gt] = Bt(te, !oe), Me = zt(te, s), Yt = Me.arrowStyle, Ut = _(w, {
1205
+ const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), $e = Me.props, Xt = !$e.className || typeof $e.className == "string" ? _($e.className, a || `${te}-open`) : $e.className, [Ft, qt, Gt] = Bt(te, !oe), De = zt(te, s), Yt = De.arrowStyle, Ut = _(w, {
1206
1206
  [`${te}-rtl`]: L === "rtl"
1207
- }, Me.className, I, qt, Gt, F, k.root, z == null ? void 0 : z.root), Kt = _(k.body, z == null ? void 0 : z.body), [Zt, Qt] = Ge("Tooltip", N.zIndex), Jt = /* @__PURE__ */ l.createElement(cn, Object.assign({}, N, {
1207
+ }, De.className, I, qt, Gt, F, k.root, z == null ? void 0 : z.root), Kt = _(k.body, z == null ? void 0 : z.body), [Zt, Qt] = Ge("Tooltip", N.zIndex), Jt = /* @__PURE__ */ l.createElement(cn, Object.assign({}, N, {
1208
1208
  zIndex: Zt,
1209
- showArrow: C,
1209
+ showArrow: y,
1210
1210
  placement: O,
1211
1211
  mouseEnterDelay: H,
1212
1212
  mouseLeaveDelay: R,
@@ -1217,12 +1217,12 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
1217
1217
  },
1218
1218
  styles: {
1219
1219
  root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Yt), D.root), V), M), B == null ? void 0 : B.root),
1220
- body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c), B == null ? void 0 : B.body), Me.overlayStyle)
1220
+ body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c), B == null ? void 0 : B.body), De.overlayStyle)
1221
1221
  },
1222
1222
  getTooltipContainer: $ || i || A,
1223
1223
  ref: q,
1224
1224
  builtinPlacements: U,
1225
- overlay: _e,
1225
+ overlay: Re,
1226
1226
  visible: ee,
1227
1227
  onVisibleChange: T,
1228
1228
  afterVisibleChange: d ?? f,
@@ -1234,15 +1234,15 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
1234
1234
  motionDeadline: 1e3
1235
1235
  },
1236
1236
  destroyTooltipOnHide: !!m
1237
- }), ee ? de(Re, {
1237
+ }), ee ? de(Me, {
1238
1238
  className: Xt
1239
- }) : Re);
1239
+ }) : Me);
1240
1240
  return Ft(/* @__PURE__ */ l.createElement(Ot.Provider, {
1241
1241
  value: Qt
1242
1242
  }, Jt));
1243
- }), Te = yn;
1244
- process.env.NODE_ENV !== "production" && (Te.displayName = "Tooltip");
1245
- Te._InternalPanelDoNotUseOrYouWillBeFired = hn;
1243
+ }), _e = yn;
1244
+ process.env.NODE_ENV !== "production" && (_e.displayName = "Tooltip");
1245
+ _e._InternalPanelDoNotUseOrYouWillBeFired = hn;
1246
1246
  const Cn = (e) => {
1247
1247
  const {
1248
1248
  componentCls: t,
@@ -1365,7 +1365,7 @@ const Cn = (e) => {
1365
1365
  return Object.assign(Object.assign(Object.assign({
1366
1366
  titleMinWidth: 177,
1367
1367
  zIndexPopup: i + 30
1368
- }, Ke(e)), je({
1368
+ }, Ke(e)), Te({
1369
1369
  contentRadius: s,
1370
1370
  limitVerticalRadius: !0
1371
1371
  })), {
@@ -1384,7 +1384,7 @@ const Cn = (e) => {
1384
1384
  popoverBg: t,
1385
1385
  popoverColor: o
1386
1386
  });
1387
- return [Cn(n), wn(n), ze(n, "zoom-big")];
1387
+ return [Cn(n), wn(n), je(n, "zoom-big")];
1388
1388
  }, xn, {
1389
1389
  resetStyle: !1,
1390
1390
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
@@ -1467,13 +1467,13 @@ const En = /* @__PURE__ */ l.forwardRef((e, t) => {
1467
1467
  overlayStyle: p = {},
1468
1468
  styles: v,
1469
1469
  classNames: h
1470
- } = e, y = Nn(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
1470
+ } = e, C = Nn(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
1471
1471
  getPrefixCls: b,
1472
1472
  className: S,
1473
1473
  style: $,
1474
1474
  classNames: O,
1475
1475
  styles: H
1476
- } = Xe("popover"), R = b("popover", r), [M, I, w] = jt(R), B = b(), z = _(s, I, w, S, O.root, h == null ? void 0 : h.root), N = _(O.body, h == null ? void 0 : h.body), [C, P] = Fe(!1, {
1476
+ } = Xe("popover"), R = b("popover", r), [M, I, w] = jt(R), B = b(), z = _(s, I, w, S, O.root, h == null ? void 0 : h.root), N = _(O.body, h == null ? void 0 : h.body), [y, P] = Fe(!1, {
1477
1477
  value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
1478
1478
  defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
1479
1479
  }), A = (k, D) => {
@@ -1483,12 +1483,12 @@ const En = /* @__PURE__ */ l.forwardRef((e, t) => {
1483
1483
  }, L = (k) => {
1484
1484
  A(k);
1485
1485
  }, F = Oe(a), V = Oe(i);
1486
- return M(/* @__PURE__ */ l.createElement(Te, Object.assign({
1486
+ return M(/* @__PURE__ */ l.createElement(_e, Object.assign({
1487
1487
  placement: c,
1488
1488
  trigger: u,
1489
1489
  mouseEnterDelay: f,
1490
1490
  mouseLeaveDelay: m
1491
- }, y, {
1491
+ }, C, {
1492
1492
  prefixCls: R,
1493
1493
  classNames: {
1494
1494
  root: z,
@@ -1499,14 +1499,14 @@ const En = /* @__PURE__ */ l.forwardRef((e, t) => {
1499
1499
  body: Object.assign(Object.assign({}, H.body), v == null ? void 0 : v.body)
1500
1500
  },
1501
1501
  ref: t,
1502
- open: C,
1502
+ open: y,
1503
1503
  onOpenChange: L,
1504
1504
  overlay: F || V ? /* @__PURE__ */ l.createElement(Tt, {
1505
1505
  prefixCls: R,
1506
1506
  title: F,
1507
1507
  content: V
1508
1508
  }) : null,
1509
- transitionName: Ct(B, "zoom-big", y.transitionName),
1509
+ transitionName: Ct(B, "zoom-big", C.transitionName),
1510
1510
  "data-popover-inject": !0
1511
1511
  }), de(d, {
1512
1512
  onKeyDown: (k) => {
@@ -1521,11 +1521,11 @@ const dt = (e) => {
1521
1521
  const {
1522
1522
  size: t,
1523
1523
  shape: o
1524
- } = l.useContext(Ae), n = l.useMemo(() => ({
1524
+ } = l.useContext(Le), n = l.useMemo(() => ({
1525
1525
  size: e.size || t,
1526
1526
  shape: e.shape || o
1527
1527
  }), [e.size, e.shape, t, o]);
1528
- return /* @__PURE__ */ l.createElement(Ae.Provider, {
1528
+ return /* @__PURE__ */ l.createElement(Le.Provider, {
1529
1529
  value: n
1530
1530
  }, e.children);
1531
1531
  }, Pn = (e) => {
@@ -1544,25 +1544,25 @@ const dt = (e) => {
1544
1544
  shape: p,
1545
1545
  maxPopoverPlacement: v,
1546
1546
  maxPopoverTrigger: h,
1547
- children: y,
1547
+ children: C,
1548
1548
  max: b
1549
1549
  } = e;
1550
1550
  if (process.env.NODE_ENV !== "production") {
1551
1551
  const N = ve("Avatar.Group");
1552
- [["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((C) => {
1553
- let [P, A] = C;
1552
+ [["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((y) => {
1553
+ let [P, A] = y;
1554
1554
  N.deprecated(!(P in e), P, A);
1555
1555
  });
1556
1556
  }
1557
- const S = a("avatar", s), $ = `${S}-group`, O = Be(S), [H, R, M] = Nt(S, O), I = _($, {
1557
+ const S = a("avatar", s), $ = `${S}-group`, O = ze(S), [H, R, M] = Nt(S, O), I = _($, {
1558
1558
  [`${$}-rtl`]: i === "rtl"
1559
- }, M, O, c, u, R), w = qe(y).map((N, C) => de(N, {
1559
+ }, M, O, c, u, R), w = qe(C).map((N, y) => de(N, {
1560
1560
  // eslint-disable-next-line react/no-array-index-key
1561
- key: `avatar-key-${C}`
1561
+ key: `avatar-key-${y}`
1562
1562
  })), B = (b == null ? void 0 : b.count) || f, z = w.length;
1563
1563
  if (B && B < z) {
1564
- const N = w.slice(0, B), C = w.slice(B, z), P = (b == null ? void 0 : b.style) || m, A = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", j = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || v || "top", L = Object.assign(Object.assign({
1565
- content: C
1564
+ const N = w.slice(0, B), y = w.slice(B, z), P = (b == null ? void 0 : b.style) || m, A = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", j = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || v || "top", L = Object.assign(Object.assign({
1565
+ content: y
1566
1566
  }, b == null ? void 0 : b.popover), {
1567
1567
  classNames: {
1568
1568
  root: _(`${$}-popover`, (r = (n = b == null ? void 0 : b.popover) === null || n === void 0 ? void 0 : n.classNames) === null || r === void 0 ? void 0 : r.root)
@@ -1592,21 +1592,21 @@ const dt = (e) => {
1592
1592
  }, w)));
1593
1593
  }, _t = Ye;
1594
1594
  _t.Group = Pn;
1595
- const Bn = (e) => typeof e != "object" && typeof e != "function" || e === null;
1596
- var zn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, jn = function(t, o) {
1597
- return /* @__PURE__ */ l.createElement(Ve, Pe({}, t, {
1595
+ var Bn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, zn = function(t, o) {
1596
+ return /* @__PURE__ */ l.createElement(Ve, Be({}, t, {
1598
1597
  ref: o,
1599
- icon: zn
1598
+ icon: Bn
1600
1599
  }));
1601
- }, Rt = /* @__PURE__ */ l.forwardRef(jn);
1602
- process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
1603
- var Tn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, _n = function(t, o) {
1604
- return /* @__PURE__ */ l.createElement(Ve, Pe({}, t, {
1600
+ }, Ie = /* @__PURE__ */ l.forwardRef(zn);
1601
+ process.env.NODE_ENV !== "production" && (Ie.displayName = "LeftOutlined");
1602
+ const jn = (e) => typeof e != "object" && typeof e != "function" || e === null;
1603
+ var Tn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, _n = function(t, o) {
1604
+ return /* @__PURE__ */ l.createElement(Ve, Be({}, t, {
1605
1605
  ref: o,
1606
1606
  icon: Tn
1607
1607
  }));
1608
- }, Le = /* @__PURE__ */ l.forwardRef(_n);
1609
- process.env.NODE_ENV !== "production" && (Le.displayName = "LeftOutlined");
1608
+ }, Rt = /* @__PURE__ */ l.forwardRef(_n);
1609
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
1610
1610
  const Rn = /* @__PURE__ */ l.createContext({
1611
1611
  siderHook: {
1612
1612
  addSider: () => null,
@@ -1762,6 +1762,9 @@ const Dn = (e) => {
1762
1762
  width: "auto"
1763
1763
  }
1764
1764
  },
1765
+ [`&-zero-width ${t}-children`]: {
1766
+ overflow: "hidden"
1767
+ },
1765
1768
  [`${t}-trigger`]: {
1766
1769
  position: "fixed",
1767
1770
  bottom: 0,
@@ -1774,40 +1777,35 @@ const Dn = (e) => {
1774
1777
  cursor: "pointer",
1775
1778
  transition: `all ${n}`
1776
1779
  },
1777
- [`${t}-zero-width`]: {
1778
- "> *": {
1779
- overflow: "hidden"
1780
- },
1781
- "&-trigger": {
1780
+ [`${t}-zero-width-trigger`]: {
1781
+ position: "absolute",
1782
+ top: u,
1783
+ insetInlineEnd: e.calc(d).mul(-1).equal(),
1784
+ zIndex: 1,
1785
+ width: d,
1786
+ height: f,
1787
+ color: s,
1788
+ fontSize: e.fontSizeXL,
1789
+ display: "flex",
1790
+ alignItems: "center",
1791
+ justifyContent: "center",
1792
+ background: o,
1793
+ borderRadius: `0 ${E(m)} ${E(m)} 0`,
1794
+ cursor: "pointer",
1795
+ transition: `background ${r} ease`,
1796
+ "&::after": {
1782
1797
  position: "absolute",
1783
- top: u,
1784
- insetInlineEnd: e.calc(d).mul(-1).equal(),
1785
- zIndex: 1,
1786
- width: d,
1787
- height: f,
1788
- color: s,
1789
- fontSize: e.fontSizeXL,
1790
- display: "flex",
1791
- alignItems: "center",
1792
- justifyContent: "center",
1793
- background: o,
1794
- borderRadius: `0 ${E(m)} ${E(m)} 0`,
1795
- cursor: "pointer",
1796
- transition: `background ${r} ease`,
1797
- "&::after": {
1798
- position: "absolute",
1799
- inset: 0,
1800
- background: "transparent",
1801
- transition: `all ${r}`,
1802
- content: '""'
1803
- },
1804
- "&:hover::after": {
1805
- background: "rgba(255, 255, 255, 0.2)"
1806
- },
1807
- "&-right": {
1808
- insetInlineStart: e.calc(d).mul(-1).equal(),
1809
- borderRadius: `${E(m)} 0 0 ${E(m)}`
1810
- }
1798
+ inset: 0,
1799
+ background: "transparent",
1800
+ transition: `all ${r}`,
1801
+ content: '""'
1802
+ },
1803
+ "&:hover::after": {
1804
+ background: "rgba(255, 255, 255, 0.2)"
1805
+ },
1806
+ "&-right": {
1807
+ insetInlineStart: e.calc(d).mul(-1).equal(),
1808
+ borderRadius: `${E(m)} 0 0 ${E(m)}`
1811
1809
  }
1812
1810
  },
1813
1811
  // Light
@@ -1867,10 +1865,10 @@ const ut = {
1867
1865
  breakpoint: p,
1868
1866
  onCollapse: v,
1869
1867
  onBreakpoint: h
1870
- } = e, y = An(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1868
+ } = e, C = An(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1871
1869
  siderHook: b
1872
1870
  } = tt(Rn), [S, $] = ot("collapsed" in e ? e.collapsed : i), [O, H] = ot(!1);
1873
- De(() => {
1871
+ He(() => {
1874
1872
  "collapsed" in e && $(e.collapsed);
1875
1873
  }, [e.collapsed]);
1876
1874
  const R = (x, T) => {
@@ -1878,12 +1876,12 @@ const ut = {
1878
1876
  }, {
1879
1877
  getPrefixCls: M,
1880
1878
  direction: I
1881
- } = tt(ne), w = M("layout-sider", o), [B, z, N] = Hn(w), C = Ee(null);
1882
- C.current = (x) => {
1879
+ } = tt(ne), w = M("layout-sider", o), [B, z, N] = Hn(w), y = Pe(null);
1880
+ y.current = (x) => {
1883
1881
  H(x.matches), h == null || h(x.matches), S !== x.matches && R(x.matches, "responsive");
1884
- }, De(() => {
1882
+ }, He(() => {
1885
1883
  function x(U) {
1886
- return C.current(U);
1884
+ return y.current(U);
1887
1885
  }
1888
1886
  let T;
1889
1887
  if (typeof window < "u") {
@@ -1907,19 +1905,19 @@ const ut = {
1907
1905
  T == null || T.removeListener(x);
1908
1906
  }
1909
1907
  };
1910
- }, [p]), De(() => {
1908
+ }, [p]), He(() => {
1911
1909
  const x = kn("ant-sider-");
1912
1910
  return b.addSider(x), () => b.removeSider(x);
1913
1911
  }, []);
1914
1912
  const P = () => {
1915
1913
  R(!S, "clickTrigger");
1916
- }, A = be(y, ["collapsed"]), j = S ? m : f, L = Ln(j) ? `${j}px` : String(j), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
1914
+ }, A = be(C, ["collapsed"]), j = S ? m : f, L = Ln(j) ? `${j}px` : String(j), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
1917
1915
  onClick: P,
1918
1916
  className: _(`${w}-zero-width-trigger`, `${w}-zero-width-trigger-${d ? "right" : "left"}`),
1919
1917
  style: g
1920
1918
  }, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, V = I === "rtl" == !d, W = {
1921
- expanded: V ? /* @__PURE__ */ l.createElement(Se, null) : /* @__PURE__ */ l.createElement(Le, null),
1922
- collapsed: V ? /* @__PURE__ */ l.createElement(Le, null) : /* @__PURE__ */ l.createElement(Se, null)
1919
+ expanded: V ? /* @__PURE__ */ l.createElement(Se, null) : /* @__PURE__ */ l.createElement(Ie, null),
1920
+ collapsed: V ? /* @__PURE__ */ l.createElement(Ie, null) : /* @__PURE__ */ l.createElement(Se, null)
1923
1921
  }[S ? "collapsed" : "expanded"], q = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
1924
1922
  className: `${w}-trigger`,
1925
1923
  onClick: P,
@@ -1951,7 +1949,7 @@ const ut = {
1951
1949
  }, a), u || O && F ? q : null)));
1952
1950
  });
1953
1951
  process.env.NODE_ENV !== "production" && (Vn.displayName = "Sider");
1954
- const Ie = /* @__PURE__ */ to({
1952
+ const Ne = /* @__PURE__ */ to({
1955
1953
  prefixCls: "",
1956
1954
  firstLevel: !0,
1957
1955
  inlineCollapsed: !1
@@ -1991,7 +1989,7 @@ const Ht = (e) => {
1991
1989
  direction: d,
1992
1990
  disableMenuItemTitleTooltip: f,
1993
1991
  inlineCollapsed: m
1994
- } = l.useContext(Ie), g = (S) => {
1992
+ } = l.useContext(Ne), g = (S) => {
1995
1993
  const $ = n == null ? void 0 : n[0], O = /* @__PURE__ */ l.createElement("span", {
1996
1994
  className: _(`${c}-title-content`, {
1997
1995
  [`${c}-title-content-with-extra`]: !!s || s === 0
@@ -2009,17 +2007,17 @@ const Ht = (e) => {
2009
2007
  title: v
2010
2008
  };
2011
2009
  !p && !m && (h.title = null, h.open = !1);
2012
- const y = qe(n).length;
2010
+ const C = qe(n).length;
2013
2011
  let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, be(e, ["title", "icon", "danger"]), {
2014
2012
  className: _({
2015
2013
  [`${c}-item-danger`]: i,
2016
- [`${c}-item-only-child`]: (r ? y + 1 : y) === 1
2014
+ [`${c}-item-only-child`]: (r ? C + 1 : C) === 1
2017
2015
  }, o),
2018
2016
  title: typeof a == "string" ? a : void 0
2019
2017
  }), de(r, {
2020
2018
  className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : "", `${c}-item-icon`)
2021
2019
  }), g(m));
2022
- return f || (b = /* @__PURE__ */ l.createElement(Te, Object.assign({}, h, {
2020
+ return f || (b = /* @__PURE__ */ l.createElement(_e, Object.assign({}, h, {
2023
2021
  placement: d === "rtl" ? "left" : "right",
2024
2022
  classNames: {
2025
2023
  root: `${c}-inline-collapsed-tooltip`
@@ -2033,10 +2031,10 @@ var Xn = function(e, t) {
2033
2031
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
2034
2032
  return o;
2035
2033
  };
2036
- const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
2034
+ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
2037
2035
  const {
2038
2036
  children: o
2039
- } = e, n = Xn(e, ["children"]), r = l.useContext(Ne), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
2037
+ } = e, n = Xn(e, ["children"]), r = l.useContext(Ee), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
2040
2038
  r,
2041
2039
  n.prefixCls,
2042
2040
  // restProps.expandIcon, Not mark as deps since this is a ReactNode
@@ -2045,7 +2043,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2045
2043
  n.rootClassName
2046
2044
  // restProps.validator, Not mark as deps since this is a function
2047
2045
  ]), i = uo(o), s = mo(t, i ? po(o) : null);
2048
- return /* @__PURE__ */ l.createElement(Ne.Provider, {
2046
+ return /* @__PURE__ */ l.createElement(Ee.Provider, {
2049
2047
  value: a
2050
2048
  }, /* @__PURE__ */ l.createElement(St, {
2051
2049
  space: !0
@@ -2138,7 +2136,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2138
2136
  motionEaseInOut: p,
2139
2137
  motionEaseOut: v,
2140
2138
  itemPaddingInline: h,
2141
- motionDurationMid: y,
2139
+ motionDurationMid: C,
2142
2140
  itemHoverColor: b,
2143
2141
  lineType: S,
2144
2142
  colorSplit: $,
@@ -2154,7 +2152,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2154
2152
  popupBg: B,
2155
2153
  itemHoverBg: z,
2156
2154
  itemActiveBg: N,
2157
- menuSubMenuBg: C,
2155
+ menuSubMenuBg: y,
2158
2156
  // Horizontal
2159
2157
  horizontalItemSelectedColor: P,
2160
2158
  horizontalItemSelectedBg: A,
@@ -2242,7 +2240,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2242
2240
  }
2243
2241
  },
2244
2242
  [`&${o}-submenu > ${o}`]: {
2245
- backgroundColor: C
2243
+ backgroundColor: y
2246
2244
  },
2247
2245
  // ===== 设置浮层的颜色 =======
2248
2246
  // !dark 模式会被popupBg 会被rest 为 darkPopupBg
@@ -2312,7 +2310,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2312
2310
  borderInlineEnd: `${E(f)} solid ${r}`,
2313
2311
  transform: "scaleY(0.0001)",
2314
2312
  opacity: 0,
2315
- transition: [`transform ${y} ${v}`, `opacity ${y} ${v}`].join(","),
2313
+ transition: [`transform ${C} ${v}`, `opacity ${C} ${v}`].join(","),
2316
2314
  content: '""'
2317
2315
  },
2318
2316
  // Danger
@@ -2326,7 +2324,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2326
2324
  "&::after": {
2327
2325
  transform: "scaleY(1)",
2328
2326
  opacity: 1,
2329
- transition: [`transform ${y} ${p}`, `opacity ${y} ${p}`].join(",")
2327
+ transition: [`transform ${C} ${p}`, `opacity ${C} ${p}`].join(",")
2330
2328
  }
2331
2329
  }
2332
2330
  }
@@ -2387,7 +2385,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2387
2385
  boxShadowSecondary: p,
2388
2386
  collapsedWidth: v,
2389
2387
  collapsedIconSize: h
2390
- } = e, y = {
2388
+ } = e, C = {
2391
2389
  height: n,
2392
2390
  lineHeight: E(n),
2393
2391
  listStylePosition: "inside",
@@ -2451,13 +2449,13 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2451
2449
  border: 0,
2452
2450
  borderRadius: 0,
2453
2451
  boxShadow: "none",
2454
- [`& > ${t}-submenu > ${t}-submenu-title`]: y,
2452
+ [`& > ${t}-submenu > ${t}-submenu-title`]: C,
2455
2453
  [`& ${t}-item-group-title`]: {
2456
2454
  paddingInlineStart: c
2457
2455
  }
2458
2456
  },
2459
2457
  // >>>>> Item
2460
- [`${t}-item`]: y
2458
+ [`${t}-item`]: C
2461
2459
  }
2462
2460
  },
2463
2461
  // Inline Collapse Only
@@ -2626,7 +2624,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2626
2624
  menuArrowSize: p,
2627
2625
  menuArrowOffset: v,
2628
2626
  lineType: h,
2629
- groupTitleLineHeight: y,
2627
+ groupTitleLineHeight: C,
2630
2628
  groupTitleFontSize: b
2631
2629
  } = e;
2632
2630
  return [
@@ -2673,7 +2671,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2673
2671
  [`${o}-item-group-title`]: {
2674
2672
  padding: `${E(s)} ${E(c)}`,
2675
2673
  fontSize: b,
2676
- lineHeight: y,
2674
+ lineHeight: C,
2677
2675
  transition: `all ${r}`
2678
2676
  },
2679
2677
  [`&-horizontal ${o}-submenu`]: {
@@ -2842,7 +2840,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2842
2840
  lineWidthBold: p,
2843
2841
  controlItemBgActive: v,
2844
2842
  colorBgTextHover: h,
2845
- controlHeightLG: y,
2843
+ controlHeightLG: C,
2846
2844
  lineHeight: b,
2847
2845
  colorBgElevated: S,
2848
2846
  marginXXS: $,
@@ -2852,7 +2850,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2852
2850
  fontSizeLG: M,
2853
2851
  colorTextLightSolid: I,
2854
2852
  colorErrorHover: w
2855
- } = e, B = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, z = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : g, N = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, C = new it(I).setA(0.65).toRgbString();
2853
+ } = e, B = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, z = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : g, N = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new it(I).setA(0.65).toRgbString();
2856
2854
  return {
2857
2855
  dropdownWidth: 160,
2858
2856
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -2908,13 +2906,13 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2908
2906
  itemMarginInline: N,
2909
2907
  horizontalItemBorderRadius: 0,
2910
2908
  horizontalItemHoverBg: "transparent",
2911
- itemHeight: y,
2909
+ itemHeight: C,
2912
2910
  groupTitleLineHeight: b,
2913
- collapsedWidth: y * 2,
2911
+ collapsedWidth: C * 2,
2914
2912
  popupBg: S,
2915
2913
  itemMarginBlock: $,
2916
2914
  itemPaddingInline: O,
2917
- horizontalLineHeight: `${y * 1.15}px`,
2915
+ horizontalLineHeight: `${C * 1.15}px`,
2918
2916
  iconSize: H,
2919
2917
  iconMarginInlineEnd: R - H,
2920
2918
  collapsedIconSize: M,
@@ -2922,7 +2920,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2922
2920
  // Disabled
2923
2921
  darkItemDisabledColor: new it(I).setA(0.25).toRgbString(),
2924
2922
  // Dark
2925
- darkItemColor: C,
2923
+ darkItemColor: y,
2926
2924
  darkDangerItemColor: a,
2927
2925
  darkItemBg: "#001529",
2928
2926
  darkPopupBg: "#001529",
@@ -2931,7 +2929,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2931
2929
  darkItemSelectedBg: r,
2932
2930
  darkDangerItemSelectedBg: a,
2933
2931
  darkItemHoverBg: "transparent",
2934
- darkGroupTitleColor: C,
2932
+ darkGroupTitleColor: y,
2935
2933
  darkItemHoverColor: I,
2936
2934
  darkDangerItemHoverColor: w,
2937
2935
  darkDangerItemSelectedColor: I,
@@ -2955,7 +2953,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2955
2953
  darkDangerItemSelectedBg: p,
2956
2954
  darkItemHoverBg: v,
2957
2955
  darkGroupTitleColor: h,
2958
- darkItemHoverColor: y,
2956
+ darkItemHoverColor: C,
2959
2957
  darkItemDisabledColor: b,
2960
2958
  darkDangerItemHoverColor: S,
2961
2959
  darkDangerItemSelectedColor: $,
@@ -2971,7 +2969,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
2971
2969
  popupBg: H
2972
2970
  }), w = se(I, {
2973
2971
  itemColor: c,
2974
- itemHoverColor: y,
2972
+ itemHoverColor: C,
2975
2973
  groupTitleColor: h,
2976
2974
  itemSelectedColor: m,
2977
2975
  subMenuItemSelectedColor: m,
@@ -3014,7 +3012,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
3014
3012
  Ao(I),
3015
3013
  xe(I, "slide-up"),
3016
3014
  xe(I, "slide-down"),
3017
- ze(I, "zoom-big")
3015
+ je(I, "zoom-big")
3018
3016
  ];
3019
3017
  }, Kn, {
3020
3018
  deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
@@ -3031,7 +3029,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
3031
3029
  icon: n,
3032
3030
  title: r,
3033
3031
  theme: a
3034
- } = e, i = l.useContext(Ie), {
3032
+ } = e, i = l.useContext(Ne), {
3035
3033
  prefixCls: s,
3036
3034
  inlineCollapsed: c,
3037
3035
  theme: u
@@ -3054,7 +3052,7 @@ const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
3054
3052
  const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
3055
3053
  firstLevel: !1
3056
3054
  }), [i]), [g] = Ge("Menu");
3057
- return /* @__PURE__ */ l.createElement(Ie.Provider, {
3055
+ return /* @__PURE__ */ l.createElement(Ne.Provider, {
3058
3056
  value: m
3059
3057
  }, /* @__PURE__ */ l.createElement(xo, Object.assign({}, be(e, ["icon"]), {
3060
3058
  title: f,
@@ -3071,7 +3069,7 @@ var Qn = function(e, t) {
3071
3069
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
3072
3070
  return o;
3073
3071
  };
3074
- function He(e) {
3072
+ function Ae(e) {
3075
3073
  return e === null || e === !1;
3076
3074
  }
3077
3075
  const Jn = {
@@ -3080,7 +3078,7 @@ const Jn = {
3080
3078
  divider: Ht
3081
3079
  }, er = /* @__PURE__ */ ke((e, t) => {
3082
3080
  var o;
3083
- const n = l.useContext(Ne), r = n || {}, {
3081
+ const n = l.useContext(Ee), r = n || {}, {
3084
3082
  getPrefixCls: a,
3085
3083
  getPopupContainer: i,
3086
3084
  direction: s,
@@ -3093,7 +3091,7 @@ const Jn = {
3093
3091
  expandIcon: p,
3094
3092
  _internalDisableMenuItemTitleTooltip: v,
3095
3093
  inlineCollapsed: h,
3096
- siderCollapsed: y,
3094
+ siderCollapsed: C,
3097
3095
  rootClassName: b,
3098
3096
  mode: S,
3099
3097
  selectable: $,
@@ -3110,7 +3108,7 @@ const Jn = {
3110
3108
  const I = wt(function() {
3111
3109
  var D;
3112
3110
  O == null || O.apply(void 0, arguments), (D = r.onClick) === null || D === void 0 || D.call(r);
3113
- }), w = r.mode || S, B = $ ?? r.selectable, z = h ?? y, N = {
3111
+ }), w = r.mode || S, B = $ ?? r.selectable, z = h ?? C, N = {
3114
3112
  horizontal: {
3115
3113
  motionName: `${u}-slide-up`
3116
3114
  },
@@ -3118,35 +3116,35 @@ const Jn = {
3118
3116
  other: {
3119
3117
  motionName: `${u}-zoom-big`
3120
3118
  }
3121
- }, C = a("menu", d || r.prefixCls), P = Be(C), [A, j, L] = Zn(C, P, !n), F = _(`${C}-${g}`, c == null ? void 0 : c.className, f), V = l.useMemo(() => {
3119
+ }, y = a("menu", d || r.prefixCls), P = ze(y), [A, j, L] = Zn(y, P, !n), F = _(`${y}-${g}`, c == null ? void 0 : c.className, f), V = l.useMemo(() => {
3122
3120
  var D, W;
3123
- if (typeof p == "function" || He(p))
3121
+ if (typeof p == "function" || Ae(p))
3124
3122
  return p || null;
3125
- if (typeof r.expandIcon == "function" || He(r.expandIcon))
3123
+ if (typeof r.expandIcon == "function" || Ae(r.expandIcon))
3126
3124
  return r.expandIcon || null;
3127
- if (typeof (c == null ? void 0 : c.expandIcon) == "function" || He(c == null ? void 0 : c.expandIcon))
3125
+ if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Ae(c == null ? void 0 : c.expandIcon))
3128
3126
  return (c == null ? void 0 : c.expandIcon) || null;
3129
3127
  const q = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
3130
3128
  return de(q, {
3131
- className: _(`${C}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (W = q.props) === null || W === void 0 ? void 0 : W.className : void 0)
3129
+ className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (W = q.props) === null || W === void 0 ? void 0 : W.className : void 0)
3132
3130
  });
3133
- }, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, C]), k = l.useMemo(() => ({
3134
- prefixCls: C,
3131
+ }, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]), k = l.useMemo(() => ({
3132
+ prefixCls: y,
3135
3133
  inlineCollapsed: z || !1,
3136
3134
  direction: s,
3137
3135
  firstLevel: !0,
3138
3136
  theme: g,
3139
3137
  mode: w,
3140
3138
  disableMenuItemTitleTooltip: v
3141
- }), [C, z, s, v, g]);
3142
- return A(/* @__PURE__ */ l.createElement(Ne.Provider, {
3139
+ }), [y, z, s, v, g]);
3140
+ return A(/* @__PURE__ */ l.createElement(Ee.Provider, {
3143
3141
  value: null
3144
- }, /* @__PURE__ */ l.createElement(Ie.Provider, {
3142
+ }, /* @__PURE__ */ l.createElement(Ne.Provider, {
3145
3143
  value: k
3146
3144
  }, /* @__PURE__ */ l.createElement(So, Object.assign({
3147
3145
  getPopupContainer: i,
3148
3146
  overflowedIndicator: /* @__PURE__ */ l.createElement(xt, null),
3149
- overflowedIndicatorPopupClassName: _(C, `${C}-${g}`, H),
3147
+ overflowedIndicatorPopupClassName: _(y, `${y}-${g}`, H),
3150
3148
  mode: w,
3151
3149
  selectable: B,
3152
3150
  onClick: I
@@ -3154,7 +3152,7 @@ const Jn = {
3154
3152
  inlineCollapsed: z,
3155
3153
  style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
3156
3154
  className: F,
3157
- prefixCls: C,
3155
+ prefixCls: y,
3158
3156
  direction: s,
3159
3157
  defaultMotions: N,
3160
3158
  expandIcon: V,
@@ -3163,7 +3161,7 @@ const Jn = {
3163
3161
  _internalComponents: Jn
3164
3162
  })))));
3165
3163
  }), pe = /* @__PURE__ */ ke((e, t) => {
3166
- const o = Ee(null), n = l.useContext(Je);
3164
+ const o = Pe(null), n = l.useContext(Je);
3167
3165
  return yt(t, () => ({
3168
3166
  menu: o.current,
3169
3167
  focus: (r) => {
@@ -3461,12 +3459,12 @@ const tr = (e) => {
3461
3459
  })
3462
3460
  },
3463
3461
  // Follow code may reuse in other components
3464
- [xe(e, "slide-up"), xe(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), ze(e, "zoom-big")]
3462
+ [xe(e, "slide-up"), xe(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), je(e, "zoom-big")]
3465
3463
  ];
3466
3464
  }, nr = (e) => Object.assign(Object.assign({
3467
3465
  zIndexPopup: e.zIndexPopupBase + 50,
3468
3466
  paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
3469
- }, je({
3467
+ }, Te({
3470
3468
  contentRadius: e.borderRadiusLG,
3471
3469
  limitVerticalRadius: !0
3472
3470
  })), Ke(e)), rr = ce("Dropdown", (e) => {
@@ -3502,7 +3500,7 @@ const tr = (e) => {
3502
3500
  // Deprecated
3503
3501
  visible: v,
3504
3502
  onVisibleChange: h,
3505
- mouseEnterDelay: y = 0.15,
3503
+ mouseEnterDelay: C = 0.15,
3506
3504
  mouseLeaveDelay: b = 0.1,
3507
3505
  autoAdjustOverflow: S = !0,
3508
3506
  placement: $ = "",
@@ -3532,9 +3530,9 @@ const tr = (e) => {
3532
3530
  B.deprecated(!(oe in e), oe, ee);
3533
3531
  });
3534
3532
  }
3535
- const C = M("dropdown", r), P = Be(C), [A, j, L] = rr(C, P), [, F] = We(), V = l.Children.only(Bn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), k = de(V, {
3536
- className: _(`${C}-trigger`, {
3537
- [`${C}-rtl`]: I === "rtl"
3533
+ const y = M("dropdown", r), P = ze(y), [A, j, L] = rr(y, P), [, F] = We(), V = l.Children.only(jn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), k = de(V, {
3534
+ className: _(`${y}-trigger`, {
3535
+ [`${y}-rtl`]: I === "rtl"
3538
3536
  }, V.props.className),
3539
3537
  disabled: (t = V.props.disabled) !== null && t !== void 0 ? t : s
3540
3538
  }), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [q, G] = Fe(!1, {
@@ -3544,7 +3542,7 @@ const tr = (e) => {
3544
3542
  source: "trigger"
3545
3543
  }), h == null || h(X), G(X);
3546
3544
  }), Y = _(d, f, j, L, P, w == null ? void 0 : w.className, {
3547
- [`${C}-rtl`]: I === "rtl"
3545
+ [`${y}-rtl`]: I === "rtl"
3548
3546
  }), x = Pt({
3549
3547
  arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
3550
3548
  autoAdjustOverflow: S,
@@ -3558,12 +3556,14 @@ const tr = (e) => {
3558
3556
  }, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), U = () => {
3559
3557
  let X;
3560
3558
  return o != null && o.items ? X = /* @__PURE__ */ l.createElement(pe, Object.assign({}, o)) : typeof O == "function" ? X = O() : X = O, c && (X = c(X)), X = l.Children.only(typeof X == "string" ? /* @__PURE__ */ l.createElement("span", null, X) : X), /* @__PURE__ */ l.createElement(Fn, {
3561
- prefixCls: `${C}-menu`,
3559
+ prefixCls: `${y}-menu`,
3562
3560
  rootClassName: _(L, P),
3563
3561
  expandIcon: /* @__PURE__ */ l.createElement("span", {
3564
- className: `${C}-menu-submenu-arrow`
3565
- }, /* @__PURE__ */ l.createElement(Se, {
3566
- className: `${C}-menu-submenu-arrow-icon`
3562
+ className: `${y}-menu-submenu-arrow`
3563
+ }, I === "rtl" ? /* @__PURE__ */ l.createElement(Ie, {
3564
+ className: `${y}-menu-submenu-arrow-icon`
3565
+ }) : /* @__PURE__ */ l.createElement(Se, {
3566
+ className: `${y}-menu-submenu-arrow-icon`
3567
3567
  })),
3568
3568
  mode: "vertical",
3569
3569
  selectable: !1,
@@ -3575,17 +3575,17 @@ const tr = (e) => {
3575
3575
  process.env.NODE_ENV !== "production" && B(!ee || ee === "vertical", "usage", `mode="${ee}" is not supported for Dropdown's Menu.`);
3576
3576
  }
3577
3577
  }, X);
3578
- }, [ae, _e] = Ge("Dropdown", m == null ? void 0 : m.zIndex);
3578
+ }, [ae, Re] = Ge("Dropdown", m == null ? void 0 : m.zIndex);
3579
3579
  let te = /* @__PURE__ */ l.createElement(Bo, Object.assign({
3580
3580
  alignPoint: W
3581
3581
  }, be(e, ["rootClassName"]), {
3582
- mouseEnterDelay: y,
3582
+ mouseEnterDelay: C,
3583
3583
  mouseLeaveDelay: b,
3584
3584
  visible: q,
3585
3585
  builtinPlacements: x,
3586
3586
  arrow: !!n,
3587
3587
  overlayClassName: Y,
3588
- prefixCls: C,
3588
+ prefixCls: y,
3589
3589
  getPopupContainer: u || R,
3590
3590
  transitionName: z,
3591
3591
  trigger: D,
@@ -3597,7 +3597,7 @@ const tr = (e) => {
3597
3597
  })
3598
3598
  }), k);
3599
3599
  return ae && (te = /* @__PURE__ */ l.createElement(Ot.Provider, {
3600
- value: _e
3600
+ value: Re
3601
3601
  }, te)), A(te);
3602
3602
  }, ir = jo(he, "align", void 0, "dropdown", (e) => e), ar = (e) => /* @__PURE__ */ l.createElement(ir, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
3603
3603
  he._InternalPanelDoNotUseOrYouWillBeFired = ar;
@@ -3653,16 +3653,16 @@ const dr = /* @__PURE__ */ l.forwardRef((e, t) => {
3653
3653
  children: p,
3654
3654
  direction: v = "horizontal",
3655
3655
  prefixCls: h,
3656
- split: y,
3656
+ split: C,
3657
3657
  style: b,
3658
3658
  wrap: S = !1,
3659
3659
  classNames: $,
3660
3660
  styles: O
3661
3661
  } = e, H = cr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [R, M] = Array.isArray(d) ? d : [d, d], I = bt(M), w = bt(R), B = ht(M), z = ht(R), N = qe(p, {
3662
3662
  keepEmpty: !0
3663
- }), C = f === void 0 && v === "horizontal" ? "center" : f, P = n("space", h), [A, j, L] = To(P), F = _(P, i, j, `${P}-${v}`, {
3663
+ }), y = f === void 0 && v === "horizontal" ? "center" : f, P = n("space", h), [A, j, L] = To(P), F = _(P, i, j, `${P}-${v}`, {
3664
3664
  [`${P}-rtl`]: r === "rtl",
3665
- [`${P}-align-${C}`]: C,
3665
+ [`${P}-align-${y}`]: y,
3666
3666
  [`${P}-gap-row-${M}`]: I,
3667
3667
  [`${P}-gap-col-${R}`]: w
3668
3668
  }, m, g, L), V = _(`${P}-item`, (o = $ == null ? void 0 : $.item) !== null && o !== void 0 ? o : c.item);
@@ -3675,7 +3675,7 @@ const dr = /* @__PURE__ */ l.forwardRef((e, t) => {
3675
3675
  className: V,
3676
3676
  key: x,
3677
3677
  index: Z,
3678
- split: y,
3678
+ split: C,
3679
3679
  style: (Y = O == null ? void 0 : O.item) !== null && Y !== void 0 ? Y : u.item
3680
3680
  }, G);
3681
3681
  }), W = l.useMemo(() => ({
@@ -3720,7 +3720,7 @@ const Vt = (e) => {
3720
3720
  arrow: p,
3721
3721
  autoFocus: v,
3722
3722
  overlay: h,
3723
- trigger: y,
3723
+ trigger: C,
3724
3724
  align: b,
3725
3725
  open: S,
3726
3726
  onOpenChange: $,
@@ -3733,7 +3733,7 @@ const Vt = (e) => {
3733
3733
  mouseEnterDelay: B,
3734
3734
  mouseLeaveDelay: z,
3735
3735
  overlayClassName: N,
3736
- overlayStyle: C,
3736
+ overlayStyle: y,
3737
3737
  destroyPopupOnHide: P,
3738
3738
  dropdownRender: A
3739
3739
  } = e, j = ur(e, ["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", "destroyPopupOnHide", "dropdownRender"]), L = o("dropdown", r), F = `${L}-button`, V = {
@@ -3742,13 +3742,13 @@ const Vt = (e) => {
3742
3742
  autoFocus: v,
3743
3743
  align: b,
3744
3744
  disabled: s,
3745
- trigger: s ? [] : y,
3745
+ trigger: s ? [] : C,
3746
3746
  onOpenChange: $,
3747
3747
  getPopupContainer: H || t,
3748
3748
  mouseEnterDelay: B,
3749
3749
  mouseLeaveDelay: z,
3750
3750
  overlayClassName: N,
3751
- overlayStyle: C,
3751
+ overlayStyle: y,
3752
3752
  destroyPopupOnHide: P,
3753
3753
  dropdownRender: A
3754
3754
  }, {