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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/Box-DQNjUj2G.js +102 -0
  2. package/dist/Button-D2XVkO19.js +676 -0
  3. package/dist/ButtonBase-D-XlpvIZ.js +954 -0
  4. package/dist/CircularProgress-BOkP0juA.js +247 -0
  5. package/dist/{EllipsisOutlined-CtmB5yDB.js → EllipsisOutlined-DfTPoz8U.js} +667 -672
  6. package/dist/PurePanel-ByiFMw5U.js +2213 -0
  7. package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-Imy-56Lv.js} +161 -158
  8. package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-6aB5cQyF.js} +1540 -1505
  9. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  10. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  11. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +455 -344
  14. package/dist/components/ErrorModal/ErrorModal.js +5 -6
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +1003 -892
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  20. package/dist/components/Login/Login.js +4485 -3820
  21. package/dist/components/Login/Login.stories.js +1586 -1546
  22. package/dist/components/SideMenu/SideMenu.js +1 -1
  23. package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
  24. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  26. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  27. package/dist/components/index.js +1 -1
  28. package/dist/context-D_FWkiDE.js +7383 -0
  29. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +3439 -0
  30. package/dist/index-CR8gh-dS.js +1689 -0
  31. package/dist/index-CyFfYou3.js +411 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  34. package/dist/portal-utils/formatters.js +68 -0
  35. package/dist/useSlot-kDVPuVrn.js +431 -0
  36. package/package.json +38 -38
  37. package/dist/Box-CmKt1PwF.js +0 -68
  38. package/dist/Button-BT8r3F_d.js +0 -355
  39. package/dist/ButtonBase-By486Sca.js +0 -966
  40. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  41. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  42. package/dist/createSvgIcon-B8ya7kb4.js +0 -250
  43. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  44. package/dist/index-1vDmwq0E.js +0 -19089
  45. package/dist/index-DsP9yT3s.js +0 -1551
  46. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  47. package/dist/useId-DbfH3PlN.js +0 -5397
@@ -1,212 +1,224 @@
1
- import { jsx as Te, jsxs as gt } from "react/jsx-runtime";
2
- import { LoadingAnimation as ra } from "../LoadingAnimation/LoadingAnimation.js";
3
- import { cn as ia } from "../../portal-utils/cn.js";
1
+ import { jsx as ze, jsxs as Et } from "react/jsx-runtime";
2
+ import { LoadingAnimation as ga } from "../LoadingAnimation/LoadingAnimation.js";
3
+ import { cn as pa } from "../../portal-utils/cn.js";
4
4
  import * as l from "react";
5
- import oa, { createContext as la, useState as J, useRef as Z, useEffect as fe, useMemo as Rt } from "react";
6
- import { I as ca, b as M, w as pt, d as re, e as sa, f as Qe, h as ee, c as B, i as ve, j as da, _ as ht, k as ua, l as Be, n as va, p as fa, q as $t, r as ba, s as Ze, t as ma, g as Ot, m as It, u as d, v as Je, x as ke, y as zt, a as De, z as ga, A as Lt, B as je, o as pa } from "../../useId-DbfH3PlN.js";
7
- import { R as ha, S as $a } from "../../Skeleton-XFbjx7LJ.js";
8
- import { E as ya, M as Sa, D as _a, R as Ue, i as xa, a as yt, b as Ca } from "../../EllipsisOutlined-CtmB5yDB.js";
9
- import { a as be } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
10
- import '../../assets/KpiCard.css';var wa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ea = function(t, n) {
11
- return /* @__PURE__ */ l.createElement(ca, be({}, t, {
5
+ import ha, { createContext as $a, useState as Z, useRef as te, useEffect as me, useMemo as Gt } from "react";
6
+ import { a as Me, V as ya, d as Sa, I as _a, _ as M, w as Pt, e as se, f as xa, h as nt, i as ne, c as A, j as Se, k as Ca, l as Tt, n as wa, p as He, q as Ea, r as Pa, s as Nt, t as Ta, v as rt, x as Na, g as Ht, m as Wt, u, y as it, z as ot, A as Vt, B as tt, D as Oa, E as Kt, F as We, o as Ra } from "../../context-D_FWkiDE.js";
7
+ import { R as Ia, S as za } from "../../Skeleton-Imy-56Lv.js";
8
+ import { E as Ma, M as La, D as Da, R as et, i as Ba, a as Ot, b as ja } from "../../EllipsisOutlined-DfTPoz8U.js";
9
+ import { _ as pe } from "../../objectWithoutPropertiesLoose-BTau6TOn.js";
10
+ import '../../assets/KpiCard.css';const Aa = function(e, t) {
11
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
12
+ var a, r;
13
+ const {
14
+ variant: o,
15
+ [e]: c
16
+ } = l.useContext(Me), i = l.useContext(ya), d = c == null ? void 0 : c.variant;
17
+ let s;
18
+ typeof t < "u" ? s = t : n === !1 ? s = "borderless" : s = (r = (a = i ?? d) !== null && a !== void 0 ? a : o) !== null && r !== void 0 ? r : "outlined";
19
+ const m = Sa.includes(s);
20
+ return [s, m];
21
+ };
22
+ var Ga = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ha = function(t, n) {
23
+ return /* @__PURE__ */ l.createElement(_a, pe({}, t, {
12
24
  ref: n,
13
- icon: wa
25
+ icon: Ga
14
26
  }));
15
- }, Mt = /* @__PURE__ */ l.forwardRef(Ea);
16
- process.env.NODE_ENV !== "production" && (Mt.displayName = "PlusOutlined");
17
- const Ae = /* @__PURE__ */ la(null);
18
- var Ta = function(t) {
19
- var n = t.activeTabOffset, a = t.horizontal, r = t.rtl, i = t.indicator, c = i === void 0 ? {} : i, o = c.size, s = c.align, u = s === void 0 ? "center" : s, b = J(), g = M(b, 2), h = g[0], T = g[1], I = Z(), w = oa.useCallback(function(p) {
20
- return typeof o == "function" ? o(p) : typeof o == "number" ? o : p;
21
- }, [o]);
22
- function P() {
23
- pt.cancel(I.current);
27
+ }, Xt = /* @__PURE__ */ l.forwardRef(Ha);
28
+ process.env.NODE_ENV !== "production" && (Xt.displayName = "PlusOutlined");
29
+ const Ve = /* @__PURE__ */ $a(null);
30
+ var Wa = function(t) {
31
+ var n = t.activeTabOffset, a = t.horizontal, r = t.rtl, o = t.indicator, c = o === void 0 ? {} : o, i = c.size, d = c.align, s = d === void 0 ? "center" : d, m = Z(), p = M(m, 2), y = p[0], E = p[1], B = te(), C = ha.useCallback(function(h) {
32
+ return typeof i == "function" ? i(h) : typeof i == "number" ? i : h;
33
+ }, [i]);
34
+ function N() {
35
+ Pt.cancel(B.current);
24
36
  }
25
- return fe(function() {
26
- var p = {};
37
+ return me(function() {
38
+ var h = {};
27
39
  if (n)
28
40
  if (a) {
29
- p.width = w(n.width);
30
- var f = r ? "right" : "left";
31
- u === "start" && (p[f] = n[f]), u === "center" && (p[f] = n[f] + n.width / 2, p.transform = r ? "translateX(50%)" : "translateX(-50%)"), u === "end" && (p[f] = n[f] + n.width, p.transform = "translateX(-100%)");
41
+ h.width = C(n.width);
42
+ var $ = r ? "right" : "left";
43
+ s === "start" && (h[$] = n[$]), s === "center" && (h[$] = n[$] + n.width / 2, h.transform = r ? "translateX(50%)" : "translateX(-50%)"), s === "end" && (h[$] = n[$] + n.width, h.transform = "translateX(-100%)");
32
44
  } else
33
- p.height = w(n.height), u === "start" && (p.top = n.top), u === "center" && (p.top = n.top + n.height / 2, p.transform = "translateY(-50%)"), u === "end" && (p.top = n.top + n.height, p.transform = "translateY(-100%)");
34
- return P(), I.current = pt(function() {
35
- T(p);
36
- }), P;
37
- }, [n, a, r, u, w]), {
38
- style: h
45
+ h.height = C(n.height), s === "start" && (h.top = n.top), s === "center" && (h.top = n.top + n.height / 2, h.transform = "translateY(-50%)"), s === "end" && (h.top = n.top + n.height, h.transform = "translateY(-100%)");
46
+ return N(), B.current = Pt(function() {
47
+ E(h);
48
+ }), N;
49
+ }, [n, a, r, s, C]), {
50
+ style: y
39
51
  };
40
- }, St = {
52
+ }, Rt = {
41
53
  width: 0,
42
54
  height: 0,
43
55
  left: 0,
44
56
  top: 0
45
57
  };
46
- function Pa(e, t, n) {
47
- return Rt(function() {
48
- for (var a, r = /* @__PURE__ */ new Map(), i = t.get((a = e[0]) === null || a === void 0 ? void 0 : a.key) || St, c = i.left + i.width, o = 0; o < e.length; o += 1) {
49
- var s = e[o].key, u = t.get(s);
50
- if (!u) {
51
- var b;
52
- u = t.get((b = e[o - 1]) === null || b === void 0 ? void 0 : b.key) || St;
58
+ function Va(e, t, n) {
59
+ return Gt(function() {
60
+ for (var a, r = /* @__PURE__ */ new Map(), o = t.get((a = e[0]) === null || a === void 0 ? void 0 : a.key) || Rt, c = o.left + o.width, i = 0; i < e.length; i += 1) {
61
+ var d = e[i].key, s = t.get(d);
62
+ if (!s) {
63
+ var m;
64
+ s = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || Rt;
53
65
  }
54
- var g = r.get(s) || re({}, u);
55
- g.right = c - g.left - g.width, r.set(s, g);
66
+ var p = r.get(d) || se({}, s);
67
+ p.right = c - p.left - p.width, r.set(d, p);
56
68
  }
57
69
  return r;
58
70
  }, [e.map(function(a) {
59
71
  return a.key;
60
72
  }).join("_"), t, n]);
61
73
  }
62
- function _t(e, t) {
63
- var n = l.useRef(e), a = l.useState({}), r = M(a, 2), i = r[1];
64
- function c(o) {
65
- var s = typeof o == "function" ? o(n.current) : o;
66
- s !== n.current && t(s, n.current), n.current = s, i({});
74
+ function It(e, t) {
75
+ var n = l.useRef(e), a = l.useState({}), r = M(a, 2), o = r[1];
76
+ function c(i) {
77
+ var d = typeof i == "function" ? i(n.current) : i;
78
+ d !== n.current && t(d, n.current), n.current = d, o({});
67
79
  }
68
80
  return [n.current, c];
69
81
  }
70
- var Na = 0.1, xt = 0.01, Me = 20, Ct = Math.pow(0.995, Me);
71
- function Ra(e, t) {
72
- var n = J(), a = M(n, 2), r = a[0], i = a[1], c = J(0), o = M(c, 2), s = o[0], u = o[1], b = J(0), g = M(b, 2), h = g[0], T = g[1], I = J(), w = M(I, 2), P = w[0], p = w[1], f = Z();
73
- function N(x) {
74
- var R = x.touches[0], _ = R.screenX, m = R.screenY;
75
- i({
76
- x: _,
77
- y: m
78
- }), window.clearInterval(f.current);
82
+ var Ka = 0.1, zt = 0.01, Ge = 20, Mt = Math.pow(0.995, Ge);
83
+ function Xa(e, t) {
84
+ var n = Z(), a = M(n, 2), r = a[0], o = a[1], c = Z(0), i = M(c, 2), d = i[0], s = i[1], m = Z(0), p = M(m, 2), y = p[0], E = p[1], B = Z(), C = M(B, 2), N = C[0], h = C[1], $ = te();
85
+ function P(x) {
86
+ var T = x.touches[0], g = T.screenX, S = T.screenY;
87
+ o({
88
+ x: g,
89
+ y: S
90
+ }), window.clearInterval($.current);
79
91
  }
80
- function z(x) {
92
+ function G(x) {
81
93
  if (r) {
82
- var R = x.touches[0], _ = R.screenX, m = R.screenY;
83
- i({
84
- x: _,
85
- y: m
94
+ var T = x.touches[0], g = T.screenX, S = T.screenY;
95
+ o({
96
+ x: g,
97
+ y: S
86
98
  });
87
- var $ = _ - r.x, y = m - r.y;
88
- t($, y);
89
- var V = Date.now();
90
- u(V), T(V - s), p({
91
- x: $,
92
- y
99
+ var f = g - r.x, _ = S - r.y;
100
+ t(f, _);
101
+ var k = Date.now();
102
+ s(k), E(k - d), h({
103
+ x: f,
104
+ y: _
93
105
  });
94
106
  }
95
107
  }
96
- function G() {
97
- if (r && (i(null), p(null), P)) {
98
- var x = P.x / h, R = P.y / h, _ = Math.abs(x), m = Math.abs(R);
99
- if (Math.max(_, m) < Na) return;
100
- var $ = x, y = R;
101
- f.current = window.setInterval(function() {
102
- if (Math.abs($) < xt && Math.abs(y) < xt) {
103
- window.clearInterval(f.current);
108
+ function K() {
109
+ if (r && (o(null), h(null), N)) {
110
+ var x = N.x / y, T = N.y / y, g = Math.abs(x), S = Math.abs(T);
111
+ if (Math.max(g, S) < Ka) return;
112
+ var f = x, _ = T;
113
+ $.current = window.setInterval(function() {
114
+ if (Math.abs(f) < zt && Math.abs(_) < zt) {
115
+ window.clearInterval($.current);
104
116
  return;
105
117
  }
106
- $ *= Ct, y *= Ct, t($ * Me, y * Me);
107
- }, Me);
118
+ f *= Mt, _ *= Mt, t(f * Ge, _ * Ge);
119
+ }, Ge);
108
120
  }
109
121
  }
110
- var W = Z();
111
- function D(x) {
112
- var R = x.deltaX, _ = x.deltaY, m = 0, $ = Math.abs(R), y = Math.abs(_);
113
- $ === y ? m = W.current === "x" ? R : _ : $ > y ? (m = R, W.current = "x") : (m = _, W.current = "y"), t(-m, -m) && x.preventDefault();
122
+ var X = te();
123
+ function q(x) {
124
+ var T = x.deltaX, g = x.deltaY, S = 0, f = Math.abs(T), _ = Math.abs(g);
125
+ f === _ ? S = X.current === "x" ? T : g : f > _ ? (S = T, X.current = "x") : (S = g, X.current = "y"), t(-S, -S) && x.preventDefault();
114
126
  }
115
- var S = Z(null);
116
- S.current = {
117
- onTouchStart: N,
118
- onTouchMove: z,
119
- onTouchEnd: G,
120
- onWheel: D
127
+ var O = te(null);
128
+ O.current = {
129
+ onTouchStart: P,
130
+ onTouchMove: G,
131
+ onTouchEnd: K,
132
+ onWheel: q
121
133
  }, l.useEffect(function() {
122
- function x($) {
123
- S.current.onTouchStart($);
134
+ function x(f) {
135
+ O.current.onTouchStart(f);
124
136
  }
125
- function R($) {
126
- S.current.onTouchMove($);
137
+ function T(f) {
138
+ O.current.onTouchMove(f);
127
139
  }
128
- function _($) {
129
- S.current.onTouchEnd($);
140
+ function g(f) {
141
+ O.current.onTouchEnd(f);
130
142
  }
131
- function m($) {
132
- S.current.onWheel($);
143
+ function S(f) {
144
+ O.current.onWheel(f);
133
145
  }
134
- return document.addEventListener("touchmove", R, {
146
+ return document.addEventListener("touchmove", T, {
135
147
  passive: !1
136
- }), document.addEventListener("touchend", _, {
148
+ }), document.addEventListener("touchend", g, {
137
149
  passive: !0
138
150
  }), e.current.addEventListener("touchstart", x, {
139
151
  passive: !0
140
- }), e.current.addEventListener("wheel", m, {
152
+ }), e.current.addEventListener("wheel", S, {
141
153
  passive: !1
142
154
  }), function() {
143
- document.removeEventListener("touchmove", R), document.removeEventListener("touchend", _);
155
+ document.removeEventListener("touchmove", T), document.removeEventListener("touchend", g);
144
156
  };
145
157
  }, []);
146
158
  }
147
- function Bt(e) {
148
- var t = J(0), n = M(t, 2), a = n[0], r = n[1], i = Z(0), c = Z();
149
- return c.current = e, sa(function() {
150
- var o;
151
- (o = c.current) === null || o === void 0 || o.call(c);
159
+ function qt(e) {
160
+ var t = Z(0), n = M(t, 2), a = n[0], r = n[1], o = te(0), c = te();
161
+ return c.current = e, xa(function() {
162
+ var i;
163
+ (i = c.current) === null || i === void 0 || i.call(c);
152
164
  }, [a]), function() {
153
- i.current === a && (i.current += 1, r(i.current));
165
+ o.current === a && (o.current += 1, r(o.current));
154
166
  };
155
167
  }
156
- function Oa(e) {
157
- var t = Z([]), n = J({}), a = M(n, 2), r = a[1], i = Z(typeof e == "function" ? e() : e), c = Bt(function() {
158
- var s = i.current;
159
- t.current.forEach(function(u) {
160
- s = u(s);
161
- }), t.current = [], i.current = s, r({});
168
+ function qa(e) {
169
+ var t = te([]), n = Z({}), a = M(n, 2), r = a[1], o = te(typeof e == "function" ? e() : e), c = qt(function() {
170
+ var d = o.current;
171
+ t.current.forEach(function(s) {
172
+ d = s(d);
173
+ }), t.current = [], o.current = d, r({});
162
174
  });
163
- function o(s) {
164
- t.current.push(s), c();
175
+ function i(d) {
176
+ t.current.push(d), c();
165
177
  }
166
- return [i.current, o];
178
+ return [o.current, i];
167
179
  }
168
- var wt = {
180
+ var Lt = {
169
181
  width: 0,
170
182
  height: 0,
171
183
  left: 0,
172
184
  top: 0,
173
185
  right: 0
174
186
  };
175
- function Ia(e, t, n, a, r, i, c) {
176
- var o = c.tabs, s = c.tabPosition, u = c.rtl, b, g, h;
177
- return ["top", "bottom"].includes(s) ? (b = "width", g = u ? "right" : "left", h = Math.abs(n)) : (b = "height", g = "top", h = -n), Rt(function() {
178
- if (!o.length)
187
+ function Fa(e, t, n, a, r, o, c) {
188
+ var i = c.tabs, d = c.tabPosition, s = c.rtl, m, p, y;
189
+ return ["top", "bottom"].includes(d) ? (m = "width", p = s ? "right" : "left", y = Math.abs(n)) : (m = "height", p = "top", y = -n), Gt(function() {
190
+ if (!i.length)
179
191
  return [0, 0];
180
- for (var T = o.length, I = T, w = 0; w < T; w += 1) {
181
- var P = e.get(o[w].key) || wt;
182
- if (Math.floor(P[g] + P[b]) > Math.floor(h + t)) {
183
- I = w - 1;
192
+ for (var E = i.length, B = E, C = 0; C < E; C += 1) {
193
+ var N = e.get(i[C].key) || Lt;
194
+ if (Math.floor(N[p] + N[m]) > Math.floor(y + t)) {
195
+ B = C - 1;
184
196
  break;
185
197
  }
186
198
  }
187
- for (var p = 0, f = T - 1; f >= 0; f -= 1) {
188
- var N = e.get(o[f].key) || wt;
189
- if (N[g] < h) {
190
- p = f + 1;
199
+ for (var h = 0, $ = E - 1; $ >= 0; $ -= 1) {
200
+ var P = e.get(i[$].key) || Lt;
201
+ if (P[p] < y) {
202
+ h = $ + 1;
191
203
  break;
192
204
  }
193
205
  }
194
- return p >= I ? [0, 0] : [p, I];
195
- }, [e, t, a, r, i, h, s, o.map(function(T) {
196
- return T.key;
197
- }).join("_"), u]);
206
+ return h >= B ? [0, 0] : [h, B];
207
+ }, [e, t, a, r, o, y, d, i.map(function(E) {
208
+ return E.key;
209
+ }).join("_"), s]);
198
210
  }
199
- function Et(e) {
211
+ function Dt(e) {
200
212
  var t;
201
213
  return e instanceof Map ? (t = {}, e.forEach(function(n, a) {
202
214
  t[a] = n;
203
215
  })) : t = e, JSON.stringify(t);
204
216
  }
205
- var za = "TABS_DQ";
206
- function Dt(e) {
207
- return String(e).replace(/"/g, za);
217
+ var Ua = "TABS_DQ";
218
+ function Ft(e) {
219
+ return String(e).replace(/"/g, Ua);
208
220
  }
209
- function jt(e, t, n, a) {
221
+ function lt(e, t, n, a) {
210
222
  return (
211
223
  // Only editable tabs can be removed
212
224
  !(!n || // Tabs cannot be removed when disabled
@@ -215,455 +227,542 @@ function jt(e, t, n, a) {
215
227
  e === void 0 && (t === !1 || t === null))
216
228
  );
217
229
  }
218
- var At = /* @__PURE__ */ l.forwardRef(function(e, t) {
219
- var n = e.prefixCls, a = e.editable, r = e.locale, i = e.style;
230
+ var Ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
231
+ var n = e.prefixCls, a = e.editable, r = e.locale, o = e.style;
220
232
  return !a || a.showAdd === !1 ? null : /* @__PURE__ */ l.createElement("button", {
221
233
  ref: t,
222
234
  type: "button",
223
235
  className: "".concat(n, "-nav-add"),
224
- style: i,
236
+ style: o,
225
237
  "aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
226
- onClick: function(o) {
238
+ onClick: function(i) {
227
239
  a.onEdit("add", {
228
- event: o
240
+ event: i
229
241
  });
230
242
  }
231
243
  }, a.addIcon || "+");
232
- }), Ye = /* @__PURE__ */ l.forwardRef(function(e, t) {
244
+ }), at = /* @__PURE__ */ l.forwardRef(function(e, t) {
233
245
  var n = e.position, a = e.prefixCls, r = e.extra;
234
246
  if (!r)
235
247
  return null;
236
- var i, c = {};
237
- return Qe(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? c = r : c.right = r, n === "right" && (i = c.right), n === "left" && (i = c.left), i ? /* @__PURE__ */ l.createElement("div", {
248
+ var o, c = {};
249
+ return nt(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? c = r : c.right = r, n === "right" && (o = c.right), n === "left" && (o = c.left), o ? /* @__PURE__ */ l.createElement("div", {
238
250
  className: "".concat(a, "-extra-content"),
239
251
  ref: t
240
- }, i) : null;
252
+ }, o) : null;
241
253
  });
242
- process.env.NODE_ENV !== "production" && (Ye.displayName = "ExtraContent");
243
- var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
244
- var n = e.prefixCls, a = e.id, r = e.tabs, i = e.locale, c = e.mobile, o = e.more, s = o === void 0 ? {} : o, u = e.style, b = e.className, g = e.editable, h = e.tabBarGutter, T = e.rtl, I = e.removeAriaLabel, w = e.onTabClick, P = e.getPopupContainer, p = e.popupClassName, f = J(!1), N = M(f, 2), z = N[0], G = N[1], W = J(null), D = M(W, 2), S = D[0], x = D[1], R = s.icon, _ = R === void 0 ? "More" : R, m = "".concat(a, "-more-popup"), $ = "".concat(n, "-dropdown"), y = S !== null ? "".concat(m, "-").concat(S) : null, V = i == null ? void 0 : i.dropdownAriaLabel;
245
- function se(E, L) {
246
- E.preventDefault(), E.stopPropagation(), g.onEdit("remove", {
247
- key: L,
248
- event: E
254
+ process.env.NODE_ENV !== "production" && (at.displayName = "ExtraContent");
255
+ var Ya = /* @__PURE__ */ l.forwardRef(function(e, t) {
256
+ var n = e.prefixCls, a = e.id, r = e.tabs, o = e.locale, c = e.mobile, i = e.more, d = i === void 0 ? {} : i, s = e.style, m = e.className, p = e.editable, y = e.tabBarGutter, E = e.rtl, B = e.removeAriaLabel, C = e.onTabClick, N = e.getPopupContainer, h = e.popupClassName, $ = Z(!1), P = M($, 2), G = P[0], K = P[1], X = Z(null), q = M(X, 2), O = q[0], x = q[1], T = d.icon, g = T === void 0 ? "More" : T, S = "".concat(a, "-more-popup"), f = "".concat(n, "-dropdown"), _ = O !== null ? "".concat(S, "-").concat(O) : null, k = o == null ? void 0 : o.dropdownAriaLabel;
257
+ function H(w, j) {
258
+ w.preventDefault(), w.stopPropagation(), p.onEdit("remove", {
259
+ key: j,
260
+ event: w
249
261
  });
250
262
  }
251
- var v = /* @__PURE__ */ l.createElement(ya, {
252
- onClick: function(L) {
253
- var j = L.key, U = L.domEvent;
254
- w(j, U), G(!1);
263
+ var v = /* @__PURE__ */ l.createElement(Ma, {
264
+ onClick: function(j) {
265
+ var Y = j.key, Q = j.domEvent;
266
+ C(Y, Q), K(!1);
255
267
  },
256
- prefixCls: "".concat($, "-menu"),
257
- id: m,
268
+ prefixCls: "".concat(f, "-menu"),
269
+ id: S,
258
270
  tabIndex: -1,
259
271
  role: "listbox",
260
- "aria-activedescendant": y,
261
- selectedKeys: [S],
262
- "aria-label": V !== void 0 ? V : "expanded dropdown"
263
- }, r.map(function(E) {
264
- var L = E.closable, j = E.disabled, U = E.closeIcon, Y = E.key, te = E.label, k = jt(L, U, g, j);
265
- return /* @__PURE__ */ l.createElement(Sa, {
266
- key: Y,
267
- id: "".concat(m, "-").concat(Y),
272
+ "aria-activedescendant": _,
273
+ selectedKeys: [O],
274
+ "aria-label": k !== void 0 ? k : "expanded dropdown"
275
+ }, r.map(function(w) {
276
+ var j = w.closable, Y = w.disabled, Q = w.closeIcon, F = w.key, re = w.label, ae = lt(j, Q, p, Y);
277
+ return /* @__PURE__ */ l.createElement(La, {
278
+ key: F,
279
+ id: "".concat(S, "-").concat(F),
268
280
  role: "option",
269
- "aria-controls": a && "".concat(a, "-panel-").concat(Y),
270
- disabled: j
271
- }, /* @__PURE__ */ l.createElement("span", null, te), k && /* @__PURE__ */ l.createElement("button", {
281
+ "aria-controls": a && "".concat(a, "-panel-").concat(F),
282
+ disabled: Y
283
+ }, /* @__PURE__ */ l.createElement("span", null, re), ae && /* @__PURE__ */ l.createElement("button", {
272
284
  type: "button",
273
- "aria-label": I || "remove",
285
+ "aria-label": B || "remove",
274
286
  tabIndex: 0,
275
- className: "".concat($, "-menu-item-remove"),
276
- onClick: function(de) {
277
- de.stopPropagation(), se(de, Y);
287
+ className: "".concat(f, "-menu-item-remove"),
288
+ onClick: function(fe) {
289
+ fe.stopPropagation(), H(fe, F);
278
290
  }
279
- }, U || g.removeIcon || "×"));
291
+ }, Q || p.removeIcon || "×"));
280
292
  }));
281
- function F(E) {
282
- for (var L = r.filter(function(k) {
283
- return !k.disabled;
284
- }), j = L.findIndex(function(k) {
285
- return k.key === S;
286
- }) || 0, U = L.length, Y = 0; Y < U; Y += 1) {
287
- j = (j + E + U) % U;
288
- var te = L[j];
289
- if (!te.disabled) {
290
- x(te.key);
293
+ function J(w) {
294
+ for (var j = r.filter(function(ae) {
295
+ return !ae.disabled;
296
+ }), Y = j.findIndex(function(ae) {
297
+ return ae.key === O;
298
+ }) || 0, Q = j.length, F = 0; F < Q; F += 1) {
299
+ Y = (Y + w + Q) % Q;
300
+ var re = j[Y];
301
+ if (!re.disabled) {
302
+ x(re.key);
291
303
  return;
292
304
  }
293
305
  }
294
306
  }
295
- function ie(E) {
296
- var L = E.which;
297
- if (!z) {
298
- [ve.DOWN, ve.SPACE, ve.ENTER].includes(L) && (G(!0), E.preventDefault());
307
+ function R(w) {
308
+ var j = w.which;
309
+ if (!G) {
310
+ [Se.DOWN, Se.SPACE, Se.ENTER].includes(j) && (K(!0), w.preventDefault());
299
311
  return;
300
312
  }
301
- switch (L) {
302
- case ve.UP:
303
- F(-1), E.preventDefault();
313
+ switch (j) {
314
+ case Se.UP:
315
+ J(-1), w.preventDefault();
304
316
  break;
305
- case ve.DOWN:
306
- F(1), E.preventDefault();
317
+ case Se.DOWN:
318
+ J(1), w.preventDefault();
307
319
  break;
308
- case ve.ESC:
309
- G(!1);
320
+ case Se.ESC:
321
+ K(!1);
310
322
  break;
311
- case ve.SPACE:
312
- case ve.ENTER:
313
- S !== null && w(S, E);
323
+ case Se.SPACE:
324
+ case Se.ENTER:
325
+ O !== null && C(O, w);
314
326
  break;
315
327
  }
316
328
  }
317
- fe(function() {
318
- var E = document.getElementById(y);
319
- E && E.scrollIntoView && E.scrollIntoView(!1);
320
- }, [S]), fe(function() {
321
- z || x(null);
322
- }, [z]);
323
- var K = ee({}, T ? "marginRight" : "marginLeft", h);
324
- r.length || (K.visibility = "hidden", K.order = 1);
325
- var Q = B(ee({}, "".concat($, "-rtl"), T)), oe = c ? null : /* @__PURE__ */ l.createElement(_a, be({
326
- prefixCls: $,
329
+ me(function() {
330
+ var w = document.getElementById(_);
331
+ w && w.scrollIntoView && w.scrollIntoView(!1);
332
+ }, [O]), me(function() {
333
+ G || x(null);
334
+ }, [G]);
335
+ var U = ne({}, E ? "marginRight" : "marginLeft", y);
336
+ r.length || (U.visibility = "hidden", U.order = 1);
337
+ var ee = A(ne({}, "".concat(f, "-rtl"), E)), ve = c ? null : /* @__PURE__ */ l.createElement(Da, pe({
338
+ prefixCls: f,
327
339
  overlay: v,
328
- visible: r.length ? z : !1,
329
- onVisibleChange: G,
330
- overlayClassName: B(Q, p),
340
+ visible: r.length ? G : !1,
341
+ onVisibleChange: K,
342
+ overlayClassName: A(ee, h),
331
343
  mouseEnterDelay: 0.1,
332
344
  mouseLeaveDelay: 0.1,
333
- getPopupContainer: P
334
- }, s), /* @__PURE__ */ l.createElement("button", {
345
+ getPopupContainer: N
346
+ }, d), /* @__PURE__ */ l.createElement("button", {
335
347
  type: "button",
336
348
  className: "".concat(n, "-nav-more"),
337
- style: K,
338
- tabIndex: -1,
339
- "aria-hidden": "true",
349
+ style: U,
340
350
  "aria-haspopup": "listbox",
341
- "aria-controls": m,
351
+ "aria-controls": S,
342
352
  id: "".concat(a, "-more"),
343
- "aria-expanded": z,
344
- onKeyDown: ie
345
- }, _));
353
+ "aria-expanded": G,
354
+ onKeyDown: R
355
+ }, g));
346
356
  return /* @__PURE__ */ l.createElement("div", {
347
- className: B("".concat(n, "-nav-operations"), b),
348
- style: u,
357
+ className: A("".concat(n, "-nav-operations"), m),
358
+ style: s,
349
359
  ref: t
350
- }, oe, /* @__PURE__ */ l.createElement(At, {
360
+ }, ve, /* @__PURE__ */ l.createElement(Ut, {
351
361
  prefixCls: n,
352
- locale: i,
353
- editable: g
362
+ locale: o,
363
+ editable: p
354
364
  }));
355
365
  });
356
- const Ma = /* @__PURE__ */ l.memo(La, function(e, t) {
366
+ const ka = /* @__PURE__ */ l.memo(Ya, function(e, t) {
357
367
  return (
358
368
  // https://github.com/ant-design/ant-design/issues/32544
359
369
  // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
360
370
  t.tabMoving
361
371
  );
362
372
  });
363
- var Ba = function(t) {
364
- var n = t.prefixCls, a = t.id, r = t.active, i = t.tab, c = i.key, o = i.label, s = i.disabled, u = i.closeIcon, b = i.icon, g = t.closable, h = t.renderWrapper, T = t.removeAriaLabel, I = t.editable, w = t.onClick, P = t.onFocus, p = t.style, f = "".concat(n, "-tab"), N = jt(g, u, I, s);
365
- function z(S) {
366
- s || w(S);
373
+ var Qa = function(t) {
374
+ var n = t.prefixCls, a = t.id, r = t.active, o = t.focus, c = t.tab, i = c.key, d = c.label, s = c.disabled, m = c.closeIcon, p = c.icon, y = t.closable, E = t.renderWrapper, B = t.removeAriaLabel, C = t.editable, N = t.onClick, h = t.onFocus, $ = t.onBlur, P = t.onKeyDown, G = t.onMouseDown, K = t.onMouseUp, X = t.style, q = t.tabCount, O = t.currentPosition, x = "".concat(n, "-tab"), T = lt(y, m, C, s);
375
+ function g(H) {
376
+ s || N(H);
367
377
  }
368
- function G(S) {
369
- S.preventDefault(), S.stopPropagation(), I.onEdit("remove", {
370
- key: c,
371
- event: S
378
+ function S(H) {
379
+ H.preventDefault(), H.stopPropagation(), C.onEdit("remove", {
380
+ key: i,
381
+ event: H
372
382
  });
373
383
  }
374
- var W = l.useMemo(function() {
375
- return b && typeof o == "string" ? /* @__PURE__ */ l.createElement("span", null, o) : o;
376
- }, [o, b]), D = /* @__PURE__ */ l.createElement("div", {
377
- key: c,
378
- "data-node-key": Dt(c),
379
- className: B(f, ee(ee(ee({}, "".concat(f, "-with-remove"), N), "".concat(f, "-active"), r), "".concat(f, "-disabled"), s)),
380
- style: p,
381
- onClick: z
384
+ var f = l.useMemo(function() {
385
+ return p && typeof d == "string" ? /* @__PURE__ */ l.createElement("span", null, d) : d;
386
+ }, [d, p]), _ = l.useRef(null);
387
+ l.useEffect(function() {
388
+ o && _.current && _.current.focus();
389
+ }, [o]);
390
+ var k = /* @__PURE__ */ l.createElement("div", {
391
+ key: i,
392
+ "data-node-key": Ft(i),
393
+ className: A(x, ne(ne(ne(ne({}, "".concat(x, "-with-remove"), T), "".concat(x, "-active"), r), "".concat(x, "-disabled"), s), "".concat(x, "-focus"), o)),
394
+ style: X,
395
+ onClick: g
382
396
  }, /* @__PURE__ */ l.createElement("div", {
397
+ ref: _,
383
398
  role: "tab",
384
399
  "aria-selected": r,
385
- id: a && "".concat(a, "-tab-").concat(c),
386
- className: "".concat(f, "-btn"),
387
- "aria-controls": a && "".concat(a, "-panel-").concat(c),
400
+ id: a && "".concat(a, "-tab-").concat(i),
401
+ className: "".concat(x, "-btn"),
402
+ "aria-controls": a && "".concat(a, "-panel-").concat(i),
388
403
  "aria-disabled": s,
389
- tabIndex: s ? null : 0,
390
- onClick: function(x) {
391
- x.stopPropagation(), z(x);
404
+ tabIndex: s ? null : r ? 0 : -1,
405
+ onClick: function(v) {
406
+ v.stopPropagation(), g(v);
392
407
  },
393
- onKeyDown: function(x) {
394
- [ve.SPACE, ve.ENTER].includes(x.which) && (x.preventDefault(), z(x));
395
- },
396
- onFocus: P
397
- }, b && /* @__PURE__ */ l.createElement("span", {
398
- className: "".concat(f, "-icon")
399
- }, b), o && W), N && /* @__PURE__ */ l.createElement("button", {
408
+ onKeyDown: P,
409
+ onMouseDown: G,
410
+ onMouseUp: K,
411
+ onFocus: h,
412
+ onBlur: $
413
+ }, o && /* @__PURE__ */ l.createElement("div", {
414
+ "aria-live": "polite",
415
+ style: {
416
+ width: 0,
417
+ height: 0,
418
+ position: "absolute",
419
+ overflow: "hidden",
420
+ opacity: 0
421
+ }
422
+ }, "Tab ".concat(O, " of ").concat(q)), p && /* @__PURE__ */ l.createElement("span", {
423
+ className: "".concat(x, "-icon")
424
+ }, p), d && f), T && /* @__PURE__ */ l.createElement("button", {
400
425
  type: "button",
401
- "aria-label": T || "remove",
402
- tabIndex: 0,
403
- className: "".concat(f, "-remove"),
404
- onClick: function(x) {
405
- x.stopPropagation(), G(x);
426
+ role: "tab",
427
+ "aria-label": B || "remove",
428
+ tabIndex: r ? 0 : -1,
429
+ className: "".concat(x, "-remove"),
430
+ onClick: function(v) {
431
+ v.stopPropagation(), S(v);
406
432
  }
407
- }, u || I.removeIcon || "×"));
408
- return h ? h(D) : D;
409
- }, Da = function(t, n) {
410
- var a = t.offsetWidth, r = t.offsetHeight, i = t.offsetTop, c = t.offsetLeft, o = t.getBoundingClientRect(), s = o.width, u = o.height, b = o.left, g = o.top;
411
- return Math.abs(s - a) < 1 ? [s, u, b - n.left, g - n.top] : [a, r, c, i];
412
- }, Ce = function(t) {
413
- var n = t.current || {}, a = n.offsetWidth, r = a === void 0 ? 0 : a, i = n.offsetHeight, c = i === void 0 ? 0 : i;
433
+ }, m || C.removeIcon || "×"));
434
+ return E ? E(k) : k;
435
+ }, Za = function(t, n) {
436
+ var a = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, c = t.offsetLeft, i = t.getBoundingClientRect(), d = i.width, s = i.height, m = i.left, p = i.top;
437
+ return Math.abs(d - a) < 1 ? [d, s, m - n.left, p - n.top] : [a, r, c, o];
438
+ }, Oe = function(t) {
439
+ var n = t.current || {}, a = n.offsetWidth, r = a === void 0 ? 0 : a, o = n.offsetHeight, c = o === void 0 ? 0 : o;
414
440
  if (t.current) {
415
- var o = t.current.getBoundingClientRect(), s = o.width, u = o.height;
416
- if (Math.abs(s - r) < 1)
417
- return [s, u];
441
+ var i = t.current.getBoundingClientRect(), d = i.width, s = i.height;
442
+ if (Math.abs(d - r) < 1)
443
+ return [d, s];
418
444
  }
419
445
  return [r, c];
420
- }, Le = function(t, n) {
446
+ }, Ae = function(t, n) {
421
447
  return t[n ? 0 : 1];
422
- }, Tt = /* @__PURE__ */ l.forwardRef(function(e, t) {
423
- var n = e.className, a = e.style, r = e.id, i = e.animated, c = e.activeKey, o = e.rtl, s = e.extra, u = e.editable, b = e.locale, g = e.tabPosition, h = e.tabBarGutter, T = e.children, I = e.onTabClick, w = e.onTabScroll, P = e.indicator, p = l.useContext(Ae), f = p.prefixCls, N = p.tabs, z = Z(null), G = Z(null), W = Z(null), D = Z(null), S = Z(null), x = Z(null), R = Z(null), _ = g === "top" || g === "bottom", m = _t(0, function(H, C) {
424
- _ && w && w({
425
- direction: H > C ? "left" : "right"
448
+ }, Bt = /* @__PURE__ */ l.forwardRef(function(e, t) {
449
+ var n = e.className, a = e.style, r = e.id, o = e.animated, c = e.activeKey, i = e.rtl, d = e.extra, s = e.editable, m = e.locale, p = e.tabPosition, y = e.tabBarGutter, E = e.children, B = e.onTabClick, C = e.onTabScroll, N = e.indicator, h = l.useContext(Ve), $ = h.prefixCls, P = h.tabs, G = te(null), K = te(null), X = te(null), q = te(null), O = te(null), x = te(null), T = te(null), g = p === "top" || p === "bottom", S = It(0, function(I, b) {
450
+ g && C && C({
451
+ direction: I > b ? "left" : "right"
426
452
  });
427
- }), $ = M(m, 2), y = $[0], V = $[1], se = _t(0, function(H, C) {
428
- !_ && w && w({
429
- direction: H > C ? "top" : "bottom"
453
+ }), f = M(S, 2), _ = f[0], k = f[1], H = It(0, function(I, b) {
454
+ !g && C && C({
455
+ direction: I > b ? "top" : "bottom"
430
456
  });
431
- }), v = M(se, 2), F = v[0], ie = v[1], K = J([0, 0]), Q = M(K, 2), oe = Q[0], E = Q[1], L = J([0, 0]), j = M(L, 2), U = j[0], Y = j[1], te = J([0, 0]), k = M(te, 2), me = k[0], de = k[1], ne = J([0, 0]), ge = M(ne, 2), O = ge[0], le = ge[1], ye = Oa(/* @__PURE__ */ new Map()), Pe = M(ye, 2), X = Pe[0], A = Pe[1], ce = Pa(N, X, U[0]), Se = Le(oe, _), we = Le(U, _), Ge = Le(me, _), at = Le(O, _), nt = Math.floor(Se) < Math.floor(we + Ge), ue = nt ? Se - at : Se - Ge, Kt = "".concat(f, "-nav-operations-hidden"), pe = 0, _e = 0;
432
- _ && o ? (pe = 0, _e = Math.max(0, we - ue)) : (pe = Math.min(0, ue - we), _e = 0);
433
- function We(H) {
434
- return H < pe ? pe : H > _e ? _e : H;
457
+ }), v = M(H, 2), J = v[0], R = v[1], U = Z([0, 0]), ee = M(U, 2), ve = ee[0], w = ee[1], j = Z([0, 0]), Y = M(j, 2), Q = Y[0], F = Y[1], re = Z([0, 0]), ae = M(re, 2), he = ae[0], fe = ae[1], ie = Z([0, 0]), $e = M(ie, 2), z = $e[0], de = $e[1], xe = qa(/* @__PURE__ */ new Map()), Le = M(xe, 2), Xe = Le[0], qe = Le[1], W = Va(P, Xe, Q[0]), L = Ae(ve, g), oe = Ae(Q, g), Ce = Ae(he, g), dt = Ae(z, g), ut = Math.floor(L) < Math.floor(oe + Ce), be = ut ? L - dt : L - Ce, Jt = "".concat($, "-nav-operations-hidden"), ye = 0, we = 0;
458
+ g && i ? (ye = 0, we = Math.max(0, oe - be)) : (ye = Math.min(0, be - oe), we = 0);
459
+ function Fe(I) {
460
+ return I < ye ? ye : I > we ? we : I;
435
461
  }
436
- var Ve = Z(null), Xt = J(), rt = M(Xt, 2), Ne = rt[0], it = rt[1];
437
- function Ke() {
438
- it(Date.now());
462
+ var Ue = te(null), ea = Z(), vt = M(ea, 2), De = vt[0], ft = vt[1];
463
+ function Ye() {
464
+ ft(Date.now());
439
465
  }
440
- function Xe() {
441
- Ve.current && clearTimeout(Ve.current);
466
+ function ke() {
467
+ Ue.current && clearTimeout(Ue.current);
442
468
  }
443
- Ra(D, function(H, C) {
444
- function q(ae, xe) {
445
- ae(function(he) {
446
- var Ie = We(he + xe);
447
- return Ie;
469
+ Xa(q, function(I, b) {
470
+ function D(V, ue) {
471
+ V(function(le) {
472
+ var Te = Fe(le + ue);
473
+ return Te;
448
474
  });
449
475
  }
450
- return nt ? (_ ? q(V, H) : q(ie, C), Xe(), Ke(), !0) : !1;
451
- }), fe(function() {
452
- return Xe(), Ne && (Ve.current = setTimeout(function() {
453
- it(0);
454
- }, 100)), Xe;
455
- }, [Ne]);
456
- var qt = Ia(
457
- ce,
476
+ return ut ? (g ? D(k, I) : D(R, b), ke(), Ye(), !0) : !1;
477
+ }), me(function() {
478
+ return ke(), De && (Ue.current = setTimeout(function() {
479
+ ft(0);
480
+ }, 100)), ke;
481
+ }, [De]);
482
+ var ta = Fa(
483
+ W,
458
484
  // Container
459
- ue,
485
+ be,
460
486
  // Transform
461
- _ ? y : F,
487
+ g ? _ : J,
462
488
  // Tabs
463
- we,
489
+ oe,
464
490
  // Add
465
- Ge,
491
+ Ce,
466
492
  // Operation
467
- at,
468
- re(re({}, e), {}, {
469
- tabs: N
493
+ dt,
494
+ se(se({}, e), {}, {
495
+ tabs: P
470
496
  })
471
- ), ot = M(qt, 2), Ft = ot[0], Ut = ot[1], lt = da(function() {
472
- var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, C = ce.get(H) || {
497
+ ), bt = M(ta, 2), aa = bt[0], na = bt[1], mt = Ca(function() {
498
+ var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, b = W.get(I) || {
473
499
  width: 0,
474
500
  height: 0,
475
501
  left: 0,
476
502
  right: 0,
477
503
  top: 0
478
504
  };
479
- if (_) {
480
- var q = y;
481
- o ? C.right < y ? q = C.right : C.right + C.width > y + ue && (q = C.right + C.width - ue) : C.left < -y ? q = -C.left : C.left + C.width > -y + ue && (q = -(C.left + C.width - ue)), ie(0), V(We(q));
505
+ if (g) {
506
+ var D = _;
507
+ i ? b.right < _ ? D = b.right : b.right + b.width > _ + be && (D = b.right + b.width - be) : b.left < -_ ? D = -b.left : b.left + b.width > -_ + be && (D = -(b.left + b.width - be)), R(0), k(Fe(D));
482
508
  } else {
483
- var ae = F;
484
- C.top < -F ? ae = -C.top : C.top + C.height > -F + ue && (ae = -(C.top + C.height - ue)), V(0), ie(We(ae));
509
+ var V = J;
510
+ b.top < -J ? V = -b.top : b.top + b.height > -J + be && (V = -(b.top + b.height - be)), k(0), R(Fe(V));
511
+ }
512
+ }), ra = Z(), gt = M(ra, 2), Ee = gt[0], Re = gt[1], ia = Z(!1), pt = M(ia, 2), oa = pt[0], ht = pt[1], ge = P.filter(function(I) {
513
+ return !I.disabled;
514
+ }).map(function(I) {
515
+ return I.key;
516
+ }), Pe = function(b) {
517
+ var D = ge.indexOf(Ee || c), V = ge.length, ue = (D + b + V) % V, le = ge[ue];
518
+ Re(le);
519
+ }, la = function(b) {
520
+ var D = b.code, V = i && g, ue = ge[0], le = ge[ge.length - 1];
521
+ switch (D) {
522
+ // LEFT
523
+ case "ArrowLeft": {
524
+ g && Pe(V ? 1 : -1);
525
+ break;
526
+ }
527
+ // RIGHT
528
+ case "ArrowRight": {
529
+ g && Pe(V ? -1 : 1);
530
+ break;
531
+ }
532
+ // UP
533
+ case "ArrowUp": {
534
+ b.preventDefault(), g || Pe(-1);
535
+ break;
536
+ }
537
+ // DOWN
538
+ case "ArrowDown": {
539
+ b.preventDefault(), g || Pe(1);
540
+ break;
541
+ }
542
+ // HOME
543
+ case "Home": {
544
+ b.preventDefault(), Re(ue);
545
+ break;
546
+ }
547
+ // END
548
+ case "End": {
549
+ b.preventDefault(), Re(le);
550
+ break;
551
+ }
552
+ // Enter & Space
553
+ case "Enter":
554
+ case "Space": {
555
+ b.preventDefault(), B(Ee, b);
556
+ break;
557
+ }
558
+ // Backspace
559
+ case "Backspace":
560
+ case "Delete": {
561
+ var Te = ge.indexOf(Ee), ce = P.find(function(Ne) {
562
+ return Ne.key === Ee;
563
+ }), Je = lt(ce == null ? void 0 : ce.closable, ce == null ? void 0 : ce.closeIcon, s, ce == null ? void 0 : ce.disabled);
564
+ Je && (b.preventDefault(), b.stopPropagation(), s.onEdit("remove", {
565
+ key: Ee,
566
+ event: b
567
+ }), Te === ge.length - 1 ? Pe(-1) : Pe(1));
568
+ break;
569
+ }
485
570
  }
486
- }), Re = {};
487
- g === "top" || g === "bottom" ? Re[o ? "marginRight" : "marginLeft"] = h : Re.marginTop = h;
488
- var ct = N.map(function(H, C) {
489
- var q = H.key;
490
- return /* @__PURE__ */ l.createElement(Ba, {
571
+ }, Be = {};
572
+ g ? Be[i ? "marginRight" : "marginLeft"] = y : Be.marginTop = y;
573
+ var $t = P.map(function(I, b) {
574
+ var D = I.key;
575
+ return /* @__PURE__ */ l.createElement(Qa, {
491
576
  id: r,
492
- prefixCls: f,
493
- key: q,
494
- tab: H,
495
- style: C === 0 ? void 0 : Re,
496
- closable: H.closable,
497
- editable: u,
498
- active: q === c,
499
- renderWrapper: T,
500
- removeAriaLabel: b == null ? void 0 : b.removeAriaLabel,
501
- onClick: function(xe) {
502
- I(q, xe);
577
+ prefixCls: $,
578
+ key: D,
579
+ tab: I,
580
+ style: b === 0 ? void 0 : Be,
581
+ closable: I.closable,
582
+ editable: s,
583
+ active: D === c,
584
+ focus: D === Ee,
585
+ renderWrapper: E,
586
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
587
+ tabCount: ge.length,
588
+ currentPosition: b + 1,
589
+ onClick: function(ue) {
590
+ B(D, ue);
503
591
  },
592
+ onKeyDown: la,
504
593
  onFocus: function() {
505
- lt(q), Ke(), D.current && (o || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
594
+ oa || Re(D), mt(D), Ye(), q.current && (i || (q.current.scrollLeft = 0), q.current.scrollTop = 0);
595
+ },
596
+ onBlur: function() {
597
+ Re(void 0);
598
+ },
599
+ onMouseDown: function() {
600
+ ht(!0);
601
+ },
602
+ onMouseUp: function() {
603
+ ht(!1);
506
604
  }
507
605
  });
508
- }), st = function() {
509
- return A(function() {
510
- var C, q = /* @__PURE__ */ new Map(), ae = (C = S.current) === null || C === void 0 ? void 0 : C.getBoundingClientRect();
511
- return N.forEach(function(xe) {
512
- var he, Ie = xe.key, mt = (he = S.current) === null || he === void 0 ? void 0 : he.querySelector('[data-node-key="'.concat(Dt(Ie), '"]'));
513
- if (mt) {
514
- var kt = Da(mt, ae), ze = M(kt, 4), ea = ze[0], ta = ze[1], aa = ze[2], na = ze[3];
515
- q.set(Ie, {
516
- width: ea,
517
- height: ta,
518
- left: aa,
519
- top: na
606
+ }), yt = function() {
607
+ return qe(function() {
608
+ var b, D = /* @__PURE__ */ new Map(), V = (b = O.current) === null || b === void 0 ? void 0 : b.getBoundingClientRect();
609
+ return P.forEach(function(ue) {
610
+ var le, Te = ue.key, ce = (le = O.current) === null || le === void 0 ? void 0 : le.querySelector('[data-node-key="'.concat(Ft(Te), '"]'));
611
+ if (ce) {
612
+ var Je = Za(ce, V), Ne = M(Je, 4), va = Ne[0], fa = Ne[1], ba = Ne[2], ma = Ne[3];
613
+ D.set(Te, {
614
+ width: va,
615
+ height: fa,
616
+ left: ba,
617
+ top: ma
520
618
  });
521
619
  }
522
- }), q;
620
+ }), D;
523
621
  });
524
622
  };
525
- fe(function() {
526
- st();
527
- }, [N.map(function(H) {
528
- return H.key;
623
+ me(function() {
624
+ yt();
625
+ }, [P.map(function(I) {
626
+ return I.key;
529
627
  }).join("_")]);
530
- var Oe = Bt(function() {
531
- var H = Ce(z), C = Ce(G), q = Ce(W);
532
- E([H[0] - C[0] - q[0], H[1] - C[1] - q[1]]);
533
- var ae = Ce(R);
534
- de(ae);
535
- var xe = Ce(x);
536
- le(xe);
537
- var he = Ce(S);
538
- Y([he[0] - ae[0], he[1] - ae[1]]), st();
539
- }), Yt = N.slice(0, Ft), Qt = N.slice(Ut + 1), dt = [].concat(ht(Yt), ht(Qt)), ut = ce.get(c), Zt = Ta({
540
- activeTabOffset: ut,
541
- horizontal: _,
542
- indicator: P,
543
- rtl: o
544
- }), Jt = Zt.style;
545
- fe(function() {
546
- lt();
547
- }, [c, pe, _e, Et(ut), Et(ce), _]), fe(function() {
548
- Oe();
549
- }, [o]);
550
- var vt = !!dt.length, Ee = "".concat(f, "-nav-wrap"), qe, Fe, ft, bt;
551
- return _ ? o ? (Fe = y > 0, qe = y !== _e) : (qe = y < 0, Fe = y !== pe) : (ft = F < 0, bt = F !== pe), /* @__PURE__ */ l.createElement(Ue, {
552
- onResize: Oe
628
+ var je = qt(function() {
629
+ var I = Oe(G), b = Oe(K), D = Oe(X);
630
+ w([I[0] - b[0] - D[0], I[1] - b[1] - D[1]]);
631
+ var V = Oe(T);
632
+ fe(V);
633
+ var ue = Oe(x);
634
+ de(ue);
635
+ var le = Oe(O);
636
+ F([le[0] - V[0], le[1] - V[1]]), yt();
637
+ }), ca = P.slice(0, aa), sa = P.slice(na + 1), St = [].concat(Tt(ca), Tt(sa)), _t = W.get(c), da = Wa({
638
+ activeTabOffset: _t,
639
+ horizontal: g,
640
+ indicator: N,
641
+ rtl: i
642
+ }), ua = da.style;
643
+ me(function() {
644
+ mt();
645
+ }, [c, ye, we, Dt(_t), Dt(W), g]), me(function() {
646
+ je();
647
+ }, [i]);
648
+ var xt = !!St.length, Ie = "".concat($, "-nav-wrap"), Qe, Ze, Ct, wt;
649
+ return g ? i ? (Ze = _ > 0, Qe = _ !== we) : (Qe = _ < 0, Ze = _ !== ye) : (Ct = J < 0, wt = J !== ye), /* @__PURE__ */ l.createElement(et, {
650
+ onResize: je
553
651
  }, /* @__PURE__ */ l.createElement("div", {
554
- ref: ua(t, z),
652
+ ref: wa(t, G),
555
653
  role: "tablist",
556
- className: B("".concat(f, "-nav"), n),
654
+ "aria-orientation": g ? "horizontal" : "vertical",
655
+ className: A("".concat($, "-nav"), n),
557
656
  style: a,
558
657
  onKeyDown: function() {
559
- Ke();
658
+ Ye();
560
659
  }
561
- }, /* @__PURE__ */ l.createElement(Ye, {
562
- ref: G,
660
+ }, /* @__PURE__ */ l.createElement(at, {
661
+ ref: K,
563
662
  position: "left",
564
- extra: s,
565
- prefixCls: f
566
- }), /* @__PURE__ */ l.createElement(Ue, {
567
- onResize: Oe
663
+ extra: d,
664
+ prefixCls: $
665
+ }), /* @__PURE__ */ l.createElement(et, {
666
+ onResize: je
568
667
  }, /* @__PURE__ */ l.createElement("div", {
569
- className: B(Ee, ee(ee(ee(ee({}, "".concat(Ee, "-ping-left"), qe), "".concat(Ee, "-ping-right"), Fe), "".concat(Ee, "-ping-top"), ft), "".concat(Ee, "-ping-bottom"), bt)),
570
- ref: D
571
- }, /* @__PURE__ */ l.createElement(Ue, {
572
- onResize: Oe
668
+ className: A(Ie, ne(ne(ne(ne({}, "".concat(Ie, "-ping-left"), Qe), "".concat(Ie, "-ping-right"), Ze), "".concat(Ie, "-ping-top"), Ct), "".concat(Ie, "-ping-bottom"), wt)),
669
+ ref: q
670
+ }, /* @__PURE__ */ l.createElement(et, {
671
+ onResize: je
573
672
  }, /* @__PURE__ */ l.createElement("div", {
574
- ref: S,
575
- className: "".concat(f, "-nav-list"),
673
+ ref: O,
674
+ className: "".concat($, "-nav-list"),
576
675
  style: {
577
- transform: "translate(".concat(y, "px, ").concat(F, "px)"),
578
- transition: Ne ? "none" : void 0
676
+ transform: "translate(".concat(_, "px, ").concat(J, "px)"),
677
+ transition: De ? "none" : void 0
579
678
  }
580
- }, ct, /* @__PURE__ */ l.createElement(At, {
581
- ref: R,
582
- prefixCls: f,
583
- locale: b,
584
- editable: u,
585
- style: re(re({}, ct.length === 0 ? void 0 : Re), {}, {
586
- visibility: vt ? "hidden" : null
679
+ }, $t, /* @__PURE__ */ l.createElement(Ut, {
680
+ ref: T,
681
+ prefixCls: $,
682
+ locale: m,
683
+ editable: s,
684
+ style: se(se({}, $t.length === 0 ? void 0 : Be), {}, {
685
+ visibility: xt ? "hidden" : null
587
686
  })
588
687
  }), /* @__PURE__ */ l.createElement("div", {
589
- className: B("".concat(f, "-ink-bar"), ee({}, "".concat(f, "-ink-bar-animated"), i.inkBar)),
590
- style: Jt
591
- }))))), /* @__PURE__ */ l.createElement(Ma, be({}, e, {
592
- removeAriaLabel: b == null ? void 0 : b.removeAriaLabel,
688
+ className: A("".concat($, "-ink-bar"), ne({}, "".concat($, "-ink-bar-animated"), o.inkBar)),
689
+ style: ua
690
+ }))))), /* @__PURE__ */ l.createElement(ka, pe({}, e, {
691
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
593
692
  ref: x,
594
- prefixCls: f,
595
- tabs: dt,
596
- className: !vt && Kt,
597
- tabMoving: !!Ne
598
- })), /* @__PURE__ */ l.createElement(Ye, {
599
- ref: W,
693
+ prefixCls: $,
694
+ tabs: St,
695
+ className: !xt && Jt,
696
+ tabMoving: !!De
697
+ })), /* @__PURE__ */ l.createElement(at, {
698
+ ref: X,
600
699
  position: "right",
601
- extra: s,
602
- prefixCls: f
700
+ extra: d,
701
+ prefixCls: $
603
702
  })));
604
- }), et = /* @__PURE__ */ l.forwardRef(function(e, t) {
605
- var n = e.prefixCls, a = e.className, r = e.style, i = e.id, c = e.active, o = e.tabKey, s = e.children;
703
+ }), ct = /* @__PURE__ */ l.forwardRef(function(e, t) {
704
+ var n = e.prefixCls, a = e.className, r = e.style, o = e.id, c = e.active, i = e.tabKey, d = e.children;
606
705
  return /* @__PURE__ */ l.createElement("div", {
607
- id: i && "".concat(i, "-panel-").concat(o),
706
+ id: o && "".concat(o, "-panel-").concat(i),
608
707
  role: "tabpanel",
609
708
  tabIndex: c ? 0 : -1,
610
- "aria-labelledby": i && "".concat(i, "-tab-").concat(o),
709
+ "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
611
710
  "aria-hidden": !c,
612
711
  style: r,
613
- className: B(n, c && "".concat(n, "-active"), a),
712
+ className: A(n, c && "".concat(n, "-active"), a),
614
713
  ref: t
615
- }, s);
714
+ }, d);
616
715
  });
617
- process.env.NODE_ENV !== "production" && (et.displayName = "TabPane");
618
- var ja = ["renderTabBar"], Aa = ["label", "key"], Ht = function(t) {
619
- var n = t.renderTabBar, a = Be(t, ja), r = l.useContext(Ae), i = r.tabs;
716
+ process.env.NODE_ENV !== "production" && (ct.displayName = "TabPane");
717
+ var Ja = ["renderTabBar"], en = ["label", "key"], Yt = function(t) {
718
+ var n = t.renderTabBar, a = He(t, Ja), r = l.useContext(Ve), o = r.tabs;
620
719
  if (n) {
621
- var c = re(re({}, a), {}, {
720
+ var c = se(se({}, a), {}, {
622
721
  // Legacy support. We do not use this actually
623
- panes: i.map(function(o) {
624
- var s = o.label, u = o.key, b = Be(o, Aa);
625
- return /* @__PURE__ */ l.createElement(et, be({
626
- tab: s,
627
- key: u,
628
- tabKey: u
629
- }, b));
722
+ panes: o.map(function(i) {
723
+ var d = i.label, s = i.key, m = He(i, en);
724
+ return /* @__PURE__ */ l.createElement(ct, pe({
725
+ tab: d,
726
+ key: s,
727
+ tabKey: s
728
+ }, m));
630
729
  })
631
730
  });
632
- return n(c, Tt);
731
+ return n(c, Bt);
633
732
  }
634
- return /* @__PURE__ */ l.createElement(Tt, a);
733
+ return /* @__PURE__ */ l.createElement(Bt, a);
635
734
  };
636
- process.env.NODE_ENV !== "production" && (Ht.displayName = "TabNavListWrapper");
637
- var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Ga = function(t) {
638
- var n = t.id, a = t.activeKey, r = t.animated, i = t.tabPosition, c = t.destroyInactiveTabPane, o = l.useContext(Ae), s = o.prefixCls, u = o.tabs, b = r.tabPane, g = "".concat(s, "-tabpane");
735
+ process.env.NODE_ENV !== "production" && (Yt.displayName = "TabNavListWrapper");
736
+ var tn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], an = function(t) {
737
+ var n = t.id, a = t.activeKey, r = t.animated, o = t.tabPosition, c = t.destroyInactiveTabPane, i = l.useContext(Ve), d = i.prefixCls, s = i.tabs, m = r.tabPane, p = "".concat(d, "-tabpane");
639
738
  return /* @__PURE__ */ l.createElement("div", {
640
- className: B("".concat(s, "-content-holder"))
739
+ className: A("".concat(d, "-content-holder"))
641
740
  }, /* @__PURE__ */ l.createElement("div", {
642
- className: B("".concat(s, "-content"), "".concat(s, "-content-").concat(i), ee({}, "".concat(s, "-content-animated"), b))
643
- }, u.map(function(h) {
644
- var T = h.key, I = h.forceRender, w = h.style, P = h.className, p = h.destroyInactiveTabPane, f = Be(h, Ha), N = T === a;
645
- return /* @__PURE__ */ l.createElement(va, be({
646
- key: T,
647
- visible: N,
648
- forceRender: I,
649
- removeOnLeave: !!(c || p),
650
- leavedClassName: "".concat(g, "-hidden")
651
- }, r.tabPaneMotion), function(z, G) {
652
- var W = z.style, D = z.className;
653
- return /* @__PURE__ */ l.createElement(et, be({}, f, {
654
- prefixCls: g,
741
+ className: A("".concat(d, "-content"), "".concat(d, "-content-").concat(o), ne({}, "".concat(d, "-content-animated"), m))
742
+ }, s.map(function(y) {
743
+ var E = y.key, B = y.forceRender, C = y.style, N = y.className, h = y.destroyInactiveTabPane, $ = He(y, tn), P = E === a;
744
+ return /* @__PURE__ */ l.createElement(Ea, pe({
745
+ key: E,
746
+ visible: P,
747
+ forceRender: B,
748
+ removeOnLeave: !!(c || h),
749
+ leavedClassName: "".concat(p, "-hidden")
750
+ }, r.tabPaneMotion), function(G, K) {
751
+ var X = G.style, q = G.className;
752
+ return /* @__PURE__ */ l.createElement(ct, pe({}, $, {
753
+ prefixCls: p,
655
754
  id: n,
656
- tabKey: T,
657
- animated: b,
658
- active: N,
659
- style: re(re({}, w), W),
660
- className: B(P, D),
661
- ref: G
755
+ tabKey: E,
756
+ animated: m,
757
+ active: P,
758
+ style: se(se({}, C), X),
759
+ className: A(N, q),
760
+ ref: K
662
761
  }));
663
762
  });
664
763
  })));
665
764
  };
666
- function Wa() {
765
+ function nn() {
667
766
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
668
767
  inkBar: !0,
669
768
  tabPane: !1
@@ -674,98 +773,98 @@ function Wa() {
674
773
  } : e === !0 ? t = {
675
774
  inkBar: !0,
676
775
  tabPane: !1
677
- } : t = re({
776
+ } : t = se({
678
777
  inkBar: !0
679
- }, Qe(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && fa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
778
+ }, nt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Pa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
680
779
  }
681
- var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Pt = 0, Gt = /* @__PURE__ */ l.forwardRef(function(e, t) {
682
- var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, i = e.className, c = e.items, o = e.direction, s = e.activeKey, u = e.defaultActiveKey, b = e.editable, g = e.animated, h = e.tabPosition, T = h === void 0 ? "top" : h, I = e.tabBarGutter, w = e.tabBarStyle, P = e.tabBarExtraContent, p = e.locale, f = e.more, N = e.destroyInactiveTabPane, z = e.renderTabBar, G = e.onChange, W = e.onTabClick, D = e.onTabScroll, S = e.getPopupContainer, x = e.popupClassName, R = e.indicator, _ = Be(e, Va), m = l.useMemo(function() {
683
- return (c || []).filter(function(O) {
684
- return O && Qe(O) === "object" && "key" in O;
780
+ var rn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], jt = 0, kt = /* @__PURE__ */ l.forwardRef(function(e, t) {
781
+ var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, o = e.className, c = e.items, i = e.direction, d = e.activeKey, s = e.defaultActiveKey, m = e.editable, p = e.animated, y = e.tabPosition, E = y === void 0 ? "top" : y, B = e.tabBarGutter, C = e.tabBarStyle, N = e.tabBarExtraContent, h = e.locale, $ = e.more, P = e.destroyInactiveTabPane, G = e.renderTabBar, K = e.onChange, X = e.onTabClick, q = e.onTabScroll, O = e.getPopupContainer, x = e.popupClassName, T = e.indicator, g = He(e, rn), S = l.useMemo(function() {
782
+ return (c || []).filter(function(z) {
783
+ return z && nt(z) === "object" && "key" in z;
685
784
  });
686
- }, [c]), $ = o === "rtl", y = Wa(g), V = J(!1), se = M(V, 2), v = se[0], F = se[1];
687
- fe(function() {
688
- F(xa());
785
+ }, [c]), f = i === "rtl", _ = nn(p), k = Z(!1), H = M(k, 2), v = H[0], J = H[1];
786
+ me(function() {
787
+ J(Ba());
689
788
  }, []);
690
- var ie = $t(function() {
691
- var O;
692
- return (O = m[0]) === null || O === void 0 ? void 0 : O.key;
789
+ var R = Nt(function() {
790
+ var z;
791
+ return (z = S[0]) === null || z === void 0 ? void 0 : z.key;
693
792
  }, {
694
- value: s,
695
- defaultValue: u
696
- }), K = M(ie, 2), Q = K[0], oe = K[1], E = J(function() {
697
- return m.findIndex(function(O) {
698
- return O.key === Q;
793
+ value: d,
794
+ defaultValue: s
795
+ }), U = M(R, 2), ee = U[0], ve = U[1], w = Z(function() {
796
+ return S.findIndex(function(z) {
797
+ return z.key === ee;
699
798
  });
700
- }), L = M(E, 2), j = L[0], U = L[1];
701
- fe(function() {
702
- var O = m.findIndex(function(ye) {
703
- return ye.key === Q;
799
+ }), j = M(w, 2), Y = j[0], Q = j[1];
800
+ me(function() {
801
+ var z = S.findIndex(function(xe) {
802
+ return xe.key === ee;
704
803
  });
705
- if (O === -1) {
706
- var le;
707
- O = Math.max(0, Math.min(j, m.length - 1)), oe((le = m[O]) === null || le === void 0 ? void 0 : le.key);
804
+ if (z === -1) {
805
+ var de;
806
+ z = Math.max(0, Math.min(Y, S.length - 1)), ve((de = S[z]) === null || de === void 0 ? void 0 : de.key);
708
807
  }
709
- U(O);
710
- }, [m.map(function(O) {
711
- return O.key;
712
- }).join("_"), Q, j]);
713
- var Y = $t(null, {
808
+ Q(z);
809
+ }, [S.map(function(z) {
810
+ return z.key;
811
+ }).join("_"), ee, Y]);
812
+ var F = Nt(null, {
714
813
  value: n
715
- }), te = M(Y, 2), k = te[0], me = te[1];
716
- fe(function() {
717
- n || (me("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Pt)), Pt += 1);
814
+ }), re = M(F, 2), ae = re[0], he = re[1];
815
+ me(function() {
816
+ n || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : jt)), jt += 1);
718
817
  }, []);
719
- function de(O, le) {
720
- W == null || W(O, le);
721
- var ye = O !== Q;
722
- oe(O), ye && (G == null || G(O));
818
+ function fe(z, de) {
819
+ X == null || X(z, de);
820
+ var xe = z !== ee;
821
+ ve(z), xe && (K == null || K(z));
723
822
  }
724
- var ne = {
725
- id: k,
726
- activeKey: Q,
727
- animated: y,
728
- tabPosition: T,
729
- rtl: $,
823
+ var ie = {
824
+ id: ae,
825
+ activeKey: ee,
826
+ animated: _,
827
+ tabPosition: E,
828
+ rtl: f,
730
829
  mobile: v
731
- }, ge = re(re({}, ne), {}, {
732
- editable: b,
733
- locale: p,
734
- more: f,
735
- tabBarGutter: I,
736
- onTabClick: de,
737
- onTabScroll: D,
738
- extra: P,
739
- style: w,
830
+ }, $e = se(se({}, ie), {}, {
831
+ editable: m,
832
+ locale: h,
833
+ more: $,
834
+ tabBarGutter: B,
835
+ onTabClick: fe,
836
+ onTabScroll: q,
837
+ extra: N,
838
+ style: C,
740
839
  panes: null,
741
- getPopupContainer: S,
840
+ getPopupContainer: O,
742
841
  popupClassName: x,
743
- indicator: R
842
+ indicator: T
744
843
  });
745
- return /* @__PURE__ */ l.createElement(Ae.Provider, {
844
+ return /* @__PURE__ */ l.createElement(Ve.Provider, {
746
845
  value: {
747
- tabs: m,
846
+ tabs: S,
748
847
  prefixCls: r
749
848
  }
750
- }, /* @__PURE__ */ l.createElement("div", be({
849
+ }, /* @__PURE__ */ l.createElement("div", pe({
751
850
  ref: t,
752
851
  id: n,
753
- className: B(r, "".concat(r, "-").concat(T), ee(ee(ee({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), b), "".concat(r, "-rtl"), $), i)
754
- }, _), /* @__PURE__ */ l.createElement(Ht, be({}, ge, {
755
- renderTabBar: z
756
- })), /* @__PURE__ */ l.createElement(Ga, be({
757
- destroyInactiveTabPane: N
758
- }, ne, {
759
- animated: y
852
+ className: A(r, "".concat(r, "-").concat(E), ne(ne(ne({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), f), o)
853
+ }, g), /* @__PURE__ */ l.createElement(Yt, pe({}, $e, {
854
+ renderTabBar: G
855
+ })), /* @__PURE__ */ l.createElement(an, pe({
856
+ destroyInactiveTabPane: P
857
+ }, ie, {
858
+ animated: _
760
859
  }))));
761
860
  });
762
- process.env.NODE_ENV !== "production" && (Gt.displayName = "Tabs");
763
- const Ka = {
861
+ process.env.NODE_ENV !== "production" && (kt.displayName = "Tabs");
862
+ const on = {
764
863
  motionAppear: !1,
765
864
  motionEnter: !0,
766
865
  motionLeave: !0
767
866
  };
768
- function Xa(e) {
867
+ function ln(e) {
769
868
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
770
869
  inkBar: !0,
771
870
  tabPane: !1
@@ -778,42 +877,42 @@ function Xa(e) {
778
877
  tabPane: !0
779
878
  } : n = Object.assign({
780
879
  inkBar: !0
781
- }, typeof t == "object" ? t : {}), n.tabPane && (n.tabPaneMotion = Object.assign(Object.assign({}, Ka), {
782
- motionName: ba(e, "switch")
880
+ }, typeof t == "object" ? t : {}), n.tabPane && (n.tabPaneMotion = Object.assign(Object.assign({}, on), {
881
+ motionName: Ta(e, "switch")
783
882
  })), n;
784
883
  }
785
- var qa = function(e, t) {
884
+ var cn = function(e, t) {
786
885
  var n = {};
787
886
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
788
887
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
789
888
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
790
889
  return n;
791
890
  };
792
- function Fa(e) {
891
+ function sn(e) {
793
892
  return e.filter((t) => t);
794
893
  }
795
- function Ua(e, t) {
796
- if (process.env.NODE_ENV !== "production" && Ze("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
894
+ function dn(e, t) {
895
+ if (process.env.NODE_ENV !== "production" && rt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
797
896
  return e;
798
- const n = ma(t).map((a) => {
897
+ const n = Na(t).map((a) => {
799
898
  if (/* @__PURE__ */ l.isValidElement(a)) {
800
899
  const {
801
900
  key: r,
802
- props: i
803
- } = a, c = i || {}, {
804
- tab: o
805
- } = c, s = qa(c, ["tab"]);
901
+ props: o
902
+ } = a, c = o || {}, {
903
+ tab: i
904
+ } = c, d = cn(c, ["tab"]);
806
905
  return Object.assign(Object.assign({
807
906
  key: String(r)
808
- }, s), {
809
- label: o
907
+ }, d), {
908
+ label: i
810
909
  });
811
910
  }
812
911
  return null;
813
912
  });
814
- return Fa(n);
913
+ return sn(n);
815
914
  }
816
- const Ya = (e) => {
915
+ const un = (e) => {
817
916
  const {
818
917
  componentCls: t,
819
918
  motionDurationSlow: n
@@ -848,15 +947,15 @@ const Ya = (e) => {
848
947
  }
849
948
  },
850
949
  // Follow code may reuse in other components
851
- [yt(e, "slide-up"), yt(e, "slide-down")]
950
+ [Ot(e, "slide-up"), Ot(e, "slide-down")]
852
951
  ];
853
- }, Qa = (e) => {
952
+ }, vn = (e) => {
854
953
  const {
855
954
  componentCls: t,
856
955
  tabsCardPadding: n,
857
956
  cardBg: a,
858
957
  cardGutter: r,
859
- colorBorderSecondary: i,
958
+ colorBorderSecondary: o,
860
959
  itemSelectedColor: c
861
960
  } = e;
862
961
  return {
@@ -866,15 +965,19 @@ const Ya = (e) => {
866
965
  margin: 0,
867
966
  padding: n,
868
967
  background: a,
869
- border: `${d(e.lineWidth)} ${e.lineType} ${i}`,
968
+ border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
870
969
  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
871
970
  },
872
971
  [`${t}-tab-active`]: {
873
972
  color: c,
874
973
  background: e.colorBgContainer
875
974
  },
975
+ [`${t}-tab-focus`]: Object.assign({}, Vt(e, -3)),
876
976
  [`${t}-ink-bar`]: {
877
977
  visibility: "hidden"
978
+ },
979
+ [`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]: {
980
+ outline: "none"
878
981
  }
879
982
  },
880
983
  // ========================== Top & Bottom ==========================
@@ -883,7 +986,7 @@ const Ya = (e) => {
883
986
  [`${t}-tab + ${t}-tab`]: {
884
987
  marginLeft: {
885
988
  _skip_check_: !0,
886
- value: d(r)
989
+ value: u(r)
887
990
  }
888
991
  }
889
992
  }
@@ -891,7 +994,7 @@ const Ya = (e) => {
891
994
  [`&${t}-top`]: {
892
995
  [`> ${t}-nav, > div > ${t}-nav`]: {
893
996
  [`${t}-tab`]: {
894
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
997
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
895
998
  },
896
999
  [`${t}-tab-active`]: {
897
1000
  borderBottomColor: e.colorBgContainer
@@ -901,7 +1004,7 @@ const Ya = (e) => {
901
1004
  [`&${t}-bottom`]: {
902
1005
  [`> ${t}-nav, > div > ${t}-nav`]: {
903
1006
  [`${t}-tab`]: {
904
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
1007
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
905
1008
  },
906
1009
  [`${t}-tab-active`]: {
907
1010
  borderTopColor: e.colorBgContainer
@@ -912,7 +1015,7 @@ const Ya = (e) => {
912
1015
  [`&${t}-left, &${t}-right`]: {
913
1016
  [`> ${t}-nav, > div > ${t}-nav`]: {
914
1017
  [`${t}-tab + ${t}-tab`]: {
915
- marginTop: d(r)
1018
+ marginTop: u(r)
916
1019
  }
917
1020
  }
918
1021
  },
@@ -921,7 +1024,7 @@ const Ya = (e) => {
921
1024
  [`${t}-tab`]: {
922
1025
  borderRadius: {
923
1026
  _skip_check_: !0,
924
- value: `${d(e.borderRadiusLG)} 0 0 ${d(e.borderRadiusLG)}`
1027
+ value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
925
1028
  }
926
1029
  },
927
1030
  [`${t}-tab-active`]: {
@@ -937,7 +1040,7 @@ const Ya = (e) => {
937
1040
  [`${t}-tab`]: {
938
1041
  borderRadius: {
939
1042
  _skip_check_: !0,
940
- value: `0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0`
1043
+ value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
941
1044
  }
942
1045
  },
943
1046
  [`${t}-tab-active`]: {
@@ -950,14 +1053,14 @@ const Ya = (e) => {
950
1053
  }
951
1054
  }
952
1055
  };
953
- }, Za = (e) => {
1056
+ }, fn = (e) => {
954
1057
  const {
955
1058
  componentCls: t,
956
1059
  itemHoverColor: n,
957
1060
  dropdownEdgeChildVerticalPadding: a
958
1061
  } = e;
959
1062
  return {
960
- [`${t}-dropdown`]: Object.assign(Object.assign({}, Je(e)), {
1063
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, it(e)), {
961
1064
  position: "absolute",
962
1065
  top: -9999,
963
1066
  left: {
@@ -972,7 +1075,7 @@ const Ya = (e) => {
972
1075
  [`${t}-dropdown-menu`]: {
973
1076
  maxHeight: e.tabsDropdownHeight,
974
1077
  margin: 0,
975
- padding: `${d(a)} 0`,
1078
+ padding: `${u(a)} 0`,
976
1079
  overflowX: "hidden",
977
1080
  overflowY: "auto",
978
1081
  textAlign: {
@@ -985,12 +1088,12 @@ const Ya = (e) => {
985
1088
  borderRadius: e.borderRadiusLG,
986
1089
  outline: "none",
987
1090
  boxShadow: e.boxShadowSecondary,
988
- "&-item": Object.assign(Object.assign({}, ke), {
1091
+ "&-item": Object.assign(Object.assign({}, ot), {
989
1092
  display: "flex",
990
1093
  alignItems: "center",
991
1094
  minWidth: e.tabsDropdownWidth,
992
1095
  margin: 0,
993
- padding: `${d(e.paddingXXS)} ${d(e.paddingSM)}`,
1096
+ padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
994
1097
  color: e.colorText,
995
1098
  fontWeight: "normal",
996
1099
  fontSize: e.fontSize,
@@ -1030,15 +1133,15 @@ const Ya = (e) => {
1030
1133
  }
1031
1134
  })
1032
1135
  };
1033
- }, Ja = (e) => {
1136
+ }, bn = (e) => {
1034
1137
  const {
1035
1138
  componentCls: t,
1036
1139
  margin: n,
1037
1140
  colorBorderSecondary: a,
1038
1141
  horizontalMargin: r,
1039
- verticalItemPadding: i,
1142
+ verticalItemPadding: o,
1040
1143
  verticalItemMargin: c,
1041
- calc: o
1144
+ calc: i
1042
1145
  } = e;
1043
1146
  return {
1044
1147
  // ========================== Top & Bottom ==========================
@@ -1056,7 +1159,7 @@ const Ya = (e) => {
1056
1159
  _skip_check_: !0,
1057
1160
  value: 0
1058
1161
  },
1059
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${a}`,
1162
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${a}`,
1060
1163
  content: "''"
1061
1164
  },
1062
1165
  [`${t}-ink-bar`]: {
@@ -1126,10 +1229,10 @@ const Ya = (e) => {
1126
1229
  [`${t}-left, ${t}-right`]: {
1127
1230
  [`> ${t}-nav, > div > ${t}-nav`]: {
1128
1231
  flexDirection: "column",
1129
- minWidth: o(e.controlHeight).mul(1.25).equal(),
1232
+ minWidth: i(e.controlHeight).mul(1.25).equal(),
1130
1233
  // >>>>>>>>>>> Tab
1131
1234
  [`${t}-tab`]: {
1132
- padding: i,
1235
+ padding: o,
1133
1236
  textAlign: "center"
1134
1237
  },
1135
1238
  [`${t}-tab + ${t}-tab`]: {
@@ -1190,11 +1293,11 @@ const Ya = (e) => {
1190
1293
  [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1191
1294
  marginLeft: {
1192
1295
  _skip_check_: !0,
1193
- value: d(o(e.lineWidth).mul(-1).equal())
1296
+ value: u(i(e.lineWidth).mul(-1).equal())
1194
1297
  },
1195
1298
  borderLeft: {
1196
1299
  _skip_check_: !0,
1197
- value: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1300
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1198
1301
  },
1199
1302
  [`> ${t}-content > ${t}-tabpane`]: {
1200
1303
  paddingLeft: {
@@ -1218,11 +1321,11 @@ const Ya = (e) => {
1218
1321
  order: 0,
1219
1322
  marginRight: {
1220
1323
  _skip_check_: !0,
1221
- value: o(e.lineWidth).mul(-1).equal()
1324
+ value: i(e.lineWidth).mul(-1).equal()
1222
1325
  },
1223
1326
  borderRight: {
1224
1327
  _skip_check_: !0,
1225
- value: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1328
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1226
1329
  },
1227
1330
  [`> ${t}-content > ${t}-tabpane`]: {
1228
1331
  paddingRight: {
@@ -1233,13 +1336,13 @@ const Ya = (e) => {
1233
1336
  }
1234
1337
  }
1235
1338
  };
1236
- }, ka = (e) => {
1339
+ }, mn = (e) => {
1237
1340
  const {
1238
1341
  componentCls: t,
1239
1342
  cardPaddingSM: n,
1240
1343
  cardPaddingLG: a,
1241
1344
  horizontalItemPaddingSM: r,
1242
- horizontalItemPaddingLG: i
1345
+ horizontalItemPaddingLG: o
1243
1346
  } = e;
1244
1347
  return {
1245
1348
  [t]: {
@@ -1254,7 +1357,7 @@ const Ya = (e) => {
1254
1357
  "&-large": {
1255
1358
  [`> ${t}-nav`]: {
1256
1359
  [`${t}-tab`]: {
1257
- padding: i,
1360
+ padding: o,
1258
1361
  fontSize: e.titleFontSizeLG
1259
1362
  }
1260
1363
  }
@@ -1269,19 +1372,19 @@ const Ya = (e) => {
1269
1372
  },
1270
1373
  [`&${t}-bottom`]: {
1271
1374
  [`> ${t}-nav ${t}-tab`]: {
1272
- borderRadius: `0 0 ${d(e.borderRadius)} ${d(e.borderRadius)}`
1375
+ borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
1273
1376
  }
1274
1377
  },
1275
1378
  [`&${t}-top`]: {
1276
1379
  [`> ${t}-nav ${t}-tab`]: {
1277
- borderRadius: `${d(e.borderRadius)} ${d(e.borderRadius)} 0 0`
1380
+ borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
1278
1381
  }
1279
1382
  },
1280
1383
  [`&${t}-right`]: {
1281
1384
  [`> ${t}-nav ${t}-tab`]: {
1282
1385
  borderRadius: {
1283
1386
  _skip_check_: !0,
1284
- value: `0 ${d(e.borderRadius)} ${d(e.borderRadius)} 0`
1387
+ value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
1285
1388
  }
1286
1389
  }
1287
1390
  },
@@ -1289,7 +1392,7 @@ const Ya = (e) => {
1289
1392
  [`> ${t}-nav ${t}-tab`]: {
1290
1393
  borderRadius: {
1291
1394
  _skip_check_: !0,
1292
- value: `${d(e.borderRadius)} 0 0 ${d(e.borderRadius)}`
1395
+ value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
1293
1396
  }
1294
1397
  }
1295
1398
  }
@@ -1303,19 +1406,19 @@ const Ya = (e) => {
1303
1406
  }
1304
1407
  }
1305
1408
  };
1306
- }, en = (e) => {
1409
+ }, gn = (e) => {
1307
1410
  const {
1308
1411
  componentCls: t,
1309
1412
  itemActiveColor: n,
1310
1413
  itemHoverColor: a,
1311
1414
  iconCls: r,
1312
- tabsHorizontalItemMargin: i,
1415
+ tabsHorizontalItemMargin: o,
1313
1416
  horizontalItemPadding: c,
1314
- itemSelectedColor: o,
1315
- itemColor: s
1316
- } = e, u = `${t}-tab`;
1417
+ itemSelectedColor: i,
1418
+ itemColor: d
1419
+ } = e, s = `${t}-tab`;
1317
1420
  return {
1318
- [u]: {
1421
+ [s]: {
1319
1422
  position: "relative",
1320
1423
  WebkitTouchCallout: "none",
1321
1424
  WebkitTapHighlightColor: "transparent",
@@ -1327,20 +1430,20 @@ const Ya = (e) => {
1327
1430
  border: 0,
1328
1431
  outline: "none",
1329
1432
  cursor: "pointer",
1330
- color: s,
1331
- "&-btn, &-remove": Object.assign({
1433
+ color: d,
1434
+ "&-btn, &-remove": {
1332
1435
  "&:focus:not(:focus-visible), &:active": {
1333
1436
  color: n
1334
1437
  }
1335
- }, zt(e)),
1438
+ },
1336
1439
  "&-btn": {
1337
1440
  outline: "none",
1338
1441
  transition: `all ${e.motionDurationSlow}`,
1339
- [`${u}-icon:not(:last-child)`]: {
1442
+ [`${s}-icon:not(:last-child)`]: {
1340
1443
  marginInlineEnd: e.marginSM
1341
1444
  }
1342
1445
  },
1343
- "&-remove": {
1446
+ "&-remove": Object.assign({
1344
1447
  flex: "none",
1345
1448
  marginRight: {
1346
1449
  _skip_check_: !0,
@@ -1360,24 +1463,25 @@ const Ya = (e) => {
1360
1463
  "&:hover": {
1361
1464
  color: e.colorTextHeading
1362
1465
  }
1363
- },
1466
+ }, tt(e)),
1364
1467
  "&:hover": {
1365
1468
  color: a
1366
1469
  },
1367
- [`&${u}-active ${u}-btn`]: {
1368
- color: o,
1470
+ [`&${s}-active ${s}-btn`]: {
1471
+ color: i,
1369
1472
  textShadow: e.tabsActiveTextShadow
1370
1473
  },
1371
- [`&${u}-disabled`]: {
1474
+ [`&${s}-focus ${s}-btn`]: Object.assign({}, Vt(e)),
1475
+ [`&${s}-disabled`]: {
1372
1476
  color: e.colorTextDisabled,
1373
1477
  cursor: "not-allowed"
1374
1478
  },
1375
- [`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]: {
1479
+ [`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]: {
1376
1480
  "&:focus, &:active": {
1377
1481
  color: e.colorTextDisabled
1378
1482
  }
1379
1483
  },
1380
- [`& ${u}-remove ${r}`]: {
1484
+ [`& ${s}-remove ${r}`]: {
1381
1485
  margin: 0
1382
1486
  },
1383
1487
  [`${r}:not(:last-child)`]: {
@@ -1387,20 +1491,20 @@ const Ya = (e) => {
1387
1491
  }
1388
1492
  }
1389
1493
  },
1390
- [`${u} + ${u}`]: {
1494
+ [`${s} + ${s}`]: {
1391
1495
  margin: {
1392
1496
  _skip_check_: !0,
1393
- value: i
1497
+ value: o
1394
1498
  }
1395
1499
  }
1396
1500
  };
1397
- }, tn = (e) => {
1501
+ }, pn = (e) => {
1398
1502
  const {
1399
1503
  componentCls: t,
1400
1504
  tabsHorizontalItemMarginRTL: n,
1401
1505
  iconCls: a,
1402
1506
  cardGutter: r,
1403
- calc: i
1507
+ calc: o
1404
1508
  } = e;
1405
1509
  return {
1406
1510
  [`${t}-rtl`]: {
@@ -1424,17 +1528,17 @@ const Ya = (e) => {
1424
1528
  },
1425
1529
  marginLeft: {
1426
1530
  _skip_check_: !0,
1427
- value: d(e.marginSM)
1531
+ value: u(e.marginSM)
1428
1532
  }
1429
1533
  },
1430
1534
  [`${t}-tab-remove`]: {
1431
1535
  marginRight: {
1432
1536
  _skip_check_: !0,
1433
- value: d(e.marginXS)
1537
+ value: u(e.marginXS)
1434
1538
  },
1435
1539
  marginLeft: {
1436
1540
  _skip_check_: !0,
1437
- value: d(i(e.marginXXS).mul(-1).equal())
1541
+ value: u(o(e.marginXXS).mul(-1).equal())
1438
1542
  },
1439
1543
  [a]: {
1440
1544
  margin: 0
@@ -1486,18 +1590,18 @@ const Ya = (e) => {
1486
1590
  }
1487
1591
  }
1488
1592
  };
1489
- }, an = (e) => {
1593
+ }, hn = (e) => {
1490
1594
  const {
1491
1595
  componentCls: t,
1492
1596
  tabsCardPadding: n,
1493
1597
  cardHeight: a,
1494
1598
  cardGutter: r,
1495
- itemHoverColor: i,
1599
+ itemHoverColor: o,
1496
1600
  itemActiveColor: c,
1497
- colorBorderSecondary: o
1601
+ colorBorderSecondary: i
1498
1602
  } = e;
1499
1603
  return {
1500
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Je(e)), {
1604
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, it(e)), {
1501
1605
  display: "flex",
1502
1606
  // ========================== Navigation ==========================
1503
1607
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -1563,26 +1667,25 @@ const Ya = (e) => {
1563
1667
  },
1564
1668
  [`${t}-nav-add`]: Object.assign({
1565
1669
  minWidth: a,
1566
- minHeight: a,
1567
1670
  marginLeft: {
1568
1671
  _skip_check_: !0,
1569
1672
  value: r
1570
1673
  },
1571
- padding: `0 ${d(e.paddingXS)}`,
1674
+ padding: u(e.paddingXS),
1572
1675
  background: "transparent",
1573
- border: `${d(e.lineWidth)} ${e.lineType} ${o}`,
1574
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`,
1676
+ border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
1677
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
1575
1678
  outline: "none",
1576
1679
  cursor: "pointer",
1577
1680
  color: e.colorText,
1578
1681
  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
1579
1682
  "&:hover": {
1580
- color: i
1683
+ color: o
1581
1684
  },
1582
1685
  "&:active, &:focus:not(:focus-visible)": {
1583
1686
  color: c
1584
1687
  }
1585
- }, zt(e))
1688
+ }, tt(e, -3))
1586
1689
  },
1587
1690
  [`${t}-extra-content`]: {
1588
1691
  flex: "none"
@@ -1593,7 +1696,7 @@ const Ya = (e) => {
1593
1696
  background: e.inkBarColor,
1594
1697
  pointerEvents: "none"
1595
1698
  }
1596
- }), en(e)), {
1699
+ }), gn(e)), {
1597
1700
  // =========================== TabPanes ===========================
1598
1701
  [`${t}-content`]: {
1599
1702
  position: "relative",
@@ -1604,12 +1707,11 @@ const Ya = (e) => {
1604
1707
  minWidth: 0,
1605
1708
  minHeight: 0
1606
1709
  },
1607
- [`${t}-tabpane`]: {
1608
- outline: "none",
1710
+ [`${t}-tabpane`]: Object.assign(Object.assign({}, tt(e)), {
1609
1711
  "&-hidden": {
1610
1712
  display: "none"
1611
1713
  }
1612
- }
1714
+ })
1613
1715
  }),
1614
1716
  [`${t}-centered`]: {
1615
1717
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -1621,7 +1723,7 @@ const Ya = (e) => {
1621
1723
  }
1622
1724
  }
1623
1725
  };
1624
- }, nn = (e) => {
1726
+ }, $n = (e) => {
1625
1727
  const t = e.controlHeightLG;
1626
1728
  return {
1627
1729
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -1652,131 +1754,131 @@ const Ya = (e) => {
1652
1754
  itemActiveColor: e.colorPrimaryActive,
1653
1755
  cardGutter: e.marginXXS / 2
1654
1756
  };
1655
- }, rn = Ot("Tabs", (e) => {
1656
- const t = It(e, {
1757
+ }, yn = Ht("Tabs", (e) => {
1758
+ const t = Wt(e, {
1657
1759
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
1658
1760
  tabsCardPadding: e.cardPadding,
1659
1761
  dropdownEdgeChildVerticalPadding: e.paddingXXS,
1660
1762
  tabsActiveTextShadow: "0 0 0.25px currentcolor",
1661
1763
  tabsDropdownHeight: 200,
1662
1764
  tabsDropdownWidth: 120,
1663
- tabsHorizontalItemMargin: `0 0 0 ${d(e.horizontalItemGutter)}`,
1664
- tabsHorizontalItemMarginRTL: `0 0 0 ${d(e.horizontalItemGutter)}`
1765
+ tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
1766
+ tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
1665
1767
  });
1666
- return [ka(t), tn(t), Ja(t), Za(t), Qa(t), an(t), Ya(t)];
1667
- }, nn), Wt = () => null;
1668
- process.env.NODE_ENV !== "production" && (Wt.displayName = "DeprecatedTabPane");
1669
- var on = function(e, t) {
1768
+ return [mn(t), pn(t), bn(t), fn(t), vn(t), hn(t), un(t)];
1769
+ }, $n), Qt = () => null;
1770
+ process.env.NODE_ENV !== "production" && (Qt.displayName = "DeprecatedTabPane");
1771
+ var Sn = function(e, t) {
1670
1772
  var n = {};
1671
1773
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
1672
1774
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
1673
1775
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1674
1776
  return n;
1675
1777
  };
1676
- const tt = (e) => {
1677
- var t, n, a, r, i, c, o, s, u, b, g;
1778
+ const st = (e) => {
1779
+ var t, n, a, r, o, c, i, d, s, m, p;
1678
1780
  const {
1679
- type: h,
1680
- className: T,
1681
- rootClassName: I,
1682
- size: w,
1683
- onEdit: P,
1684
- hideAdd: p,
1685
- centered: f,
1686
- addIcon: N,
1687
- removeIcon: z,
1688
- moreIcon: G,
1689
- more: W,
1690
- popupClassName: D,
1691
- children: S,
1781
+ type: y,
1782
+ className: E,
1783
+ rootClassName: B,
1784
+ size: C,
1785
+ onEdit: N,
1786
+ hideAdd: h,
1787
+ centered: $,
1788
+ addIcon: P,
1789
+ removeIcon: G,
1790
+ moreIcon: K,
1791
+ more: X,
1792
+ popupClassName: q,
1793
+ children: O,
1692
1794
  items: x,
1693
- animated: R,
1694
- style: _,
1695
- indicatorSize: m,
1696
- indicator: $
1697
- } = e, y = on(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1698
- prefixCls: V
1699
- } = y, {
1700
- direction: se,
1795
+ animated: T,
1796
+ style: g,
1797
+ indicatorSize: S,
1798
+ indicator: f
1799
+ } = e, _ = Sn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1800
+ prefixCls: k
1801
+ } = _, {
1802
+ direction: H,
1701
1803
  tabs: v,
1702
- getPrefixCls: F,
1703
- getPopupContainer: ie
1704
- } = l.useContext(De), K = F("tabs", V), Q = ga(K), [oe, E, L] = rn(K, Q);
1705
- let j;
1706
- h === "editable-card" && (j = {
1707
- onEdit: (ne, ge) => {
1804
+ getPrefixCls: J,
1805
+ getPopupContainer: R
1806
+ } = l.useContext(Me), U = J("tabs", k), ee = Oa(U), [ve, w, j] = yn(U, ee);
1807
+ let Y;
1808
+ y === "editable-card" && (Y = {
1809
+ onEdit: (ie, $e) => {
1708
1810
  let {
1709
- key: O,
1710
- event: le
1711
- } = ge;
1712
- P == null || P(ne === "add" ? le : O, ne);
1811
+ key: z,
1812
+ event: de
1813
+ } = $e;
1814
+ N == null || N(ie === "add" ? de : z, ie);
1713
1815
  },
1714
- removeIcon: (t = z ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(ha, null),
1715
- addIcon: (N ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Mt, null),
1716
- showAdd: p !== !0
1816
+ removeIcon: (t = G ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ia, null),
1817
+ addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Xt, null),
1818
+ showAdd: h !== !0
1717
1819
  });
1718
- const U = F();
1820
+ const Q = J();
1719
1821
  if (process.env.NODE_ENV !== "production") {
1720
- const ne = Ze("Tabs");
1721
- process.env.NODE_ENV !== "production" && ne(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ne(!(m || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
1822
+ const ie = rt("Tabs");
1823
+ process.env.NODE_ENV !== "production" && ie(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ie(!(S || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
1722
1824
  }
1723
- const Y = Lt(w), te = Ua(x, S), k = Xa(K, R), me = Object.assign(Object.assign({}, v == null ? void 0 : v.style), _), de = {
1724
- align: (n = $ == null ? void 0 : $.align) !== null && n !== void 0 ? n : (a = v == null ? void 0 : v.indicator) === null || a === void 0 ? void 0 : a.align,
1725
- size: (o = (i = (r = $ == null ? void 0 : $.size) !== null && r !== void 0 ? r : m) !== null && i !== void 0 ? i : (c = v == null ? void 0 : v.indicator) === null || c === void 0 ? void 0 : c.size) !== null && o !== void 0 ? o : v == null ? void 0 : v.indicatorSize
1825
+ const F = Kt(C), re = dn(x, O), ae = ln(U, T), he = Object.assign(Object.assign({}, v == null ? void 0 : v.style), g), fe = {
1826
+ align: (n = f == null ? void 0 : f.align) !== null && n !== void 0 ? n : (a = v == null ? void 0 : v.indicator) === null || a === void 0 ? void 0 : a.align,
1827
+ size: (i = (o = (r = f == null ? void 0 : f.size) !== null && r !== void 0 ? r : S) !== null && o !== void 0 ? o : (c = v == null ? void 0 : v.indicator) === null || c === void 0 ? void 0 : c.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
1726
1828
  };
1727
- return oe(/* @__PURE__ */ l.createElement(Gt, Object.assign({
1728
- direction: se,
1729
- getPopupContainer: ie
1730
- }, y, {
1731
- items: te,
1732
- className: B({
1733
- [`${K}-${Y}`]: Y,
1734
- [`${K}-card`]: ["card", "editable-card"].includes(h),
1735
- [`${K}-editable-card`]: h === "editable-card",
1736
- [`${K}-centered`]: f
1737
- }, v == null ? void 0 : v.className, T, I, E, L, Q),
1738
- popupClassName: B(D, E, L, Q),
1739
- style: me,
1740
- editable: j,
1829
+ return ve(/* @__PURE__ */ l.createElement(kt, Object.assign({
1830
+ direction: H,
1831
+ getPopupContainer: R
1832
+ }, _, {
1833
+ items: re,
1834
+ className: A({
1835
+ [`${U}-${F}`]: F,
1836
+ [`${U}-card`]: ["card", "editable-card"].includes(y),
1837
+ [`${U}-editable-card`]: y === "editable-card",
1838
+ [`${U}-centered`]: $
1839
+ }, v == null ? void 0 : v.className, E, B, w, j, ee),
1840
+ popupClassName: A(q, w, j, ee),
1841
+ style: he,
1842
+ editable: Y,
1741
1843
  more: Object.assign({
1742
- icon: (g = (b = (u = (s = v == null ? void 0 : v.more) === null || s === void 0 ? void 0 : s.icon) !== null && u !== void 0 ? u : v == null ? void 0 : v.moreIcon) !== null && b !== void 0 ? b : G) !== null && g !== void 0 ? g : /* @__PURE__ */ l.createElement(Ca, null),
1743
- transitionName: `${U}-slide-up`
1744
- }, W),
1745
- prefixCls: K,
1746
- animated: k,
1747
- indicator: de
1844
+ icon: (p = (m = (s = (d = v == null ? void 0 : v.more) === null || d === void 0 ? void 0 : d.icon) !== null && s !== void 0 ? s : v == null ? void 0 : v.moreIcon) !== null && m !== void 0 ? m : K) !== null && p !== void 0 ? p : /* @__PURE__ */ l.createElement(ja, null),
1845
+ transitionName: `${Q}-slide-up`
1846
+ }, X),
1847
+ prefixCls: U,
1848
+ animated: ae,
1849
+ indicator: fe
1748
1850
  })));
1749
1851
  };
1750
- tt.TabPane = Wt;
1751
- process.env.NODE_ENV !== "production" && (tt.displayName = "Tabs");
1752
- var ln = function(e, t) {
1852
+ st.TabPane = Qt;
1853
+ process.env.NODE_ENV !== "production" && (st.displayName = "Tabs");
1854
+ var _n = function(e, t) {
1753
1855
  var n = {};
1754
1856
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
1755
1857
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
1756
1858
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1757
1859
  return n;
1758
1860
  };
1759
- const Vt = (e) => {
1861
+ const Zt = (e) => {
1760
1862
  var {
1761
1863
  prefixCls: t,
1762
1864
  className: n,
1763
1865
  hoverable: a = !0
1764
- } = e, r = ln(e, ["prefixCls", "className", "hoverable"]);
1866
+ } = e, r = _n(e, ["prefixCls", "className", "hoverable"]);
1765
1867
  const {
1766
- getPrefixCls: i
1767
- } = l.useContext(De), c = i("card", t), o = B(`${c}-grid`, n, {
1868
+ getPrefixCls: o
1869
+ } = l.useContext(Me), c = o("card", t), i = A(`${c}-grid`, n, {
1768
1870
  [`${c}-grid-hoverable`]: a
1769
1871
  });
1770
1872
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
1771
- className: o
1873
+ className: i
1772
1874
  }));
1773
- }, cn = (e) => {
1875
+ }, xn = (e) => {
1774
1876
  const {
1775
1877
  antCls: t,
1776
1878
  componentCls: n,
1777
1879
  headerHeight: a,
1778
- cardPaddingBase: r,
1779
- tabsMarginBottom: i
1880
+ headerPadding: r,
1881
+ tabsMarginBottom: o
1780
1882
  } = e;
1781
1883
  return Object.assign(Object.assign({
1782
1884
  display: "flex",
@@ -1784,14 +1886,14 @@ const Vt = (e) => {
1784
1886
  flexDirection: "column",
1785
1887
  minHeight: a,
1786
1888
  marginBottom: -1,
1787
- padding: `0 ${d(r)}`,
1889
+ padding: `0 ${u(r)}`,
1788
1890
  color: e.colorTextHeading,
1789
1891
  fontWeight: e.fontWeightStrong,
1790
1892
  fontSize: e.headerFontSize,
1791
1893
  background: e.headerBg,
1792
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
1793
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
1794
- }, je()), {
1894
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
1895
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
1896
+ }, We()), {
1795
1897
  "&-wrapper": {
1796
1898
  width: "100%",
1797
1899
  display: "flex",
@@ -1800,7 +1902,7 @@ const Vt = (e) => {
1800
1902
  "&-title": Object.assign(Object.assign({
1801
1903
  display: "inline-block",
1802
1904
  flex: 1
1803
- }, ke), {
1905
+ }, ot), {
1804
1906
  [`
1805
1907
  > ${n}-typography,
1806
1908
  > ${n}-typography-edit-content
@@ -1812,16 +1914,16 @@ const Vt = (e) => {
1812
1914
  }),
1813
1915
  [`${t}-tabs-top`]: {
1814
1916
  clear: "both",
1815
- marginBottom: i,
1917
+ marginBottom: o,
1816
1918
  color: e.colorText,
1817
1919
  fontWeight: "normal",
1818
1920
  fontSize: e.fontSize,
1819
1921
  "&-bar": {
1820
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
1922
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
1821
1923
  }
1822
1924
  }
1823
1925
  });
1824
- }, sn = (e) => {
1926
+ }, Cn = (e) => {
1825
1927
  const {
1826
1928
  cardPaddingBase: t,
1827
1929
  colorBorderSecondary: n,
@@ -1834,11 +1936,11 @@ const Vt = (e) => {
1834
1936
  border: 0,
1835
1937
  borderRadius: 0,
1836
1938
  boxShadow: `
1837
- ${d(r)} 0 0 0 ${n},
1838
- 0 ${d(r)} 0 0 ${n},
1839
- ${d(r)} ${d(r)} 0 0 ${n},
1840
- ${d(r)} 0 0 0 ${n} inset,
1841
- 0 ${d(r)} 0 0 ${n} inset;
1939
+ ${u(r)} 0 0 0 ${n},
1940
+ 0 ${u(r)} 0 0 ${n},
1941
+ ${u(r)} ${u(r)} 0 0 ${n},
1942
+ ${u(r)} 0 0 0 ${n} inset,
1943
+ 0 ${u(r)} 0 0 ${n} inset;
1842
1944
  `,
1843
1945
  transition: `all ${e.motionDurationMid}`,
1844
1946
  "&-hoverable:hover": {
@@ -1847,13 +1949,13 @@ const Vt = (e) => {
1847
1949
  boxShadow: a
1848
1950
  }
1849
1951
  };
1850
- }, dn = (e) => {
1952
+ }, wn = (e) => {
1851
1953
  const {
1852
1954
  componentCls: t,
1853
1955
  iconCls: n,
1854
1956
  actionsLiMargin: a,
1855
1957
  cardActionsIconSize: r,
1856
- colorBorderSecondary: i,
1958
+ colorBorderSecondary: o,
1857
1959
  actionsBg: c
1858
1960
  } = e;
1859
1961
  return Object.assign(Object.assign({
@@ -1861,10 +1963,10 @@ const Vt = (e) => {
1861
1963
  padding: 0,
1862
1964
  listStyle: "none",
1863
1965
  background: c,
1864
- borderTop: `${d(e.lineWidth)} ${e.lineType} ${i}`,
1966
+ borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
1865
1967
  display: "flex",
1866
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
1867
- }, je()), {
1968
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
1969
+ }, We()), {
1868
1970
  "& > li": {
1869
1971
  margin: a,
1870
1972
  color: e.colorTextDescription,
@@ -1884,7 +1986,7 @@ const Vt = (e) => {
1884
1986
  display: "inline-block",
1885
1987
  width: "100%",
1886
1988
  color: e.colorTextDescription,
1887
- lineHeight: d(e.fontHeight),
1989
+ lineHeight: u(e.fontHeight),
1888
1990
  transition: `color ${e.motionDurationMid}`,
1889
1991
  "&:hover": {
1890
1992
  color: e.colorPrimary
@@ -1892,18 +1994,18 @@ const Vt = (e) => {
1892
1994
  },
1893
1995
  [`> ${n}`]: {
1894
1996
  fontSize: r,
1895
- lineHeight: d(e.calc(r).mul(e.lineHeight).equal())
1997
+ lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
1896
1998
  }
1897
1999
  },
1898
2000
  "&:not(:last-child)": {
1899
- borderInlineEnd: `${d(e.lineWidth)} ${e.lineType} ${i}`
2001
+ borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
1900
2002
  }
1901
2003
  }
1902
2004
  });
1903
- }, un = (e) => Object.assign(Object.assign({
1904
- margin: `${d(e.calc(e.marginXXS).mul(-1).equal())} 0`,
2005
+ }, En = (e) => Object.assign(Object.assign({
2006
+ margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
1905
2007
  display: "flex"
1906
- }, je()), {
2008
+ }, We()), {
1907
2009
  "&-avatar": {
1908
2010
  paddingInlineEnd: e.padding
1909
2011
  },
@@ -1918,29 +2020,30 @@ const Vt = (e) => {
1918
2020
  color: e.colorTextHeading,
1919
2021
  fontWeight: e.fontWeightStrong,
1920
2022
  fontSize: e.fontSizeLG
1921
- }, ke),
2023
+ }, ot),
1922
2024
  "&-description": {
1923
2025
  color: e.colorTextDescription
1924
2026
  }
1925
- }), vn = (e) => {
2027
+ }), Pn = (e) => {
1926
2028
  const {
1927
2029
  componentCls: t,
1928
- cardPaddingBase: n,
1929
- colorFillAlter: a
2030
+ colorFillAlter: n,
2031
+ headerPadding: a,
2032
+ bodyPadding: r
1930
2033
  } = e;
1931
2034
  return {
1932
2035
  [`${t}-head`]: {
1933
- padding: `0 ${d(n)}`,
1934
- background: a,
2036
+ padding: `0 ${u(a)}`,
2037
+ background: n,
1935
2038
  "&-title": {
1936
2039
  fontSize: e.fontSize
1937
2040
  }
1938
2041
  },
1939
2042
  [`${t}-body`]: {
1940
- padding: `${d(e.padding)} ${d(n)}`
2043
+ padding: `${u(e.padding)} ${u(r)}`
1941
2044
  }
1942
2045
  };
1943
- }, fn = (e) => {
2046
+ }, Tn = (e) => {
1944
2047
  const {
1945
2048
  componentCls: t
1946
2049
  } = e;
@@ -1950,49 +2053,49 @@ const Vt = (e) => {
1950
2053
  userSelect: "none"
1951
2054
  }
1952
2055
  };
1953
- }, bn = (e) => {
2056
+ }, Nn = (e) => {
1954
2057
  const {
1955
2058
  componentCls: t,
1956
2059
  cardShadow: n,
1957
2060
  cardHeadPadding: a,
1958
2061
  colorBorderSecondary: r,
1959
- boxShadowTertiary: i,
1960
- cardPaddingBase: c,
1961
- extraColor: o
2062
+ boxShadowTertiary: o,
2063
+ bodyPadding: c,
2064
+ extraColor: i
1962
2065
  } = e;
1963
2066
  return {
1964
- [t]: Object.assign(Object.assign({}, Je(e)), {
2067
+ [t]: Object.assign(Object.assign({}, it(e)), {
1965
2068
  position: "relative",
1966
2069
  background: e.colorBgContainer,
1967
2070
  borderRadius: e.borderRadiusLG,
1968
2071
  [`&:not(${t}-bordered)`]: {
1969
- boxShadow: i
2072
+ boxShadow: o
1970
2073
  },
1971
- [`${t}-head`]: cn(e),
2074
+ [`${t}-head`]: xn(e),
1972
2075
  [`${t}-extra`]: {
1973
2076
  // https://stackoverflow.com/a/22429853/3040605
1974
2077
  marginInlineStart: "auto",
1975
- color: o,
2078
+ color: i,
1976
2079
  fontWeight: "normal",
1977
2080
  fontSize: e.fontSize
1978
2081
  },
1979
2082
  [`${t}-body`]: Object.assign({
1980
2083
  padding: c,
1981
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
1982
- }, je()),
1983
- [`${t}-grid`]: sn(e),
2084
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2085
+ }, We()),
2086
+ [`${t}-grid`]: Cn(e),
1984
2087
  [`${t}-cover`]: {
1985
2088
  "> *": {
1986
2089
  display: "block",
1987
2090
  width: "100%",
1988
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
2091
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
1989
2092
  }
1990
2093
  },
1991
- [`${t}-actions`]: dn(e),
1992
- [`${t}-meta`]: un(e)
2094
+ [`${t}-actions`]: wn(e),
2095
+ [`${t}-meta`]: En(e)
1993
2096
  }),
1994
2097
  [`${t}-bordered`]: {
1995
- border: `${d(e.lineWidth)} ${e.lineType} ${r}`,
2098
+ border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
1996
2099
  [`${t}-cover`]: {
1997
2100
  marginTop: -1,
1998
2101
  marginInlineStart: -1,
@@ -2008,7 +2111,7 @@ const Vt = (e) => {
2008
2111
  }
2009
2112
  },
2010
2113
  [`${t}-contain-grid`]: {
2011
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0 `,
2114
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
2012
2115
  [`${t}-body`]: {
2013
2116
  display: "flex",
2014
2117
  flexWrap: "wrap"
@@ -2027,25 +2130,26 @@ const Vt = (e) => {
2027
2130
  }
2028
2131
  }
2029
2132
  },
2030
- [`${t}-type-inner`]: vn(e),
2031
- [`${t}-loading`]: fn(e),
2133
+ [`${t}-type-inner`]: Pn(e),
2134
+ [`${t}-loading`]: Tn(e),
2032
2135
  [`${t}-rtl`]: {
2033
2136
  direction: "rtl"
2034
2137
  }
2035
2138
  };
2036
- }, mn = (e) => {
2139
+ }, On = (e) => {
2037
2140
  const {
2038
2141
  componentCls: t,
2039
- cardPaddingSM: n,
2040
- headerHeightSM: a,
2041
- headerFontSizeSM: r
2142
+ bodyPaddingSM: n,
2143
+ headerPaddingSM: a,
2144
+ headerHeightSM: r,
2145
+ headerFontSizeSM: o
2042
2146
  } = e;
2043
2147
  return {
2044
2148
  [`${t}-small`]: {
2045
2149
  [`> ${t}-head`]: {
2046
- minHeight: a,
2047
- padding: `0 ${d(n)}`,
2048
- fontSize: r,
2150
+ minHeight: r,
2151
+ padding: `0 ${u(a)}`,
2152
+ fontSize: o,
2049
2153
  [`> ${t}-head-wrapper`]: {
2050
2154
  [`> ${t}-extra`]: {
2051
2155
  fontSize: e.fontSize
@@ -2066,40 +2170,46 @@ const Vt = (e) => {
2066
2170
  }
2067
2171
  }
2068
2172
  };
2069
- }, gn = (e) => ({
2070
- headerBg: "transparent",
2071
- headerFontSize: e.fontSizeLG,
2072
- headerFontSizeSM: e.fontSize,
2073
- headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
2074
- headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
2075
- actionsBg: e.colorBgContainer,
2076
- actionsLiMargin: `${e.paddingSM}px 0`,
2077
- tabsMarginBottom: -e.padding - e.lineWidth,
2078
- extraColor: e.colorText
2079
- }), pn = Ot("Card", (e) => {
2080
- const t = It(e, {
2173
+ }, Rn = (e) => {
2174
+ var t, n;
2175
+ return {
2176
+ headerBg: "transparent",
2177
+ headerFontSize: e.fontSizeLG,
2178
+ headerFontSizeSM: e.fontSize,
2179
+ headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
2180
+ headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
2181
+ actionsBg: e.colorBgContainer,
2182
+ actionsLiMargin: `${e.paddingSM}px 0`,
2183
+ tabsMarginBottom: -e.padding - e.lineWidth,
2184
+ extraColor: e.colorText,
2185
+ bodyPaddingSM: 12,
2186
+ // Fixed padding.
2187
+ headerPaddingSM: 12,
2188
+ bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
2189
+ headerPadding: (n = e.headerPadding) !== null && n !== void 0 ? n : e.paddingLG
2190
+ };
2191
+ }, In = Ht("Card", (e) => {
2192
+ const t = Wt(e, {
2081
2193
  cardShadow: e.boxShadowCard,
2082
2194
  cardHeadPadding: e.padding,
2083
2195
  cardPaddingBase: e.paddingLG,
2084
- cardActionsIconSize: e.fontSize,
2085
- cardPaddingSM: 12
2086
- // Fixed padding.
2196
+ cardActionsIconSize: e.fontSize
2087
2197
  });
2088
2198
  return [
2089
2199
  // Style
2090
- bn(t),
2200
+ Nn(t),
2091
2201
  // Size
2092
- mn(t)
2202
+ On(t)
2093
2203
  ];
2094
- }, gn);
2095
- var Nt = function(e, t) {
2204
+ }, Rn);
2205
+ var At = function(e, t) {
2096
2206
  var n = {};
2097
2207
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
2098
2208
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
2099
2209
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
2100
2210
  return n;
2101
2211
  };
2102
- const hn = (e) => {
2212
+ const zn = (e) => {
2103
2213
  const {
2104
2214
  actionClasses: t,
2105
2215
  actions: n = [],
@@ -2108,8 +2218,8 @@ const hn = (e) => {
2108
2218
  return /* @__PURE__ */ l.createElement("ul", {
2109
2219
  className: t,
2110
2220
  style: a
2111
- }, n.map((r, i) => {
2112
- const c = `action-${i}`;
2221
+ }, n.map((r, o) => {
2222
+ const c = `action-${o}`;
2113
2223
  return /* @__PURE__ */ l.createElement("li", {
2114
2224
  style: {
2115
2225
  width: `${100 / n.length}%`
@@ -2117,175 +2227,176 @@ const hn = (e) => {
2117
2227
  key: c
2118
2228
  }, /* @__PURE__ */ l.createElement("span", null, r));
2119
2229
  }));
2120
- }, $n = /* @__PURE__ */ l.forwardRef((e, t) => {
2230
+ }, Mn = /* @__PURE__ */ l.forwardRef((e, t) => {
2121
2231
  const {
2122
2232
  prefixCls: n,
2123
2233
  className: a,
2124
2234
  rootClassName: r,
2125
- style: i,
2235
+ style: o,
2126
2236
  extra: c,
2127
- headStyle: o = {},
2128
- bodyStyle: s = {},
2129
- title: u,
2130
- loading: b,
2131
- bordered: g = !0,
2132
- size: h,
2133
- type: T,
2134
- cover: I,
2135
- actions: w,
2136
- tabList: P,
2137
- children: p,
2138
- activeTabKey: f,
2139
- defaultActiveTabKey: N,
2140
- tabBarExtraContent: z,
2141
- hoverable: G,
2142
- tabProps: W = {},
2143
- classNames: D,
2144
- styles: S
2145
- } = e, x = Nt(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2146
- getPrefixCls: R,
2147
- direction: _,
2148
- card: m
2149
- } = l.useContext(De);
2237
+ headStyle: i = {},
2238
+ bodyStyle: d = {},
2239
+ title: s,
2240
+ loading: m,
2241
+ bordered: p,
2242
+ variant: y,
2243
+ size: E,
2244
+ type: B,
2245
+ cover: C,
2246
+ actions: N,
2247
+ tabList: h,
2248
+ children: $,
2249
+ activeTabKey: P,
2250
+ defaultActiveTabKey: G,
2251
+ tabBarExtraContent: K,
2252
+ hoverable: X,
2253
+ tabProps: q = {},
2254
+ classNames: O,
2255
+ styles: x
2256
+ } = e, T = At(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2257
+ getPrefixCls: g,
2258
+ direction: S,
2259
+ card: f
2260
+ } = l.useContext(Me), [_] = Aa("card", y, p);
2150
2261
  if (process.env.NODE_ENV !== "production") {
2151
- const X = Ze("Card");
2152
- [["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((A) => {
2153
- let [ce, Se] = A;
2154
- X.deprecated(!(ce in e), ce, Se);
2262
+ const W = rt("Card");
2263
+ [["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((L) => {
2264
+ let [oe, Ce] = L;
2265
+ W.deprecated(!(oe in e), oe, Ce);
2155
2266
  });
2156
2267
  }
2157
- const $ = (X) => {
2158
- var A;
2159
- (A = e.onTabChange) === null || A === void 0 || A.call(e, X);
2160
- }, y = (X) => {
2161
- var A;
2162
- return B((A = m == null ? void 0 : m.classNames) === null || A === void 0 ? void 0 : A[X], D == null ? void 0 : D[X]);
2163
- }, V = (X) => {
2164
- var A;
2165
- return Object.assign(Object.assign({}, (A = m == null ? void 0 : m.styles) === null || A === void 0 ? void 0 : A[X]), S == null ? void 0 : S[X]);
2166
- }, se = l.useMemo(() => {
2167
- let X = !1;
2168
- return l.Children.forEach(p, (A) => {
2169
- (A == null ? void 0 : A.type) === Vt && (X = !0);
2170
- }), X;
2171
- }, [p]), v = R("card", n), [F, ie, K] = pn(v), Q = /* @__PURE__ */ l.createElement($a, {
2268
+ const k = (W) => {
2269
+ var L;
2270
+ (L = e.onTabChange) === null || L === void 0 || L.call(e, W);
2271
+ }, H = (W) => {
2272
+ var L;
2273
+ return A((L = f == null ? void 0 : f.classNames) === null || L === void 0 ? void 0 : L[W], O == null ? void 0 : O[W]);
2274
+ }, v = (W) => {
2275
+ var L;
2276
+ return Object.assign(Object.assign({}, (L = f == null ? void 0 : f.styles) === null || L === void 0 ? void 0 : L[W]), x == null ? void 0 : x[W]);
2277
+ }, J = l.useMemo(() => {
2278
+ let W = !1;
2279
+ return l.Children.forEach($, (L) => {
2280
+ (L == null ? void 0 : L.type) === Zt && (W = !0);
2281
+ }), W;
2282
+ }, [$]), R = g("card", n), [U, ee, ve] = In(R), w = /* @__PURE__ */ l.createElement(za, {
2172
2283
  loading: !0,
2173
2284
  active: !0,
2174
2285
  paragraph: {
2175
2286
  rows: 4
2176
2287
  },
2177
2288
  title: !1
2178
- }, p), oe = f !== void 0, E = Object.assign(Object.assign({}, W), {
2179
- [oe ? "activeKey" : "defaultActiveKey"]: oe ? f : N,
2180
- tabBarExtraContent: z
2289
+ }, $), j = P !== void 0, Y = Object.assign(Object.assign({}, q), {
2290
+ [j ? "activeKey" : "defaultActiveKey"]: j ? P : G,
2291
+ tabBarExtraContent: K
2181
2292
  });
2182
- let L;
2183
- const j = Lt(h), U = !j || j === "default" ? "large" : j, Y = P ? /* @__PURE__ */ l.createElement(tt, Object.assign({
2184
- size: U
2185
- }, E, {
2186
- className: `${v}-head-tabs`,
2187
- onChange: $,
2188
- items: P.map((X) => {
2293
+ let Q;
2294
+ const F = Kt(E), re = !F || F === "default" ? "large" : F, ae = h ? /* @__PURE__ */ l.createElement(st, Object.assign({
2295
+ size: re
2296
+ }, Y, {
2297
+ className: `${R}-head-tabs`,
2298
+ onChange: k,
2299
+ items: h.map((W) => {
2189
2300
  var {
2190
- tab: A
2191
- } = X, ce = Nt(X, ["tab"]);
2301
+ tab: L
2302
+ } = W, oe = At(W, ["tab"]);
2192
2303
  return Object.assign({
2193
- label: A
2194
- }, ce);
2304
+ label: L
2305
+ }, oe);
2195
2306
  })
2196
2307
  })) : null;
2197
- if (u || c || Y) {
2198
- const X = B(`${v}-head`, y("header")), A = B(`${v}-head-title`, y("title")), ce = B(`${v}-extra`, y("extra")), Se = Object.assign(Object.assign({}, o), V("header"));
2199
- L = /* @__PURE__ */ l.createElement("div", {
2200
- className: X,
2201
- style: Se
2308
+ if (s || c || ae) {
2309
+ const W = A(`${R}-head`, H("header")), L = A(`${R}-head-title`, H("title")), oe = A(`${R}-extra`, H("extra")), Ce = Object.assign(Object.assign({}, i), v("header"));
2310
+ Q = /* @__PURE__ */ l.createElement("div", {
2311
+ className: W,
2312
+ style: Ce
2202
2313
  }, /* @__PURE__ */ l.createElement("div", {
2203
- className: `${v}-head-wrapper`
2204
- }, u && /* @__PURE__ */ l.createElement("div", {
2205
- className: A,
2206
- style: V("title")
2207
- }, u), c && /* @__PURE__ */ l.createElement("div", {
2208
- className: ce,
2209
- style: V("extra")
2210
- }, c)), Y);
2314
+ className: `${R}-head-wrapper`
2315
+ }, s && /* @__PURE__ */ l.createElement("div", {
2316
+ className: L,
2317
+ style: v("title")
2318
+ }, s), c && /* @__PURE__ */ l.createElement("div", {
2319
+ className: oe,
2320
+ style: v("extra")
2321
+ }, c)), ae);
2211
2322
  }
2212
- const te = B(`${v}-cover`, y("cover")), k = I ? /* @__PURE__ */ l.createElement("div", {
2213
- className: te,
2214
- style: V("cover")
2215
- }, I) : null, me = B(`${v}-body`, y("body")), de = Object.assign(Object.assign({}, s), V("body")), ne = /* @__PURE__ */ l.createElement("div", {
2216
- className: me,
2217
- style: de
2218
- }, b ? Q : p), ge = B(`${v}-actions`, y("actions")), O = w != null && w.length ? /* @__PURE__ */ l.createElement(hn, {
2219
- actionClasses: ge,
2220
- actionStyle: V("actions"),
2221
- actions: w
2222
- }) : null, le = pa(x, ["onTabChange"]), ye = B(v, m == null ? void 0 : m.className, {
2223
- [`${v}-loading`]: b,
2224
- [`${v}-bordered`]: g,
2225
- [`${v}-hoverable`]: G,
2226
- [`${v}-contain-grid`]: se,
2227
- [`${v}-contain-tabs`]: P == null ? void 0 : P.length,
2228
- [`${v}-${j}`]: j,
2229
- [`${v}-type-${T}`]: !!T,
2230
- [`${v}-rtl`]: _ === "rtl"
2231
- }, a, r, ie, K), Pe = Object.assign(Object.assign({}, m == null ? void 0 : m.style), i);
2232
- return F(/* @__PURE__ */ l.createElement("div", Object.assign({
2323
+ const he = A(`${R}-cover`, H("cover")), fe = C ? /* @__PURE__ */ l.createElement("div", {
2324
+ className: he,
2325
+ style: v("cover")
2326
+ }, C) : null, ie = A(`${R}-body`, H("body")), $e = Object.assign(Object.assign({}, d), v("body")), z = /* @__PURE__ */ l.createElement("div", {
2327
+ className: ie,
2328
+ style: $e
2329
+ }, m ? w : $), de = A(`${R}-actions`, H("actions")), xe = N != null && N.length ? /* @__PURE__ */ l.createElement(zn, {
2330
+ actionClasses: de,
2331
+ actionStyle: v("actions"),
2332
+ actions: N
2333
+ }) : null, Le = Ra(T, ["onTabChange"]), Xe = A(R, f == null ? void 0 : f.className, {
2334
+ [`${R}-loading`]: m,
2335
+ [`${R}-bordered`]: _ !== "borderless",
2336
+ [`${R}-hoverable`]: X,
2337
+ [`${R}-contain-grid`]: J,
2338
+ [`${R}-contain-tabs`]: h == null ? void 0 : h.length,
2339
+ [`${R}-${F}`]: F,
2340
+ [`${R}-type-${B}`]: !!B,
2341
+ [`${R}-rtl`]: S === "rtl"
2342
+ }, a, r, ee, ve), qe = Object.assign(Object.assign({}, f == null ? void 0 : f.style), o);
2343
+ return U(/* @__PURE__ */ l.createElement("div", Object.assign({
2233
2344
  ref: t
2234
- }, le, {
2235
- className: ye,
2236
- style: Pe
2237
- }), L, k, ne, O));
2345
+ }, Le, {
2346
+ className: Xe,
2347
+ style: qe
2348
+ }), Q, fe, z, xe));
2238
2349
  });
2239
- var yn = function(e, t) {
2350
+ var Ln = function(e, t) {
2240
2351
  var n = {};
2241
2352
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
2242
2353
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
2243
2354
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
2244
2355
  return n;
2245
2356
  };
2246
- const Sn = (e) => {
2357
+ const Dn = (e) => {
2247
2358
  const {
2248
2359
  prefixCls: t,
2249
2360
  className: n,
2250
2361
  avatar: a,
2251
2362
  title: r,
2252
- description: i
2253
- } = e, c = yn(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2254
- getPrefixCls: o
2255
- } = l.useContext(De), s = o("card", t), u = B(`${s}-meta`, n), b = a ? /* @__PURE__ */ l.createElement("div", {
2256
- className: `${s}-meta-avatar`
2257
- }, a) : null, g = r ? /* @__PURE__ */ l.createElement("div", {
2258
- className: `${s}-meta-title`
2259
- }, r) : null, h = i ? /* @__PURE__ */ l.createElement("div", {
2260
- className: `${s}-meta-description`
2261
- }, i) : null, T = g || h ? /* @__PURE__ */ l.createElement("div", {
2262
- className: `${s}-meta-detail`
2263
- }, g, h) : null;
2363
+ description: o
2364
+ } = e, c = Ln(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2365
+ getPrefixCls: i
2366
+ } = l.useContext(Me), d = i("card", t), s = A(`${d}-meta`, n), m = a ? /* @__PURE__ */ l.createElement("div", {
2367
+ className: `${d}-meta-avatar`
2368
+ }, a) : null, p = r ? /* @__PURE__ */ l.createElement("div", {
2369
+ className: `${d}-meta-title`
2370
+ }, r) : null, y = o ? /* @__PURE__ */ l.createElement("div", {
2371
+ className: `${d}-meta-description`
2372
+ }, o) : null, E = p || y ? /* @__PURE__ */ l.createElement("div", {
2373
+ className: `${d}-meta-detail`
2374
+ }, p, y) : null;
2264
2375
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, c, {
2265
- className: u
2266
- }), b, T);
2267
- }, He = $n;
2268
- He.Grid = Vt;
2269
- He.Meta = Sn;
2270
- process.env.NODE_ENV !== "production" && (He.displayName = "Card");
2271
- const _n = "_kpiCard_19chq_43", xn = "_width430_19chq_49", Cn = "_width384_19chq_58", wn = "_flexCol_19chq_62", En = "_flexRow_19chq_67", Tn = "_title_19chq_72", Pn = "_content_19chq_98", $e = {
2272
- kpiCard: _n,
2273
- width430: xn,
2274
- width384: Cn,
2275
- flexCol: wn,
2276
- flexRow: En,
2277
- title: Tn,
2278
- content: Pn
2376
+ className: s
2377
+ }), m, E);
2378
+ }, Ke = Mn;
2379
+ Ke.Grid = Zt;
2380
+ Ke.Meta = Dn;
2381
+ process.env.NODE_ENV !== "production" && (Ke.displayName = "Card");
2382
+ const Bn = "_kpiCard_19chq_43", jn = "_width430_19chq_49", An = "_width384_19chq_58", Gn = "_flexCol_19chq_62", Hn = "_flexRow_19chq_67", Wn = "_title_19chq_72", Vn = "_content_19chq_98", _e = {
2383
+ kpiCard: Bn,
2384
+ width430: jn,
2385
+ width384: An,
2386
+ flexCol: Gn,
2387
+ flexRow: Hn,
2388
+ title: Wn,
2389
+ content: Vn
2279
2390
  };
2280
- function Dn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2281
- return /* @__PURE__ */ Te(He, { className: ia($e.kpiCard, a ? $e.width430 : $e.width384), children: e && t ? /* @__PURE__ */ Te("div", { className: $e.flexCol, children: /* @__PURE__ */ gt("div", { className: $e.flexRow, children: [
2391
+ function Zn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2392
+ return /* @__PURE__ */ ze(Ke, { className: pa(_e.kpiCard, a ? _e.width430 : _e.width384), children: e && t ? /* @__PURE__ */ ze("div", { className: _e.flexCol, children: /* @__PURE__ */ Et("div", { className: _e.flexRow, children: [
2282
2393
  n,
2283
- /* @__PURE__ */ gt("div", { className: $e.flexCol, children: [
2284
- /* @__PURE__ */ Te("span", { className: $e.title, children: e }),
2285
- /* @__PURE__ */ Te("span", { className: $e.content, children: t })
2394
+ /* @__PURE__ */ Et("div", { className: _e.flexCol, children: [
2395
+ /* @__PURE__ */ ze("span", { className: _e.title, children: e }),
2396
+ /* @__PURE__ */ ze("span", { className: _e.content, children: t })
2286
2397
  ] })
2287
- ] }) }) : /* @__PURE__ */ Te(ra, {}) });
2398
+ ] }) }) : /* @__PURE__ */ ze(ga, {}) });
2288
2399
  }
2289
2400
  export {
2290
- Dn as KpiCard
2401
+ Zn as KpiCard
2291
2402
  };