@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19

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