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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{Box-CmKt1PwF.js → Box-C1OwXVV-.js} +4 -4
  2. package/dist/{Button-BT8r3F_d.js → Button-CIvE-fcO.js} +21 -21
  3. package/dist/{ButtonBase-By486Sca.js → ButtonBase-BeQnmGXr.js} +3 -3
  4. package/dist/EllipsisOutlined-DZsCEqiL.js +2467 -0
  5. package/dist/PurePanel-iUNZWTe_.js +2213 -0
  6. package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-CfEiGUkR.js} +161 -158
  7. package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-CoZutJAR.js} +1564 -1529
  8. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  9. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  10. package/dist/components/CustomButton/CustomButton.js +1 -1
  11. package/dist/components/CustomPagination/CustomPagination.js +141 -141
  12. package/dist/components/ErrorModal/ErrorModal.js +5 -6
  13. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  14. package/dist/components/InfoModal/InfoModal.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  16. package/dist/components/KpiCard/KpiCard.js +1003 -892
  17. package/dist/components/LoadingAnimation/LoadingAnimation.js +5 -5
  18. package/dist/components/Login/Login.js +527 -514
  19. package/dist/components/Login/Login.stories.js +1587 -1547
  20. package/dist/components/SideMenu/SideMenu.js +1 -1
  21. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  22. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  23. package/dist/components/index.js +1 -1
  24. package/dist/context-Crxhk7DD.js +7384 -0
  25. package/dist/{createSvgIcon-B8ya7kb4.js → createSvgIcon-Db107M0j.js} +5 -5
  26. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  27. package/dist/index-BxiDYyNJ.js +1689 -0
  28. package/dist/{index-1vDmwq0E.js → index-DpDv68WZ.js} +7075 -7011
  29. package/dist/main.js +1 -1
  30. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  31. package/dist/portal-utils/formatters.js +68 -0
  32. package/dist/types/Column.d.ts +2 -0
  33. package/package.json +34 -32
  34. package/dist/EllipsisOutlined-CtmB5yDB.js +0 -2470
  35. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  36. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  37. package/dist/index-DsP9yT3s.js +0 -1551
  38. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  39. 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 Pe, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as He, createContext as to } from "react";
4
+ import { cn as oo } from "./portal-utils/cn.js";
5
+ import { a as Be } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
6
+ import { I as Ve, K as ie, H as no, U as We, ah as ro, g as ce, m as se, y as fe, u as E, a2 as io, a as ne, E as ao, v as ve, D as ze, c as _, p as lo, N as so, e as le, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as qe, o as be, an as uo, n as mo, a4 as po, A as go, z as fo, F as rt, aa as it, ad as vo, k as wt, ao as bo, B as at } from "./context-Crxhk7DD.js";
7
+ import { R as ho, T as $o, c as yo, M as Co, a as xe, u as wo, S as xo, E as So, b as xt, d as Oo, s as Io, e as No, f as Eo, g as Po, D as Bo } from "./EllipsisOutlined-DZsCEqiL.js";
8
+ import { P as ge, i as je, C as St, b as zo, u as Ge, d as de, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-iUNZWTe_.js";
9
+ 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, Be({}, 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() {
238
- 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();
236
+ function Jo() {
237
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
238
+ const o = Pe(t), n = Qo(), r = Zo();
239
+ return ro(() => {
240
+ const a = r.subscribe((i) => {
241
+ o.current = i, e && n();
243
242
  });
244
- return () => n.unsubscribe(r);
245
- }, []), t.current;
243
+ return () => r.unsubscribe(a);
244
+ }, []), o.current;
246
245
  }
247
- const Re = /* @__PURE__ */ a.createContext({}), Xo = (e) => {
246
+ const Le = /* @__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, C = (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
+ }), C(i, u, m)), {
298
+ "&-lg": Object.assign({}, C(s, d, g)),
299
+ "&-sm": Object.assign({}, C(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(Le), 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: C,
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
+ }), y = Object.keys(typeof N == "object" ? N || {} : {}).some((x) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(x)), P = Jo(y), 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 = ze(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 = C || (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, C = t.animation, b = t.motion, S = t.placement, $ = S === void 0 ? "right" : S, O = t.align, H = O === void 0 ? {} : O, R = t.destroyTooltipOnHide, M = R === void 0 ? !1 : R, I = t.defaultVisible, w = t.getTooltipContainer, B = t.overlayInnerStyle;
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, y = t.showArrow, P = y === void 0 ? !0 : y, A = t.classNames, j = t.styles, L = lo(t, ln), F = so(N), V = Pe(null);
576
+ 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, Be({
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: C,
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, C = r * Math.sqrt(2) + n * (Math.sqrt(2) - 2), b = n * (Math.sqrt(2) - 1), S = `polygon(${b}px 100%, 50% ${b}px, ${2 * r - b}px 100%, ${b}px 100%)`, $ = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${o} ${o} 0 0 1 ${f} ${m} L ${g} ${p} A ${n} ${n} 0 0 0 ${v} ${h} Z')`;
620
625
  return {
621
- arrowShadowWidth: b,
622
- arrowPath: y,
623
- arrowPolygon: x
626
+ arrowShadowWidth: C,
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 Te(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 = Te({
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, C) => {
1016
1028
  let {
1017
- darkColor: f
1018
- } = m;
1029
+ darkColor: b
1030
+ } = C;
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
+ }, Te({
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), je(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: C = !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"]), y = !!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 = C;
1192
+ return typeof g == "object" && (re = (Q = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && Q !== void 0 ? Q : C), h || Pt({
1193
+ arrowPointAtCenter: re,
1194
+ autoAdjustOverflow: b,
1195
+ arrowWidth: y ? 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
+ }, [C, g, h, P]), ae = l.useMemo(() => p === 0 ? p : v || p || "", [v, p]), Re = /* @__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,
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 Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), $e = Me.props, Xt = !$e.className || typeof $e.className == "string" ? _($e.className, a || `${te}-open`) : $e.className, [Ft, qt, Gt] = Bt(te, !oe), De = zt(te, s), Yt = De.arrowStyle, Ut = _(w, {
1206
+ [`${te}-rtl`]: L === "rtl"
1207
+ }, De.className, I, qt, Gt, F, k.root, z == null ? void 0 : z.root), Kt = _(k.body, z == null ? void 0 : z.body), [Zt, Qt] = Ge("Tooltip", N.zIndex), Jt = /* @__PURE__ */ l.createElement(cn, Object.assign({}, N, {
1208
+ zIndex: Zt,
1190
1209
  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`
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), De.overlayStyle)
1221
+ },
1222
+ getTooltipContainer: $ || i || A,
1223
+ ref: q,
1224
+ builtinPlacements: U,
1225
+ overlay: Re,
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(Me, {
1238
+ className: Xt
1239
+ }) : Me);
1240
+ return Ft(/* @__PURE__ */ l.createElement(Ot.Provider, {
1241
+ value: Qt
1242
+ }, Jt));
1243
+ }), _e = yn;
1244
+ process.env.NODE_ENV !== "production" && (_e.displayName = "Tooltip");
1245
+ _e._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)), Te({
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), je(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, C = 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), [y, 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(_e, Object.assign({
1487
+ placement: c,
1488
+ trigger: u,
1489
+ mouseEnterDelay: f,
1490
+ mouseLeaveDelay: m
1491
+ }, C, {
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: y,
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", C.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(Le), 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(Le.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,
1541
+ maxCount: f,
1542
+ maxStyle: m,
1543
+ size: g,
1544
+ shape: p,
1545
+ maxPopoverPlacement: v,
1546
+ maxPopoverTrigger: h,
1511
1547
  children: C,
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((y) => {
1553
+ let [P, A] = y;
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 = ze(S), [H, R, M] = Nt(S, O), I = _($, {
1558
+ [`${$}-rtl`]: i === "rtl"
1559
+ }, M, O, c, u, R), w = qe(C).map((N, y) => de(N, {
1560
+ // eslint-disable-next-line react/no-array-index-key
1561
+ key: `avatar-key-${y}`
1562
+ })), B = (b == null ? void 0 : b.count) || f, z = w.length;
1563
+ if (B && B < z) {
1564
+ const N = w.slice(0, B), y = w.slice(B, z), P = (b == null ? void 0 : b.style) || m, A = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", j = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || v || "top", L = Object.assign(Object.assign({
1565
+ content: y
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
+ var Bn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, zn = function(t, o) {
1596
+ return /* @__PURE__ */ l.createElement(Ve, Be({}, t, {
1555
1597
  ref: o,
1556
- icon: Cn
1598
+ icon: Bn
1557
1599
  }));
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, {
1600
+ }, Ie = /* @__PURE__ */ l.forwardRef(zn);
1601
+ process.env.NODE_ENV !== "production" && (Ie.displayName = "LeftOutlined");
1602
+ const jn = (e) => typeof e != "object" && typeof e != "function" || e === null;
1603
+ var Tn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, _n = function(t, o) {
1604
+ return /* @__PURE__ */ l.createElement(Ve, Be({}, t, {
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
+ }, Rt = /* @__PURE__ */ l.forwardRef(_n);
1609
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
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,291 +1758,283 @@ 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
  },
1765
+ [`&-zero-width ${t}-children`]: {
1766
+ overflow: "hidden"
1767
+ },
1722
1768
  [`${t}-trigger`]: {
1723
1769
  position: "fixed",
1724
1770
  bottom: 0,
1725
1771
  zIndex: 1,
1726
1772
  height: i,
1727
- color: c,
1728
- lineHeight: P(i),
1773
+ color: s,
1774
+ lineHeight: E(i),
1729
1775
  textAlign: "center",
1730
- background: s,
1776
+ background: c,
1731
1777
  cursor: "pointer",
1732
1778
  transition: `all ${n}`
1733
1779
  },
1734
- "&-zero-width": {
1735
- "> *": {
1736
- overflow: "hidden"
1737
- },
1738
- "&-trigger": {
1780
+ [`${t}-zero-width-trigger`]: {
1781
+ position: "absolute",
1782
+ top: u,
1783
+ insetInlineEnd: e.calc(d).mul(-1).equal(),
1784
+ zIndex: 1,
1785
+ width: d,
1786
+ height: f,
1787
+ color: s,
1788
+ fontSize: e.fontSizeXL,
1789
+ display: "flex",
1790
+ alignItems: "center",
1791
+ justifyContent: "center",
1792
+ background: o,
1793
+ borderRadius: `0 ${E(m)} ${E(m)} 0`,
1794
+ cursor: "pointer",
1795
+ transition: `background ${r} ease`,
1796
+ "&::after": {
1739
1797
  position: "absolute",
1740
- top: d,
1741
- insetInlineEnd: e.calc(u).mul(-1).equal(),
1742
- zIndex: 1,
1743
- width: u,
1744
- height: p,
1745
- color: c,
1746
- fontSize: e.fontSizeXL,
1747
- display: "flex",
1748
- alignItems: "center",
1749
- justifyContent: "center",
1750
- background: o,
1751
- borderStartStartRadius: 0,
1752
- borderStartEndRadius: m,
1753
- borderEndEndRadius: m,
1754
- borderEndStartRadius: 0,
1755
- cursor: "pointer",
1756
- transition: `background ${r} ease`,
1757
- "&::after": {
1758
- position: "absolute",
1759
- inset: 0,
1760
- background: "transparent",
1761
- transition: `all ${r}`,
1762
- content: '""'
1763
- },
1764
- "&:hover::after": {
1765
- background: "rgba(255, 255, 255, 0.2)"
1766
- },
1767
- "&-right": {
1768
- insetInlineStart: e.calc(u).mul(-1).equal(),
1769
- borderStartStartRadius: m,
1770
- borderStartEndRadius: 0,
1771
- borderEndEndRadius: 0,
1772
- borderEndStartRadius: m
1773
- }
1798
+ inset: 0,
1799
+ background: "transparent",
1800
+ transition: `all ${r}`,
1801
+ content: '""'
1802
+ },
1803
+ "&:hover::after": {
1804
+ background: "rgba(255, 255, 255, 0.2)"
1805
+ },
1806
+ "&-right": {
1807
+ insetInlineStart: e.calc(d).mul(-1).equal(),
1808
+ borderRadius: `${E(m)} 0 0 ${E(m)}`
1774
1809
  }
1775
1810
  },
1776
1811
  // Light
1777
1812
  "&-light": {
1778
- background: f,
1813
+ background: g,
1779
1814
  [`${t}-trigger`]: {
1780
- color: g,
1815
+ color: p,
1781
1816
  background: v
1782
1817
  },
1783
1818
  [`${t}-zero-width-trigger`]: {
1784
- color: g,
1819
+ color: p,
1785
1820
  background: v,
1786
- border: `1px solid ${C}`,
1821
+ border: `1px solid ${h}`,
1787
1822
  // Safe to modify to any other color
1788
1823
  borderInlineStart: 0
1789
1824
  }
1790
1825
  }
1791
1826
  }
1792
1827
  };
1793
- }, Bn = le(["Layout", "Sider"], (e) => [En(e)], zt, {
1794
- deprecatedTokens: jt
1828
+ }, Hn = ce(["Layout", "Sider"], (e) => [Dn(e)], Mt, {
1829
+ deprecatedTokens: Dt
1795
1830
  });
1796
- var Pn = function(e, t) {
1831
+ var An = function(e, t) {
1797
1832
  var o = {};
1798
1833
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1799
1834
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1800
1835
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1801
1836
  return o;
1802
1837
  };
1803
- const at = {
1838
+ const ut = {
1804
1839
  xs: "479.98px",
1805
1840
  sm: "575.98px",
1806
1841
  md: "767.98px",
1807
1842
  lg: "991.98px",
1808
1843
  xl: "1199.98px",
1809
1844
  xxl: "1599.98px"
1810
- }, Ye = /* @__PURE__ */ a.createContext({}), Nn = /* @__PURE__ */ (() => {
1845
+ }, Ln = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Je = /* @__PURE__ */ l.createContext({}), kn = /* @__PURE__ */ (() => {
1811
1846
  let e = 0;
1812
1847
  return function() {
1813
1848
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1814
1849
  return e += 1, `${t}${e}`;
1815
1850
  };
1816
- })(), zn = /* @__PURE__ */ a.forwardRef((e, t) => {
1851
+ })(), Vn = /* @__PURE__ */ l.forwardRef((e, t) => {
1817
1852
  const {
1818
1853
  prefixCls: o,
1819
1854
  className: n,
1820
1855
  trigger: r,
1821
- children: l,
1856
+ children: a,
1822
1857
  defaultCollapsed: i = !1,
1823
- theme: c = "dark",
1824
- style: s = {},
1825
- collapsible: d = !1,
1826
- reverseArrow: u = !1,
1827
- width: p = 200,
1858
+ theme: s = "dark",
1859
+ style: c = {},
1860
+ collapsible: u = !1,
1861
+ reverseArrow: d = !1,
1862
+ width: f = 200,
1828
1863
  collapsedWidth: m = 80,
1829
- zeroWidthTriggerStyle: f,
1830
- breakpoint: g,
1864
+ zeroWidthTriggerStyle: g,
1865
+ breakpoint: p,
1831
1866
  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);
1867
+ onBreakpoint: h
1868
+ } = e, C = An(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1869
+ siderHook: b
1870
+ } = tt(Rn), [S, $] = ot("collapsed" in e ? e.collapsed : i), [O, H] = ot(!1);
1871
+ He(() => {
1872
+ "collapsed" in e && $(e.collapsed);
1838
1873
  }, [e.collapsed]);
1839
- const T = (S, N) => {
1840
- "collapsed" in e || y(S), v == null || v(S, N);
1874
+ const R = (x, T) => {
1875
+ "collapsed" in e || $(x), v == null || v(x, T);
1841
1876
  }, {
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);
1877
+ getPrefixCls: M,
1878
+ direction: I
1879
+ } = tt(ne), w = M("layout-sider", o), [B, z, N] = Hn(w), y = Pe(null);
1880
+ y.current = (x) => {
1881
+ H(x.matches), h == null || h(x.matches), S !== x.matches && R(x.matches, "responsive");
1882
+ }, He(() => {
1883
+ function x(U) {
1884
+ return y.current(U);
1849
1885
  }
1850
- let N;
1886
+ let T;
1851
1887
  if (typeof window < "u") {
1852
1888
  const {
1853
- matchMedia: R
1889
+ matchMedia: U
1854
1890
  } = window;
1855
- if (R && g && g in at) {
1856
- N = R(`screen and (max-width: ${at[g]})`);
1891
+ if (U && p && p in ut) {
1892
+ T = U(`screen and (max-width: ${ut[p]})`);
1857
1893
  try {
1858
- N.addEventListener("change", S);
1894
+ T.addEventListener("change", x);
1859
1895
  } catch {
1860
- N.addListener(S);
1896
+ T.addListener(x);
1861
1897
  }
1862
- S(N);
1898
+ x(T);
1863
1899
  }
1864
1900
  }
1865
1901
  return () => {
1866
1902
  try {
1867
- N == null || N.removeEventListener("change", S);
1903
+ T == null || T.removeEventListener("change", x);
1868
1904
  } catch {
1869
- N == null || N.removeListener(S);
1905
+ T == null || T.removeListener(x);
1870
1906
  }
1871
1907
  };
1872
- }, [g]), Te(() => {
1873
- const S = Nn("ant-sider-");
1874
- return w.addSider(S), () => w.removeSider(S);
1908
+ }, [p]), He(() => {
1909
+ const x = kn("ant-sider-");
1910
+ return b.addSider(x), () => b.removeSider(x);
1875
1911
  }, []);
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()));
1912
+ const P = () => {
1913
+ R(!S, "clickTrigger");
1914
+ }, A = be(C, ["collapsed"]), j = S ? m : f, L = Ln(j) ? `${j}px` : String(j), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
1915
+ onClick: P,
1916
+ className: _(`${w}-zero-width-trigger`, `${w}-zero-width-trigger-${d ? "right" : "left"}`),
1917
+ style: g
1918
+ }, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, V = I === "rtl" == !d, W = {
1919
+ expanded: V ? /* @__PURE__ */ l.createElement(Se, null) : /* @__PURE__ */ l.createElement(Ie, null),
1920
+ collapsed: V ? /* @__PURE__ */ l.createElement(Ie, null) : /* @__PURE__ */ l.createElement(Se, null)
1921
+ }[S ? "collapsed" : "expanded"], q = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
1922
+ className: `${w}-trigger`,
1923
+ onClick: P,
1924
+ style: {
1925
+ width: L
1926
+ }
1927
+ }, r || W) : null, G = Object.assign(Object.assign({}, c), {
1928
+ flex: `0 0 ${L}`,
1929
+ maxWidth: L,
1930
+ minWidth: L,
1931
+ width: L
1932
+ }), Z = _(w, `${w}-${s}`, {
1933
+ [`${w}-collapsed`]: !!S,
1934
+ [`${w}-has-trigger`]: u && r !== null && !F,
1935
+ [`${w}-below`]: !!O,
1936
+ [`${w}-zero-width`]: parseFloat(L) === 0
1937
+ }, n, z, N), Y = l.useMemo(() => ({
1938
+ siderCollapsed: S
1939
+ }), [S]);
1940
+ return B(/* @__PURE__ */ l.createElement(Je.Provider, {
1941
+ value: Y
1942
+ }, /* @__PURE__ */ l.createElement("aside", Object.assign({
1943
+ className: Z
1944
+ }, A, {
1945
+ style: G,
1946
+ ref: t
1947
+ }), /* @__PURE__ */ l.createElement("div", {
1948
+ className: `${w}-children`
1949
+ }, a), u || O && F ? q : null)));
1917
1950
  });
1918
- process.env.NODE_ENV !== "production" && (zn.displayName = "Sider");
1919
- const Se = /* @__PURE__ */ qt({
1951
+ process.env.NODE_ENV !== "production" && (Vn.displayName = "Sider");
1952
+ const Ne = /* @__PURE__ */ to({
1920
1953
  prefixCls: "",
1921
1954
  firstLevel: !0,
1922
1955
  inlineCollapsed: !1
1923
1956
  });
1924
- var jn = function(e, t) {
1957
+ var Wn = function(e, t) {
1925
1958
  var o = {};
1926
1959
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1927
1960
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1928
1961
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1929
1962
  return o;
1930
1963
  };
1931
- const Tt = (e) => {
1964
+ const Ht = (e) => {
1932
1965
  const {
1933
1966
  prefixCls: t,
1934
1967
  className: o,
1935
1968
  dashed: n
1936
- } = e, r = jn(e, ["prefixCls", "className", "dashed"]), {
1937
- getPrefixCls: l
1938
- } = a.useContext(J), i = l("menu", t), c = M({
1969
+ } = e, r = Wn(e, ["prefixCls", "className", "dashed"]), {
1970
+ getPrefixCls: a
1971
+ } = l.useContext(ne), i = a("menu", t), s = _({
1939
1972
  [`${i}-item-divider-dashed`]: !!n
1940
1973
  }, o);
1941
- return /* @__PURE__ */ a.createElement(co, Object.assign({
1942
- className: c
1974
+ return /* @__PURE__ */ l.createElement(yo, Object.assign({
1975
+ className: s
1943
1976
  }, r));
1944
- }, _t = (e) => {
1977
+ }, At = (e) => {
1945
1978
  var t;
1946
1979
  const {
1947
1980
  className: o,
1948
1981
  children: n,
1949
1982
  icon: r,
1950
- title: l,
1983
+ title: a,
1951
1984
  danger: i,
1952
- extra: c
1985
+ extra: s
1953
1986
  } = e, {
1954
- prefixCls: s,
1955
- firstLevel: d,
1956
- direction: u,
1957
- disableMenuItemTitleTooltip: p,
1987
+ prefixCls: c,
1988
+ firstLevel: u,
1989
+ direction: d,
1990
+ disableMenuItemTitleTooltip: f,
1958
1991
  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
1992
+ } = l.useContext(Ne), g = (S) => {
1993
+ const $ = n == null ? void 0 : n[0], O = /* @__PURE__ */ l.createElement("span", {
1994
+ className: _(`${c}-title-content`, {
1995
+ [`${c}-title-content-with-extra`]: !!s || s === 0
1963
1996
  })
1964
1997
  }, 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;
1998
+ return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && u && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
1999
+ className: `${c}-inline-collapsed-noicon`
2000
+ }, $.charAt(0)) : O;
1968
2001
  }, {
1969
- siderCollapsed: g
1970
- } = a.useContext(Ye);
1971
- let v = l;
1972
- typeof l > "u" ? v = d ? n : "" : l === !1 && (v = "");
1973
- const C = {
2002
+ siderCollapsed: p
2003
+ } = l.useContext(Je);
2004
+ let v = a;
2005
+ typeof a > "u" ? v = u ? n : "" : a === !1 && (v = "");
2006
+ const h = {
1974
2007
  title: v
1975
2008
  };
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
2009
+ !p && !m && (h.title = null, h.open = !1);
2010
+ const C = qe(n).length;
2011
+ let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, be(e, ["title", "icon", "danger"]), {
2012
+ className: _({
2013
+ [`${c}-item-danger`]: i,
2014
+ [`${c}-item-only-child`]: (r ? C + 1 : C) === 1
1982
2015
  }, 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;
2016
+ title: typeof a == "string" ? a : void 0
2017
+ }), de(r, {
2018
+ className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : "", `${c}-item-icon`)
2019
+ }), g(m));
2020
+ return f || (b = /* @__PURE__ */ l.createElement(_e, Object.assign({}, h, {
2021
+ placement: d === "rtl" ? "left" : "right",
2022
+ classNames: {
2023
+ root: `${c}-inline-collapsed-tooltip`
2024
+ }
2025
+ }), b)), b;
1991
2026
  };
1992
- var Tn = function(e, t) {
2027
+ var Xn = function(e, t) {
1993
2028
  var o = {};
1994
2029
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1995
2030
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1996
2031
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
1997
2032
  return o;
1998
2033
  };
1999
- const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forwardRef((e, t) => {
2034
+ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
2000
2035
  const {
2001
2036
  children: o
2002
- } = e, n = Tn(e, ["children"]), r = a.useContext(Oe), l = a.useMemo(() => Object.assign(Object.assign({}, r), n), [
2037
+ } = e, n = Xn(e, ["children"]), r = l.useContext(Ee), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
2003
2038
  r,
2004
2039
  n.prefixCls,
2005
2040
  // restProps.expandIcon, Not mark as deps since this is a ReactNode
@@ -2007,29 +2042,29 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2007
2042
  n.selectable,
2008
2043
  n.rootClassName
2009
2044
  // 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, {
2045
+ ]), i = uo(o), s = mo(t, i ? po(o) : null);
2046
+ return /* @__PURE__ */ l.createElement(Ee.Provider, {
2047
+ value: a
2048
+ }, /* @__PURE__ */ l.createElement(St, {
2014
2049
  space: !0
2015
- }, i ? /* @__PURE__ */ a.cloneElement(o, {
2016
- ref: c
2050
+ }, i ? /* @__PURE__ */ l.cloneElement(o, {
2051
+ ref: s
2017
2052
  }) : o));
2018
- }), Rn = (e) => {
2053
+ }), qn = (e) => {
2019
2054
  const {
2020
2055
  componentCls: t,
2021
2056
  motionDurationSlow: o,
2022
2057
  horizontalLineHeight: n,
2023
2058
  colorSplit: r,
2024
- lineWidth: l,
2059
+ lineWidth: a,
2025
2060
  lineType: i,
2026
- itemPaddingInline: c
2061
+ itemPaddingInline: s
2027
2062
  } = e;
2028
2063
  return {
2029
2064
  [`${t}-horizontal`]: {
2030
2065
  lineHeight: n,
2031
2066
  border: 0,
2032
- borderBottom: `${P(l)} ${i} ${r}`,
2067
+ borderBottom: `${E(a)} ${i} ${r}`,
2033
2068
  boxShadow: "none",
2034
2069
  "&::after": {
2035
2070
  display: "block",
@@ -2042,7 +2077,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2042
2077
  position: "relative",
2043
2078
  display: "inline-block",
2044
2079
  verticalAlign: "bottom",
2045
- paddingInline: c
2080
+ paddingInline: s
2046
2081
  },
2047
2082
  [`> ${t}-item:hover,
2048
2083
  > ${t}-item-active,
@@ -2058,7 +2093,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2058
2093
  }
2059
2094
  }
2060
2095
  };
2061
- }, Mn = (e) => {
2096
+ }, Gn = (e) => {
2062
2097
  let {
2063
2098
  componentCls: t,
2064
2099
  menuArrowOffset: o,
@@ -2076,76 +2111,75 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2076
2111
  ${t}-submenu-rtl ${t}-vertical`]: {
2077
2112
  [`${t}-submenu-arrow`]: {
2078
2113
  "&::before": {
2079
- transform: `rotate(-45deg) translateY(${P(n(o).mul(-1).equal())})`
2114
+ transform: `rotate(-45deg) translateY(${E(n(o).mul(-1).equal())})`
2080
2115
  },
2081
2116
  "&::after": {
2082
- transform: `rotate(45deg) translateY(${P(o)})`
2117
+ transform: `rotate(45deg) translateY(${E(o)})`
2083
2118
  }
2084
2119
  }
2085
2120
  }
2086
2121
  };
2087
- }, lt = (e) => Object.assign({}, no(e)), st = (e, t) => {
2122
+ }, mt = (e) => Object.assign({}, go(e)), pt = (e, t) => {
2088
2123
  const {
2089
2124
  componentCls: o,
2090
2125
  itemColor: n,
2091
2126
  itemSelectedColor: r,
2092
- groupTitleColor: l,
2093
- itemBg: i,
2127
+ subMenuItemSelectedColor: a,
2128
+ groupTitleColor: i,
2129
+ itemBg: s,
2094
2130
  subMenuItemBg: c,
2095
- itemSelectedBg: s,
2131
+ itemSelectedBg: u,
2096
2132
  activeBarHeight: d,
2097
- activeBarWidth: u,
2098
- activeBarBorderWidth: p,
2099
- motionDurationSlow: m,
2100
- motionEaseInOut: f,
2101
- motionEaseOut: g,
2102
- itemPaddingInline: v,
2133
+ activeBarWidth: f,
2134
+ activeBarBorderWidth: m,
2135
+ motionDurationSlow: g,
2136
+ motionEaseInOut: p,
2137
+ motionEaseOut: v,
2138
+ itemPaddingInline: h,
2103
2139
  motionDurationMid: C,
2104
2140
  itemHoverColor: b,
2105
- lineType: w,
2106
- colorSplit: x,
2141
+ lineType: S,
2142
+ colorSplit: $,
2107
2143
  // Disabled
2108
- itemDisabledColor: y,
2144
+ itemDisabledColor: O,
2109
2145
  // Danger
2110
- dangerItemColor: O,
2111
- dangerItemHoverColor: j,
2112
- dangerItemSelectedColor: T,
2113
- dangerItemActiveBg: _,
2114
- dangerItemSelectedBg: h,
2146
+ dangerItemColor: H,
2147
+ dangerItemHoverColor: R,
2148
+ dangerItemSelectedColor: M,
2149
+ dangerItemActiveBg: I,
2150
+ dangerItemSelectedBg: w,
2115
2151
  // Bg
2116
- popupBg: E,
2152
+ popupBg: B,
2117
2153
  itemHoverBg: z,
2118
- itemActiveBg: B,
2119
- menuSubMenuBg: I,
2154
+ itemActiveBg: N,
2155
+ menuSubMenuBg: y,
2120
2156
  // Horizontal
2121
- horizontalItemSelectedColor: $,
2122
- horizontalItemSelectedBg: D,
2123
- horizontalItemBorderRadius: k,
2124
- horizontalItemHoverBg: S
2157
+ horizontalItemSelectedColor: P,
2158
+ horizontalItemSelectedBg: A,
2159
+ horizontalItemBorderRadius: j,
2160
+ horizontalItemHoverBg: L
2125
2161
  } = e;
2126
2162
  return {
2127
2163
  [`${o}-${t}, ${o}-${t} > ${o}`]: {
2128
2164
  color: n,
2129
- background: i,
2130
- [`&${o}-root:focus-visible`]: Object.assign({}, lt(e)),
2165
+ background: s,
2166
+ [`&${o}-root:focus-visible`]: Object.assign({}, mt(e)),
2131
2167
  // ======================== Item ========================
2132
2168
  [`${o}-item`]: {
2133
2169
  "&-group-title, &-extra": {
2134
- color: l
2170
+ color: i
2135
2171
  }
2136
2172
  },
2137
- [`${o}-submenu-selected`]: {
2138
- [`> ${o}-submenu-title`]: {
2139
- color: r
2140
- }
2173
+ [`${o}-submenu-selected > ${o}-submenu-title`]: {
2174
+ color: a
2141
2175
  },
2142
2176
  [`${o}-item, ${o}-submenu-title`]: {
2143
2177
  color: n,
2144
- [`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, lt(e))
2178
+ [`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, mt(e))
2145
2179
  },
2146
2180
  // Disabled
2147
2181
  [`${o}-item-disabled, ${o}-submenu-disabled`]: {
2148
- color: `${y} !important`
2182
+ color: `${O} !important`
2149
2183
  },
2150
2184
  // Hover
2151
2185
  [`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
@@ -2159,7 +2193,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2159
2193
  backgroundColor: z
2160
2194
  },
2161
2195
  "&:active": {
2162
- backgroundColor: B
2196
+ backgroundColor: N
2163
2197
  }
2164
2198
  },
2165
2199
  [`${o}-submenu-title`]: {
@@ -2167,20 +2201,20 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2167
2201
  backgroundColor: z
2168
2202
  },
2169
2203
  "&:active": {
2170
- backgroundColor: B
2204
+ backgroundColor: N
2171
2205
  }
2172
2206
  }
2173
2207
  },
2174
2208
  // Danger - only Item has
2175
2209
  [`${o}-item-danger`]: {
2176
- color: O,
2210
+ color: H,
2177
2211
  [`&${o}-item:hover`]: {
2178
2212
  [`&:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
2179
- color: j
2213
+ color: R
2180
2214
  }
2181
2215
  },
2182
2216
  [`&${o}-item:active`]: {
2183
- background: _
2217
+ background: I
2184
2218
  }
2185
2219
  },
2186
2220
  [`${o}-item a`]: {
@@ -2192,29 +2226,29 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2192
2226
  color: r,
2193
2227
  // Danger
2194
2228
  [`&${o}-item-danger`]: {
2195
- color: T
2229
+ color: M
2196
2230
  },
2197
2231
  "a, a:hover": {
2198
2232
  color: "inherit"
2199
2233
  }
2200
2234
  },
2201
2235
  [`& ${o}-item-selected`]: {
2202
- backgroundColor: s,
2236
+ backgroundColor: u,
2203
2237
  // Danger
2204
2238
  [`&${o}-item-danger`]: {
2205
- backgroundColor: h
2239
+ backgroundColor: w
2206
2240
  }
2207
2241
  },
2208
2242
  [`&${o}-submenu > ${o}`]: {
2209
- backgroundColor: I
2243
+ backgroundColor: y
2210
2244
  },
2211
2245
  // ===== 设置浮层的颜色 =======
2212
2246
  // !dark 模式会被popupBg 会被rest 为 darkPopupBg
2213
2247
  [`&${o}-popup > ${o}`]: {
2214
- backgroundColor: E
2248
+ backgroundColor: B
2215
2249
  },
2216
2250
  [`&${o}-submenu-popup > ${o}`]: {
2217
- backgroundColor: E
2251
+ backgroundColor: B
2218
2252
  },
2219
2253
  // ===== 设置浮层的颜色 end =======
2220
2254
  // ====================== Horizontal ======================
@@ -2222,34 +2256,34 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2222
2256
  borderBottom: 0
2223
2257
  } : {}), {
2224
2258
  [`> ${o}-item, > ${o}-submenu`]: {
2225
- top: p,
2226
- marginTop: e.calc(p).mul(-1).equal(),
2259
+ top: m,
2260
+ marginTop: e.calc(m).mul(-1).equal(),
2227
2261
  marginBottom: 0,
2228
- borderRadius: k,
2262
+ borderRadius: j,
2229
2263
  "&::after": {
2230
2264
  position: "absolute",
2231
- insetInline: v,
2265
+ insetInline: h,
2232
2266
  bottom: 0,
2233
- borderBottom: `${P(d)} solid transparent`,
2234
- transition: `border-color ${m} ${f}`,
2267
+ borderBottom: `${E(d)} solid transparent`,
2268
+ transition: `border-color ${g} ${p}`,
2235
2269
  content: '""'
2236
2270
  },
2237
2271
  "&:hover, &-active, &-open": {
2238
- background: S,
2272
+ background: L,
2239
2273
  "&::after": {
2240
2274
  borderBottomWidth: d,
2241
- borderBottomColor: $
2275
+ borderBottomColor: P
2242
2276
  }
2243
2277
  },
2244
2278
  "&-selected": {
2245
- color: $,
2246
- backgroundColor: D,
2279
+ color: P,
2280
+ backgroundColor: A,
2247
2281
  "&:hover": {
2248
- backgroundColor: D
2282
+ backgroundColor: A
2249
2283
  },
2250
2284
  "&::after": {
2251
2285
  borderBottomWidth: d,
2252
- borderBottomColor: $
2286
+ borderBottomColor: P
2253
2287
  }
2254
2288
  }
2255
2289
  }
@@ -2258,7 +2292,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2258
2292
  //
2259
2293
  [`&${o}-root`]: {
2260
2294
  [`&${o}-inline, &${o}-vertical`]: {
2261
- borderInlineEnd: `${P(p)} ${w} ${x}`
2295
+ borderInlineEnd: `${E(m)} ${S} ${$}`
2262
2296
  }
2263
2297
  },
2264
2298
  // ======================== Inline ========================
@@ -2273,16 +2307,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2273
2307
  position: "absolute",
2274
2308
  insetBlock: 0,
2275
2309
  insetInlineEnd: 0,
2276
- borderInlineEnd: `${P(u)} solid ${r}`,
2310
+ borderInlineEnd: `${E(f)} solid ${r}`,
2277
2311
  transform: "scaleY(0.0001)",
2278
2312
  opacity: 0,
2279
- transition: [`transform ${C} ${g}`, `opacity ${C} ${g}`].join(","),
2313
+ transition: [`transform ${C} ${v}`, `opacity ${C} ${v}`].join(","),
2280
2314
  content: '""'
2281
2315
  },
2282
2316
  // Danger
2283
2317
  [`&${o}-item-danger`]: {
2284
2318
  "&::after": {
2285
- borderInlineEndColor: T
2319
+ borderInlineEndColor: M
2286
2320
  }
2287
2321
  }
2288
2322
  },
@@ -2290,24 +2324,24 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2290
2324
  "&::after": {
2291
2325
  transform: "scaleY(1)",
2292
2326
  opacity: 1,
2293
- transition: [`transform ${C} ${f}`, `opacity ${C} ${f}`].join(",")
2327
+ transition: [`transform ${C} ${p}`, `opacity ${C} ${p}`].join(",")
2294
2328
  }
2295
2329
  }
2296
2330
  }
2297
2331
  }
2298
2332
  };
2299
- }, ct = (e) => {
2333
+ }, gt = (e) => {
2300
2334
  const {
2301
2335
  componentCls: t,
2302
2336
  itemHeight: o,
2303
2337
  itemMarginInline: n,
2304
2338
  padding: r,
2305
- menuArrowSize: l,
2339
+ menuArrowSize: a,
2306
2340
  marginXS: i,
2307
- itemMarginBlock: c,
2308
- itemWidth: s,
2309
- itemPaddingInline: d
2310
- } = e, u = e.calc(l).add(r).add(i).equal();
2341
+ itemMarginBlock: s,
2342
+ itemWidth: c,
2343
+ itemPaddingInline: u
2344
+ } = e, d = e.calc(a).add(r).add(i).equal();
2311
2345
  return {
2312
2346
  [`${t}-item`]: {
2313
2347
  position: "relative",
@@ -2315,45 +2349,45 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2315
2349
  },
2316
2350
  [`${t}-item, ${t}-submenu-title`]: {
2317
2351
  height: o,
2318
- lineHeight: P(o),
2319
- paddingInline: d,
2352
+ lineHeight: E(o),
2353
+ paddingInline: u,
2320
2354
  overflow: "hidden",
2321
2355
  textOverflow: "ellipsis",
2322
2356
  marginInline: n,
2323
- marginBlock: c,
2324
- width: s
2357
+ marginBlock: s,
2358
+ width: c
2325
2359
  },
2326
2360
  [`> ${t}-item,
2327
2361
  > ${t}-submenu > ${t}-submenu-title`]: {
2328
2362
  height: o,
2329
- lineHeight: P(o)
2363
+ lineHeight: E(o)
2330
2364
  },
2331
2365
  [`${t}-item-group-list ${t}-submenu-title,
2332
2366
  ${t}-submenu-title`]: {
2333
- paddingInlineEnd: u
2367
+ paddingInlineEnd: d
2334
2368
  }
2335
2369
  };
2336
- }, Dn = (e) => {
2370
+ }, Yn = (e) => {
2337
2371
  const {
2338
2372
  componentCls: t,
2339
2373
  iconCls: o,
2340
2374
  itemHeight: n,
2341
2375
  colorTextLightSolid: r,
2342
- dropdownWidth: l,
2376
+ dropdownWidth: a,
2343
2377
  controlHeightLG: i,
2344
- motionEaseOut: c,
2345
- paddingXL: s,
2346
- itemMarginInline: d,
2347
- fontSizeLG: u,
2348
- motionDurationFast: p,
2378
+ motionEaseOut: s,
2379
+ paddingXL: c,
2380
+ itemMarginInline: u,
2381
+ fontSizeLG: d,
2382
+ motionDurationFast: f,
2349
2383
  motionDurationSlow: m,
2350
- paddingXS: f,
2351
- boxShadowSecondary: g,
2384
+ paddingXS: g,
2385
+ boxShadowSecondary: p,
2352
2386
  collapsedWidth: v,
2353
- collapsedIconSize: C
2354
- } = e, b = {
2387
+ collapsedIconSize: h
2388
+ } = e, C = {
2355
2389
  height: n,
2356
- lineHeight: P(n),
2390
+ lineHeight: E(n),
2357
2391
  listStylePosition: "inside",
2358
2392
  listStyleType: "disc"
2359
2393
  };
@@ -2364,19 +2398,19 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2364
2398
  [`&${t}-root`]: {
2365
2399
  boxShadow: "none"
2366
2400
  }
2367
- }, ct(e))
2401
+ }, gt(e))
2368
2402
  },
2369
2403
  [`${t}-submenu-popup`]: {
2370
- [`${t}-vertical`]: Object.assign(Object.assign({}, ct(e)), {
2371
- boxShadow: g
2404
+ [`${t}-vertical`]: Object.assign(Object.assign({}, gt(e)), {
2405
+ boxShadow: p
2372
2406
  })
2373
2407
  }
2374
2408
  },
2375
2409
  // Vertical only
2376
2410
  {
2377
2411
  [`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
2378
- minWidth: l,
2379
- maxHeight: `calc(100vh - ${P(e.calc(i).mul(2.5).equal())})`,
2412
+ minWidth: a,
2413
+ maxHeight: `calc(100vh - ${E(e.calc(i).mul(2.5).equal())})`,
2380
2414
  padding: "0",
2381
2415
  overflow: "hidden",
2382
2416
  borderInlineEnd: 0,
@@ -2397,7 +2431,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2397
2431
  [`${t}-item, ${t}-submenu-title`]: {
2398
2432
  display: "flex",
2399
2433
  alignItems: "center",
2400
- transition: [`border-color ${m}`, `background ${m}`, `padding ${p} ${c}`].join(","),
2434
+ transition: [`border-color ${m}`, `background ${m}`, `padding ${f} ${s}`].join(","),
2401
2435
  [`> ${t}-title-content`]: {
2402
2436
  flex: "auto",
2403
2437
  minWidth: 0,
@@ -2415,13 +2449,13 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2415
2449
  border: 0,
2416
2450
  borderRadius: 0,
2417
2451
  boxShadow: "none",
2418
- [`& > ${t}-submenu > ${t}-submenu-title`]: b,
2452
+ [`& > ${t}-submenu > ${t}-submenu-title`]: C,
2419
2453
  [`& ${t}-item-group-title`]: {
2420
- paddingInlineStart: s
2454
+ paddingInlineStart: c
2421
2455
  }
2422
2456
  },
2423
2457
  // >>>>> Item
2424
- [`${t}-item`]: b
2458
+ [`${t}-item`]: C
2425
2459
  }
2426
2460
  },
2427
2461
  // Inline Collapse Only
@@ -2431,7 +2465,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2431
2465
  [`&${t}-root`]: {
2432
2466
  [`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
2433
2467
  [`> ${t}-inline-collapsed-noicon`]: {
2434
- fontSize: u,
2468
+ fontSize: d,
2435
2469
  textAlign: "center"
2436
2470
  }
2437
2471
  }
@@ -2441,7 +2475,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2441
2475
  > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
2442
2476
  > ${t}-submenu > ${t}-submenu-title`]: {
2443
2477
  insetInlineStart: 0,
2444
- paddingInline: `calc(50% - ${P(e.calc(u).div(2).equal())} - ${P(d)})`,
2478
+ paddingInline: `calc(50% - ${E(e.calc(h).div(2).equal())} - ${E(u)})`,
2445
2479
  textOverflow: "clip",
2446
2480
  [`
2447
2481
  ${t}-submenu-arrow,
@@ -2451,8 +2485,8 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2451
2485
  },
2452
2486
  [`${t}-item-icon, ${o}`]: {
2453
2487
  margin: 0,
2454
- fontSize: C,
2455
- lineHeight: P(n),
2488
+ fontSize: h,
2489
+ lineHeight: E(n),
2456
2490
  "+ span": {
2457
2491
  display: "inline-block",
2458
2492
  opacity: 0
@@ -2471,22 +2505,22 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2471
2505
  color: r
2472
2506
  }
2473
2507
  },
2474
- [`${t}-item-group-title`]: Object.assign(Object.assign({}, ro), {
2475
- paddingInline: f
2508
+ [`${t}-item-group-title`]: Object.assign(Object.assign({}, fo), {
2509
+ paddingInline: g
2476
2510
  })
2477
2511
  }
2478
2512
  }
2479
2513
  ];
2480
- }, dt = (e) => {
2514
+ }, ft = (e) => {
2481
2515
  const {
2482
2516
  componentCls: t,
2483
2517
  motionDurationSlow: o,
2484
2518
  motionDurationMid: n,
2485
2519
  motionEaseInOut: r,
2486
- motionEaseOut: l,
2520
+ motionEaseOut: a,
2487
2521
  iconCls: i,
2488
- iconSize: c,
2489
- iconMarginInlineEnd: s
2522
+ iconSize: s,
2523
+ iconMarginInlineEnd: c
2490
2524
  } = e;
2491
2525
  return {
2492
2526
  // >>>>> Item
@@ -2498,16 +2532,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2498
2532
  cursor: "pointer",
2499
2533
  transition: [`border-color ${o}`, `background ${o}`, `padding calc(${o} + 0.1s) ${r}`].join(","),
2500
2534
  [`${t}-item-icon, ${i}`]: {
2501
- minWidth: c,
2502
- fontSize: c,
2503
- transition: [`font-size ${n} ${l}`, `margin ${o} ${r}`, `color ${o}`].join(","),
2535
+ minWidth: s,
2536
+ fontSize: s,
2537
+ transition: [`font-size ${n} ${a}`, `margin ${o} ${r}`, `color ${o}`].join(","),
2504
2538
  "+ span": {
2505
- marginInlineStart: s,
2539
+ marginInlineStart: c,
2506
2540
  opacity: 1,
2507
2541
  transition: [`opacity ${o} ${r}`, `margin ${o}`, `color ${o}`].join(",")
2508
2542
  }
2509
2543
  },
2510
- [`${t}-item-icon`]: Object.assign({}, io()),
2544
+ [`${t}-item-icon`]: Object.assign({}, vo()),
2511
2545
  [`&${t}-item-only-child`]: {
2512
2546
  [`> ${i}, > ${t}-item-icon`]: {
2513
2547
  marginInlineEnd: 0
@@ -2522,7 +2556,9 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2522
2556
  borderColor: "transparent !important"
2523
2557
  },
2524
2558
  a: {
2525
- color: "inherit !important"
2559
+ color: "inherit !important",
2560
+ cursor: "not-allowed",
2561
+ pointerEvents: "none"
2526
2562
  },
2527
2563
  [`> ${t}-submenu-title`]: {
2528
2564
  color: "inherit !important",
@@ -2530,13 +2566,13 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2530
2566
  }
2531
2567
  }
2532
2568
  };
2533
- }, ut = (e) => {
2569
+ }, vt = (e) => {
2534
2570
  const {
2535
2571
  componentCls: t,
2536
2572
  motionDurationSlow: o,
2537
2573
  motionEaseInOut: n,
2538
2574
  borderRadius: r,
2539
- menuArrowSize: l,
2575
+ menuArrowSize: a,
2540
2576
  menuArrowOffset: i
2541
2577
  } = e;
2542
2578
  return {
@@ -2545,7 +2581,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2545
2581
  position: "absolute",
2546
2582
  top: "50%",
2547
2583
  insetInlineEnd: e.margin,
2548
- width: l,
2584
+ width: a,
2549
2585
  color: "currentcolor",
2550
2586
  transform: "translateY(-50%)",
2551
2587
  transition: `transform ${o} ${n}, opacity ${o}`
@@ -2554,48 +2590,48 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2554
2590
  // →
2555
2591
  "&::before, &::after": {
2556
2592
  position: "absolute",
2557
- width: e.calc(l).mul(0.6).equal(),
2558
- height: e.calc(l).mul(0.15).equal(),
2593
+ width: e.calc(a).mul(0.6).equal(),
2594
+ height: e.calc(a).mul(0.15).equal(),
2559
2595
  backgroundColor: "currentcolor",
2560
2596
  borderRadius: r,
2561
2597
  transition: [`background ${o} ${n}`, `transform ${o} ${n}`, `top ${o} ${n}`, `color ${o} ${n}`].join(","),
2562
2598
  content: '""'
2563
2599
  },
2564
2600
  "&::before": {
2565
- transform: `rotate(45deg) translateY(${P(e.calc(i).mul(-1).equal())})`
2601
+ transform: `rotate(45deg) translateY(${E(e.calc(i).mul(-1).equal())})`
2566
2602
  },
2567
2603
  "&::after": {
2568
- transform: `rotate(-45deg) translateY(${P(i)})`
2604
+ transform: `rotate(-45deg) translateY(${E(i)})`
2569
2605
  }
2570
2606
  }
2571
2607
  }
2572
2608
  };
2573
- }, Hn = (e) => {
2609
+ }, Un = (e) => {
2574
2610
  const {
2575
2611
  antCls: t,
2576
2612
  componentCls: o,
2577
2613
  fontSize: n,
2578
2614
  motionDurationSlow: r,
2579
- motionDurationMid: l,
2615
+ motionDurationMid: a,
2580
2616
  motionEaseInOut: i,
2581
- paddingXS: c,
2582
- padding: s,
2583
- colorSplit: d,
2584
- lineWidth: u,
2585
- zIndexPopup: p,
2617
+ paddingXS: s,
2618
+ padding: c,
2619
+ colorSplit: u,
2620
+ lineWidth: d,
2621
+ zIndexPopup: f,
2586
2622
  borderRadiusLG: m,
2587
- subMenuItemBorderRadius: f,
2588
- menuArrowSize: g,
2623
+ subMenuItemBorderRadius: g,
2624
+ menuArrowSize: p,
2589
2625
  menuArrowOffset: v,
2590
- lineType: C,
2591
- groupTitleLineHeight: b,
2592
- groupTitleFontSize: w
2626
+ lineType: h,
2627
+ groupTitleLineHeight: C,
2628
+ groupTitleFontSize: b
2593
2629
  } = e;
2594
2630
  return [
2595
2631
  // Misc
2596
2632
  {
2597
2633
  "": {
2598
- [o]: Object.assign(Object.assign({}, Je()), {
2634
+ [o]: Object.assign(Object.assign({}, rt()), {
2599
2635
  // Hidden
2600
2636
  "&-hidden": {
2601
2637
  display: "none"
@@ -2607,7 +2643,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2607
2643
  }
2608
2644
  },
2609
2645
  {
2610
- [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ge(e)), Je()), {
2646
+ [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, fe(e)), rt()), {
2611
2647
  marginBottom: 0,
2612
2648
  paddingInlineStart: 0,
2613
2649
  // Override default ul/ol
@@ -2633,16 +2669,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2633
2669
  borderRadius: e.itemBorderRadius
2634
2670
  },
2635
2671
  [`${o}-item-group-title`]: {
2636
- padding: `${P(c)} ${P(s)}`,
2637
- fontSize: w,
2638
- lineHeight: b,
2672
+ padding: `${E(s)} ${E(c)}`,
2673
+ fontSize: b,
2674
+ lineHeight: C,
2639
2675
  transition: `all ${r}`
2640
2676
  },
2641
2677
  [`&-horizontal ${o}-submenu`]: {
2642
2678
  transition: [`border-color ${r} ${i}`, `background ${r} ${i}`].join(",")
2643
2679
  },
2644
2680
  [`${o}-submenu, ${o}-submenu-inline`]: {
2645
- transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${l} ${i}`].join(",")
2681
+ transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${a} ${i}`].join(",")
2646
2682
  },
2647
2683
  [`${o}-submenu ${o}-sub`]: {
2648
2684
  cursor: "initial",
@@ -2662,8 +2698,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2662
2698
  },
2663
2699
  [`${o}-item-extra`]: {
2664
2700
  marginInlineStart: "auto",
2665
- paddingInlineStart: e.padding,
2666
- fontSize: e.fontSizeSM
2701
+ paddingInlineStart: e.padding
2667
2702
  }
2668
2703
  },
2669
2704
  [`${o}-item a`]: {
@@ -2680,23 +2715,23 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2680
2715
  [`${o}-item-divider`]: {
2681
2716
  overflow: "hidden",
2682
2717
  lineHeight: 0,
2683
- borderColor: d,
2684
- borderStyle: C,
2718
+ borderColor: u,
2719
+ borderStyle: h,
2685
2720
  borderWidth: 0,
2686
- borderTopWidth: u,
2687
- marginBlock: u,
2721
+ borderTopWidth: d,
2722
+ marginBlock: d,
2688
2723
  padding: 0,
2689
2724
  "&-dashed": {
2690
2725
  borderStyle: "dashed"
2691
2726
  }
2692
2727
  }
2693
- }), dt(e)), {
2728
+ }), ft(e)), {
2694
2729
  [`${o}-item-group`]: {
2695
2730
  [`${o}-item-group-list`]: {
2696
2731
  margin: 0,
2697
2732
  padding: 0,
2698
2733
  [`${o}-item, ${o}-submenu-title`]: {
2699
- paddingInline: `${P(e.calc(n).mul(2).equal())} ${P(s)}`
2734
+ paddingInline: `${E(e.calc(n).mul(2).equal())} ${E(c)}`
2700
2735
  }
2701
2736
  }
2702
2737
  },
@@ -2704,7 +2739,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2704
2739
  "&-submenu": {
2705
2740
  "&-popup": {
2706
2741
  position: "absolute",
2707
- zIndex: p,
2742
+ zIndex: f,
2708
2743
  borderRadius: m,
2709
2744
  boxShadow: "none",
2710
2745
  transformOrigin: "0 0",
@@ -2723,9 +2758,9 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2723
2758
  },
2724
2759
  [`> ${o}`]: Object.assign(Object.assign(Object.assign({
2725
2760
  borderRadius: m
2726
- }, dt(e)), ut(e)), {
2761
+ }, ft(e)), vt(e)), {
2727
2762
  [`${o}-item, ${o}-submenu > ${o}-submenu-title`]: {
2728
- borderRadius: f
2763
+ borderRadius: g
2729
2764
  },
2730
2765
  [`${o}-submenu-title::after`]: {
2731
2766
  transition: `transform ${r} ${i}`
@@ -2757,25 +2792,25 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2757
2792
  paddingTop: e.paddingXS
2758
2793
  }
2759
2794
  }
2760
- }), ut(e)), {
2795
+ }), vt(e)), {
2761
2796
  [`&-inline-collapsed ${o}-submenu-arrow,
2762
2797
  &-inline ${o}-submenu-arrow`]: {
2763
2798
  // ↓
2764
2799
  "&::before": {
2765
- transform: `rotate(-45deg) translateX(${P(v)})`
2800
+ transform: `rotate(-45deg) translateX(${E(v)})`
2766
2801
  },
2767
2802
  "&::after": {
2768
- transform: `rotate(45deg) translateX(${P(e.calc(v).mul(-1).equal())})`
2803
+ transform: `rotate(45deg) translateX(${E(e.calc(v).mul(-1).equal())})`
2769
2804
  }
2770
2805
  },
2771
2806
  [`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
2772
2807
  // ↑
2773
- transform: `translateY(${P(e.calc(g).mul(0.2).mul(-1).equal())})`,
2808
+ transform: `translateY(${E(e.calc(p).mul(0.2).mul(-1).equal())})`,
2774
2809
  "&::after": {
2775
- transform: `rotate(-45deg) translateX(${P(e.calc(v).mul(-1).equal())})`
2810
+ transform: `rotate(-45deg) translateX(${E(e.calc(v).mul(-1).equal())})`
2776
2811
  },
2777
2812
  "&::before": {
2778
- transform: `rotate(45deg) translateX(${P(v)})`
2813
+ transform: `rotate(45deg) translateX(${E(v)})`
2779
2814
  }
2780
2815
  }
2781
2816
  })
@@ -2789,33 +2824,33 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2789
2824
  }
2790
2825
  }
2791
2826
  ];
2792
- }, An = (e) => {
2827
+ }, Kn = (e) => {
2793
2828
  var t, o, n;
2794
2829
  const {
2795
2830
  colorPrimary: r,
2796
- colorError: l,
2831
+ colorError: a,
2797
2832
  colorTextDisabled: i,
2798
- colorErrorBg: c,
2799
- colorText: s,
2800
- colorTextDescription: d,
2801
- colorBgContainer: u,
2802
- colorFillAlter: p,
2833
+ colorErrorBg: s,
2834
+ colorText: c,
2835
+ colorTextDescription: u,
2836
+ colorBgContainer: d,
2837
+ colorFillAlter: f,
2803
2838
  colorFillContent: m,
2804
- lineWidth: f,
2805
- lineWidthBold: g,
2839
+ lineWidth: g,
2840
+ lineWidthBold: p,
2806
2841
  controlItemBgActive: v,
2807
- colorBgTextHover: C,
2808
- controlHeightLG: b,
2809
- lineHeight: w,
2810
- colorBgElevated: x,
2811
- marginXXS: y,
2842
+ colorBgTextHover: h,
2843
+ controlHeightLG: C,
2844
+ lineHeight: b,
2845
+ colorBgElevated: S,
2846
+ marginXXS: $,
2812
2847
  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();
2848
+ fontSize: H,
2849
+ controlHeightSM: R,
2850
+ fontSizeLG: M,
2851
+ colorTextLightSolid: I,
2852
+ colorErrorHover: w
2853
+ } = e, B = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, z = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : g, N = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new it(I).setA(0.65).toRgbString();
2819
2854
  return {
2820
2855
  dropdownWidth: 160,
2821
2856
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -2823,161 +2858,163 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2823
2858
  itemBorderRadius: e.borderRadiusLG,
2824
2859
  radiusSubMenuItem: e.borderRadiusSM,
2825
2860
  subMenuItemBorderRadius: e.borderRadiusSM,
2826
- colorItemText: s,
2827
- itemColor: s,
2828
- colorItemTextHover: s,
2829
- itemHoverColor: s,
2861
+ colorItemText: c,
2862
+ itemColor: c,
2863
+ colorItemTextHover: c,
2864
+ itemHoverColor: c,
2830
2865
  colorItemTextHoverHorizontal: r,
2831
2866
  horizontalItemHoverColor: r,
2832
- colorGroupTitle: d,
2833
- groupTitleColor: d,
2867
+ colorGroupTitle: u,
2868
+ groupTitleColor: u,
2834
2869
  colorItemTextSelected: r,
2835
2870
  itemSelectedColor: r,
2871
+ subMenuItemSelectedColor: r,
2836
2872
  colorItemTextSelectedHorizontal: r,
2837
2873
  horizontalItemSelectedColor: r,
2838
- colorItemBg: u,
2839
- itemBg: u,
2840
- colorItemBgHover: C,
2841
- itemHoverBg: C,
2874
+ colorItemBg: d,
2875
+ itemBg: d,
2876
+ colorItemBgHover: h,
2877
+ itemHoverBg: h,
2842
2878
  colorItemBgActive: m,
2843
2879
  itemActiveBg: v,
2844
- colorSubItemBg: p,
2845
- subMenuItemBg: p,
2880
+ colorSubItemBg: f,
2881
+ subMenuItemBg: f,
2846
2882
  colorItemBgSelected: v,
2847
2883
  itemSelectedBg: v,
2848
2884
  colorItemBgSelectedHorizontal: "transparent",
2849
2885
  horizontalItemSelectedBg: "transparent",
2850
2886
  colorActiveBarWidth: 0,
2851
- activeBarWidth: z,
2852
- colorActiveBarHeight: g,
2853
- activeBarHeight: g,
2854
- colorActiveBarBorderSize: f,
2855
- activeBarBorderWidth: B,
2887
+ activeBarWidth: B,
2888
+ colorActiveBarHeight: p,
2889
+ activeBarHeight: p,
2890
+ colorActiveBarBorderSize: g,
2891
+ activeBarBorderWidth: z,
2856
2892
  // Disabled
2857
2893
  colorItemTextDisabled: i,
2858
2894
  itemDisabledColor: i,
2859
2895
  // 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,
2896
+ colorDangerItemText: a,
2897
+ dangerItemColor: a,
2898
+ colorDangerItemTextHover: a,
2899
+ dangerItemHoverColor: a,
2900
+ colorDangerItemTextSelected: a,
2901
+ dangerItemSelectedColor: a,
2902
+ colorDangerItemBgActive: s,
2903
+ dangerItemActiveBg: s,
2904
+ colorDangerItemBgSelected: s,
2905
+ dangerItemSelectedBg: s,
2906
+ itemMarginInline: N,
2871
2907
  horizontalItemBorderRadius: 0,
2872
2908
  horizontalItemHoverBg: "transparent",
2873
- itemHeight: b,
2874
- groupTitleLineHeight: w,
2875
- collapsedWidth: b * 2,
2876
- popupBg: x,
2877
- itemMarginBlock: y,
2909
+ itemHeight: C,
2910
+ groupTitleLineHeight: b,
2911
+ collapsedWidth: C * 2,
2912
+ popupBg: S,
2913
+ itemMarginBlock: $,
2878
2914
  itemPaddingInline: O,
2879
- horizontalLineHeight: `${b * 1.15}px`,
2880
- iconSize: j,
2881
- iconMarginInlineEnd: T - j,
2882
- collapsedIconSize: _,
2883
- groupTitleFontSize: j,
2915
+ horizontalLineHeight: `${C * 1.15}px`,
2916
+ iconSize: H,
2917
+ iconMarginInlineEnd: R - H,
2918
+ collapsedIconSize: M,
2919
+ groupTitleFontSize: H,
2884
2920
  // Disabled
2885
- darkItemDisabledColor: new et(h).setAlpha(0.25).toRgbString(),
2921
+ darkItemDisabledColor: new it(I).setA(0.25).toRgbString(),
2886
2922
  // Dark
2887
- darkItemColor: $,
2888
- darkDangerItemColor: l,
2923
+ darkItemColor: y,
2924
+ darkDangerItemColor: a,
2889
2925
  darkItemBg: "#001529",
2890
2926
  darkPopupBg: "#001529",
2891
2927
  darkSubMenuItemBg: "#000c17",
2892
- darkItemSelectedColor: h,
2928
+ darkItemSelectedColor: I,
2893
2929
  darkItemSelectedBg: r,
2894
- darkDangerItemSelectedBg: l,
2930
+ darkDangerItemSelectedBg: a,
2895
2931
  darkItemHoverBg: "transparent",
2896
- darkGroupTitleColor: $,
2897
- darkItemHoverColor: h,
2898
- darkDangerItemHoverColor: E,
2899
- darkDangerItemSelectedColor: h,
2900
- darkDangerItemActiveBg: l,
2932
+ darkGroupTitleColor: y,
2933
+ darkItemHoverColor: I,
2934
+ darkDangerItemHoverColor: w,
2935
+ darkDangerItemSelectedColor: I,
2936
+ darkDangerItemActiveBg: a,
2901
2937
  // internal
2902
- itemWidth: z ? `calc(100% + ${B}px)` : `calc(100% - ${I * 2}px)`
2938
+ itemWidth: B ? `calc(100% + ${z}px)` : `calc(100% - ${N * 2}px)`
2903
2939
  };
2904
- }, Ln = function(e) {
2940
+ }, Zn = function(e) {
2905
2941
  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) => {
2942
+ return ce("Menu", (r) => {
2907
2943
  const {
2908
- colorBgElevated: l,
2944
+ colorBgElevated: a,
2909
2945
  controlHeightLG: i,
2910
- fontSize: c,
2911
- darkItemColor: s,
2912
- darkDangerItemColor: d,
2913
- darkItemBg: u,
2914
- darkSubMenuItemBg: p,
2946
+ fontSize: s,
2947
+ darkItemColor: c,
2948
+ darkDangerItemColor: u,
2949
+ darkItemBg: d,
2950
+ darkSubMenuItemBg: f,
2915
2951
  darkItemSelectedColor: m,
2916
- darkItemSelectedBg: f,
2917
- darkDangerItemSelectedBg: g,
2952
+ darkItemSelectedBg: g,
2953
+ darkDangerItemSelectedBg: p,
2918
2954
  darkItemHoverBg: v,
2919
- darkGroupTitleColor: C,
2920
- darkItemHoverColor: b,
2921
- darkItemDisabledColor: w,
2922
- darkDangerItemHoverColor: x,
2923
- darkDangerItemSelectedColor: y,
2955
+ darkGroupTitleColor: h,
2956
+ darkItemHoverColor: C,
2957
+ darkItemDisabledColor: b,
2958
+ darkDangerItemHoverColor: S,
2959
+ darkDangerItemSelectedColor: $,
2924
2960
  darkDangerItemActiveBg: O,
2925
- popupBg: j,
2926
- darkPopupBg: T
2927
- } = r, _ = r.calc(c).div(7).mul(5).equal(), h = ae(r, {
2928
- menuArrowSize: _,
2961
+ popupBg: H,
2962
+ darkPopupBg: R
2963
+ } = r, M = r.calc(s).div(7).mul(5).equal(), I = se(r, {
2964
+ menuArrowSize: M,
2929
2965
  menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
2930
- menuArrowOffset: r.calc(_).mul(0.25).equal(),
2931
- menuSubMenuBg: l,
2966
+ menuArrowOffset: r.calc(M).mul(0.25).equal(),
2967
+ menuSubMenuBg: a,
2932
2968
  calc: r.calc,
2933
- popupBg: j
2934
- }), E = ae(h, {
2935
- itemColor: s,
2936
- itemHoverColor: b,
2937
- groupTitleColor: C,
2969
+ popupBg: H
2970
+ }), w = se(I, {
2971
+ itemColor: c,
2972
+ itemHoverColor: C,
2973
+ groupTitleColor: h,
2938
2974
  itemSelectedColor: m,
2939
- itemBg: u,
2940
- popupBg: T,
2941
- subMenuItemBg: p,
2975
+ subMenuItemSelectedColor: m,
2976
+ itemBg: d,
2977
+ popupBg: R,
2978
+ subMenuItemBg: f,
2942
2979
  itemActiveBg: "transparent",
2943
- itemSelectedBg: f,
2980
+ itemSelectedBg: g,
2944
2981
  activeBarHeight: 0,
2945
2982
  activeBarBorderWidth: 0,
2946
2983
  itemHoverBg: v,
2947
2984
  // Disabled
2948
- itemDisabledColor: w,
2985
+ itemDisabledColor: b,
2949
2986
  // Danger
2950
- dangerItemColor: d,
2951
- dangerItemHoverColor: x,
2952
- dangerItemSelectedColor: y,
2987
+ dangerItemColor: u,
2988
+ dangerItemHoverColor: S,
2989
+ dangerItemSelectedColor: $,
2953
2990
  dangerItemActiveBg: O,
2954
- dangerItemSelectedBg: g,
2955
- menuSubMenuBg: p,
2991
+ dangerItemSelectedBg: p,
2992
+ menuSubMenuBg: f,
2956
2993
  // Horizontal
2957
2994
  horizontalItemSelectedColor: m,
2958
- horizontalItemSelectedBg: f
2995
+ horizontalItemSelectedBg: g
2959
2996
  });
2960
2997
  return [
2961
2998
  // Basic
2962
- Hn(h),
2999
+ Un(I),
2963
3000
  // Horizontal
2964
- Rn(h),
3001
+ qn(I),
2965
3002
  // Hard code for some light style
2966
3003
  // Vertical
2967
- Dn(h),
3004
+ Yn(I),
2968
3005
  // Hard code for some light style
2969
3006
  // Theme
2970
- st(h, "light"),
2971
- st(E, "dark"),
3007
+ pt(I, "light"),
3008
+ pt(w, "dark"),
2972
3009
  // RTL
2973
- Mn(h),
3010
+ Gn(I),
2974
3011
  // Motion
2975
- Po(h),
2976
- ye(h, "slide-up"),
2977
- ye(h, "slide-down"),
2978
- Pe(h, "zoom-big")
3012
+ Ao(I),
3013
+ xe(I, "slide-up"),
3014
+ xe(I, "slide-down"),
3015
+ je(I, "zoom-big")
2979
3016
  ];
2980
- }, An, {
3017
+ }, Kn, {
2981
3018
  deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
2982
3019
  // Dropdown will handle menu style self. We do not need to handle this.
2983
3020
  injectStyle: o,
@@ -2985,172 +3022,172 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
2985
3022
  groupTitleLineHeight: !0
2986
3023
  }
2987
3024
  })(e, t);
2988
- }, Rt = (e) => {
3025
+ }, Lt = (e) => {
2989
3026
  var t;
2990
3027
  const {
2991
3028
  popupClassName: o,
2992
3029
  icon: n,
2993
3030
  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;
3031
+ theme: a
3032
+ } = e, i = l.useContext(Ne), {
3033
+ prefixCls: s,
3034
+ inlineCollapsed: c,
3035
+ theme: u
3036
+ } = i, d = wo();
3037
+ let f;
3001
3038
  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`
3039
+ f = c && !d.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
3040
+ className: `${s}-inline-collapsed-noicon`
3041
+ }, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
3042
+ className: `${s}-title-content`
3006
3043
  }, r);
3007
3044
  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`
3045
+ const p = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
3046
+ f = /* @__PURE__ */ l.createElement(l.Fragment, null, de(n, {
3047
+ className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : "", `${s}-item-icon`)
3048
+ }), p ? r : /* @__PURE__ */ l.createElement("span", {
3049
+ className: `${s}-title-content`
3013
3050
  }, r));
3014
3051
  }
3015
- const m = a.useMemo(() => Object.assign(Object.assign({}, i), {
3052
+ const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
3016
3053
  firstLevel: !1
3017
- }), [i]), [f] = Ve("Menu");
3018
- return /* @__PURE__ */ a.createElement(Se.Provider, {
3054
+ }), [i]), [g] = Ge("Menu");
3055
+ return /* @__PURE__ */ l.createElement(Ne.Provider, {
3019
3056
  value: m
3020
- }, /* @__PURE__ */ a.createElement(po, Object.assign({}, ve(e, ["icon"]), {
3021
- title: p,
3022
- popupClassName: M(c, o, `${c}-${l || d}`),
3057
+ }, /* @__PURE__ */ l.createElement(xo, Object.assign({}, be(e, ["icon"]), {
3058
+ title: f,
3059
+ popupClassName: _(s, o, `${s}-${a || u}`),
3023
3060
  popupStyle: Object.assign({
3024
- zIndex: f
3061
+ zIndex: g
3025
3062
  }, e.popupStyle)
3026
3063
  })));
3027
3064
  };
3028
- var kn = function(e, t) {
3065
+ var Qn = function(e, t) {
3029
3066
  var o = {};
3030
3067
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
3031
3068
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3032
3069
  t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
3033
3070
  return o;
3034
3071
  };
3035
- function _e(e) {
3072
+ function Ae(e) {
3036
3073
  return e === null || e === !1;
3037
3074
  }
3038
- const Vn = {
3039
- item: _t,
3040
- submenu: Rt,
3041
- divider: Tt
3042
- }, Wn = /* @__PURE__ */ De((e, t) => {
3075
+ const Jn = {
3076
+ item: At,
3077
+ submenu: Lt,
3078
+ divider: Ht
3079
+ }, er = /* @__PURE__ */ ke((e, t) => {
3043
3080
  var o;
3044
- const n = a.useContext(Oe), r = n || {}, {
3045
- getPrefixCls: l,
3081
+ const n = l.useContext(Ee), r = n || {}, {
3082
+ getPrefixCls: a,
3046
3083
  getPopupContainer: i,
3047
- direction: c,
3048
- menu: s
3049
- } = a.useContext(J), d = l(), {
3050
- prefixCls: u,
3051
- className: p,
3084
+ direction: s,
3085
+ menu: c
3086
+ } = l.useContext(ne), u = a(), {
3087
+ prefixCls: d,
3088
+ className: f,
3052
3089
  style: m,
3053
- theme: f = "light",
3054
- expandIcon: g,
3090
+ theme: g = "light",
3091
+ expandIcon: p,
3055
3092
  _internalDisableMenuItemTitleTooltip: v,
3056
- inlineCollapsed: C,
3057
- siderCollapsed: b,
3058
- rootClassName: w,
3059
- mode: x,
3060
- selectable: y,
3093
+ inlineCollapsed: h,
3094
+ siderCollapsed: C,
3095
+ rootClassName: b,
3096
+ mode: S,
3097
+ selectable: $,
3061
3098
  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"]);
3099
+ overflowedIndicatorPopupClassName: H
3100
+ } = e, R = Qn(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), M = be(R, ["collapsedWidth"]);
3064
3101
  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");
3102
+ const D = ve("Menu");
3103
+ 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
3104
  }
3068
3105
  (o = r.validator) === null || o === void 0 || o.call(r, {
3069
- mode: x
3106
+ mode: S
3070
3107
  });
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 = {
3108
+ const I = wt(function() {
3109
+ var D;
3110
+ O == null || O.apply(void 0, arguments), (D = r.onClick) === null || D === void 0 || D.call(r);
3111
+ }), w = r.mode || S, B = $ ?? r.selectable, z = h ?? C, N = {
3075
3112
  horizontal: {
3076
- motionName: `${d}-slide-up`
3113
+ motionName: `${u}-slide-up`
3077
3114
  },
3078
- inline: ao(d),
3115
+ inline: bo(u),
3079
3116
  other: {
3080
- motionName: `${d}-zoom-big`
3117
+ motionName: `${u}-zoom-big`
3081
3118
  }
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))
3119
+ }, y = a("menu", d || r.prefixCls), P = ze(y), [A, j, L] = Zn(y, P, !n), F = _(`${y}-${g}`, c == null ? void 0 : c.className, f), V = l.useMemo(() => {
3120
+ var D, W;
3121
+ if (typeof p == "function" || Ae(p))
3122
+ return p || null;
3123
+ if (typeof r.expandIcon == "function" || Ae(r.expandIcon))
3087
3124
  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)
3125
+ if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Ae(c == null ? void 0 : c.expandIcon))
3126
+ return (c == null ? void 0 : c.expandIcon) || null;
3127
+ const q = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
3128
+ return de(q, {
3129
+ className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (W = q.props) === null || W === void 0 ? void 0 : W.className : void 0)
3093
3130
  });
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,
3131
+ }, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]), k = l.useMemo(() => ({
3132
+ prefixCls: y,
3133
+ inlineCollapsed: z || !1,
3134
+ direction: s,
3098
3135
  firstLevel: !0,
3099
- theme: f,
3100
- mode: E,
3136
+ theme: g,
3137
+ mode: w,
3101
3138
  disableMenuItemTitleTooltip: v
3102
- }), [$, B, c, v, f]);
3103
- return k(/* @__PURE__ */ a.createElement(Oe.Provider, {
3139
+ }), [y, z, s, v, g]);
3140
+ return A(/* @__PURE__ */ l.createElement(Ee.Provider, {
3104
3141
  value: null
3105
- }, /* @__PURE__ */ a.createElement(Se.Provider, {
3106
- value: Z
3107
- }, /* @__PURE__ */ a.createElement(go, Object.assign({
3142
+ }, /* @__PURE__ */ l.createElement(Ne.Provider, {
3143
+ value: k
3144
+ }, /* @__PURE__ */ l.createElement(So, Object.assign({
3108
3145
  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,
3146
+ overflowedIndicator: /* @__PURE__ */ l.createElement(xt, null),
3147
+ overflowedIndicatorPopupClassName: _(y, `${y}-${g}`, H),
3148
+ mode: w,
3149
+ selectable: B,
3150
+ onClick: I
3151
+ }, M, {
3152
+ inlineCollapsed: z,
3153
+ style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
3154
+ className: F,
3155
+ prefixCls: y,
3156
+ direction: s,
3157
+ defaultMotions: N,
3121
3158
  expandIcon: V,
3122
3159
  ref: t,
3123
- rootClassName: M(w, S, r.rootClassName, N, D),
3124
- _internalComponents: Vn
3160
+ rootClassName: _(b, j, r.rootClassName, L, P),
3161
+ _internalComponents: Jn
3125
3162
  })))));
3126
- }), ue = /* @__PURE__ */ De((e, t) => {
3127
- const o = Ie(null), n = a.useContext(Ye);
3128
- return ft(t, () => ({
3163
+ }), pe = /* @__PURE__ */ ke((e, t) => {
3164
+ const o = Pe(null), n = l.useContext(Je);
3165
+ return yt(t, () => ({
3129
3166
  menu: o.current,
3130
3167
  focus: (r) => {
3131
- var l;
3132
- (l = o.current) === null || l === void 0 || l.focus(r);
3168
+ var a;
3169
+ (a = o.current) === null || a === void 0 || a.focus(r);
3133
3170
  }
3134
- })), /* @__PURE__ */ a.createElement(Wn, Object.assign({
3171
+ })), /* @__PURE__ */ l.createElement(er, Object.assign({
3135
3172
  ref: o
3136
3173
  }, e, n));
3137
3174
  });
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) => {
3175
+ pe.Item = At;
3176
+ pe.SubMenu = Lt;
3177
+ pe.Divider = Ht;
3178
+ pe.ItemGroup = Oo;
3179
+ process.env.NODE_ENV !== "production" && (pe.displayName = "Menu");
3180
+ const tr = (e) => {
3144
3181
  const {
3145
3182
  componentCls: t,
3146
3183
  menuCls: o,
3147
3184
  colorError: n,
3148
3185
  colorTextLightSolid: r
3149
- } = e, l = `${o}-item`;
3186
+ } = e, a = `${o}-item`;
3150
3187
  return {
3151
3188
  [`${t}, ${t}-menu-submenu`]: {
3152
- [`${o} ${l}`]: {
3153
- [`&${l}-danger:not(${l}-disabled)`]: {
3189
+ [`${o} ${a}`]: {
3190
+ [`&${a}-danger:not(${a}-disabled)`]: {
3154
3191
  color: n,
3155
3192
  "&:hover": {
3156
3193
  color: r,
@@ -3160,22 +3197,22 @@ const Xn = (e) => {
3160
3197
  }
3161
3198
  }
3162
3199
  };
3163
- }, Fn = (e) => {
3200
+ }, or = (e) => {
3164
3201
  const {
3165
3202
  componentCls: t,
3166
3203
  menuCls: o,
3167
3204
  zIndexPopup: n,
3168
3205
  dropdownArrowDistance: r,
3169
- sizePopupArrow: l,
3206
+ sizePopupArrow: a,
3170
3207
  antCls: i,
3171
- iconCls: c,
3172
- motionDurationMid: s,
3173
- paddingBlock: d,
3174
- fontSize: u,
3175
- dropdownEdgeChildPadding: p,
3208
+ iconCls: s,
3209
+ motionDurationMid: c,
3210
+ paddingBlock: u,
3211
+ fontSize: d,
3212
+ dropdownEdgeChildPadding: f,
3176
3213
  colorTextDisabled: m,
3177
- fontSizeIcon: f,
3178
- controlPaddingHorizontal: g,
3214
+ fontSizeIcon: g,
3215
+ controlPaddingHorizontal: p,
3179
3216
  colorBgElevated: v
3180
3217
  } = e;
3181
3218
  return [
@@ -3192,7 +3229,7 @@ const Xn = (e) => {
3192
3229
  // A placeholder out of dropdown visible range to avoid close when user moving
3193
3230
  "&::before": {
3194
3231
  position: "absolute",
3195
- insetBlock: e.calc(l).div(2).sub(r).equal(),
3232
+ insetBlock: e.calc(a).div(2).sub(r).equal(),
3196
3233
  // insetInlineStart: -7, // FIXME: Seems not work for hidden element
3197
3234
  zIndex: -9999,
3198
3235
  opacity: 1e-4,
@@ -3204,21 +3241,21 @@ const Xn = (e) => {
3204
3241
  overflowY: "auto"
3205
3242
  },
3206
3243
  [`&-trigger${i}-btn`]: {
3207
- [`& > ${c}-down, & > ${i}-btn-icon > ${c}-down`]: {
3208
- fontSize: f
3244
+ [`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]: {
3245
+ fontSize: g
3209
3246
  }
3210
3247
  },
3211
3248
  [`${t}-wrap`]: {
3212
3249
  position: "relative",
3213
- [`${i}-btn > ${c}-down`]: {
3214
- fontSize: f
3250
+ [`${i}-btn > ${s}-down`]: {
3251
+ fontSize: g
3215
3252
  },
3216
- [`${c}-down::before`]: {
3217
- transition: `transform ${s}`
3253
+ [`${s}-down::before`]: {
3254
+ transition: `transform ${c}`
3218
3255
  }
3219
3256
  },
3220
3257
  [`${t}-wrap-open`]: {
3221
- [`${c}-down::before`]: {
3258
+ [`${s}-down::before`]: {
3222
3259
  transform: "rotate(180deg)"
3223
3260
  }
3224
3261
  },
@@ -3236,7 +3273,7 @@ const Xn = (e) => {
3236
3273
  &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
3237
3274
  &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
3238
3275
  &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]: {
3239
- animationName: $o
3276
+ animationName: Po
3240
3277
  },
3241
3278
  [`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
3242
3279
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
@@ -3244,25 +3281,28 @@ const Xn = (e) => {
3244
3281
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
3245
3282
  &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
3246
3283
  &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]: {
3247
- animationName: ho
3284
+ animationName: Eo
3248
3285
  },
3249
3286
  [`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
3250
3287
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
3251
3288
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]: {
3252
- animationName: bo
3289
+ animationName: No
3253
3290
  },
3254
3291
  [`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
3255
3292
  &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
3256
3293
  &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]: {
3257
- animationName: vo
3294
+ animationName: Io
3258
3295
  }
3259
3296
  }
3260
3297
  },
3261
3298
  // =============================================================
3262
3299
  // == Arrow style ==
3263
3300
  // =============================================================
3264
- qe(e, v, {
3265
- arrowPlacement: {}
3301
+ Ze(e, v, {
3302
+ arrowPlacement: {
3303
+ top: !0,
3304
+ bottom: !0
3305
+ }
3266
3306
  }),
3267
3307
  {
3268
3308
  // =============================================================
@@ -3283,24 +3323,24 @@ const Xn = (e) => {
3283
3323
  margin: 0
3284
3324
  }
3285
3325
  },
3286
- [`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, ge(e)), {
3326
+ [`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, fe(e)), {
3287
3327
  [o]: Object.assign(Object.assign({
3288
- padding: p,
3328
+ padding: f,
3289
3329
  listStyleType: "none",
3290
3330
  backgroundColor: v,
3291
3331
  backgroundClip: "padding-box",
3292
3332
  borderRadius: e.borderRadiusLG,
3293
3333
  outline: "none",
3294
3334
  boxShadow: e.boxShadowSecondary
3295
- }, tt(e)), {
3335
+ }, at(e)), {
3296
3336
  "&:empty": {
3297
3337
  padding: 0,
3298
3338
  boxShadow: "none"
3299
3339
  },
3300
3340
  [`${o}-item-group-title`]: {
3301
- padding: `${P(d)} ${P(g)}`,
3341
+ padding: `${E(u)} ${E(p)}`,
3302
3342
  color: e.colorTextDescription,
3303
- transition: `all ${s}`
3343
+ transition: `all ${c}`
3304
3344
  },
3305
3345
  // ======================= Item Content =======================
3306
3346
  [`${o}-item`]: {
@@ -3309,7 +3349,7 @@ const Xn = (e) => {
3309
3349
  alignItems: "center"
3310
3350
  },
3311
3351
  [`${o}-item-icon`]: {
3312
- minWidth: u,
3352
+ minWidth: d,
3313
3353
  marginInlineEnd: e.marginXS,
3314
3354
  fontSize: e.fontSizeSM
3315
3355
  },
@@ -3322,7 +3362,7 @@ const Xn = (e) => {
3322
3362
  },
3323
3363
  "> a": {
3324
3364
  color: "inherit",
3325
- transition: `all ${s}`,
3365
+ transition: `all ${c}`,
3326
3366
  "&:hover": {
3327
3367
  color: "inherit"
3328
3368
  },
@@ -3343,18 +3383,18 @@ const Xn = (e) => {
3343
3383
  [`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
3344
3384
  display: "flex",
3345
3385
  margin: 0,
3346
- padding: `${P(d)} ${P(g)}`,
3386
+ padding: `${E(u)} ${E(p)}`,
3347
3387
  color: e.colorText,
3348
3388
  fontWeight: "normal",
3349
- fontSize: u,
3389
+ fontSize: d,
3350
3390
  lineHeight: e.lineHeight,
3351
3391
  cursor: "pointer",
3352
- transition: `all ${s}`,
3392
+ transition: `all ${c}`,
3353
3393
  borderRadius: e.borderRadiusSM,
3354
3394
  "&:hover, &-active": {
3355
3395
  backgroundColor: e.controlItemBgHover
3356
3396
  }
3357
- }, tt(e)), {
3397
+ }, at(e)), {
3358
3398
  "&-selected": {
3359
3399
  color: e.colorPrimary,
3360
3400
  backgroundColor: e.controlItemBgActive,
@@ -3377,7 +3417,7 @@ const Xn = (e) => {
3377
3417
  "&-divider": {
3378
3418
  height: 1,
3379
3419
  // By design
3380
- margin: `${P(e.marginXXS)} 0`,
3420
+ margin: `${E(e.marginXXS)} 0`,
3381
3421
  overflow: "hidden",
3382
3422
  lineHeight: 0,
3383
3423
  backgroundColor: e.colorSplit
@@ -3388,18 +3428,18 @@ const Xn = (e) => {
3388
3428
  [`${t}-menu-submenu-arrow-icon`]: {
3389
3429
  marginInlineEnd: "0 !important",
3390
3430
  color: e.colorTextDescription,
3391
- fontSize: f,
3431
+ fontSize: g,
3392
3432
  fontStyle: "normal"
3393
3433
  }
3394
3434
  }
3395
3435
  }),
3396
3436
  [`${o}-item-group-list`]: {
3397
- margin: `0 ${P(e.marginXS)}`,
3437
+ margin: `0 ${E(e.marginXS)}`,
3398
3438
  padding: 0,
3399
3439
  listStyle: "none"
3400
3440
  },
3401
3441
  [`${o}-submenu-title`]: {
3402
- paddingInlineEnd: e.calc(g).add(e.fontSizeSM).equal()
3442
+ paddingInlineEnd: e.calc(p).add(e.fontSizeSM).equal()
3403
3443
  },
3404
3444
  [`${o}-submenu-vertical`]: {
3405
3445
  position: "relative"
@@ -3419,343 +3459,338 @@ const Xn = (e) => {
3419
3459
  })
3420
3460
  },
3421
3461
  // 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")]
3462
+ [xe(e, "slide-up"), xe(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), je(e, "zoom-big")]
3423
3463
  ];
3424
- }, qn = (e) => Object.assign(Object.assign({
3464
+ }, nr = (e) => Object.assign(Object.assign({
3425
3465
  zIndexPopup: e.zIndexPopupBase + 50,
3426
3466
  paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
3427
- }, Ne({
3467
+ }, Te({
3428
3468
  contentRadius: e.borderRadiusLG,
3429
3469
  limitVerticalRadius: !0
3430
- })), Fe(e)), Gn = le("Dropdown", (e) => {
3470
+ })), Ke(e)), rr = ce("Dropdown", (e) => {
3431
3471
  const {
3432
3472
  marginXXS: t,
3433
3473
  sizePopupArrow: o,
3434
3474
  paddingXXS: n,
3435
3475
  componentCls: r
3436
- } = e, l = ae(e, {
3476
+ } = e, a = se(e, {
3437
3477
  menuCls: `${r}-menu`,
3438
3478
  dropdownArrowDistance: e.calc(o).div(2).add(t).equal(),
3439
3479
  dropdownEdgeChildPadding: n
3440
3480
  });
3441
- return [Fn(l), Xn(l)];
3442
- }, qn, {
3481
+ return [or(a), tr(a)];
3482
+ }, nr, {
3443
3483
  resetStyle: !1
3444
- }), be = (e) => {
3484
+ }), he = (e) => {
3445
3485
  var t;
3446
3486
  const {
3447
3487
  menu: o,
3448
3488
  arrow: n,
3449
3489
  prefixCls: r,
3450
- children: l,
3490
+ children: a,
3451
3491
  trigger: i,
3452
- disabled: c,
3453
- dropdownRender: s,
3454
- getPopupContainer: d,
3455
- overlayClassName: u,
3456
- rootClassName: p,
3492
+ disabled: s,
3493
+ dropdownRender: c,
3494
+ getPopupContainer: u,
3495
+ overlayClassName: d,
3496
+ rootClassName: f,
3457
3497
  overlayStyle: m,
3458
- open: f,
3459
- onOpenChange: g,
3498
+ open: g,
3499
+ onOpenChange: p,
3460
3500
  // Deprecated
3461
3501
  visible: v,
3462
- onVisibleChange: C,
3463
- mouseEnterDelay: b = 0.15,
3464
- mouseLeaveDelay: w = 0.1,
3465
- autoAdjustOverflow: x = !0,
3466
- placement: y = "",
3502
+ onVisibleChange: h,
3503
+ mouseEnterDelay: C = 0.15,
3504
+ mouseLeaveDelay: b = 0.1,
3505
+ autoAdjustOverflow: S = !0,
3506
+ placement: $ = "",
3467
3507
  overlay: O,
3468
- transitionName: j
3508
+ transitionName: H
3469
3509
  } = 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]);
3510
+ getPopupContainer: R,
3511
+ getPrefixCls: M,
3512
+ direction: I,
3513
+ dropdown: w
3514
+ } = l.useContext(ne), B = ve("Dropdown");
3515
+ process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((X) => {
3516
+ let [oe, ee] = X;
3517
+ B.deprecated(!(oe in e), oe, ee);
3518
+ }), B.deprecated(!("overlay" in e), "overlay", "menu"));
3519
+ const z = l.useMemo(() => {
3520
+ const X = M();
3521
+ return H !== void 0 ? H : $.includes("top") ? `${X}-slide-down` : `${X}-slide-up`;
3522
+ }, [M, $, H]), N = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : I === "rtl" ? "bottomRight" : "bottomLeft", [$, I]);
3483
3523
  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.`);
3524
+ if ($.includes("Center")) {
3525
+ const X = $.slice(0, $.indexOf("Center"));
3526
+ process.env.NODE_ENV !== "production" && B(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${X}' instead.`);
3487
3527
  }
3488
- [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((L) => {
3489
- let [oe, ee] = L;
3490
- z.deprecated(!(oe in e), oe, ee);
3528
+ [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((X) => {
3529
+ let [oe, ee] = X;
3530
+ B.deprecated(!(oe in e), oe, ee);
3491
3531
  });
3492
3532
  }
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"
3533
+ const y = M("dropdown", r), P = ze(y), [A, j, L] = rr(y, P), [, F] = We(), V = l.Children.only(jn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), k = de(V, {
3534
+ className: _(`${y}-trigger`, {
3535
+ [`${y}-rtl`]: I === "rtl"
3496
3536
  }, 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, {
3537
+ disabled: (t = V.props.disabled) !== null && t !== void 0 ? t : s
3538
+ }), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [q, G] = Fe(!1, {
3539
+ value: g ?? v
3540
+ }), Z = wt((X) => {
3541
+ p == null || p(X, {
3502
3542
  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({
3543
+ }), h == null || h(X), G(X);
3544
+ }), Y = _(d, f, j, L, P, w == null ? void 0 : w.className, {
3545
+ [`${y}-rtl`]: I === "rtl"
3546
+ }), x = Pt({
3507
3547
  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, {
3548
+ autoAdjustOverflow: S,
3549
+ offset: F.marginXXS,
3550
+ arrowWidth: n ? F.sizePopupArrow : 0,
3551
+ borderRadius: F.borderRadius
3552
+ }), T = l.useCallback(() => {
3553
+ o != null && o.selectable && (o != null && o.multiple) || (p == null || p(!1, {
3514
3554
  source: "menu"
3515
- }), Y(!1));
3555
+ }), G(!1));
3516
3556
  }, [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`
3557
+ let X;
3558
+ return o != null && o.items ? X = /* @__PURE__ */ l.createElement(pe, Object.assign({}, o)) : typeof O == "function" ? X = O() : X = O, c && (X = c(X)), X = l.Children.only(typeof X == "string" ? /* @__PURE__ */ l.createElement("span", null, X) : X), /* @__PURE__ */ l.createElement(Fn, {
3559
+ prefixCls: `${y}-menu`,
3560
+ rootClassName: _(L, P),
3561
+ expandIcon: /* @__PURE__ */ l.createElement("span", {
3562
+ className: `${y}-menu-submenu-arrow`
3563
+ }, I === "rtl" ? /* @__PURE__ */ l.createElement(Ie, {
3564
+ className: `${y}-menu-submenu-arrow-icon`
3565
+ }) : /* @__PURE__ */ l.createElement(Se, {
3566
+ className: `${y}-menu-submenu-arrow-icon`
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, Re] = 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: C,
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: y,
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: Re
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: C,
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
+ }), y = 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-${y}`]: y,
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: C,
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: C,
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: y,
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 ? [] : C,
3746
+ onOpenChange: $,
3747
+ getPopupContainer: H || t,
3748
+ mouseEnterDelay: B,
3749
+ mouseLeaveDelay: z,
3750
+ overlayClassName: N,
3751
+ overlayStyle: y,
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
  };