@amateescu/portal-ui-components 0.0.33 → 0.0.35-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 (35) hide show
  1. package/dist/{Box-D-aleOLf.js → Box-C-zPAMZN.js} +1 -1
  2. package/dist/{Button-xgiLW4_3.js → Button-DG4uye8X.js} +3 -3
  3. package/dist/{ButtonBase-DUKuDCWw.js → ButtonBase-DrxMtoTW.js} +1 -1
  4. package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-DpvktFBW.js} +1 -1
  5. package/dist/{EllipsisOutlined-CmR4hXJ_.js → EllipsisOutlined-DfCu6q_b.js} +816 -816
  6. package/dist/{PurePanel-CykVuv66.js → PurePanel-DvQTygSo.js} +487 -491
  7. package/dist/{Skeleton-BBwDqRB3.js → Skeleton-Bh0A9xju.js} +15 -18
  8. package/dist/{UserInfoDropdown-GTCkmg6H.js → UserInfoDropdown-CWTcdnqL.js} +1186 -1221
  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/CustomButton/CustomButton.stories.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +4 -4
  14. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +715 -682
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
  20. package/dist/components/Login/Login.js +775 -760
  21. package/dist/components/Login/Login.stories.js +4 -1
  22. package/dist/components/SideMenu/SideMenu.js +9 -9
  23. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/context-dCWAMvX5.js +7320 -0
  27. package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +3457 -0
  28. package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-DNSRtm3a.js} +1 -1
  29. package/dist/index-B00P9-H3.js +1681 -0
  30. package/dist/main.js +1 -1
  31. package/dist/{useSlot-Baxtq84W.js → useSlot-B4sbbhYz.js} +2 -2
  32. package/package.json +28 -28
  33. package/dist/context-4ttylmIf.js +0 -7356
  34. package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
  35. package/dist/index-Dz00OoV7.js +0 -1687
@@ -1,13 +1,13 @@
1
- import { jsx as Ce, jsxs as eo } from "react/jsx-runtime";
1
+ import { jsx as we, jsxs as no } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import $t, { useRef as Be, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as He, createContext as to } from "react";
4
- import { cn as oo } from "./portal-utils/cn.js";
5
- import { _ as ze } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
6
- import { I as Ve, K as le, H as no, U as We, ah as ro, g as de, m as ce, y as ve, u as O, a2 as io, a as ie, E as ao, v as be, D as je, c as _, p as lo, N as so, e as se, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as Ge, o as he, 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-4ttylmIf.js";
7
- import { R as ho, T as $o, c as yo, M as Co, a as Se, 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-CmR4hXJ_.js";
8
- import { P as fe, i as Te, C as St, b as zo, u as qe, d as ue, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-CykVuv66.js";
9
- import './assets/UserInfoDropdown.css';function Mo(e, t) {
10
- return fe.reduce((o, n) => {
3
+ import Ct, { useRef as ze, forwardRef as We, useImperativeHandle as wt, isValidElement as ro, useContext as nt, useState as rt, useEffect as Le, createContext as io } from "react";
4
+ import { cn as ao } from "./portal-utils/cn.js";
5
+ import { _ as je } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
6
+ import { I as Xe, K as ae, H as lo, U as Fe, ah as so, g as de, m as ce, y as be, u as I, a2 as co, a as re, E as uo, v as he, D as Te, c as _, p as mo, N as po, e as se, l as it, b as Ge, s as Ye, t as xt, j as go, x as Ue, o as $e, an as fo, n as vo, a4 as bo, A as ho, z as $o, F as at, aa as lt, ad as yo, k as St, ao as Co, B as st } from "./context-dCWAMvX5.js";
7
+ import { R as wo, T as xo, c as So, M as Oo, a as Oe, u as Io, S as Po, E as Eo, b as Ot, d as No, s as Bo, e as zo, f as jo, g as To, D as _o } from "./EllipsisOutlined-DfCu6q_b.js";
8
+ import { P as ve, i as _e, C as It, d as Ro, u as qe, e as ue, z as Pt, g as Mo, f as Ho, h as Do, j as Ao, B as ct } from "./PurePanel-DvQTygSo.js";
9
+ import './assets/UserInfoDropdown.css';function Lo(e, t) {
10
+ return ve.reduce((o, n) => {
11
11
  const r = e[`${n}1`], a = e[`${n}3`], i = e[`${n}6`], s = e[`${n}7`];
12
12
  return Object.assign(Object.assign({}, o), t(n, {
13
13
  lightColor: r,
@@ -17,14 +17,14 @@ import './assets/UserInfoDropdown.css';function Mo(e, t) {
17
17
  }));
18
18
  }, {});
19
19
  }
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, ze({}, t, {
20
+ var ko = { 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" }, Vo = function(t, o) {
21
+ return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
22
22
  ref: o,
23
- icon: Do
23
+ icon: ko
24
24
  }));
25
- }, Oe = /* @__PURE__ */ l.forwardRef(Ho);
26
- process.env.NODE_ENV !== "production" && (Oe.displayName = "RightOutlined");
27
- const Ao = (e) => ({
25
+ }, Ie = /* @__PURE__ */ l.forwardRef(Vo);
26
+ process.env.NODE_ENV !== "production" && (Ie.displayName = "RightOutlined");
27
+ const Wo = (e) => ({
28
28
  [e.componentCls]: {
29
29
  // For common/openAnimation
30
30
  [`${e.antCls}-motion-collapse-legacy`]: {
@@ -40,7 +40,7 @@ const Ao = (e) => ({
40
40
  opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
41
41
  }
42
42
  }
43
- }), Lo = new le("antMoveDownIn", {
43
+ }), Xo = new ae("antMoveDownIn", {
44
44
  "0%": {
45
45
  transform: "translate3d(0, 100%, 0)",
46
46
  transformOrigin: "0 0",
@@ -51,7 +51,7 @@ const Ao = (e) => ({
51
51
  transformOrigin: "0 0",
52
52
  opacity: 1
53
53
  }
54
- }), ko = new le("antMoveDownOut", {
54
+ }), Fo = new ae("antMoveDownOut", {
55
55
  "0%": {
56
56
  transform: "translate3d(0, 0, 0)",
57
57
  transformOrigin: "0 0",
@@ -62,7 +62,7 @@ const Ao = (e) => ({
62
62
  transformOrigin: "0 0",
63
63
  opacity: 0
64
64
  }
65
- }), Vo = new le("antMoveLeftIn", {
65
+ }), Go = new ae("antMoveLeftIn", {
66
66
  "0%": {
67
67
  transform: "translate3d(-100%, 0, 0)",
68
68
  transformOrigin: "0 0",
@@ -73,7 +73,7 @@ const Ao = (e) => ({
73
73
  transformOrigin: "0 0",
74
74
  opacity: 1
75
75
  }
76
- }), Wo = new le("antMoveLeftOut", {
76
+ }), Yo = new ae("antMoveLeftOut", {
77
77
  "0%": {
78
78
  transform: "translate3d(0, 0, 0)",
79
79
  transformOrigin: "0 0",
@@ -84,7 +84,7 @@ const Ao = (e) => ({
84
84
  transformOrigin: "0 0",
85
85
  opacity: 0
86
86
  }
87
- }), Xo = new le("antMoveRightIn", {
87
+ }), Uo = new ae("antMoveRightIn", {
88
88
  "0%": {
89
89
  transform: "translate3d(100%, 0, 0)",
90
90
  transformOrigin: "0 0",
@@ -95,7 +95,7 @@ const Ao = (e) => ({
95
95
  transformOrigin: "0 0",
96
96
  opacity: 1
97
97
  }
98
- }), Fo = new le("antMoveRightOut", {
98
+ }), qo = new ae("antMoveRightOut", {
99
99
  "0%": {
100
100
  transform: "translate3d(0, 0, 0)",
101
101
  transformOrigin: "0 0",
@@ -106,7 +106,7 @@ const Ao = (e) => ({
106
106
  transformOrigin: "0 0",
107
107
  opacity: 0
108
108
  }
109
- }), Go = new le("antMoveUpIn", {
109
+ }), Ko = new ae("antMoveUpIn", {
110
110
  "0%": {
111
111
  transform: "translate3d(0, -100%, 0)",
112
112
  transformOrigin: "0 0",
@@ -117,7 +117,7 @@ const Ao = (e) => ({
117
117
  transformOrigin: "0 0",
118
118
  opacity: 1
119
119
  }
120
- }), qo = new le("antMoveUpOut", {
120
+ }), Zo = new ae("antMoveUpOut", {
121
121
  "0%": {
122
122
  transform: "translate3d(0, 0, 0)",
123
123
  transformOrigin: "0 0",
@@ -128,31 +128,31 @@ const Ao = (e) => ({
128
128
  transformOrigin: "0 0",
129
129
  opacity: 0
130
130
  }
131
- }), Yo = {
131
+ }), Qo = {
132
132
  "move-up": {
133
- inKeyframes: Go,
134
- outKeyframes: qo
133
+ inKeyframes: Ko,
134
+ outKeyframes: Zo
135
135
  },
136
136
  "move-down": {
137
- inKeyframes: Lo,
138
- outKeyframes: ko
137
+ inKeyframes: Xo,
138
+ outKeyframes: Fo
139
139
  },
140
140
  "move-left": {
141
- inKeyframes: Vo,
142
- outKeyframes: Wo
141
+ inKeyframes: Go,
142
+ outKeyframes: Yo
143
143
  },
144
144
  "move-right": {
145
- inKeyframes: Xo,
146
- outKeyframes: Fo
145
+ inKeyframes: Uo,
146
+ outKeyframes: qo
147
147
  }
148
- }, st = (e, t) => {
148
+ }, dt = (e, t) => {
149
149
  const {
150
150
  antCls: o
151
151
  } = e, n = `${o}-${t}`, {
152
152
  inKeyframes: r,
153
153
  outKeyframes: a
154
- } = Yo[t];
155
- return [no(n, r, a, e.motionDurationMid), {
154
+ } = Qo[t];
155
+ return [lo(n, r, a, e.motionDurationMid), {
156
156
  [`
157
157
  ${n}-enter,
158
158
  ${n}-appear
@@ -164,15 +164,19 @@ const Ao = (e) => ({
164
164
  animationTimingFunction: e.motionEaseInOutCirc
165
165
  }
166
166
  }];
167
- }, It = ["xxl", "xl", "lg", "md", "sm", "xs"], Uo = (e) => ({
167
+ }, Et = (e, t) => {
168
+ typeof (e == null ? void 0 : e.addEventListener) < "u" ? e.addEventListener("change", t) : typeof (e == null ? void 0 : e.addListener) < "u" && e.addListener(t);
169
+ }, Nt = (e, t) => {
170
+ typeof (e == null ? void 0 : e.removeEventListener) < "u" ? e.removeEventListener("change", t) : typeof (e == null ? void 0 : e.removeListener) < "u" && e.removeListener(t);
171
+ }, Bt = ["xxl", "xl", "lg", "md", "sm", "xs"], Jo = (e) => ({
168
172
  xs: `(max-width: ${e.screenXSMax}px)`,
169
173
  sm: `(min-width: ${e.screenSM}px)`,
170
174
  md: `(min-width: ${e.screenMD}px)`,
171
175
  lg: `(min-width: ${e.screenLG}px)`,
172
176
  xl: `(min-width: ${e.screenXL}px)`,
173
177
  xxl: `(min-width: ${e.screenXXL}px)`
174
- }), Ko = (e) => {
175
- const t = e, o = [].concat(It).reverse();
178
+ }), en = (e) => {
179
+ const t = e, o = [].concat(Bt).reverse();
176
180
  return o.forEach((n, r) => {
177
181
  const a = n.toUpperCase(), i = `screen${a}Min`, s = `screen${a}`;
178
182
  if (!(t[i] <= t[s]))
@@ -186,9 +190,9 @@ const Ao = (e) => ({
186
190
  throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);
187
191
  }
188
192
  }), e;
189
- }, Zo = () => {
190
- const [, e] = We(), t = Uo(Ko(e));
191
- return $t.useMemo(() => {
193
+ }, tn = () => {
194
+ const [, e] = Fe(), t = Jo(en(e));
195
+ return Ct.useMemo(() => {
192
196
  const o = /* @__PURE__ */ new Map();
193
197
  let n = -1, r = {};
194
198
  return {
@@ -204,45 +208,43 @@ const Ao = (e) => ({
204
208
  o.delete(a), o.size || this.unregister();
205
209
  },
206
210
  register() {
207
- Object.keys(t).forEach((a) => {
208
- const i = t[a], s = (u) => {
209
- let {
210
- matches: d
211
- } = u;
211
+ Object.entries(t).forEach(([a, i]) => {
212
+ const s = ({
213
+ matches: m
214
+ }) => {
212
215
  this.dispatch(Object.assign(Object.assign({}, r), {
213
- [a]: d
216
+ [a]: m
214
217
  }));
215
218
  }, c = window.matchMedia(i);
216
- c.addListener(s), this.matchHandlers[i] = {
219
+ Et(c, s), this.matchHandlers[i] = {
217
220
  mql: c,
218
221
  listener: s
219
222
  }, s(c);
220
223
  });
221
224
  },
222
225
  unregister() {
223
- Object.keys(t).forEach((a) => {
224
- const i = t[a], s = this.matchHandlers[i];
225
- s == null || s.mql.removeListener(s == null ? void 0 : s.listener);
226
+ Object.values(t).forEach((a) => {
227
+ const i = this.matchHandlers[a];
228
+ Nt(i == null ? void 0 : i.mql, i == null ? void 0 : i.listener);
226
229
  }), o.clear();
227
230
  }
228
231
  };
229
232
  }, [e]);
230
233
  };
231
- function Qo() {
234
+ function on() {
232
235
  const [, e] = l.useReducer((t) => t + 1, 0);
233
236
  return e;
234
237
  }
235
- function Jo() {
236
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
237
- const o = Be(t), n = Qo(), r = Zo();
238
- return ro(() => {
238
+ function nn(e = !0, t = {}) {
239
+ const o = ze(t), n = on(), r = tn();
240
+ return so(() => {
239
241
  const a = r.subscribe((i) => {
240
242
  o.current = i, e && n();
241
243
  });
242
244
  return () => r.unsubscribe(a);
243
245
  }, []), o.current;
244
246
  }
245
- const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
247
+ const Ve = /* @__PURE__ */ l.createContext({}), rn = (e) => {
246
248
  const {
247
249
  antCls: t,
248
250
  componentCls: o,
@@ -252,20 +254,20 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
252
254
  containerSize: i,
253
255
  containerSizeLG: s,
254
256
  containerSizeSM: c,
255
- textFontSize: u,
257
+ textFontSize: m,
256
258
  textFontSizeLG: d,
257
259
  textFontSizeSM: f,
258
- borderRadius: m,
260
+ borderRadius: p,
259
261
  borderRadiusLG: v,
260
- borderRadiusSM: p,
261
- lineWidth: g,
262
+ borderRadiusSM: g,
263
+ lineWidth: u,
262
264
  lineType: h
263
- } = e, C = (b, S, $) => ({
265
+ } = e, $ = (b, S, N) => ({
264
266
  width: b,
265
267
  height: b,
266
268
  borderRadius: "50%",
267
269
  [`&${o}-square`]: {
268
- borderRadius: $
270
+ borderRadius: N
269
271
  },
270
272
  [`&${o}-icon`]: {
271
273
  fontSize: S,
@@ -275,7 +277,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
275
277
  }
276
278
  });
277
279
  return {
278
- [o]: Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), {
280
+ [o]: Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), {
279
281
  position: "relative",
280
282
  display: "inline-flex",
281
283
  justifyContent: "center",
@@ -286,16 +288,16 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
286
288
  textAlign: "center",
287
289
  verticalAlign: "middle",
288
290
  background: r,
289
- border: `${O(g)} ${h} transparent`,
291
+ border: `${I(u)} ${h} transparent`,
290
292
  "&-image": {
291
293
  background: "transparent"
292
294
  },
293
295
  [`${t}-image-img`]: {
294
296
  display: "block"
295
297
  }
296
- }), C(i, u, m)), {
297
- "&-lg": Object.assign({}, C(s, d, v)),
298
- "&-sm": Object.assign({}, C(c, f, p)),
298
+ }), $(i, m, p)), {
299
+ "&-lg": Object.assign({}, $(s, d, v)),
300
+ "&-sm": Object.assign({}, $(c, f, g)),
299
301
  "> img": {
300
302
  display: "block",
301
303
  width: "100%",
@@ -304,7 +306,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
304
306
  }
305
307
  })
306
308
  };
307
- }, tn = (e) => {
309
+ }, an = (e) => {
308
310
  const {
309
311
  componentCls: t,
310
312
  groupBorderColor: o,
@@ -327,7 +329,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
327
329
  }
328
330
  }
329
331
  };
330
- }, on = (e) => {
332
+ }, ln = (e) => {
331
333
  const {
332
334
  controlHeight: t,
333
335
  controlHeightLG: o,
@@ -337,7 +339,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
337
339
  fontSizeXL: i,
338
340
  fontSizeHeading3: s,
339
341
  marginXS: c,
340
- marginXXS: u,
342
+ marginXXS: m,
341
343
  colorBorderBg: d
342
344
  } = e;
343
345
  return {
@@ -347,11 +349,11 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
347
349
  textFontSize: Math.round((a + i) / 2),
348
350
  textFontSizeLG: s,
349
351
  textFontSizeSM: r,
350
- groupSpace: u,
352
+ groupSpace: m,
351
353
  groupOverlapping: -c,
352
354
  groupBorderColor: d
353
355
  };
354
- }, Nt = de("Avatar", (e) => {
356
+ }, zt = de("Avatar", (e) => {
355
357
  const {
356
358
  colorTextLightSolid: t,
357
359
  colorTextPlaceholder: o
@@ -359,16 +361,16 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
359
361
  avatarBg: o,
360
362
  avatarColor: t
361
363
  });
362
- return [en(n), tn(n)];
363
- }, on);
364
- var nn = function(e, t) {
364
+ return [rn(n), an(n)];
365
+ }, ln);
366
+ var sn = function(e, t) {
365
367
  var o = {};
366
368
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
367
369
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
368
370
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
369
371
  return o;
370
372
  };
371
- const Ye = /* @__PURE__ */ l.forwardRef((e, t) => {
373
+ const Ke = /* @__PURE__ */ l.forwardRef((e, t) => {
372
374
  const {
373
375
  prefixCls: o,
374
376
  shape: n,
@@ -377,102 +379,102 @@ const Ye = /* @__PURE__ */ l.forwardRef((e, t) => {
377
379
  srcSet: i,
378
380
  icon: s,
379
381
  className: c,
380
- rootClassName: u,
382
+ rootClassName: m,
381
383
  style: d,
382
384
  alt: f,
383
- draggable: m,
385
+ draggable: p,
384
386
  children: v,
385
- crossOrigin: p,
386
- gap: g = 4,
387
+ crossOrigin: g,
388
+ gap: u = 4,
387
389
  onError: h
388
- } = e, C = nn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]), [b, S] = l.useState(1), [$, B] = l.useState(!1), [M, R] = l.useState(!0), T = l.useRef(null), w = l.useRef(null), x = io(t, T), {
389
- getPrefixCls: P,
390
- avatar: I
391
- } = l.useContext(ie), z = l.useContext(Le), y = () => {
392
- if (!w.current || !T.current)
390
+ } = e, $ = sn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]), [b, S] = l.useState(1), [N, y] = l.useState(!1), [M, j] = l.useState(!0), T = l.useRef(null), O = l.useRef(null), E = co(t, T), {
391
+ getPrefixCls: H,
392
+ avatar: x
393
+ } = l.useContext(re), C = l.useContext(Ve), w = () => {
394
+ if (!O.current || !T.current)
393
395
  return;
394
- const X = w.current.offsetWidth, Y = T.current.offsetWidth;
395
- X !== 0 && Y !== 0 && g * 2 < Y && S(Y - g * 2 < X ? (Y - g * 2) / X : 1);
396
+ const V = O.current.offsetWidth, Y = T.current.offsetWidth;
397
+ V !== 0 && Y !== 0 && u * 2 < Y && S(Y - u * 2 < V ? (Y - u * 2) / V : 1);
396
398
  };
397
399
  l.useEffect(() => {
398
- B(!0);
400
+ y(!0);
399
401
  }, []), l.useEffect(() => {
400
- R(!0), S(1);
401
- }, [a]), l.useEffect(y, [g]);
402
- const N = () => {
403
- (h == null ? void 0 : h()) !== !1 && R(!1);
404
- }, E = ao((X) => {
405
- var Y, J;
406
- return (J = (Y = r ?? (z == null ? void 0 : z.size)) !== null && Y !== void 0 ? Y : X) !== null && J !== void 0 ? J : "default";
407
- }), A = Object.keys(typeof E == "object" ? E || {} : {}).some((X) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(X)), L = Jo(A), F = l.useMemo(() => {
408
- if (typeof E != "object")
402
+ j(!0), S(1);
403
+ }, [a]), l.useEffect(w, [u]);
404
+ const B = () => {
405
+ (h == null ? void 0 : h()) !== !1 && j(!1);
406
+ }, P = uo((V) => {
407
+ var Y, ne;
408
+ return (ne = (Y = r ?? (C == null ? void 0 : C.size)) !== null && Y !== void 0 ? Y : V) !== null && ne !== void 0 ? ne : "default";
409
+ }), L = Object.keys(typeof P == "object" ? P || {} : {}).some((V) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(V)), z = nn(L), F = l.useMemo(() => {
410
+ if (typeof P != "object")
409
411
  return {};
410
- const X = It.find((J) => L[J]), Y = E[X];
412
+ const V = Bt.find((ne) => z[ne]), Y = P[V];
411
413
  return Y ? {
412
414
  width: Y,
413
415
  height: Y,
414
416
  fontSize: Y && (s || v) ? Y / 2 : 18
415
417
  } : {};
416
- }, [L, E]);
418
+ }, [z, P]);
417
419
  if (process.env.NODE_ENV !== "production") {
418
- const X = be("Avatar");
419
- process.env.NODE_ENV !== "production" && X(!(typeof s == "string" && s.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${s}\` at https://ant.design/components/icon`);
420
+ const V = he("Avatar");
421
+ process.env.NODE_ENV !== "production" && V(!(typeof s == "string" && s.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${s}\` at https://ant.design/components/icon`);
420
422
  }
421
- const j = P("avatar", o), H = je(j), [D, W, G] = Nt(j, H), q = _({
422
- [`${j}-lg`]: E === "large",
423
- [`${j}-sm`]: E === "small"
424
- }), Z = /* @__PURE__ */ l.isValidElement(a), ee = n || (z == null ? void 0 : z.shape) || "circle", k = _(j, q, I == null ? void 0 : I.className, `${j}-${ee}`, {
425
- [`${j}-image`]: Z || a && M,
426
- [`${j}-icon`]: !!s
427
- }, G, H, c, u, W), U = typeof E == "number" ? {
428
- width: E,
429
- height: E,
430
- fontSize: s ? E / 2 : 18
423
+ const D = H("avatar", o), A = Te(D), [k, R, W] = zt(D, A), G = _({
424
+ [`${D}-lg`]: P === "large",
425
+ [`${D}-sm`]: P === "small"
426
+ }), q = /* @__PURE__ */ l.isValidElement(a), Q = n || (C == null ? void 0 : C.shape) || "circle", X = _(D, G, x == null ? void 0 : x.className, `${D}-${Q}`, {
427
+ [`${D}-image`]: q || a && M,
428
+ [`${D}-icon`]: !!s
429
+ }, W, A, c, m, R), Z = typeof P == "number" ? {
430
+ width: P,
431
+ height: P,
432
+ fontSize: s ? P / 2 : 18
431
433
  } : {};
432
- let Q;
434
+ let J;
433
435
  if (typeof a == "string" && M)
434
- Q = /* @__PURE__ */ l.createElement("img", {
436
+ J = /* @__PURE__ */ l.createElement("img", {
435
437
  src: a,
436
- draggable: m,
438
+ draggable: p,
437
439
  srcSet: i,
438
- onError: N,
440
+ onError: B,
439
441
  alt: f,
440
- crossOrigin: p
442
+ crossOrigin: g
441
443
  });
442
- else if (Z)
443
- Q = a;
444
+ else if (q)
445
+ J = a;
444
446
  else if (s)
445
- Q = s;
446
- else if ($ || b !== 1) {
447
- const X = `scale(${b})`, Y = {
448
- msTransform: X,
449
- WebkitTransform: X,
450
- transform: X
447
+ J = s;
448
+ else if (N || b !== 1) {
449
+ const V = `scale(${b})`, Y = {
450
+ msTransform: V,
451
+ WebkitTransform: V,
452
+ transform: V
451
453
  };
452
- Q = /* @__PURE__ */ l.createElement(ho, {
453
- onResize: y
454
+ J = /* @__PURE__ */ l.createElement(wo, {
455
+ onResize: w
454
456
  }, /* @__PURE__ */ l.createElement("span", {
455
- className: `${j}-string`,
456
- ref: w,
457
+ className: `${D}-string`,
458
+ ref: O,
457
459
  style: Object.assign({}, Y)
458
460
  }, v));
459
461
  } else
460
- Q = /* @__PURE__ */ l.createElement("span", {
461
- className: `${j}-string`,
462
+ J = /* @__PURE__ */ l.createElement("span", {
463
+ className: `${D}-string`,
462
464
  style: {
463
465
  opacity: 0
464
466
  },
465
- ref: w
467
+ ref: O
466
468
  }, v);
467
- return D(/* @__PURE__ */ l.createElement("span", Object.assign({}, C, {
468
- style: Object.assign(Object.assign(Object.assign(Object.assign({}, U), F), I == null ? void 0 : I.style), d),
469
- className: k,
470
- ref: x
471
- }), Q));
469
+ return k(/* @__PURE__ */ l.createElement("span", Object.assign({}, $, {
470
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, Z), F), x == null ? void 0 : x.style), d),
471
+ className: X,
472
+ ref: E
473
+ }), J));
472
474
  });
473
- process.env.NODE_ENV !== "production" && (Ye.displayName = "Avatar");
474
- const Ie = (e) => e ? typeof e == "function" ? e() : e : null;
475
- function Ue(e) {
475
+ process.env.NODE_ENV !== "production" && (Ke.displayName = "Avatar");
476
+ const Pe = (e) => e ? typeof e == "function" ? e() : e : null;
477
+ function Ze(e) {
476
478
  var t = e.children, o = e.prefixCls, n = e.id, r = e.overlayInnerStyle, a = e.bodyClassName, i = e.className, s = e.style;
477
479
  return /* @__PURE__ */ l.createElement("div", {
478
480
  className: _("".concat(o, "-content"), i),
@@ -484,145 +486,145 @@ function Ue(e) {
484
486
  style: r
485
487
  }, typeof t == "function" ? t() : t));
486
488
  }
487
- var me = {
489
+ var pe = {
488
490
  shiftX: 64,
489
491
  adjustY: 1
490
- }, pe = {
492
+ }, ge = {
491
493
  adjustX: 1,
492
494
  shiftY: !0
493
- }, oe = [0, 0], rn = {
495
+ }, te = [0, 0], cn = {
494
496
  left: {
495
497
  points: ["cr", "cl"],
496
- overflow: pe,
498
+ overflow: ge,
497
499
  offset: [-4, 0],
498
- targetOffset: oe
500
+ targetOffset: te
499
501
  },
500
502
  right: {
501
503
  points: ["cl", "cr"],
502
- overflow: pe,
504
+ overflow: ge,
503
505
  offset: [4, 0],
504
- targetOffset: oe
506
+ targetOffset: te
505
507
  },
506
508
  top: {
507
509
  points: ["bc", "tc"],
508
- overflow: me,
510
+ overflow: pe,
509
511
  offset: [0, -4],
510
- targetOffset: oe
512
+ targetOffset: te
511
513
  },
512
514
  bottom: {
513
515
  points: ["tc", "bc"],
514
- overflow: me,
516
+ overflow: pe,
515
517
  offset: [0, 4],
516
- targetOffset: oe
518
+ targetOffset: te
517
519
  },
518
520
  topLeft: {
519
521
  points: ["bl", "tl"],
520
- overflow: me,
522
+ overflow: pe,
521
523
  offset: [0, -4],
522
- targetOffset: oe
524
+ targetOffset: te
523
525
  },
524
526
  leftTop: {
525
527
  points: ["tr", "tl"],
526
- overflow: pe,
528
+ overflow: ge,
527
529
  offset: [-4, 0],
528
- targetOffset: oe
530
+ targetOffset: te
529
531
  },
530
532
  topRight: {
531
533
  points: ["br", "tr"],
532
- overflow: me,
534
+ overflow: pe,
533
535
  offset: [0, -4],
534
- targetOffset: oe
536
+ targetOffset: te
535
537
  },
536
538
  rightTop: {
537
539
  points: ["tl", "tr"],
538
- overflow: pe,
540
+ overflow: ge,
539
541
  offset: [4, 0],
540
- targetOffset: oe
542
+ targetOffset: te
541
543
  },
542
544
  bottomRight: {
543
545
  points: ["tr", "br"],
544
- overflow: me,
546
+ overflow: pe,
545
547
  offset: [0, 4],
546
- targetOffset: oe
548
+ targetOffset: te
547
549
  },
548
550
  rightBottom: {
549
551
  points: ["bl", "br"],
550
- overflow: pe,
552
+ overflow: ge,
551
553
  offset: [4, 0],
552
- targetOffset: oe
554
+ targetOffset: te
553
555
  },
554
556
  bottomLeft: {
555
557
  points: ["tl", "bl"],
556
- overflow: me,
558
+ overflow: pe,
557
559
  offset: [0, 4],
558
- targetOffset: oe
560
+ targetOffset: te
559
561
  },
560
562
  leftBottom: {
561
563
  points: ["br", "bl"],
562
- overflow: pe,
564
+ overflow: ge,
563
565
  offset: [-4, 0],
564
- targetOffset: oe
566
+ targetOffset: te
565
567
  }
566
- }, an = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ln = function(t, o) {
567
- 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, v = t.children, p = t.onVisibleChange, g = t.afterVisibleChange, h = t.transitionName, C = t.animation, b = t.motion, S = t.placement, $ = S === void 0 ? "right" : S, B = t.align, M = B === void 0 ? {} : B, R = t.destroyTooltipOnHide, T = R === void 0 ? !1 : R, w = t.defaultVisible, x = t.getTooltipContainer, P = t.overlayInnerStyle;
568
+ }, dn = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], un = function(t, o) {
569
+ 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, m = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, v = t.children, g = t.onVisibleChange, u = t.afterVisibleChange, h = t.transitionName, $ = t.animation, b = t.motion, S = t.placement, N = S === void 0 ? "right" : S, y = t.align, M = y === void 0 ? {} : y, j = t.destroyTooltipOnHide, T = j === void 0 ? !1 : j, O = t.defaultVisible, E = t.getTooltipContainer, H = t.overlayInnerStyle;
568
570
  t.arrowContent;
569
- var I = t.overlay, z = t.id, y = t.showArrow, N = y === void 0 ? !0 : y, E = t.classNames, A = t.styles, L = lo(t, an), F = so(z), j = Be(null);
570
- yt(o, function() {
571
- return j.current;
571
+ var x = t.overlay, C = t.id, w = t.showArrow, B = w === void 0 ? !0 : w, P = t.classNames, L = t.styles, z = mo(t, dn), F = po(C), D = ze(null);
572
+ wt(o, function() {
573
+ return D.current;
572
574
  });
573
- var H = se({}, L);
574
- "visible" in t && (H.popupVisible = t.visible);
575
- var D = function() {
576
- return /* @__PURE__ */ l.createElement(Ue, {
575
+ var A = se({}, z);
576
+ "visible" in t && (A.popupVisible = t.visible);
577
+ var k = function() {
578
+ return /* @__PURE__ */ l.createElement(Ze, {
577
579
  key: "content",
578
- prefixCls: m,
580
+ prefixCls: p,
579
581
  id: F,
580
- bodyClassName: E == null ? void 0 : E.body,
581
- overlayInnerStyle: se(se({}, P), A == null ? void 0 : A.body)
582
- }, I);
583
- }, W = function() {
584
- var q = l.Children.only(v), Z = (q == null ? void 0 : q.props) || {}, ee = se(se({}, Z), {}, {
585
- "aria-describedby": I ? F : null
582
+ bodyClassName: P == null ? void 0 : P.body,
583
+ overlayInnerStyle: se(se({}, H), L == null ? void 0 : L.body)
584
+ }, x);
585
+ }, R = function() {
586
+ var G = l.Children.only(v), q = (G == null ? void 0 : G.props) || {}, Q = se(se({}, q), {}, {
587
+ "aria-describedby": x ? F : null
586
588
  });
587
- return /* @__PURE__ */ l.cloneElement(v, ee);
589
+ return /* @__PURE__ */ l.cloneElement(v, Q);
588
590
  };
589
- return /* @__PURE__ */ l.createElement($o, ze({
590
- popupClassName: _(n, E == null ? void 0 : E.root),
591
- prefixCls: m,
592
- popup: D,
591
+ return /* @__PURE__ */ l.createElement(xo, je({
592
+ popupClassName: _(n, P == null ? void 0 : P.root),
593
+ prefixCls: p,
594
+ popup: k,
593
595
  action: a,
594
- builtinPlacements: rn,
595
- popupPlacement: $,
596
- ref: j,
596
+ builtinPlacements: cn,
597
+ popupPlacement: N,
598
+ ref: D,
597
599
  popupAlign: M,
598
- getPopupContainer: x,
599
- onPopupVisibleChange: p,
600
- afterPopupVisibleChange: g,
600
+ getPopupContainer: E,
601
+ onPopupVisibleChange: g,
602
+ afterPopupVisibleChange: u,
601
603
  popupTransitionName: h,
602
- popupAnimation: C,
604
+ popupAnimation: $,
603
605
  popupMotion: b,
604
- defaultPopupVisible: w,
606
+ defaultPopupVisible: O,
605
607
  autoDestroy: T,
606
- mouseLeaveDelay: u,
607
- popupStyle: se(se({}, d), A == null ? void 0 : A.root),
608
+ mouseLeaveDelay: m,
609
+ popupStyle: se(se({}, d), L == null ? void 0 : L.root),
608
610
  mouseEnterDelay: s,
609
- arrow: N
610
- }, H), W());
611
+ arrow: B
612
+ }, A), R());
611
613
  };
612
- const sn = /* @__PURE__ */ ke(ln);
613
- function Ke(e) {
614
+ const mn = /* @__PURE__ */ We(un);
615
+ function Qe(e) {
614
616
  const {
615
617
  sizePopupArrow: t,
616
618
  borderRadiusXS: o,
617
619
  borderRadiusOuter: n
618
- } = 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, v = 2 * r - s, p = c, g = 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 ${v} ${p} A ${n} ${n} 0 0 0 ${g} ${h} Z')`;
620
+ } = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), m = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - m, p = d, v = 2 * r - s, g = c, u = 2 * r - a, h = i, $ = 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%)`, N = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${m} ${d} A ${o} ${o} 0 0 1 ${f} ${p} L ${v} ${g} A ${n} ${n} 0 0 0 ${u} ${h} Z')`;
619
621
  return {
620
- arrowShadowWidth: C,
621
- arrowPath: $,
622
+ arrowShadowWidth: $,
623
+ arrowPath: N,
622
624
  arrowPolygon: S
623
625
  };
624
626
  }
625
- const cn = (e, t, o) => {
627
+ const pn = (e, t, o) => {
626
628
  const {
627
629
  sizePopupArrow: n,
628
630
  arrowPolygon: r,
@@ -659,7 +661,7 @@ const cn = (e, t, o) => {
659
661
  margin: "auto",
660
662
  borderRadius: {
661
663
  _skip_check_: !0,
662
- value: `0 0 ${O(s)} 0`
664
+ value: `0 0 ${I(s)} 0`
663
665
  },
664
666
  transform: "translateY(50%) rotate(-135deg)",
665
667
  boxShadow: o,
@@ -667,21 +669,21 @@ const cn = (e, t, o) => {
667
669
  background: "transparent"
668
670
  }
669
671
  };
670
- }, Et = 8;
671
- function _e(e) {
672
+ }, jt = 8;
673
+ function Re(e) {
672
674
  const {
673
675
  contentRadius: t,
674
676
  limitVerticalRadius: o
675
677
  } = e, n = t > 12 ? t + 2 : 12;
676
678
  return {
677
679
  arrowOffsetHorizontal: n,
678
- arrowOffsetVertical: o ? Et : n
680
+ arrowOffsetVertical: o ? jt : n
679
681
  };
680
682
  }
681
- function we(e, t) {
683
+ function xe(e, t) {
682
684
  return e ? t : {};
683
685
  }
684
- function Ze(e, t, o) {
686
+ function Je(e, t, o) {
685
687
  const {
686
688
  componentCls: n,
687
689
  boxShadowPopoverArrow: r,
@@ -703,12 +705,12 @@ function Ze(e, t, o) {
703
705
  position: "absolute",
704
706
  zIndex: 1,
705
707
  display: "block"
706
- }, cn(e, t, r)), {
708
+ }, pn(e, t, r)), {
707
709
  "&:before": {
708
710
  background: t
709
711
  }
710
712
  })]
711
- }, we(!!c.top, {
713
+ }, xe(!!c.top, {
712
714
  [[`&-placement-top > ${n}-arrow`, `&-placement-topLeft > ${n}-arrow`, `&-placement-topRight > ${n}-arrow`].join(",")]: {
713
715
  bottom: s,
714
716
  transform: "translateY(100%) rotate(180deg)"
@@ -730,7 +732,7 @@ function Ze(e, t, o) {
730
732
  }
731
733
  },
732
734
  "&-placement-topRight": {
733
- "--arrow-offset-horizontal": `calc(100% - ${O(i)})`,
735
+ "--arrow-offset-horizontal": `calc(100% - ${I(i)})`,
734
736
  [`> ${n}-arrow`]: {
735
737
  right: {
736
738
  _skip_check_: !0,
@@ -738,7 +740,7 @@ function Ze(e, t, o) {
738
740
  }
739
741
  }
740
742
  }
741
- })), we(!!c.bottom, {
743
+ })), xe(!!c.bottom, {
742
744
  [[`&-placement-bottom > ${n}-arrow`, `&-placement-bottomLeft > ${n}-arrow`, `&-placement-bottomRight > ${n}-arrow`].join(",")]: {
743
745
  top: s,
744
746
  transform: "translateY(-100%)"
@@ -760,7 +762,7 @@ function Ze(e, t, o) {
760
762
  }
761
763
  },
762
764
  "&-placement-bottomRight": {
763
- "--arrow-offset-horizontal": `calc(100% - ${O(i)})`,
765
+ "--arrow-offset-horizontal": `calc(100% - ${I(i)})`,
764
766
  [`> ${n}-arrow`]: {
765
767
  right: {
766
768
  _skip_check_: !0,
@@ -768,7 +770,7 @@ function Ze(e, t, o) {
768
770
  }
769
771
  }
770
772
  }
771
- })), we(!!c.left, {
773
+ })), xe(!!c.left, {
772
774
  [[`&-placement-left > ${n}-arrow`, `&-placement-leftTop > ${n}-arrow`, `&-placement-leftBottom > ${n}-arrow`].join(",")]: {
773
775
  right: {
774
776
  _skip_check_: !0,
@@ -789,7 +791,7 @@ function Ze(e, t, o) {
789
791
  [`&-placement-leftBottom > ${n}-arrow`]: {
790
792
  bottom: a
791
793
  }
792
- })), we(!!c.right, {
794
+ })), xe(!!c.right, {
793
795
  [[`&-placement-right > ${n}-arrow`, `&-placement-rightTop > ${n}-arrow`, `&-placement-rightBottom > ${n}-arrow`].join(",")]: {
794
796
  left: {
795
797
  _skip_check_: !0,
@@ -813,7 +815,7 @@ function Ze(e, t, o) {
813
815
  }))
814
816
  };
815
817
  }
816
- function dn(e, t, o, n) {
818
+ function gn(e, t, o, n) {
817
819
  if (n === !1)
818
820
  return {
819
821
  adjustX: !1,
@@ -833,7 +835,7 @@ function dn(e, t, o, n) {
833
835
  const i = Object.assign(Object.assign({}, a), r);
834
836
  return i.shiftX || (i.adjustX = !0), i.shiftY || (i.adjustY = !0), i;
835
837
  }
836
- const ct = {
838
+ const ut = {
837
839
  left: {
838
840
  points: ["cr", "cl"]
839
841
  },
@@ -870,7 +872,7 @@ const ct = {
870
872
  leftBottom: {
871
873
  points: ["br", "bl"]
872
874
  }
873
- }, un = {
875
+ }, fn = {
874
876
  topLeft: {
875
877
  points: ["bl", "tc"]
876
878
  },
@@ -895,8 +897,8 @@ const ct = {
895
897
  leftBottom: {
896
898
  points: ["br", "cl"]
897
899
  }
898
- }, mn = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
899
- function Pt(e) {
900
+ }, vn = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
901
+ function Tt(e) {
900
902
  const {
901
903
  arrowWidth: t,
902
904
  autoAdjustOverflow: o,
@@ -905,12 +907,12 @@ function Pt(e) {
905
907
  borderRadius: a,
906
908
  visibleFirst: i
907
909
  } = e, s = t / 2, c = {};
908
- return Object.keys(ct).forEach((u) => {
909
- const d = n && un[u] || ct[u], f = Object.assign(Object.assign({}, d), {
910
+ return Object.keys(ut).forEach((m) => {
911
+ const d = n && fn[m] || ut[m], f = Object.assign(Object.assign({}, d), {
910
912
  offset: [0, 0],
911
913
  dynamicInset: !0
912
914
  });
913
- switch (c[u] = f, mn.has(u) && (f.autoArrow = !1), u) {
915
+ switch (c[m] = f, vn.has(m) && (f.autoArrow = !1), m) {
914
916
  case "top":
915
917
  case "topLeft":
916
918
  case "topRight":
@@ -932,33 +934,33 @@ function Pt(e) {
932
934
  f.offset[0] = s + r;
933
935
  break;
934
936
  }
935
- const m = _e({
937
+ const p = Re({
936
938
  contentRadius: a,
937
939
  limitVerticalRadius: !0
938
940
  });
939
941
  if (n)
940
- switch (u) {
942
+ switch (m) {
941
943
  case "topLeft":
942
944
  case "bottomLeft":
943
- f.offset[0] = -m.arrowOffsetHorizontal - s;
945
+ f.offset[0] = -p.arrowOffsetHorizontal - s;
944
946
  break;
945
947
  case "topRight":
946
948
  case "bottomRight":
947
- f.offset[0] = m.arrowOffsetHorizontal + s;
949
+ f.offset[0] = p.arrowOffsetHorizontal + s;
948
950
  break;
949
951
  case "leftTop":
950
952
  case "rightTop":
951
- f.offset[1] = -m.arrowOffsetHorizontal * 2 + s;
953
+ f.offset[1] = -p.arrowOffsetHorizontal * 2 + s;
952
954
  break;
953
955
  case "leftBottom":
954
956
  case "rightBottom":
955
- f.offset[1] = m.arrowOffsetHorizontal * 2 - s;
957
+ f.offset[1] = p.arrowOffsetHorizontal * 2 - s;
956
958
  break;
957
959
  }
958
- f.overflow = dn(u, m, t, o), i && (f.htmlRegion = "visibleFirst");
960
+ f.overflow = gn(m, p, t, o), i && (f.htmlRegion = "visibleFirst");
959
961
  }), c;
960
962
  }
961
- const pn = (e) => {
963
+ const bn = (e) => {
962
964
  const {
963
965
  calc: t,
964
966
  componentCls: o,
@@ -969,15 +971,15 @@ const pn = (e) => {
969
971
  tooltipBorderRadius: i,
970
972
  zIndexPopup: s,
971
973
  controlHeight: c,
972
- boxShadowSecondary: u,
974
+ boxShadowSecondary: m,
973
975
  paddingSM: d,
974
976
  paddingXS: f,
975
- arrowOffsetHorizontal: m,
977
+ arrowOffsetHorizontal: p,
976
978
  sizePopupArrow: v
977
- } = e, p = t(i).add(v).add(m).equal(), g = t(i).mul(2).add(v).equal();
979
+ } = e, g = t(i).add(v).add(p).equal(), u = t(i).mul(2).add(v).equal();
978
980
  return [
979
981
  {
980
- [o]: Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), {
982
+ [o]: Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), {
981
983
  position: "absolute",
982
984
  zIndex: s,
983
985
  display: "block",
@@ -993,46 +995,43 @@ const pn = (e) => {
993
995
  "--antd-arrow-background-color": a,
994
996
  // Wrapper for the tooltip content
995
997
  [`${o}-inner`]: {
996
- minWidth: g,
998
+ minWidth: u,
997
999
  minHeight: c,
998
- padding: `${O(e.calc(d).div(2).equal())} ${O(f)}`,
1000
+ padding: `${I(e.calc(d).div(2).equal())} ${I(f)}`,
999
1001
  color: r,
1000
1002
  textAlign: "start",
1001
1003
  textDecoration: "none",
1002
1004
  wordWrap: "break-word",
1003
1005
  backgroundColor: a,
1004
1006
  borderRadius: i,
1005
- boxShadow: u,
1007
+ boxShadow: m,
1006
1008
  boxSizing: "border-box"
1007
1009
  },
1008
1010
  // Align placement should have another min width
1009
1011
  [["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
1010
- minWidth: p
1012
+ minWidth: g
1011
1013
  },
1012
1014
  // Limit left and right placement radius
1013
1015
  [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
1014
1016
  [`${o}-inner`]: {
1015
- borderRadius: e.min(i, Et)
1017
+ borderRadius: e.min(i, jt)
1016
1018
  }
1017
1019
  },
1018
1020
  [`${o}-content`]: {
1019
1021
  position: "relative"
1020
1022
  }
1021
- }), Mo(e, (h, C) => {
1022
- let {
1023
- darkColor: b
1024
- } = C;
1025
- return {
1026
- [`&${o}-${h}`]: {
1027
- [`${o}-inner`]: {
1028
- backgroundColor: b
1029
- },
1030
- [`${o}-arrow`]: {
1031
- "--antd-arrow-background-color": b
1032
- }
1023
+ }), Lo(e, (h, {
1024
+ darkColor: $
1025
+ }) => ({
1026
+ [`&${o}-${h}`]: {
1027
+ [`${o}-inner`]: {
1028
+ backgroundColor: $
1029
+ },
1030
+ [`${o}-arrow`]: {
1031
+ "--antd-arrow-background-color": $
1033
1032
  }
1034
- };
1035
- })), {
1033
+ }
1034
+ }))), {
1036
1035
  // RTL
1037
1036
  "&-rtl": {
1038
1037
  direction: "rtl"
@@ -1040,7 +1039,7 @@ const pn = (e) => {
1040
1039
  })
1041
1040
  },
1042
1041
  // Arrow Style
1043
- Ze(e, "var(--antd-arrow-background-color)"),
1042
+ Je(e, "var(--antd-arrow-background-color)"),
1044
1043
  // Pure Render
1045
1044
  {
1046
1045
  [`${o}-pure`]: {
@@ -1050,39 +1049,36 @@ const pn = (e) => {
1050
1049
  }
1051
1050
  }
1052
1051
  ];
1053
- }, gn = (e) => Object.assign(Object.assign({
1052
+ }, hn = (e) => Object.assign(Object.assign({
1054
1053
  zIndexPopup: e.zIndexPopupBase + 70
1055
- }, _e({
1054
+ }, Re({
1056
1055
  contentRadius: e.borderRadius,
1057
1056
  limitVerticalRadius: !0
1058
- })), Ke(ce(e, {
1057
+ })), Qe(ce(e, {
1059
1058
  borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
1060
- }))), Bt = function(e) {
1061
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
1062
- return de("Tooltip", (n) => {
1063
- const {
1064
- borderRadius: r,
1065
- colorTextLightSolid: a,
1066
- colorBgSpotlight: i
1067
- } = n, s = ce(n, {
1068
- // default variables
1069
- tooltipMaxWidth: 250,
1070
- tooltipColor: a,
1071
- tooltipBorderRadius: r,
1072
- tooltipBg: i
1073
- });
1074
- return [pn(s), Te(n, "zoom-big-fast")];
1075
- }, gn, {
1076
- resetStyle: !1,
1077
- // Popover use Tooltip as internal component. We do not need to handle this.
1078
- injectStyle: t
1079
- })(e);
1080
- }, fn = fe.map((e) => `${e}-inverse`);
1081
- function vn(e) {
1082
- return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(nt(fn), nt(fe)).includes(e) : fe.includes(e);
1059
+ }))), _t = (e, t = !0) => de("Tooltip", (n) => {
1060
+ const {
1061
+ borderRadius: r,
1062
+ colorTextLightSolid: a,
1063
+ colorBgSpotlight: i
1064
+ } = n, s = ce(n, {
1065
+ // default variables
1066
+ tooltipMaxWidth: 250,
1067
+ tooltipColor: a,
1068
+ tooltipBorderRadius: r,
1069
+ tooltipBg: i
1070
+ });
1071
+ return [bn(s), _e(n, "zoom-big-fast")];
1072
+ }, hn, {
1073
+ resetStyle: !1,
1074
+ // Popover use Tooltip as internal component. We do not need to handle this.
1075
+ injectStyle: t
1076
+ })(e), $n = ve.map((e) => `${e}-inverse`);
1077
+ function yn(e, t = !0) {
1078
+ return t ? [].concat(it($n), it(ve)).includes(e) : ve.includes(e);
1083
1079
  }
1084
- function zt(e, t) {
1085
- const o = vn(t), n = _({
1080
+ function Rt(e, t) {
1081
+ const o = yn(t), n = _({
1086
1082
  [`${e}-${t}`]: t && o
1087
1083
  }), r = {}, a = {};
1088
1084
  return t && !o && (r.background = t, a["--antd-arrow-background-color"] = t), {
@@ -1091,7 +1087,7 @@ function zt(e, t) {
1091
1087
  arrowStyle: a
1092
1088
  };
1093
1089
  }
1094
- const bn = (e) => {
1090
+ const Cn = (e) => {
1095
1091
  const {
1096
1092
  prefixCls: t,
1097
1093
  className: o,
@@ -1101,26 +1097,26 @@ const bn = (e) => {
1101
1097
  overlayInnerStyle: i
1102
1098
  } = e, {
1103
1099
  getPrefixCls: s
1104
- } = l.useContext(ie), c = s("tooltip", t), [u, d, f] = Bt(c), m = zt(c, a), v = m.arrowStyle, p = Object.assign(Object.assign({}, i), m.overlayStyle), g = _(d, f, c, `${c}-pure`, `${c}-placement-${n}`, o, m.className);
1105
- return u(/* @__PURE__ */ l.createElement("div", {
1106
- className: g,
1100
+ } = l.useContext(re), c = s("tooltip", t), [m, d, f] = _t(c), p = Rt(c, a), v = p.arrowStyle, g = Object.assign(Object.assign({}, i), p.overlayStyle), u = _(d, f, c, `${c}-pure`, `${c}-placement-${n}`, o, p.className);
1101
+ return m(/* @__PURE__ */ l.createElement("div", {
1102
+ className: u,
1107
1103
  style: v
1108
1104
  }, /* @__PURE__ */ l.createElement("div", {
1109
1105
  className: `${c}-arrow`
1110
- }), /* @__PURE__ */ l.createElement(Ue, Object.assign({}, e, {
1106
+ }), /* @__PURE__ */ l.createElement(Ze, Object.assign({}, e, {
1111
1107
  className: d,
1112
1108
  prefixCls: c,
1113
- overlayInnerStyle: p
1109
+ overlayInnerStyle: g
1114
1110
  }), r)));
1115
1111
  };
1116
- var hn = function(e, t) {
1112
+ var wn = function(e, t) {
1117
1113
  var o = {};
1118
1114
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1119
1115
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1120
1116
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1121
1117
  return o;
1122
1118
  };
1123
- const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
1119
+ const xn = /* @__PURE__ */ l.forwardRef((e, t) => {
1124
1120
  var o, n;
1125
1121
  const {
1126
1122
  prefixCls: r,
@@ -1128,116 +1124,117 @@ const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
1128
1124
  getTooltipContainer: i,
1129
1125
  color: s,
1130
1126
  overlayInnerStyle: c,
1131
- children: u,
1127
+ children: m,
1132
1128
  afterOpenChange: d,
1133
1129
  afterVisibleChange: f,
1134
- destroyTooltipOnHide: m,
1135
- arrow: v = !0,
1136
- title: p,
1137
- overlay: g,
1138
- builtinPlacements: h,
1139
- arrowPointAtCenter: C = !1,
1140
- autoAdjustOverflow: b = !0,
1141
- motion: S,
1142
- getPopupContainer: $,
1143
- placement: B = "top",
1144
- mouseEnterDelay: M = 0.1,
1145
- mouseLeaveDelay: R = 0.1,
1146
- overlayStyle: T,
1147
- rootClassName: w,
1148
- overlayClassName: x,
1149
- styles: P,
1150
- classNames: I
1151
- } = e, z = hn(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 = !!v, [, N] = We(), {
1152
- getPopupContainer: E,
1153
- getPrefixCls: A,
1154
- direction: L,
1155
- className: F,
1156
- style: j,
1157
- classNames: H,
1158
- styles: D
1159
- } = Xe("tooltip"), W = be("Tooltip"), G = l.useRef(null), q = () => {
1130
+ destroyTooltipOnHide: p,
1131
+ destroyOnHidden: v,
1132
+ arrow: g = !0,
1133
+ title: u,
1134
+ overlay: h,
1135
+ builtinPlacements: $,
1136
+ arrowPointAtCenter: b = !1,
1137
+ autoAdjustOverflow: S = !0,
1138
+ motion: N,
1139
+ getPopupContainer: y,
1140
+ placement: M = "top",
1141
+ mouseEnterDelay: j = 0.1,
1142
+ mouseLeaveDelay: T = 0.1,
1143
+ overlayStyle: O,
1144
+ rootClassName: E,
1145
+ overlayClassName: H,
1146
+ styles: x,
1147
+ classNames: C
1148
+ } = e, w = wn(e, ["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"]), B = !!g, [, P] = Fe(), {
1149
+ getPopupContainer: L,
1150
+ getPrefixCls: z,
1151
+ direction: F,
1152
+ className: D,
1153
+ style: A,
1154
+ classNames: k,
1155
+ styles: R
1156
+ } = Ge("tooltip"), W = he("Tooltip"), G = l.useRef(null), q = () => {
1160
1157
  var K;
1161
1158
  (K = G.current) === null || K === void 0 || K.forceAlign();
1162
1159
  };
1163
1160
  l.useImperativeHandle(t, () => {
1164
- var K, te;
1161
+ var K, ee;
1165
1162
  return {
1166
1163
  forceAlign: q,
1167
1164
  forcePopupAlign: () => {
1168
1165
  W.deprecated(!1, "forcePopupAlign", "forceAlign"), q();
1169
1166
  },
1170
1167
  nativeElement: (K = G.current) === null || K === void 0 ? void 0 : K.nativeElement,
1171
- popupElement: (te = G.current) === null || te === void 0 ? void 0 : te.popupElement
1168
+ popupElement: (ee = G.current) === null || ee === void 0 ? void 0 : ee.popupElement
1172
1169
  };
1173
- }), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((K) => {
1174
- let [te, ae] = K;
1175
- W.deprecated(!(te in e), te, ae);
1176
- }), process.env.NODE_ENV !== "production" && W(!m || typeof m == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && W(!v || typeof v == "boolean" || !("arrowPointAtCenter" in v), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
1177
- const [Z, ee] = Fe(!1, {
1170
+ }), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([K, ee]) => {
1171
+ W.deprecated(!(K in e), K, ee);
1172
+ }), process.env.NODE_ENV !== "production" && W(!p || typeof p == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && W(!g || typeof g == "boolean" || !("arrowPointAtCenter" in g), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
1173
+ const [Q, X] = Ye(!1, {
1178
1174
  value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
1179
1175
  defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
1180
- }), k = !p && !g && p !== 0, U = (K) => {
1181
- var te, ae;
1182
- ee(k ? !1 : K), k || ((te = e.onOpenChange) === null || te === void 0 || te.call(e, K), (ae = e.onVisibleChange) === null || ae === void 0 || ae.call(e, K));
1183
- }, Q = l.useMemo(() => {
1184
- var K, te;
1185
- let ae = C;
1186
- return typeof v == "object" && (ae = (te = (K = v.pointAtCenter) !== null && K !== void 0 ? K : v.arrowPointAtCenter) !== null && te !== void 0 ? te : C), h || Pt({
1187
- arrowPointAtCenter: ae,
1188
- autoAdjustOverflow: b,
1189
- arrowWidth: y ? N.sizePopupArrow : 0,
1190
- borderRadius: N.borderRadius,
1191
- offset: N.marginXXS,
1176
+ }), Z = !u && !h && u !== 0, J = (K) => {
1177
+ var ee, me;
1178
+ X(Z ? !1 : K), Z || ((ee = e.onOpenChange) === null || ee === void 0 || ee.call(e, K), (me = e.onVisibleChange) === null || me === void 0 || me.call(e, K));
1179
+ }, V = l.useMemo(() => {
1180
+ var K, ee;
1181
+ let me = b;
1182
+ return typeof g == "object" && (me = (ee = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && ee !== void 0 ? ee : b), $ || Tt({
1183
+ arrowPointAtCenter: me,
1184
+ autoAdjustOverflow: S,
1185
+ arrowWidth: B ? P.sizePopupArrow : 0,
1186
+ borderRadius: P.borderRadius,
1187
+ offset: P.marginXXS,
1192
1188
  visibleFirst: !0
1193
1189
  });
1194
- }, [C, v, h, N]), X = l.useMemo(() => p === 0 ? p : g || p || "", [g, p]), Y = /* @__PURE__ */ l.createElement(St, {
1190
+ }, [b, g, $, P]), Y = l.useMemo(() => u === 0 ? u : h || u || "", [h, u]), ne = /* @__PURE__ */ l.createElement(It, {
1195
1191
  space: !0
1196
- }, typeof X == "function" ? X() : X), J = A("tooltip", r), V = A(), re = e["data-popover-inject"];
1197
- let ne = Z;
1198
- !("open" in e) && !("visible" in e) && k && (ne = !1);
1199
- const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), ye = Me.props, Xt = !ye.className || typeof ye.className == "string" ? _(ye.className, a || `${J}-open`) : ye.className, [Ft, Gt, qt] = Bt(J, !re), De = zt(J, s), Yt = De.arrowStyle, Ut = _(x, {
1200
- [`${J}-rtl`]: L === "rtl"
1201
- }, De.className, w, Gt, qt, F, H.root, I == null ? void 0 : I.root), Kt = _(H.body, I == null ? void 0 : I.body), [Zt, Qt] = qe("Tooltip", z.zIndex), Jt = /* @__PURE__ */ l.createElement(sn, Object.assign({}, z, {
1202
- zIndex: Zt,
1203
- showArrow: y,
1204
- placement: B,
1205
- mouseEnterDelay: M,
1206
- mouseLeaveDelay: R,
1207
- prefixCls: J,
1192
+ }, typeof Y == "function" ? Y() : Y), ie = z("tooltip", r), Ce = z(), He = e["data-popover-inject"];
1193
+ let le = Q;
1194
+ !("open" in e) && !("visible" in e) && Z && (le = !1);
1195
+ const U = /* @__PURE__ */ l.isValidElement(m) && !Ro(m) ? m : /* @__PURE__ */ l.createElement("span", null, m), oe = U.props, De = !oe.className || typeof oe.className == "string" ? _(oe.className, a || `${ie}-open`) : oe.className, [Ut, qt, Kt] = _t(ie, !He), Ae = Rt(ie, s), Zt = Ae.arrowStyle, Qt = _(H, {
1196
+ [`${ie}-rtl`]: F === "rtl"
1197
+ }, Ae.className, E, qt, Kt, D, k.root, C == null ? void 0 : C.root), Jt = _(k.body, C == null ? void 0 : C.body), [eo, to] = qe("Tooltip", w.zIndex), oo = /* @__PURE__ */ l.createElement(mn, Object.assign({}, w, {
1198
+ zIndex: eo,
1199
+ showArrow: B,
1200
+ placement: M,
1201
+ mouseEnterDelay: j,
1202
+ mouseLeaveDelay: T,
1203
+ prefixCls: ie,
1208
1204
  classNames: {
1209
- root: Ut,
1210
- body: Kt
1205
+ root: Qt,
1206
+ body: Jt
1211
1207
  },
1212
1208
  styles: {
1213
- root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Yt), D.root), j), T), P == null ? void 0 : P.root),
1214
- body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c), P == null ? void 0 : P.body), De.overlayStyle)
1209
+ root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Zt), R.root), A), O), x == null ? void 0 : x.root),
1210
+ body: Object.assign(Object.assign(Object.assign(Object.assign({}, R.body), c), x == null ? void 0 : x.body), Ae.overlayStyle)
1215
1211
  },
1216
- getTooltipContainer: $ || i || E,
1212
+ getTooltipContainer: y || i || L,
1217
1213
  ref: G,
1218
- builtinPlacements: Q,
1219
- overlay: Y,
1220
- visible: ne,
1221
- onVisibleChange: U,
1214
+ builtinPlacements: V,
1215
+ overlay: ne,
1216
+ visible: le,
1217
+ onVisibleChange: J,
1222
1218
  afterVisibleChange: d ?? f,
1223
1219
  arrowContent: /* @__PURE__ */ l.createElement("span", {
1224
- className: `${J}-arrow-content`
1220
+ className: `${ie}-arrow-content`
1225
1221
  }),
1226
1222
  motion: {
1227
- motionName: Ct(V, "zoom-big-fast", e.transitionName),
1223
+ motionName: xt(Ce, "zoom-big-fast", e.transitionName),
1228
1224
  motionDeadline: 1e3
1229
1225
  },
1230
- destroyTooltipOnHide: !!m
1231
- }), ne ? ue(Me, {
1232
- className: Xt
1233
- }) : Me);
1234
- return Ft(/* @__PURE__ */ l.createElement(Ot.Provider, {
1235
- value: Qt
1236
- }, Jt));
1237
- }), Re = $n;
1238
- process.env.NODE_ENV !== "production" && (Re.displayName = "Tooltip");
1239
- Re._InternalPanelDoNotUseOrYouWillBeFired = bn;
1240
- const yn = (e) => {
1226
+ // TODO: In the future, destroyTooltipOnHide in rc-tooltip needs to be upgrade to destroyOnHidden
1227
+ destroyTooltipOnHide: v ?? !!p
1228
+ }), le ? ue(U, {
1229
+ className: De
1230
+ }) : U);
1231
+ return Ut(/* @__PURE__ */ l.createElement(Pt.Provider, {
1232
+ value: to
1233
+ }, oo));
1234
+ }), Me = xn;
1235
+ process.env.NODE_ENV !== "production" && (Me.displayName = "Tooltip");
1236
+ Me._InternalPanelDoNotUseOrYouWillBeFired = Cn;
1237
+ const Sn = (e) => {
1241
1238
  const {
1242
1239
  componentCls: t,
1243
1240
  popoverColor: o,
@@ -1247,17 +1244,17 @@ const yn = (e) => {
1247
1244
  boxShadowSecondary: i,
1248
1245
  colorTextHeading: s,
1249
1246
  borderRadiusLG: c,
1250
- zIndexPopup: u,
1247
+ zIndexPopup: m,
1251
1248
  titleMarginBottom: d,
1252
1249
  colorBgElevated: f,
1253
- popoverBg: m,
1250
+ popoverBg: p,
1254
1251
  titleBorderBottom: v,
1255
- innerContentPadding: p,
1256
- titlePadding: g
1252
+ innerContentPadding: g,
1253
+ titlePadding: u
1257
1254
  } = e;
1258
1255
  return [
1259
1256
  {
1260
- [t]: Object.assign(Object.assign({}, ve(e)), {
1257
+ [t]: Object.assign(Object.assign({}, be(e)), {
1261
1258
  position: "absolute",
1262
1259
  top: 0,
1263
1260
  // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
@@ -1265,7 +1262,7 @@ const yn = (e) => {
1265
1262
  _skip_check_: !0,
1266
1263
  value: 0
1267
1264
  },
1268
- zIndex: u,
1265
+ zIndex: m,
1269
1266
  fontWeight: "normal",
1270
1267
  whiteSpace: "normal",
1271
1268
  textAlign: "start",
@@ -1287,7 +1284,7 @@ const yn = (e) => {
1287
1284
  position: "relative"
1288
1285
  },
1289
1286
  [`${t}-inner`]: {
1290
- backgroundColor: m,
1287
+ backgroundColor: p,
1291
1288
  backgroundClip: "padding-box",
1292
1289
  borderRadius: c,
1293
1290
  boxShadow: i,
@@ -1299,16 +1296,16 @@ const yn = (e) => {
1299
1296
  color: s,
1300
1297
  fontWeight: r,
1301
1298
  borderBottom: v,
1302
- padding: g
1299
+ padding: u
1303
1300
  },
1304
1301
  [`${t}-inner-content`]: {
1305
1302
  color: o,
1306
- padding: p
1303
+ padding: g
1307
1304
  }
1308
1305
  })
1309
1306
  },
1310
1307
  // Arrow Style
1311
- Ze(e, "var(--antd-arrow-background-color)"),
1308
+ Je(e, "var(--antd-arrow-background-color)"),
1312
1309
  // Pure Render
1313
1310
  {
1314
1311
  [`${t}-pure`]: {
@@ -1322,12 +1319,12 @@ const yn = (e) => {
1322
1319
  }
1323
1320
  }
1324
1321
  ];
1325
- }, Cn = (e) => {
1322
+ }, On = (e) => {
1326
1323
  const {
1327
1324
  componentCls: t
1328
1325
  } = e;
1329
1326
  return {
1330
- [t]: fe.map((o) => {
1327
+ [t]: ve.map((o) => {
1331
1328
  const n = e[`${o}6`];
1332
1329
  return {
1333
1330
  [`&${t}-${o}`]: {
@@ -1342,7 +1339,7 @@ const yn = (e) => {
1342
1339
  };
1343
1340
  })
1344
1341
  };
1345
- }, wn = (e) => {
1342
+ }, In = (e) => {
1346
1343
  const {
1347
1344
  lineWidth: t,
1348
1345
  controlHeight: o,
@@ -1352,25 +1349,25 @@ const yn = (e) => {
1352
1349
  zIndexPopupBase: i,
1353
1350
  borderRadiusLG: s,
1354
1351
  marginXS: c,
1355
- lineType: u,
1352
+ lineType: m,
1356
1353
  colorSplit: d,
1357
1354
  paddingSM: f
1358
- } = e, m = o - n, v = m / 2, p = m / 2 - t, g = r;
1355
+ } = e, p = o - n, v = p / 2, g = p / 2 - t, u = r;
1359
1356
  return Object.assign(Object.assign(Object.assign({
1360
1357
  titleMinWidth: 177,
1361
1358
  zIndexPopup: i + 30
1362
- }, Ke(e)), _e({
1359
+ }, Qe(e)), Re({
1363
1360
  contentRadius: s,
1364
1361
  limitVerticalRadius: !0
1365
1362
  })), {
1366
1363
  // internal
1367
1364
  innerPadding: a ? 0 : 12,
1368
1365
  titleMarginBottom: a ? 0 : c,
1369
- titlePadding: a ? `${v}px ${g}px ${p}px` : 0,
1370
- titleBorderBottom: a ? `${t}px ${u} ${d}` : "none",
1371
- innerContentPadding: a ? `${f}px ${g}px` : 0
1366
+ titlePadding: a ? `${v}px ${u}px ${g}px` : 0,
1367
+ titleBorderBottom: a ? `${t}px ${m} ${d}` : "none",
1368
+ innerContentPadding: a ? `${f}px ${u}px` : 0
1372
1369
  });
1373
- }, jt = de("Popover", (e) => {
1370
+ }, Mt = de("Popover", (e) => {
1374
1371
  const {
1375
1372
  colorBgElevated: t,
1376
1373
  colorText: o
@@ -1378,30 +1375,27 @@ const yn = (e) => {
1378
1375
  popoverBg: t,
1379
1376
  popoverColor: o
1380
1377
  });
1381
- return [yn(n), Cn(n), Te(n, "zoom-big")];
1382
- }, wn, {
1378
+ return [Sn(n), On(n), _e(n, "zoom-big")];
1379
+ }, In, {
1383
1380
  resetStyle: !1,
1384
1381
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
1385
1382
  });
1386
- var xn = function(e, t) {
1383
+ var Pn = function(e, t) {
1387
1384
  var o = {};
1388
1385
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1389
1386
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1390
1387
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1391
1388
  return o;
1392
1389
  };
1393
- const Tt = (e) => {
1394
- let {
1395
- title: t,
1396
- content: o,
1397
- prefixCls: n
1398
- } = e;
1399
- return !t && !o ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, t && /* @__PURE__ */ l.createElement("div", {
1400
- className: `${n}-title`
1401
- }, t), o && /* @__PURE__ */ l.createElement("div", {
1402
- className: `${n}-inner-content`
1403
- }, o));
1404
- }, Sn = (e) => {
1390
+ const Ht = ({
1391
+ title: e,
1392
+ content: t,
1393
+ prefixCls: o
1394
+ }) => !e && !t ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, e && /* @__PURE__ */ l.createElement("div", {
1395
+ className: `${o}-title`
1396
+ }, e), t && /* @__PURE__ */ l.createElement("div", {
1397
+ className: `${o}-inner-content`
1398
+ }, t)), En = (e) => {
1405
1399
  const {
1406
1400
  hashId: t,
1407
1401
  prefixCls: o,
@@ -1411,41 +1405,41 @@ const Tt = (e) => {
1411
1405
  title: i,
1412
1406
  content: s,
1413
1407
  children: c
1414
- } = e, u = Ie(i), d = Ie(s), f = _(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
1408
+ } = e, m = Pe(i), d = Pe(s), f = _(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
1415
1409
  return /* @__PURE__ */ l.createElement("div", {
1416
1410
  className: f,
1417
1411
  style: r
1418
1412
  }, /* @__PURE__ */ l.createElement("div", {
1419
1413
  className: `${o}-arrow`
1420
- }), /* @__PURE__ */ l.createElement(Ue, Object.assign({}, e, {
1414
+ }), /* @__PURE__ */ l.createElement(Ze, Object.assign({}, e, {
1421
1415
  className: t,
1422
1416
  prefixCls: o
1423
- }), c || /* @__PURE__ */ l.createElement(Tt, {
1417
+ }), c || /* @__PURE__ */ l.createElement(Ht, {
1424
1418
  prefixCls: o,
1425
- title: u,
1419
+ title: m,
1426
1420
  content: d
1427
1421
  })));
1428
- }, On = (e) => {
1422
+ }, Nn = (e) => {
1429
1423
  const {
1430
1424
  prefixCls: t,
1431
1425
  className: o
1432
- } = e, n = xn(e, ["prefixCls", "className"]), {
1426
+ } = e, n = Pn(e, ["prefixCls", "className"]), {
1433
1427
  getPrefixCls: r
1434
- } = l.useContext(ie), a = r("popover", t), [i, s, c] = jt(a);
1435
- return i(/* @__PURE__ */ l.createElement(Sn, Object.assign({}, n, {
1428
+ } = l.useContext(re), a = r("popover", t), [i, s, c] = Mt(a);
1429
+ return i(/* @__PURE__ */ l.createElement(En, Object.assign({}, n, {
1436
1430
  prefixCls: a,
1437
1431
  hashId: s,
1438
1432
  className: _(o, c)
1439
1433
  })));
1440
1434
  };
1441
- var In = function(e, t) {
1435
+ var Bn = function(e, t) {
1442
1436
  var o = {};
1443
1437
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1444
1438
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1445
1439
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1446
1440
  return o;
1447
1441
  };
1448
- const Nn = /* @__PURE__ */ l.forwardRef((e, t) => {
1442
+ const zn = /* @__PURE__ */ l.forwardRef((e, t) => {
1449
1443
  var o, n;
1450
1444
  const {
1451
1445
  prefixCls: r,
@@ -1453,160 +1447,159 @@ const Nn = /* @__PURE__ */ l.forwardRef((e, t) => {
1453
1447
  content: i,
1454
1448
  overlayClassName: s,
1455
1449
  placement: c = "top",
1456
- trigger: u = "hover",
1450
+ trigger: m = "hover",
1457
1451
  children: d,
1458
1452
  mouseEnterDelay: f = 0.1,
1459
- mouseLeaveDelay: m = 0.1,
1453
+ mouseLeaveDelay: p = 0.1,
1460
1454
  onOpenChange: v,
1461
- overlayStyle: p = {},
1462
- styles: g,
1455
+ overlayStyle: g = {},
1456
+ styles: u,
1463
1457
  classNames: h
1464
- } = e, C = In(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
1458
+ } = e, $ = Bn(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
1465
1459
  getPrefixCls: b,
1466
1460
  className: S,
1467
- style: $,
1468
- classNames: B,
1461
+ style: N,
1462
+ classNames: y,
1469
1463
  styles: M
1470
- } = Xe("popover"), R = b("popover", r), [T, w, x] = jt(R), P = b(), I = _(s, w, x, S, B.root, h == null ? void 0 : h.root), z = _(B.body, h == null ? void 0 : h.body), [y, N] = Fe(!1, {
1464
+ } = Ge("popover"), j = b("popover", r), [T, O, E] = Mt(j), H = b(), x = _(s, O, E, S, y.root, h == null ? void 0 : h.root), C = _(y.body, h == null ? void 0 : h.body), [w, B] = Ye(!1, {
1471
1465
  value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
1472
1466
  defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
1473
- }), E = (H, D) => {
1474
- N(H, !0), v == null || v(H, D);
1475
- }, A = (H) => {
1476
- H.keyCode === co.ESC && E(!1, H);
1477
- }, L = (H) => {
1478
- E(H);
1479
- }, F = Ie(a), j = Ie(i);
1480
- return T(/* @__PURE__ */ l.createElement(Re, Object.assign({
1467
+ }), P = (A, k) => {
1468
+ B(A, !0), v == null || v(A, k);
1469
+ }, L = (A) => {
1470
+ A.keyCode === go.ESC && P(!1, A);
1471
+ }, z = (A) => {
1472
+ P(A);
1473
+ }, F = Pe(a), D = Pe(i);
1474
+ return T(/* @__PURE__ */ l.createElement(Me, Object.assign({
1481
1475
  placement: c,
1482
- trigger: u,
1476
+ trigger: m,
1483
1477
  mouseEnterDelay: f,
1484
- mouseLeaveDelay: m
1485
- }, C, {
1486
- prefixCls: R,
1478
+ mouseLeaveDelay: p
1479
+ }, $, {
1480
+ prefixCls: j,
1487
1481
  classNames: {
1488
- root: I,
1489
- body: z
1482
+ root: x,
1483
+ body: C
1490
1484
  },
1491
1485
  styles: {
1492
- root: Object.assign(Object.assign(Object.assign(Object.assign({}, M.root), $), p), g == null ? void 0 : g.root),
1493
- body: Object.assign(Object.assign({}, M.body), g == null ? void 0 : g.body)
1486
+ root: Object.assign(Object.assign(Object.assign(Object.assign({}, M.root), N), g), u == null ? void 0 : u.root),
1487
+ body: Object.assign(Object.assign({}, M.body), u == null ? void 0 : u.body)
1494
1488
  },
1495
1489
  ref: t,
1496
- open: y,
1497
- onOpenChange: L,
1498
- overlay: F || j ? /* @__PURE__ */ l.createElement(Tt, {
1499
- prefixCls: R,
1490
+ open: w,
1491
+ onOpenChange: z,
1492
+ overlay: F || D ? /* @__PURE__ */ l.createElement(Ht, {
1493
+ prefixCls: j,
1500
1494
  title: F,
1501
- content: j
1495
+ content: D
1502
1496
  }) : null,
1503
- transitionName: Ct(P, "zoom-big", C.transitionName),
1497
+ transitionName: xt(H, "zoom-big", $.transitionName),
1504
1498
  "data-popover-inject": !0
1505
1499
  }), ue(d, {
1506
- onKeyDown: (H) => {
1507
- var D, W;
1508
- /* @__PURE__ */ l.isValidElement(d) && ((W = d == null ? void 0 : (D = d.props).onKeyDown) === null || W === void 0 || W.call(D, H)), A(H);
1500
+ onKeyDown: (A) => {
1501
+ var k, R;
1502
+ /* @__PURE__ */ ro(d) && ((R = d == null ? void 0 : (k = d.props).onKeyDown) === null || R === void 0 || R.call(k, A)), L(A);
1509
1503
  }
1510
1504
  })));
1511
- }), Qe = Nn;
1512
- Qe._InternalPanelDoNotUseOrYouWillBeFired = On;
1513
- process.env.NODE_ENV !== "production" && (Qe.displayName = "Popover");
1514
- const dt = (e) => {
1505
+ }), et = zn;
1506
+ et._InternalPanelDoNotUseOrYouWillBeFired = Nn;
1507
+ process.env.NODE_ENV !== "production" && (et.displayName = "Popover");
1508
+ const mt = (e) => {
1515
1509
  const {
1516
1510
  size: t,
1517
1511
  shape: o
1518
- } = l.useContext(Le), n = l.useMemo(() => ({
1512
+ } = l.useContext(Ve), n = l.useMemo(() => ({
1519
1513
  size: e.size || t,
1520
1514
  shape: e.shape || o
1521
1515
  }), [e.size, e.shape, t, o]);
1522
- return /* @__PURE__ */ l.createElement(Le.Provider, {
1516
+ return /* @__PURE__ */ l.createElement(Ve.Provider, {
1523
1517
  value: n
1524
1518
  }, e.children);
1525
- }, En = (e) => {
1519
+ }, jn = (e) => {
1526
1520
  var t, o, n, r;
1527
1521
  const {
1528
1522
  getPrefixCls: a,
1529
1523
  direction: i
1530
- } = l.useContext(ie), {
1524
+ } = l.useContext(re), {
1531
1525
  prefixCls: s,
1532
1526
  className: c,
1533
- rootClassName: u,
1527
+ rootClassName: m,
1534
1528
  style: d,
1535
1529
  maxCount: f,
1536
- maxStyle: m,
1530
+ maxStyle: p,
1537
1531
  size: v,
1538
- shape: p,
1539
- maxPopoverPlacement: g,
1532
+ shape: g,
1533
+ maxPopoverPlacement: u,
1540
1534
  maxPopoverTrigger: h,
1541
- children: C,
1535
+ children: $,
1542
1536
  max: b
1543
1537
  } = e;
1544
1538
  if (process.env.NODE_ENV !== "production") {
1545
- const z = be("Avatar.Group");
1546
- [["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((y) => {
1547
- let [N, E] = y;
1548
- z.deprecated(!(N in e), N, E);
1539
+ const C = he("Avatar.Group");
1540
+ [["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach(([w, B]) => {
1541
+ C.deprecated(!(w in e), w, B);
1549
1542
  });
1550
1543
  }
1551
- const S = a("avatar", s), $ = `${S}-group`, B = je(S), [M, R, T] = Nt(S, B), w = _($, {
1552
- [`${$}-rtl`]: i === "rtl"
1553
- }, T, B, c, u, R), x = Ge(C).map((z, y) => ue(z, {
1544
+ const S = a("avatar", s), N = `${S}-group`, y = Te(S), [M, j, T] = zt(S, y), O = _(N, {
1545
+ [`${N}-rtl`]: i === "rtl"
1546
+ }, T, y, c, m, j), E = Ue($).map((C, w) => ue(C, {
1554
1547
  // eslint-disable-next-line react/no-array-index-key
1555
- key: `avatar-key-${y}`
1556
- })), P = (b == null ? void 0 : b.count) || f, I = x.length;
1557
- if (P && P < I) {
1558
- const z = x.slice(0, P), y = x.slice(P, I), N = (b == null ? void 0 : b.style) || m, E = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", A = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || g || "top", L = Object.assign(Object.assign({
1559
- content: y
1548
+ key: `avatar-key-${w}`
1549
+ })), H = (b == null ? void 0 : b.count) || f, x = E.length;
1550
+ if (H && H < x) {
1551
+ const C = E.slice(0, H), w = E.slice(H, x), B = (b == null ? void 0 : b.style) || p, P = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", L = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || u || "top", z = Object.assign(Object.assign({
1552
+ content: w
1560
1553
  }, b == null ? void 0 : b.popover), {
1561
1554
  classNames: {
1562
- 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)
1555
+ root: _(`${N}-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)
1563
1556
  },
1564
- placement: A,
1565
- trigger: E
1557
+ placement: L,
1558
+ trigger: P
1566
1559
  });
1567
- return z.push(/* @__PURE__ */ l.createElement(Qe, Object.assign({
1560
+ return C.push(/* @__PURE__ */ l.createElement(et, Object.assign({
1568
1561
  key: "avatar-popover-key",
1569
- destroyTooltipOnHide: !0
1570
- }, L), /* @__PURE__ */ l.createElement(Ye, {
1571
- style: N
1572
- }, `+${I - P}`))), M(/* @__PURE__ */ l.createElement(dt, {
1573
- shape: p,
1562
+ destroyOnHidden: !0
1563
+ }, z), /* @__PURE__ */ l.createElement(Ke, {
1564
+ style: B
1565
+ }, `+${x - H}`))), M(/* @__PURE__ */ l.createElement(mt, {
1566
+ shape: g,
1574
1567
  size: v
1575
1568
  }, /* @__PURE__ */ l.createElement("div", {
1576
- className: w,
1569
+ className: O,
1577
1570
  style: d
1578
- }, z)));
1571
+ }, C)));
1579
1572
  }
1580
- return M(/* @__PURE__ */ l.createElement(dt, {
1581
- shape: p,
1573
+ return M(/* @__PURE__ */ l.createElement(mt, {
1574
+ shape: g,
1582
1575
  size: v
1583
1576
  }, /* @__PURE__ */ l.createElement("div", {
1584
- className: w,
1577
+ className: O,
1585
1578
  style: d
1586
- }, x)));
1587
- }, _t = Ye;
1588
- _t.Group = En;
1589
- var Pn = { 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" }, Bn = function(t, o) {
1590
- return /* @__PURE__ */ l.createElement(Ve, ze({}, t, {
1579
+ }, E)));
1580
+ }, Dt = Ke;
1581
+ Dt.Group = jn;
1582
+ 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) {
1583
+ return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
1591
1584
  ref: o,
1592
- icon: Pn
1585
+ icon: Tn
1593
1586
  }));
1594
- }, Ne = /* @__PURE__ */ l.forwardRef(Bn);
1595
- process.env.NODE_ENV !== "production" && (Ne.displayName = "LeftOutlined");
1596
- const zn = (e) => typeof e != "object" && typeof e != "function" || e === null;
1597
- var jn = { 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" }, Tn = function(t, o) {
1598
- return /* @__PURE__ */ l.createElement(Ve, ze({}, t, {
1587
+ }, Ee = /* @__PURE__ */ l.forwardRef(_n);
1588
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "LeftOutlined");
1589
+ const Rn = (e) => typeof e != "object" && typeof e != "function" || e === null;
1590
+ var Mn = { 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" }, Hn = function(t, o) {
1591
+ return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
1599
1592
  ref: o,
1600
- icon: jn
1593
+ icon: Mn
1601
1594
  }));
1602
- }, Rt = /* @__PURE__ */ l.forwardRef(Tn);
1603
- process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
1604
- const _n = /* @__PURE__ */ l.createContext({
1595
+ }, At = /* @__PURE__ */ l.forwardRef(Hn);
1596
+ process.env.NODE_ENV !== "production" && (At.displayName = "BarsOutlined");
1597
+ const Dn = /* @__PURE__ */ l.createContext({
1605
1598
  siderHook: {
1606
1599
  addSider: () => null,
1607
1600
  removeSider: () => null
1608
1601
  }
1609
- }), Rn = (e) => {
1602
+ }), An = (e) => {
1610
1603
  const {
1611
1604
  antCls: t,
1612
1605
  // .ant
@@ -1618,7 +1611,7 @@ const _n = /* @__PURE__ */ l.createContext({
1618
1611
  headerPadding: i,
1619
1612
  headerColor: s,
1620
1613
  footerPadding: c,
1621
- fontSize: u,
1614
+ fontSize: m,
1622
1615
  bodyBg: d,
1623
1616
  headerBg: f
1624
1617
  } = e;
@@ -1653,7 +1646,7 @@ const _n = /* @__PURE__ */ l.createContext({
1653
1646
  height: a,
1654
1647
  padding: i,
1655
1648
  color: s,
1656
- lineHeight: O(a),
1649
+ lineHeight: I(a),
1657
1650
  background: f,
1658
1651
  // Other components/menu/style/index.less line:686
1659
1652
  // Integration with header element so menu items have the same height
@@ -1665,7 +1658,7 @@ const _n = /* @__PURE__ */ l.createContext({
1665
1658
  [`${o}-footer`]: {
1666
1659
  padding: c,
1667
1660
  color: n,
1668
- fontSize: u,
1661
+ fontSize: m,
1669
1662
  background: r
1670
1663
  },
1671
1664
  // =================== Content ====================
@@ -1676,7 +1669,7 @@ const _n = /* @__PURE__ */ l.createContext({
1676
1669
  minHeight: 0
1677
1670
  }
1678
1671
  };
1679
- }, Mt = (e) => {
1672
+ }, Lt = (e) => {
1680
1673
  const {
1681
1674
  colorBgLayout: t,
1682
1675
  controlHeight: o,
@@ -1686,7 +1679,7 @@ const _n = /* @__PURE__ */ l.createContext({
1686
1679
  marginXXS: i,
1687
1680
  colorTextLightSolid: s,
1688
1681
  colorBgContainer: c
1689
- } = e, u = n * 1.25;
1682
+ } = e, m = n * 1.25;
1690
1683
  return {
1691
1684
  // Deprecated
1692
1685
  colorBgHeader: "#001529",
@@ -1695,9 +1688,9 @@ const _n = /* @__PURE__ */ l.createContext({
1695
1688
  bodyBg: t,
1696
1689
  headerBg: "#001529",
1697
1690
  headerHeight: o * 2,
1698
- headerPadding: `0 ${u}px`,
1691
+ headerPadding: `0 ${m}px`,
1699
1692
  headerColor: r,
1700
- footerPadding: `${a}px ${u}px`,
1693
+ footerPadding: `${a}px ${m}px`,
1701
1694
  footerBg: t,
1702
1695
  siderBg: "#001529",
1703
1696
  triggerHeight: n + i * 2,
@@ -1709,11 +1702,11 @@ const _n = /* @__PURE__ */ l.createContext({
1709
1702
  lightTriggerBg: c,
1710
1703
  lightTriggerColor: r
1711
1704
  };
1712
- }, Dt = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
1713
- de("Layout", (e) => [Rn(e)], Mt, {
1714
- deprecatedTokens: Dt
1705
+ }, kt = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
1706
+ de("Layout", (e) => [An(e)], Lt, {
1707
+ deprecatedTokens: kt
1715
1708
  });
1716
- const Mn = (e) => {
1709
+ const Ln = (e) => {
1717
1710
  const {
1718
1711
  componentCls: t,
1719
1712
  siderBg: o,
@@ -1723,13 +1716,13 @@ const Mn = (e) => {
1723
1716
  triggerHeight: i,
1724
1717
  triggerColor: s,
1725
1718
  triggerBg: c,
1726
- headerHeight: u,
1719
+ headerHeight: m,
1727
1720
  zeroTriggerWidth: d,
1728
1721
  zeroTriggerHeight: f,
1729
- borderRadiusLG: m,
1722
+ borderRadiusLG: p,
1730
1723
  lightSiderBg: v,
1731
- lightTriggerColor: p,
1732
- lightTriggerBg: g,
1724
+ lightTriggerColor: g,
1725
+ lightTriggerBg: u,
1733
1726
  bodyBg: h
1734
1727
  } = e;
1735
1728
  return {
@@ -1765,7 +1758,7 @@ const Mn = (e) => {
1765
1758
  zIndex: 1,
1766
1759
  height: i,
1767
1760
  color: s,
1768
- lineHeight: O(i),
1761
+ lineHeight: I(i),
1769
1762
  textAlign: "center",
1770
1763
  background: c,
1771
1764
  cursor: "pointer",
@@ -1773,7 +1766,7 @@ const Mn = (e) => {
1773
1766
  },
1774
1767
  [`${t}-zero-width-trigger`]: {
1775
1768
  position: "absolute",
1776
- top: u,
1769
+ top: m,
1777
1770
  insetInlineEnd: e.calc(d).mul(-1).equal(),
1778
1771
  zIndex: 1,
1779
1772
  width: d,
@@ -1784,7 +1777,7 @@ const Mn = (e) => {
1784
1777
  alignItems: "center",
1785
1778
  justifyContent: "center",
1786
1779
  background: o,
1787
- borderRadius: `0 ${O(m)} ${O(m)} 0`,
1780
+ borderRadius: `0 ${I(p)} ${I(p)} 0`,
1788
1781
  cursor: "pointer",
1789
1782
  transition: `background ${r} ease`,
1790
1783
  "&::after": {
@@ -1799,19 +1792,19 @@ const Mn = (e) => {
1799
1792
  },
1800
1793
  "&-right": {
1801
1794
  insetInlineStart: e.calc(d).mul(-1).equal(),
1802
- borderRadius: `${O(m)} 0 0 ${O(m)}`
1795
+ borderRadius: `${I(p)} 0 0 ${I(p)}`
1803
1796
  }
1804
1797
  },
1805
1798
  // Light
1806
1799
  "&-light": {
1807
1800
  background: v,
1808
1801
  [`${t}-trigger`]: {
1809
- color: p,
1810
- background: g
1802
+ color: g,
1803
+ background: u
1811
1804
  },
1812
1805
  [`${t}-zero-width-trigger`]: {
1813
- color: p,
1814
- background: g,
1806
+ color: g,
1807
+ background: u,
1815
1808
  border: `1px solid ${h}`,
1816
1809
  // Safe to modify to any other color
1817
1810
  borderInlineStart: 0
@@ -1819,30 +1812,27 @@ const Mn = (e) => {
1819
1812
  }
1820
1813
  }
1821
1814
  };
1822
- }, Dn = de(["Layout", "Sider"], (e) => [Mn(e)], Mt, {
1823
- deprecatedTokens: Dt
1815
+ }, kn = de(["Layout", "Sider"], (e) => [Ln(e)], Lt, {
1816
+ deprecatedTokens: kt
1824
1817
  });
1825
- var Hn = function(e, t) {
1818
+ var Vn = function(e, t) {
1826
1819
  var o = {};
1827
1820
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1828
1821
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1829
1822
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1830
1823
  return o;
1831
1824
  };
1832
- const ut = {
1825
+ const pt = {
1833
1826
  xs: "479.98px",
1834
1827
  sm: "575.98px",
1835
1828
  md: "767.98px",
1836
1829
  lg: "991.98px",
1837
1830
  xl: "1199.98px",
1838
1831
  xxl: "1599.98px"
1839
- }, An = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Je = /* @__PURE__ */ l.createContext({}), Ln = /* @__PURE__ */ (() => {
1832
+ }, Wn = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), tt = /* @__PURE__ */ l.createContext({}), Xn = /* @__PURE__ */ (() => {
1840
1833
  let e = 0;
1841
- return function() {
1842
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1843
- return e += 1, `${t}${e}`;
1844
- };
1845
- })(), kn = /* @__PURE__ */ l.forwardRef((e, t) => {
1834
+ return (t = "") => (e += 1, `${t}${e}`);
1835
+ })(), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
1846
1836
  const {
1847
1837
  prefixCls: o,
1848
1838
  className: n,
@@ -1851,124 +1841,107 @@ const ut = {
1851
1841
  defaultCollapsed: i = !1,
1852
1842
  theme: s = "dark",
1853
1843
  style: c = {},
1854
- collapsible: u = !1,
1844
+ collapsible: m = !1,
1855
1845
  reverseArrow: d = !1,
1856
1846
  width: f = 200,
1857
- collapsedWidth: m = 80,
1847
+ collapsedWidth: p = 80,
1858
1848
  zeroWidthTriggerStyle: v,
1859
- breakpoint: p,
1860
- onCollapse: g,
1849
+ breakpoint: g,
1850
+ onCollapse: u,
1861
1851
  onBreakpoint: h
1862
- } = e, C = Hn(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1852
+ } = e, $ = Vn(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1863
1853
  siderHook: b
1864
- } = tt(_n), [S, $] = ot("collapsed" in e ? e.collapsed : i), [B, M] = ot(!1);
1865
- He(() => {
1866
- "collapsed" in e && $(e.collapsed);
1854
+ } = nt(Dn), [S, N] = rt("collapsed" in e ? e.collapsed : i), [y, M] = rt(!1);
1855
+ Le(() => {
1856
+ "collapsed" in e && N(e.collapsed);
1867
1857
  }, [e.collapsed]);
1868
- const R = (k, U) => {
1869
- "collapsed" in e || $(k), g == null || g(k, U);
1858
+ const j = (X, Z) => {
1859
+ "collapsed" in e || N(X), u == null || u(X, Z);
1870
1860
  }, {
1871
1861
  getPrefixCls: T,
1872
- direction: w
1873
- } = tt(ie), x = T("layout-sider", o), [P, I, z] = Dn(x), y = Be(null);
1874
- y.current = (k) => {
1875
- M(k.matches), h == null || h(k.matches), S !== k.matches && R(k.matches, "responsive");
1876
- }, He(() => {
1877
- function k(Q) {
1878
- return y.current(Q);
1879
- }
1880
- let U;
1881
- if (typeof window < "u") {
1882
- const {
1883
- matchMedia: Q
1884
- } = window;
1885
- if (Q && p && p in ut) {
1886
- U = Q(`screen and (max-width: ${ut[p]})`);
1887
- try {
1888
- U.addEventListener("change", k);
1889
- } catch {
1890
- U.addListener(k);
1891
- }
1892
- k(U);
1893
- }
1862
+ direction: O
1863
+ } = nt(re), E = T("layout-sider", o), [H, x, C] = kn(E), w = ze(null);
1864
+ w.current = (X) => {
1865
+ M(X.matches), h == null || h(X.matches), S !== X.matches && j(X.matches, "responsive");
1866
+ }, Le(() => {
1867
+ function X(J) {
1868
+ var V;
1869
+ return (V = w.current) === null || V === void 0 ? void 0 : V.call(w, J);
1894
1870
  }
1895
- return () => {
1896
- try {
1897
- U == null || U.removeEventListener("change", k);
1898
- } catch {
1899
- U == null || U.removeListener(k);
1900
- }
1871
+ let Z;
1872
+ return typeof (window == null ? void 0 : window.matchMedia) < "u" && g && g in pt && (Z = window.matchMedia(`screen and (max-width: ${pt[g]})`), Et(Z, X), X(Z)), () => {
1873
+ Nt(Z, X);
1901
1874
  };
1902
- }, [p]), He(() => {
1903
- const k = Ln("ant-sider-");
1904
- return b.addSider(k), () => b.removeSider(k);
1875
+ }, [g]), Le(() => {
1876
+ const X = Xn("ant-sider-");
1877
+ return b.addSider(X), () => b.removeSider(X);
1905
1878
  }, []);
1906
- const N = () => {
1907
- R(!S, "clickTrigger");
1908
- }, E = he(C, ["collapsed"]), A = S ? m : f, L = An(A) ? `${A}px` : String(A), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
1909
- onClick: N,
1910
- className: _(`${x}-zero-width-trigger`, `${x}-zero-width-trigger-${d ? "right" : "left"}`),
1879
+ const B = () => {
1880
+ j(!S, "clickTrigger");
1881
+ }, P = $e($, ["collapsed"]), L = S ? p : f, z = Wn(L) ? `${L}px` : String(L), F = parseFloat(String(p || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
1882
+ onClick: B,
1883
+ className: _(`${E}-zero-width-trigger`, `${E}-zero-width-trigger-${d ? "right" : "left"}`),
1911
1884
  style: v
1912
- }, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, j = w === "rtl" == !d, W = {
1913
- expanded: j ? /* @__PURE__ */ l.createElement(Oe, null) : /* @__PURE__ */ l.createElement(Ne, null),
1914
- collapsed: j ? /* @__PURE__ */ l.createElement(Ne, null) : /* @__PURE__ */ l.createElement(Oe, null)
1915
- }[S ? "collapsed" : "expanded"], G = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
1916
- className: `${x}-trigger`,
1917
- onClick: N,
1885
+ }, r || /* @__PURE__ */ l.createElement(At, null)) : null, D = O === "rtl" == !d, R = {
1886
+ expanded: D ? /* @__PURE__ */ l.createElement(Ie, null) : /* @__PURE__ */ l.createElement(Ee, null),
1887
+ collapsed: D ? /* @__PURE__ */ l.createElement(Ee, null) : /* @__PURE__ */ l.createElement(Ie, null)
1888
+ }[S ? "collapsed" : "expanded"], W = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
1889
+ className: `${E}-trigger`,
1890
+ onClick: B,
1918
1891
  style: {
1919
- width: L
1892
+ width: z
1920
1893
  }
1921
- }, r || W) : null, q = Object.assign(Object.assign({}, c), {
1922
- flex: `0 0 ${L}`,
1923
- maxWidth: L,
1924
- minWidth: L,
1925
- width: L
1926
- }), Z = _(x, `${x}-${s}`, {
1927
- [`${x}-collapsed`]: !!S,
1928
- [`${x}-has-trigger`]: u && r !== null && !F,
1929
- [`${x}-below`]: !!B,
1930
- [`${x}-zero-width`]: parseFloat(L) === 0
1931
- }, n, I, z), ee = l.useMemo(() => ({
1894
+ }, r || R) : null, G = Object.assign(Object.assign({}, c), {
1895
+ flex: `0 0 ${z}`,
1896
+ maxWidth: z,
1897
+ minWidth: z,
1898
+ width: z
1899
+ }), q = _(E, `${E}-${s}`, {
1900
+ [`${E}-collapsed`]: !!S,
1901
+ [`${E}-has-trigger`]: m && r !== null && !F,
1902
+ [`${E}-below`]: !!y,
1903
+ [`${E}-zero-width`]: parseFloat(z) === 0
1904
+ }, n, x, C), Q = l.useMemo(() => ({
1932
1905
  siderCollapsed: S
1933
1906
  }), [S]);
1934
- return P(/* @__PURE__ */ l.createElement(Je.Provider, {
1935
- value: ee
1907
+ return H(/* @__PURE__ */ l.createElement(tt.Provider, {
1908
+ value: Q
1936
1909
  }, /* @__PURE__ */ l.createElement("aside", Object.assign({
1937
- className: Z
1938
- }, E, {
1939
- style: q,
1910
+ className: q
1911
+ }, P, {
1912
+ style: G,
1940
1913
  ref: t
1941
1914
  }), /* @__PURE__ */ l.createElement("div", {
1942
- className: `${x}-children`
1943
- }, a), u || B && F ? G : null)));
1915
+ className: `${E}-children`
1916
+ }, a), m || y && F ? W : null)));
1944
1917
  });
1945
- process.env.NODE_ENV !== "production" && (kn.displayName = "Sider");
1946
- const Ee = /* @__PURE__ */ to({
1918
+ process.env.NODE_ENV !== "production" && (Fn.displayName = "Sider");
1919
+ const Ne = /* @__PURE__ */ io({
1947
1920
  prefixCls: "",
1948
1921
  firstLevel: !0,
1949
1922
  inlineCollapsed: !1
1950
1923
  });
1951
- var Vn = function(e, t) {
1924
+ var Gn = function(e, t) {
1952
1925
  var o = {};
1953
1926
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1954
1927
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1955
1928
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1956
1929
  return o;
1957
1930
  };
1958
- const Ht = (e) => {
1931
+ const Vt = (e) => {
1959
1932
  const {
1960
1933
  prefixCls: t,
1961
1934
  className: o,
1962
1935
  dashed: n
1963
- } = e, r = Vn(e, ["prefixCls", "className", "dashed"]), {
1936
+ } = e, r = Gn(e, ["prefixCls", "className", "dashed"]), {
1964
1937
  getPrefixCls: a
1965
- } = l.useContext(ie), i = a("menu", t), s = _({
1938
+ } = l.useContext(re), i = a("menu", t), s = _({
1966
1939
  [`${i}-item-divider-dashed`]: !!n
1967
1940
  }, o);
1968
- return /* @__PURE__ */ l.createElement(yo, Object.assign({
1941
+ return /* @__PURE__ */ l.createElement(So, Object.assign({
1969
1942
  className: s
1970
1943
  }, r));
1971
- }, At = (e) => {
1944
+ }, Wt = (e) => {
1972
1945
  var t;
1973
1946
  const {
1974
1947
  className: o,
@@ -1979,56 +1952,56 @@ const Ht = (e) => {
1979
1952
  extra: s
1980
1953
  } = e, {
1981
1954
  prefixCls: c,
1982
- firstLevel: u,
1955
+ firstLevel: m,
1983
1956
  direction: d,
1984
1957
  disableMenuItemTitleTooltip: f,
1985
- inlineCollapsed: m
1986
- } = l.useContext(Ee), v = (S) => {
1987
- const $ = n == null ? void 0 : n[0], B = /* @__PURE__ */ l.createElement("span", {
1958
+ inlineCollapsed: p
1959
+ } = l.useContext(Ne), v = (S) => {
1960
+ const N = n == null ? void 0 : n[0], y = /* @__PURE__ */ l.createElement("span", {
1988
1961
  className: _(`${c}-title-content`, {
1989
1962
  [`${c}-title-content-with-extra`]: !!s || s === 0
1990
1963
  })
1991
1964
  }, n);
1992
- return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && u && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
1965
+ return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && m && typeof N == "string" ? /* @__PURE__ */ l.createElement("div", {
1993
1966
  className: `${c}-inline-collapsed-noicon`
1994
- }, $.charAt(0)) : B;
1967
+ }, N.charAt(0)) : y;
1995
1968
  }, {
1996
- siderCollapsed: p
1997
- } = l.useContext(Je);
1998
- let g = a;
1999
- typeof a > "u" ? g = u ? n : "" : a === !1 && (g = "");
1969
+ siderCollapsed: g
1970
+ } = l.useContext(tt);
1971
+ let u = a;
1972
+ typeof a > "u" ? u = m ? n : "" : a === !1 && (u = "");
2000
1973
  const h = {
2001
- title: g
1974
+ title: u
2002
1975
  };
2003
- !p && !m && (h.title = null, h.open = !1);
2004
- const C = Ge(n).length;
2005
- let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, he(e, ["title", "icon", "danger"]), {
1976
+ !g && !p && (h.title = null, h.open = !1);
1977
+ const $ = Ue(n).length;
1978
+ let b = /* @__PURE__ */ l.createElement(Oo, Object.assign({}, $e(e, ["title", "icon", "danger"]), {
2006
1979
  className: _({
2007
1980
  [`${c}-item-danger`]: i,
2008
- [`${c}-item-only-child`]: (r ? C + 1 : C) === 1
1981
+ [`${c}-item-only-child`]: (r ? $ + 1 : $) === 1
2009
1982
  }, o),
2010
1983
  title: typeof a == "string" ? a : void 0
2011
1984
  }), ue(r, {
2012
- className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : "", `${c}-item-icon`)
2013
- }), v(m));
2014
- return f || (b = /* @__PURE__ */ l.createElement(Re, Object.assign({}, h, {
1985
+ className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : void 0, `${c}-item-icon`)
1986
+ }), v(p));
1987
+ return f || (b = /* @__PURE__ */ l.createElement(Me, Object.assign({}, h, {
2015
1988
  placement: d === "rtl" ? "left" : "right",
2016
1989
  classNames: {
2017
1990
  root: `${c}-inline-collapsed-tooltip`
2018
1991
  }
2019
1992
  }), b)), b;
2020
1993
  };
2021
- var Wn = function(e, t) {
1994
+ var Yn = function(e, t) {
2022
1995
  var o = {};
2023
1996
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
2024
1997
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2025
1998
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
2026
1999
  return o;
2027
2000
  };
2028
- const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forwardRef((e, t) => {
2001
+ const Be = /* @__PURE__ */ l.createContext(null), Un = /* @__PURE__ */ l.forwardRef((e, t) => {
2029
2002
  const {
2030
2003
  children: o
2031
- } = e, n = Wn(e, ["children"]), r = l.useContext(Pe), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
2004
+ } = e, n = Yn(e, ["children"]), r = l.useContext(Be), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
2032
2005
  r,
2033
2006
  n.prefixCls,
2034
2007
  // restProps.expandIcon, Not mark as deps since this is a ReactNode
@@ -2036,15 +2009,15 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2036
2009
  n.selectable,
2037
2010
  n.rootClassName
2038
2011
  // restProps.validator, Not mark as deps since this is a function
2039
- ]), i = uo(o), s = mo(t, i ? po(o) : null);
2040
- return /* @__PURE__ */ l.createElement(Pe.Provider, {
2012
+ ]), i = fo(o), s = vo(t, i ? bo(o) : null);
2013
+ return /* @__PURE__ */ l.createElement(Be.Provider, {
2041
2014
  value: a
2042
- }, /* @__PURE__ */ l.createElement(St, {
2015
+ }, /* @__PURE__ */ l.createElement(It, {
2043
2016
  space: !0
2044
2017
  }, i ? /* @__PURE__ */ l.cloneElement(o, {
2045
2018
  ref: s
2046
2019
  }) : o));
2047
- }), Fn = (e) => {
2020
+ }), qn = (e) => {
2048
2021
  const {
2049
2022
  componentCls: t,
2050
2023
  motionDurationSlow: o,
@@ -2058,7 +2031,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2058
2031
  [`${t}-horizontal`]: {
2059
2032
  lineHeight: n,
2060
2033
  border: 0,
2061
- borderBottom: `${O(a)} ${i} ${r}`,
2034
+ borderBottom: `${I(a)} ${i} ${r}`,
2062
2035
  boxShadow: "none",
2063
2036
  "&::after": {
2064
2037
  display: "block",
@@ -2087,33 +2060,30 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2087
2060
  }
2088
2061
  }
2089
2062
  };
2090
- }, Gn = (e) => {
2091
- let {
2092
- componentCls: t,
2093
- menuArrowOffset: o,
2094
- calc: n
2095
- } = e;
2096
- return {
2097
- [`${t}-rtl`]: {
2098
- direction: "rtl"
2099
- },
2100
- [`${t}-submenu-rtl`]: {
2101
- transformOrigin: "100% 0"
2102
- },
2103
- // Vertical Arrow
2104
- [`${t}-rtl${t}-vertical,
2105
- ${t}-submenu-rtl ${t}-vertical`]: {
2106
- [`${t}-submenu-arrow`]: {
2107
- "&::before": {
2108
- transform: `rotate(-45deg) translateY(${O(n(o).mul(-1).equal())})`
2109
- },
2110
- "&::after": {
2111
- transform: `rotate(45deg) translateY(${O(o)})`
2112
- }
2063
+ }, Kn = ({
2064
+ componentCls: e,
2065
+ menuArrowOffset: t,
2066
+ calc: o
2067
+ }) => ({
2068
+ [`${e}-rtl`]: {
2069
+ direction: "rtl"
2070
+ },
2071
+ [`${e}-submenu-rtl`]: {
2072
+ transformOrigin: "100% 0"
2073
+ },
2074
+ // Vertical Arrow
2075
+ [`${e}-rtl${e}-vertical,
2076
+ ${e}-submenu-rtl ${e}-vertical`]: {
2077
+ [`${e}-submenu-arrow`]: {
2078
+ "&::before": {
2079
+ transform: `rotate(-45deg) translateY(${I(o(t).mul(-1).equal())})`
2080
+ },
2081
+ "&::after": {
2082
+ transform: `rotate(45deg) translateY(${I(t)})`
2113
2083
  }
2114
2084
  }
2115
- };
2116
- }, mt = (e) => Object.assign({}, go(e)), pt = (e, t) => {
2085
+ }
2086
+ }), gt = (e) => Object.assign({}, ho(e)), ft = (e, t) => {
2117
2087
  const {
2118
2088
  componentCls: o,
2119
2089
  itemColor: n,
@@ -2122,42 +2092,42 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2122
2092
  groupTitleColor: i,
2123
2093
  itemBg: s,
2124
2094
  subMenuItemBg: c,
2125
- itemSelectedBg: u,
2095
+ itemSelectedBg: m,
2126
2096
  activeBarHeight: d,
2127
2097
  activeBarWidth: f,
2128
- activeBarBorderWidth: m,
2098
+ activeBarBorderWidth: p,
2129
2099
  motionDurationSlow: v,
2130
- motionEaseInOut: p,
2131
- motionEaseOut: g,
2100
+ motionEaseInOut: g,
2101
+ motionEaseOut: u,
2132
2102
  itemPaddingInline: h,
2133
- motionDurationMid: C,
2103
+ motionDurationMid: $,
2134
2104
  itemHoverColor: b,
2135
2105
  lineType: S,
2136
- colorSplit: $,
2106
+ colorSplit: N,
2137
2107
  // Disabled
2138
- itemDisabledColor: B,
2108
+ itemDisabledColor: y,
2139
2109
  // Danger
2140
2110
  dangerItemColor: M,
2141
- dangerItemHoverColor: R,
2111
+ dangerItemHoverColor: j,
2142
2112
  dangerItemSelectedColor: T,
2143
- dangerItemActiveBg: w,
2144
- dangerItemSelectedBg: x,
2113
+ dangerItemActiveBg: O,
2114
+ dangerItemSelectedBg: E,
2145
2115
  // Bg
2146
- popupBg: P,
2147
- itemHoverBg: I,
2148
- itemActiveBg: z,
2149
- menuSubMenuBg: y,
2116
+ popupBg: H,
2117
+ itemHoverBg: x,
2118
+ itemActiveBg: C,
2119
+ menuSubMenuBg: w,
2150
2120
  // Horizontal
2151
- horizontalItemSelectedColor: N,
2152
- horizontalItemSelectedBg: E,
2153
- horizontalItemBorderRadius: A,
2154
- horizontalItemHoverBg: L
2121
+ horizontalItemSelectedColor: B,
2122
+ horizontalItemSelectedBg: P,
2123
+ horizontalItemBorderRadius: L,
2124
+ horizontalItemHoverBg: z
2155
2125
  } = e;
2156
2126
  return {
2157
2127
  [`${o}-${t}, ${o}-${t} > ${o}`]: {
2158
2128
  color: n,
2159
2129
  background: s,
2160
- [`&${o}-root:focus-visible`]: Object.assign({}, mt(e)),
2130
+ [`&${o}-root:focus-visible`]: Object.assign({}, gt(e)),
2161
2131
  // ======================== Item ========================
2162
2132
  [`${o}-item`]: {
2163
2133
  "&-group-title, &-extra": {
@@ -2169,11 +2139,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2169
2139
  },
2170
2140
  [`${o}-item, ${o}-submenu-title`]: {
2171
2141
  color: n,
2172
- [`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, mt(e))
2142
+ [`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, gt(e))
2173
2143
  },
2174
2144
  // Disabled
2175
2145
  [`${o}-item-disabled, ${o}-submenu-disabled`]: {
2176
- color: `${B} !important`
2146
+ color: `${y} !important`
2177
2147
  },
2178
2148
  // Hover
2179
2149
  [`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
@@ -2184,18 +2154,18 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2184
2154
  [`&:not(${o}-horizontal)`]: {
2185
2155
  [`${o}-item:not(${o}-item-selected)`]: {
2186
2156
  "&:hover": {
2187
- backgroundColor: I
2157
+ backgroundColor: x
2188
2158
  },
2189
2159
  "&:active": {
2190
- backgroundColor: z
2160
+ backgroundColor: C
2191
2161
  }
2192
2162
  },
2193
2163
  [`${o}-submenu-title`]: {
2194
2164
  "&:hover": {
2195
- backgroundColor: I
2165
+ backgroundColor: x
2196
2166
  },
2197
2167
  "&:active": {
2198
- backgroundColor: z
2168
+ backgroundColor: C
2199
2169
  }
2200
2170
  }
2201
2171
  },
@@ -2204,11 +2174,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2204
2174
  color: M,
2205
2175
  [`&${o}-item:hover`]: {
2206
2176
  [`&:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
2207
- color: R
2177
+ color: j
2208
2178
  }
2209
2179
  },
2210
2180
  [`&${o}-item:active`]: {
2211
- background: w
2181
+ background: O
2212
2182
  }
2213
2183
  },
2214
2184
  [`${o}-item a`]: {
@@ -2227,22 +2197,22 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2227
2197
  }
2228
2198
  },
2229
2199
  [`& ${o}-item-selected`]: {
2230
- backgroundColor: u,
2200
+ backgroundColor: m,
2231
2201
  // Danger
2232
2202
  [`&${o}-item-danger`]: {
2233
- backgroundColor: x
2203
+ backgroundColor: E
2234
2204
  }
2235
2205
  },
2236
2206
  [`&${o}-submenu > ${o}`]: {
2237
- backgroundColor: y
2207
+ backgroundColor: w
2238
2208
  },
2239
2209
  // ===== 设置浮层的颜色 =======
2240
2210
  // !dark 模式会被popupBg 会被rest 为 darkPopupBg
2241
2211
  [`&${o}-popup > ${o}`]: {
2242
- backgroundColor: P
2212
+ backgroundColor: H
2243
2213
  },
2244
2214
  [`&${o}-submenu-popup > ${o}`]: {
2245
- backgroundColor: P
2215
+ backgroundColor: H
2246
2216
  },
2247
2217
  // ===== 设置浮层的颜色 end =======
2248
2218
  // ====================== Horizontal ======================
@@ -2250,34 +2220,34 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2250
2220
  borderBottom: 0
2251
2221
  } : {}), {
2252
2222
  [`> ${o}-item, > ${o}-submenu`]: {
2253
- top: m,
2254
- marginTop: e.calc(m).mul(-1).equal(),
2223
+ top: p,
2224
+ marginTop: e.calc(p).mul(-1).equal(),
2255
2225
  marginBottom: 0,
2256
- borderRadius: A,
2226
+ borderRadius: L,
2257
2227
  "&::after": {
2258
2228
  position: "absolute",
2259
2229
  insetInline: h,
2260
2230
  bottom: 0,
2261
- borderBottom: `${O(d)} solid transparent`,
2262
- transition: `border-color ${v} ${p}`,
2231
+ borderBottom: `${I(d)} solid transparent`,
2232
+ transition: `border-color ${v} ${g}`,
2263
2233
  content: '""'
2264
2234
  },
2265
2235
  "&:hover, &-active, &-open": {
2266
- background: L,
2236
+ background: z,
2267
2237
  "&::after": {
2268
2238
  borderBottomWidth: d,
2269
- borderBottomColor: N
2239
+ borderBottomColor: B
2270
2240
  }
2271
2241
  },
2272
2242
  "&-selected": {
2273
- color: N,
2274
- backgroundColor: E,
2243
+ color: B,
2244
+ backgroundColor: P,
2275
2245
  "&:hover": {
2276
- backgroundColor: E
2246
+ backgroundColor: P
2277
2247
  },
2278
2248
  "&::after": {
2279
2249
  borderBottomWidth: d,
2280
- borderBottomColor: N
2250
+ borderBottomColor: B
2281
2251
  }
2282
2252
  }
2283
2253
  }
@@ -2286,7 +2256,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2286
2256
  //
2287
2257
  [`&${o}-root`]: {
2288
2258
  [`&${o}-inline, &${o}-vertical`]: {
2289
- borderInlineEnd: `${O(m)} ${S} ${$}`
2259
+ borderInlineEnd: `${I(p)} ${S} ${N}`
2290
2260
  }
2291
2261
  },
2292
2262
  // ======================== Inline ========================
@@ -2301,10 +2271,10 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2301
2271
  position: "absolute",
2302
2272
  insetBlock: 0,
2303
2273
  insetInlineEnd: 0,
2304
- borderInlineEnd: `${O(f)} solid ${r}`,
2274
+ borderInlineEnd: `${I(f)} solid ${r}`,
2305
2275
  transform: "scaleY(0.0001)",
2306
2276
  opacity: 0,
2307
- transition: [`transform ${C} ${g}`, `opacity ${C} ${g}`].join(","),
2277
+ transition: [`transform ${$} ${u}`, `opacity ${$} ${u}`].join(","),
2308
2278
  content: '""'
2309
2279
  },
2310
2280
  // Danger
@@ -2318,13 +2288,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2318
2288
  "&::after": {
2319
2289
  transform: "scaleY(1)",
2320
2290
  opacity: 1,
2321
- transition: [`transform ${C} ${p}`, `opacity ${C} ${p}`].join(",")
2291
+ transition: [`transform ${$} ${g}`, `opacity ${$} ${g}`].join(",")
2322
2292
  }
2323
2293
  }
2324
2294
  }
2325
2295
  }
2326
2296
  };
2327
- }, gt = (e) => {
2297
+ }, vt = (e) => {
2328
2298
  const {
2329
2299
  componentCls: t,
2330
2300
  itemHeight: o,
@@ -2334,7 +2304,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2334
2304
  marginXS: i,
2335
2305
  itemMarginBlock: s,
2336
2306
  itemWidth: c,
2337
- itemPaddingInline: u
2307
+ itemPaddingInline: m
2338
2308
  } = e, d = e.calc(a).add(r).add(i).equal();
2339
2309
  return {
2340
2310
  [`${t}-item`]: {
@@ -2343,8 +2313,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2343
2313
  },
2344
2314
  [`${t}-item, ${t}-submenu-title`]: {
2345
2315
  height: o,
2346
- lineHeight: O(o),
2347
- paddingInline: u,
2316
+ lineHeight: I(o),
2317
+ paddingInline: m,
2348
2318
  overflow: "hidden",
2349
2319
  textOverflow: "ellipsis",
2350
2320
  marginInline: n,
@@ -2354,14 +2324,14 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2354
2324
  [`> ${t}-item,
2355
2325
  > ${t}-submenu > ${t}-submenu-title`]: {
2356
2326
  height: o,
2357
- lineHeight: O(o)
2327
+ lineHeight: I(o)
2358
2328
  },
2359
2329
  [`${t}-item-group-list ${t}-submenu-title,
2360
2330
  ${t}-submenu-title`]: {
2361
2331
  paddingInlineEnd: d
2362
2332
  }
2363
2333
  };
2364
- }, qn = (e) => {
2334
+ }, Zn = (e) => {
2365
2335
  const {
2366
2336
  componentCls: t,
2367
2337
  iconCls: o,
@@ -2371,17 +2341,17 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2371
2341
  controlHeightLG: i,
2372
2342
  motionEaseOut: s,
2373
2343
  paddingXL: c,
2374
- itemMarginInline: u,
2344
+ itemMarginInline: m,
2375
2345
  fontSizeLG: d,
2376
2346
  motionDurationFast: f,
2377
- motionDurationSlow: m,
2347
+ motionDurationSlow: p,
2378
2348
  paddingXS: v,
2379
- boxShadowSecondary: p,
2380
- collapsedWidth: g,
2349
+ boxShadowSecondary: g,
2350
+ collapsedWidth: u,
2381
2351
  collapsedIconSize: h
2382
- } = e, C = {
2352
+ } = e, $ = {
2383
2353
  height: n,
2384
- lineHeight: O(n),
2354
+ lineHeight: I(n),
2385
2355
  listStylePosition: "inside",
2386
2356
  listStyleType: "disc"
2387
2357
  };
@@ -2392,11 +2362,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2392
2362
  [`&${t}-root`]: {
2393
2363
  boxShadow: "none"
2394
2364
  }
2395
- }, gt(e))
2365
+ }, vt(e))
2396
2366
  },
2397
2367
  [`${t}-submenu-popup`]: {
2398
- [`${t}-vertical`]: Object.assign(Object.assign({}, gt(e)), {
2399
- boxShadow: p
2368
+ [`${t}-vertical`]: Object.assign(Object.assign({}, vt(e)), {
2369
+ boxShadow: g
2400
2370
  })
2401
2371
  }
2402
2372
  },
@@ -2404,7 +2374,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2404
2374
  {
2405
2375
  [`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
2406
2376
  minWidth: a,
2407
- maxHeight: `calc(100vh - ${O(e.calc(i).mul(2.5).equal())})`,
2377
+ maxHeight: `calc(100vh - ${I(e.calc(i).mul(2.5).equal())})`,
2408
2378
  padding: "0",
2409
2379
  overflow: "hidden",
2410
2380
  borderInlineEnd: 0,
@@ -2425,7 +2395,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2425
2395
  [`${t}-item, ${t}-submenu-title`]: {
2426
2396
  display: "flex",
2427
2397
  alignItems: "center",
2428
- transition: [`border-color ${m}`, `background ${m}`, `padding ${f} ${s}`].join(","),
2398
+ transition: [`border-color ${p}`, `background ${p}`, `padding ${f} ${s}`].join(","),
2429
2399
  [`> ${t}-title-content`]: {
2430
2400
  flex: "auto",
2431
2401
  minWidth: 0,
@@ -2443,19 +2413,19 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2443
2413
  border: 0,
2444
2414
  borderRadius: 0,
2445
2415
  boxShadow: "none",
2446
- [`& > ${t}-submenu > ${t}-submenu-title`]: C,
2416
+ [`& > ${t}-submenu > ${t}-submenu-title`]: $,
2447
2417
  [`& ${t}-item-group-title`]: {
2448
2418
  paddingInlineStart: c
2449
2419
  }
2450
2420
  },
2451
2421
  // >>>>> Item
2452
- [`${t}-item`]: C
2422
+ [`${t}-item`]: $
2453
2423
  }
2454
2424
  },
2455
2425
  // Inline Collapse Only
2456
2426
  {
2457
2427
  [`${t}-inline-collapsed`]: {
2458
- width: g,
2428
+ width: u,
2459
2429
  [`&${t}-root`]: {
2460
2430
  [`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
2461
2431
  [`> ${t}-inline-collapsed-noicon`]: {
@@ -2469,7 +2439,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2469
2439
  > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
2470
2440
  > ${t}-submenu > ${t}-submenu-title`]: {
2471
2441
  insetInlineStart: 0,
2472
- paddingInline: `calc(50% - ${O(e.calc(h).div(2).equal())} - ${O(u)})`,
2442
+ paddingInline: `calc(50% - ${I(e.calc(h).div(2).equal())} - ${I(m)})`,
2473
2443
  textOverflow: "clip",
2474
2444
  [`
2475
2445
  ${t}-submenu-arrow,
@@ -2480,7 +2450,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2480
2450
  [`${t}-item-icon, ${o}`]: {
2481
2451
  margin: 0,
2482
2452
  fontSize: h,
2483
- lineHeight: O(n),
2453
+ lineHeight: I(n),
2484
2454
  "+ span": {
2485
2455
  display: "inline-block",
2486
2456
  opacity: 0
@@ -2499,13 +2469,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2499
2469
  color: r
2500
2470
  }
2501
2471
  },
2502
- [`${t}-item-group-title`]: Object.assign(Object.assign({}, fo), {
2472
+ [`${t}-item-group-title`]: Object.assign(Object.assign({}, $o), {
2503
2473
  paddingInline: v
2504
2474
  })
2505
2475
  }
2506
2476
  }
2507
2477
  ];
2508
- }, ft = (e) => {
2478
+ }, bt = (e) => {
2509
2479
  const {
2510
2480
  componentCls: t,
2511
2481
  motionDurationSlow: o,
@@ -2535,7 +2505,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2535
2505
  transition: [`opacity ${o} ${r}`, `margin ${o}`, `color ${o}`].join(",")
2536
2506
  }
2537
2507
  },
2538
- [`${t}-item-icon`]: Object.assign({}, vo()),
2508
+ [`${t}-item-icon`]: Object.assign({}, yo()),
2539
2509
  [`&${t}-item-only-child`]: {
2540
2510
  [`> ${i}, > ${t}-item-icon`]: {
2541
2511
  marginInlineEnd: 0
@@ -2560,7 +2530,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2560
2530
  }
2561
2531
  }
2562
2532
  };
2563
- }, vt = (e) => {
2533
+ }, ht = (e) => {
2564
2534
  const {
2565
2535
  componentCls: t,
2566
2536
  motionDurationSlow: o,
@@ -2592,15 +2562,15 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2592
2562
  content: '""'
2593
2563
  },
2594
2564
  "&::before": {
2595
- transform: `rotate(45deg) translateY(${O(e.calc(i).mul(-1).equal())})`
2565
+ transform: `rotate(45deg) translateY(${I(e.calc(i).mul(-1).equal())})`
2596
2566
  },
2597
2567
  "&::after": {
2598
- transform: `rotate(-45deg) translateY(${O(i)})`
2568
+ transform: `rotate(-45deg) translateY(${I(i)})`
2599
2569
  }
2600
2570
  }
2601
2571
  }
2602
2572
  };
2603
- }, Yn = (e) => {
2573
+ }, Qn = (e) => {
2604
2574
  const {
2605
2575
  antCls: t,
2606
2576
  componentCls: o,
@@ -2610,22 +2580,22 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2610
2580
  motionEaseInOut: i,
2611
2581
  paddingXS: s,
2612
2582
  padding: c,
2613
- colorSplit: u,
2583
+ colorSplit: m,
2614
2584
  lineWidth: d,
2615
2585
  zIndexPopup: f,
2616
- borderRadiusLG: m,
2586
+ borderRadiusLG: p,
2617
2587
  subMenuItemBorderRadius: v,
2618
- menuArrowSize: p,
2619
- menuArrowOffset: g,
2588
+ menuArrowSize: g,
2589
+ menuArrowOffset: u,
2620
2590
  lineType: h,
2621
- groupTitleLineHeight: C,
2591
+ groupTitleLineHeight: $,
2622
2592
  groupTitleFontSize: b
2623
2593
  } = e;
2624
2594
  return [
2625
2595
  // Misc
2626
2596
  {
2627
2597
  "": {
2628
- [o]: Object.assign(Object.assign({}, rt()), {
2598
+ [o]: Object.assign(Object.assign({}, at()), {
2629
2599
  // Hidden
2630
2600
  "&-hidden": {
2631
2601
  display: "none"
@@ -2637,7 +2607,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2637
2607
  }
2638
2608
  },
2639
2609
  {
2640
- [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), rt()), {
2610
+ [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), at()), {
2641
2611
  marginBottom: 0,
2642
2612
  paddingInlineStart: 0,
2643
2613
  // Override default ul/ol
@@ -2663,9 +2633,9 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2663
2633
  borderRadius: e.itemBorderRadius
2664
2634
  },
2665
2635
  [`${o}-item-group-title`]: {
2666
- padding: `${O(s)} ${O(c)}`,
2636
+ padding: `${I(s)} ${I(c)}`,
2667
2637
  fontSize: b,
2668
- lineHeight: C,
2638
+ lineHeight: $,
2669
2639
  transition: `all ${r}`
2670
2640
  },
2671
2641
  [`&-horizontal ${o}-submenu`]: {
@@ -2709,7 +2679,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2709
2679
  [`${o}-item-divider`]: {
2710
2680
  overflow: "hidden",
2711
2681
  lineHeight: 0,
2712
- borderColor: u,
2682
+ borderColor: m,
2713
2683
  borderStyle: h,
2714
2684
  borderWidth: 0,
2715
2685
  borderTopWidth: d,
@@ -2719,13 +2689,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2719
2689
  borderStyle: "dashed"
2720
2690
  }
2721
2691
  }
2722
- }), ft(e)), {
2692
+ }), bt(e)), {
2723
2693
  [`${o}-item-group`]: {
2724
2694
  [`${o}-item-group-list`]: {
2725
2695
  margin: 0,
2726
2696
  padding: 0,
2727
2697
  [`${o}-item, ${o}-submenu-title`]: {
2728
- paddingInline: `${O(e.calc(n).mul(2).equal())} ${O(c)}`
2698
+ paddingInline: `${I(e.calc(n).mul(2).equal())} ${I(c)}`
2729
2699
  }
2730
2700
  }
2731
2701
  },
@@ -2734,7 +2704,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2734
2704
  "&-popup": {
2735
2705
  position: "absolute",
2736
2706
  zIndex: f,
2737
- borderRadius: m,
2707
+ borderRadius: p,
2738
2708
  boxShadow: "none",
2739
2709
  transformOrigin: "0 0",
2740
2710
  [`&${o}-submenu`]: {
@@ -2751,8 +2721,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2751
2721
  content: '""'
2752
2722
  },
2753
2723
  [`> ${o}`]: Object.assign(Object.assign(Object.assign({
2754
- borderRadius: m
2755
- }, ft(e)), vt(e)), {
2724
+ borderRadius: p
2725
+ }, bt(e)), ht(e)), {
2756
2726
  [`${o}-item, ${o}-submenu > ${o}-submenu-title`]: {
2757
2727
  borderRadius: v
2758
2728
  },
@@ -2786,25 +2756,25 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2786
2756
  paddingTop: e.paddingXS
2787
2757
  }
2788
2758
  }
2789
- }), vt(e)), {
2759
+ }), ht(e)), {
2790
2760
  [`&-inline-collapsed ${o}-submenu-arrow,
2791
2761
  &-inline ${o}-submenu-arrow`]: {
2792
2762
  // ↓
2793
2763
  "&::before": {
2794
- transform: `rotate(-45deg) translateX(${O(g)})`
2764
+ transform: `rotate(-45deg) translateX(${I(u)})`
2795
2765
  },
2796
2766
  "&::after": {
2797
- transform: `rotate(45deg) translateX(${O(e.calc(g).mul(-1).equal())})`
2767
+ transform: `rotate(45deg) translateX(${I(e.calc(u).mul(-1).equal())})`
2798
2768
  }
2799
2769
  },
2800
2770
  [`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
2801
2771
  // ↑
2802
- transform: `translateY(${O(e.calc(p).mul(0.2).mul(-1).equal())})`,
2772
+ transform: `translateY(${I(e.calc(g).mul(0.2).mul(-1).equal())})`,
2803
2773
  "&::after": {
2804
- transform: `rotate(-45deg) translateX(${O(e.calc(g).mul(-1).equal())})`
2774
+ transform: `rotate(-45deg) translateX(${I(e.calc(u).mul(-1).equal())})`
2805
2775
  },
2806
2776
  "&::before": {
2807
- transform: `rotate(45deg) translateX(${O(g)})`
2777
+ transform: `rotate(45deg) translateX(${I(u)})`
2808
2778
  }
2809
2779
  }
2810
2780
  })
@@ -2818,7 +2788,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2818
2788
  }
2819
2789
  }
2820
2790
  ];
2821
- }, Un = (e) => {
2791
+ }, Jn = (e) => {
2822
2792
  var t, o, n;
2823
2793
  const {
2824
2794
  colorPrimary: r,
@@ -2826,25 +2796,25 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2826
2796
  colorTextDisabled: i,
2827
2797
  colorErrorBg: s,
2828
2798
  colorText: c,
2829
- colorTextDescription: u,
2799
+ colorTextDescription: m,
2830
2800
  colorBgContainer: d,
2831
2801
  colorFillAlter: f,
2832
- colorFillContent: m,
2802
+ colorFillContent: p,
2833
2803
  lineWidth: v,
2834
- lineWidthBold: p,
2835
- controlItemBgActive: g,
2804
+ lineWidthBold: g,
2805
+ controlItemBgActive: u,
2836
2806
  colorBgTextHover: h,
2837
- controlHeightLG: C,
2807
+ controlHeightLG: $,
2838
2808
  lineHeight: b,
2839
2809
  colorBgElevated: S,
2840
- marginXXS: $,
2841
- padding: B,
2810
+ marginXXS: N,
2811
+ padding: y,
2842
2812
  fontSize: M,
2843
- controlHeightSM: R,
2813
+ controlHeightSM: j,
2844
2814
  fontSizeLG: T,
2845
- colorTextLightSolid: w,
2846
- colorErrorHover: x
2847
- } = e, P = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, I = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : v, z = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new it(w).setA(0.65).toRgbString();
2815
+ colorTextLightSolid: O,
2816
+ colorErrorHover: E
2817
+ } = e, H = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, x = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : v, C = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, w = new lt(O).setA(0.65).toRgbString();
2848
2818
  return {
2849
2819
  dropdownWidth: 160,
2850
2820
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -2858,8 +2828,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2858
2828
  itemHoverColor: c,
2859
2829
  colorItemTextHoverHorizontal: r,
2860
2830
  horizontalItemHoverColor: r,
2861
- colorGroupTitle: u,
2862
- groupTitleColor: u,
2831
+ colorGroupTitle: m,
2832
+ groupTitleColor: m,
2863
2833
  colorItemTextSelected: r,
2864
2834
  itemSelectedColor: r,
2865
2835
  subMenuItemSelectedColor: r,
@@ -2869,20 +2839,20 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2869
2839
  itemBg: d,
2870
2840
  colorItemBgHover: h,
2871
2841
  itemHoverBg: h,
2872
- colorItemBgActive: m,
2873
- itemActiveBg: g,
2842
+ colorItemBgActive: p,
2843
+ itemActiveBg: u,
2874
2844
  colorSubItemBg: f,
2875
2845
  subMenuItemBg: f,
2876
- colorItemBgSelected: g,
2877
- itemSelectedBg: g,
2846
+ colorItemBgSelected: u,
2847
+ itemSelectedBg: u,
2878
2848
  colorItemBgSelectedHorizontal: "transparent",
2879
2849
  horizontalItemSelectedBg: "transparent",
2880
2850
  colorActiveBarWidth: 0,
2881
- activeBarWidth: P,
2882
- colorActiveBarHeight: p,
2883
- activeBarHeight: p,
2851
+ activeBarWidth: H,
2852
+ colorActiveBarHeight: g,
2853
+ activeBarHeight: g,
2884
2854
  colorActiveBarBorderSize: v,
2885
- activeBarBorderWidth: I,
2855
+ activeBarBorderWidth: x,
2886
2856
  // Disabled
2887
2857
  colorItemTextDisabled: i,
2888
2858
  itemDisabledColor: i,
@@ -2897,137 +2867,134 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
2897
2867
  dangerItemActiveBg: s,
2898
2868
  colorDangerItemBgSelected: s,
2899
2869
  dangerItemSelectedBg: s,
2900
- itemMarginInline: z,
2870
+ itemMarginInline: C,
2901
2871
  horizontalItemBorderRadius: 0,
2902
2872
  horizontalItemHoverBg: "transparent",
2903
- itemHeight: C,
2873
+ itemHeight: $,
2904
2874
  groupTitleLineHeight: b,
2905
- collapsedWidth: C * 2,
2875
+ collapsedWidth: $ * 2,
2906
2876
  popupBg: S,
2907
- itemMarginBlock: $,
2908
- itemPaddingInline: B,
2909
- horizontalLineHeight: `${C * 1.15}px`,
2877
+ itemMarginBlock: N,
2878
+ itemPaddingInline: y,
2879
+ horizontalLineHeight: `${$ * 1.15}px`,
2910
2880
  iconSize: M,
2911
- iconMarginInlineEnd: R - M,
2881
+ iconMarginInlineEnd: j - M,
2912
2882
  collapsedIconSize: T,
2913
2883
  groupTitleFontSize: M,
2914
2884
  // Disabled
2915
- darkItemDisabledColor: new it(w).setA(0.25).toRgbString(),
2885
+ darkItemDisabledColor: new lt(O).setA(0.25).toRgbString(),
2916
2886
  // Dark
2917
- darkItemColor: y,
2887
+ darkItemColor: w,
2918
2888
  darkDangerItemColor: a,
2919
2889
  darkItemBg: "#001529",
2920
2890
  darkPopupBg: "#001529",
2921
2891
  darkSubMenuItemBg: "#000c17",
2922
- darkItemSelectedColor: w,
2892
+ darkItemSelectedColor: O,
2923
2893
  darkItemSelectedBg: r,
2924
2894
  darkDangerItemSelectedBg: a,
2925
2895
  darkItemHoverBg: "transparent",
2926
- darkGroupTitleColor: y,
2927
- darkItemHoverColor: w,
2928
- darkDangerItemHoverColor: x,
2929
- darkDangerItemSelectedColor: w,
2896
+ darkGroupTitleColor: w,
2897
+ darkItemHoverColor: O,
2898
+ darkDangerItemHoverColor: E,
2899
+ darkDangerItemSelectedColor: O,
2930
2900
  darkDangerItemActiveBg: a,
2931
2901
  // internal
2932
- itemWidth: P ? `calc(100% + ${I}px)` : `calc(100% - ${z * 2}px)`
2902
+ itemWidth: H ? `calc(100% + ${x}px)` : `calc(100% - ${C * 2}px)`
2933
2903
  };
2934
- }, Kn = function(e) {
2935
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
2936
- return de("Menu", (r) => {
2937
- const {
2938
- colorBgElevated: a,
2939
- controlHeightLG: i,
2940
- fontSize: s,
2941
- darkItemColor: c,
2942
- darkDangerItemColor: u,
2943
- darkItemBg: d,
2944
- darkSubMenuItemBg: f,
2945
- darkItemSelectedColor: m,
2946
- darkItemSelectedBg: v,
2947
- darkDangerItemSelectedBg: p,
2948
- darkItemHoverBg: g,
2949
- darkGroupTitleColor: h,
2950
- darkItemHoverColor: C,
2951
- darkItemDisabledColor: b,
2952
- darkDangerItemHoverColor: S,
2953
- darkDangerItemSelectedColor: $,
2954
- darkDangerItemActiveBg: B,
2955
- popupBg: M,
2956
- darkPopupBg: R
2957
- } = r, T = r.calc(s).div(7).mul(5).equal(), w = ce(r, {
2958
- menuArrowSize: T,
2959
- menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
2960
- menuArrowOffset: r.calc(T).mul(0.25).equal(),
2961
- menuSubMenuBg: a,
2962
- calc: r.calc,
2963
- popupBg: M
2964
- }), x = ce(w, {
2965
- itemColor: c,
2966
- itemHoverColor: C,
2967
- groupTitleColor: h,
2968
- itemSelectedColor: m,
2969
- subMenuItemSelectedColor: m,
2970
- itemBg: d,
2971
- popupBg: R,
2972
- subMenuItemBg: f,
2973
- itemActiveBg: "transparent",
2974
- itemSelectedBg: v,
2975
- activeBarHeight: 0,
2976
- activeBarBorderWidth: 0,
2977
- itemHoverBg: g,
2978
- // Disabled
2979
- itemDisabledColor: b,
2980
- // Danger
2981
- dangerItemColor: u,
2982
- dangerItemHoverColor: S,
2983
- dangerItemSelectedColor: $,
2984
- dangerItemActiveBg: B,
2985
- dangerItemSelectedBg: p,
2986
- menuSubMenuBg: f,
2987
- // Horizontal
2988
- horizontalItemSelectedColor: m,
2989
- horizontalItemSelectedBg: v
2990
- });
2991
- return [
2992
- // Basic
2993
- Yn(w),
2994
- // Horizontal
2995
- Fn(w),
2996
- // Hard code for some light style
2997
- // Vertical
2998
- qn(w),
2999
- // Hard code for some light style
3000
- // Theme
3001
- pt(w, "light"),
3002
- pt(x, "dark"),
3003
- // RTL
3004
- Gn(w),
3005
- // Motion
3006
- Ao(w),
3007
- Se(w, "slide-up"),
3008
- Se(w, "slide-down"),
3009
- Te(w, "zoom-big")
3010
- ];
3011
- }, Un, {
3012
- 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"]],
3013
- // Dropdown will handle menu style self. We do not need to handle this.
3014
- injectStyle: o,
3015
- unitless: {
3016
- groupTitleLineHeight: !0
3017
- }
3018
- })(e, t);
3019
- }, Lt = (e) => {
2904
+ }, er = (e, t = e, o = !0) => de("Menu", (r) => {
2905
+ const {
2906
+ colorBgElevated: a,
2907
+ controlHeightLG: i,
2908
+ fontSize: s,
2909
+ darkItemColor: c,
2910
+ darkDangerItemColor: m,
2911
+ darkItemBg: d,
2912
+ darkSubMenuItemBg: f,
2913
+ darkItemSelectedColor: p,
2914
+ darkItemSelectedBg: v,
2915
+ darkDangerItemSelectedBg: g,
2916
+ darkItemHoverBg: u,
2917
+ darkGroupTitleColor: h,
2918
+ darkItemHoverColor: $,
2919
+ darkItemDisabledColor: b,
2920
+ darkDangerItemHoverColor: S,
2921
+ darkDangerItemSelectedColor: N,
2922
+ darkDangerItemActiveBg: y,
2923
+ popupBg: M,
2924
+ darkPopupBg: j
2925
+ } = r, T = r.calc(s).div(7).mul(5).equal(), O = ce(r, {
2926
+ menuArrowSize: T,
2927
+ menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
2928
+ menuArrowOffset: r.calc(T).mul(0.25).equal(),
2929
+ menuSubMenuBg: a,
2930
+ calc: r.calc,
2931
+ popupBg: M
2932
+ }), E = ce(O, {
2933
+ itemColor: c,
2934
+ itemHoverColor: $,
2935
+ groupTitleColor: h,
2936
+ itemSelectedColor: p,
2937
+ subMenuItemSelectedColor: p,
2938
+ itemBg: d,
2939
+ popupBg: j,
2940
+ subMenuItemBg: f,
2941
+ itemActiveBg: "transparent",
2942
+ itemSelectedBg: v,
2943
+ activeBarHeight: 0,
2944
+ activeBarBorderWidth: 0,
2945
+ itemHoverBg: u,
2946
+ // Disabled
2947
+ itemDisabledColor: b,
2948
+ // Danger
2949
+ dangerItemColor: m,
2950
+ dangerItemHoverColor: S,
2951
+ dangerItemSelectedColor: N,
2952
+ dangerItemActiveBg: y,
2953
+ dangerItemSelectedBg: g,
2954
+ menuSubMenuBg: f,
2955
+ // Horizontal
2956
+ horizontalItemSelectedColor: p,
2957
+ horizontalItemSelectedBg: v
2958
+ });
2959
+ return [
2960
+ // Basic
2961
+ Qn(O),
2962
+ // Horizontal
2963
+ qn(O),
2964
+ // Hard code for some light style
2965
+ // Vertical
2966
+ Zn(O),
2967
+ // Hard code for some light style
2968
+ // Theme
2969
+ ft(O, "light"),
2970
+ ft(E, "dark"),
2971
+ // RTL
2972
+ Kn(O),
2973
+ // Motion
2974
+ Wo(O),
2975
+ Oe(O, "slide-up"),
2976
+ Oe(O, "slide-down"),
2977
+ _e(O, "zoom-big")
2978
+ ];
2979
+ }, Jn, {
2980
+ 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"]],
2981
+ // Dropdown will handle menu style self. We do not need to handle this.
2982
+ injectStyle: o,
2983
+ unitless: {
2984
+ groupTitleLineHeight: !0
2985
+ }
2986
+ })(e, t), Xt = (e) => {
3020
2987
  var t;
3021
2988
  const {
3022
2989
  popupClassName: o,
3023
2990
  icon: n,
3024
2991
  title: r,
3025
2992
  theme: a
3026
- } = e, i = l.useContext(Ee), {
2993
+ } = e, i = l.useContext(Ne), {
3027
2994
  prefixCls: s,
3028
2995
  inlineCollapsed: c,
3029
- theme: u
3030
- } = i, d = wo();
2996
+ theme: m
2997
+ } = i, d = Io();
3031
2998
  let f;
3032
2999
  if (!n)
3033
3000
  f = c && !d.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
@@ -3036,142 +3003,142 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
3036
3003
  className: `${s}-title-content`
3037
3004
  }, r);
3038
3005
  else {
3039
- const p = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
3006
+ const g = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
3040
3007
  f = /* @__PURE__ */ l.createElement(l.Fragment, null, ue(n, {
3041
- className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : "", `${s}-item-icon`)
3042
- }), p ? r : /* @__PURE__ */ l.createElement("span", {
3008
+ className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : void 0, `${s}-item-icon`)
3009
+ }), g ? r : /* @__PURE__ */ l.createElement("span", {
3043
3010
  className: `${s}-title-content`
3044
3011
  }, r));
3045
3012
  }
3046
- const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
3013
+ const p = l.useMemo(() => Object.assign(Object.assign({}, i), {
3047
3014
  firstLevel: !1
3048
3015
  }), [i]), [v] = qe("Menu");
3049
- return /* @__PURE__ */ l.createElement(Ee.Provider, {
3050
- value: m
3051
- }, /* @__PURE__ */ l.createElement(xo, Object.assign({}, he(e, ["icon"]), {
3016
+ return /* @__PURE__ */ l.createElement(Ne.Provider, {
3017
+ value: p
3018
+ }, /* @__PURE__ */ l.createElement(Po, Object.assign({}, $e(e, ["icon"]), {
3052
3019
  title: f,
3053
- popupClassName: _(s, o, `${s}-${a || u}`),
3020
+ popupClassName: _(s, o, `${s}-${a || m}`),
3054
3021
  popupStyle: Object.assign({
3055
3022
  zIndex: v
3056
3023
  }, e.popupStyle)
3057
3024
  })));
3058
3025
  };
3059
- var Zn = function(e, t) {
3026
+ var tr = function(e, t) {
3060
3027
  var o = {};
3061
3028
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
3062
3029
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3063
3030
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
3064
3031
  return o;
3065
3032
  };
3066
- function Ae(e) {
3033
+ function ke(e) {
3067
3034
  return e === null || e === !1;
3068
3035
  }
3069
- const Qn = {
3070
- item: At,
3071
- submenu: Lt,
3072
- divider: Ht
3073
- }, Jn = /* @__PURE__ */ ke((e, t) => {
3036
+ const or = {
3037
+ item: Wt,
3038
+ submenu: Xt,
3039
+ divider: Vt
3040
+ }, nr = /* @__PURE__ */ We((e, t) => {
3074
3041
  var o;
3075
- const n = l.useContext(Pe), r = n || {}, {
3042
+ const n = l.useContext(Be), r = n || {}, {
3076
3043
  getPrefixCls: a,
3077
3044
  getPopupContainer: i,
3078
3045
  direction: s,
3079
3046
  menu: c
3080
- } = l.useContext(ie), u = a(), {
3047
+ } = l.useContext(re), m = a(), {
3081
3048
  prefixCls: d,
3082
3049
  className: f,
3083
- style: m,
3050
+ style: p,
3084
3051
  theme: v = "light",
3085
- expandIcon: p,
3086
- _internalDisableMenuItemTitleTooltip: g,
3052
+ expandIcon: g,
3053
+ _internalDisableMenuItemTitleTooltip: u,
3087
3054
  inlineCollapsed: h,
3088
- siderCollapsed: C,
3055
+ siderCollapsed: $,
3089
3056
  rootClassName: b,
3090
3057
  mode: S,
3091
- selectable: $,
3092
- onClick: B,
3058
+ selectable: N,
3059
+ onClick: y,
3093
3060
  overflowedIndicatorPopupClassName: M
3094
- } = e, R = Zn(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), T = he(R, ["collapsedWidth"]);
3061
+ } = e, j = tr(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), T = $e(j, ["collapsedWidth"]);
3095
3062
  if (process.env.NODE_ENV !== "production") {
3096
- const D = be("Menu");
3097
- process.env.NODE_ENV !== "production" && D(!("inlineCollapsed" in e && S !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), D.deprecated("items" in e && !e.children, "children", "items");
3063
+ const k = he("Menu");
3064
+ process.env.NODE_ENV !== "production" && k(!("inlineCollapsed" in e && S !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), k.deprecated("items" in e && !e.children, "children", "items");
3098
3065
  }
3099
3066
  (o = r.validator) === null || o === void 0 || o.call(r, {
3100
3067
  mode: S
3101
3068
  });
3102
- const w = wt(function() {
3103
- var D;
3104
- B == null || B.apply(void 0, arguments), (D = r.onClick) === null || D === void 0 || D.call(r);
3105
- }), x = r.mode || S, P = $ ?? r.selectable, I = h ?? C, z = {
3069
+ const O = St((...k) => {
3070
+ var R;
3071
+ y == null || y.apply(void 0, k), (R = r.onClick) === null || R === void 0 || R.call(r);
3072
+ }), E = r.mode || S, H = N ?? r.selectable, x = h ?? $, C = {
3106
3073
  horizontal: {
3107
- motionName: `${u}-slide-up`
3074
+ motionName: `${m}-slide-up`
3108
3075
  },
3109
- inline: bo(u),
3076
+ inline: Co(m),
3110
3077
  other: {
3111
- motionName: `${u}-zoom-big`
3078
+ motionName: `${m}-zoom-big`
3112
3079
  }
3113
- }, y = a("menu", d || r.prefixCls), N = je(y), [E, A, L] = Kn(y, N, !n), F = _(`${y}-${v}`, c == null ? void 0 : c.className, f), j = l.useMemo(() => {
3114
- var D, W;
3115
- if (typeof p == "function" || Ae(p))
3116
- return p || null;
3117
- if (typeof r.expandIcon == "function" || Ae(r.expandIcon))
3080
+ }, w = a("menu", d || r.prefixCls), B = Te(w), [P, L, z] = er(w, B, !n), F = _(`${w}-${v}`, c == null ? void 0 : c.className, f), D = l.useMemo(() => {
3081
+ var k, R;
3082
+ if (typeof g == "function" || ke(g))
3083
+ return g || null;
3084
+ if (typeof r.expandIcon == "function" || ke(r.expandIcon))
3118
3085
  return r.expandIcon || null;
3119
- if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Ae(c == null ? void 0 : c.expandIcon))
3086
+ if (typeof (c == null ? void 0 : c.expandIcon) == "function" || ke(c == null ? void 0 : c.expandIcon))
3120
3087
  return (c == null ? void 0 : c.expandIcon) || null;
3121
- const G = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
3122
- return ue(G, {
3123
- className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(G) ? (W = G.props) === null || W === void 0 ? void 0 : W.className : void 0)
3088
+ const W = (k = g ?? (r == null ? void 0 : r.expandIcon)) !== null && k !== void 0 ? k : c == null ? void 0 : c.expandIcon;
3089
+ return ue(W, {
3090
+ className: _(`${w}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(W) ? (R = W.props) === null || R === void 0 ? void 0 : R.className : void 0)
3124
3091
  });
3125
- }, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]), H = l.useMemo(() => ({
3126
- prefixCls: y,
3127
- inlineCollapsed: I || !1,
3092
+ }, [g, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, w]), A = l.useMemo(() => ({
3093
+ prefixCls: w,
3094
+ inlineCollapsed: x || !1,
3128
3095
  direction: s,
3129
3096
  firstLevel: !0,
3130
3097
  theme: v,
3131
- mode: x,
3132
- disableMenuItemTitleTooltip: g
3133
- }), [y, I, s, g, v]);
3134
- return E(/* @__PURE__ */ l.createElement(Pe.Provider, {
3098
+ mode: E,
3099
+ disableMenuItemTitleTooltip: u
3100
+ }), [w, x, s, u, v]);
3101
+ return P(/* @__PURE__ */ l.createElement(Be.Provider, {
3135
3102
  value: null
3136
- }, /* @__PURE__ */ l.createElement(Ee.Provider, {
3137
- value: H
3138
- }, /* @__PURE__ */ l.createElement(So, Object.assign({
3103
+ }, /* @__PURE__ */ l.createElement(Ne.Provider, {
3104
+ value: A
3105
+ }, /* @__PURE__ */ l.createElement(Eo, Object.assign({
3139
3106
  getPopupContainer: i,
3140
- overflowedIndicator: /* @__PURE__ */ l.createElement(xt, null),
3141
- overflowedIndicatorPopupClassName: _(y, `${y}-${v}`, M),
3142
- mode: x,
3143
- selectable: P,
3144
- onClick: w
3107
+ overflowedIndicator: /* @__PURE__ */ l.createElement(Ot, null),
3108
+ overflowedIndicatorPopupClassName: _(w, `${w}-${v}`, M),
3109
+ mode: E,
3110
+ selectable: H,
3111
+ onClick: O
3145
3112
  }, T, {
3146
- inlineCollapsed: I,
3147
- style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
3113
+ inlineCollapsed: x,
3114
+ style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), p),
3148
3115
  className: F,
3149
- prefixCls: y,
3116
+ prefixCls: w,
3150
3117
  direction: s,
3151
- defaultMotions: z,
3152
- expandIcon: j,
3118
+ defaultMotions: C,
3119
+ expandIcon: D,
3153
3120
  ref: t,
3154
- rootClassName: _(b, A, r.rootClassName, L, N),
3155
- _internalComponents: Qn
3121
+ rootClassName: _(b, L, r.rootClassName, z, B),
3122
+ _internalComponents: or
3156
3123
  })))));
3157
- }), ge = /* @__PURE__ */ ke((e, t) => {
3158
- const o = Be(null), n = l.useContext(Je);
3159
- return yt(t, () => ({
3124
+ }), fe = /* @__PURE__ */ We((e, t) => {
3125
+ const o = ze(null), n = l.useContext(tt);
3126
+ return wt(t, () => ({
3160
3127
  menu: o.current,
3161
3128
  focus: (r) => {
3162
3129
  var a;
3163
3130
  (a = o.current) === null || a === void 0 || a.focus(r);
3164
3131
  }
3165
- })), /* @__PURE__ */ l.createElement(Jn, Object.assign({
3132
+ })), /* @__PURE__ */ l.createElement(nr, Object.assign({
3166
3133
  ref: o
3167
3134
  }, e, n));
3168
3135
  });
3169
- ge.Item = At;
3170
- ge.SubMenu = Lt;
3171
- ge.Divider = Ht;
3172
- ge.ItemGroup = Oo;
3173
- process.env.NODE_ENV !== "production" && (ge.displayName = "Menu");
3174
- const er = (e) => {
3136
+ fe.Item = Wt;
3137
+ fe.SubMenu = Xt;
3138
+ fe.Divider = Vt;
3139
+ fe.ItemGroup = No;
3140
+ process.env.NODE_ENV !== "production" && (fe.displayName = "Menu");
3141
+ const rr = (e) => {
3175
3142
  const {
3176
3143
  componentCls: t,
3177
3144
  menuCls: o,
@@ -3191,7 +3158,7 @@ const er = (e) => {
3191
3158
  }
3192
3159
  }
3193
3160
  };
3194
- }, tr = (e) => {
3161
+ }, ir = (e) => {
3195
3162
  const {
3196
3163
  componentCls: t,
3197
3164
  menuCls: o,
@@ -3201,13 +3168,13 @@ const er = (e) => {
3201
3168
  antCls: i,
3202
3169
  iconCls: s,
3203
3170
  motionDurationMid: c,
3204
- paddingBlock: u,
3171
+ paddingBlock: m,
3205
3172
  fontSize: d,
3206
3173
  dropdownEdgeChildPadding: f,
3207
- colorTextDisabled: m,
3174
+ colorTextDisabled: p,
3208
3175
  fontSizeIcon: v,
3209
- controlPaddingHorizontal: p,
3210
- colorBgElevated: g
3176
+ controlPaddingHorizontal: g,
3177
+ colorBgElevated: u
3211
3178
  } = e;
3212
3179
  return [
3213
3180
  {
@@ -3267,7 +3234,7 @@ const er = (e) => {
3267
3234
  &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
3268
3235
  &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
3269
3236
  &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]: {
3270
- animationName: Po
3237
+ animationName: To
3271
3238
  },
3272
3239
  [`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
3273
3240
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
@@ -3275,24 +3242,24 @@ const er = (e) => {
3275
3242
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
3276
3243
  &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
3277
3244
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]: {
3278
- animationName: Eo
3245
+ animationName: jo
3279
3246
  },
3280
3247
  [`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
3281
3248
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
3282
3249
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]: {
3283
- animationName: No
3250
+ animationName: zo
3284
3251
  },
3285
3252
  [`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
3286
3253
  &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
3287
3254
  &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]: {
3288
- animationName: Io
3255
+ animationName: Bo
3289
3256
  }
3290
3257
  }
3291
3258
  },
3292
3259
  // =============================================================
3293
3260
  // == Arrow style ==
3294
3261
  // =============================================================
3295
- Ze(e, g, {
3262
+ Je(e, u, {
3296
3263
  arrowPlacement: {
3297
3264
  top: !0,
3298
3265
  bottom: !0
@@ -3317,22 +3284,22 @@ const er = (e) => {
3317
3284
  margin: 0
3318
3285
  }
3319
3286
  },
3320
- [`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, ve(e)), {
3287
+ [`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, be(e)), {
3321
3288
  [o]: Object.assign(Object.assign({
3322
3289
  padding: f,
3323
3290
  listStyleType: "none",
3324
- backgroundColor: g,
3291
+ backgroundColor: u,
3325
3292
  backgroundClip: "padding-box",
3326
3293
  borderRadius: e.borderRadiusLG,
3327
3294
  outline: "none",
3328
3295
  boxShadow: e.boxShadowSecondary
3329
- }, at(e)), {
3296
+ }, st(e)), {
3330
3297
  "&:empty": {
3331
3298
  padding: 0,
3332
3299
  boxShadow: "none"
3333
3300
  },
3334
3301
  [`${o}-item-group-title`]: {
3335
- padding: `${O(u)} ${O(p)}`,
3302
+ padding: `${I(m)} ${I(g)}`,
3336
3303
  color: e.colorTextDescription,
3337
3304
  transition: `all ${c}`
3338
3305
  },
@@ -3377,7 +3344,7 @@ const er = (e) => {
3377
3344
  [`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
3378
3345
  display: "flex",
3379
3346
  margin: 0,
3380
- padding: `${O(u)} ${O(p)}`,
3347
+ padding: `${I(m)} ${I(g)}`,
3381
3348
  color: e.colorText,
3382
3349
  fontWeight: "normal",
3383
3350
  fontSize: d,
@@ -3388,7 +3355,7 @@ const er = (e) => {
3388
3355
  "&:hover, &-active": {
3389
3356
  backgroundColor: e.controlItemBgHover
3390
3357
  }
3391
- }, at(e)), {
3358
+ }, st(e)), {
3392
3359
  "&-selected": {
3393
3360
  color: e.colorPrimary,
3394
3361
  backgroundColor: e.controlItemBgActive,
@@ -3397,11 +3364,11 @@ const er = (e) => {
3397
3364
  }
3398
3365
  },
3399
3366
  "&-disabled": {
3400
- color: m,
3367
+ color: p,
3401
3368
  cursor: "not-allowed",
3402
3369
  "&:hover": {
3403
- color: m,
3404
- backgroundColor: g,
3370
+ color: p,
3371
+ backgroundColor: u,
3405
3372
  cursor: "not-allowed"
3406
3373
  },
3407
3374
  a: {
@@ -3411,7 +3378,7 @@ const er = (e) => {
3411
3378
  "&-divider": {
3412
3379
  height: 1,
3413
3380
  // By design
3414
- margin: `${O(e.marginXXS)} 0`,
3381
+ margin: `${I(e.marginXXS)} 0`,
3415
3382
  overflow: "hidden",
3416
3383
  lineHeight: 0,
3417
3384
  backgroundColor: e.colorSplit
@@ -3428,20 +3395,20 @@ const er = (e) => {
3428
3395
  }
3429
3396
  }),
3430
3397
  [`${o}-item-group-list`]: {
3431
- margin: `0 ${O(e.marginXS)}`,
3398
+ margin: `0 ${I(e.marginXS)}`,
3432
3399
  padding: 0,
3433
3400
  listStyle: "none"
3434
3401
  },
3435
3402
  [`${o}-submenu-title`]: {
3436
- paddingInlineEnd: e.calc(p).add(e.fontSizeSM).equal()
3403
+ paddingInlineEnd: e.calc(g).add(e.fontSizeSM).equal()
3437
3404
  },
3438
3405
  [`${o}-submenu-vertical`]: {
3439
3406
  position: "relative"
3440
3407
  },
3441
3408
  [`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]: {
3442
3409
  [`&, ${t}-menu-submenu-arrow-icon`]: {
3443
- color: m,
3444
- backgroundColor: g,
3410
+ color: p,
3411
+ backgroundColor: u,
3445
3412
  cursor: "not-allowed"
3446
3413
  }
3447
3414
  },
@@ -3453,15 +3420,15 @@ const er = (e) => {
3453
3420
  })
3454
3421
  },
3455
3422
  // Follow code may reuse in other components
3456
- [Se(e, "slide-up"), Se(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), Te(e, "zoom-big")]
3423
+ [Oe(e, "slide-up"), Oe(e, "slide-down"), dt(e, "move-up"), dt(e, "move-down"), _e(e, "zoom-big")]
3457
3424
  ];
3458
- }, or = (e) => Object.assign(Object.assign({
3425
+ }, ar = (e) => Object.assign(Object.assign({
3459
3426
  zIndexPopup: e.zIndexPopupBase + 50,
3460
3427
  paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
3461
- }, _e({
3428
+ }, Re({
3462
3429
  contentRadius: e.borderRadiusLG,
3463
3430
  limitVerticalRadius: !0
3464
- })), Ke(e)), nr = de("Dropdown", (e) => {
3431
+ })), Qe(e)), lr = de("Dropdown", (e) => {
3465
3432
  const {
3466
3433
  marginXXS: t,
3467
3434
  sizePopupArrow: o,
@@ -3472,10 +3439,10 @@ const er = (e) => {
3472
3439
  dropdownArrowDistance: e.calc(o).div(2).add(t).equal(),
3473
3440
  dropdownEdgeChildPadding: n
3474
3441
  });
3475
- return [tr(a), er(a)];
3476
- }, or, {
3442
+ return [ir(a), rr(a)];
3443
+ }, ar, {
3477
3444
  resetStyle: !1
3478
- }), $e = (e) => {
3445
+ }), ye = (e) => {
3479
3446
  var t;
3480
3447
  const {
3481
3448
  menu: o,
@@ -3485,151 +3452,147 @@ const er = (e) => {
3485
3452
  trigger: i,
3486
3453
  disabled: s,
3487
3454
  dropdownRender: c,
3488
- getPopupContainer: u,
3489
- overlayClassName: d,
3490
- rootClassName: f,
3491
- overlayStyle: m,
3492
- open: v,
3493
- onOpenChange: p,
3455
+ popupRender: m,
3456
+ getPopupContainer: d,
3457
+ overlayClassName: f,
3458
+ rootClassName: p,
3459
+ overlayStyle: v,
3460
+ open: g,
3461
+ onOpenChange: u,
3494
3462
  // Deprecated
3495
- visible: g,
3496
- onVisibleChange: h,
3497
- mouseEnterDelay: C = 0.15,
3498
- mouseLeaveDelay: b = 0.1,
3499
- autoAdjustOverflow: S = !0,
3500
- placement: $ = "",
3501
- overlay: B,
3502
- transitionName: M
3463
+ visible: h,
3464
+ onVisibleChange: $,
3465
+ mouseEnterDelay: b = 0.15,
3466
+ mouseLeaveDelay: S = 0.1,
3467
+ autoAdjustOverflow: N = !0,
3468
+ placement: y = "",
3469
+ overlay: M,
3470
+ transitionName: j,
3471
+ destroyOnHidden: T,
3472
+ destroyPopupOnHide: O
3503
3473
  } = e, {
3504
- getPopupContainer: R,
3505
- getPrefixCls: T,
3506
- direction: w,
3507
- dropdown: x
3508
- } = l.useContext(ie), P = be("Dropdown");
3509
- process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((V) => {
3510
- let [re, ne] = V;
3511
- P.deprecated(!(re in e), re, ne);
3512
- }), P.deprecated(!("overlay" in e), "overlay", "menu"));
3513
- const I = l.useMemo(() => {
3514
- const V = T();
3515
- return M !== void 0 ? M : $.includes("top") ? `${V}-slide-down` : `${V}-slide-up`;
3516
- }, [T, $, M]), z = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : w === "rtl" ? "bottomRight" : "bottomLeft", [$, w]);
3517
- if (process.env.NODE_ENV !== "production") {
3518
- if ($.includes("Center")) {
3519
- const V = $.slice(0, $.indexOf("Center"));
3520
- process.env.NODE_ENV !== "production" && P(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${V}' instead.`);
3521
- }
3522
- [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((V) => {
3523
- let [re, ne] = V;
3524
- P.deprecated(!(re in e), re, ne);
3525
- });
3526
- }
3527
- const y = T("dropdown", r), N = je(y), [E, A, L] = nr(y, N), [, F] = We(), j = l.Children.only(zn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), H = ue(j, {
3528
- className: _(`${y}-trigger`, {
3529
- [`${y}-rtl`]: w === "rtl"
3530
- }, j.props.className),
3531
- disabled: (t = j.props.disabled) !== null && t !== void 0 ? t : s
3532
- }), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [G, q] = Fe(!1, {
3533
- value: v ?? g
3534
- }), Z = wt((V) => {
3535
- p == null || p(V, {
3474
+ getPopupContainer: E,
3475
+ getPrefixCls: H,
3476
+ direction: x,
3477
+ dropdown: C
3478
+ } = l.useContext(re), w = m || c, B = he("Dropdown");
3479
+ process.env.NODE_ENV !== "production" && (Object.entries({
3480
+ visible: "open",
3481
+ onVisibleChange: "onOpenChange",
3482
+ overlay: "menu",
3483
+ dropdownRender: "popupRender",
3484
+ destroyPopupOnHide: "destroyOnHidden"
3485
+ }).forEach(([oe, De]) => {
3486
+ B.deprecated(!(oe in e), oe, De);
3487
+ }), y.includes("Center") && B.deprecated(!y.includes("Center"), `placement: ${y}`, `placement: ${y.slice(0, y.indexOf("Center"))}`));
3488
+ const P = l.useMemo(() => {
3489
+ const U = H();
3490
+ return j !== void 0 ? j : y.includes("top") ? `${U}-slide-down` : `${U}-slide-up`;
3491
+ }, [H, y, j]), L = l.useMemo(() => y ? y.includes("Center") ? y.slice(0, y.indexOf("Center")) : y : x === "rtl" ? "bottomRight" : "bottomLeft", [y, x]), z = H("dropdown", r), F = Te(z), [D, A, k] = lr(z, F), [, R] = Fe(), W = l.Children.only(Rn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), G = ue(W, {
3492
+ className: _(`${z}-trigger`, {
3493
+ [`${z}-rtl`]: x === "rtl"
3494
+ }, W.props.className),
3495
+ disabled: (t = W.props.disabled) !== null && t !== void 0 ? t : s
3496
+ }), q = s ? [] : i, Q = !!(q != null && q.includes("contextMenu")), [X, Z] = Ye(!1, {
3497
+ value: g ?? h
3498
+ }), J = St((U) => {
3499
+ u == null || u(U, {
3536
3500
  source: "trigger"
3537
- }), h == null || h(V), q(V);
3538
- }), ee = _(d, f, A, L, N, x == null ? void 0 : x.className, {
3539
- [`${y}-rtl`]: w === "rtl"
3540
- }), k = Pt({
3501
+ }), $ == null || $(U), Z(U);
3502
+ }), V = _(f, p, A, k, F, C == null ? void 0 : C.className, {
3503
+ [`${z}-rtl`]: x === "rtl"
3504
+ }), Y = Tt({
3541
3505
  arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
3542
- autoAdjustOverflow: S,
3543
- offset: F.marginXXS,
3544
- arrowWidth: n ? F.sizePopupArrow : 0,
3545
- borderRadius: F.borderRadius
3546
- }), U = l.useCallback(() => {
3547
- o != null && o.selectable && (o != null && o.multiple) || (p == null || p(!1, {
3506
+ autoAdjustOverflow: N,
3507
+ offset: R.marginXXS,
3508
+ arrowWidth: n ? R.sizePopupArrow : 0,
3509
+ borderRadius: R.borderRadius
3510
+ }), ne = l.useCallback(() => {
3511
+ o != null && o.selectable && (o != null && o.multiple) || (u == null || u(!1, {
3548
3512
  source: "menu"
3549
- }), q(!1));
3550
- }, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), Q = () => {
3551
- let V;
3552
- return o != null && o.items ? V = /* @__PURE__ */ l.createElement(ge, Object.assign({}, o)) : typeof B == "function" ? V = B() : V = B, c && (V = c(V)), V = l.Children.only(typeof V == "string" ? /* @__PURE__ */ l.createElement("span", null, V) : V), /* @__PURE__ */ l.createElement(Xn, {
3553
- prefixCls: `${y}-menu`,
3554
- rootClassName: _(L, N),
3513
+ }), Z(!1));
3514
+ }, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), ie = () => {
3515
+ let U;
3516
+ return o != null && o.items ? U = /* @__PURE__ */ l.createElement(fe, Object.assign({}, o)) : typeof M == "function" ? U = M() : U = M, w && (U = w(U)), U = l.Children.only(typeof U == "string" ? /* @__PURE__ */ l.createElement("span", null, U) : U), /* @__PURE__ */ l.createElement(Un, {
3517
+ prefixCls: `${z}-menu`,
3518
+ rootClassName: _(k, F),
3555
3519
  expandIcon: /* @__PURE__ */ l.createElement("span", {
3556
- className: `${y}-menu-submenu-arrow`
3557
- }, w === "rtl" ? /* @__PURE__ */ l.createElement(Ne, {
3558
- className: `${y}-menu-submenu-arrow-icon`
3559
- }) : /* @__PURE__ */ l.createElement(Oe, {
3560
- className: `${y}-menu-submenu-arrow-icon`
3520
+ className: `${z}-menu-submenu-arrow`
3521
+ }, x === "rtl" ? /* @__PURE__ */ l.createElement(Ee, {
3522
+ className: `${z}-menu-submenu-arrow-icon`
3523
+ }) : /* @__PURE__ */ l.createElement(Ie, {
3524
+ className: `${z}-menu-submenu-arrow-icon`
3561
3525
  })),
3562
3526
  mode: "vertical",
3563
3527
  selectable: !1,
3564
- onClick: U,
3565
- validator: (re) => {
3566
- let {
3567
- mode: ne
3568
- } = re;
3569
- process.env.NODE_ENV !== "production" && P(!ne || ne === "vertical", "usage", `mode="${ne}" is not supported for Dropdown's Menu.`);
3528
+ onClick: ne,
3529
+ validator: ({
3530
+ mode: oe
3531
+ }) => {
3532
+ process.env.NODE_ENV !== "production" && B(!oe || oe === "vertical", "usage", `mode="${oe}" is not supported for Dropdown's Menu.`);
3570
3533
  }
3571
- }, V);
3572
- }, [X, Y] = qe("Dropdown", m == null ? void 0 : m.zIndex);
3573
- let J = /* @__PURE__ */ l.createElement(Bo, Object.assign({
3574
- alignPoint: W
3575
- }, he(e, ["rootClassName"]), {
3576
- mouseEnterDelay: C,
3577
- mouseLeaveDelay: b,
3578
- visible: G,
3579
- builtinPlacements: k,
3534
+ }, U);
3535
+ }, [Ce, He] = qe("Dropdown", v == null ? void 0 : v.zIndex);
3536
+ let le = /* @__PURE__ */ l.createElement(_o, Object.assign({
3537
+ alignPoint: Q
3538
+ }, $e(e, ["rootClassName"]), {
3539
+ mouseEnterDelay: b,
3540
+ mouseLeaveDelay: S,
3541
+ visible: X,
3542
+ builtinPlacements: Y,
3580
3543
  arrow: !!n,
3581
- overlayClassName: ee,
3582
- prefixCls: y,
3583
- getPopupContainer: u || R,
3584
- transitionName: I,
3585
- trigger: D,
3586
- overlay: Q,
3587
- placement: z,
3588
- onVisibleChange: Z,
3589
- overlayStyle: Object.assign(Object.assign(Object.assign({}, x == null ? void 0 : x.style), m), {
3590
- zIndex: X
3591
- })
3592
- }), H);
3593
- return X && (J = /* @__PURE__ */ l.createElement(Ot.Provider, {
3594
- value: Y
3595
- }, J)), E(J);
3596
- }, rr = jo($e, "align", void 0, "dropdown", (e) => e), ir = (e) => /* @__PURE__ */ l.createElement(rr, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
3597
- $e._InternalPanelDoNotUseOrYouWillBeFired = ir;
3598
- process.env.NODE_ENV !== "production" && ($e.displayName = "Dropdown");
3599
- function bt(e) {
3544
+ overlayClassName: V,
3545
+ prefixCls: z,
3546
+ getPopupContainer: d || E,
3547
+ transitionName: P,
3548
+ trigger: q,
3549
+ overlay: ie,
3550
+ placement: L,
3551
+ onVisibleChange: J,
3552
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, C == null ? void 0 : C.style), v), {
3553
+ zIndex: Ce
3554
+ }),
3555
+ autoDestroy: T ?? O
3556
+ }), G);
3557
+ return Ce && (le = /* @__PURE__ */ l.createElement(Pt.Provider, {
3558
+ value: He
3559
+ }, le)), D(le);
3560
+ }, sr = Mo(ye, "align", void 0, "dropdown", (e) => e), cr = (e) => /* @__PURE__ */ l.createElement(sr, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
3561
+ ye._InternalPanelDoNotUseOrYouWillBeFired = cr;
3562
+ process.env.NODE_ENV !== "production" && (ye.displayName = "Dropdown");
3563
+ function $t(e) {
3600
3564
  return ["small", "middle", "large"].includes(e);
3601
3565
  }
3602
- function ht(e) {
3566
+ function yt(e) {
3603
3567
  return e ? typeof e == "number" && !Number.isNaN(e) : !1;
3604
3568
  }
3605
- const kt = /* @__PURE__ */ $t.createContext({
3569
+ const Ft = /* @__PURE__ */ Ct.createContext({
3606
3570
  latestIndex: 0
3607
- }), ar = kt.Provider, lr = (e) => {
3608
- let {
3609
- className: t,
3610
- index: o,
3611
- children: n,
3612
- split: r,
3613
- style: a
3614
- } = e;
3571
+ }), dr = Ft.Provider, ur = ({
3572
+ className: e,
3573
+ index: t,
3574
+ children: o,
3575
+ split: n,
3576
+ style: r
3577
+ }) => {
3615
3578
  const {
3616
- latestIndex: i
3617
- } = l.useContext(kt);
3618
- return n == null ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
3619
- className: t,
3620
- style: a
3621
- }, n), o < i && r && /* @__PURE__ */ l.createElement("span", {
3622
- className: `${t}-split`
3623
- }, r));
3579
+ latestIndex: a
3580
+ } = l.useContext(Ft);
3581
+ return o == null ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
3582
+ className: e,
3583
+ style: r
3584
+ }, o), t < a && n && /* @__PURE__ */ l.createElement("span", {
3585
+ className: `${e}-split`
3586
+ }, n));
3624
3587
  };
3625
- var sr = function(e, t) {
3588
+ var mr = function(e, t) {
3626
3589
  var o = {};
3627
3590
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
3628
3591
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3629
3592
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
3630
3593
  return o;
3631
3594
  };
3632
- const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
3595
+ const pr = /* @__PURE__ */ l.forwardRef((e, t) => {
3633
3596
  var o;
3634
3597
  const {
3635
3598
  getPrefixCls: n,
@@ -3638,153 +3601,155 @@ const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
3638
3601
  className: i,
3639
3602
  style: s,
3640
3603
  classNames: c,
3641
- styles: u
3642
- } = Xe("space"), {
3604
+ styles: m
3605
+ } = Ge("space"), {
3643
3606
  size: d = a ?? "small",
3644
3607
  align: f,
3645
- className: m,
3608
+ className: p,
3646
3609
  rootClassName: v,
3647
- children: p,
3648
- direction: g = "horizontal",
3610
+ children: g,
3611
+ direction: u = "horizontal",
3649
3612
  prefixCls: h,
3650
- split: C,
3613
+ split: $,
3651
3614
  style: b,
3652
3615
  wrap: S = !1,
3653
- classNames: $,
3654
- styles: B
3655
- } = e, M = sr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [R, T] = Array.isArray(d) ? d : [d, d], w = bt(T), x = bt(R), P = ht(T), I = ht(R), z = Ge(p, {
3616
+ classNames: N,
3617
+ styles: y
3618
+ } = e, M = mr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [j, T] = Array.isArray(d) ? d : [d, d], O = $t(T), E = $t(j), H = yt(T), x = yt(j), C = Ue(g, {
3656
3619
  keepEmpty: !0
3657
- }), y = f === void 0 && g === "horizontal" ? "center" : f, N = n("space", h), [E, A, L] = To(N), F = _(N, i, A, `${N}-${g}`, {
3658
- [`${N}-rtl`]: r === "rtl",
3659
- [`${N}-align-${y}`]: y,
3660
- [`${N}-gap-row-${T}`]: w,
3661
- [`${N}-gap-col-${R}`]: x
3662
- }, m, v, L), j = _(`${N}-item`, (o = $ == null ? void 0 : $.item) !== null && o !== void 0 ? o : c.item);
3663
- let H = 0;
3664
- const D = z.map((q, Z) => {
3665
- var ee;
3666
- q != null && (H = Z);
3667
- const k = (q == null ? void 0 : q.key) || `${j}-${Z}`;
3668
- return /* @__PURE__ */ l.createElement(lr, {
3669
- className: j,
3670
- key: k,
3671
- index: Z,
3672
- split: C,
3673
- style: (ee = B == null ? void 0 : B.item) !== null && ee !== void 0 ? ee : u.item
3674
- }, q);
3675
- }), W = l.useMemo(() => ({
3676
- latestIndex: H
3677
- }), [H]);
3678
- if (z.length === 0)
3620
+ }), w = f === void 0 && u === "horizontal" ? "center" : f, B = n("space", h), [P, L, z] = Ho(B), F = _(B, i, L, `${B}-${u}`, {
3621
+ [`${B}-rtl`]: r === "rtl",
3622
+ [`${B}-align-${w}`]: w,
3623
+ [`${B}-gap-row-${T}`]: O,
3624
+ [`${B}-gap-col-${j}`]: E
3625
+ }, p, v, z), D = _(`${B}-item`, (o = N == null ? void 0 : N.item) !== null && o !== void 0 ? o : c.item);
3626
+ let A = 0;
3627
+ const k = C.map((G, q) => {
3628
+ var Q;
3629
+ G != null && (A = q);
3630
+ const X = (G == null ? void 0 : G.key) || `${D}-${q}`;
3631
+ return /* @__PURE__ */ l.createElement(ur, {
3632
+ className: D,
3633
+ key: X,
3634
+ index: q,
3635
+ split: $,
3636
+ style: (Q = y == null ? void 0 : y.item) !== null && Q !== void 0 ? Q : m.item
3637
+ }, G);
3638
+ }), R = l.useMemo(() => ({
3639
+ latestIndex: A
3640
+ }), [A]);
3641
+ if (C.length === 0)
3679
3642
  return null;
3680
- const G = {};
3681
- return S && (G.flexWrap = "wrap"), !x && I && (G.columnGap = R), !w && P && (G.rowGap = T), E(/* @__PURE__ */ l.createElement("div", Object.assign({
3643
+ const W = {};
3644
+ return S && (W.flexWrap = "wrap"), !E && x && (W.columnGap = j), !O && H && (W.rowGap = T), P(/* @__PURE__ */ l.createElement("div", Object.assign({
3682
3645
  ref: t,
3683
3646
  className: F,
3684
- style: Object.assign(Object.assign(Object.assign({}, G), s), b)
3685
- }, M), /* @__PURE__ */ l.createElement(ar, {
3686
- value: W
3687
- }, D)));
3688
- }), et = cr;
3689
- et.Compact = _o;
3690
- process.env.NODE_ENV !== "production" && (et.displayName = "Space");
3691
- var dr = function(e, t) {
3647
+ style: Object.assign(Object.assign(Object.assign({}, W), s), b)
3648
+ }, M), /* @__PURE__ */ l.createElement(dr, {
3649
+ value: R
3650
+ }, k)));
3651
+ }), ot = pr;
3652
+ ot.Compact = Do;
3653
+ process.env.NODE_ENV !== "production" && (ot.displayName = "Space");
3654
+ var gr = function(e, t) {
3692
3655
  var o = {};
3693
3656
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
3694
3657
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3695
3658
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
3696
3659
  return o;
3697
3660
  };
3698
- const Vt = (e) => {
3661
+ const Gt = (e) => {
3699
3662
  const {
3700
3663
  getPopupContainer: t,
3701
3664
  getPrefixCls: o,
3702
3665
  direction: n
3703
- } = l.useContext(ie), {
3666
+ } = l.useContext(re), {
3704
3667
  prefixCls: r,
3705
3668
  type: a = "default",
3706
3669
  danger: i,
3707
3670
  disabled: s,
3708
3671
  loading: c,
3709
- onClick: u,
3672
+ onClick: m,
3710
3673
  htmlType: d,
3711
3674
  children: f,
3712
- className: m,
3675
+ className: p,
3713
3676
  menu: v,
3714
- arrow: p,
3715
- autoFocus: g,
3677
+ arrow: g,
3678
+ autoFocus: u,
3716
3679
  overlay: h,
3717
- trigger: C,
3680
+ trigger: $,
3718
3681
  align: b,
3719
3682
  open: S,
3720
- onOpenChange: $,
3721
- placement: B,
3683
+ onOpenChange: N,
3684
+ placement: y,
3722
3685
  getPopupContainer: M,
3723
- href: R,
3724
- icon: T = /* @__PURE__ */ l.createElement(xt, null),
3725
- title: w,
3726
- buttonsRender: x = (k) => k,
3727
- mouseEnterDelay: P,
3728
- mouseLeaveDelay: I,
3729
- overlayClassName: z,
3730
- overlayStyle: y,
3731
- destroyPopupOnHide: N,
3732
- dropdownRender: E
3733
- } = e, A = dr(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`, j = {
3686
+ href: j,
3687
+ icon: T = /* @__PURE__ */ l.createElement(Ot, null),
3688
+ title: O,
3689
+ buttonsRender: E = (V) => V,
3690
+ mouseEnterDelay: H,
3691
+ mouseLeaveDelay: x,
3692
+ overlayClassName: C,
3693
+ overlayStyle: w,
3694
+ destroyOnHidden: B,
3695
+ destroyPopupOnHide: P,
3696
+ dropdownRender: L,
3697
+ popupRender: z
3698
+ } = e, F = gr(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", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]), D = o("dropdown", r), A = `${D}-button`, R = {
3734
3699
  menu: v,
3735
- arrow: p,
3736
- autoFocus: g,
3700
+ arrow: g,
3701
+ autoFocus: u,
3737
3702
  align: b,
3738
3703
  disabled: s,
3739
- trigger: s ? [] : C,
3740
- onOpenChange: $,
3704
+ trigger: s ? [] : $,
3705
+ onOpenChange: N,
3741
3706
  getPopupContainer: M || t,
3742
- mouseEnterDelay: P,
3743
- mouseLeaveDelay: I,
3744
- overlayClassName: z,
3745
- overlayStyle: y,
3746
- destroyPopupOnHide: N,
3747
- dropdownRender: E
3707
+ mouseEnterDelay: H,
3708
+ mouseLeaveDelay: x,
3709
+ overlayClassName: C,
3710
+ overlayStyle: w,
3711
+ destroyOnHidden: B,
3712
+ popupRender: z || L
3748
3713
  }, {
3749
- compactSize: H,
3750
- compactItemClassnames: D
3751
- } = Ro(L, n), W = _(F, D, m);
3752
- "overlay" in e && (j.overlay = h), "open" in e && (j.open = S), "placement" in e ? j.placement = B : j.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
3753
- const G = /* @__PURE__ */ l.createElement(lt, {
3714
+ compactSize: W,
3715
+ compactItemClassnames: G
3716
+ } = Ao(D, n), q = _(A, G, p);
3717
+ "destroyPopupOnHide" in e && (R.destroyPopupOnHide = P), "overlay" in e && (R.overlay = h), "open" in e && (R.open = S), "placement" in e ? R.placement = y : R.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
3718
+ const Q = /* @__PURE__ */ l.createElement(ct, {
3754
3719
  type: a,
3755
3720
  danger: i,
3756
3721
  disabled: s,
3757
3722
  loading: c,
3758
- onClick: u,
3723
+ onClick: m,
3759
3724
  htmlType: d,
3760
- href: R,
3761
- title: w
3762
- }, f), q = /* @__PURE__ */ l.createElement(lt, {
3725
+ href: j,
3726
+ title: O
3727
+ }, f), X = /* @__PURE__ */ l.createElement(ct, {
3763
3728
  type: a,
3764
3729
  danger: i,
3765
3730
  icon: T
3766
- }), [Z, ee] = x([G, q]);
3767
- return /* @__PURE__ */ l.createElement(et.Compact, Object.assign({
3768
- className: W,
3769
- size: H,
3731
+ }), [Z, J] = E([Q, X]);
3732
+ return /* @__PURE__ */ l.createElement(ot.Compact, Object.assign({
3733
+ className: q,
3734
+ size: W,
3770
3735
  block: !0
3771
- }, A), Z, /* @__PURE__ */ l.createElement($e, Object.assign({}, j), ee));
3736
+ }, F), Z, /* @__PURE__ */ l.createElement(ye, Object.assign({}, R), J));
3772
3737
  };
3773
- Vt.__ANT_BUTTON = !0;
3774
- const Wt = $e;
3775
- Wt.Button = Vt;
3776
- const ur = (e) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "M19 9L12 16L5 9", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), mr = "_avatar_1f4cc_1", pr = "_pointer_1f4cc_7", gr = "_flexRowCenter_1f4cc_11", fr = "_userTitle_1f4cc_18", xe = {
3777
- avatar: mr,
3778
- pointer: pr,
3779
- flexRowCenter: gr,
3780
- userTitle: fr
3781
- }, xr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ Ce(Wt, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ eo("a", { onClick: (r) => r.preventDefault(), className: xe.flexRowCenter, children: [
3782
- /* @__PURE__ */ Ce(_t, { className: oo(xe.avatar, xe.pointer), size: "large", children: t[0] }),
3783
- !o && /* @__PURE__ */ Ce("span", { className: xe.userTitle, children: t }),
3784
- !o && /* @__PURE__ */ Ce(ur, { color: "var(--color-primary)" })
3738
+ Gt.__ANT_BUTTON = !0;
3739
+ const Yt = ye;
3740
+ Yt.Button = Gt;
3741
+ const fr = (e) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "M19 9L12 16L5 9", color: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), vr = "_avatar_1f4cc_1", br = "_pointer_1f4cc_7", hr = "_flexRowCenter_1f4cc_11", $r = "_userTitle_1f4cc_18", Se = {
3742
+ avatar: vr,
3743
+ pointer: br,
3744
+ flexRowCenter: hr,
3745
+ userTitle: $r
3746
+ }, Pr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ we(Yt, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ no("a", { onClick: (r) => r.preventDefault(), className: Se.flexRowCenter, children: [
3747
+ /* @__PURE__ */ we(Dt, { className: ao(Se.avatar, Se.pointer), size: "large", children: t[0] }),
3748
+ !o && /* @__PURE__ */ we("span", { className: Se.userTitle, children: t }),
3749
+ !o && /* @__PURE__ */ we(fr, { color: "var(--color-primary)" })
3785
3750
  ] }) });
3786
3751
  export {
3787
- ge as M,
3788
- ur as S,
3789
- xr as U
3752
+ fe as M,
3753
+ fr as S,
3754
+ Pr as U
3790
3755
  };