@yuku123/z-cognition-component 2.0.0 → 2.0.1

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 (174) hide show
  1. package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
  2. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
  3. package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
  4. package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
  5. package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
  6. package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
  7. package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
  8. package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
  9. package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
  10. package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
  11. package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
  12. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
  13. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
  14. package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
  15. package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
  16. package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
  17. package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
  18. package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
  19. package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
  20. package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
  21. package/dist-lib/Skeleton-DXcERb5r.js +557 -0
  22. package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
  23. package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
  24. package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
  25. package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
  26. package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
  27. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
  28. package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
  40. package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
  41. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
  42. package/dist-lib/colors-sdAcAcU3.js +24 -0
  43. package/dist-lib/context-Buz0ggsK.js +710 -0
  44. package/dist-lib/context-DpmyNOn3.js +21 -0
  45. package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
  46. package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
  47. package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
  48. package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
  50. package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
  51. package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
  54. package/dist-lib/embed-DwLg9RDW.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
  56. package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
  57. package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
  58. package/dist-lib/index-9aQ4BzIK.js +500 -0
  59. package/dist-lib/index-B57Fj7Y0.js +1169 -0
  60. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  61. package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
  62. package/dist-lib/index-Bc-Vin3j.js +256 -0
  63. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  64. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  65. package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
  66. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  67. package/dist-lib/index-Cfu1W1H6.js +535 -0
  68. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  69. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  70. package/dist-lib/index-CyKWCYMK.js +218 -0
  71. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  72. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  73. package/dist-lib/index-DBtGE89a.js +168 -0
  74. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  75. package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
  76. package/dist-lib/index-DjFPRXl5.js +1484 -0
  77. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  78. package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
  79. package/dist-lib/index-DvWHYX81.js +450 -0
  80. package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
  81. package/dist-lib/index-Vu6sPBci.js +1884 -0
  82. package/dist-lib/index-bOY1cBol.js +4890 -0
  83. package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
  84. package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
  85. package/dist-lib/index-nQSVLWfW.js +356 -0
  86. package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
  87. package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
  88. package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
  89. package/dist-lib/index.js +3 -1
  90. package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
  91. package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
  96. package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
  97. package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  98. package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
  99. package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
  100. package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
  101. package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
  102. package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
  103. package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
  104. package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
  106. package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
  107. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
  108. package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
  109. package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
  110. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
  111. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
  112. package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
  113. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
  114. package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
  115. package/dist-lib/pages-CsexFuEz.js +73 -0
  116. package/dist-lib/pages.js +3 -3
  117. package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
  118. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  119. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  120. package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
  121. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  122. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
  123. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
  124. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
  125. package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
  126. package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
  127. package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
  128. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
  129. package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
  130. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
  131. package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
  132. package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
  133. package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
  134. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
  135. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  136. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
  137. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  138. package/dist-lib/useForm-Byp1LopG.js +145 -0
  139. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
  140. package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
  141. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
  142. package/package.json +2 -3
  143. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  144. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  145. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  146. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  147. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  148. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  149. package/dist-lib/Table-Civ838nE.js +0 -20514
  150. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  151. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  152. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  153. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  154. package/dist-lib/context-T27uno74.js +0 -54
  155. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  156. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  157. package/dist-lib/index-0TvzCTD7.js +0 -2336
  158. package/dist-lib/index-4tbtbcAt.js +0 -550
  159. package/dist-lib/index-B1wh6i1C.js +0 -1308
  160. package/dist-lib/index-BVgdmf6r.js +0 -2487
  161. package/dist-lib/index-CSnvcFg-.js +0 -543
  162. package/dist-lib/index-D35Ry0PG.js +0 -1162
  163. package/dist-lib/index-DC57_dnh.js +0 -604
  164. package/dist-lib/index-DQ16Zb7x.js +0 -546
  165. package/dist-lib/index-DRcTwC17.js +0 -418
  166. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  167. package/dist-lib/index-DxzorPvG.js +0 -13960
  168. package/dist-lib/index-If4xc1-H.js +0 -559
  169. package/dist-lib/index-R71k3nB_.js +0 -710
  170. package/dist-lib/index-mUlorJxp.js +0 -3279
  171. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  172. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  173. package/dist-lib/pages-CticGC6S.js +0 -512
  174. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -0,0 +1,1884 @@
1
+ import * as c from "react";
2
+ import ia, { createContext as oa, useState as V, useRef as q, useEffect as le, useMemo as Pt } from "react";
3
+ import { Q as gt, aJ as la, i as be, k as ca, _ as ht, O as Ue, q as sa, s as da, N as pt, E as ua, d as It, a3 as va, g as fa, m as ba, u as y, r as Rt, a5 as ma, aB as Nt, a as Xe, c as ga, f as ha, R as pa, ac as $a } from "./index-CrMcNEAZ.js";
4
+ import { E as ya, a as Sa, b as _a, R as Ca } from "./index-CaXylbQR.js";
5
+ import { R as xa } from "./PlusOutlined-B_dXo_97.js";
6
+ import { i as N, b as ie, a as qe, h as Y, c as ee, _ as me, q as De, f as wa } from "./SearchOutlined-puH6bCY6.js";
7
+ import { c as Ta, d as $t } from "./index-bOY1cBol.js";
8
+ const ze = /* @__PURE__ */ oa(null);
9
+ var Ea = function(t) {
10
+ var n = t.activeTabOffset, a = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, i = l.size, s = l.align, d = s === void 0 ? "center" : s, g = V(), b = N(g, 2), S = b[0], I = b[1], H = q(), P = ia.useCallback(function(f) {
11
+ return typeof i == "function" ? i(f) : typeof i == "number" ? i : f;
12
+ }, [i]);
13
+ function W() {
14
+ gt.cancel(H.current);
15
+ }
16
+ return le(function() {
17
+ var f = {};
18
+ if (n)
19
+ if (a) {
20
+ f.width = P(n.width);
21
+ var p = r ? "right" : "left";
22
+ d === "start" && (f[p] = n[p]), d === "center" && (f[p] = n[p] + n.width / 2, f.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (f[p] = n[p] + n.width, f.transform = "translateX(-100%)");
23
+ } else
24
+ f.height = P(n.height), d === "start" && (f.top = n.top), d === "center" && (f.top = n.top + n.height / 2, f.transform = "translateY(-50%)"), d === "end" && (f.top = n.top + n.height, f.transform = "translateY(-100%)");
25
+ return W(), H.current = gt(function() {
26
+ var R = S && f && Object.keys(f).every(function(O) {
27
+ var M = f[O], k = S[O];
28
+ return typeof M == "number" && typeof k == "number" ? Math.round(M) === Math.round(k) : M === k;
29
+ });
30
+ R || I(f);
31
+ }), W;
32
+ }, [JSON.stringify(n), a, r, d, P]), {
33
+ style: S
34
+ };
35
+ }, yt = {
36
+ width: 0,
37
+ height: 0,
38
+ left: 0,
39
+ top: 0
40
+ };
41
+ function Pa(e, t, n) {
42
+ return Pt(function() {
43
+ for (var a, r = /* @__PURE__ */ new Map(), o = t.get((a = e[0]) === null || a === void 0 ? void 0 : a.key) || yt, l = o.left + o.width, i = 0; i < e.length; i += 1) {
44
+ var s = e[i].key, d = t.get(s);
45
+ if (!d) {
46
+ var g;
47
+ d = t.get((g = e[i - 1]) === null || g === void 0 ? void 0 : g.key) || yt;
48
+ }
49
+ var b = r.get(s) || ie({}, d);
50
+ b.right = l - b.left - b.width, r.set(s, b);
51
+ }
52
+ return r;
53
+ }, [e.map(function(a) {
54
+ return a.key;
55
+ }).join("_"), t, n]);
56
+ }
57
+ function St(e, t) {
58
+ var n = c.useRef(e), a = c.useState({}), r = N(a, 2), o = r[1];
59
+ function l(i) {
60
+ var s = typeof i == "function" ? i(n.current) : i;
61
+ s !== n.current && t(s, n.current), n.current = s, o({});
62
+ }
63
+ return [n.current, l];
64
+ }
65
+ var Ia = 0.1, _t = 0.01, Oe = 20, Ct = Math.pow(0.995, Oe);
66
+ function Ra(e, t) {
67
+ var n = V(), a = N(n, 2), r = a[0], o = a[1], l = V(0), i = N(l, 2), s = i[0], d = i[1], g = V(0), b = N(g, 2), S = b[0], I = b[1], H = V(), P = N(H, 2), W = P[0], f = P[1], p = q();
68
+ function R(w) {
69
+ var T = w.touches[0], v = T.screenX, _ = T.screenY;
70
+ o({
71
+ x: v,
72
+ y: _
73
+ }), window.clearInterval(p.current);
74
+ }
75
+ function O(w) {
76
+ if (r) {
77
+ var T = w.touches[0], v = T.screenX, _ = T.screenY;
78
+ o({
79
+ x: v,
80
+ y: _
81
+ });
82
+ var C = v - r.x, h = _ - r.y;
83
+ t(C, h);
84
+ var K = Date.now();
85
+ d(K), I(K - s), f({
86
+ x: C,
87
+ y: h
88
+ });
89
+ }
90
+ }
91
+ function M() {
92
+ if (r && (o(null), f(null), W)) {
93
+ var w = W.x / S, T = W.y / S, v = Math.abs(w), _ = Math.abs(T);
94
+ if (Math.max(v, _) < Ia) return;
95
+ var C = w, h = T;
96
+ p.current = window.setInterval(function() {
97
+ if (Math.abs(C) < _t && Math.abs(h) < _t) {
98
+ window.clearInterval(p.current);
99
+ return;
100
+ }
101
+ C *= Ct, h *= Ct, t(C * Oe, h * Oe);
102
+ }, Oe);
103
+ }
104
+ }
105
+ var k = q();
106
+ function G(w) {
107
+ var T = w.deltaX, v = w.deltaY, _ = 0, C = Math.abs(T), h = Math.abs(v);
108
+ C === h ? _ = k.current === "x" ? T : v : C > h ? (_ = T, k.current = "x") : (_ = v, k.current = "y"), t(-_, -_) && w.preventDefault();
109
+ }
110
+ var D = q(null);
111
+ D.current = {
112
+ onTouchStart: R,
113
+ onTouchMove: O,
114
+ onTouchEnd: M,
115
+ onWheel: G
116
+ }, c.useEffect(function() {
117
+ function w(C) {
118
+ D.current.onTouchStart(C);
119
+ }
120
+ function T(C) {
121
+ D.current.onTouchMove(C);
122
+ }
123
+ function v(C) {
124
+ D.current.onTouchEnd(C);
125
+ }
126
+ function _(C) {
127
+ D.current.onWheel(C);
128
+ }
129
+ return document.addEventListener("touchmove", T, {
130
+ passive: !1
131
+ }), document.addEventListener("touchend", v, {
132
+ passive: !0
133
+ }), e.current.addEventListener("touchstart", w, {
134
+ passive: !0
135
+ }), e.current.addEventListener("wheel", _, {
136
+ passive: !1
137
+ }), function() {
138
+ document.removeEventListener("touchmove", T), document.removeEventListener("touchend", v);
139
+ };
140
+ }, []);
141
+ }
142
+ function Mt(e) {
143
+ var t = V(0), n = N(t, 2), a = n[0], r = n[1], o = q(0), l = q();
144
+ return l.current = e, la(function() {
145
+ var i;
146
+ (i = l.current) === null || i === void 0 || i.call(l);
147
+ }, [a]), function() {
148
+ o.current === a && (o.current += 1, r(o.current));
149
+ };
150
+ }
151
+ function Na(e) {
152
+ var t = q([]), n = V({}), a = N(n, 2), r = a[1], o = q(typeof e == "function" ? e() : e), l = Mt(function() {
153
+ var s = o.current;
154
+ t.current.forEach(function(d) {
155
+ s = d(s);
156
+ }), t.current = [], o.current = s, r({});
157
+ });
158
+ function i(s) {
159
+ t.current.push(s), l();
160
+ }
161
+ return [o.current, i];
162
+ }
163
+ var xt = {
164
+ width: 0,
165
+ height: 0,
166
+ left: 0,
167
+ top: 0,
168
+ right: 0
169
+ };
170
+ function Ma(e, t, n, a, r, o, l) {
171
+ var i = l.tabs, s = l.tabPosition, d = l.rtl, g, b, S;
172
+ return ["top", "bottom"].includes(s) ? (g = "width", b = d ? "right" : "left", S = Math.abs(n)) : (g = "height", b = "top", S = -n), Pt(function() {
173
+ if (!i.length)
174
+ return [0, 0];
175
+ for (var I = i.length, H = I, P = 0; P < I; P += 1) {
176
+ var W = e.get(i[P].key) || xt;
177
+ if (Math.floor(W[b] + W[g]) > Math.floor(S + t)) {
178
+ H = P - 1;
179
+ break;
180
+ }
181
+ }
182
+ for (var f = 0, p = I - 1; p >= 0; p -= 1) {
183
+ var R = e.get(i[p].key) || xt;
184
+ if (R[b] < S) {
185
+ f = p + 1;
186
+ break;
187
+ }
188
+ }
189
+ return f > H ? [0, -1] : [f, H];
190
+ }, [e, t, a, r, o, S, s, i.map(function(I) {
191
+ return I.key;
192
+ }).join("_"), d]);
193
+ }
194
+ function wt(e) {
195
+ var t;
196
+ return e instanceof Map ? (t = {}, e.forEach(function(n, a) {
197
+ t[a] = n;
198
+ })) : t = e, JSON.stringify(t);
199
+ }
200
+ var La = "TABS_DQ";
201
+ function Lt(e) {
202
+ return String(e).replace(/"/g, La);
203
+ }
204
+ function Ye(e, t, n, a) {
205
+ return (
206
+ // Only editable tabs can be removed
207
+ !(!n || // Tabs cannot be removed when disabled
208
+ a || // closable is false
209
+ e === !1 || // If closable is undefined, the remove button should be hidden when closeIcon is null or false
210
+ e === void 0 && (t === !1 || t === null))
211
+ );
212
+ }
213
+ var Ot = /* @__PURE__ */ c.forwardRef(function(e, t) {
214
+ var n = e.prefixCls, a = e.editable, r = e.locale, o = e.style;
215
+ return !a || a.showAdd === !1 ? null : /* @__PURE__ */ c.createElement("button", {
216
+ ref: t,
217
+ type: "button",
218
+ className: "".concat(n, "-nav-add"),
219
+ style: o,
220
+ "aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
221
+ onClick: function(i) {
222
+ a.onEdit("add", {
223
+ event: i
224
+ });
225
+ }
226
+ }, a.addIcon || "+");
227
+ }), Fe = /* @__PURE__ */ c.forwardRef(function(e, t) {
228
+ var n = e.position, a = e.prefixCls, r = e.extra;
229
+ if (!r)
230
+ return null;
231
+ var o, l = {};
232
+ return qe(r) === "object" && !/* @__PURE__ */ c.isValidElement(r) ? l = r : l.right = r, n === "right" && (o = l.right), n === "left" && (o = l.left), o ? /* @__PURE__ */ c.createElement("div", {
233
+ className: "".concat(a, "-extra-content"),
234
+ ref: t
235
+ }, o) : null;
236
+ });
237
+ process.env.NODE_ENV !== "production" && (Fe.displayName = "ExtraContent");
238
+ var Oa = /* @__PURE__ */ c.forwardRef(function(e, t) {
239
+ var n = e.prefixCls, a = e.id, r = e.tabs, o = e.locale, l = e.mobile, i = e.more, s = i === void 0 ? {} : i, d = e.style, g = e.className, b = e.editable, S = e.tabBarGutter, I = e.rtl, H = e.removeAriaLabel, P = e.onTabClick, W = e.getPopupContainer, f = e.popupClassName, p = V(!1), R = N(p, 2), O = R[0], M = R[1], k = V(null), G = N(k, 2), D = G[0], w = G[1], T = s.icon, v = T === void 0 ? "More" : T, _ = "".concat(a, "-more-popup"), C = "".concat(n, "-dropdown"), h = D !== null ? "".concat(_, "-").concat(D) : null, K = o == null ? void 0 : o.dropdownAriaLabel;
240
+ function j($, A) {
241
+ $.preventDefault(), $.stopPropagation(), b.onEdit("remove", {
242
+ key: A,
243
+ event: $
244
+ });
245
+ }
246
+ var U = /* @__PURE__ */ c.createElement(ya, {
247
+ onClick: function(A) {
248
+ var X = A.key, F = A.domEvent;
249
+ P(X, F), M(!1);
250
+ },
251
+ prefixCls: "".concat(C, "-menu"),
252
+ id: _,
253
+ tabIndex: -1,
254
+ role: "listbox",
255
+ "aria-activedescendant": h,
256
+ selectedKeys: [D],
257
+ "aria-label": K !== void 0 ? K : "expanded dropdown"
258
+ }, r.map(function($) {
259
+ var A = $.closable, X = $.disabled, F = $.closeIcon, Q = $.key, ne = $.label, ae = Ye(A, F, b, X);
260
+ return /* @__PURE__ */ c.createElement(Sa, {
261
+ key: Q,
262
+ id: "".concat(_, "-").concat(Q),
263
+ role: "option",
264
+ "aria-controls": a && "".concat(a, "-panel-").concat(Q),
265
+ disabled: X
266
+ }, /* @__PURE__ */ c.createElement("span", null, ne), ae && /* @__PURE__ */ c.createElement("button", {
267
+ type: "button",
268
+ "aria-label": H || "remove",
269
+ tabIndex: 0,
270
+ className: "".concat(C, "-menu-item-remove"),
271
+ onClick: function(se) {
272
+ se.stopPropagation(), j(se, Q);
273
+ }
274
+ }, F || b.removeIcon || "×"));
275
+ }));
276
+ function J($) {
277
+ for (var A = r.filter(function(ae) {
278
+ return !ae.disabled;
279
+ }), X = A.findIndex(function(ae) {
280
+ return ae.key === D;
281
+ }) || 0, F = A.length, Q = 0; Q < F; Q += 1) {
282
+ X = (X + $ + F) % F;
283
+ var ne = A[X];
284
+ if (!ne.disabled) {
285
+ w(ne.key);
286
+ return;
287
+ }
288
+ }
289
+ }
290
+ function ce($) {
291
+ var A = $.which;
292
+ if (!O) {
293
+ [be.DOWN, be.SPACE, be.ENTER].includes(A) && (M(!0), $.preventDefault());
294
+ return;
295
+ }
296
+ switch (A) {
297
+ case be.UP:
298
+ J(-1), $.preventDefault();
299
+ break;
300
+ case be.DOWN:
301
+ J(1), $.preventDefault();
302
+ break;
303
+ case be.ESC:
304
+ M(!1);
305
+ break;
306
+ case be.SPACE:
307
+ case be.ENTER:
308
+ D !== null && P(D, $);
309
+ break;
310
+ }
311
+ }
312
+ le(function() {
313
+ var $ = document.getElementById(h);
314
+ $ && $.scrollIntoView && $.scrollIntoView(!1);
315
+ }, [D]), le(function() {
316
+ O || w(null);
317
+ }, [O]);
318
+ var m = Y({}, I ? "marginRight" : "marginLeft", S);
319
+ r.length || (m.visibility = "hidden", m.order = 1);
320
+ var te = ee(Y({}, "".concat(C, "-rtl"), I)), ve = l ? null : /* @__PURE__ */ c.createElement(_a, me({
321
+ prefixCls: C,
322
+ overlay: U,
323
+ visible: r.length ? O : !1,
324
+ onVisibleChange: M,
325
+ overlayClassName: ee(te, f),
326
+ mouseEnterDelay: 0.1,
327
+ mouseLeaveDelay: 0.1,
328
+ getPopupContainer: W
329
+ }, s), /* @__PURE__ */ c.createElement("button", {
330
+ type: "button",
331
+ className: "".concat(n, "-nav-more"),
332
+ style: m,
333
+ "aria-haspopup": "listbox",
334
+ "aria-controls": _,
335
+ id: "".concat(a, "-more"),
336
+ "aria-expanded": O,
337
+ onKeyDown: ce
338
+ }, v));
339
+ return /* @__PURE__ */ c.createElement("div", {
340
+ className: ee("".concat(n, "-nav-operations"), g),
341
+ style: d,
342
+ ref: t
343
+ }, ve, /* @__PURE__ */ c.createElement(Ot, {
344
+ prefixCls: n,
345
+ locale: o,
346
+ editable: b
347
+ }));
348
+ });
349
+ const Da = /* @__PURE__ */ c.memo(Oa, function(e, t) {
350
+ return (
351
+ // https://github.com/ant-design/ant-design/issues/32544
352
+ // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
353
+ t.tabMoving
354
+ );
355
+ });
356
+ var za = function(t) {
357
+ var n = t.prefixCls, a = t.id, r = t.active, o = t.focus, l = t.tab, i = l.key, s = l.label, d = l.disabled, g = l.closeIcon, b = l.icon, S = t.closable, I = t.renderWrapper, H = t.removeAriaLabel, P = t.editable, W = t.onClick, f = t.onFocus, p = t.onBlur, R = t.onKeyDown, O = t.onMouseDown, M = t.onMouseUp, k = t.style, G = t.tabCount, D = t.currentPosition, w = "".concat(n, "-tab"), T = Ye(S, g, P, d);
358
+ function v(j) {
359
+ d || W(j);
360
+ }
361
+ function _(j) {
362
+ j.preventDefault(), j.stopPropagation(), P.onEdit("remove", {
363
+ key: i,
364
+ event: j
365
+ });
366
+ }
367
+ var C = c.useMemo(function() {
368
+ return b && typeof s == "string" ? /* @__PURE__ */ c.createElement("span", null, s) : s;
369
+ }, [s, b]), h = c.useRef(null);
370
+ c.useEffect(function() {
371
+ o && h.current && h.current.focus();
372
+ }, [o]);
373
+ var K = /* @__PURE__ */ c.createElement("div", {
374
+ key: i,
375
+ "data-node-key": Lt(i),
376
+ className: ee(w, Y(Y(Y(Y({}, "".concat(w, "-with-remove"), T), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
377
+ style: k,
378
+ onClick: v
379
+ }, /* @__PURE__ */ c.createElement("div", {
380
+ ref: h,
381
+ role: "tab",
382
+ "aria-selected": r,
383
+ id: a && "".concat(a, "-tab-").concat(i),
384
+ className: "".concat(w, "-btn"),
385
+ "aria-controls": a && "".concat(a, "-panel-").concat(i),
386
+ "aria-disabled": d,
387
+ tabIndex: d ? null : r ? 0 : -1,
388
+ onClick: function(U) {
389
+ U.stopPropagation(), v(U);
390
+ },
391
+ onKeyDown: R,
392
+ onMouseDown: O,
393
+ onMouseUp: M,
394
+ onFocus: f,
395
+ onBlur: p
396
+ }, o && /* @__PURE__ */ c.createElement("div", {
397
+ "aria-live": "polite",
398
+ style: {
399
+ width: 0,
400
+ height: 0,
401
+ position: "absolute",
402
+ overflow: "hidden",
403
+ opacity: 0
404
+ }
405
+ }, "Tab ".concat(D, " of ").concat(G)), b && /* @__PURE__ */ c.createElement("span", {
406
+ className: "".concat(w, "-icon")
407
+ }, b), s && C), T && /* @__PURE__ */ c.createElement("button", {
408
+ type: "button",
409
+ role: "tab",
410
+ "aria-label": H || "remove",
411
+ tabIndex: r ? 0 : -1,
412
+ className: "".concat(w, "-remove"),
413
+ onClick: function(U) {
414
+ U.stopPropagation(), _(U);
415
+ }
416
+ }, g || P.removeIcon || "×"));
417
+ return I ? I(K) : K;
418
+ }, Ba = function(t, n) {
419
+ var a = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, i = t.getBoundingClientRect(), s = i.width, d = i.height, g = i.left, b = i.top;
420
+ return Math.abs(s - a) < 1 ? [s, d, g - n.left, b - n.top] : [a, r, l, o];
421
+ }, xe = function(t) {
422
+ var n = t.current || {}, a = n.offsetWidth, r = a === void 0 ? 0 : a, o = n.offsetHeight, l = o === void 0 ? 0 : o;
423
+ if (t.current) {
424
+ var i = t.current.getBoundingClientRect(), s = i.width, d = i.height;
425
+ if (Math.abs(s - r) < 1)
426
+ return [s, d];
427
+ }
428
+ return [r, l];
429
+ }, Le = function(t, n) {
430
+ return t[n ? 0 : 1];
431
+ }, Tt = /* @__PURE__ */ c.forwardRef(function(e, t) {
432
+ var n = e.className, a = e.style, r = e.id, o = e.animated, l = e.activeKey, i = e.rtl, s = e.extra, d = e.editable, g = e.locale, b = e.tabPosition, S = e.tabBarGutter, I = e.children, H = e.onTabClick, P = e.onTabScroll, W = e.indicator, f = c.useContext(ze), p = f.prefixCls, R = f.tabs, O = q(null), M = q(null), k = q(null), G = q(null), D = q(null), w = q(null), T = q(null), v = b === "top" || b === "bottom", _ = St(0, function(E, u) {
433
+ v && P && P({
434
+ direction: E > u ? "left" : "right"
435
+ });
436
+ }), C = N(_, 2), h = C[0], K = C[1], j = St(0, function(E, u) {
437
+ !v && P && P({
438
+ direction: E > u ? "top" : "bottom"
439
+ });
440
+ }), U = N(j, 2), J = U[0], ce = U[1], m = V([0, 0]), te = N(m, 2), ve = te[0], $ = te[1], A = V([0, 0]), X = N(A, 2), F = X[0], Q = X[1], ne = V([0, 0]), ae = N(ne, 2), he = ae[0], se = ae[1], pe = V([0, 0]), $e = N(pe, 2), L = $e[0], de = $e[1], re = Na(/* @__PURE__ */ new Map()), ye = N(re, 2), Be = ye[0], At = ye[1], Pe = Pa(R, Be, F[0]), ke = Le(ve, v), we = Le(F, v), Ae = Le(he, v), Qe = Le(L, v), Ze = Math.floor(ke) < Math.floor(we + Ae), oe = Ze ? ke - Qe : ke - Ae, Ht = "".concat(p, "-nav-operations-hidden"), fe = 0, ge = 0;
441
+ v && i ? (fe = 0, ge = Math.max(0, we - oe)) : (fe = Math.min(0, oe - we), ge = 0);
442
+ function He(E) {
443
+ return E < fe ? fe : E > ge ? ge : E;
444
+ }
445
+ var We = q(null), Wt = V(), et = N(Wt, 2), Ie = et[0], tt = et[1];
446
+ function Ge() {
447
+ tt(Date.now());
448
+ }
449
+ function je() {
450
+ We.current && clearTimeout(We.current);
451
+ }
452
+ Ra(G, function(E, u) {
453
+ function x(z, B) {
454
+ z(function(Z) {
455
+ var Ce = He(Z + B);
456
+ return Ce;
457
+ });
458
+ }
459
+ return Ze ? (v ? x(K, E) : x(ce, u), je(), Ge(), !0) : !1;
460
+ }), le(function() {
461
+ return je(), Ie && (We.current = setTimeout(function() {
462
+ tt(0);
463
+ }, 100)), je;
464
+ }, [Ie]);
465
+ var Gt = Ma(
466
+ Pe,
467
+ // Container
468
+ oe,
469
+ // Transform
470
+ v ? h : J,
471
+ // Tabs
472
+ we,
473
+ // Add
474
+ Ae,
475
+ // Operation
476
+ Qe,
477
+ ie(ie({}, e), {}, {
478
+ tabs: R
479
+ })
480
+ ), at = N(Gt, 2), jt = at[0], Vt = at[1], nt = ca(function() {
481
+ var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l, u = Pe.get(E) || {
482
+ width: 0,
483
+ height: 0,
484
+ left: 0,
485
+ right: 0,
486
+ top: 0
487
+ };
488
+ if (v) {
489
+ var x = h;
490
+ i ? u.right < h ? x = u.right : u.right + u.width > h + oe && (x = u.right + u.width - oe) : u.left < -h ? x = -u.left : u.left + u.width > -h + oe && (x = -(u.left + u.width - oe)), ce(0), K(He(x));
491
+ } else {
492
+ var z = J;
493
+ u.top < -J ? z = -u.top : u.top + u.height > -J + oe && (z = -(u.top + u.height - oe)), K(0), ce(He(z));
494
+ }
495
+ }), Kt = V(), rt = N(Kt, 2), Se = rt[0], Te = rt[1], Ut = V(!1), it = N(Ut, 2), Xt = it[0], ot = it[1], ue = R.filter(function(E) {
496
+ return !E.disabled;
497
+ }).map(function(E) {
498
+ return E.key;
499
+ }), _e = function(u) {
500
+ var x = ue.indexOf(Se || l), z = ue.length, B = (x + u + z) % z, Z = ue[B];
501
+ Te(Z);
502
+ }, lt = function(u, x) {
503
+ var z = ue.indexOf(u), B = R.find(function(Ce) {
504
+ return Ce.key === u;
505
+ }), Z = Ye(B == null ? void 0 : B.closable, B == null ? void 0 : B.closeIcon, d, B == null ? void 0 : B.disabled);
506
+ Z && (x.preventDefault(), x.stopPropagation(), d.onEdit("remove", {
507
+ key: u,
508
+ event: x
509
+ }), z === ue.length - 1 ? _e(-1) : _e(1));
510
+ }, Ft = function(u, x) {
511
+ ot(!0), x.button === 1 && lt(u, x);
512
+ }, qt = function(u) {
513
+ var x = u.code, z = i && v, B = ue[0], Z = ue[ue.length - 1];
514
+ switch (x) {
515
+ // LEFT
516
+ case "ArrowLeft": {
517
+ v && _e(z ? 1 : -1);
518
+ break;
519
+ }
520
+ // RIGHT
521
+ case "ArrowRight": {
522
+ v && _e(z ? -1 : 1);
523
+ break;
524
+ }
525
+ // UP
526
+ case "ArrowUp": {
527
+ u.preventDefault(), v || _e(-1);
528
+ break;
529
+ }
530
+ // DOWN
531
+ case "ArrowDown": {
532
+ u.preventDefault(), v || _e(1);
533
+ break;
534
+ }
535
+ // HOME
536
+ case "Home": {
537
+ u.preventDefault(), Te(B);
538
+ break;
539
+ }
540
+ // END
541
+ case "End": {
542
+ u.preventDefault(), Te(Z);
543
+ break;
544
+ }
545
+ // Enter & Space
546
+ case "Enter":
547
+ case "Space": {
548
+ u.preventDefault(), H(Se ?? l, u);
549
+ break;
550
+ }
551
+ // Backspace
552
+ case "Backspace":
553
+ case "Delete": {
554
+ lt(Se, u);
555
+ break;
556
+ }
557
+ }
558
+ }, Re = {};
559
+ v ? Re[i ? "marginRight" : "marginLeft"] = S : Re.marginTop = S;
560
+ var ct = R.map(function(E, u) {
561
+ var x = E.key;
562
+ return /* @__PURE__ */ c.createElement(za, {
563
+ id: r,
564
+ prefixCls: p,
565
+ key: x,
566
+ tab: E,
567
+ style: u === 0 ? void 0 : Re,
568
+ closable: E.closable,
569
+ editable: d,
570
+ active: x === l,
571
+ focus: x === Se,
572
+ renderWrapper: I,
573
+ removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
574
+ tabCount: ue.length,
575
+ currentPosition: u + 1,
576
+ onClick: function(B) {
577
+ H(x, B);
578
+ },
579
+ onKeyDown: qt,
580
+ onFocus: function() {
581
+ Xt || Te(x), nt(x), Ge(), G.current && (i || (G.current.scrollLeft = 0), G.current.scrollTop = 0);
582
+ },
583
+ onBlur: function() {
584
+ Te(void 0);
585
+ },
586
+ onMouseDown: function(B) {
587
+ return Ft(x, B);
588
+ },
589
+ onMouseUp: function() {
590
+ ot(!1);
591
+ }
592
+ });
593
+ }), st = function() {
594
+ return At(function() {
595
+ var u, x = /* @__PURE__ */ new Map(), z = (u = D.current) === null || u === void 0 ? void 0 : u.getBoundingClientRect();
596
+ return R.forEach(function(B) {
597
+ var Z, Ce = B.key, mt = (Z = D.current) === null || Z === void 0 ? void 0 : Z.querySelector('[data-node-key="'.concat(Lt(Ce), '"]'));
598
+ if (mt) {
599
+ var ea = Ba(mt, z), Me = N(ea, 4), ta = Me[0], aa = Me[1], na = Me[2], ra = Me[3];
600
+ x.set(Ce, {
601
+ width: ta,
602
+ height: aa,
603
+ left: na,
604
+ top: ra
605
+ });
606
+ }
607
+ }), x;
608
+ });
609
+ };
610
+ le(function() {
611
+ st();
612
+ }, [R.map(function(E) {
613
+ return E.key;
614
+ }).join("_")]);
615
+ var Ne = Mt(function() {
616
+ var E = xe(O), u = xe(M), x = xe(k);
617
+ $([E[0] - u[0] - x[0], E[1] - u[1] - x[1]]);
618
+ var z = xe(T);
619
+ se(z);
620
+ var B = xe(w);
621
+ de(B);
622
+ var Z = xe(D);
623
+ Q([Z[0] - z[0], Z[1] - z[1]]), st();
624
+ }), Yt = R.slice(0, jt), Jt = R.slice(Vt + 1), dt = [].concat(ht(Yt), ht(Jt)), ut = Pe.get(l), Qt = Ea({
625
+ activeTabOffset: ut,
626
+ horizontal: v,
627
+ indicator: W,
628
+ rtl: i
629
+ }), Zt = Qt.style;
630
+ le(function() {
631
+ nt();
632
+ }, [l, fe, ge, wt(ut), wt(Pe), v]), le(function() {
633
+ Ne();
634
+ }, [i]);
635
+ var vt = !!dt.length, Ee = "".concat(p, "-nav-wrap"), Ve, Ke, ft, bt;
636
+ return v ? i ? (Ke = h > 0, Ve = h !== ge) : (Ve = h < 0, Ke = h !== fe) : (ft = J < 0, bt = J !== fe), /* @__PURE__ */ c.createElement(Ue, {
637
+ onResize: Ne
638
+ }, /* @__PURE__ */ c.createElement("div", {
639
+ ref: sa(t, O),
640
+ role: "tablist",
641
+ "aria-orientation": v ? "horizontal" : "vertical",
642
+ className: ee("".concat(p, "-nav"), n),
643
+ style: a,
644
+ onKeyDown: function() {
645
+ Ge();
646
+ }
647
+ }, /* @__PURE__ */ c.createElement(Fe, {
648
+ ref: M,
649
+ position: "left",
650
+ extra: s,
651
+ prefixCls: p
652
+ }), /* @__PURE__ */ c.createElement(Ue, {
653
+ onResize: Ne
654
+ }, /* @__PURE__ */ c.createElement("div", {
655
+ className: ee(Ee, Y(Y(Y(Y({}, "".concat(Ee, "-ping-left"), Ve), "".concat(Ee, "-ping-right"), Ke), "".concat(Ee, "-ping-top"), ft), "".concat(Ee, "-ping-bottom"), bt)),
656
+ ref: G
657
+ }, /* @__PURE__ */ c.createElement(Ue, {
658
+ onResize: Ne
659
+ }, /* @__PURE__ */ c.createElement("div", {
660
+ ref: D,
661
+ className: "".concat(p, "-nav-list"),
662
+ style: {
663
+ transform: "translate(".concat(h, "px, ").concat(J, "px)"),
664
+ transition: Ie ? "none" : void 0
665
+ }
666
+ }, ct, /* @__PURE__ */ c.createElement(Ot, {
667
+ ref: T,
668
+ prefixCls: p,
669
+ locale: g,
670
+ editable: d,
671
+ style: ie(ie({}, ct.length === 0 ? void 0 : Re), {}, {
672
+ visibility: vt ? "hidden" : null
673
+ })
674
+ }), /* @__PURE__ */ c.createElement("div", {
675
+ className: ee("".concat(p, "-ink-bar"), Y({}, "".concat(p, "-ink-bar-animated"), o.inkBar)),
676
+ style: Zt
677
+ }))))), /* @__PURE__ */ c.createElement(Da, me({}, e, {
678
+ removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
679
+ ref: w,
680
+ prefixCls: p,
681
+ tabs: dt,
682
+ className: !vt && Ht,
683
+ tabMoving: !!Ie
684
+ })), /* @__PURE__ */ c.createElement(Fe, {
685
+ ref: k,
686
+ position: "right",
687
+ extra: s,
688
+ prefixCls: p
689
+ })));
690
+ }), Je = /* @__PURE__ */ c.forwardRef(function(e, t) {
691
+ var n = e.prefixCls, a = e.className, r = e.style, o = e.id, l = e.active, i = e.tabKey, s = e.children;
692
+ return /* @__PURE__ */ c.createElement("div", {
693
+ id: o && "".concat(o, "-panel-").concat(i),
694
+ role: "tabpanel",
695
+ tabIndex: l ? 0 : -1,
696
+ "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
697
+ "aria-hidden": !l,
698
+ style: r,
699
+ className: ee(n, l && "".concat(n, "-active"), a),
700
+ ref: t
701
+ }, s);
702
+ });
703
+ process.env.NODE_ENV !== "production" && (Je.displayName = "TabPane");
704
+ var ka = ["renderTabBar"], Aa = ["label", "key"], Dt = function(t) {
705
+ var n = t.renderTabBar, a = De(t, ka), r = c.useContext(ze), o = r.tabs;
706
+ if (n) {
707
+ var l = ie(ie({}, a), {}, {
708
+ // Legacy support. We do not use this actually
709
+ panes: o.map(function(i) {
710
+ var s = i.label, d = i.key, g = De(i, Aa);
711
+ return /* @__PURE__ */ c.createElement(Je, me({
712
+ tab: s,
713
+ key: d,
714
+ tabKey: d
715
+ }, g));
716
+ })
717
+ });
718
+ return n(l, Tt);
719
+ }
720
+ return /* @__PURE__ */ c.createElement(Tt, a);
721
+ };
722
+ process.env.NODE_ENV !== "production" && (Dt.displayName = "TabNavListWrapper");
723
+ var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Wa = function(t) {
724
+ var n = t.id, a = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, i = c.useContext(ze), s = i.prefixCls, d = i.tabs, g = r.tabPane, b = "".concat(s, "-tabpane");
725
+ return /* @__PURE__ */ c.createElement("div", {
726
+ className: ee("".concat(s, "-content-holder"))
727
+ }, /* @__PURE__ */ c.createElement("div", {
728
+ className: ee("".concat(s, "-content"), "".concat(s, "-content-").concat(o), Y({}, "".concat(s, "-content-animated"), g))
729
+ }, d.map(function(S) {
730
+ var I = S.key, H = S.forceRender, P = S.style, W = S.className, f = S.destroyInactiveTabPane, p = De(S, Ha), R = I === a;
731
+ return /* @__PURE__ */ c.createElement(da, me({
732
+ key: I,
733
+ visible: R,
734
+ forceRender: H,
735
+ removeOnLeave: !!(l || f),
736
+ leavedClassName: "".concat(b, "-hidden")
737
+ }, r.tabPaneMotion), function(O, M) {
738
+ var k = O.style, G = O.className;
739
+ return /* @__PURE__ */ c.createElement(Je, me({}, p, {
740
+ prefixCls: b,
741
+ id: n,
742
+ tabKey: I,
743
+ animated: g,
744
+ active: R,
745
+ style: ie(ie({}, P), k),
746
+ className: ee(W, G),
747
+ ref: M
748
+ }));
749
+ });
750
+ })));
751
+ };
752
+ function Ga() {
753
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
754
+ inkBar: !0,
755
+ tabPane: !1
756
+ }, t;
757
+ return e === !1 ? t = {
758
+ inkBar: !1,
759
+ tabPane: !1
760
+ } : e === !0 ? t = {
761
+ inkBar: !0,
762
+ tabPane: !1
763
+ } : t = ie({
764
+ inkBar: !0
765
+ }, qe(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && wa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
766
+ }
767
+ var ja = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Et = 0, zt = /* @__PURE__ */ c.forwardRef(function(e, t) {
768
+ var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, o = e.className, l = e.items, i = e.direction, s = e.activeKey, d = e.defaultActiveKey, g = e.editable, b = e.animated, S = e.tabPosition, I = S === void 0 ? "top" : S, H = e.tabBarGutter, P = e.tabBarStyle, W = e.tabBarExtraContent, f = e.locale, p = e.more, R = e.destroyInactiveTabPane, O = e.renderTabBar, M = e.onChange, k = e.onTabClick, G = e.onTabScroll, D = e.getPopupContainer, w = e.popupClassName, T = e.indicator, v = De(e, ja), _ = c.useMemo(function() {
769
+ return (l || []).filter(function(L) {
770
+ return L && qe(L) === "object" && "key" in L;
771
+ });
772
+ }, [l]), C = i === "rtl", h = Ga(b), K = V(!1), j = N(K, 2), U = j[0], J = j[1];
773
+ le(function() {
774
+ J(Ta());
775
+ }, []);
776
+ var ce = pt(function() {
777
+ var L;
778
+ return (L = _[0]) === null || L === void 0 ? void 0 : L.key;
779
+ }, {
780
+ value: s,
781
+ defaultValue: d
782
+ }), m = N(ce, 2), te = m[0], ve = m[1], $ = V(function() {
783
+ return _.findIndex(function(L) {
784
+ return L.key === te;
785
+ });
786
+ }), A = N($, 2), X = A[0], F = A[1];
787
+ le(function() {
788
+ var L = _.findIndex(function(re) {
789
+ return re.key === te;
790
+ });
791
+ if (L === -1) {
792
+ var de;
793
+ L = Math.max(0, Math.min(X, _.length - 1)), ve((de = _[L]) === null || de === void 0 ? void 0 : de.key);
794
+ }
795
+ F(L);
796
+ }, [_.map(function(L) {
797
+ return L.key;
798
+ }).join("_"), te, X]);
799
+ var Q = pt(null, {
800
+ value: n
801
+ }), ne = N(Q, 2), ae = ne[0], he = ne[1];
802
+ le(function() {
803
+ n || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Et)), Et += 1);
804
+ }, []);
805
+ function se(L, de) {
806
+ k == null || k(L, de);
807
+ var re = L !== te;
808
+ ve(L), re && (M == null || M(L));
809
+ }
810
+ var pe = {
811
+ id: ae,
812
+ activeKey: te,
813
+ animated: h,
814
+ tabPosition: I,
815
+ rtl: C,
816
+ mobile: U
817
+ }, $e = ie(ie({}, pe), {}, {
818
+ editable: g,
819
+ locale: f,
820
+ more: p,
821
+ tabBarGutter: H,
822
+ onTabClick: se,
823
+ onTabScroll: G,
824
+ extra: W,
825
+ style: P,
826
+ panes: null,
827
+ getPopupContainer: D,
828
+ popupClassName: w,
829
+ indicator: T
830
+ });
831
+ return /* @__PURE__ */ c.createElement(ze.Provider, {
832
+ value: {
833
+ tabs: _,
834
+ prefixCls: r
835
+ }
836
+ }, /* @__PURE__ */ c.createElement("div", me({
837
+ ref: t,
838
+ id: n,
839
+ className: ee(r, "".concat(r, "-").concat(I), Y(Y(Y({}, "".concat(r, "-mobile"), U), "".concat(r, "-editable"), g), "".concat(r, "-rtl"), C), o)
840
+ }, v), /* @__PURE__ */ c.createElement(Dt, me({}, $e, {
841
+ renderTabBar: O
842
+ })), /* @__PURE__ */ c.createElement(Wa, me({
843
+ destroyInactiveTabPane: R
844
+ }, pe, {
845
+ animated: h
846
+ }))));
847
+ });
848
+ process.env.NODE_ENV !== "production" && (zt.displayName = "Tabs");
849
+ const Va = {
850
+ motionAppear: !1,
851
+ motionEnter: !0,
852
+ motionLeave: !0
853
+ };
854
+ function Ka(e, t = {
855
+ inkBar: !0,
856
+ tabPane: !1
857
+ }) {
858
+ let n;
859
+ return t === !1 ? n = {
860
+ inkBar: !1,
861
+ tabPane: !1
862
+ } : t === !0 ? n = {
863
+ inkBar: !0,
864
+ tabPane: !0
865
+ } : n = Object.assign({
866
+ inkBar: !0
867
+ }, typeof t == "object" ? t : {}), n.tabPane && (n.tabPaneMotion = Object.assign(Object.assign({}, Va), {
868
+ motionName: ua(e, "switch")
869
+ })), n;
870
+ }
871
+ var Ua = function(e, t) {
872
+ var n = {};
873
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
874
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
875
+ t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
876
+ return n;
877
+ };
878
+ function Xa(e) {
879
+ return e.filter((t) => t);
880
+ }
881
+ function Fa(e, t) {
882
+ if (process.env.NODE_ENV !== "production" && It("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
883
+ return e.map((a) => {
884
+ var r;
885
+ const o = (r = a.destroyOnHidden) !== null && r !== void 0 ? r : a.destroyInactiveTabPane;
886
+ return Object.assign(Object.assign({}, a), {
887
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
888
+ destroyInactiveTabPane: o
889
+ });
890
+ });
891
+ const n = va(t).map((a) => {
892
+ if (/* @__PURE__ */ c.isValidElement(a)) {
893
+ const {
894
+ key: r,
895
+ props: o
896
+ } = a, l = o || {}, {
897
+ tab: i
898
+ } = l, s = Ua(l, ["tab"]);
899
+ return Object.assign(Object.assign({
900
+ key: String(r)
901
+ }, s), {
902
+ label: i
903
+ });
904
+ }
905
+ return null;
906
+ });
907
+ return Xa(n);
908
+ }
909
+ const qa = (e) => {
910
+ const {
911
+ componentCls: t,
912
+ motionDurationSlow: n
913
+ } = e;
914
+ return [
915
+ {
916
+ [t]: {
917
+ [`${t}-switch`]: {
918
+ "&-appear, &-enter": {
919
+ transition: "none",
920
+ "&-start": {
921
+ opacity: 0
922
+ },
923
+ "&-active": {
924
+ opacity: 1,
925
+ transition: `opacity ${n}`
926
+ }
927
+ },
928
+ "&-leave": {
929
+ position: "absolute",
930
+ transition: "none",
931
+ inset: 0,
932
+ "&-start": {
933
+ opacity: 1
934
+ },
935
+ "&-active": {
936
+ opacity: 0,
937
+ transition: `opacity ${n}`
938
+ }
939
+ }
940
+ }
941
+ }
942
+ },
943
+ // Follow code may reuse in other components
944
+ [$t(e, "slide-up"), $t(e, "slide-down")]
945
+ ];
946
+ }, Ya = (e) => {
947
+ const {
948
+ componentCls: t,
949
+ tabsCardPadding: n,
950
+ cardBg: a,
951
+ cardGutter: r,
952
+ colorBorderSecondary: o,
953
+ itemSelectedColor: l
954
+ } = e;
955
+ return {
956
+ [`${t}-card`]: {
957
+ [`> ${t}-nav, > div > ${t}-nav`]: {
958
+ [`${t}-tab`]: {
959
+ margin: 0,
960
+ padding: n,
961
+ background: a,
962
+ border: `${y(e.lineWidth)} ${e.lineType} ${o}`,
963
+ transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
964
+ },
965
+ [`${t}-tab-active`]: {
966
+ color: l,
967
+ background: e.colorBgContainer
968
+ },
969
+ [`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]: Nt(e, -3),
970
+ [`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]: {
971
+ outline: "none"
972
+ },
973
+ [`${t}-ink-bar`]: {
974
+ visibility: "hidden"
975
+ }
976
+ },
977
+ // ========================== Top & Bottom ==========================
978
+ [`&${t}-top, &${t}-bottom`]: {
979
+ [`> ${t}-nav, > div > ${t}-nav`]: {
980
+ [`${t}-tab + ${t}-tab`]: {
981
+ marginLeft: {
982
+ _skip_check_: !0,
983
+ value: y(r)
984
+ }
985
+ }
986
+ }
987
+ },
988
+ [`&${t}-top`]: {
989
+ [`> ${t}-nav, > div > ${t}-nav`]: {
990
+ [`${t}-tab`]: {
991
+ borderRadius: `${y(e.borderRadiusLG)} ${y(e.borderRadiusLG)} 0 0`
992
+ },
993
+ [`${t}-tab-active`]: {
994
+ borderBottomColor: e.colorBgContainer
995
+ }
996
+ }
997
+ },
998
+ [`&${t}-bottom`]: {
999
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1000
+ [`${t}-tab`]: {
1001
+ borderRadius: `0 0 ${y(e.borderRadiusLG)} ${y(e.borderRadiusLG)}`
1002
+ },
1003
+ [`${t}-tab-active`]: {
1004
+ borderTopColor: e.colorBgContainer
1005
+ }
1006
+ }
1007
+ },
1008
+ // ========================== Left & Right ==========================
1009
+ [`&${t}-left, &${t}-right`]: {
1010
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1011
+ [`${t}-tab + ${t}-tab`]: {
1012
+ marginTop: y(r)
1013
+ }
1014
+ }
1015
+ },
1016
+ [`&${t}-left`]: {
1017
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1018
+ [`${t}-tab`]: {
1019
+ borderRadius: {
1020
+ _skip_check_: !0,
1021
+ value: `${y(e.borderRadiusLG)} 0 0 ${y(e.borderRadiusLG)}`
1022
+ }
1023
+ },
1024
+ [`${t}-tab-active`]: {
1025
+ borderRightColor: {
1026
+ _skip_check_: !0,
1027
+ value: e.colorBgContainer
1028
+ }
1029
+ }
1030
+ }
1031
+ },
1032
+ [`&${t}-right`]: {
1033
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1034
+ [`${t}-tab`]: {
1035
+ borderRadius: {
1036
+ _skip_check_: !0,
1037
+ value: `0 ${y(e.borderRadiusLG)} ${y(e.borderRadiusLG)} 0`
1038
+ }
1039
+ },
1040
+ [`${t}-tab-active`]: {
1041
+ borderLeftColor: {
1042
+ _skip_check_: !0,
1043
+ value: e.colorBgContainer
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ }
1049
+ };
1050
+ }, Ja = (e) => {
1051
+ const {
1052
+ componentCls: t,
1053
+ itemHoverColor: n,
1054
+ dropdownEdgeChildVerticalPadding: a
1055
+ } = e;
1056
+ return {
1057
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, Rt(e)), {
1058
+ position: "absolute",
1059
+ top: -9999,
1060
+ left: {
1061
+ _skip_check_: !0,
1062
+ value: -9999
1063
+ },
1064
+ zIndex: e.zIndexPopup,
1065
+ display: "block",
1066
+ "&-hidden": {
1067
+ display: "none"
1068
+ },
1069
+ [`${t}-dropdown-menu`]: {
1070
+ maxHeight: e.tabsDropdownHeight,
1071
+ margin: 0,
1072
+ padding: `${y(a)} 0`,
1073
+ overflowX: "hidden",
1074
+ overflowY: "auto",
1075
+ textAlign: {
1076
+ _skip_check_: !0,
1077
+ value: "left"
1078
+ },
1079
+ listStyleType: "none",
1080
+ backgroundColor: e.colorBgContainer,
1081
+ backgroundClip: "padding-box",
1082
+ borderRadius: e.borderRadiusLG,
1083
+ outline: "none",
1084
+ boxShadow: e.boxShadowSecondary,
1085
+ "&-item": Object.assign(Object.assign({}, ma), {
1086
+ display: "flex",
1087
+ alignItems: "center",
1088
+ minWidth: e.tabsDropdownWidth,
1089
+ margin: 0,
1090
+ padding: `${y(e.paddingXXS)} ${y(e.paddingSM)}`,
1091
+ color: e.colorText,
1092
+ fontWeight: "normal",
1093
+ fontSize: e.fontSize,
1094
+ lineHeight: e.lineHeight,
1095
+ cursor: "pointer",
1096
+ transition: `all ${e.motionDurationSlow}`,
1097
+ "> span": {
1098
+ flex: 1,
1099
+ whiteSpace: "nowrap"
1100
+ },
1101
+ "&-remove": {
1102
+ flex: "none",
1103
+ marginLeft: {
1104
+ _skip_check_: !0,
1105
+ value: e.marginSM
1106
+ },
1107
+ color: e.colorIcon,
1108
+ fontSize: e.fontSizeSM,
1109
+ background: "transparent",
1110
+ border: 0,
1111
+ cursor: "pointer",
1112
+ "&:hover": {
1113
+ color: n
1114
+ }
1115
+ },
1116
+ "&:hover": {
1117
+ background: e.controlItemBgHover
1118
+ },
1119
+ "&-disabled": {
1120
+ "&, &:hover": {
1121
+ color: e.colorTextDisabled,
1122
+ background: "transparent",
1123
+ cursor: "not-allowed"
1124
+ }
1125
+ }
1126
+ })
1127
+ }
1128
+ })
1129
+ };
1130
+ }, Qa = (e) => {
1131
+ const {
1132
+ componentCls: t,
1133
+ margin: n,
1134
+ colorBorderSecondary: a,
1135
+ horizontalMargin: r,
1136
+ verticalItemPadding: o,
1137
+ verticalItemMargin: l,
1138
+ calc: i
1139
+ } = e;
1140
+ return {
1141
+ // ========================== Top & Bottom ==========================
1142
+ [`${t}-top, ${t}-bottom`]: {
1143
+ flexDirection: "column",
1144
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1145
+ margin: r,
1146
+ "&::before": {
1147
+ position: "absolute",
1148
+ right: {
1149
+ _skip_check_: !0,
1150
+ value: 0
1151
+ },
1152
+ left: {
1153
+ _skip_check_: !0,
1154
+ value: 0
1155
+ },
1156
+ borderBottom: `${y(e.lineWidth)} ${e.lineType} ${a}`,
1157
+ content: "''"
1158
+ },
1159
+ [`${t}-ink-bar`]: {
1160
+ height: e.lineWidthBold,
1161
+ "&-animated": {
1162
+ transition: `width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
1163
+ right ${e.motionDurationSlow}`
1164
+ }
1165
+ },
1166
+ [`${t}-nav-wrap`]: {
1167
+ "&::before, &::after": {
1168
+ top: 0,
1169
+ bottom: 0,
1170
+ width: e.controlHeight
1171
+ },
1172
+ "&::before": {
1173
+ left: {
1174
+ _skip_check_: !0,
1175
+ value: 0
1176
+ },
1177
+ boxShadow: e.boxShadowTabsOverflowLeft
1178
+ },
1179
+ "&::after": {
1180
+ right: {
1181
+ _skip_check_: !0,
1182
+ value: 0
1183
+ },
1184
+ boxShadow: e.boxShadowTabsOverflowRight
1185
+ },
1186
+ [`&${t}-nav-wrap-ping-left::before`]: {
1187
+ opacity: 1
1188
+ },
1189
+ [`&${t}-nav-wrap-ping-right::after`]: {
1190
+ opacity: 1
1191
+ }
1192
+ }
1193
+ }
1194
+ },
1195
+ [`${t}-top`]: {
1196
+ [`> ${t}-nav,
1197
+ > div > ${t}-nav`]: {
1198
+ "&::before": {
1199
+ bottom: 0
1200
+ },
1201
+ [`${t}-ink-bar`]: {
1202
+ bottom: 0
1203
+ }
1204
+ }
1205
+ },
1206
+ [`${t}-bottom`]: {
1207
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1208
+ order: 1,
1209
+ marginTop: n,
1210
+ marginBottom: 0,
1211
+ "&::before": {
1212
+ top: 0
1213
+ },
1214
+ [`${t}-ink-bar`]: {
1215
+ top: 0
1216
+ }
1217
+ },
1218
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1219
+ order: 0
1220
+ }
1221
+ },
1222
+ // ========================== Left & Right ==========================
1223
+ [`${t}-left, ${t}-right`]: {
1224
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1225
+ flexDirection: "column",
1226
+ minWidth: i(e.controlHeight).mul(1.25).equal(),
1227
+ // >>>>>>>>>>> Tab
1228
+ [`${t}-tab`]: {
1229
+ padding: o,
1230
+ textAlign: "center"
1231
+ },
1232
+ [`${t}-tab + ${t}-tab`]: {
1233
+ margin: l
1234
+ },
1235
+ // >>>>>>>>>>> Nav
1236
+ [`${t}-nav-wrap`]: {
1237
+ flexDirection: "column",
1238
+ "&::before, &::after": {
1239
+ right: {
1240
+ _skip_check_: !0,
1241
+ value: 0
1242
+ },
1243
+ left: {
1244
+ _skip_check_: !0,
1245
+ value: 0
1246
+ },
1247
+ height: e.controlHeight
1248
+ },
1249
+ "&::before": {
1250
+ top: 0,
1251
+ boxShadow: e.boxShadowTabsOverflowTop
1252
+ },
1253
+ "&::after": {
1254
+ bottom: 0,
1255
+ boxShadow: e.boxShadowTabsOverflowBottom
1256
+ },
1257
+ [`&${t}-nav-wrap-ping-top::before`]: {
1258
+ opacity: 1
1259
+ },
1260
+ [`&${t}-nav-wrap-ping-bottom::after`]: {
1261
+ opacity: 1
1262
+ }
1263
+ },
1264
+ // >>>>>>>>>>> Ink Bar
1265
+ [`${t}-ink-bar`]: {
1266
+ width: e.lineWidthBold,
1267
+ "&-animated": {
1268
+ transition: `height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`
1269
+ }
1270
+ },
1271
+ [`${t}-nav-list, ${t}-nav-operations`]: {
1272
+ flex: "1 0 auto",
1273
+ // fix safari scroll problem
1274
+ flexDirection: "column"
1275
+ }
1276
+ }
1277
+ },
1278
+ [`${t}-left`]: {
1279
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1280
+ [`${t}-ink-bar`]: {
1281
+ right: {
1282
+ _skip_check_: !0,
1283
+ value: 0
1284
+ }
1285
+ }
1286
+ },
1287
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1288
+ marginLeft: {
1289
+ _skip_check_: !0,
1290
+ value: y(i(e.lineWidth).mul(-1).equal())
1291
+ },
1292
+ borderLeft: {
1293
+ _skip_check_: !0,
1294
+ value: `${y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1295
+ },
1296
+ [`> ${t}-content > ${t}-tabpane`]: {
1297
+ paddingLeft: {
1298
+ _skip_check_: !0,
1299
+ value: e.paddingLG
1300
+ }
1301
+ }
1302
+ }
1303
+ },
1304
+ [`${t}-right`]: {
1305
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1306
+ order: 1,
1307
+ [`${t}-ink-bar`]: {
1308
+ left: {
1309
+ _skip_check_: !0,
1310
+ value: 0
1311
+ }
1312
+ }
1313
+ },
1314
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1315
+ order: 0,
1316
+ marginRight: {
1317
+ _skip_check_: !0,
1318
+ value: i(e.lineWidth).mul(-1).equal()
1319
+ },
1320
+ borderRight: {
1321
+ _skip_check_: !0,
1322
+ value: `${y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1323
+ },
1324
+ [`> ${t}-content > ${t}-tabpane`]: {
1325
+ paddingRight: {
1326
+ _skip_check_: !0,
1327
+ value: e.paddingLG
1328
+ }
1329
+ }
1330
+ }
1331
+ }
1332
+ };
1333
+ }, Za = (e) => {
1334
+ const {
1335
+ componentCls: t,
1336
+ cardPaddingSM: n,
1337
+ cardPaddingLG: a,
1338
+ cardHeightSM: r,
1339
+ cardHeightLG: o,
1340
+ horizontalItemPaddingSM: l,
1341
+ horizontalItemPaddingLG: i
1342
+ } = e;
1343
+ return {
1344
+ // >>>>> shared
1345
+ [t]: {
1346
+ "&-small": {
1347
+ [`> ${t}-nav`]: {
1348
+ [`${t}-tab`]: {
1349
+ padding: l,
1350
+ fontSize: e.titleFontSizeSM
1351
+ }
1352
+ }
1353
+ },
1354
+ "&-large": {
1355
+ [`> ${t}-nav`]: {
1356
+ [`${t}-tab`]: {
1357
+ padding: i,
1358
+ fontSize: e.titleFontSizeLG,
1359
+ lineHeight: e.lineHeightLG
1360
+ }
1361
+ }
1362
+ }
1363
+ },
1364
+ // >>>>> card
1365
+ [`${t}-card`]: {
1366
+ // Small
1367
+ [`&${t}-small`]: {
1368
+ [`> ${t}-nav`]: {
1369
+ [`${t}-tab`]: {
1370
+ padding: n
1371
+ },
1372
+ [`${t}-nav-add`]: {
1373
+ minWidth: r,
1374
+ minHeight: r
1375
+ }
1376
+ },
1377
+ [`&${t}-bottom`]: {
1378
+ [`> ${t}-nav ${t}-tab`]: {
1379
+ borderRadius: `0 0 ${y(e.borderRadius)} ${y(e.borderRadius)}`
1380
+ }
1381
+ },
1382
+ [`&${t}-top`]: {
1383
+ [`> ${t}-nav ${t}-tab`]: {
1384
+ borderRadius: `${y(e.borderRadius)} ${y(e.borderRadius)} 0 0`
1385
+ }
1386
+ },
1387
+ [`&${t}-right`]: {
1388
+ [`> ${t}-nav ${t}-tab`]: {
1389
+ borderRadius: {
1390
+ _skip_check_: !0,
1391
+ value: `0 ${y(e.borderRadius)} ${y(e.borderRadius)} 0`
1392
+ }
1393
+ }
1394
+ },
1395
+ [`&${t}-left`]: {
1396
+ [`> ${t}-nav ${t}-tab`]: {
1397
+ borderRadius: {
1398
+ _skip_check_: !0,
1399
+ value: `${y(e.borderRadius)} 0 0 ${y(e.borderRadius)}`
1400
+ }
1401
+ }
1402
+ }
1403
+ },
1404
+ // Large
1405
+ [`&${t}-large`]: {
1406
+ [`> ${t}-nav`]: {
1407
+ [`${t}-tab`]: {
1408
+ padding: a
1409
+ },
1410
+ [`${t}-nav-add`]: {
1411
+ minWidth: o,
1412
+ minHeight: o
1413
+ }
1414
+ }
1415
+ }
1416
+ }
1417
+ };
1418
+ }, en = (e) => {
1419
+ const {
1420
+ componentCls: t,
1421
+ itemActiveColor: n,
1422
+ itemHoverColor: a,
1423
+ iconCls: r,
1424
+ tabsHorizontalItemMargin: o,
1425
+ horizontalItemPadding: l,
1426
+ itemSelectedColor: i,
1427
+ itemColor: s
1428
+ } = e, d = `${t}-tab`;
1429
+ return {
1430
+ [d]: {
1431
+ position: "relative",
1432
+ WebkitTouchCallout: "none",
1433
+ WebkitTapHighlightColor: "transparent",
1434
+ display: "inline-flex",
1435
+ alignItems: "center",
1436
+ padding: l,
1437
+ fontSize: e.titleFontSize,
1438
+ background: "transparent",
1439
+ border: 0,
1440
+ outline: "none",
1441
+ cursor: "pointer",
1442
+ color: s,
1443
+ "&-btn, &-remove": {
1444
+ "&:focus:not(:focus-visible), &:active": {
1445
+ color: n
1446
+ }
1447
+ },
1448
+ "&-btn": {
1449
+ outline: "none",
1450
+ transition: `all ${e.motionDurationSlow}`,
1451
+ [`${d}-icon:not(:last-child)`]: {
1452
+ marginInlineEnd: e.marginSM
1453
+ }
1454
+ },
1455
+ "&-remove": Object.assign({
1456
+ flex: "none",
1457
+ lineHeight: 1,
1458
+ marginRight: {
1459
+ _skip_check_: !0,
1460
+ value: e.calc(e.marginXXS).mul(-1).equal()
1461
+ },
1462
+ marginLeft: {
1463
+ _skip_check_: !0,
1464
+ value: e.marginXS
1465
+ },
1466
+ color: e.colorIcon,
1467
+ fontSize: e.fontSizeSM,
1468
+ background: "transparent",
1469
+ border: "none",
1470
+ outline: "none",
1471
+ cursor: "pointer",
1472
+ transition: `all ${e.motionDurationSlow}`,
1473
+ "&:hover": {
1474
+ color: e.colorTextHeading
1475
+ }
1476
+ }, Xe(e)),
1477
+ "&:hover": {
1478
+ color: a
1479
+ },
1480
+ [`&${d}-active ${d}-btn`]: {
1481
+ color: i,
1482
+ textShadow: e.tabsActiveTextShadow
1483
+ },
1484
+ [`&${d}-focus ${d}-btn:focus-visible`]: Nt(e),
1485
+ [`&${d}-disabled`]: {
1486
+ color: e.colorTextDisabled,
1487
+ cursor: "not-allowed"
1488
+ },
1489
+ [`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
1490
+ "&:focus, &:active": {
1491
+ color: e.colorTextDisabled
1492
+ }
1493
+ },
1494
+ [`& ${d}-remove ${r}`]: {
1495
+ margin: 0,
1496
+ verticalAlign: "middle"
1497
+ },
1498
+ [`${r}:not(:last-child)`]: {
1499
+ marginRight: {
1500
+ _skip_check_: !0,
1501
+ value: e.marginSM
1502
+ }
1503
+ }
1504
+ },
1505
+ [`${d} + ${d}`]: {
1506
+ margin: {
1507
+ _skip_check_: !0,
1508
+ value: o
1509
+ }
1510
+ }
1511
+ };
1512
+ }, tn = (e) => {
1513
+ const {
1514
+ componentCls: t,
1515
+ tabsHorizontalItemMarginRTL: n,
1516
+ iconCls: a,
1517
+ cardGutter: r,
1518
+ calc: o
1519
+ } = e;
1520
+ return {
1521
+ [`${t}-rtl`]: {
1522
+ direction: "rtl",
1523
+ [`${t}-nav`]: {
1524
+ [`${t}-tab`]: {
1525
+ margin: {
1526
+ _skip_check_: !0,
1527
+ value: n
1528
+ },
1529
+ [`${t}-tab:last-of-type`]: {
1530
+ marginLeft: {
1531
+ _skip_check_: !0,
1532
+ value: 0
1533
+ }
1534
+ },
1535
+ [a]: {
1536
+ marginRight: {
1537
+ _skip_check_: !0,
1538
+ value: 0
1539
+ },
1540
+ marginLeft: {
1541
+ _skip_check_: !0,
1542
+ value: y(e.marginSM)
1543
+ }
1544
+ },
1545
+ [`${t}-tab-remove`]: {
1546
+ marginRight: {
1547
+ _skip_check_: !0,
1548
+ value: y(e.marginXS)
1549
+ },
1550
+ marginLeft: {
1551
+ _skip_check_: !0,
1552
+ value: y(o(e.marginXXS).mul(-1).equal())
1553
+ },
1554
+ [a]: {
1555
+ margin: 0
1556
+ }
1557
+ }
1558
+ }
1559
+ },
1560
+ [`&${t}-left`]: {
1561
+ [`> ${t}-nav`]: {
1562
+ order: 1
1563
+ },
1564
+ [`> ${t}-content-holder`]: {
1565
+ order: 0
1566
+ }
1567
+ },
1568
+ [`&${t}-right`]: {
1569
+ [`> ${t}-nav`]: {
1570
+ order: 0
1571
+ },
1572
+ [`> ${t}-content-holder`]: {
1573
+ order: 1
1574
+ }
1575
+ },
1576
+ // ====================== Card ======================
1577
+ [`&${t}-card${t}-top, &${t}-card${t}-bottom`]: {
1578
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1579
+ [`${t}-tab + ${t}-tab`]: {
1580
+ marginRight: {
1581
+ _skip_check_: !0,
1582
+ value: r
1583
+ },
1584
+ marginLeft: {
1585
+ _skip_check_: !0,
1586
+ value: 0
1587
+ }
1588
+ }
1589
+ }
1590
+ }
1591
+ },
1592
+ [`${t}-dropdown-rtl`]: {
1593
+ direction: "rtl"
1594
+ },
1595
+ [`${t}-menu-item`]: {
1596
+ [`${t}-dropdown-rtl`]: {
1597
+ textAlign: {
1598
+ _skip_check_: !0,
1599
+ value: "right"
1600
+ }
1601
+ }
1602
+ }
1603
+ };
1604
+ }, an = (e) => {
1605
+ const {
1606
+ componentCls: t,
1607
+ tabsCardPadding: n,
1608
+ cardHeight: a,
1609
+ cardGutter: r,
1610
+ itemHoverColor: o,
1611
+ itemActiveColor: l,
1612
+ colorBorderSecondary: i
1613
+ } = e;
1614
+ return {
1615
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Rt(e)), {
1616
+ display: "flex",
1617
+ // ========================== Navigation ==========================
1618
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1619
+ position: "relative",
1620
+ display: "flex",
1621
+ flex: "none",
1622
+ alignItems: "center",
1623
+ [`${t}-nav-wrap`]: {
1624
+ position: "relative",
1625
+ display: "flex",
1626
+ flex: "auto",
1627
+ alignSelf: "stretch",
1628
+ overflow: "hidden",
1629
+ whiteSpace: "nowrap",
1630
+ transform: "translate(0)",
1631
+ // Fix chrome render bug
1632
+ // >>>>> Ping shadow
1633
+ "&::before, &::after": {
1634
+ position: "absolute",
1635
+ zIndex: 1,
1636
+ opacity: 0,
1637
+ transition: `opacity ${e.motionDurationSlow}`,
1638
+ content: "''",
1639
+ pointerEvents: "none"
1640
+ }
1641
+ },
1642
+ [`${t}-nav-list`]: {
1643
+ position: "relative",
1644
+ display: "flex",
1645
+ transition: `opacity ${e.motionDurationSlow}`
1646
+ },
1647
+ // >>>>>>>> Operations
1648
+ [`${t}-nav-operations`]: {
1649
+ display: "flex",
1650
+ alignSelf: "stretch"
1651
+ },
1652
+ [`${t}-nav-operations-hidden`]: {
1653
+ position: "absolute",
1654
+ visibility: "hidden",
1655
+ pointerEvents: "none"
1656
+ },
1657
+ [`${t}-nav-more`]: {
1658
+ position: "relative",
1659
+ padding: n,
1660
+ background: "transparent",
1661
+ border: 0,
1662
+ color: e.colorText,
1663
+ "&::after": {
1664
+ position: "absolute",
1665
+ right: {
1666
+ _skip_check_: !0,
1667
+ value: 0
1668
+ },
1669
+ bottom: 0,
1670
+ left: {
1671
+ _skip_check_: !0,
1672
+ value: 0
1673
+ },
1674
+ height: e.calc(e.controlHeightLG).div(8).equal(),
1675
+ transform: "translateY(100%)",
1676
+ content: "''"
1677
+ }
1678
+ },
1679
+ [`${t}-nav-add`]: Object.assign({
1680
+ minWidth: a,
1681
+ minHeight: a,
1682
+ marginLeft: {
1683
+ _skip_check_: !0,
1684
+ value: r
1685
+ },
1686
+ background: "transparent",
1687
+ border: `${y(e.lineWidth)} ${e.lineType} ${i}`,
1688
+ borderRadius: `${y(e.borderRadiusLG)} ${y(e.borderRadiusLG)} 0 0`,
1689
+ outline: "none",
1690
+ cursor: "pointer",
1691
+ color: e.colorText,
1692
+ transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
1693
+ "&:hover": {
1694
+ color: o
1695
+ },
1696
+ "&:active, &:focus:not(:focus-visible)": {
1697
+ color: l
1698
+ }
1699
+ }, Xe(e, -3))
1700
+ },
1701
+ [`${t}-extra-content`]: {
1702
+ flex: "none"
1703
+ },
1704
+ // ============================ InkBar ============================
1705
+ [`${t}-ink-bar`]: {
1706
+ position: "absolute",
1707
+ background: e.inkBarColor,
1708
+ pointerEvents: "none"
1709
+ }
1710
+ }), en(e)), {
1711
+ // =========================== TabPanes ===========================
1712
+ [`${t}-content`]: {
1713
+ position: "relative",
1714
+ width: "100%"
1715
+ },
1716
+ [`${t}-content-holder`]: {
1717
+ flex: "auto",
1718
+ minWidth: 0,
1719
+ minHeight: 0
1720
+ },
1721
+ [`${t}-tabpane`]: Object.assign(Object.assign({}, Xe(e)), {
1722
+ "&-hidden": {
1723
+ display: "none"
1724
+ }
1725
+ })
1726
+ }),
1727
+ [`${t}-centered`]: {
1728
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1729
+ [`${t}-nav-wrap`]: {
1730
+ [`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]: {
1731
+ margin: "auto"
1732
+ }
1733
+ }
1734
+ }
1735
+ }
1736
+ };
1737
+ }, nn = (e) => {
1738
+ const {
1739
+ cardHeight: t,
1740
+ cardHeightSM: n,
1741
+ cardHeightLG: a,
1742
+ controlHeight: r,
1743
+ controlHeightLG: o
1744
+ } = e, l = t || o, i = n || r, s = a || o + 8;
1745
+ return {
1746
+ zIndexPopup: e.zIndexPopupBase + 50,
1747
+ cardBg: e.colorFillAlter,
1748
+ // We can not pass this as valid value,
1749
+ // Since `cardHeight` will lock nav add button height.
1750
+ cardHeight: l,
1751
+ cardHeightSM: i,
1752
+ cardHeightLG: s,
1753
+ // Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
1754
+ cardPadding: `${(l - e.fontHeight) / 2 - e.lineWidth}px ${e.padding}px`,
1755
+ cardPaddingSM: `${(i - e.fontHeight) / 2 - e.lineWidth}px ${e.paddingXS}px`,
1756
+ cardPaddingLG: `${(s - e.fontHeightLG) / 2 - e.lineWidth}px ${e.padding}px`,
1757
+ titleFontSize: e.fontSize,
1758
+ titleFontSizeLG: e.fontSizeLG,
1759
+ titleFontSizeSM: e.fontSize,
1760
+ inkBarColor: e.colorPrimary,
1761
+ horizontalMargin: `0 0 ${e.margin}px 0`,
1762
+ horizontalItemGutter: 32,
1763
+ // Fixed Value
1764
+ // Initialize with empty string, because horizontalItemMargin will be calculated with horizontalItemGutter by default.
1765
+ horizontalItemMargin: "",
1766
+ horizontalItemMarginRTL: "",
1767
+ horizontalItemPadding: `${e.paddingSM}px 0`,
1768
+ horizontalItemPaddingSM: `${e.paddingXS}px 0`,
1769
+ horizontalItemPaddingLG: `${e.padding}px 0`,
1770
+ verticalItemPadding: `${e.paddingXS}px ${e.paddingLG}px`,
1771
+ verticalItemMargin: `${e.margin}px 0 0 0`,
1772
+ itemColor: e.colorText,
1773
+ itemSelectedColor: e.colorPrimary,
1774
+ itemHoverColor: e.colorPrimaryHover,
1775
+ itemActiveColor: e.colorPrimaryActive,
1776
+ cardGutter: e.marginXXS / 2
1777
+ };
1778
+ }, rn = fa("Tabs", (e) => {
1779
+ const t = ba(e, {
1780
+ // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
1781
+ tabsCardPadding: e.cardPadding,
1782
+ dropdownEdgeChildVerticalPadding: e.paddingXXS,
1783
+ tabsActiveTextShadow: "0 0 0.25px currentcolor",
1784
+ tabsDropdownHeight: 200,
1785
+ tabsDropdownWidth: 120,
1786
+ tabsHorizontalItemMargin: `0 0 0 ${y(e.horizontalItemGutter)}`,
1787
+ tabsHorizontalItemMarginRTL: `0 0 0 ${y(e.horizontalItemGutter)}`
1788
+ });
1789
+ return [Za(t), tn(t), Qa(t), Ja(t), Ya(t), an(t), qa(t)];
1790
+ }, nn), Bt = () => null;
1791
+ process.env.NODE_ENV !== "production" && (Bt.displayName = "DeprecatedTabPane");
1792
+ var on = function(e, t) {
1793
+ var n = {};
1794
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
1795
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
1796
+ t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1797
+ return n;
1798
+ };
1799
+ const ln = /* @__PURE__ */ c.forwardRef((e, t) => {
1800
+ var n, a, r, o, l, i, s, d, g, b, S;
1801
+ const {
1802
+ type: I,
1803
+ className: H,
1804
+ rootClassName: P,
1805
+ size: W,
1806
+ onEdit: f,
1807
+ hideAdd: p,
1808
+ centered: R,
1809
+ addIcon: O,
1810
+ removeIcon: M,
1811
+ moreIcon: k,
1812
+ more: G,
1813
+ popupClassName: D,
1814
+ children: w,
1815
+ items: T,
1816
+ animated: v,
1817
+ style: _,
1818
+ indicatorSize: C,
1819
+ indicator: h,
1820
+ destroyInactiveTabPane: K,
1821
+ destroyOnHidden: j
1822
+ } = e, U = on(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]), {
1823
+ prefixCls: J
1824
+ } = U, {
1825
+ direction: ce,
1826
+ tabs: m,
1827
+ getPrefixCls: te,
1828
+ getPopupContainer: ve
1829
+ } = c.useContext(ga), $ = te("tabs", J), A = ha($), [X, F, Q] = rn($, A), ne = c.useRef(null);
1830
+ c.useImperativeHandle(t, () => ({
1831
+ nativeElement: ne.current
1832
+ }));
1833
+ let ae;
1834
+ I === "editable-card" && (ae = {
1835
+ onEdit: (re, {
1836
+ key: ye,
1837
+ event: Be
1838
+ }) => {
1839
+ f == null || f(re === "add" ? Be : ye, re);
1840
+ },
1841
+ removeIcon: (n = M ?? (m == null ? void 0 : m.removeIcon)) !== null && n !== void 0 ? n : /* @__PURE__ */ c.createElement(pa, null),
1842
+ addIcon: (O ?? (m == null ? void 0 : m.addIcon)) || /* @__PURE__ */ c.createElement(xa, null),
1843
+ showAdd: p !== !0
1844
+ });
1845
+ const he = te();
1846
+ if (process.env.NODE_ENV !== "production") {
1847
+ const re = It("Tabs");
1848
+ process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(C || m != null && m.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead."), re.deprecated(!("destroyInactiveTabPane" in e || T != null && T.some((ye) => "destroyInactiveTabPane" in ye)), "destroyInactiveTabPane", "destroyOnHidden");
1849
+ }
1850
+ const se = $a(W), pe = Fa(T, w), $e = Ka($, v), L = Object.assign(Object.assign({}, m == null ? void 0 : m.style), _), de = {
1851
+ align: (a = h == null ? void 0 : h.align) !== null && a !== void 0 ? a : (r = m == null ? void 0 : m.indicator) === null || r === void 0 ? void 0 : r.align,
1852
+ size: (s = (l = (o = h == null ? void 0 : h.size) !== null && o !== void 0 ? o : C) !== null && l !== void 0 ? l : (i = m == null ? void 0 : m.indicator) === null || i === void 0 ? void 0 : i.size) !== null && s !== void 0 ? s : m == null ? void 0 : m.indicatorSize
1853
+ };
1854
+ return X(/* @__PURE__ */ c.createElement(zt, Object.assign({
1855
+ ref: ne,
1856
+ direction: ce,
1857
+ getPopupContainer: ve
1858
+ }, U, {
1859
+ items: pe,
1860
+ className: ee({
1861
+ [`${$}-${se}`]: se,
1862
+ [`${$}-card`]: ["card", "editable-card"].includes(I),
1863
+ [`${$}-editable-card`]: I === "editable-card",
1864
+ [`${$}-centered`]: R
1865
+ }, m == null ? void 0 : m.className, H, P, F, Q, A),
1866
+ popupClassName: ee(D, F, Q, A),
1867
+ style: L,
1868
+ editable: ae,
1869
+ more: Object.assign({
1870
+ icon: (S = (b = (g = (d = m == null ? void 0 : m.more) === null || d === void 0 ? void 0 : d.icon) !== null && g !== void 0 ? g : m == null ? void 0 : m.moreIcon) !== null && b !== void 0 ? b : k) !== null && S !== void 0 ? S : /* @__PURE__ */ c.createElement(Ca, null),
1871
+ transitionName: `${he}-slide-up`
1872
+ }, G),
1873
+ prefixCls: $,
1874
+ animated: $e,
1875
+ indicator: de,
1876
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
1877
+ destroyInactiveTabPane: j ?? K
1878
+ })));
1879
+ }), kt = ln;
1880
+ kt.TabPane = Bt;
1881
+ process.env.NODE_ENV !== "production" && (kt.displayName = "Tabs");
1882
+ export {
1883
+ kt as T
1884
+ };