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

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 (38) hide show
  1. package/dist/{Box-CmKt1PwF.js → Box-DIkPDmkQ.js} +4 -4
  2. package/dist/{Button-BT8r3F_d.js → Button-DX-oo-0S.js} +5 -5
  3. package/dist/{ButtonBase-By486Sca.js → ButtonBase-OBo-BQii.js} +3 -3
  4. package/dist/EllipsisOutlined-DgMtO3ok.js +2467 -0
  5. package/dist/PurePanel-DOohzuQB.js +2212 -0
  6. package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-BekbYx_y.js} +161 -158
  7. package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-WucWs2wn.js} +1564 -1529
  8. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  9. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  10. package/dist/components/CustomButton/CustomButton.js +1 -1
  11. package/dist/components/CustomPagination/CustomPagination.js +4 -4
  12. package/dist/components/ErrorModal/ErrorModal.js +5 -6
  13. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  14. package/dist/components/InfoModal/InfoModal.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  16. package/dist/components/KpiCard/KpiCard.js +995 -892
  17. package/dist/components/LoadingAnimation/LoadingAnimation.js +5 -5
  18. package/dist/components/Login/Login.js +681 -674
  19. package/dist/components/Login/Login.stories.js +1586 -1546
  20. package/dist/components/SideMenu/SideMenu.js +1 -1
  21. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  22. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  23. package/dist/components/index.js +1 -1
  24. package/dist/context-DcMzUd6b.js +7343 -0
  25. package/dist/{createSvgIcon-B8ya7kb4.js → createSvgIcon-C53fLlQy.js} +5 -5
  26. package/dist/generateUtilityClasses-B5BV6O-J.js +3367 -0
  27. package/dist/{index-1vDmwq0E.js → index-Bb1SSZdZ.js} +6718 -6719
  28. package/dist/index-Cfhdtvoc.js +1689 -0
  29. package/dist/main.js +1 -1
  30. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  31. package/dist/types/Column.d.ts +2 -0
  32. package/package.json +33 -31
  33. package/dist/EllipsisOutlined-CtmB5yDB.js +0 -2470
  34. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  35. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  36. package/dist/index-DsP9yT3s.js +0 -1551
  37. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  38. 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-DcMzUd6b.js";
7
+ import { R as Ia, S as za } from "../../Skeleton-BekbYx_y.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-DgMtO3ok.js";
9
+ import { a as pe } from "../../objectWithoutPropertiesLoose-DYizGgyG.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,534 @@ 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
+ case "ArrowLeft": {
523
+ g && Pe(V ? 1 : -1);
524
+ break;
525
+ }
526
+ case "ArrowRight": {
527
+ g && Pe(V ? -1 : 1);
528
+ break;
529
+ }
530
+ case "ArrowUp": {
531
+ b.preventDefault(), g || Pe(-1);
532
+ break;
533
+ }
534
+ case "ArrowDown": {
535
+ b.preventDefault(), g || Pe(1);
536
+ break;
537
+ }
538
+ case "Home": {
539
+ b.preventDefault(), Re(ue);
540
+ break;
541
+ }
542
+ case "End": {
543
+ b.preventDefault(), Re(le);
544
+ break;
545
+ }
546
+ case "Enter":
547
+ case "Space": {
548
+ b.preventDefault(), B(Ee, b);
549
+ break;
550
+ }
551
+ case "Backspace":
552
+ case "Delete": {
553
+ var Te = ge.indexOf(Ee), ce = P.find(function(Ne) {
554
+ return Ne.key === Ee;
555
+ }), Je = lt(ce == null ? void 0 : ce.closable, ce == null ? void 0 : ce.closeIcon, s, ce == null ? void 0 : ce.disabled);
556
+ Je && (b.preventDefault(), b.stopPropagation(), s.onEdit("remove", {
557
+ key: Ee,
558
+ event: b
559
+ }), Te === ge.length - 1 ? Pe(-1) : Pe(1));
560
+ break;
561
+ }
485
562
  }
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, {
563
+ }, Be = {};
564
+ g ? Be[i ? "marginRight" : "marginLeft"] = y : Be.marginTop = y;
565
+ var $t = P.map(function(I, b) {
566
+ var D = I.key;
567
+ return /* @__PURE__ */ l.createElement(Qa, {
491
568
  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);
569
+ prefixCls: $,
570
+ key: D,
571
+ tab: I,
572
+ style: b === 0 ? void 0 : Be,
573
+ closable: I.closable,
574
+ editable: s,
575
+ active: D === c,
576
+ focus: D === Ee,
577
+ renderWrapper: E,
578
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
579
+ tabCount: ge.length,
580
+ currentPosition: b + 1,
581
+ onClick: function(ue) {
582
+ B(D, ue);
503
583
  },
584
+ onKeyDown: la,
504
585
  onFocus: function() {
505
- lt(q), Ke(), D.current && (o || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
586
+ oa || Re(D), mt(D), Ye(), q.current && (i || (q.current.scrollLeft = 0), q.current.scrollTop = 0);
587
+ },
588
+ onBlur: function() {
589
+ Re(void 0);
590
+ },
591
+ onMouseDown: function() {
592
+ ht(!0);
593
+ },
594
+ onMouseUp: function() {
595
+ ht(!1);
506
596
  }
507
597
  });
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
598
+ }), yt = function() {
599
+ return qe(function() {
600
+ var b, D = /* @__PURE__ */ new Map(), V = (b = O.current) === null || b === void 0 ? void 0 : b.getBoundingClientRect();
601
+ return P.forEach(function(ue) {
602
+ var le, Te = ue.key, ce = (le = O.current) === null || le === void 0 ? void 0 : le.querySelector('[data-node-key="'.concat(Ft(Te), '"]'));
603
+ if (ce) {
604
+ var Je = Za(ce, V), Ne = M(Je, 4), va = Ne[0], fa = Ne[1], ba = Ne[2], ma = Ne[3];
605
+ D.set(Te, {
606
+ width: va,
607
+ height: fa,
608
+ left: ba,
609
+ top: ma
520
610
  });
521
611
  }
522
- }), q;
612
+ }), D;
523
613
  });
524
614
  };
525
- fe(function() {
526
- st();
527
- }, [N.map(function(H) {
528
- return H.key;
615
+ me(function() {
616
+ yt();
617
+ }, [P.map(function(I) {
618
+ return I.key;
529
619
  }).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
620
+ var je = qt(function() {
621
+ var I = Oe(G), b = Oe(K), D = Oe(X);
622
+ w([I[0] - b[0] - D[0], I[1] - b[1] - D[1]]);
623
+ var V = Oe(T);
624
+ fe(V);
625
+ var ue = Oe(x);
626
+ de(ue);
627
+ var le = Oe(O);
628
+ F([le[0] - V[0], le[1] - V[1]]), yt();
629
+ }), ca = P.slice(0, aa), sa = P.slice(na + 1), St = [].concat(Tt(ca), Tt(sa)), _t = W.get(c), da = Wa({
630
+ activeTabOffset: _t,
631
+ horizontal: g,
632
+ indicator: N,
633
+ rtl: i
634
+ }), ua = da.style;
635
+ me(function() {
636
+ mt();
637
+ }, [c, ye, we, Dt(_t), Dt(W), g]), me(function() {
638
+ je();
639
+ }, [i]);
640
+ var xt = !!St.length, Ie = "".concat($, "-nav-wrap"), Qe, Ze, Ct, wt;
641
+ return g ? i ? (Ze = _ > 0, Qe = _ !== we) : (Qe = _ < 0, Ze = _ !== ye) : (Ct = J < 0, wt = J !== ye), /* @__PURE__ */ l.createElement(et, {
642
+ onResize: je
553
643
  }, /* @__PURE__ */ l.createElement("div", {
554
- ref: ua(t, z),
644
+ ref: wa(t, G),
555
645
  role: "tablist",
556
- className: B("".concat(f, "-nav"), n),
646
+ "aria-orientation": g ? "horizontal" : "vertical",
647
+ className: A("".concat($, "-nav"), n),
557
648
  style: a,
558
649
  onKeyDown: function() {
559
- Ke();
650
+ Ye();
560
651
  }
561
- }, /* @__PURE__ */ l.createElement(Ye, {
562
- ref: G,
652
+ }, /* @__PURE__ */ l.createElement(at, {
653
+ ref: K,
563
654
  position: "left",
564
- extra: s,
565
- prefixCls: f
566
- }), /* @__PURE__ */ l.createElement(Ue, {
567
- onResize: Oe
655
+ extra: d,
656
+ prefixCls: $
657
+ }), /* @__PURE__ */ l.createElement(et, {
658
+ onResize: je
568
659
  }, /* @__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
660
+ 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)),
661
+ ref: q
662
+ }, /* @__PURE__ */ l.createElement(et, {
663
+ onResize: je
573
664
  }, /* @__PURE__ */ l.createElement("div", {
574
- ref: S,
575
- className: "".concat(f, "-nav-list"),
665
+ ref: O,
666
+ className: "".concat($, "-nav-list"),
576
667
  style: {
577
- transform: "translate(".concat(y, "px, ").concat(F, "px)"),
578
- transition: Ne ? "none" : void 0
668
+ transform: "translate(".concat(_, "px, ").concat(J, "px)"),
669
+ transition: De ? "none" : void 0
579
670
  }
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
671
+ }, $t, /* @__PURE__ */ l.createElement(Ut, {
672
+ ref: T,
673
+ prefixCls: $,
674
+ locale: m,
675
+ editable: s,
676
+ style: se(se({}, $t.length === 0 ? void 0 : Be), {}, {
677
+ visibility: xt ? "hidden" : null
587
678
  })
588
679
  }), /* @__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,
680
+ className: A("".concat($, "-ink-bar"), ne({}, "".concat($, "-ink-bar-animated"), o.inkBar)),
681
+ style: ua
682
+ }))))), /* @__PURE__ */ l.createElement(ka, pe({}, e, {
683
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
593
684
  ref: x,
594
- prefixCls: f,
595
- tabs: dt,
596
- className: !vt && Kt,
597
- tabMoving: !!Ne
598
- })), /* @__PURE__ */ l.createElement(Ye, {
599
- ref: W,
685
+ prefixCls: $,
686
+ tabs: St,
687
+ className: !xt && Jt,
688
+ tabMoving: !!De
689
+ })), /* @__PURE__ */ l.createElement(at, {
690
+ ref: X,
600
691
  position: "right",
601
- extra: s,
602
- prefixCls: f
692
+ extra: d,
693
+ prefixCls: $
603
694
  })));
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;
695
+ }), ct = /* @__PURE__ */ l.forwardRef(function(e, t) {
696
+ var n = e.prefixCls, a = e.className, r = e.style, o = e.id, c = e.active, i = e.tabKey, d = e.children;
606
697
  return /* @__PURE__ */ l.createElement("div", {
607
- id: i && "".concat(i, "-panel-").concat(o),
698
+ id: o && "".concat(o, "-panel-").concat(i),
608
699
  role: "tabpanel",
609
700
  tabIndex: c ? 0 : -1,
610
- "aria-labelledby": i && "".concat(i, "-tab-").concat(o),
701
+ "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
611
702
  "aria-hidden": !c,
612
703
  style: r,
613
- className: B(n, c && "".concat(n, "-active"), a),
704
+ className: A(n, c && "".concat(n, "-active"), a),
614
705
  ref: t
615
- }, s);
706
+ }, d);
616
707
  });
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;
708
+ process.env.NODE_ENV !== "production" && (ct.displayName = "TabPane");
709
+ var Ja = ["renderTabBar"], en = ["label", "key"], Yt = function(t) {
710
+ var n = t.renderTabBar, a = He(t, Ja), r = l.useContext(Ve), o = r.tabs;
620
711
  if (n) {
621
- var c = re(re({}, a), {}, {
712
+ var c = se(se({}, a), {}, {
622
713
  // 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));
714
+ panes: o.map(function(i) {
715
+ var d = i.label, s = i.key, m = He(i, en);
716
+ return /* @__PURE__ */ l.createElement(ct, pe({
717
+ tab: d,
718
+ key: s,
719
+ tabKey: s
720
+ }, m));
630
721
  })
631
722
  });
632
- return n(c, Tt);
723
+ return n(c, Bt);
633
724
  }
634
- return /* @__PURE__ */ l.createElement(Tt, a);
725
+ return /* @__PURE__ */ l.createElement(Bt, a);
635
726
  };
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");
727
+ process.env.NODE_ENV !== "production" && (Yt.displayName = "TabNavListWrapper");
728
+ var tn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], an = function(t) {
729
+ 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
730
  return /* @__PURE__ */ l.createElement("div", {
640
- className: B("".concat(s, "-content-holder"))
731
+ className: A("".concat(d, "-content-holder"))
641
732
  }, /* @__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,
733
+ className: A("".concat(d, "-content"), "".concat(d, "-content-").concat(o), ne({}, "".concat(d, "-content-animated"), m))
734
+ }, s.map(function(y) {
735
+ var E = y.key, B = y.forceRender, C = y.style, N = y.className, h = y.destroyInactiveTabPane, $ = He(y, tn), P = E === a;
736
+ return /* @__PURE__ */ l.createElement(Ea, pe({
737
+ key: E,
738
+ visible: P,
739
+ forceRender: B,
740
+ removeOnLeave: !!(c || h),
741
+ leavedClassName: "".concat(p, "-hidden")
742
+ }, r.tabPaneMotion), function(G, K) {
743
+ var X = G.style, q = G.className;
744
+ return /* @__PURE__ */ l.createElement(ct, pe({}, $, {
745
+ prefixCls: p,
655
746
  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
747
+ tabKey: E,
748
+ animated: m,
749
+ active: P,
750
+ style: se(se({}, C), X),
751
+ className: A(N, q),
752
+ ref: K
662
753
  }));
663
754
  });
664
755
  })));
665
756
  };
666
- function Wa() {
757
+ function nn() {
667
758
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
668
759
  inkBar: !0,
669
760
  tabPane: !1
@@ -674,98 +765,98 @@ function Wa() {
674
765
  } : e === !0 ? t = {
675
766
  inkBar: !0,
676
767
  tabPane: !1
677
- } : t = re({
768
+ } : t = se({
678
769
  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;
770
+ }, 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
771
  }
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;
772
+ 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) {
773
+ 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() {
774
+ return (c || []).filter(function(z) {
775
+ return z && nt(z) === "object" && "key" in z;
685
776
  });
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());
777
+ }, [c]), f = i === "rtl", _ = nn(p), k = Z(!1), H = M(k, 2), v = H[0], J = H[1];
778
+ me(function() {
779
+ J(Ba());
689
780
  }, []);
690
- var ie = $t(function() {
691
- var O;
692
- return (O = m[0]) === null || O === void 0 ? void 0 : O.key;
781
+ var R = Nt(function() {
782
+ var z;
783
+ return (z = S[0]) === null || z === void 0 ? void 0 : z.key;
693
784
  }, {
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;
785
+ value: d,
786
+ defaultValue: s
787
+ }), U = M(R, 2), ee = U[0], ve = U[1], w = Z(function() {
788
+ return S.findIndex(function(z) {
789
+ return z.key === ee;
699
790
  });
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;
791
+ }), j = M(w, 2), Y = j[0], Q = j[1];
792
+ me(function() {
793
+ var z = S.findIndex(function(xe) {
794
+ return xe.key === ee;
704
795
  });
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);
796
+ if (z === -1) {
797
+ var de;
798
+ z = Math.max(0, Math.min(Y, S.length - 1)), ve((de = S[z]) === null || de === void 0 ? void 0 : de.key);
708
799
  }
709
- U(O);
710
- }, [m.map(function(O) {
711
- return O.key;
712
- }).join("_"), Q, j]);
713
- var Y = $t(null, {
800
+ Q(z);
801
+ }, [S.map(function(z) {
802
+ return z.key;
803
+ }).join("_"), ee, Y]);
804
+ var F = Nt(null, {
714
805
  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);
806
+ }), re = M(F, 2), ae = re[0], he = re[1];
807
+ me(function() {
808
+ n || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : jt)), jt += 1);
718
809
  }, []);
719
- function de(O, le) {
720
- W == null || W(O, le);
721
- var ye = O !== Q;
722
- oe(O), ye && (G == null || G(O));
810
+ function fe(z, de) {
811
+ X == null || X(z, de);
812
+ var xe = z !== ee;
813
+ ve(z), xe && (K == null || K(z));
723
814
  }
724
- var ne = {
725
- id: k,
726
- activeKey: Q,
727
- animated: y,
728
- tabPosition: T,
729
- rtl: $,
815
+ var ie = {
816
+ id: ae,
817
+ activeKey: ee,
818
+ animated: _,
819
+ tabPosition: E,
820
+ rtl: f,
730
821
  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,
822
+ }, $e = se(se({}, ie), {}, {
823
+ editable: m,
824
+ locale: h,
825
+ more: $,
826
+ tabBarGutter: B,
827
+ onTabClick: fe,
828
+ onTabScroll: q,
829
+ extra: N,
830
+ style: C,
740
831
  panes: null,
741
- getPopupContainer: S,
832
+ getPopupContainer: O,
742
833
  popupClassName: x,
743
- indicator: R
834
+ indicator: T
744
835
  });
745
- return /* @__PURE__ */ l.createElement(Ae.Provider, {
836
+ return /* @__PURE__ */ l.createElement(Ve.Provider, {
746
837
  value: {
747
- tabs: m,
838
+ tabs: S,
748
839
  prefixCls: r
749
840
  }
750
- }, /* @__PURE__ */ l.createElement("div", be({
841
+ }, /* @__PURE__ */ l.createElement("div", pe({
751
842
  ref: t,
752
843
  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
844
+ className: A(r, "".concat(r, "-").concat(E), ne(ne(ne({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), f), o)
845
+ }, g), /* @__PURE__ */ l.createElement(Yt, pe({}, $e, {
846
+ renderTabBar: G
847
+ })), /* @__PURE__ */ l.createElement(an, pe({
848
+ destroyInactiveTabPane: P
849
+ }, ie, {
850
+ animated: _
760
851
  }))));
761
852
  });
762
- process.env.NODE_ENV !== "production" && (Gt.displayName = "Tabs");
763
- const Ka = {
853
+ process.env.NODE_ENV !== "production" && (kt.displayName = "Tabs");
854
+ const on = {
764
855
  motionAppear: !1,
765
856
  motionEnter: !0,
766
857
  motionLeave: !0
767
858
  };
768
- function Xa(e) {
859
+ function ln(e) {
769
860
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
770
861
  inkBar: !0,
771
862
  tabPane: !1
@@ -778,42 +869,42 @@ function Xa(e) {
778
869
  tabPane: !0
779
870
  } : n = Object.assign({
780
871
  inkBar: !0
781
- }, typeof t == "object" ? t : {}), n.tabPane && (n.tabPaneMotion = Object.assign(Object.assign({}, Ka), {
782
- motionName: ba(e, "switch")
872
+ }, typeof t == "object" ? t : {}), n.tabPane && (n.tabPaneMotion = Object.assign(Object.assign({}, on), {
873
+ motionName: Ta(e, "switch")
783
874
  })), n;
784
875
  }
785
- var qa = function(e, t) {
876
+ var cn = function(e, t) {
786
877
  var n = {};
787
878
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
788
879
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
789
880
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
790
881
  return n;
791
882
  };
792
- function Fa(e) {
883
+ function sn(e) {
793
884
  return e.filter((t) => t);
794
885
  }
795
- function Ua(e, t) {
796
- if (process.env.NODE_ENV !== "production" && Ze("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
886
+ function dn(e, t) {
887
+ if (process.env.NODE_ENV !== "production" && rt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
797
888
  return e;
798
- const n = ma(t).map((a) => {
889
+ const n = Na(t).map((a) => {
799
890
  if (/* @__PURE__ */ l.isValidElement(a)) {
800
891
  const {
801
892
  key: r,
802
- props: i
803
- } = a, c = i || {}, {
804
- tab: o
805
- } = c, s = qa(c, ["tab"]);
893
+ props: o
894
+ } = a, c = o || {}, {
895
+ tab: i
896
+ } = c, d = cn(c, ["tab"]);
806
897
  return Object.assign(Object.assign({
807
898
  key: String(r)
808
- }, s), {
809
- label: o
899
+ }, d), {
900
+ label: i
810
901
  });
811
902
  }
812
903
  return null;
813
904
  });
814
- return Fa(n);
905
+ return sn(n);
815
906
  }
816
- const Ya = (e) => {
907
+ const un = (e) => {
817
908
  const {
818
909
  componentCls: t,
819
910
  motionDurationSlow: n
@@ -848,15 +939,15 @@ const Ya = (e) => {
848
939
  }
849
940
  },
850
941
  // Follow code may reuse in other components
851
- [yt(e, "slide-up"), yt(e, "slide-down")]
942
+ [Ot(e, "slide-up"), Ot(e, "slide-down")]
852
943
  ];
853
- }, Qa = (e) => {
944
+ }, vn = (e) => {
854
945
  const {
855
946
  componentCls: t,
856
947
  tabsCardPadding: n,
857
948
  cardBg: a,
858
949
  cardGutter: r,
859
- colorBorderSecondary: i,
950
+ colorBorderSecondary: o,
860
951
  itemSelectedColor: c
861
952
  } = e;
862
953
  return {
@@ -866,15 +957,19 @@ const Ya = (e) => {
866
957
  margin: 0,
867
958
  padding: n,
868
959
  background: a,
869
- border: `${d(e.lineWidth)} ${e.lineType} ${i}`,
960
+ border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
870
961
  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
871
962
  },
872
963
  [`${t}-tab-active`]: {
873
964
  color: c,
874
965
  background: e.colorBgContainer
875
966
  },
967
+ [`${t}-tab-focus`]: Object.assign({}, Vt(e, -3)),
876
968
  [`${t}-ink-bar`]: {
877
969
  visibility: "hidden"
970
+ },
971
+ [`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]: {
972
+ outline: "none"
878
973
  }
879
974
  },
880
975
  // ========================== Top & Bottom ==========================
@@ -883,7 +978,7 @@ const Ya = (e) => {
883
978
  [`${t}-tab + ${t}-tab`]: {
884
979
  marginLeft: {
885
980
  _skip_check_: !0,
886
- value: d(r)
981
+ value: u(r)
887
982
  }
888
983
  }
889
984
  }
@@ -891,7 +986,7 @@ const Ya = (e) => {
891
986
  [`&${t}-top`]: {
892
987
  [`> ${t}-nav, > div > ${t}-nav`]: {
893
988
  [`${t}-tab`]: {
894
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
989
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
895
990
  },
896
991
  [`${t}-tab-active`]: {
897
992
  borderBottomColor: e.colorBgContainer
@@ -901,7 +996,7 @@ const Ya = (e) => {
901
996
  [`&${t}-bottom`]: {
902
997
  [`> ${t}-nav, > div > ${t}-nav`]: {
903
998
  [`${t}-tab`]: {
904
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
999
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
905
1000
  },
906
1001
  [`${t}-tab-active`]: {
907
1002
  borderTopColor: e.colorBgContainer
@@ -912,7 +1007,7 @@ const Ya = (e) => {
912
1007
  [`&${t}-left, &${t}-right`]: {
913
1008
  [`> ${t}-nav, > div > ${t}-nav`]: {
914
1009
  [`${t}-tab + ${t}-tab`]: {
915
- marginTop: d(r)
1010
+ marginTop: u(r)
916
1011
  }
917
1012
  }
918
1013
  },
@@ -921,7 +1016,7 @@ const Ya = (e) => {
921
1016
  [`${t}-tab`]: {
922
1017
  borderRadius: {
923
1018
  _skip_check_: !0,
924
- value: `${d(e.borderRadiusLG)} 0 0 ${d(e.borderRadiusLG)}`
1019
+ value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
925
1020
  }
926
1021
  },
927
1022
  [`${t}-tab-active`]: {
@@ -937,7 +1032,7 @@ const Ya = (e) => {
937
1032
  [`${t}-tab`]: {
938
1033
  borderRadius: {
939
1034
  _skip_check_: !0,
940
- value: `0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0`
1035
+ value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
941
1036
  }
942
1037
  },
943
1038
  [`${t}-tab-active`]: {
@@ -950,14 +1045,14 @@ const Ya = (e) => {
950
1045
  }
951
1046
  }
952
1047
  };
953
- }, Za = (e) => {
1048
+ }, fn = (e) => {
954
1049
  const {
955
1050
  componentCls: t,
956
1051
  itemHoverColor: n,
957
1052
  dropdownEdgeChildVerticalPadding: a
958
1053
  } = e;
959
1054
  return {
960
- [`${t}-dropdown`]: Object.assign(Object.assign({}, Je(e)), {
1055
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, it(e)), {
961
1056
  position: "absolute",
962
1057
  top: -9999,
963
1058
  left: {
@@ -972,7 +1067,7 @@ const Ya = (e) => {
972
1067
  [`${t}-dropdown-menu`]: {
973
1068
  maxHeight: e.tabsDropdownHeight,
974
1069
  margin: 0,
975
- padding: `${d(a)} 0`,
1070
+ padding: `${u(a)} 0`,
976
1071
  overflowX: "hidden",
977
1072
  overflowY: "auto",
978
1073
  textAlign: {
@@ -985,12 +1080,12 @@ const Ya = (e) => {
985
1080
  borderRadius: e.borderRadiusLG,
986
1081
  outline: "none",
987
1082
  boxShadow: e.boxShadowSecondary,
988
- "&-item": Object.assign(Object.assign({}, ke), {
1083
+ "&-item": Object.assign(Object.assign({}, ot), {
989
1084
  display: "flex",
990
1085
  alignItems: "center",
991
1086
  minWidth: e.tabsDropdownWidth,
992
1087
  margin: 0,
993
- padding: `${d(e.paddingXXS)} ${d(e.paddingSM)}`,
1088
+ padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
994
1089
  color: e.colorText,
995
1090
  fontWeight: "normal",
996
1091
  fontSize: e.fontSize,
@@ -1030,15 +1125,15 @@ const Ya = (e) => {
1030
1125
  }
1031
1126
  })
1032
1127
  };
1033
- }, Ja = (e) => {
1128
+ }, bn = (e) => {
1034
1129
  const {
1035
1130
  componentCls: t,
1036
1131
  margin: n,
1037
1132
  colorBorderSecondary: a,
1038
1133
  horizontalMargin: r,
1039
- verticalItemPadding: i,
1134
+ verticalItemPadding: o,
1040
1135
  verticalItemMargin: c,
1041
- calc: o
1136
+ calc: i
1042
1137
  } = e;
1043
1138
  return {
1044
1139
  // ========================== Top & Bottom ==========================
@@ -1056,7 +1151,7 @@ const Ya = (e) => {
1056
1151
  _skip_check_: !0,
1057
1152
  value: 0
1058
1153
  },
1059
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${a}`,
1154
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${a}`,
1060
1155
  content: "''"
1061
1156
  },
1062
1157
  [`${t}-ink-bar`]: {
@@ -1126,10 +1221,10 @@ const Ya = (e) => {
1126
1221
  [`${t}-left, ${t}-right`]: {
1127
1222
  [`> ${t}-nav, > div > ${t}-nav`]: {
1128
1223
  flexDirection: "column",
1129
- minWidth: o(e.controlHeight).mul(1.25).equal(),
1224
+ minWidth: i(e.controlHeight).mul(1.25).equal(),
1130
1225
  // >>>>>>>>>>> Tab
1131
1226
  [`${t}-tab`]: {
1132
- padding: i,
1227
+ padding: o,
1133
1228
  textAlign: "center"
1134
1229
  },
1135
1230
  [`${t}-tab + ${t}-tab`]: {
@@ -1190,11 +1285,11 @@ const Ya = (e) => {
1190
1285
  [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1191
1286
  marginLeft: {
1192
1287
  _skip_check_: !0,
1193
- value: d(o(e.lineWidth).mul(-1).equal())
1288
+ value: u(i(e.lineWidth).mul(-1).equal())
1194
1289
  },
1195
1290
  borderLeft: {
1196
1291
  _skip_check_: !0,
1197
- value: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1292
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1198
1293
  },
1199
1294
  [`> ${t}-content > ${t}-tabpane`]: {
1200
1295
  paddingLeft: {
@@ -1218,11 +1313,11 @@ const Ya = (e) => {
1218
1313
  order: 0,
1219
1314
  marginRight: {
1220
1315
  _skip_check_: !0,
1221
- value: o(e.lineWidth).mul(-1).equal()
1316
+ value: i(e.lineWidth).mul(-1).equal()
1222
1317
  },
1223
1318
  borderRight: {
1224
1319
  _skip_check_: !0,
1225
- value: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1320
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1226
1321
  },
1227
1322
  [`> ${t}-content > ${t}-tabpane`]: {
1228
1323
  paddingRight: {
@@ -1233,13 +1328,13 @@ const Ya = (e) => {
1233
1328
  }
1234
1329
  }
1235
1330
  };
1236
- }, ka = (e) => {
1331
+ }, mn = (e) => {
1237
1332
  const {
1238
1333
  componentCls: t,
1239
1334
  cardPaddingSM: n,
1240
1335
  cardPaddingLG: a,
1241
1336
  horizontalItemPaddingSM: r,
1242
- horizontalItemPaddingLG: i
1337
+ horizontalItemPaddingLG: o
1243
1338
  } = e;
1244
1339
  return {
1245
1340
  [t]: {
@@ -1254,7 +1349,7 @@ const Ya = (e) => {
1254
1349
  "&-large": {
1255
1350
  [`> ${t}-nav`]: {
1256
1351
  [`${t}-tab`]: {
1257
- padding: i,
1352
+ padding: o,
1258
1353
  fontSize: e.titleFontSizeLG
1259
1354
  }
1260
1355
  }
@@ -1269,19 +1364,19 @@ const Ya = (e) => {
1269
1364
  },
1270
1365
  [`&${t}-bottom`]: {
1271
1366
  [`> ${t}-nav ${t}-tab`]: {
1272
- borderRadius: `0 0 ${d(e.borderRadius)} ${d(e.borderRadius)}`
1367
+ borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
1273
1368
  }
1274
1369
  },
1275
1370
  [`&${t}-top`]: {
1276
1371
  [`> ${t}-nav ${t}-tab`]: {
1277
- borderRadius: `${d(e.borderRadius)} ${d(e.borderRadius)} 0 0`
1372
+ borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
1278
1373
  }
1279
1374
  },
1280
1375
  [`&${t}-right`]: {
1281
1376
  [`> ${t}-nav ${t}-tab`]: {
1282
1377
  borderRadius: {
1283
1378
  _skip_check_: !0,
1284
- value: `0 ${d(e.borderRadius)} ${d(e.borderRadius)} 0`
1379
+ value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
1285
1380
  }
1286
1381
  }
1287
1382
  },
@@ -1289,7 +1384,7 @@ const Ya = (e) => {
1289
1384
  [`> ${t}-nav ${t}-tab`]: {
1290
1385
  borderRadius: {
1291
1386
  _skip_check_: !0,
1292
- value: `${d(e.borderRadius)} 0 0 ${d(e.borderRadius)}`
1387
+ value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
1293
1388
  }
1294
1389
  }
1295
1390
  }
@@ -1303,19 +1398,19 @@ const Ya = (e) => {
1303
1398
  }
1304
1399
  }
1305
1400
  };
1306
- }, en = (e) => {
1401
+ }, gn = (e) => {
1307
1402
  const {
1308
1403
  componentCls: t,
1309
1404
  itemActiveColor: n,
1310
1405
  itemHoverColor: a,
1311
1406
  iconCls: r,
1312
- tabsHorizontalItemMargin: i,
1407
+ tabsHorizontalItemMargin: o,
1313
1408
  horizontalItemPadding: c,
1314
- itemSelectedColor: o,
1315
- itemColor: s
1316
- } = e, u = `${t}-tab`;
1409
+ itemSelectedColor: i,
1410
+ itemColor: d
1411
+ } = e, s = `${t}-tab`;
1317
1412
  return {
1318
- [u]: {
1413
+ [s]: {
1319
1414
  position: "relative",
1320
1415
  WebkitTouchCallout: "none",
1321
1416
  WebkitTapHighlightColor: "transparent",
@@ -1327,20 +1422,20 @@ const Ya = (e) => {
1327
1422
  border: 0,
1328
1423
  outline: "none",
1329
1424
  cursor: "pointer",
1330
- color: s,
1331
- "&-btn, &-remove": Object.assign({
1425
+ color: d,
1426
+ "&-btn, &-remove": {
1332
1427
  "&:focus:not(:focus-visible), &:active": {
1333
1428
  color: n
1334
1429
  }
1335
- }, zt(e)),
1430
+ },
1336
1431
  "&-btn": {
1337
1432
  outline: "none",
1338
1433
  transition: `all ${e.motionDurationSlow}`,
1339
- [`${u}-icon:not(:last-child)`]: {
1434
+ [`${s}-icon:not(:last-child)`]: {
1340
1435
  marginInlineEnd: e.marginSM
1341
1436
  }
1342
1437
  },
1343
- "&-remove": {
1438
+ "&-remove": Object.assign({
1344
1439
  flex: "none",
1345
1440
  marginRight: {
1346
1441
  _skip_check_: !0,
@@ -1360,24 +1455,25 @@ const Ya = (e) => {
1360
1455
  "&:hover": {
1361
1456
  color: e.colorTextHeading
1362
1457
  }
1363
- },
1458
+ }, tt(e)),
1364
1459
  "&:hover": {
1365
1460
  color: a
1366
1461
  },
1367
- [`&${u}-active ${u}-btn`]: {
1368
- color: o,
1462
+ [`&${s}-active ${s}-btn`]: {
1463
+ color: i,
1369
1464
  textShadow: e.tabsActiveTextShadow
1370
1465
  },
1371
- [`&${u}-disabled`]: {
1466
+ [`&${s}-focus ${s}-btn`]: Object.assign({}, Vt(e)),
1467
+ [`&${s}-disabled`]: {
1372
1468
  color: e.colorTextDisabled,
1373
1469
  cursor: "not-allowed"
1374
1470
  },
1375
- [`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]: {
1471
+ [`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]: {
1376
1472
  "&:focus, &:active": {
1377
1473
  color: e.colorTextDisabled
1378
1474
  }
1379
1475
  },
1380
- [`& ${u}-remove ${r}`]: {
1476
+ [`& ${s}-remove ${r}`]: {
1381
1477
  margin: 0
1382
1478
  },
1383
1479
  [`${r}:not(:last-child)`]: {
@@ -1387,20 +1483,20 @@ const Ya = (e) => {
1387
1483
  }
1388
1484
  }
1389
1485
  },
1390
- [`${u} + ${u}`]: {
1486
+ [`${s} + ${s}`]: {
1391
1487
  margin: {
1392
1488
  _skip_check_: !0,
1393
- value: i
1489
+ value: o
1394
1490
  }
1395
1491
  }
1396
1492
  };
1397
- }, tn = (e) => {
1493
+ }, pn = (e) => {
1398
1494
  const {
1399
1495
  componentCls: t,
1400
1496
  tabsHorizontalItemMarginRTL: n,
1401
1497
  iconCls: a,
1402
1498
  cardGutter: r,
1403
- calc: i
1499
+ calc: o
1404
1500
  } = e;
1405
1501
  return {
1406
1502
  [`${t}-rtl`]: {
@@ -1424,17 +1520,17 @@ const Ya = (e) => {
1424
1520
  },
1425
1521
  marginLeft: {
1426
1522
  _skip_check_: !0,
1427
- value: d(e.marginSM)
1523
+ value: u(e.marginSM)
1428
1524
  }
1429
1525
  },
1430
1526
  [`${t}-tab-remove`]: {
1431
1527
  marginRight: {
1432
1528
  _skip_check_: !0,
1433
- value: d(e.marginXS)
1529
+ value: u(e.marginXS)
1434
1530
  },
1435
1531
  marginLeft: {
1436
1532
  _skip_check_: !0,
1437
- value: d(i(e.marginXXS).mul(-1).equal())
1533
+ value: u(o(e.marginXXS).mul(-1).equal())
1438
1534
  },
1439
1535
  [a]: {
1440
1536
  margin: 0
@@ -1486,18 +1582,18 @@ const Ya = (e) => {
1486
1582
  }
1487
1583
  }
1488
1584
  };
1489
- }, an = (e) => {
1585
+ }, hn = (e) => {
1490
1586
  const {
1491
1587
  componentCls: t,
1492
1588
  tabsCardPadding: n,
1493
1589
  cardHeight: a,
1494
1590
  cardGutter: r,
1495
- itemHoverColor: i,
1591
+ itemHoverColor: o,
1496
1592
  itemActiveColor: c,
1497
- colorBorderSecondary: o
1593
+ colorBorderSecondary: i
1498
1594
  } = e;
1499
1595
  return {
1500
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Je(e)), {
1596
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, it(e)), {
1501
1597
  display: "flex",
1502
1598
  // ========================== Navigation ==========================
1503
1599
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -1563,26 +1659,25 @@ const Ya = (e) => {
1563
1659
  },
1564
1660
  [`${t}-nav-add`]: Object.assign({
1565
1661
  minWidth: a,
1566
- minHeight: a,
1567
1662
  marginLeft: {
1568
1663
  _skip_check_: !0,
1569
1664
  value: r
1570
1665
  },
1571
- padding: `0 ${d(e.paddingXS)}`,
1666
+ padding: u(e.paddingXS),
1572
1667
  background: "transparent",
1573
- border: `${d(e.lineWidth)} ${e.lineType} ${o}`,
1574
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`,
1668
+ border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
1669
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
1575
1670
  outline: "none",
1576
1671
  cursor: "pointer",
1577
1672
  color: e.colorText,
1578
1673
  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
1579
1674
  "&:hover": {
1580
- color: i
1675
+ color: o
1581
1676
  },
1582
1677
  "&:active, &:focus:not(:focus-visible)": {
1583
1678
  color: c
1584
1679
  }
1585
- }, zt(e))
1680
+ }, tt(e, -3))
1586
1681
  },
1587
1682
  [`${t}-extra-content`]: {
1588
1683
  flex: "none"
@@ -1593,7 +1688,7 @@ const Ya = (e) => {
1593
1688
  background: e.inkBarColor,
1594
1689
  pointerEvents: "none"
1595
1690
  }
1596
- }), en(e)), {
1691
+ }), gn(e)), {
1597
1692
  // =========================== TabPanes ===========================
1598
1693
  [`${t}-content`]: {
1599
1694
  position: "relative",
@@ -1604,12 +1699,11 @@ const Ya = (e) => {
1604
1699
  minWidth: 0,
1605
1700
  minHeight: 0
1606
1701
  },
1607
- [`${t}-tabpane`]: {
1608
- outline: "none",
1702
+ [`${t}-tabpane`]: Object.assign(Object.assign({}, tt(e)), {
1609
1703
  "&-hidden": {
1610
1704
  display: "none"
1611
1705
  }
1612
- }
1706
+ })
1613
1707
  }),
1614
1708
  [`${t}-centered`]: {
1615
1709
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -1621,7 +1715,7 @@ const Ya = (e) => {
1621
1715
  }
1622
1716
  }
1623
1717
  };
1624
- }, nn = (e) => {
1718
+ }, $n = (e) => {
1625
1719
  const t = e.controlHeightLG;
1626
1720
  return {
1627
1721
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -1652,131 +1746,131 @@ const Ya = (e) => {
1652
1746
  itemActiveColor: e.colorPrimaryActive,
1653
1747
  cardGutter: e.marginXXS / 2
1654
1748
  };
1655
- }, rn = Ot("Tabs", (e) => {
1656
- const t = It(e, {
1749
+ }, yn = Ht("Tabs", (e) => {
1750
+ const t = Wt(e, {
1657
1751
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
1658
1752
  tabsCardPadding: e.cardPadding,
1659
1753
  dropdownEdgeChildVerticalPadding: e.paddingXXS,
1660
1754
  tabsActiveTextShadow: "0 0 0.25px currentcolor",
1661
1755
  tabsDropdownHeight: 200,
1662
1756
  tabsDropdownWidth: 120,
1663
- tabsHorizontalItemMargin: `0 0 0 ${d(e.horizontalItemGutter)}`,
1664
- tabsHorizontalItemMarginRTL: `0 0 0 ${d(e.horizontalItemGutter)}`
1757
+ tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
1758
+ tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
1665
1759
  });
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) {
1760
+ return [mn(t), pn(t), bn(t), fn(t), vn(t), hn(t), un(t)];
1761
+ }, $n), Qt = () => null;
1762
+ process.env.NODE_ENV !== "production" && (Qt.displayName = "DeprecatedTabPane");
1763
+ var Sn = function(e, t) {
1670
1764
  var n = {};
1671
1765
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
1672
1766
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
1673
1767
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1674
1768
  return n;
1675
1769
  };
1676
- const tt = (e) => {
1677
- var t, n, a, r, i, c, o, s, u, b, g;
1770
+ const st = (e) => {
1771
+ var t, n, a, r, o, c, i, d, s, m, p;
1678
1772
  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,
1773
+ type: y,
1774
+ className: E,
1775
+ rootClassName: B,
1776
+ size: C,
1777
+ onEdit: N,
1778
+ hideAdd: h,
1779
+ centered: $,
1780
+ addIcon: P,
1781
+ removeIcon: G,
1782
+ moreIcon: K,
1783
+ more: X,
1784
+ popupClassName: q,
1785
+ children: O,
1692
1786
  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,
1787
+ animated: T,
1788
+ style: g,
1789
+ indicatorSize: S,
1790
+ indicator: f
1791
+ } = e, _ = Sn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1792
+ prefixCls: k
1793
+ } = _, {
1794
+ direction: H,
1701
1795
  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) => {
1796
+ getPrefixCls: J,
1797
+ getPopupContainer: R
1798
+ } = l.useContext(Me), U = J("tabs", k), ee = Oa(U), [ve, w, j] = yn(U, ee);
1799
+ let Y;
1800
+ y === "editable-card" && (Y = {
1801
+ onEdit: (ie, $e) => {
1708
1802
  let {
1709
- key: O,
1710
- event: le
1711
- } = ge;
1712
- P == null || P(ne === "add" ? le : O, ne);
1803
+ key: z,
1804
+ event: de
1805
+ } = $e;
1806
+ N == null || N(ie === "add" ? de : z, ie);
1713
1807
  },
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
1808
+ removeIcon: (t = G ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ia, null),
1809
+ addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Xt, null),
1810
+ showAdd: h !== !0
1717
1811
  });
1718
- const U = F();
1812
+ const Q = J();
1719
1813
  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.");
1814
+ const ie = rt("Tabs");
1815
+ 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
1816
  }
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
1817
+ 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 = {
1818
+ 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,
1819
+ 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
1820
  };
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,
1821
+ return ve(/* @__PURE__ */ l.createElement(kt, Object.assign({
1822
+ direction: H,
1823
+ getPopupContainer: R
1824
+ }, _, {
1825
+ items: re,
1826
+ className: A({
1827
+ [`${U}-${F}`]: F,
1828
+ [`${U}-card`]: ["card", "editable-card"].includes(y),
1829
+ [`${U}-editable-card`]: y === "editable-card",
1830
+ [`${U}-centered`]: $
1831
+ }, v == null ? void 0 : v.className, E, B, w, j, ee),
1832
+ popupClassName: A(q, w, j, ee),
1833
+ style: he,
1834
+ editable: Y,
1741
1835
  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
1836
+ 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),
1837
+ transitionName: `${Q}-slide-up`
1838
+ }, X),
1839
+ prefixCls: U,
1840
+ animated: ae,
1841
+ indicator: fe
1748
1842
  })));
1749
1843
  };
1750
- tt.TabPane = Wt;
1751
- process.env.NODE_ENV !== "production" && (tt.displayName = "Tabs");
1752
- var ln = function(e, t) {
1844
+ st.TabPane = Qt;
1845
+ process.env.NODE_ENV !== "production" && (st.displayName = "Tabs");
1846
+ var _n = function(e, t) {
1753
1847
  var n = {};
1754
1848
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
1755
1849
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
1756
1850
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1757
1851
  return n;
1758
1852
  };
1759
- const Vt = (e) => {
1853
+ const Zt = (e) => {
1760
1854
  var {
1761
1855
  prefixCls: t,
1762
1856
  className: n,
1763
1857
  hoverable: a = !0
1764
- } = e, r = ln(e, ["prefixCls", "className", "hoverable"]);
1858
+ } = e, r = _n(e, ["prefixCls", "className", "hoverable"]);
1765
1859
  const {
1766
- getPrefixCls: i
1767
- } = l.useContext(De), c = i("card", t), o = B(`${c}-grid`, n, {
1860
+ getPrefixCls: o
1861
+ } = l.useContext(Me), c = o("card", t), i = A(`${c}-grid`, n, {
1768
1862
  [`${c}-grid-hoverable`]: a
1769
1863
  });
1770
1864
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
1771
- className: o
1865
+ className: i
1772
1866
  }));
1773
- }, cn = (e) => {
1867
+ }, xn = (e) => {
1774
1868
  const {
1775
1869
  antCls: t,
1776
1870
  componentCls: n,
1777
1871
  headerHeight: a,
1778
- cardPaddingBase: r,
1779
- tabsMarginBottom: i
1872
+ headerPadding: r,
1873
+ tabsMarginBottom: o
1780
1874
  } = e;
1781
1875
  return Object.assign(Object.assign({
1782
1876
  display: "flex",
@@ -1784,14 +1878,14 @@ const Vt = (e) => {
1784
1878
  flexDirection: "column",
1785
1879
  minHeight: a,
1786
1880
  marginBottom: -1,
1787
- padding: `0 ${d(r)}`,
1881
+ padding: `0 ${u(r)}`,
1788
1882
  color: e.colorTextHeading,
1789
1883
  fontWeight: e.fontWeightStrong,
1790
1884
  fontSize: e.headerFontSize,
1791
1885
  background: e.headerBg,
1792
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
1793
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
1794
- }, je()), {
1886
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
1887
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
1888
+ }, We()), {
1795
1889
  "&-wrapper": {
1796
1890
  width: "100%",
1797
1891
  display: "flex",
@@ -1800,7 +1894,7 @@ const Vt = (e) => {
1800
1894
  "&-title": Object.assign(Object.assign({
1801
1895
  display: "inline-block",
1802
1896
  flex: 1
1803
- }, ke), {
1897
+ }, ot), {
1804
1898
  [`
1805
1899
  > ${n}-typography,
1806
1900
  > ${n}-typography-edit-content
@@ -1812,16 +1906,16 @@ const Vt = (e) => {
1812
1906
  }),
1813
1907
  [`${t}-tabs-top`]: {
1814
1908
  clear: "both",
1815
- marginBottom: i,
1909
+ marginBottom: o,
1816
1910
  color: e.colorText,
1817
1911
  fontWeight: "normal",
1818
1912
  fontSize: e.fontSize,
1819
1913
  "&-bar": {
1820
- borderBottom: `${d(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
1914
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
1821
1915
  }
1822
1916
  }
1823
1917
  });
1824
- }, sn = (e) => {
1918
+ }, Cn = (e) => {
1825
1919
  const {
1826
1920
  cardPaddingBase: t,
1827
1921
  colorBorderSecondary: n,
@@ -1834,11 +1928,11 @@ const Vt = (e) => {
1834
1928
  border: 0,
1835
1929
  borderRadius: 0,
1836
1930
  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;
1931
+ ${u(r)} 0 0 0 ${n},
1932
+ 0 ${u(r)} 0 0 ${n},
1933
+ ${u(r)} ${u(r)} 0 0 ${n},
1934
+ ${u(r)} 0 0 0 ${n} inset,
1935
+ 0 ${u(r)} 0 0 ${n} inset;
1842
1936
  `,
1843
1937
  transition: `all ${e.motionDurationMid}`,
1844
1938
  "&-hoverable:hover": {
@@ -1847,13 +1941,13 @@ const Vt = (e) => {
1847
1941
  boxShadow: a
1848
1942
  }
1849
1943
  };
1850
- }, dn = (e) => {
1944
+ }, wn = (e) => {
1851
1945
  const {
1852
1946
  componentCls: t,
1853
1947
  iconCls: n,
1854
1948
  actionsLiMargin: a,
1855
1949
  cardActionsIconSize: r,
1856
- colorBorderSecondary: i,
1950
+ colorBorderSecondary: o,
1857
1951
  actionsBg: c
1858
1952
  } = e;
1859
1953
  return Object.assign(Object.assign({
@@ -1861,10 +1955,10 @@ const Vt = (e) => {
1861
1955
  padding: 0,
1862
1956
  listStyle: "none",
1863
1957
  background: c,
1864
- borderTop: `${d(e.lineWidth)} ${e.lineType} ${i}`,
1958
+ borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
1865
1959
  display: "flex",
1866
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
1867
- }, je()), {
1960
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
1961
+ }, We()), {
1868
1962
  "& > li": {
1869
1963
  margin: a,
1870
1964
  color: e.colorTextDescription,
@@ -1884,7 +1978,7 @@ const Vt = (e) => {
1884
1978
  display: "inline-block",
1885
1979
  width: "100%",
1886
1980
  color: e.colorTextDescription,
1887
- lineHeight: d(e.fontHeight),
1981
+ lineHeight: u(e.fontHeight),
1888
1982
  transition: `color ${e.motionDurationMid}`,
1889
1983
  "&:hover": {
1890
1984
  color: e.colorPrimary
@@ -1892,18 +1986,18 @@ const Vt = (e) => {
1892
1986
  },
1893
1987
  [`> ${n}`]: {
1894
1988
  fontSize: r,
1895
- lineHeight: d(e.calc(r).mul(e.lineHeight).equal())
1989
+ lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
1896
1990
  }
1897
1991
  },
1898
1992
  "&:not(:last-child)": {
1899
- borderInlineEnd: `${d(e.lineWidth)} ${e.lineType} ${i}`
1993
+ borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
1900
1994
  }
1901
1995
  }
1902
1996
  });
1903
- }, un = (e) => Object.assign(Object.assign({
1904
- margin: `${d(e.calc(e.marginXXS).mul(-1).equal())} 0`,
1997
+ }, En = (e) => Object.assign(Object.assign({
1998
+ margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
1905
1999
  display: "flex"
1906
- }, je()), {
2000
+ }, We()), {
1907
2001
  "&-avatar": {
1908
2002
  paddingInlineEnd: e.padding
1909
2003
  },
@@ -1918,29 +2012,30 @@ const Vt = (e) => {
1918
2012
  color: e.colorTextHeading,
1919
2013
  fontWeight: e.fontWeightStrong,
1920
2014
  fontSize: e.fontSizeLG
1921
- }, ke),
2015
+ }, ot),
1922
2016
  "&-description": {
1923
2017
  color: e.colorTextDescription
1924
2018
  }
1925
- }), vn = (e) => {
2019
+ }), Pn = (e) => {
1926
2020
  const {
1927
2021
  componentCls: t,
1928
- cardPaddingBase: n,
1929
- colorFillAlter: a
2022
+ colorFillAlter: n,
2023
+ headerPadding: a,
2024
+ bodyPadding: r
1930
2025
  } = e;
1931
2026
  return {
1932
2027
  [`${t}-head`]: {
1933
- padding: `0 ${d(n)}`,
1934
- background: a,
2028
+ padding: `0 ${u(a)}`,
2029
+ background: n,
1935
2030
  "&-title": {
1936
2031
  fontSize: e.fontSize
1937
2032
  }
1938
2033
  },
1939
2034
  [`${t}-body`]: {
1940
- padding: `${d(e.padding)} ${d(n)}`
2035
+ padding: `${u(e.padding)} ${u(r)}`
1941
2036
  }
1942
2037
  };
1943
- }, fn = (e) => {
2038
+ }, Tn = (e) => {
1944
2039
  const {
1945
2040
  componentCls: t
1946
2041
  } = e;
@@ -1950,49 +2045,49 @@ const Vt = (e) => {
1950
2045
  userSelect: "none"
1951
2046
  }
1952
2047
  };
1953
- }, bn = (e) => {
2048
+ }, Nn = (e) => {
1954
2049
  const {
1955
2050
  componentCls: t,
1956
2051
  cardShadow: n,
1957
2052
  cardHeadPadding: a,
1958
2053
  colorBorderSecondary: r,
1959
- boxShadowTertiary: i,
1960
- cardPaddingBase: c,
1961
- extraColor: o
2054
+ boxShadowTertiary: o,
2055
+ bodyPadding: c,
2056
+ extraColor: i
1962
2057
  } = e;
1963
2058
  return {
1964
- [t]: Object.assign(Object.assign({}, Je(e)), {
2059
+ [t]: Object.assign(Object.assign({}, it(e)), {
1965
2060
  position: "relative",
1966
2061
  background: e.colorBgContainer,
1967
2062
  borderRadius: e.borderRadiusLG,
1968
2063
  [`&:not(${t}-bordered)`]: {
1969
- boxShadow: i
2064
+ boxShadow: o
1970
2065
  },
1971
- [`${t}-head`]: cn(e),
2066
+ [`${t}-head`]: xn(e),
1972
2067
  [`${t}-extra`]: {
1973
2068
  // https://stackoverflow.com/a/22429853/3040605
1974
2069
  marginInlineStart: "auto",
1975
- color: o,
2070
+ color: i,
1976
2071
  fontWeight: "normal",
1977
2072
  fontSize: e.fontSize
1978
2073
  },
1979
2074
  [`${t}-body`]: Object.assign({
1980
2075
  padding: c,
1981
- borderRadius: `0 0 ${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)}`
1982
- }, je()),
1983
- [`${t}-grid`]: sn(e),
2076
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2077
+ }, We()),
2078
+ [`${t}-grid`]: Cn(e),
1984
2079
  [`${t}-cover`]: {
1985
2080
  "> *": {
1986
2081
  display: "block",
1987
2082
  width: "100%",
1988
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0`
2083
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
1989
2084
  }
1990
2085
  },
1991
- [`${t}-actions`]: dn(e),
1992
- [`${t}-meta`]: un(e)
2086
+ [`${t}-actions`]: wn(e),
2087
+ [`${t}-meta`]: En(e)
1993
2088
  }),
1994
2089
  [`${t}-bordered`]: {
1995
- border: `${d(e.lineWidth)} ${e.lineType} ${r}`,
2090
+ border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
1996
2091
  [`${t}-cover`]: {
1997
2092
  marginTop: -1,
1998
2093
  marginInlineStart: -1,
@@ -2008,7 +2103,7 @@ const Vt = (e) => {
2008
2103
  }
2009
2104
  },
2010
2105
  [`${t}-contain-grid`]: {
2011
- borderRadius: `${d(e.borderRadiusLG)} ${d(e.borderRadiusLG)} 0 0 `,
2106
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
2012
2107
  [`${t}-body`]: {
2013
2108
  display: "flex",
2014
2109
  flexWrap: "wrap"
@@ -2027,25 +2122,26 @@ const Vt = (e) => {
2027
2122
  }
2028
2123
  }
2029
2124
  },
2030
- [`${t}-type-inner`]: vn(e),
2031
- [`${t}-loading`]: fn(e),
2125
+ [`${t}-type-inner`]: Pn(e),
2126
+ [`${t}-loading`]: Tn(e),
2032
2127
  [`${t}-rtl`]: {
2033
2128
  direction: "rtl"
2034
2129
  }
2035
2130
  };
2036
- }, mn = (e) => {
2131
+ }, On = (e) => {
2037
2132
  const {
2038
2133
  componentCls: t,
2039
- cardPaddingSM: n,
2040
- headerHeightSM: a,
2041
- headerFontSizeSM: r
2134
+ bodyPaddingSM: n,
2135
+ headerPaddingSM: a,
2136
+ headerHeightSM: r,
2137
+ headerFontSizeSM: o
2042
2138
  } = e;
2043
2139
  return {
2044
2140
  [`${t}-small`]: {
2045
2141
  [`> ${t}-head`]: {
2046
- minHeight: a,
2047
- padding: `0 ${d(n)}`,
2048
- fontSize: r,
2142
+ minHeight: r,
2143
+ padding: `0 ${u(a)}`,
2144
+ fontSize: o,
2049
2145
  [`> ${t}-head-wrapper`]: {
2050
2146
  [`> ${t}-extra`]: {
2051
2147
  fontSize: e.fontSize
@@ -2066,40 +2162,46 @@ const Vt = (e) => {
2066
2162
  }
2067
2163
  }
2068
2164
  };
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, {
2165
+ }, Rn = (e) => {
2166
+ var t, n;
2167
+ return {
2168
+ headerBg: "transparent",
2169
+ headerFontSize: e.fontSizeLG,
2170
+ headerFontSizeSM: e.fontSize,
2171
+ headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
2172
+ headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
2173
+ actionsBg: e.colorBgContainer,
2174
+ actionsLiMargin: `${e.paddingSM}px 0`,
2175
+ tabsMarginBottom: -e.padding - e.lineWidth,
2176
+ extraColor: e.colorText,
2177
+ bodyPaddingSM: 12,
2178
+ // Fixed padding.
2179
+ headerPaddingSM: 12,
2180
+ bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
2181
+ headerPadding: (n = e.headerPadding) !== null && n !== void 0 ? n : e.paddingLG
2182
+ };
2183
+ }, In = Ht("Card", (e) => {
2184
+ const t = Wt(e, {
2081
2185
  cardShadow: e.boxShadowCard,
2082
2186
  cardHeadPadding: e.padding,
2083
2187
  cardPaddingBase: e.paddingLG,
2084
- cardActionsIconSize: e.fontSize,
2085
- cardPaddingSM: 12
2086
- // Fixed padding.
2188
+ cardActionsIconSize: e.fontSize
2087
2189
  });
2088
2190
  return [
2089
2191
  // Style
2090
- bn(t),
2192
+ Nn(t),
2091
2193
  // Size
2092
- mn(t)
2194
+ On(t)
2093
2195
  ];
2094
- }, gn);
2095
- var Nt = function(e, t) {
2196
+ }, Rn);
2197
+ var At = function(e, t) {
2096
2198
  var n = {};
2097
2199
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
2098
2200
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
2099
2201
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
2100
2202
  return n;
2101
2203
  };
2102
- const hn = (e) => {
2204
+ const zn = (e) => {
2103
2205
  const {
2104
2206
  actionClasses: t,
2105
2207
  actions: n = [],
@@ -2108,8 +2210,8 @@ const hn = (e) => {
2108
2210
  return /* @__PURE__ */ l.createElement("ul", {
2109
2211
  className: t,
2110
2212
  style: a
2111
- }, n.map((r, i) => {
2112
- const c = `action-${i}`;
2213
+ }, n.map((r, o) => {
2214
+ const c = `action-${o}`;
2113
2215
  return /* @__PURE__ */ l.createElement("li", {
2114
2216
  style: {
2115
2217
  width: `${100 / n.length}%`
@@ -2117,175 +2219,176 @@ const hn = (e) => {
2117
2219
  key: c
2118
2220
  }, /* @__PURE__ */ l.createElement("span", null, r));
2119
2221
  }));
2120
- }, $n = /* @__PURE__ */ l.forwardRef((e, t) => {
2222
+ }, Mn = /* @__PURE__ */ l.forwardRef((e, t) => {
2121
2223
  const {
2122
2224
  prefixCls: n,
2123
2225
  className: a,
2124
2226
  rootClassName: r,
2125
- style: i,
2227
+ style: o,
2126
2228
  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);
2229
+ headStyle: i = {},
2230
+ bodyStyle: d = {},
2231
+ title: s,
2232
+ loading: m,
2233
+ bordered: p,
2234
+ variant: y,
2235
+ size: E,
2236
+ type: B,
2237
+ cover: C,
2238
+ actions: N,
2239
+ tabList: h,
2240
+ children: $,
2241
+ activeTabKey: P,
2242
+ defaultActiveTabKey: G,
2243
+ tabBarExtraContent: K,
2244
+ hoverable: X,
2245
+ tabProps: q = {},
2246
+ classNames: O,
2247
+ styles: x
2248
+ } = 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"]), {
2249
+ getPrefixCls: g,
2250
+ direction: S,
2251
+ card: f
2252
+ } = l.useContext(Me), [_] = Aa("card", y, p);
2150
2253
  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);
2254
+ const W = rt("Card");
2255
+ [["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((L) => {
2256
+ let [oe, Ce] = L;
2257
+ W.deprecated(!(oe in e), oe, Ce);
2155
2258
  });
2156
2259
  }
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, {
2260
+ const k = (W) => {
2261
+ var L;
2262
+ (L = e.onTabChange) === null || L === void 0 || L.call(e, W);
2263
+ }, H = (W) => {
2264
+ var L;
2265
+ return A((L = f == null ? void 0 : f.classNames) === null || L === void 0 ? void 0 : L[W], O == null ? void 0 : O[W]);
2266
+ }, v = (W) => {
2267
+ var L;
2268
+ 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]);
2269
+ }, J = l.useMemo(() => {
2270
+ let W = !1;
2271
+ return l.Children.forEach($, (L) => {
2272
+ (L == null ? void 0 : L.type) === Zt && (W = !0);
2273
+ }), W;
2274
+ }, [$]), R = g("card", n), [U, ee, ve] = In(R), w = /* @__PURE__ */ l.createElement(za, {
2172
2275
  loading: !0,
2173
2276
  active: !0,
2174
2277
  paragraph: {
2175
2278
  rows: 4
2176
2279
  },
2177
2280
  title: !1
2178
- }, p), oe = f !== void 0, E = Object.assign(Object.assign({}, W), {
2179
- [oe ? "activeKey" : "defaultActiveKey"]: oe ? f : N,
2180
- tabBarExtraContent: z
2281
+ }, $), j = P !== void 0, Y = Object.assign(Object.assign({}, q), {
2282
+ [j ? "activeKey" : "defaultActiveKey"]: j ? P : G,
2283
+ tabBarExtraContent: K
2181
2284
  });
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) => {
2285
+ let Q;
2286
+ const F = Kt(E), re = !F || F === "default" ? "large" : F, ae = h ? /* @__PURE__ */ l.createElement(st, Object.assign({
2287
+ size: re
2288
+ }, Y, {
2289
+ className: `${R}-head-tabs`,
2290
+ onChange: k,
2291
+ items: h.map((W) => {
2189
2292
  var {
2190
- tab: A
2191
- } = X, ce = Nt(X, ["tab"]);
2293
+ tab: L
2294
+ } = W, oe = At(W, ["tab"]);
2192
2295
  return Object.assign({
2193
- label: A
2194
- }, ce);
2296
+ label: L
2297
+ }, oe);
2195
2298
  })
2196
2299
  })) : 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
2300
+ if (s || c || ae) {
2301
+ 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"));
2302
+ Q = /* @__PURE__ */ l.createElement("div", {
2303
+ className: W,
2304
+ style: Ce
2202
2305
  }, /* @__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);
2306
+ className: `${R}-head-wrapper`
2307
+ }, s && /* @__PURE__ */ l.createElement("div", {
2308
+ className: L,
2309
+ style: v("title")
2310
+ }, s), c && /* @__PURE__ */ l.createElement("div", {
2311
+ className: oe,
2312
+ style: v("extra")
2313
+ }, c)), ae);
2211
2314
  }
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({
2315
+ const he = A(`${R}-cover`, H("cover")), fe = C ? /* @__PURE__ */ l.createElement("div", {
2316
+ className: he,
2317
+ style: v("cover")
2318
+ }, C) : null, ie = A(`${R}-body`, H("body")), $e = Object.assign(Object.assign({}, d), v("body")), z = /* @__PURE__ */ l.createElement("div", {
2319
+ className: ie,
2320
+ style: $e
2321
+ }, m ? w : $), de = A(`${R}-actions`, H("actions")), xe = N != null && N.length ? /* @__PURE__ */ l.createElement(zn, {
2322
+ actionClasses: de,
2323
+ actionStyle: v("actions"),
2324
+ actions: N
2325
+ }) : null, Le = Ra(T, ["onTabChange"]), Xe = A(R, f == null ? void 0 : f.className, {
2326
+ [`${R}-loading`]: m,
2327
+ [`${R}-bordered`]: _ !== "borderless",
2328
+ [`${R}-hoverable`]: X,
2329
+ [`${R}-contain-grid`]: J,
2330
+ [`${R}-contain-tabs`]: h == null ? void 0 : h.length,
2331
+ [`${R}-${F}`]: F,
2332
+ [`${R}-type-${B}`]: !!B,
2333
+ [`${R}-rtl`]: S === "rtl"
2334
+ }, a, r, ee, ve), qe = Object.assign(Object.assign({}, f == null ? void 0 : f.style), o);
2335
+ return U(/* @__PURE__ */ l.createElement("div", Object.assign({
2233
2336
  ref: t
2234
- }, le, {
2235
- className: ye,
2236
- style: Pe
2237
- }), L, k, ne, O));
2337
+ }, Le, {
2338
+ className: Xe,
2339
+ style: qe
2340
+ }), Q, fe, z, xe));
2238
2341
  });
2239
- var yn = function(e, t) {
2342
+ var Ln = function(e, t) {
2240
2343
  var n = {};
2241
2344
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
2242
2345
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
2243
2346
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
2244
2347
  return n;
2245
2348
  };
2246
- const Sn = (e) => {
2349
+ const Dn = (e) => {
2247
2350
  const {
2248
2351
  prefixCls: t,
2249
2352
  className: n,
2250
2353
  avatar: a,
2251
2354
  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;
2355
+ description: o
2356
+ } = e, c = Ln(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2357
+ getPrefixCls: i
2358
+ } = l.useContext(Me), d = i("card", t), s = A(`${d}-meta`, n), m = a ? /* @__PURE__ */ l.createElement("div", {
2359
+ className: `${d}-meta-avatar`
2360
+ }, a) : null, p = r ? /* @__PURE__ */ l.createElement("div", {
2361
+ className: `${d}-meta-title`
2362
+ }, r) : null, y = o ? /* @__PURE__ */ l.createElement("div", {
2363
+ className: `${d}-meta-description`
2364
+ }, o) : null, E = p || y ? /* @__PURE__ */ l.createElement("div", {
2365
+ className: `${d}-meta-detail`
2366
+ }, p, y) : null;
2264
2367
  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
2368
+ className: s
2369
+ }), m, E);
2370
+ }, Ke = Mn;
2371
+ Ke.Grid = Zt;
2372
+ Ke.Meta = Dn;
2373
+ process.env.NODE_ENV !== "production" && (Ke.displayName = "Card");
2374
+ 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 = {
2375
+ kpiCard: Bn,
2376
+ width430: jn,
2377
+ width384: An,
2378
+ flexCol: Gn,
2379
+ flexRow: Hn,
2380
+ title: Wn,
2381
+ content: Vn
2279
2382
  };
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: [
2383
+ function Zn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2384
+ 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
2385
  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 })
2386
+ /* @__PURE__ */ Et("div", { className: _e.flexCol, children: [
2387
+ /* @__PURE__ */ ze("span", { className: _e.title, children: e }),
2388
+ /* @__PURE__ */ ze("span", { className: _e.content, children: t })
2286
2389
  ] })
2287
- ] }) }) : /* @__PURE__ */ Te(ra, {}) });
2390
+ ] }) }) : /* @__PURE__ */ ze(ga, {}) });
2288
2391
  }
2289
2392
  export {
2290
- Dn as KpiCard
2393
+ Zn as KpiCard
2291
2394
  };