@gobolt/genesis 0.0.7 → 0.0.8

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 (258) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-c395a1c4.js +204 -0
  3. package/dist/CheckOutlined-52d9ac25.js +29 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
  5. package/dist/CloseOutlined-14b8bba1.js +16 -0
  6. package/dist/Compact-c39ed20d.js +179 -0
  7. package/dist/ContextIsolator-b09b2c52.js +20 -0
  8. package/dist/DownOutlined-64a4732a.js +206 -0
  9. package/dist/EllipsisOutlined-60122660.js +1115 -0
  10. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
  11. package/dist/InfoCircleFilled-c5f90c20.js +16 -0
  12. package/dist/Overflow-a570fa69.js +361 -0
  13. package/dist/RightOutlined-83515eb4.js +16 -0
  14. package/dist/SearchOutlined-a9014e08.js +16 -0
  15. package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
  16. package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
  17. package/dist/collapse-345bc884.js +20 -0
  18. package/dist/compact-item-b8f85aa6.js +75 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +102 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +72 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +23 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +35 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +27 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +23 -0
  54. package/dist/components/Breadcrumb/styles.js +2457 -0
  55. package/dist/components/Button/Button.js +42 -0
  56. package/dist/components/Button/__tests__/Button.test.js +61 -0
  57. package/dist/components/Button/index.js +22 -0
  58. package/dist/components/{atoms/button → Button}/styles.js +30 -19
  59. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  60. package/dist/components/Checkbox/Checkbox.js +70 -0
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
  62. package/dist/components/Checkbox/index.js +49 -0
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
  66. package/dist/components/ErrorBoundaryFallback/index.js +51 -0
  67. package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
  69. package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
  70. package/dist/components/Form/Form.js +49 -0
  71. package/dist/components/Form/__stories__/FormStory.js +130 -0
  72. package/dist/components/Form/index.js +48 -0
  73. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  74. package/dist/components/Input/Input.js +42 -0
  75. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  76. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  77. package/dist/components/Input/__tests__/Input.test.js +69 -0
  78. package/dist/components/Input/index.js +31 -0
  79. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
  80. package/dist/components/Input/styles.js +542 -0
  81. package/dist/components/Message/Message.d.ts +13 -0
  82. package/dist/components/Message/Message.js +105 -0
  83. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  84. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  85. package/dist/components/Message/__tests__/Message.test.js +88 -0
  86. package/dist/components/Message/index.d.ts +2 -0
  87. package/dist/components/Message/index.js +50 -0
  88. package/dist/components/Message/styles.d.ts +5 -0
  89. package/dist/components/Message/styles.js +35 -0
  90. package/dist/components/Notification/Notification.d.ts +16 -0
  91. package/dist/components/Notification/Notification.js +1436 -0
  92. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  93. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  94. package/dist/components/Notification/__tests__/Notification.test.js +76 -0
  95. package/dist/components/Notification/index.d.ts +2 -0
  96. package/dist/components/Notification/index.js +61 -0
  97. package/dist/components/Notification/styles.d.ts +6 -0
  98. package/dist/components/Notification/styles.js +49 -0
  99. package/dist/components/Radio/Radio.d.ts +14 -0
  100. package/dist/components/Radio/Radio.js +114 -0
  101. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  102. package/dist/components/Radio/RadioGroup.js +86 -0
  103. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  104. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  105. package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
  106. package/dist/components/Radio/index.d.ts +2 -0
  107. package/dist/components/Radio/index.js +58 -0
  108. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  109. package/dist/components/Radio/states/RadioChecked.js +18 -0
  110. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  111. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  112. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  113. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  114. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  115. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  116. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  117. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  118. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  119. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  120. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  121. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  122. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  123. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  124. package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
  125. package/dist/components/Select/Select.js +48 -0
  126. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  127. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  128. package/dist/components/Select/__tests__/Select.test.js +101 -0
  129. package/dist/components/Select/index.js +30 -0
  130. package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
  131. package/dist/components/Select/styles.js +3723 -0
  132. package/dist/components/Toast/Toast.d.ts +14 -0
  133. package/dist/components/Toast/Toast.js +48 -0
  134. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  135. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  136. package/dist/components/Toast/__tests__/Toast.test.js +63 -0
  137. package/dist/components/Toast/index.d.ts +2 -0
  138. package/dist/components/Toast/index.js +48 -0
  139. package/dist/components/Toast/styles.d.ts +5 -0
  140. package/dist/components/Toast/styles.js +39 -0
  141. package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
  142. package/dist/components/Typography/Typography.js +48 -0
  143. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  144. package/dist/components/Typography/__tests__/Typography.test.js +60 -0
  145. package/dist/components/Typography/index.js +48 -0
  146. package/dist/components/Typography/styles.d.ts +7 -0
  147. package/dist/components/Typography/styles.js +55 -0
  148. package/dist/components/index.d.ts +18 -14
  149. package/dist/components/index.js +70 -14
  150. package/dist/constants/index.d.ts +104 -0
  151. package/dist/constants/index.js +41 -7
  152. package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
  153. package/dist/genesis/GenesisThemeBreakdown.js +69 -22
  154. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  155. package/dist/genesis/GenesisThemeDemo.js +53 -4
  156. package/dist/genesis/styles.d.ts +2 -6
  157. package/dist/genesis/styles.js +1144 -2210
  158. package/dist/index-0a886e53.js +100 -0
  159. package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
  160. package/dist/index-1a33c134.js +1389 -0
  161. package/dist/index-4003d75b.js +3748 -0
  162. package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
  163. package/dist/index-89035ea5.js +3242 -0
  164. package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
  165. package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
  166. package/dist/index.d.ts +1 -0
  167. package/dist/index.js +77 -18
  168. package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
  169. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
  170. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
  171. package/dist/presets-83ccb923.js +787 -0
  172. package/dist/providers/GenesisProvider.d.ts +5 -0
  173. package/dist/providers/GenesisProvider.js +59 -5
  174. package/dist/providers/ThemeProvider.d.ts +2 -1
  175. package/dist/providers/ThemeProvider.js +16 -11
  176. package/dist/providers/ToastProvider.d.ts +6 -0
  177. package/dist/providers/ToastProvider.js +49 -0
  178. package/dist/providers/ToastWrapper.d.ts +7 -0
  179. package/dist/providers/ToastWrapper.js +56 -0
  180. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  181. package/dist/providers/index.d.ts +3 -2
  182. package/dist/providers/index.js +51 -4
  183. package/dist/setup-aaca7b6f.js +21158 -0
  184. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
  185. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
  186. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
  187. package/dist/styles/design-tokens/variables.d.ts +7 -7
  188. package/dist/styles/design-tokens/variables.js +48 -48
  189. package/dist/styles/global-styles.js +4 -3
  190. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  191. package/dist/styles/theme/genesis-theme.js +402 -263
  192. package/dist/styles/theme/global-styles.js +4 -3
  193. package/dist/styles/theme/index.js +5 -4
  194. package/dist/test/setup.js +46 -2
  195. package/dist/useVariants-a0d64298.js +30 -0
  196. package/dist/utils/isAllEnglishString.js +2 -1
  197. package/package.json +34 -28
  198. package/dist/AntdIcon-Bsnbyy6g.js +0 -200
  199. package/dist/CheckOutlined-DAynWe12.js +0 -527
  200. package/dist/Compact-CJBo3f0u.js +0 -185
  201. package/dist/ContextIsolator-CGkdKtc3.js +0 -20
  202. package/dist/Form-Cylpi4M4.js +0 -1815
  203. package/dist/Overflow-CP1M4Z0s.js +0 -369
  204. package/dist/compact-item-DH13cl8A.js +0 -61
  205. package/dist/components/atoms/button/Button.js +0 -27
  206. package/dist/components/atoms/button/index.js +0 -4
  207. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  208. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
  209. package/dist/components/atoms/checkbox/index.js +0 -4
  210. package/dist/components/atoms/index.d.ts +0 -1
  211. package/dist/components/atoms/index.js +0 -3
  212. package/dist/components/atoms/input/Input.js +0 -12
  213. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  214. package/dist/components/atoms/input/index.js +0 -4
  215. package/dist/components/atoms/input/styles.js +0 -415
  216. package/dist/components/atoms/select/Select.js +0 -24
  217. package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
  218. package/dist/components/atoms/select/index.js +0 -4
  219. package/dist/components/atoms/select/styles.js +0 -3868
  220. package/dist/components/atoms/typography/Typography.js +0 -44
  221. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  222. package/dist/components/atoms/typography/index.js +0 -4
  223. package/dist/components/atoms/typography/styles.d.ts +0 -11
  224. package/dist/components/atoms/typography/styles.js +0 -28
  225. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  226. package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
  227. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
  228. package/dist/components/molecules/form/Form.js +0 -7
  229. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  230. package/dist/components/molecules/form/index.js +0 -4
  231. package/dist/index-3MWkSVA1.js +0 -96
  232. package/dist/index-BPtFqhcp.js +0 -19110
  233. package/dist/index-BWys7dkb.js +0 -4462
  234. package/dist/index-VDH3iLaC.js +0 -884
  235. package/dist/setup-CMYVZCPF.js +0 -33883
  236. package/dist/useVariants-CEpw6Ww6.js +0 -29
  237. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  239. /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
  240. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
  244. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  245. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  246. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  247. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
  248. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  249. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
  250. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  251. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  252. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  254. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  255. /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
  256. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
  257. /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
  258. /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
@@ -1,63 +1,74 @@
1
- import { d as fa } from "../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as Ja } from "../index-D1v_7IIx.js";
3
- import * as i from "react";
4
- import _e, { forwardRef as Qa, useMemo as Mn, useRef as ve, useCallback as vt, useImperativeHandle as er, createContext as tr, useState as be, useEffect as Be } from "react";
5
- import { c as D, m as On, n as Tn, z as w, C as Ve, H as Ke, B as Qe, G as va, t as ma, s as ga, d as Se, e as z, _ as ae, h as B, ai as nr, af as pa, a as Y, w as rt, v as ba, o as ar, p as rr, q as ir, r as or, M as ha, b as en, l as lr, k as sr, A as Ln, E as ya, D as Dn, ak as zn, U as xn, P as tn } from "../index-BWys7dkb.js";
6
- import { o as it, i as cr, u as bt, t as Ca } from "../isVisible-CNQjrJPN.js";
7
- import { a as $a } from "../Compact-CJBo3f0u.js";
8
- import { K as ur, T as Sa, c as dr, g as fr } from "../index-VDH3iLaC.js";
9
- import { F as Lt, i as Xn, R as vr } from "../Overflow-CP1M4Z0s.js";
10
- import { I as xa } from "../AntdIcon-Bsnbyy6g.js";
11
- import { R as hn } from "../index-BQO27mgE.js";
12
- import { K as ge } from "../CheckOutlined-DAynWe12.js";
13
- import { r as mr } from "../index-BPtFqhcp.js";
14
- import { u as gr } from "../context-CZsFJmh6.js";
15
- const nn = (e) => {
1
+ import { d as Yt } from "../styled-components.browser.esm-02f500bc.js";
2
+ import { A as wa } from "../index-501fc13d.js";
3
+ import * as l from "react";
4
+ import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as me, useMemo as Qt } from "react";
5
+ import { c as E, a as he, f as B, _ as le, d as vt, h as te, e as We, w as Oa } from "../presets-83ccb923.js";
6
+ import { o as Ve, u as Bt, t as Ta } from "../isVisible-729780f5.js";
7
+ import { g as ft, m as gt, p as u, C as be, v as ct, w as Dt, c as Na, b as Ia, k as Ra, A as za, t as mt, o as Zt, r as bt, O as pt, H as dt, E as Ke } from "../index-4003d75b.js";
8
+ import { a as Jt } from "../Compact-c39ed20d.js";
9
+ import { K as Ma, a as Ce, c as La, g as ja } from "../index-1a33c134.js";
10
+ import { C as Ba } from "../CloseOutlined-14b8bba1.js";
11
+ import { E as Da, M as Aa, c as Ha, a as ka } from "../EllipsisOutlined-60122660.js";
12
+ import { A as Ga } from "../AntdIcon-c395a1c4.js";
13
+ import { R as rt } from "../index-8c8d2d0c.js";
14
+ import { u as Wa } from "../context-3b8a39af.js";
15
+ import { i as At } from "../Overflow-a570fa69.js";
16
+ import "../CheckOutlined-52d9ac25.js";
17
+ import "../index-0b9ee239.js";
18
+ import "../ContextIsolator-b09b2c52.js";
19
+ import "../reactNode-f4391605.js";
20
+ import "../presetColors-ccf8cb4c.js";
21
+ import "../TextArea-20825221.js";
22
+ import "../CloseCircleFilled-ddc51e7e.js";
23
+ import "../useVariants-a0d64298.js";
24
+ import "../compact-item-b8f85aa6.js";
25
+ import "react-dom";
26
+ const Va = (e) => {
16
27
  const {
17
28
  prefixCls: t,
18
29
  className: a,
19
30
  style: n,
20
31
  size: r,
21
32
  shape: o
22
- } = e, l = D({
33
+ } = e, s = E({
23
34
  [`${t}-lg`]: r === "large",
24
35
  [`${t}-sm`]: r === "small"
25
- }), s = D({
36
+ }), i = E({
26
37
  [`${t}-circle`]: o === "circle",
27
38
  [`${t}-square`]: o === "square",
28
39
  [`${t}-round`]: o === "round"
29
- }), c = i.useMemo(() => typeof r == "number" ? {
40
+ }), c = l.useMemo(() => typeof r == "number" ? {
30
41
  width: r,
31
42
  height: r,
32
43
  lineHeight: `${r}px`
33
44
  } : {}, [r]);
34
- return /* @__PURE__ */ i.createElement("span", {
35
- className: D(t, l, s, a),
45
+ return /* @__PURE__ */ l.createElement("span", {
46
+ className: E(t, s, i, a),
36
47
  style: Object.assign(Object.assign({}, c), n)
37
48
  });
38
- }, pr = new ur("ant-skeleton-loading", {
49
+ }, qe = Va, Ka = new Ma("ant-skeleton-loading", {
39
50
  "0%": {
40
51
  backgroundPosition: "100% 50%"
41
52
  },
42
53
  "100%": {
43
54
  backgroundPosition: "0 50%"
44
55
  }
45
- }), an = (e) => ({
56
+ }), Fe = (e) => ({
46
57
  height: e,
47
- lineHeight: w(e)
48
- }), ht = (e) => Object.assign({
58
+ lineHeight: u(e)
59
+ }), Re = (e) => Object.assign({
49
60
  width: e
50
- }, an(e)), br = (e) => ({
61
+ }, Fe(e)), qa = (e) => ({
51
62
  background: e.skeletonLoadingBackground,
52
63
  backgroundSize: "400% 100%",
53
- animationName: pr,
64
+ animationName: Ka,
54
65
  animationDuration: e.skeletonLoadingMotionDuration,
55
66
  animationTimingFunction: "ease",
56
67
  animationIterationCount: "infinite"
57
- }), yn = (e, t) => Object.assign({
68
+ }), it = (e, t) => Object.assign({
58
69
  width: t(e).mul(5).equal(),
59
70
  minWidth: t(e).mul(5).equal()
60
- }, an(e)), hr = (e) => {
71
+ }, Fe(e)), Fa = (e) => {
61
72
  const {
62
73
  skeletonAvatarCls: t,
63
74
  gradientFromColor: a,
@@ -70,36 +81,36 @@ const nn = (e) => {
70
81
  display: "inline-block",
71
82
  verticalAlign: "top",
72
83
  background: a
73
- }, ht(n)),
84
+ }, Re(n)),
74
85
  [`${t}${t}-circle`]: {
75
86
  borderRadius: "50%"
76
87
  },
77
- [`${t}${t}-lg`]: Object.assign({}, ht(r)),
78
- [`${t}${t}-sm`]: Object.assign({}, ht(o))
88
+ [`${t}${t}-lg`]: Object.assign({}, Re(r)),
89
+ [`${t}${t}-sm`]: Object.assign({}, Re(o))
79
90
  };
80
- }, yr = (e) => {
91
+ }, Xa = (e) => {
81
92
  const {
82
93
  controlHeight: t,
83
94
  borderRadiusSM: a,
84
95
  skeletonInputCls: n,
85
96
  controlHeightLG: r,
86
97
  controlHeightSM: o,
87
- gradientFromColor: l,
88
- calc: s
98
+ gradientFromColor: s,
99
+ calc: i
89
100
  } = e;
90
101
  return {
91
102
  [n]: Object.assign({
92
103
  display: "inline-block",
93
104
  verticalAlign: "top",
94
- background: l,
105
+ background: s,
95
106
  borderRadius: a
96
- }, yn(t, s)),
97
- [`${n}-lg`]: Object.assign({}, yn(r, s)),
98
- [`${n}-sm`]: Object.assign({}, yn(o, s))
107
+ }, it(t, i)),
108
+ [`${n}-lg`]: Object.assign({}, it(r, i)),
109
+ [`${n}-sm`]: Object.assign({}, it(o, i))
99
110
  };
100
- }, Yn = (e) => Object.assign({
111
+ }, Ht = (e) => Object.assign({
101
112
  width: e
102
- }, an(e)), Cr = (e) => {
113
+ }, Fe(e)), Ua = (e) => {
103
114
  const {
104
115
  skeletonImageCls: t,
105
116
  imageSizeBase: a,
@@ -115,11 +126,11 @@ const nn = (e) => {
115
126
  verticalAlign: "middle",
116
127
  background: n,
117
128
  borderRadius: r
118
- }, Yn(o(a).mul(2).equal())), {
129
+ }, Ht(o(a).mul(2).equal())), {
119
130
  [`${t}-path`]: {
120
131
  fill: "#bfbfbf"
121
132
  },
122
- [`${t}-svg`]: Object.assign(Object.assign({}, Yn(a)), {
133
+ [`${t}-svg`]: Object.assign(Object.assign({}, Ht(a)), {
123
134
  maxWidth: o(a).mul(4).equal(),
124
135
  maxHeight: o(a).mul(4).equal()
125
136
  }),
@@ -131,7 +142,7 @@ const nn = (e) => {
131
142
  borderRadius: "50%"
132
143
  }
133
144
  };
134
- }, Cn = (e, t, a) => {
145
+ }, ot = (e, t, a) => {
135
146
  const {
136
147
  skeletonButtonCls: n
137
148
  } = e;
@@ -145,54 +156,54 @@ const nn = (e) => {
145
156
  borderRadius: t
146
157
  }
147
158
  };
148
- }, $n = (e, t) => Object.assign({
159
+ }, lt = (e, t) => Object.assign({
149
160
  width: t(e).mul(2).equal(),
150
161
  minWidth: t(e).mul(2).equal()
151
- }, an(e)), $r = (e) => {
162
+ }, Fe(e)), Ya = (e) => {
152
163
  const {
153
164
  borderRadiusSM: t,
154
165
  skeletonButtonCls: a,
155
166
  controlHeight: n,
156
167
  controlHeightLG: r,
157
168
  controlHeightSM: o,
158
- gradientFromColor: l,
159
- calc: s
169
+ gradientFromColor: s,
170
+ calc: i
160
171
  } = e;
161
172
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
162
173
  [a]: Object.assign({
163
174
  display: "inline-block",
164
175
  verticalAlign: "top",
165
- background: l,
176
+ background: s,
166
177
  borderRadius: t,
167
- width: s(n).mul(2).equal(),
168
- minWidth: s(n).mul(2).equal()
169
- }, $n(n, s))
170
- }, Cn(e, n, a)), {
171
- [`${a}-lg`]: Object.assign({}, $n(r, s))
172
- }), Cn(e, r, `${a}-lg`)), {
173
- [`${a}-sm`]: Object.assign({}, $n(o, s))
174
- }), Cn(e, o, `${a}-sm`));
175
- }, Sr = (e) => {
178
+ width: i(n).mul(2).equal(),
179
+ minWidth: i(n).mul(2).equal()
180
+ }, lt(n, i))
181
+ }, ot(e, n, a)), {
182
+ [`${a}-lg`]: Object.assign({}, lt(r, i))
183
+ }), ot(e, r, `${a}-lg`)), {
184
+ [`${a}-sm`]: Object.assign({}, lt(o, i))
185
+ }), ot(e, o, `${a}-sm`));
186
+ }, Qa = (e) => {
176
187
  const {
177
188
  componentCls: t,
178
189
  skeletonAvatarCls: a,
179
190
  skeletonTitleCls: n,
180
191
  skeletonParagraphCls: r,
181
192
  skeletonButtonCls: o,
182
- skeletonInputCls: l,
183
- skeletonImageCls: s,
193
+ skeletonInputCls: s,
194
+ skeletonImageCls: i,
184
195
  controlHeight: c,
185
- controlHeightLG: u,
186
- controlHeightSM: v,
187
- gradientFromColor: d,
188
- padding: f,
189
- marginSM: h,
190
- borderRadius: S,
191
- titleHeight: g,
192
- blockRadius: x,
193
- paragraphLiHeight: p,
194
- controlHeightXS: C,
195
- paragraphMarginTop: b
196
+ controlHeightLG: d,
197
+ controlHeightSM: g,
198
+ gradientFromColor: f,
199
+ padding: b,
200
+ marginSM: C,
201
+ borderRadius: T,
202
+ titleHeight: p,
203
+ blockRadius: O,
204
+ paragraphLiHeight: y,
205
+ controlHeightXS: S,
206
+ paragraphMarginTop: P
196
207
  } = e;
197
208
  return {
198
209
  [t]: {
@@ -200,19 +211,19 @@ const nn = (e) => {
200
211
  width: "100%",
201
212
  [`${t}-header`]: {
202
213
  display: "table-cell",
203
- paddingInlineEnd: f,
214
+ paddingInlineEnd: b,
204
215
  verticalAlign: "top",
205
216
  // Avatar
206
217
  [a]: Object.assign({
207
218
  display: "inline-block",
208
219
  verticalAlign: "top",
209
- background: d
210
- }, ht(c)),
220
+ background: f
221
+ }, Re(c)),
211
222
  [`${a}-circle`]: {
212
223
  borderRadius: "50%"
213
224
  },
214
- [`${a}-lg`]: Object.assign({}, ht(u)),
215
- [`${a}-sm`]: Object.assign({}, ht(v))
225
+ [`${a}-lg`]: Object.assign({}, Re(d)),
226
+ [`${a}-sm`]: Object.assign({}, Re(g))
216
227
  },
217
228
  [`${t}-content`]: {
218
229
  display: "table-cell",
@@ -221,11 +232,11 @@ const nn = (e) => {
221
232
  // Title
222
233
  [n]: {
223
234
  width: "100%",
224
- height: g,
225
- background: d,
226
- borderRadius: x,
235
+ height: p,
236
+ background: f,
237
+ borderRadius: O,
227
238
  [`+ ${r}`]: {
228
- marginBlockStart: v
239
+ marginBlockStart: g
229
240
  }
230
241
  },
231
242
  // paragraph
@@ -233,12 +244,12 @@ const nn = (e) => {
233
244
  padding: 0,
234
245
  "> li": {
235
246
  width: "100%",
236
- height: p,
247
+ height: y,
237
248
  listStyle: "none",
238
- background: d,
239
- borderRadius: x,
249
+ background: f,
250
+ borderRadius: O,
240
251
  "+ li": {
241
- marginBlockStart: C
252
+ marginBlockStart: S
242
253
  }
243
254
  }
244
255
  },
@@ -248,16 +259,16 @@ const nn = (e) => {
248
259
  },
249
260
  [`&-round ${t}-content`]: {
250
261
  [`${n}, ${r} > li`]: {
251
- borderRadius: S
262
+ borderRadius: T
252
263
  }
253
264
  }
254
265
  },
255
266
  [`${t}-with-avatar ${t}-content`]: {
256
267
  // Title
257
268
  [n]: {
258
- marginBlockStart: h,
269
+ marginBlockStart: C,
259
270
  [`+ ${r}`]: {
260
- marginBlockStart: b
271
+ marginBlockStart: P
261
272
  }
262
273
  }
263
274
  },
@@ -265,14 +276,14 @@ const nn = (e) => {
265
276
  [`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
266
277
  display: "inline-block",
267
278
  width: "auto"
268
- }, $r(e)), hr(e)), yr(e)), Cr(e)),
279
+ }, Ya(e)), Fa(e)), Xa(e)), Ua(e)),
269
280
  // Skeleton Block Button, Input
270
281
  [`${t}${t}-block`]: {
271
282
  width: "100%",
272
283
  [o]: {
273
284
  width: "100%"
274
285
  },
275
- [l]: {
286
+ [s]: {
276
287
  width: "100%"
277
288
  }
278
289
  },
@@ -283,12 +294,12 @@ const nn = (e) => {
283
294
  ${r} > li,
284
295
  ${a},
285
296
  ${o},
286
- ${l},
287
- ${s}
288
- `]: Object.assign({}, br(e))
297
+ ${s},
298
+ ${i}
299
+ `]: Object.assign({}, qa(e))
289
300
  }
290
301
  };
291
- }, xr = (e) => {
302
+ }, Za = (e) => {
292
303
  const {
293
304
  colorFillContent: t,
294
305
  colorFill: a
@@ -303,11 +314,11 @@ const nn = (e) => {
303
314
  paragraphMarginTop: e.marginLG + e.marginXXS,
304
315
  paragraphLiHeight: e.controlHeight / 2
305
316
  };
306
- }, yt = On("Skeleton", (e) => {
317
+ }, ze = ft("Skeleton", (e) => {
307
318
  const {
308
319
  componentCls: t,
309
320
  calc: a
310
- } = e, n = Tn(e, {
321
+ } = e, n = gt(e, {
311
322
  skeletonAvatarCls: `${t}-avatar`,
312
323
  skeletonTitleCls: `${t}-title`,
313
324
  skeletonParagraphCls: `${t}-paragraph`,
@@ -320,50 +331,50 @@ const nn = (e) => {
320
331
  skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
321
332
  skeletonLoadingMotionDuration: "1.4s"
322
333
  });
323
- return [Sr(n)];
324
- }, xr, {
334
+ return [Qa(n)];
335
+ }, Za, {
325
336
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
326
- }), Er = (e) => {
337
+ }), Ja = (e) => {
327
338
  const {
328
339
  prefixCls: t,
329
340
  className: a,
330
341
  rootClassName: n,
331
342
  active: r,
332
343
  shape: o = "circle",
333
- size: l = "default"
344
+ size: s = "default"
334
345
  } = e, {
335
- getPrefixCls: s
336
- } = i.useContext(Ve), c = s("skeleton", t), [u, v, d] = yt(c), f = it(e, ["prefixCls", "className"]), h = D(c, `${c}-element`, {
346
+ getPrefixCls: i
347
+ } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
337
348
  [`${c}-active`]: r
338
- }, a, n, v, d);
339
- return u(/* @__PURE__ */ i.createElement("div", {
340
- className: h
341
- }, /* @__PURE__ */ i.createElement(nn, Object.assign({
349
+ }, a, n, g, f);
350
+ return d(/* @__PURE__ */ l.createElement("div", {
351
+ className: C
352
+ }, /* @__PURE__ */ l.createElement(qe, Object.assign({
342
353
  prefixCls: `${c}-avatar`,
343
354
  shape: o,
344
- size: l
345
- }, f))));
346
- }, wr = (e) => {
355
+ size: s
356
+ }, b))));
357
+ }, en = Ja, tn = (e) => {
347
358
  const {
348
359
  prefixCls: t,
349
360
  className: a,
350
361
  rootClassName: n,
351
362
  active: r,
352
363
  block: o = !1,
353
- size: l = "default"
364
+ size: s = "default"
354
365
  } = e, {
355
- getPrefixCls: s
356
- } = i.useContext(Ve), c = s("skeleton", t), [u, v, d] = yt(c), f = it(e, ["prefixCls"]), h = D(c, `${c}-element`, {
366
+ getPrefixCls: i
367
+ } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
357
368
  [`${c}-active`]: r,
358
369
  [`${c}-block`]: o
359
- }, a, n, v, d);
360
- return u(/* @__PURE__ */ i.createElement("div", {
361
- className: h
362
- }, /* @__PURE__ */ i.createElement(nn, Object.assign({
370
+ }, a, n, g, f);
371
+ return d(/* @__PURE__ */ l.createElement("div", {
372
+ className: C
373
+ }, /* @__PURE__ */ l.createElement(qe, Object.assign({
363
374
  prefixCls: `${c}-button`,
364
- size: l
365
- }, f))));
366
- }, _r = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", Pr = (e) => {
375
+ size: s
376
+ }, b))));
377
+ }, an = tn, nn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", rn = (e) => {
367
378
  const {
368
379
  prefixCls: t,
369
380
  className: a,
@@ -371,63 +382,63 @@ const nn = (e) => {
371
382
  style: r,
372
383
  active: o
373
384
  } = e, {
374
- getPrefixCls: l
375
- } = i.useContext(Ve), s = l("skeleton", t), [c, u, v] = yt(s), d = D(s, `${s}-element`, {
376
- [`${s}-active`]: o
377
- }, a, n, u, v);
378
- return c(/* @__PURE__ */ i.createElement("div", {
379
- className: d
380
- }, /* @__PURE__ */ i.createElement("div", {
381
- className: D(`${s}-image`, a),
385
+ getPrefixCls: s
386
+ } = l.useContext(be), i = s("skeleton", t), [c, d, g] = ze(i), f = E(i, `${i}-element`, {
387
+ [`${i}-active`]: o
388
+ }, a, n, d, g);
389
+ return c(/* @__PURE__ */ l.createElement("div", {
390
+ className: f
391
+ }, /* @__PURE__ */ l.createElement("div", {
392
+ className: E(`${i}-image`, a),
382
393
  style: r
383
- }, /* @__PURE__ */ i.createElement("svg", {
394
+ }, /* @__PURE__ */ l.createElement("svg", {
384
395
  viewBox: "0 0 1098 1024",
385
396
  xmlns: "http://www.w3.org/2000/svg",
386
- className: `${s}-image-svg`
387
- }, /* @__PURE__ */ i.createElement("title", null, "Image placeholder"), /* @__PURE__ */ i.createElement("path", {
388
- d: _r,
389
- className: `${s}-image-path`
397
+ className: `${i}-image-svg`
398
+ }, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
399
+ d: nn,
400
+ className: `${i}-image-path`
390
401
  })))));
391
- }, Ir = (e) => {
402
+ }, on = rn, ln = (e) => {
392
403
  const {
393
404
  prefixCls: t,
394
405
  className: a,
395
406
  rootClassName: n,
396
407
  active: r,
397
408
  block: o,
398
- size: l = "default"
409
+ size: s = "default"
399
410
  } = e, {
400
- getPrefixCls: s
401
- } = i.useContext(Ve), c = s("skeleton", t), [u, v, d] = yt(c), f = it(e, ["prefixCls"]), h = D(c, `${c}-element`, {
411
+ getPrefixCls: i
412
+ } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
402
413
  [`${c}-active`]: r,
403
414
  [`${c}-block`]: o
404
- }, a, n, v, d);
405
- return u(/* @__PURE__ */ i.createElement("div", {
406
- className: h
407
- }, /* @__PURE__ */ i.createElement(nn, Object.assign({
415
+ }, a, n, g, f);
416
+ return d(/* @__PURE__ */ l.createElement("div", {
417
+ className: C
418
+ }, /* @__PURE__ */ l.createElement(qe, Object.assign({
408
419
  prefixCls: `${c}-input`,
409
- size: l
410
- }, f))));
411
- }, Rr = (e) => {
420
+ size: s
421
+ }, b))));
422
+ }, sn = ln, cn = (e) => {
412
423
  const {
413
424
  prefixCls: t,
414
425
  className: a,
415
426
  rootClassName: n,
416
427
  style: r,
417
428
  active: o,
418
- children: l
429
+ children: s
419
430
  } = e, {
420
- getPrefixCls: s
421
- } = i.useContext(Ve), c = s("skeleton", t), [u, v, d] = yt(c), f = D(c, `${c}-element`, {
431
+ getPrefixCls: i
432
+ } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = E(c, `${c}-element`, {
422
433
  [`${c}-active`]: o
423
- }, v, a, n, d);
424
- return u(/* @__PURE__ */ i.createElement("div", {
425
- className: f
426
- }, /* @__PURE__ */ i.createElement("div", {
427
- className: D(`${c}-image`, a),
434
+ }, g, a, n, f);
435
+ return d(/* @__PURE__ */ l.createElement("div", {
436
+ className: b
437
+ }, /* @__PURE__ */ l.createElement("div", {
438
+ className: E(`${c}-image`, a),
428
439
  style: r
429
- }, l)));
430
- }, Nr = (e, t) => {
440
+ }, s)));
441
+ }, dn = cn, un = (e, t) => {
431
442
  const {
432
443
  width: a,
433
444
  rows: n = 2
@@ -436,26 +447,26 @@ const nn = (e) => {
436
447
  return a[e];
437
448
  if (n - 1 === e)
438
449
  return a;
439
- }, Mr = (e) => {
450
+ }, vn = (e) => {
440
451
  const {
441
452
  prefixCls: t,
442
453
  className: a,
443
454
  style: n,
444
455
  rows: r
445
- } = e, o = Ke(new Array(r)).map((l, s) => (
456
+ } = e, o = ct(new Array(r)).map((s, i) => (
446
457
  // eslint-disable-next-line react/no-array-index-key
447
- /* @__PURE__ */ i.createElement("li", {
448
- key: s,
458
+ /* @__PURE__ */ l.createElement("li", {
459
+ key: i,
449
460
  style: {
450
- width: Nr(s, e)
461
+ width: un(i, e)
451
462
  }
452
463
  })
453
464
  ));
454
- return /* @__PURE__ */ i.createElement("ul", {
455
- className: D(t, a),
465
+ return /* @__PURE__ */ l.createElement("ul", {
466
+ className: E(t, a),
456
467
  style: n
457
468
  }, o);
458
- }, Or = (e) => {
469
+ }, fn = vn, gn = (e) => {
459
470
  let {
460
471
  prefixCls: t,
461
472
  className: a,
@@ -464,18 +475,18 @@ const nn = (e) => {
464
475
  } = e;
465
476
  return (
466
477
  // biome-ignore lint/a11y/useHeadingContent: HOC here
467
- /* @__PURE__ */ i.createElement("h3", {
468
- className: D(t, a),
478
+ /* @__PURE__ */ l.createElement("h3", {
479
+ className: E(t, a),
469
480
  style: Object.assign({
470
481
  width: n
471
482
  }, r)
472
483
  })
473
484
  );
474
- };
475
- function Sn(e) {
485
+ }, mn = gn;
486
+ function st(e) {
476
487
  return e && typeof e == "object" ? e : {};
477
488
  }
478
- function Tr(e, t) {
489
+ function bn(e, t) {
479
490
  return e && !t ? {
480
491
  size: "large",
481
492
  shape: "square"
@@ -484,1378 +495,289 @@ function Tr(e, t) {
484
495
  shape: "circle"
485
496
  };
486
497
  }
487
- function Lr(e, t) {
498
+ function pn(e, t) {
488
499
  return !e && t ? {
489
500
  width: "38%"
490
501
  } : e && t ? {
491
502
  width: "50%"
492
503
  } : {};
493
504
  }
494
- function Dr(e, t) {
505
+ function hn(e, t) {
495
506
  const a = {};
496
507
  return (!e || !t) && (a.width = "61%"), !e && t ? a.rows = 3 : a.rows = 2, a;
497
508
  }
498
- const ot = (e) => {
509
+ const Ee = (e) => {
499
510
  const {
500
511
  prefixCls: t,
501
512
  loading: a,
502
513
  className: n,
503
514
  rootClassName: r,
504
515
  style: o,
505
- children: l,
506
- avatar: s = !1,
516
+ children: s,
517
+ avatar: i = !1,
507
518
  title: c = !0,
508
- paragraph: u = !0,
509
- active: v,
510
- round: d
519
+ paragraph: d = !0,
520
+ active: g,
521
+ round: f
511
522
  } = e, {
512
- getPrefixCls: f,
513
- direction: h,
514
- skeleton: S
515
- } = i.useContext(Ve), g = f("skeleton", t), [x, p, C] = yt(g);
523
+ getPrefixCls: b,
524
+ direction: C,
525
+ skeleton: T
526
+ } = l.useContext(be), p = b("skeleton", t), [O, y, S] = ze(p);
516
527
  if (a || !("loading" in e)) {
517
- const b = !!s, _ = !!c, R = !!u;
518
- let P;
519
- if (b) {
520
- const E = Object.assign(Object.assign({
521
- prefixCls: `${g}-avatar`
522
- }, Tr(_, R)), Sn(s));
523
- P = /* @__PURE__ */ i.createElement("div", {
524
- className: `${g}-header`
525
- }, /* @__PURE__ */ i.createElement(nn, Object.assign({}, E)));
528
+ const P = !!i, z = !!c, j = !!d;
529
+ let k;
530
+ if (P) {
531
+ const w = Object.assign(Object.assign({
532
+ prefixCls: `${p}-avatar`
533
+ }, bn(z, j)), st(i));
534
+ k = /* @__PURE__ */ l.createElement("div", {
535
+ className: `${p}-header`
536
+ }, /* @__PURE__ */ l.createElement(qe, Object.assign({}, w)));
526
537
  }
527
- let M;
528
- if (_ || R) {
529
- let E;
530
- if (_) {
531
- const y = Object.assign(Object.assign({
532
- prefixCls: `${g}-title`
533
- }, Lr(b, R)), Sn(c));
534
- E = /* @__PURE__ */ i.createElement(Or, Object.assign({}, y));
538
+ let D;
539
+ if (z || j) {
540
+ let w;
541
+ if (z) {
542
+ const m = Object.assign(Object.assign({
543
+ prefixCls: `${p}-title`
544
+ }, pn(P, j)), st(c));
545
+ w = /* @__PURE__ */ l.createElement(mn, Object.assign({}, m));
535
546
  }
536
- let T;
537
- if (R) {
538
- const y = Object.assign(Object.assign({
539
- prefixCls: `${g}-paragraph`
540
- }, Dr(b, _)), Sn(u));
541
- T = /* @__PURE__ */ i.createElement(Mr, Object.assign({}, y));
542
- }
543
- M = /* @__PURE__ */ i.createElement("div", {
544
- className: `${g}-content`
545
- }, E, T);
546
- }
547
- const O = D(g, {
548
- [`${g}-with-avatar`]: b,
549
- [`${g}-active`]: v,
550
- [`${g}-rtl`]: h === "rtl",
551
- [`${g}-round`]: d
552
- }, S == null ? void 0 : S.className, n, r, p, C);
553
- return x(/* @__PURE__ */ i.createElement("div", {
554
- className: O,
555
- style: Object.assign(Object.assign({}, S == null ? void 0 : S.style), o)
556
- }, P, M));
557
- }
558
- return l ?? null;
559
- };
560
- ot.Button = wr;
561
- ot.Avatar = Er;
562
- ot.Input = Ir;
563
- ot.Image = Pr;
564
- ot.Node = Rr;
565
- process.env.NODE_ENV !== "production" && (ot.displayName = "Skeleton");
566
- var zr = ge.ESC, Ar = ge.TAB;
567
- function kr(e) {
568
- var t = e.visible, a = e.triggerRef, n = e.onVisibleChange, r = e.autoFocus, o = e.overlayRef, l = i.useRef(!1), s = function() {
569
- if (t) {
570
- var d, f;
571
- (d = a.current) === null || d === void 0 || (f = d.focus) === null || f === void 0 || f.call(d), n == null || n(!1);
572
- }
573
- }, c = function() {
574
- var d;
575
- return (d = o.current) !== null && d !== void 0 && d.focus ? (o.current.focus(), l.current = !0, !0) : !1;
576
- }, u = function(d) {
577
- switch (d.keyCode) {
578
- case zr:
579
- s();
580
- break;
581
- case Ar: {
582
- var f = !1;
583
- l.current || (f = c()), f ? d.preventDefault() : s();
584
- break;
547
+ let N;
548
+ if (j) {
549
+ const m = Object.assign(Object.assign({
550
+ prefixCls: `${p}-paragraph`
551
+ }, hn(P, z)), st(d));
552
+ N = /* @__PURE__ */ l.createElement(fn, Object.assign({}, m));
585
553
  }
554
+ D = /* @__PURE__ */ l.createElement("div", {
555
+ className: `${p}-content`
556
+ }, w, N);
586
557
  }
587
- };
588
- i.useEffect(function() {
589
- return t ? (window.addEventListener("keydown", u), r && Qe(c, 3), function() {
590
- window.removeEventListener("keydown", u), l.current = !1;
591
- }) : function() {
592
- l.current = !1;
593
- };
594
- }, [t]);
595
- }
596
- var jr = /* @__PURE__ */ Qa(function(e, t) {
597
- var a = e.overlay, n = e.arrow, r = e.prefixCls, o = Mn(function() {
598
- var s;
599
- return typeof a == "function" ? s = a() : s = a, s;
600
- }, [a]), l = va(t, ma(o));
601
- return /* @__PURE__ */ _e.createElement(_e.Fragment, null, n && /* @__PURE__ */ _e.createElement("div", {
602
- className: "".concat(r, "-arrow")
603
- }), /* @__PURE__ */ _e.cloneElement(o, {
604
- ref: ga(o) ? l : void 0
605
- }));
606
- }), mt = {
607
- adjustX: 1,
608
- adjustY: 1
609
- }, gt = [0, 0], Br = {
610
- topLeft: {
611
- points: ["bl", "tl"],
612
- overflow: mt,
613
- offset: [0, -4],
614
- targetOffset: gt
615
- },
616
- top: {
617
- points: ["bc", "tc"],
618
- overflow: mt,
619
- offset: [0, -4],
620
- targetOffset: gt
621
- },
622
- topRight: {
623
- points: ["br", "tr"],
624
- overflow: mt,
625
- offset: [0, -4],
626
- targetOffset: gt
627
- },
628
- bottomLeft: {
629
- points: ["tl", "bl"],
630
- overflow: mt,
631
- offset: [0, 4],
632
- targetOffset: gt
633
- },
634
- bottom: {
635
- points: ["tc", "bc"],
636
- overflow: mt,
637
- offset: [0, 4],
638
- targetOffset: gt
639
- },
640
- bottomRight: {
641
- points: ["tr", "br"],
642
- overflow: mt,
643
- offset: [0, 4],
644
- targetOffset: gt
645
- }
646
- }, Kr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
647
- function Vr(e, t) {
648
- var a, n = e.arrow, r = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, s = e.transitionName, c = e.animation, u = e.align, v = e.placement, d = v === void 0 ? "bottomLeft" : v, f = e.placements, h = f === void 0 ? Br : f, S = e.getPopupContainer, g = e.showAction, x = e.hideAction, p = e.overlayClassName, C = e.overlayStyle, b = e.visible, _ = e.trigger, R = _ === void 0 ? ["hover"] : _, P = e.autoFocus, M = e.overlay, O = e.children, E = e.onVisibleChange, T = Se(e, Kr), y = _e.useState(), $ = z(y, 2), N = $[0], I = $[1], j = "visible" in e ? b : N, G = _e.useRef(null), m = _e.useRef(null), W = _e.useRef(null);
649
- _e.useImperativeHandle(t, function() {
650
- return G.current;
651
- });
652
- var J = function(q) {
653
- I(q), E == null || E(q);
654
- };
655
- kr({
656
- visible: j,
657
- triggerRef: W,
658
- onVisibleChange: J,
659
- autoFocus: P,
660
- overlayRef: m
661
- });
662
- var F = function(q) {
663
- var te = e.onOverlayClick;
664
- I(!1), te && te(q);
665
- }, ee = function() {
666
- return /* @__PURE__ */ _e.createElement(jr, {
667
- ref: m,
668
- overlay: M,
669
- prefixCls: l,
670
- arrow: r
671
- });
672
- }, se = function() {
673
- return typeof M == "function" ? ee : ee();
674
- }, A = function() {
675
- var q = e.minOverlayWidthMatchTrigger, te = e.alignPoint;
676
- return "minOverlayWidthMatchTrigger" in e ? q : !te;
677
- }, K = function() {
678
- var q = e.openClassName;
679
- return q !== void 0 ? q : "".concat(l, "-open");
680
- }, k = /* @__PURE__ */ _e.cloneElement(O, {
681
- className: D((a = O.props) === null || a === void 0 ? void 0 : a.className, j && K()),
682
- ref: ga(O) ? va(W, ma(O)) : void 0
683
- }), V = x;
684
- return !V && R.indexOf("contextMenu") !== -1 && (V = ["click"]), /* @__PURE__ */ _e.createElement(Sa, ae({
685
- builtinPlacements: h
686
- }, T, {
687
- prefixCls: l,
688
- ref: G,
689
- popupClassName: D(p, B({}, "".concat(l, "-show-arrow"), r)),
690
- popupStyle: C,
691
- action: R,
692
- showAction: g,
693
- hideAction: V,
694
- popupPlacement: d,
695
- popupAlign: u,
696
- popupTransitionName: s,
697
- popupAnimation: c,
698
- popupVisible: j,
699
- stretch: A() ? "minWidth" : "",
700
- popup: se(),
701
- onPopupVisibleChange: J,
702
- onPopupClick: F,
703
- getPopupContainer: S
704
- }), k);
705
- }
706
- const Hr = /* @__PURE__ */ _e.forwardRef(Vr);
707
- var Ea = /* @__PURE__ */ i.createContext(null);
708
- function wa(e, t) {
709
- return e === void 0 ? null : "".concat(e, "-").concat(t);
710
- }
711
- function _a(e) {
712
- var t = i.useContext(Ea);
713
- return wa(t, e);
714
- }
715
- var Gr = ["children", "locked"], ze = /* @__PURE__ */ i.createContext(null);
716
- function Wr(e, t) {
717
- var a = Y({}, e);
718
- return Object.keys(t).forEach(function(n) {
719
- var r = t[n];
720
- r !== void 0 && (a[n] = r);
721
- }), a;
722
- }
723
- function Dt(e) {
724
- var t = e.children, a = e.locked, n = Se(e, Gr), r = i.useContext(ze), o = nr(function() {
725
- return Wr(r, n);
726
- }, [r, n], function(l, s) {
727
- return !a && (l[0] !== s[0] || !pa(l[1], s[1], !0));
728
- });
729
- return /* @__PURE__ */ i.createElement(ze.Provider, {
730
- value: o
731
- }, t);
732
- }
733
- var Fr = [], Pa = /* @__PURE__ */ i.createContext(null);
734
- function rn() {
735
- return i.useContext(Pa);
736
- }
737
- var Ia = /* @__PURE__ */ i.createContext(Fr);
738
- function zt(e) {
739
- var t = i.useContext(Ia);
740
- return i.useMemo(function() {
741
- return e !== void 0 ? [].concat(Ke(t), [e]) : t;
742
- }, [t, e]);
743
- }
744
- var Ra = /* @__PURE__ */ i.createContext(null), An = /* @__PURE__ */ i.createContext({});
745
- function Zn(e) {
746
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
747
- if (cr(e)) {
748
- var a = e.nodeName.toLowerCase(), n = (
749
- // Focusable element
750
- ["input", "select", "textarea", "button"].includes(a) || // Editable element
751
- e.isContentEditable || // Anchor with href element
752
- a === "a" && !!e.getAttribute("href")
753
- ), r = e.getAttribute("tabindex"), o = Number(r), l = null;
754
- return r && !Number.isNaN(o) ? l = o : n && l === null && (l = 0), n && e.disabled && (l = null), l !== null && (l >= 0 || t && l < 0);
755
- }
756
- return !1;
757
- }
758
- function qr(e) {
759
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Ke(e.querySelectorAll("*")).filter(function(n) {
760
- return Zn(n, t);
761
- });
762
- return Zn(e, t) && a.unshift(e), a;
763
- }
764
- var En = ge.LEFT, wn = ge.RIGHT, _n = ge.UP, Yt = ge.DOWN, Zt = ge.ENTER, Na = ge.ESC, Mt = ge.HOME, Ot = ge.END, Jn = [_n, Yt, En, wn];
765
- function Ur(e, t, a, n) {
766
- var r, o = "prev", l = "next", s = "children", c = "parent";
767
- if (e === "inline" && n === Zt)
768
- return {
769
- inlineTrigger: !0
770
- };
771
- var u = B(B({}, _n, o), Yt, l), v = B(B(B(B({}, En, a ? l : o), wn, a ? o : l), Yt, s), Zt, s), d = B(B(B(B(B(B({}, _n, o), Yt, l), Zt, s), Na, c), En, a ? s : c), wn, a ? c : s), f = {
772
- inline: u,
773
- horizontal: v,
774
- vertical: d,
775
- inlineSub: u,
776
- horizontalSub: d,
777
- verticalSub: d
778
- }, h = (r = f["".concat(e).concat(t ? "" : "Sub")]) === null || r === void 0 ? void 0 : r[n];
779
- switch (h) {
780
- case o:
781
- return {
782
- offset: -1,
783
- sibling: !0
784
- };
785
- case l:
786
- return {
787
- offset: 1,
788
- sibling: !0
789
- };
790
- case c:
791
- return {
792
- offset: -1,
793
- sibling: !1
794
- };
795
- case s:
796
- return {
797
- offset: 1,
798
- sibling: !1
799
- };
800
- default:
801
- return null;
802
- }
803
- }
804
- function Xr(e) {
805
- for (var t = e; t; ) {
806
- if (t.getAttribute("data-menu-list"))
807
- return t;
808
- t = t.parentElement;
809
- }
810
- return null;
811
- }
812
- function Yr(e, t) {
813
- for (var a = e || document.activeElement; a; ) {
814
- if (t.has(a))
815
- return a;
816
- a = a.parentElement;
817
- }
818
- return null;
819
- }
820
- function kn(e, t) {
821
- var a = qr(e, !0);
822
- return a.filter(function(n) {
823
- return t.has(n);
824
- });
825
- }
826
- function Qn(e, t, a) {
827
- var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
828
- if (!e)
829
- return null;
830
- var r = kn(e, t), o = r.length, l = r.findIndex(function(s) {
831
- return a === s;
832
- });
833
- return n < 0 ? l === -1 ? l = o - 1 : l -= 1 : n > 0 && (l += 1), l = (l + o) % o, r[l];
834
- }
835
- var Pn = function(t, a) {
836
- var n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
837
- return t.forEach(function(l) {
838
- var s = document.querySelector("[data-menu-id='".concat(wa(a, l), "']"));
839
- s && (n.add(s), o.set(s, l), r.set(l, s));
840
- }), {
841
- elements: n,
842
- key2element: r,
843
- element2key: o
844
- };
845
- };
846
- function Zr(e, t, a, n, r, o, l, s, c, u) {
847
- var v = i.useRef(), d = i.useRef();
848
- d.current = t;
849
- var f = function() {
850
- Qe.cancel(v.current);
851
- };
852
- return i.useEffect(function() {
853
- return function() {
854
- f();
855
- };
856
- }, []), function(h) {
857
- var S = h.which;
858
- if ([].concat(Jn, [Zt, Na, Mt, Ot]).includes(S)) {
859
- var g = o(), x = Pn(g, n), p = x, C = p.elements, b = p.key2element, _ = p.element2key, R = b.get(t), P = Yr(R, C), M = _.get(P), O = Ur(e, l(M, !0).length === 1, a, S);
860
- if (!O && S !== Mt && S !== Ot)
861
- return;
862
- (Jn.includes(S) || [Mt, Ot].includes(S)) && h.preventDefault();
863
- var E = function(m) {
864
- if (m) {
865
- var W = m, J = m.querySelector("a");
866
- J != null && J.getAttribute("href") && (W = J);
867
- var F = _.get(m);
868
- s(F), f(), v.current = Qe(function() {
869
- d.current === F && W.focus();
870
- });
871
- }
872
- };
873
- if ([Mt, Ot].includes(S) || O.sibling || !P) {
874
- var T;
875
- !P || e === "inline" ? T = r.current : T = Xr(P);
876
- var y, $ = kn(T, C);
877
- S === Mt ? y = $[0] : S === Ot ? y = $[$.length - 1] : y = Qn(T, C, P, O.offset), E(y);
878
- } else if (O.inlineTrigger)
879
- c(M);
880
- else if (O.offset > 0)
881
- c(M, !0), f(), v.current = Qe(function() {
882
- x = Pn(g, n);
883
- var G = P.getAttribute("aria-controls"), m = document.getElementById(G), W = Qn(m, x.elements);
884
- E(W);
885
- }, 5);
886
- else if (O.offset < 0) {
887
- var N = l(M, !0), I = N[N.length - 2], j = b.get(I);
888
- c(I, !1), E(j);
889
- }
890
- }
891
- u == null || u(h);
892
- };
893
- }
894
- function Jr(e) {
895
- Promise.resolve().then(e);
896
- }
897
- var jn = "__RC_UTIL_PATH_SPLIT__", ea = function(t) {
898
- return t.join(jn);
899
- }, Qr = function(t) {
900
- return t.split(jn);
901
- }, In = "rc-menu-more";
902
- function ei() {
903
- var e = i.useState({}), t = z(e, 2), a = t[1], n = ve(/* @__PURE__ */ new Map()), r = ve(/* @__PURE__ */ new Map()), o = i.useState([]), l = z(o, 2), s = l[0], c = l[1], u = ve(0), v = ve(!1), d = function() {
904
- v.current || a({});
905
- }, f = vt(function(b, _) {
906
- process.env.NODE_ENV !== "production" && rt(!n.current.has(b), "Duplicated key '".concat(b, "' used in Menu by path [").concat(_.join(" > "), "]"));
907
- var R = ea(_);
908
- r.current.set(R, b), n.current.set(b, R), u.current += 1;
909
- var P = u.current;
910
- Jr(function() {
911
- P === u.current && d();
912
- });
913
- }, []), h = vt(function(b, _) {
914
- var R = ea(_);
915
- r.current.delete(R), n.current.delete(b);
916
- }, []), S = vt(function(b) {
917
- c(b);
918
- }, []), g = vt(function(b, _) {
919
- var R = n.current.get(b) || "", P = Qr(R);
920
- return _ && s.includes(P[0]) && P.unshift(In), P;
921
- }, [s]), x = vt(function(b, _) {
922
- return b.filter(function(R) {
923
- return R !== void 0;
924
- }).some(function(R) {
925
- var P = g(R, !0);
926
- return P.includes(_);
927
- });
928
- }, [g]), p = function() {
929
- var _ = Ke(n.current.keys());
930
- return s.length && _.push(In), _;
931
- }, C = vt(function(b) {
932
- var _ = "".concat(n.current.get(b)).concat(jn), R = /* @__PURE__ */ new Set();
933
- return Ke(r.current.keys()).forEach(function(P) {
934
- P.startsWith(_) && R.add(r.current.get(P));
935
- }), R;
936
- }, []);
937
- return i.useEffect(function() {
938
- return function() {
939
- v.current = !0;
940
- };
941
- }, []), {
942
- // Register
943
- registerPath: f,
944
- unregisterPath: h,
945
- refreshOverflowKeys: S,
946
- // Util
947
- isSubPathKey: x,
948
- getKeyPath: g,
949
- getKeys: p,
950
- getSubPathKeys: C
951
- };
952
- }
953
- function Tt(e) {
954
- var t = i.useRef(e);
955
- t.current = e;
956
- var a = i.useCallback(function() {
957
- for (var n, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
958
- o[l] = arguments[l];
959
- return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(o));
960
- }, []);
961
- return e ? a : void 0;
962
- }
963
- var ti = Math.random().toFixed(5).toString().slice(2), ta = 0;
964
- function ni(e) {
965
- var t = bt(e, {
966
- value: e
967
- }), a = z(t, 2), n = a[0], r = a[1];
968
- return i.useEffect(function() {
969
- ta += 1;
970
- var o = process.env.NODE_ENV === "test" ? "test" : "".concat(ti, "-").concat(ta);
971
- r("rc-menu-uuid-".concat(o));
972
- }, []), n;
973
- }
974
- function Ma(e, t, a, n) {
975
- var r = i.useContext(ze), o = r.activeKey, l = r.onActive, s = r.onInactive, c = {
976
- active: o === e
977
- };
978
- return t || (c.onMouseEnter = function(u) {
979
- a == null || a({
980
- key: e,
981
- domEvent: u
982
- }), l(e);
983
- }, c.onMouseLeave = function(u) {
984
- n == null || n({
985
- key: e,
986
- domEvent: u
987
- }), s(e);
988
- }), c;
989
- }
990
- function Oa(e) {
991
- var t = i.useContext(ze), a = t.mode, n = t.rtl, r = t.inlineIndent;
992
- if (a !== "inline")
993
- return null;
994
- var o = e;
995
- return n ? {
996
- paddingRight: o * r
997
- } : {
998
- paddingLeft: o * r
999
- };
1000
- }
1001
- function Ta(e) {
1002
- var t = e.icon, a = e.props, n = e.children, r;
1003
- return t === null || t === !1 ? null : (typeof t == "function" ? r = /* @__PURE__ */ i.createElement(t, Y({}, a)) : typeof t != "boolean" && (r = t), r || n || null);
1004
- }
1005
- var ai = ["item"];
1006
- function Qt(e) {
1007
- var t = e.item, a = Se(e, ai);
1008
- return Object.defineProperty(a, "item", {
1009
- get: function() {
1010
- return rt(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), t;
1011
- }
1012
- }), a;
1013
- }
1014
- var ri = ["title", "attribute", "elementRef"], ii = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], oi = ["active"], li = /* @__PURE__ */ function(e) {
1015
- ar(a, e);
1016
- var t = rr(a);
1017
- function a() {
1018
- return ir(this, a), t.apply(this, arguments);
1019
- }
1020
- return or(a, [{
1021
- key: "render",
1022
- value: function() {
1023
- var r = this.props, o = r.title, l = r.attribute, s = r.elementRef, c = Se(r, ri), u = it(c, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
1024
- return rt(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Lt.Item, ae({}, l, {
1025
- title: typeof o == "string" ? o : void 0
1026
- }, u, {
1027
- ref: s
1028
- }));
1029
- }
1030
- }]), a;
1031
- }(i.Component), si = /* @__PURE__ */ i.forwardRef(function(e, t) {
1032
- var a = e.style, n = e.className, r = e.eventKey, o = e.warnKey, l = e.disabled, s = e.itemIcon, c = e.children, u = e.role, v = e.onMouseEnter, d = e.onMouseLeave, f = e.onClick, h = e.onKeyDown, S = e.onFocus, g = Se(e, ii), x = _a(r), p = i.useContext(ze), C = p.prefixCls, b = p.onItemClick, _ = p.disabled, R = p.overflowDisabled, P = p.itemIcon, M = p.selectedKeys, O = p.onActive, E = i.useContext(An), T = E._internalRenderMenuItem, y = "".concat(C, "-item"), $ = i.useRef(), N = i.useRef(), I = _ || l, j = ba(t, N), G = zt(r);
1033
- process.env.NODE_ENV !== "production" && o && rt(!1, "MenuItem should not leave undefined `key`.");
1034
- var m = function(ie) {
1035
- return {
1036
- key: r,
1037
- // Note: For legacy code is reversed which not like other antd component
1038
- keyPath: Ke(G).reverse(),
1039
- item: $.current,
1040
- domEvent: ie
1041
- };
1042
- }, W = s || P, J = Ma(r, I, v, d), F = J.active, ee = Se(J, oi), se = M.includes(r), A = Oa(G.length), K = function(ie) {
1043
- if (!I) {
1044
- var de = m(ie);
1045
- f == null || f(Qt(de)), b(de);
1046
- }
1047
- }, k = function(ie) {
1048
- if (h == null || h(ie), ie.which === ge.ENTER) {
1049
- var de = m(ie);
1050
- f == null || f(Qt(de)), b(de);
1051
- }
1052
- }, V = function(ie) {
1053
- O(r), S == null || S(ie);
1054
- }, U = {};
1055
- e.role === "option" && (U["aria-selected"] = se);
1056
- var q = /* @__PURE__ */ i.createElement(li, ae({
1057
- ref: $,
1058
- elementRef: j,
1059
- role: u === null ? "none" : u || "menuitem",
1060
- tabIndex: l ? null : -1,
1061
- "data-menu-id": R && x ? null : x
1062
- }, it(g, ["extra"]), ee, U, {
1063
- component: "li",
1064
- "aria-disabled": l,
1065
- style: Y(Y({}, A), a),
1066
- className: D(y, B(B(B({}, "".concat(y, "-active"), F), "".concat(y, "-selected"), se), "".concat(y, "-disabled"), I), n),
1067
- onClick: K,
1068
- onKeyDown: k,
1069
- onFocus: V
1070
- }), c, /* @__PURE__ */ i.createElement(Ta, {
1071
- props: Y(Y({}, e), {}, {
1072
- isSelected: se
1073
- }),
1074
- icon: W
1075
- }));
1076
- return T && (q = T(q, e, {
1077
- selected: se
1078
- })), q;
1079
- });
1080
- function ci(e, t) {
1081
- var a = e.eventKey, n = rn(), r = zt(a);
1082
- return i.useEffect(function() {
1083
- if (n)
1084
- return n.registerPath(a, r), function() {
1085
- n.unregisterPath(a, r);
1086
- };
1087
- }, [r]), n ? null : /* @__PURE__ */ i.createElement(si, ae({}, e, {
1088
- ref: t
1089
- }));
1090
- }
1091
- const on = /* @__PURE__ */ i.forwardRef(ci);
1092
- var ui = ["className", "children"], di = function(t, a) {
1093
- var n = t.className, r = t.children, o = Se(t, ui), l = i.useContext(ze), s = l.prefixCls, c = l.mode, u = l.rtl;
1094
- return /* @__PURE__ */ i.createElement("ul", ae({
1095
- className: D(s, u && "".concat(s, "-rtl"), "".concat(s, "-sub"), "".concat(s, "-").concat(c === "inline" ? "inline" : "vertical"), n),
1096
- role: "menu"
1097
- }, o, {
1098
- "data-menu-list": !0,
1099
- ref: a
1100
- }), r);
1101
- }, Bn = /* @__PURE__ */ i.forwardRef(di);
1102
- Bn.displayName = "SubMenuList";
1103
- function Kn(e, t) {
1104
- return Ca(e).map(function(a, n) {
1105
- if (/* @__PURE__ */ i.isValidElement(a)) {
1106
- var r, o, l = a.key, s = (r = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && r !== void 0 ? r : l, c = s == null;
1107
- c && (s = "tmp_key-".concat([].concat(Ke(t), [n]).join("-")));
1108
- var u = {
1109
- key: s,
1110
- eventKey: s
1111
- };
1112
- return process.env.NODE_ENV !== "production" && c && (u.warnKey = !0), /* @__PURE__ */ i.cloneElement(a, u);
1113
- }
1114
- return a;
1115
- });
1116
- }
1117
- var $e = {
1118
- adjustX: 1,
1119
- adjustY: 1
1120
- }, fi = {
1121
- topLeft: {
1122
- points: ["bl", "tl"],
1123
- overflow: $e
1124
- },
1125
- topRight: {
1126
- points: ["br", "tr"],
1127
- overflow: $e
1128
- },
1129
- bottomLeft: {
1130
- points: ["tl", "bl"],
1131
- overflow: $e
1132
- },
1133
- bottomRight: {
1134
- points: ["tr", "br"],
1135
- overflow: $e
1136
- },
1137
- leftTop: {
1138
- points: ["tr", "tl"],
1139
- overflow: $e
1140
- },
1141
- leftBottom: {
1142
- points: ["br", "bl"],
1143
- overflow: $e
1144
- },
1145
- rightTop: {
1146
- points: ["tl", "tr"],
1147
- overflow: $e
1148
- },
1149
- rightBottom: {
1150
- points: ["bl", "br"],
1151
- overflow: $e
1152
- }
1153
- }, vi = {
1154
- topLeft: {
1155
- points: ["bl", "tl"],
1156
- overflow: $e
1157
- },
1158
- topRight: {
1159
- points: ["br", "tr"],
1160
- overflow: $e
1161
- },
1162
- bottomLeft: {
1163
- points: ["tl", "bl"],
1164
- overflow: $e
1165
- },
1166
- bottomRight: {
1167
- points: ["tr", "br"],
1168
- overflow: $e
1169
- },
1170
- rightTop: {
1171
- points: ["tr", "tl"],
1172
- overflow: $e
1173
- },
1174
- rightBottom: {
1175
- points: ["br", "bl"],
1176
- overflow: $e
1177
- },
1178
- leftTop: {
1179
- points: ["tl", "tr"],
1180
- overflow: $e
1181
- },
1182
- leftBottom: {
1183
- points: ["bl", "br"],
1184
- overflow: $e
1185
- }
1186
- };
1187
- function La(e, t, a) {
1188
- if (t)
1189
- return t;
1190
- if (a)
1191
- return a[e] || a.other;
1192
- }
1193
- var mi = {
1194
- horizontal: "bottomLeft",
1195
- vertical: "rightTop",
1196
- "vertical-left": "rightTop",
1197
- "vertical-right": "leftTop"
1198
- };
1199
- function gi(e) {
1200
- var t = e.prefixCls, a = e.visible, n = e.children, r = e.popup, o = e.popupStyle, l = e.popupClassName, s = e.popupOffset, c = e.disabled, u = e.mode, v = e.onVisibleChange, d = i.useContext(ze), f = d.getPopupContainer, h = d.rtl, S = d.subMenuOpenDelay, g = d.subMenuCloseDelay, x = d.builtinPlacements, p = d.triggerSubMenuAction, C = d.forceSubMenuRender, b = d.rootClassName, _ = d.motion, R = d.defaultMotions, P = i.useState(!1), M = z(P, 2), O = M[0], E = M[1], T = h ? Y(Y({}, vi), x) : Y(Y({}, fi), x), y = mi[u], $ = La(u, _, R), N = i.useRef($);
1201
- u !== "inline" && (N.current = $);
1202
- var I = Y(Y({}, N.current), {}, {
1203
- leavedClassName: "".concat(t, "-hidden"),
1204
- removeOnLeave: !1,
1205
- motionAppear: !0
1206
- }), j = i.useRef();
1207
- return i.useEffect(function() {
1208
- return j.current = Qe(function() {
1209
- E(a);
1210
- }), function() {
1211
- Qe.cancel(j.current);
1212
- };
1213
- }, [a]), /* @__PURE__ */ i.createElement(Sa, {
1214
- prefixCls: t,
1215
- popupClassName: D("".concat(t, "-popup"), B({}, "".concat(t, "-rtl"), h), l, b),
1216
- stretch: u === "horizontal" ? "minWidth" : null,
1217
- getPopupContainer: f,
1218
- builtinPlacements: T,
1219
- popupPlacement: y,
1220
- popupVisible: O,
1221
- popup: r,
1222
- popupStyle: o,
1223
- popupAlign: s && {
1224
- offset: s
1225
- },
1226
- action: c ? [] : [p],
1227
- mouseEnterDelay: S,
1228
- mouseLeaveDelay: g,
1229
- onPopupVisibleChange: v,
1230
- forceRender: C,
1231
- popupMotion: I,
1232
- fresh: !0
1233
- }, n);
1234
- }
1235
- function pi(e) {
1236
- var t = e.id, a = e.open, n = e.keyPath, r = e.children, o = "inline", l = i.useContext(ze), s = l.prefixCls, c = l.forceSubMenuRender, u = l.motion, v = l.defaultMotions, d = l.mode, f = i.useRef(!1);
1237
- f.current = d === o;
1238
- var h = i.useState(!f.current), S = z(h, 2), g = S[0], x = S[1], p = f.current ? a : !1;
1239
- i.useEffect(function() {
1240
- f.current && x(!1);
1241
- }, [d]);
1242
- var C = Y({}, La(o, u, v));
1243
- n.length > 1 && (C.motionAppear = !1);
1244
- var b = C.onVisibleChanged;
1245
- return C.onVisibleChanged = function(_) {
1246
- return !f.current && !_ && x(!0), b == null ? void 0 : b(_);
1247
- }, g ? null : /* @__PURE__ */ i.createElement(Dt, {
1248
- mode: o,
1249
- locked: !f.current
1250
- }, /* @__PURE__ */ i.createElement(ha, ae({
1251
- visible: p
1252
- }, C, {
1253
- forceRender: c,
1254
- removeOnLeave: !1,
1255
- leavedClassName: "".concat(s, "-hidden")
1256
- }), function(_) {
1257
- var R = _.className, P = _.style;
1258
- return /* @__PURE__ */ i.createElement(Bn, {
1259
- id: t,
558
+ const R = E(p, {
559
+ [`${p}-with-avatar`]: P,
560
+ [`${p}-active`]: g,
561
+ [`${p}-rtl`]: C === "rtl",
562
+ [`${p}-round`]: f
563
+ }, T == null ? void 0 : T.className, n, r, y, S);
564
+ return O(/* @__PURE__ */ l.createElement("div", {
1260
565
  className: R,
1261
- style: P
1262
- }, r);
1263
- }));
1264
- }
1265
- var bi = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], hi = ["active"], yi = /* @__PURE__ */ i.forwardRef(function(e, t) {
1266
- var a = e.style, n = e.className, r = e.title, o = e.eventKey, l = e.warnKey, s = e.disabled, c = e.internalPopupClose, u = e.children, v = e.itemIcon, d = e.expandIcon, f = e.popupClassName, h = e.popupOffset, S = e.popupStyle, g = e.onClick, x = e.onMouseEnter, p = e.onMouseLeave, C = e.onTitleClick, b = e.onTitleMouseEnter, _ = e.onTitleMouseLeave, R = Se(e, bi), P = _a(o), M = i.useContext(ze), O = M.prefixCls, E = M.mode, T = M.openKeys, y = M.disabled, $ = M.overflowDisabled, N = M.activeKey, I = M.selectedKeys, j = M.itemIcon, G = M.expandIcon, m = M.onItemClick, W = M.onOpenChange, J = M.onActive, F = i.useContext(An), ee = F._internalRenderSubMenuItem, se = i.useContext(Ra), A = se.isSubPathKey, K = zt(), k = "".concat(O, "-submenu"), V = y || s, U = i.useRef(), q = i.useRef();
1267
- process.env.NODE_ENV !== "production" && l && rt(!1, "SubMenu should not leave undefined `key`.");
1268
- var te = v ?? j, ie = d ?? G, de = T.includes(o), fe = !$ && de, Pe = A(I, o), H = Ma(o, V, b, _), me = H.active, De = Se(H, hi), Xe = i.useState(!1), oe = z(Xe, 2), Z = oe[0], ye = oe[1], Ie = function(ce) {
1269
- V || ye(ce);
1270
- }, He = function(ce) {
1271
- Ie(!0), x == null || x({
1272
- key: o,
1273
- domEvent: ce
1274
- });
1275
- }, et = function(ce) {
1276
- Ie(!1), p == null || p({
1277
- key: o,
1278
- domEvent: ce
1279
- });
1280
- }, Ye = i.useMemo(function() {
1281
- return me || (E !== "inline" ? Z || A([N], o) : !1);
1282
- }, [E, me, N, Z, o, A]), Oe = Oa(K.length), xe = function(ce) {
1283
- V || (C == null || C({
1284
- key: o,
1285
- domEvent: ce
1286
- }), E === "inline" && W(o, !de));
1287
- }, Ct = Tt(function(Ee) {
1288
- g == null || g(Qt(Ee)), m(Ee);
1289
- }), Re = function(ce) {
1290
- E !== "inline" && W(o, ce);
1291
- }, Te = function() {
1292
- J(o);
1293
- }, Ge = P && "".concat(P, "-popup"), Le = /* @__PURE__ */ i.createElement("div", ae({
1294
- role: "menuitem",
1295
- style: Oe,
1296
- className: "".concat(k, "-title"),
1297
- tabIndex: V ? null : -1,
1298
- ref: U,
1299
- title: typeof r == "string" ? r : null,
1300
- "data-menu-id": $ && P ? null : P,
1301
- "aria-expanded": fe,
1302
- "aria-haspopup": !0,
1303
- "aria-controls": Ge,
1304
- "aria-disabled": V,
1305
- onClick: xe,
1306
- onFocus: Te
1307
- }, De), r, /* @__PURE__ */ i.createElement(Ta, {
1308
- icon: E !== "horizontal" ? ie : void 0,
1309
- props: Y(Y({}, e), {}, {
1310
- isOpen: fe,
1311
- // [Legacy] Not sure why need this mark
1312
- isSubMenu: !0
1313
- })
1314
- }, /* @__PURE__ */ i.createElement("i", {
1315
- className: "".concat(k, "-arrow")
1316
- }))), We = i.useRef(E);
1317
- if (E !== "inline" && K.length > 1 ? We.current = "vertical" : We.current = E, !$) {
1318
- var Ae = We.current;
1319
- Le = /* @__PURE__ */ i.createElement(gi, {
1320
- mode: Ae,
1321
- prefixCls: k,
1322
- visible: !c && fe && E !== "inline",
1323
- popupClassName: f,
1324
- popupOffset: h,
1325
- popupStyle: S,
1326
- popup: /* @__PURE__ */ i.createElement(
1327
- Dt,
1328
- {
1329
- mode: Ae === "horizontal" ? "vertical" : Ae
1330
- },
1331
- /* @__PURE__ */ i.createElement(Bn, {
1332
- id: Ge,
1333
- ref: q
1334
- }, u)
1335
- ),
1336
- disabled: V,
1337
- onVisibleChange: Re
1338
- }, Le);
566
+ style: Object.assign(Object.assign({}, T == null ? void 0 : T.style), o)
567
+ }, k, D));
1339
568
  }
1340
- var ke = /* @__PURE__ */ i.createElement(Lt.Item, ae({
1341
- ref: t,
1342
- role: "none"
1343
- }, R, {
1344
- component: "li",
1345
- style: a,
1346
- className: D(k, "".concat(k, "-").concat(E), n, B(B(B(B({}, "".concat(k, "-open"), fe), "".concat(k, "-active"), Ye), "".concat(k, "-selected"), Pe), "".concat(k, "-disabled"), V)),
1347
- onMouseEnter: He,
1348
- onMouseLeave: et
1349
- }), Le, !$ && /* @__PURE__ */ i.createElement(pi, {
1350
- id: Ge,
1351
- open: fe,
1352
- keyPath: K
1353
- }, u));
1354
- return ee && (ke = ee(ke, e, {
1355
- selected: Pe,
1356
- active: Ye,
1357
- open: fe,
1358
- disabled: V
1359
- })), /* @__PURE__ */ i.createElement(Dt, {
1360
- onItemClick: Ct,
1361
- mode: E === "horizontal" ? "vertical" : E,
1362
- itemIcon: te,
1363
- expandIcon: ie
1364
- }, ke);
1365
- }), ln = /* @__PURE__ */ i.forwardRef(function(e, t) {
1366
- var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
1367
- i.useEffect(function() {
1368
- if (l)
1369
- return l.registerPath(a, r), function() {
1370
- l.unregisterPath(a, r);
1371
- };
1372
- }, [r]);
1373
- var s;
1374
- return l ? s = o : s = /* @__PURE__ */ i.createElement(yi, ae({
1375
- ref: t
1376
- }, e), o), /* @__PURE__ */ i.createElement(Ia.Provider, {
1377
- value: r
1378
- }, s);
1379
- });
1380
- process.env.NODE_ENV !== "production" && (ln.displayName = "SubMenu");
1381
- function Da(e) {
1382
- var t = e.className, a = e.style, n = i.useContext(ze), r = n.prefixCls, o = rn();
1383
- return o ? null : /* @__PURE__ */ i.createElement("li", {
1384
- role: "separator",
1385
- className: D("".concat(r, "-item-divider"), t),
1386
- style: a
1387
- });
1388
- }
1389
- var Ci = ["className", "title", "eventKey", "children"], $i = /* @__PURE__ */ i.forwardRef(function(e, t) {
1390
- var a = e.className, n = e.title;
1391
- e.eventKey;
1392
- var r = e.children, o = Se(e, Ci), l = i.useContext(ze), s = l.prefixCls, c = "".concat(s, "-item-group");
1393
- return /* @__PURE__ */ i.createElement("li", ae({
1394
- ref: t,
1395
- role: "presentation"
1396
- }, o, {
1397
- onClick: function(v) {
1398
- return v.stopPropagation();
1399
- },
1400
- className: D(c, a)
1401
- }), /* @__PURE__ */ i.createElement("div", {
1402
- role: "presentation",
1403
- className: "".concat(c, "-title"),
1404
- title: typeof n == "string" ? n : void 0
1405
- }, n), /* @__PURE__ */ i.createElement("ul", {
1406
- role: "group",
1407
- className: "".concat(c, "-list")
1408
- }, r));
1409
- }), Vn = /* @__PURE__ */ i.forwardRef(function(e, t) {
1410
- var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
1411
- return l ? o : /* @__PURE__ */ i.createElement($i, ae({
1412
- ref: t
1413
- }, it(e, ["warnKey"])), o);
1414
- });
1415
- process.env.NODE_ENV !== "production" && (Vn.displayName = "MenuItemGroup");
1416
- var Si = ["label", "children", "key", "type", "extra"];
1417
- function Rn(e, t, a) {
1418
- var n = t.item, r = t.group, o = t.submenu, l = t.divider;
1419
- return (e || []).map(function(s, c) {
1420
- if (s && en(s) === "object") {
1421
- var u = s, v = u.label, d = u.children, f = u.key, h = u.type, S = u.extra, g = Se(u, Si), x = f ?? "tmp-".concat(c);
1422
- return d || h === "group" ? h === "group" ? /* @__PURE__ */ i.createElement(r, ae({
1423
- key: x
1424
- }, g, {
1425
- title: v
1426
- }), Rn(d, t, a)) : /* @__PURE__ */ i.createElement(o, ae({
1427
- key: x
1428
- }, g, {
1429
- title: v
1430
- }), Rn(d, t, a)) : h === "divider" ? /* @__PURE__ */ i.createElement(l, ae({
1431
- key: x
1432
- }, g)) : /* @__PURE__ */ i.createElement(n, ae({
1433
- key: x
1434
- }, g, {
1435
- extra: S
1436
- }), v, (!!S || S === 0) && /* @__PURE__ */ i.createElement("span", {
1437
- className: "".concat(a, "-item-extra")
1438
- }, S));
1439
- }
1440
- return null;
1441
- }).filter(function(s) {
1442
- return s;
1443
- });
1444
- }
1445
- function na(e, t, a, n, r) {
1446
- var o = e, l = Y({
1447
- divider: Da,
1448
- item: on,
1449
- group: Vn,
1450
- submenu: ln
1451
- }, n);
1452
- return t && (o = Rn(t, l, r)), Kn(o, a);
1453
- }
1454
- var xi = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], at = [], Ei = /* @__PURE__ */ i.forwardRef(function(e, t) {
1455
- var a, n = e, r = n.prefixCls, o = r === void 0 ? "rc-menu" : r, l = n.rootClassName, s = n.style, c = n.className, u = n.tabIndex, v = u === void 0 ? 0 : u, d = n.items, f = n.children, h = n.direction, S = n.id, g = n.mode, x = g === void 0 ? "vertical" : g, p = n.inlineCollapsed, C = n.disabled, b = n.disabledOverflow, _ = n.subMenuOpenDelay, R = _ === void 0 ? 0.1 : _, P = n.subMenuCloseDelay, M = P === void 0 ? 0.1 : P, O = n.forceSubMenuRender, E = n.defaultOpenKeys, T = n.openKeys, y = n.activeKey, $ = n.defaultActiveFirst, N = n.selectable, I = N === void 0 ? !0 : N, j = n.multiple, G = j === void 0 ? !1 : j, m = n.defaultSelectedKeys, W = n.selectedKeys, J = n.onSelect, F = n.onDeselect, ee = n.inlineIndent, se = ee === void 0 ? 24 : ee, A = n.motion, K = n.defaultMotions, k = n.triggerSubMenuAction, V = k === void 0 ? "hover" : k, U = n.builtinPlacements, q = n.itemIcon, te = n.expandIcon, ie = n.overflowedIndicator, de = ie === void 0 ? "..." : ie, fe = n.overflowedIndicatorPopupClassName, Pe = n.getPopupContainer, H = n.onClick, me = n.onOpenChange, De = n.onKeyDown, Xe = n.openAnimation, oe = n.openTransitionName, Z = n._internalRenderMenuItem, ye = n._internalRenderSubMenuItem, Ie = n._internalComponents, He = Se(n, xi), et = i.useMemo(function() {
1456
- return [na(f, d, at, Ie, o), na(f, d, at, {}, o)];
1457
- }, [f, d, Ie]), Ye = z(et, 2), Oe = Ye[0], xe = Ye[1], Ct = i.useState(!1), Re = z(Ct, 2), Te = Re[0], Ge = Re[1], Le = i.useRef(), We = ni(S), Ae = h === "rtl";
1458
- process.env.NODE_ENV !== "production" && rt(!Xe && !oe, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
1459
- var ke = bt(E, {
1460
- value: T,
1461
- postState: function(Q) {
1462
- return Q || at;
1463
- }
1464
- }), Ee = z(ke, 2), ce = Ee[0], lt = Ee[1], $t = function(Q) {
1465
- var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1466
- function Ne() {
1467
- lt(Q), me == null || me(Q);
1468
- }
1469
- le ? mr.flushSync(Ne) : Ne();
1470
- }, kt = i.useState(ce), jt = z(kt, 2), un = jt[0], Bt = jt[1], St = i.useRef(!1), Kt = i.useMemo(function() {
1471
- return (x === "inline" || x === "vertical") && p ? ["vertical", p] : [x, !1];
1472
- }, [x, p]), Fe = z(Kt, 2), je = Fe[0], xt = Fe[1], Et = je === "inline", dn = i.useState(je), wt = z(dn, 2), pe = wt[0], Ze = wt[1], fn = i.useState(xt), tt = z(fn, 2), Vt = tt[0], Ht = tt[1];
1473
- i.useEffect(function() {
1474
- Ze(je), Ht(xt), St.current && (Et ? lt(un) : $t(at));
1475
- }, [je, xt]);
1476
- var st = i.useState(0), Gt = z(st, 2), ct = Gt[0], Wt = Gt[1], ut = ct >= Oe.length - 1 || pe !== "horizontal" || b;
1477
- i.useEffect(function() {
1478
- Et && Bt(ce);
1479
- }, [ce]), i.useEffect(function() {
1480
- return St.current = !0, function() {
1481
- St.current = !1;
1482
- };
1483
- }, []);
1484
- var qe = ei(), Ft = qe.registerPath, _t = qe.unregisterPath, nt = qe.refreshOverflowKeys, dt = qe.isSubPathKey, Pt = qe.getKeyPath, It = qe.getKeys, qt = qe.getSubPathKeys, X = i.useMemo(function() {
1485
- return {
1486
- registerPath: Ft,
1487
- unregisterPath: _t
1488
- };
1489
- }, [Ft, _t]), L = i.useMemo(function() {
1490
- return {
1491
- isSubPathKey: dt
1492
- };
1493
- }, [dt]);
1494
- i.useEffect(function() {
1495
- nt(ut ? at : Oe.slice(ct + 1).map(function(ue) {
1496
- return ue.key;
1497
- }));
1498
- }, [ct, ut]);
1499
- var ne = bt(y || $ && ((a = Oe[0]) === null || a === void 0 ? void 0 : a.key), {
1500
- value: y
1501
- }), re = z(ne, 2), he = re[0], Ce = re[1], Je = Tt(function(ue) {
1502
- Ce(ue);
1503
- }), we = Tt(function() {
1504
- Ce(void 0);
1505
- });
1506
- er(t, function() {
1507
- return {
1508
- list: Le.current,
1509
- focus: function(Q) {
1510
- var le, Ne = It(), Me = Pn(Ne, We), Ut = Me.elements, pn = Me.key2element, Ya = Me.element2key, qn = kn(Le.current, Ut), Un = he ?? (qn[0] ? Ya.get(qn[0]) : (le = Oe.find(function(Za) {
1511
- return !Za.props.disabled;
1512
- })) === null || le === void 0 ? void 0 : le.key), Nt = pn.get(Un);
1513
- if (Un && Nt) {
1514
- var bn;
1515
- Nt == null || (bn = Nt.focus) === null || bn === void 0 || bn.call(Nt, Q);
1516
- }
1517
- }
1518
- };
1519
- });
1520
- var Rt = bt(m || [], {
1521
- value: W,
1522
- // Legacy convert key to array
1523
- postState: function(Q) {
1524
- return Array.isArray(Q) ? Q : Q == null ? at : [Q];
1525
- }
1526
- }), Ue = z(Rt, 2), ft = Ue[0], vn = Ue[1], mn = function(Q) {
1527
- if (I) {
1528
- var le = Q.key, Ne = ft.includes(le), Me;
1529
- G ? Ne ? Me = ft.filter(function(pn) {
1530
- return pn !== le;
1531
- }) : Me = [].concat(Ke(ft), [le]) : Me = [le], vn(Me);
1532
- var Ut = Y(Y({}, Q), {}, {
1533
- selectedKeys: Me
1534
- });
1535
- Ne ? F == null || F(Ut) : J == null || J(Ut);
1536
- }
1537
- !G && ce.length && pe !== "inline" && $t(at);
1538
- }, gn = Tt(function(ue) {
1539
- H == null || H(Qt(ue)), mn(ue);
1540
- }), Fn = Tt(function(ue, Q) {
1541
- var le = ce.filter(function(Me) {
1542
- return Me !== ue;
1543
- });
1544
- if (Q)
1545
- le.push(ue);
1546
- else if (pe !== "inline") {
1547
- var Ne = qt(ue);
1548
- le = le.filter(function(Me) {
1549
- return !Ne.has(Me);
1550
- });
1551
- }
1552
- pa(ce, le, !0) || $t(le, !0);
1553
- }), Wa = function(Q, le) {
1554
- var Ne = le ?? !ce.includes(Q);
1555
- Fn(Q, Ne);
1556
- }, Fa = Zr(pe, he, Ae, We, Le, It, Pt, Ce, Wa, De);
1557
- i.useEffect(function() {
1558
- Ge(!0);
1559
- }, []);
1560
- var qa = i.useMemo(function() {
1561
- return {
1562
- _internalRenderMenuItem: Z,
1563
- _internalRenderSubMenuItem: ye
1564
- };
1565
- }, [Z, ye]), Ua = pe !== "horizontal" || b ? Oe : (
1566
- // Need wrap for overflow dropdown that do not response for open
1567
- Oe.map(function(ue, Q) {
1568
- return (
1569
- // Always wrap provider to avoid sub node re-mount
1570
- /* @__PURE__ */ i.createElement(Dt, {
1571
- key: ue.key,
1572
- overflowDisabled: Q > ct
1573
- }, ue)
1574
- );
1575
- })
1576
- ), Xa = /* @__PURE__ */ i.createElement(Lt, ae({
1577
- id: S,
1578
- ref: Le,
1579
- prefixCls: "".concat(o, "-overflow"),
1580
- component: "ul",
1581
- itemComponent: on,
1582
- className: D(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), c, B(B({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), Ae), l),
1583
- dir: h,
1584
- style: s,
1585
- role: "menu",
1586
- tabIndex: v,
1587
- data: Ua,
1588
- renderRawItem: function(Q) {
1589
- return Q;
1590
- },
1591
- renderRawRest: function(Q) {
1592
- var le = Q.length, Ne = le ? Oe.slice(-le) : null;
1593
- return /* @__PURE__ */ i.createElement(ln, {
1594
- eventKey: In,
1595
- title: de,
1596
- disabled: ut,
1597
- internalPopupClose: le === 0,
1598
- popupClassName: fe
1599
- }, Ne);
1600
- },
1601
- maxCount: pe !== "horizontal" || b ? Lt.INVALIDATE : Lt.RESPONSIVE,
1602
- ssr: "full",
1603
- "data-menu-list": !0,
1604
- onVisibleChange: function(Q) {
1605
- Wt(Q);
1606
- },
1607
- onKeyDown: Fa
1608
- }, He));
1609
- return /* @__PURE__ */ i.createElement(An.Provider, {
1610
- value: qa
1611
- }, /* @__PURE__ */ i.createElement(Ea.Provider, {
1612
- value: We
1613
- }, /* @__PURE__ */ i.createElement(Dt, {
1614
- prefixCls: o,
1615
- rootClassName: l,
1616
- mode: pe,
1617
- openKeys: ce,
1618
- rtl: Ae,
1619
- disabled: C,
1620
- motion: Te ? A : null,
1621
- defaultMotions: Te ? K : null,
1622
- activeKey: he,
1623
- onActive: Je,
1624
- onInactive: we,
1625
- selectedKeys: ft,
1626
- inlineIndent: se,
1627
- subMenuOpenDelay: R,
1628
- subMenuCloseDelay: M,
1629
- forceSubMenuRender: O,
1630
- builtinPlacements: U,
1631
- triggerSubMenuAction: V,
1632
- getPopupContainer: Pe,
1633
- itemIcon: q,
1634
- expandIcon: te,
1635
- onItemClick: gn,
1636
- onOpenChange: Fn
1637
- }, /* @__PURE__ */ i.createElement(Ra.Provider, {
1638
- value: L
1639
- }, Xa), /* @__PURE__ */ i.createElement("div", {
1640
- style: {
1641
- display: "none"
1642
- },
1643
- "aria-hidden": !0
1644
- }, /* @__PURE__ */ i.createElement(Pa.Provider, {
1645
- value: X
1646
- }, xe)))));
1647
- }), At = Ei;
1648
- At.Item = on;
1649
- At.SubMenu = ln;
1650
- At.ItemGroup = Vn;
1651
- At.Divider = Da;
1652
- var wi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, _i = function(t, a) {
1653
- return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
1654
- ref: a,
1655
- icon: wi
1656
- }));
1657
- }, za = /* @__PURE__ */ i.forwardRef(_i);
1658
- process.env.NODE_ENV !== "production" && (za.displayName = "EllipsisOutlined");
1659
- var Pi = { 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" }, Ii = function(t, a) {
1660
- return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
569
+ return s ?? null;
570
+ };
571
+ Ee.Button = an;
572
+ Ee.Avatar = en;
573
+ Ee.Input = sn;
574
+ Ee.Image = on;
575
+ Ee.Node = dn;
576
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "Skeleton");
577
+ const $n = Ee;
578
+ var yn = { 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" };
579
+ const Sn = yn;
580
+ var Cn = function(t, a) {
581
+ return /* @__PURE__ */ l.createElement(Ga, he({}, t, {
1661
582
  ref: a,
1662
- icon: Pi
583
+ icon: Sn
1663
584
  }));
1664
- }, Aa = /* @__PURE__ */ i.forwardRef(Ii);
1665
- process.env.NODE_ENV !== "production" && (Aa.displayName = "PlusOutlined");
1666
- const sn = /* @__PURE__ */ tr(null);
1667
- var Ri = function(t) {
1668
- var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, s = l.size, c = l.align, u = c === void 0 ? "center" : c, v = be(), d = z(v, 2), f = d[0], h = d[1], S = ve(), g = _e.useCallback(function(p) {
1669
- return typeof s == "function" ? s(p) : typeof s == "number" ? s : p;
1670
- }, [s]);
1671
- function x() {
1672
- Qe.cancel(S.current);
585
+ }, ea = /* @__PURE__ */ l.forwardRef(Cn);
586
+ process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
587
+ const xn = ea, Xe = /* @__PURE__ */ Pa(null);
588
+ var _n = function(t) {
589
+ var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, g = U(), f = B(g, 2), b = f[0], C = f[1], T = ee(), p = Ea.useCallback(function(y) {
590
+ return typeof i == "function" ? i(y) : typeof i == "number" ? i : y;
591
+ }, [i]);
592
+ function O() {
593
+ Dt.cancel(T.current);
1673
594
  }
1674
- return Be(function() {
1675
- var p = {};
595
+ return me(function() {
596
+ var y = {};
1676
597
  if (a)
1677
598
  if (n) {
1678
- p.width = g(a.width);
1679
- var C = r ? "right" : "left";
1680
- u === "start" && (p[C] = a[C]), u === "center" && (p[C] = a[C] + a.width / 2, p.transform = r ? "translateX(50%)" : "translateX(-50%)"), u === "end" && (p[C] = a[C] + a.width, p.transform = "translateX(-100%)");
599
+ y.width = p(a.width);
600
+ var S = r ? "right" : "left";
601
+ d === "start" && (y[S] = a[S]), d === "center" && (y[S] = a[S] + a.width / 2, y.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (y[S] = a[S] + a.width, y.transform = "translateX(-100%)");
1681
602
  } else
1682
- p.height = g(a.height), u === "start" && (p.top = a.top), u === "center" && (p.top = a.top + a.height / 2, p.transform = "translateY(-50%)"), u === "end" && (p.top = a.top + a.height, p.transform = "translateY(-100%)");
1683
- return x(), S.current = Qe(function() {
1684
- h(p);
1685
- }), x;
1686
- }, [a, n, r, u, g]), {
1687
- style: f
603
+ y.height = p(a.height), d === "start" && (y.top = a.top), d === "center" && (y.top = a.top + a.height / 2, y.transform = "translateY(-50%)"), d === "end" && (y.top = a.top + a.height, y.transform = "translateY(-100%)");
604
+ return O(), T.current = Dt(function() {
605
+ C(y);
606
+ }), O;
607
+ }, [a, n, r, d, p]), {
608
+ style: b
1688
609
  };
1689
- }, aa = {
610
+ }, kt = {
1690
611
  width: 0,
1691
612
  height: 0,
1692
613
  left: 0,
1693
614
  top: 0
1694
615
  };
1695
- function Ni(e, t, a) {
1696
- return Mn(function() {
1697
- for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || aa, l = o.left + o.width, s = 0; s < e.length; s += 1) {
1698
- var c = e[s].key, u = t.get(c);
1699
- if (!u) {
1700
- var v;
1701
- u = t.get((v = e[s - 1]) === null || v === void 0 ? void 0 : v.key) || aa;
616
+ function wn(e, t, a) {
617
+ return Qt(function() {
618
+ for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || kt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
619
+ var c = e[i].key, d = t.get(c);
620
+ if (!d) {
621
+ var g;
622
+ d = t.get((g = e[i - 1]) === null || g === void 0 ? void 0 : g.key) || kt;
1702
623
  }
1703
- var d = r.get(c) || Y({}, u);
1704
- d.right = l - d.left - d.width, r.set(c, d);
624
+ var f = r.get(c) || le({}, d);
625
+ f.right = s - f.left - f.width, r.set(c, f);
1705
626
  }
1706
627
  return r;
1707
628
  }, [e.map(function(n) {
1708
629
  return n.key;
1709
630
  }).join("_"), t, a]);
1710
631
  }
1711
- function ra(e, t) {
1712
- var a = i.useRef(e), n = i.useState({}), r = z(n, 2), o = r[1];
1713
- function l(s) {
1714
- var c = typeof s == "function" ? s(a.current) : s;
632
+ function Gt(e, t) {
633
+ var a = l.useRef(e), n = l.useState({}), r = B(n, 2), o = r[1];
634
+ function s(i) {
635
+ var c = typeof i == "function" ? i(a.current) : i;
1715
636
  c !== a.current && t(c, a.current), a.current = c, o({});
1716
637
  }
1717
- return [a.current, l];
638
+ return [a.current, s];
1718
639
  }
1719
- var Mi = 0.1, ia = 0.01, Jt = 20, oa = Math.pow(0.995, Jt);
1720
- function Oi(e, t) {
1721
- var a = be(), n = z(a, 2), r = n[0], o = n[1], l = be(0), s = z(l, 2), c = s[0], u = s[1], v = be(0), d = z(v, 2), f = d[0], h = d[1], S = be(), g = z(S, 2), x = g[0], p = g[1], C = ve();
1722
- function b(E) {
1723
- var T = E.touches[0], y = T.screenX, $ = T.screenY;
640
+ var En = 0.1, Wt = 0.01, Ge = 20, Vt = Math.pow(0.995, Ge);
641
+ function Pn(e, t) {
642
+ var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], g = U(0), f = B(g, 2), b = f[0], C = f[1], T = U(), p = B(T, 2), O = p[0], y = p[1], S = ee();
643
+ function P(w) {
644
+ var N = w.touches[0], m = N.screenX, h = N.screenY;
1724
645
  o({
1725
- x: y,
1726
- y: $
1727
- }), window.clearInterval(C.current);
646
+ x: m,
647
+ y: h
648
+ }), window.clearInterval(S.current);
1728
649
  }
1729
- function _(E) {
650
+ function z(w) {
1730
651
  if (r) {
1731
- var T = E.touches[0], y = T.screenX, $ = T.screenY;
652
+ var N = w.touches[0], m = N.screenX, h = N.screenY;
1732
653
  o({
1733
- x: y,
1734
- y: $
654
+ x: m,
655
+ y: h
1735
656
  });
1736
- var N = y - r.x, I = $ - r.y;
1737
- t(N, I);
1738
- var j = Date.now();
1739
- u(j), h(j - c), p({
1740
- x: N,
1741
- y: I
657
+ var _ = m - r.x, x = h - r.y;
658
+ t(_, x);
659
+ var G = Date.now();
660
+ d(G), C(G - c), y({
661
+ x: _,
662
+ y: x
1742
663
  });
1743
664
  }
1744
665
  }
1745
- function R() {
1746
- if (r && (o(null), p(null), x)) {
1747
- var E = x.x / f, T = x.y / f, y = Math.abs(E), $ = Math.abs(T);
1748
- if (Math.max(y, $) < Mi) return;
1749
- var N = E, I = T;
1750
- C.current = window.setInterval(function() {
1751
- if (Math.abs(N) < ia && Math.abs(I) < ia) {
1752
- window.clearInterval(C.current);
666
+ function j() {
667
+ if (r && (o(null), y(null), O)) {
668
+ var w = O.x / b, N = O.y / b, m = Math.abs(w), h = Math.abs(N);
669
+ if (Math.max(m, h) < En)
670
+ return;
671
+ var _ = w, x = N;
672
+ S.current = window.setInterval(function() {
673
+ if (Math.abs(_) < Wt && Math.abs(x) < Wt) {
674
+ window.clearInterval(S.current);
1753
675
  return;
1754
676
  }
1755
- N *= oa, I *= oa, t(N * Jt, I * Jt);
1756
- }, Jt);
677
+ _ *= Vt, x *= Vt, t(_ * Ge, x * Ge);
678
+ }, Ge);
1757
679
  }
1758
680
  }
1759
- var P = ve();
1760
- function M(E) {
1761
- var T = E.deltaX, y = E.deltaY, $ = 0, N = Math.abs(T), I = Math.abs(y);
1762
- N === I ? $ = P.current === "x" ? T : y : N > I ? ($ = T, P.current = "x") : ($ = y, P.current = "y"), t(-$, -$) && E.preventDefault();
681
+ var k = ee();
682
+ function D(w) {
683
+ var N = w.deltaX, m = w.deltaY, h = 0, _ = Math.abs(N), x = Math.abs(m);
684
+ _ === x ? h = k.current === "x" ? N : m : _ > x ? (h = N, k.current = "x") : (h = m, k.current = "y"), t(-h, -h) && w.preventDefault();
1763
685
  }
1764
- var O = ve(null);
1765
- O.current = {
1766
- onTouchStart: b,
1767
- onTouchMove: _,
1768
- onTouchEnd: R,
1769
- onWheel: M
1770
- }, i.useEffect(function() {
1771
- function E(N) {
1772
- O.current.onTouchStart(N);
686
+ var R = ee(null);
687
+ R.current = {
688
+ onTouchStart: P,
689
+ onTouchMove: z,
690
+ onTouchEnd: j,
691
+ onWheel: D
692
+ }, l.useEffect(function() {
693
+ function w(_) {
694
+ R.current.onTouchStart(_);
1773
695
  }
1774
- function T(N) {
1775
- O.current.onTouchMove(N);
696
+ function N(_) {
697
+ R.current.onTouchMove(_);
1776
698
  }
1777
- function y(N) {
1778
- O.current.onTouchEnd(N);
699
+ function m(_) {
700
+ R.current.onTouchEnd(_);
1779
701
  }
1780
- function $(N) {
1781
- O.current.onWheel(N);
702
+ function h(_) {
703
+ R.current.onWheel(_);
1782
704
  }
1783
- return document.addEventListener("touchmove", T, {
705
+ return document.addEventListener("touchmove", N, {
1784
706
  passive: !1
1785
- }), document.addEventListener("touchend", y, {
707
+ }), document.addEventListener("touchend", m, {
1786
708
  passive: !0
1787
- }), e.current.addEventListener("touchstart", E, {
709
+ }), e.current.addEventListener("touchstart", w, {
1788
710
  passive: !0
1789
- }), e.current.addEventListener("wheel", $, {
711
+ }), e.current.addEventListener("wheel", h, {
1790
712
  passive: !1
1791
713
  }), function() {
1792
- document.removeEventListener("touchmove", T), document.removeEventListener("touchend", y);
714
+ document.removeEventListener("touchmove", N), document.removeEventListener("touchend", m);
1793
715
  };
1794
716
  }, []);
1795
717
  }
1796
- function ka(e) {
1797
- var t = be(0), a = z(t, 2), n = a[0], r = a[1], o = ve(0), l = ve();
1798
- return l.current = e, lr(function() {
1799
- var s;
1800
- (s = l.current) === null || s === void 0 || s.call(l);
718
+ function ta(e) {
719
+ var t = U(0), a = B(t, 2), n = a[0], r = a[1], o = ee(0), s = ee();
720
+ return s.current = e, Na(function() {
721
+ var i;
722
+ (i = s.current) === null || i === void 0 || i.call(s);
1801
723
  }, [n]), function() {
1802
724
  o.current === n && (o.current += 1, r(o.current));
1803
725
  };
1804
726
  }
1805
- function Ti(e) {
1806
- var t = ve([]), a = be({}), n = z(a, 2), r = n[1], o = ve(typeof e == "function" ? e() : e), l = ka(function() {
727
+ function On(e) {
728
+ var t = ee([]), a = U({}), n = B(a, 2), r = n[1], o = ee(typeof e == "function" ? e() : e), s = ta(function() {
1807
729
  var c = o.current;
1808
- t.current.forEach(function(u) {
1809
- c = u(c);
730
+ t.current.forEach(function(d) {
731
+ c = d(c);
1810
732
  }), t.current = [], o.current = c, r({});
1811
733
  });
1812
- function s(c) {
1813
- t.current.push(c), l();
734
+ function i(c) {
735
+ t.current.push(c), s();
1814
736
  }
1815
- return [o.current, s];
737
+ return [o.current, i];
1816
738
  }
1817
- var la = {
739
+ var Kt = {
1818
740
  width: 0,
1819
741
  height: 0,
1820
742
  left: 0,
1821
743
  top: 0,
1822
744
  right: 0
1823
745
  };
1824
- function Li(e, t, a, n, r, o, l) {
1825
- var s = l.tabs, c = l.tabPosition, u = l.rtl, v, d, f;
1826
- return ["top", "bottom"].includes(c) ? (v = "width", d = u ? "right" : "left", f = Math.abs(a)) : (v = "height", d = "top", f = -a), Mn(function() {
1827
- if (!s.length)
746
+ function Tn(e, t, a, n, r, o, s) {
747
+ var i = s.tabs, c = s.tabPosition, d = s.rtl, g, f, b;
748
+ return ["top", "bottom"].includes(c) ? (g = "width", f = d ? "right" : "left", b = Math.abs(a)) : (g = "height", f = "top", b = -a), Qt(function() {
749
+ if (!i.length)
1828
750
  return [0, 0];
1829
- for (var h = s.length, S = h, g = 0; g < h; g += 1) {
1830
- var x = e.get(s[g].key) || la;
1831
- if (Math.floor(x[d] + x[v]) > Math.floor(f + t)) {
1832
- S = g - 1;
751
+ for (var C = i.length, T = C, p = 0; p < C; p += 1) {
752
+ var O = e.get(i[p].key) || Kt;
753
+ if (Math.floor(O[f] + O[g]) > Math.floor(b + t)) {
754
+ T = p - 1;
1833
755
  break;
1834
756
  }
1835
757
  }
1836
- for (var p = 0, C = h - 1; C >= 0; C -= 1) {
1837
- var b = e.get(s[C].key) || la;
1838
- if (b[d] < f) {
1839
- p = C + 1;
758
+ for (var y = 0, S = C - 1; S >= 0; S -= 1) {
759
+ var P = e.get(i[S].key) || Kt;
760
+ if (P[f] < b) {
761
+ y = S + 1;
1840
762
  break;
1841
763
  }
1842
764
  }
1843
- return p >= S ? [0, 0] : [p, S];
1844
- }, [e, t, n, r, o, f, c, s.map(function(h) {
1845
- return h.key;
1846
- }).join("_"), u]);
765
+ return y >= T ? [0, 0] : [y, T];
766
+ }, [e, t, n, r, o, b, c, i.map(function(C) {
767
+ return C.key;
768
+ }).join("_"), d]);
1847
769
  }
1848
- function sa(e) {
770
+ function qt(e) {
1849
771
  var t;
1850
772
  return e instanceof Map ? (t = {}, e.forEach(function(a, n) {
1851
773
  t[n] = a;
1852
774
  })) : t = e, JSON.stringify(t);
1853
775
  }
1854
- var Di = "TABS_DQ";
1855
- function ja(e) {
1856
- return String(e).replace(/"/g, Di);
776
+ var Nn = "TABS_DQ";
777
+ function aa(e) {
778
+ return String(e).replace(/"/g, Nn);
1857
779
  }
1858
- function Hn(e, t, a, n) {
780
+ function ht(e, t, a, n) {
1859
781
  return (
1860
782
  // Only editable tabs can be removed
1861
783
  !(!a || // Tabs cannot be removed when disabled
@@ -1864,192 +786,192 @@ function Hn(e, t, a, n) {
1864
786
  e === void 0 && (t === !1 || t === null))
1865
787
  );
1866
788
  }
1867
- var Ba = /* @__PURE__ */ i.forwardRef(function(e, t) {
789
+ var na = /* @__PURE__ */ l.forwardRef(function(e, t) {
1868
790
  var a = e.prefixCls, n = e.editable, r = e.locale, o = e.style;
1869
- return !n || n.showAdd === !1 ? null : /* @__PURE__ */ i.createElement("button", {
791
+ return !n || n.showAdd === !1 ? null : /* @__PURE__ */ l.createElement("button", {
1870
792
  ref: t,
1871
793
  type: "button",
1872
794
  className: "".concat(a, "-nav-add"),
1873
795
  style: o,
1874
796
  "aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
1875
- onClick: function(s) {
797
+ onClick: function(i) {
1876
798
  n.onEdit("add", {
1877
- event: s
799
+ event: i
1878
800
  });
1879
801
  }
1880
802
  }, n.addIcon || "+");
1881
- }), Nn = /* @__PURE__ */ i.forwardRef(function(e, t) {
803
+ }), ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
1882
804
  var a = e.position, n = e.prefixCls, r = e.extra;
1883
805
  if (!r)
1884
806
  return null;
1885
- var o, l = {};
1886
- return en(r) === "object" && !/* @__PURE__ */ i.isValidElement(r) ? l = r : l.right = r, a === "right" && (o = l.right), a === "left" && (o = l.left), o ? /* @__PURE__ */ i.createElement("div", {
807
+ var o, s = {};
808
+ return vt(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
1887
809
  className: "".concat(n, "-extra-content"),
1888
810
  ref: t
1889
811
  }, o) : null;
1890
812
  });
1891
- process.env.NODE_ENV !== "production" && (Nn.displayName = "ExtraContent");
1892
- var zi = /* @__PURE__ */ i.forwardRef(function(e, t) {
1893
- var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, l = e.mobile, s = e.more, c = s === void 0 ? {} : s, u = e.style, v = e.className, d = e.editable, f = e.tabBarGutter, h = e.rtl, S = e.removeAriaLabel, g = e.onTabClick, x = e.getPopupContainer, p = e.popupClassName, C = be(!1), b = z(C, 2), _ = b[0], R = b[1], P = be(null), M = z(P, 2), O = M[0], E = M[1], T = c.icon, y = T === void 0 ? "More" : T, $ = "".concat(n, "-more-popup"), N = "".concat(a, "-dropdown"), I = O !== null ? "".concat($, "-").concat(O) : null, j = o == null ? void 0 : o.dropdownAriaLabel;
1894
- function G(A, K) {
1895
- A.preventDefault(), A.stopPropagation(), d.onEdit("remove", {
1896
- key: K,
1897
- event: A
813
+ process.env.NODE_ENV !== "production" && (ut.displayName = "ExtraContent");
814
+ var In = /* @__PURE__ */ l.forwardRef(function(e, t) {
815
+ var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, g = e.className, f = e.editable, b = e.tabBarGutter, C = e.rtl, T = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], k = U(null), D = B(k, 2), R = D[0], w = D[1], N = c.icon, m = N === void 0 ? "More" : N, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = R !== null ? "".concat(h, "-").concat(R) : null, G = o == null ? void 0 : o.dropdownAriaLabel;
816
+ function X(I, H) {
817
+ I.preventDefault(), I.stopPropagation(), f.onEdit("remove", {
818
+ key: H,
819
+ event: I
1898
820
  });
1899
821
  }
1900
- var m = /* @__PURE__ */ i.createElement(At, {
1901
- onClick: function(K) {
1902
- var k = K.key, V = K.domEvent;
1903
- g(k, V), R(!1);
822
+ var v = /* @__PURE__ */ l.createElement(Da, {
823
+ onClick: function(H) {
824
+ var W = H.key, Q = H.domEvent;
825
+ p(W, Q), j(!1);
1904
826
  },
1905
- prefixCls: "".concat(N, "-menu"),
1906
- id: $,
827
+ prefixCls: "".concat(_, "-menu"),
828
+ id: h,
1907
829
  tabIndex: -1,
1908
830
  role: "listbox",
1909
- "aria-activedescendant": I,
1910
- selectedKeys: [O],
1911
- "aria-label": j !== void 0 ? j : "expanded dropdown"
1912
- }, r.map(function(A) {
1913
- var K = A.closable, k = A.disabled, V = A.closeIcon, U = A.key, q = A.label, te = Hn(K, V, d, k);
1914
- return /* @__PURE__ */ i.createElement(on, {
1915
- key: U,
1916
- id: "".concat($, "-").concat(U),
831
+ "aria-activedescendant": x,
832
+ selectedKeys: [R],
833
+ "aria-label": G !== void 0 ? G : "expanded dropdown"
834
+ }, r.map(function(I) {
835
+ var H = I.closable, W = I.disabled, Q = I.closeIcon, Z = I.key, ne = I.label, ae = ht(H, Q, f, W);
836
+ return /* @__PURE__ */ l.createElement(Aa, {
837
+ key: Z,
838
+ id: "".concat(h, "-").concat(Z),
1917
839
  role: "option",
1918
- "aria-controls": n && "".concat(n, "-panel-").concat(U),
1919
- disabled: k
1920
- }, /* @__PURE__ */ i.createElement("span", null, q), te && /* @__PURE__ */ i.createElement("button", {
840
+ "aria-controls": n && "".concat(n, "-panel-").concat(Z),
841
+ disabled: W
842
+ }, /* @__PURE__ */ l.createElement("span", null, ne), ae && /* @__PURE__ */ l.createElement("button", {
1921
843
  type: "button",
1922
- "aria-label": S || "remove",
844
+ "aria-label": T || "remove",
1923
845
  tabIndex: 0,
1924
- className: "".concat(N, "-menu-item-remove"),
1925
- onClick: function(de) {
1926
- de.stopPropagation(), G(de, U);
846
+ className: "".concat(_, "-menu-item-remove"),
847
+ onClick: function(fe) {
848
+ fe.stopPropagation(), X(fe, Z);
1927
849
  }
1928
- }, V || d.removeIcon || "×"));
850
+ }, Q || f.removeIcon || "×"));
1929
851
  }));
1930
- function W(A) {
1931
- for (var K = r.filter(function(te) {
1932
- return !te.disabled;
1933
- }), k = K.findIndex(function(te) {
1934
- return te.key === O;
1935
- }) || 0, V = K.length, U = 0; U < V; U += 1) {
1936
- k = (k + A + V) % V;
1937
- var q = K[k];
1938
- if (!q.disabled) {
1939
- E(q.key);
852
+ function Y(I) {
853
+ for (var H = r.filter(function(ae) {
854
+ return !ae.disabled;
855
+ }), W = H.findIndex(function(ae) {
856
+ return ae.key === R;
857
+ }) || 0, Q = H.length, Z = 0; Z < Q; Z += 1) {
858
+ W = (W + I + Q) % Q;
859
+ var ne = H[W];
860
+ if (!ne.disabled) {
861
+ w(ne.key);
1940
862
  return;
1941
863
  }
1942
864
  }
1943
865
  }
1944
- function J(A) {
1945
- var K = A.which;
1946
- if (!_) {
1947
- [ge.DOWN, ge.SPACE, ge.ENTER].includes(K) && (R(!0), A.preventDefault());
866
+ function se(I) {
867
+ var H = I.which;
868
+ if (!z) {
869
+ [Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), I.preventDefault());
1948
870
  return;
1949
871
  }
1950
- switch (K) {
1951
- case ge.UP:
1952
- W(-1), A.preventDefault();
872
+ switch (H) {
873
+ case Ce.UP:
874
+ Y(-1), I.preventDefault();
1953
875
  break;
1954
- case ge.DOWN:
1955
- W(1), A.preventDefault();
876
+ case Ce.DOWN:
877
+ Y(1), I.preventDefault();
1956
878
  break;
1957
- case ge.ESC:
1958
- R(!1);
879
+ case Ce.ESC:
880
+ j(!1);
1959
881
  break;
1960
- case ge.SPACE:
1961
- case ge.ENTER:
1962
- O !== null && g(O, A);
882
+ case Ce.SPACE:
883
+ case Ce.ENTER:
884
+ R !== null && p(R, I);
1963
885
  break;
1964
886
  }
1965
887
  }
1966
- Be(function() {
1967
- var A = document.getElementById(I);
1968
- A && A.scrollIntoView && A.scrollIntoView(!1);
1969
- }, [O]), Be(function() {
1970
- _ || E(null);
1971
- }, [_]);
1972
- var F = B({}, h ? "marginRight" : "marginLeft", f);
1973
- r.length || (F.visibility = "hidden", F.order = 1);
1974
- var ee = D(B({}, "".concat(N, "-rtl"), h)), se = l ? null : /* @__PURE__ */ i.createElement(Hr, ae({
1975
- prefixCls: N,
1976
- overlay: m,
1977
- visible: r.length ? _ : !1,
1978
- onVisibleChange: R,
1979
- overlayClassName: D(ee, p),
888
+ me(function() {
889
+ var I = document.getElementById(x);
890
+ I && I.scrollIntoView && I.scrollIntoView(!1);
891
+ }, [R]), me(function() {
892
+ z || w(null);
893
+ }, [z]);
894
+ var q = te({}, C ? "marginRight" : "marginLeft", b);
895
+ r.length || (q.visibility = "hidden", q.order = 1);
896
+ var J = E(te({}, "".concat(_, "-rtl"), C)), ce = s ? null : /* @__PURE__ */ l.createElement(Ha, he({
897
+ prefixCls: _,
898
+ overlay: v,
899
+ visible: r.length ? z : !1,
900
+ onVisibleChange: j,
901
+ overlayClassName: E(J, y),
1980
902
  mouseEnterDelay: 0.1,
1981
903
  mouseLeaveDelay: 0.1,
1982
- getPopupContainer: x
1983
- }, c), /* @__PURE__ */ i.createElement("button", {
904
+ getPopupContainer: O
905
+ }, c), /* @__PURE__ */ l.createElement("button", {
1984
906
  type: "button",
1985
907
  className: "".concat(a, "-nav-more"),
1986
- style: F,
908
+ style: q,
1987
909
  tabIndex: -1,
1988
910
  "aria-hidden": "true",
1989
911
  "aria-haspopup": "listbox",
1990
- "aria-controls": $,
912
+ "aria-controls": h,
1991
913
  id: "".concat(n, "-more"),
1992
- "aria-expanded": _,
1993
- onKeyDown: J
1994
- }, y));
1995
- return /* @__PURE__ */ i.createElement("div", {
1996
- className: D("".concat(a, "-nav-operations"), v),
1997
- style: u,
914
+ "aria-expanded": z,
915
+ onKeyDown: se
916
+ }, m));
917
+ return /* @__PURE__ */ l.createElement("div", {
918
+ className: E("".concat(a, "-nav-operations"), g),
919
+ style: d,
1998
920
  ref: t
1999
- }, se, /* @__PURE__ */ i.createElement(Ba, {
921
+ }, ce, /* @__PURE__ */ l.createElement(na, {
2000
922
  prefixCls: a,
2001
923
  locale: o,
2002
- editable: d
924
+ editable: f
2003
925
  }));
2004
926
  });
2005
- const Ai = /* @__PURE__ */ i.memo(zi, function(e, t) {
927
+ const Rn = /* @__PURE__ */ l.memo(In, function(e, t) {
2006
928
  return (
2007
929
  // https://github.com/ant-design/ant-design/issues/32544
2008
930
  // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
2009
931
  t.tabMoving
2010
932
  );
2011
933
  });
2012
- var ki = function(t) {
2013
- var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, l = t.tab, s = l.key, c = l.label, u = l.disabled, v = l.closeIcon, d = l.icon, f = t.closable, h = t.renderWrapper, S = t.removeAriaLabel, g = t.editable, x = t.onClick, p = t.onFocus, C = t.onBlur, b = t.onKeyDown, _ = t.onMouseDown, R = t.onMouseUp, P = t.style, M = t.tabCount, O = t.currentPosition, E = "".concat(a, "-tab"), T = Hn(f, v, g, u);
2014
- function y(G) {
2015
- u || x(G);
934
+ var zn = function(t) {
935
+ var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, g = s.closeIcon, f = s.icon, b = t.closable, C = t.renderWrapper, T = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, k = t.style, D = t.tabCount, R = t.currentPosition, w = "".concat(a, "-tab"), N = ht(b, g, p, d);
936
+ function m(X) {
937
+ d || O(X);
2016
938
  }
2017
- function $(G) {
2018
- G.preventDefault(), G.stopPropagation(), g.onEdit("remove", {
2019
- key: s,
2020
- event: G
939
+ function h(X) {
940
+ X.preventDefault(), X.stopPropagation(), p.onEdit("remove", {
941
+ key: i,
942
+ event: X
2021
943
  });
2022
944
  }
2023
- var N = i.useMemo(function() {
2024
- return d && typeof c == "string" ? /* @__PURE__ */ i.createElement("span", null, c) : c;
2025
- }, [c, d]), I = i.useRef(null);
2026
- i.useEffect(function() {
2027
- o && I.current && I.current.focus();
945
+ var _ = l.useMemo(function() {
946
+ return f && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
947
+ }, [c, f]), x = l.useRef(null);
948
+ l.useEffect(function() {
949
+ o && x.current && x.current.focus();
2028
950
  }, [o]);
2029
- var j = /* @__PURE__ */ i.createElement("div", {
2030
- key: s,
2031
- "data-node-key": ja(s),
2032
- className: D(E, B(B(B(B({}, "".concat(E, "-with-remove"), T), "".concat(E, "-active"), r), "".concat(E, "-disabled"), u), "".concat(E, "-focus"), o)),
2033
- style: P,
2034
- onClick: y
2035
- }, /* @__PURE__ */ i.createElement("div", {
2036
- ref: I,
951
+ var G = /* @__PURE__ */ l.createElement("div", {
952
+ key: i,
953
+ "data-node-key": aa(i),
954
+ className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), N), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
955
+ style: k,
956
+ onClick: m
957
+ }, /* @__PURE__ */ l.createElement("div", {
958
+ ref: x,
2037
959
  role: "tab",
2038
960
  "aria-selected": r,
2039
- id: n && "".concat(n, "-tab-").concat(s),
2040
- className: "".concat(E, "-btn"),
2041
- "aria-controls": n && "".concat(n, "-panel-").concat(s),
2042
- "aria-disabled": u,
2043
- tabIndex: u ? null : r ? 0 : -1,
2044
- onClick: function(m) {
2045
- m.stopPropagation(), y(m);
961
+ id: n && "".concat(n, "-tab-").concat(i),
962
+ className: "".concat(w, "-btn"),
963
+ "aria-controls": n && "".concat(n, "-panel-").concat(i),
964
+ "aria-disabled": d,
965
+ tabIndex: d ? null : r ? 0 : -1,
966
+ onClick: function(v) {
967
+ v.stopPropagation(), m(v);
2046
968
  },
2047
- onKeyDown: b,
2048
- onMouseDown: _,
2049
- onMouseUp: R,
2050
- onFocus: p,
2051
- onBlur: C
2052
- }, o && /* @__PURE__ */ i.createElement("div", {
969
+ onKeyDown: P,
970
+ onMouseDown: z,
971
+ onMouseUp: j,
972
+ onFocus: y,
973
+ onBlur: S
974
+ }, o && /* @__PURE__ */ l.createElement("div", {
2053
975
  "aria-live": "polite",
2054
976
  style: {
2055
977
  width: 0,
@@ -2058,341 +980,341 @@ var ki = function(t) {
2058
980
  overflow: "hidden",
2059
981
  opacity: 0
2060
982
  }
2061
- }, "Tab ".concat(O, " of ").concat(M)), d && /* @__PURE__ */ i.createElement("span", {
2062
- className: "".concat(E, "-icon")
2063
- }, d), c && N), T && /* @__PURE__ */ i.createElement("button", {
983
+ }, "Tab ".concat(R, " of ").concat(D)), f && /* @__PURE__ */ l.createElement("span", {
984
+ className: "".concat(w, "-icon")
985
+ }, f), c && _), N && /* @__PURE__ */ l.createElement("button", {
2064
986
  type: "button",
2065
- "aria-label": S || "remove",
987
+ "aria-label": T || "remove",
2066
988
  tabIndex: r ? 0 : -1,
2067
- className: "".concat(E, "-remove"),
2068
- onClick: function(m) {
2069
- m.stopPropagation(), $(m);
989
+ className: "".concat(w, "-remove"),
990
+ onClick: function(v) {
991
+ v.stopPropagation(), h(v);
2070
992
  }
2071
- }, v || g.removeIcon || "×"));
2072
- return h ? h(j) : j;
2073
- }, ji = function(t, a) {
2074
- var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, s = t.getBoundingClientRect(), c = s.width, u = s.height, v = s.left, d = s.top;
2075
- return Math.abs(c - n) < 1 ? [c, u, v - a.left, d - a.top] : [n, r, l, o];
2076
- }, pt = function(t) {
2077
- var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, l = o === void 0 ? 0 : o;
993
+ }, g || p.removeIcon || "×"));
994
+ return C ? C(G) : G;
995
+ }, Mn = function(t, a) {
996
+ var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, g = i.left, f = i.top;
997
+ return Math.abs(c - n) < 1 ? [c, d, g - a.left, f - a.top] : [n, r, s, o];
998
+ }, Ie = function(t) {
999
+ var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, s = o === void 0 ? 0 : o;
2078
1000
  if (t.current) {
2079
- var s = t.current.getBoundingClientRect(), c = s.width, u = s.height;
1001
+ var i = t.current.getBoundingClientRect(), c = i.width, d = i.height;
2080
1002
  if (Math.abs(c - r) < 1)
2081
- return [c, u];
1003
+ return [c, d];
2082
1004
  }
2083
- return [r, l];
2084
- }, Xt = function(t, a) {
1005
+ return [r, s];
1006
+ }, ke = function(t, a) {
2085
1007
  return t[a ? 0 : 1];
2086
- }, ca = /* @__PURE__ */ i.forwardRef(function(e, t) {
2087
- var a = e.className, n = e.style, r = e.id, o = e.animated, l = e.activeKey, s = e.rtl, c = e.extra, u = e.editable, v = e.locale, d = e.tabPosition, f = e.tabBarGutter, h = e.children, S = e.onTabClick, g = e.onTabScroll, x = e.indicator, p = i.useContext(sn), C = p.prefixCls, b = p.tabs, _ = ve(null), R = ve(null), P = ve(null), M = ve(null), O = ve(null), E = ve(null), T = ve(null), y = d === "top" || d === "bottom", $ = ra(0, function(X, L) {
2088
- y && g && g({
2089
- direction: X > L ? "left" : "right"
1008
+ }, Ft = /* @__PURE__ */ l.forwardRef(function(e, t) {
1009
+ var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, g = e.locale, f = e.tabPosition, b = e.tabBarGutter, C = e.children, T = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), k = ee(null), D = ee(null), R = ee(null), w = ee(null), N = ee(null), m = f === "top" || f === "bottom", h = Gt(0, function(M, $) {
1010
+ m && p && p({
1011
+ direction: M > $ ? "left" : "right"
2090
1012
  });
2091
- }), N = z($, 2), I = N[0], j = N[1], G = ra(0, function(X, L) {
2092
- !y && g && g({
2093
- direction: X > L ? "top" : "bottom"
1013
+ }), _ = B(h, 2), x = _[0], G = _[1], X = Gt(0, function(M, $) {
1014
+ !m && p && p({
1015
+ direction: M > $ ? "top" : "bottom"
2094
1016
  });
2095
- }), m = z(G, 2), W = m[0], J = m[1], F = be([0, 0]), ee = z(F, 2), se = ee[0], A = ee[1], K = be([0, 0]), k = z(K, 2), V = k[0], U = k[1], q = be([0, 0]), te = z(q, 2), ie = te[0], de = te[1], fe = be([0, 0]), Pe = z(fe, 2), H = Pe[0], me = Pe[1], De = Ti(/* @__PURE__ */ new Map()), Xe = z(De, 2), oe = Xe[0], Z = Xe[1], ye = Ni(b, oe, V[0]), Ie = Xt(se, y), He = Xt(V, y), et = Xt(ie, y), Ye = Xt(H, y), Oe = Math.floor(Ie) < Math.floor(He + et), xe = Oe ? Ie - Ye : Ie - et, Ct = "".concat(C, "-nav-operations-hidden"), Re = 0, Te = 0;
2096
- y && s ? (Re = 0, Te = Math.max(0, He - xe)) : (Re = Math.min(0, xe - He), Te = 0);
2097
- function Ge(X) {
2098
- return X < Re ? Re : X > Te ? Te : X;
1017
+ }), v = B(X, 2), Y = v[0], se = v[1], q = U([0, 0]), J = B(q, 2), ce = J[0], I = J[1], H = U([0, 0]), W = B(H, 2), Q = W[0], Z = W[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], fe = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = On(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = wn(P, F, Q[0]), _e = ke(ce, m), Me = ke(Q, m), Ye = ke($e, m), St = ke(L, m), Ct = Math.floor(_e) < Math.floor(Me + Ye), ge = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
1018
+ m && i ? (Se = 0, we = Math.max(0, Me - ge)) : (Se = Math.min(0, ge - Me), we = 0);
1019
+ function Qe(M) {
1020
+ return M < Se ? Se : M > we ? we : M;
2099
1021
  }
2100
- var Le = ve(null), We = be(), Ae = z(We, 2), ke = Ae[0], Ee = Ae[1];
2101
- function ce() {
2102
- Ee(Date.now());
1022
+ var Ze = ee(null), ca = U(), xt = B(ca, 2), De = xt[0], _t = xt[1];
1023
+ function Je() {
1024
+ _t(Date.now());
2103
1025
  }
2104
- function lt() {
2105
- Le.current && clearTimeout(Le.current);
1026
+ function et() {
1027
+ Ze.current && clearTimeout(Ze.current);
2106
1028
  }
2107
- Oi(M, function(X, L) {
2108
- function ne(re, he) {
2109
- re(function(Ce) {
2110
- var Je = Ge(Ce + he);
2111
- return Je;
1029
+ Pn(D, function(M, $) {
1030
+ function A(K, ve) {
1031
+ K(function(ie) {
1032
+ var Te = Qe(ie + ve);
1033
+ return Te;
2112
1034
  });
2113
1035
  }
2114
- return Oe ? (y ? ne(j, X) : ne(J, L), lt(), ce(), !0) : !1;
2115
- }), Be(function() {
2116
- return lt(), ke && (Le.current = setTimeout(function() {
2117
- Ee(0);
2118
- }, 100)), lt;
2119
- }, [ke]);
2120
- var $t = Li(
2121
- ye,
1036
+ return Ct ? (m ? A(G, M) : A(se, $), et(), Je(), !0) : !1;
1037
+ }), me(function() {
1038
+ return et(), De && (Ze.current = setTimeout(function() {
1039
+ _t(0);
1040
+ }, 100)), et;
1041
+ }, [De]);
1042
+ var da = Tn(
1043
+ ue,
2122
1044
  // Container
2123
- xe,
1045
+ ge,
2124
1046
  // Transform
2125
- y ? I : W,
1047
+ m ? x : Y,
2126
1048
  // Tabs
2127
- He,
1049
+ Me,
2128
1050
  // Add
2129
- et,
2130
- // Operation
2131
1051
  Ye,
2132
- Y(Y({}, e), {}, {
2133
- tabs: b
1052
+ // Operation
1053
+ St,
1054
+ le(le({}, e), {}, {
1055
+ tabs: P
2134
1056
  })
2135
- ), kt = z($t, 2), jt = kt[0], un = kt[1], Bt = sr(function() {
2136
- var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l, L = ye.get(X) || {
1057
+ ), wt = B(da, 2), ua = wt[0], va = wt[1], Et = Ia(function() {
1058
+ var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s, $ = ue.get(M) || {
2137
1059
  width: 0,
2138
1060
  height: 0,
2139
1061
  left: 0,
2140
1062
  right: 0,
2141
1063
  top: 0
2142
1064
  };
2143
- if (y) {
2144
- var ne = I;
2145
- s ? L.right < I ? ne = L.right : L.right + L.width > I + xe && (ne = L.right + L.width - xe) : L.left < -I ? ne = -L.left : L.left + L.width > -I + xe && (ne = -(L.left + L.width - xe)), J(0), j(Ge(ne));
1065
+ if (m) {
1066
+ var A = x;
1067
+ i ? $.right < x ? A = $.right : $.right + $.width > x + ge && (A = $.right + $.width - ge) : $.left < -x ? A = -$.left : $.left + $.width > -x + ge && (A = -($.left + $.width - ge)), se(0), G(Qe(A));
2146
1068
  } else {
2147
- var re = W;
2148
- L.top < -W ? re = -L.top : L.top + L.height > -W + xe && (re = -(L.top + L.height - xe)), j(0), J(Ge(re));
1069
+ var K = Y;
1070
+ $.top < -Y ? K = -$.top : $.top + $.height > -Y + ge && (K = -($.top + $.height - ge)), G(0), se(Qe(K));
2149
1071
  }
2150
- }), St = be(), Kt = z(St, 2), Fe = Kt[0], je = Kt[1], xt = be(!1), Et = z(xt, 2), dn = Et[0], wt = Et[1], pe = b.filter(function(X) {
2151
- return !X.disabled;
2152
- }).map(function(X) {
2153
- return X.key;
2154
- }), Ze = function(L) {
2155
- var ne = pe.indexOf(Fe || l), re = pe.length, he = (ne + L + re) % re, Ce = pe[he];
2156
- je(Ce);
2157
- }, fn = function(L) {
2158
- var ne = L.code, re = s && y, he = pe[0], Ce = pe[pe.length - 1];
2159
- switch (ne) {
1072
+ }), fa = U(), Pt = B(fa, 2), Pe = Pt[0], Le = Pt[1], ga = U(!1), Ot = B(ga, 2), ma = Ot[0], Tt = Ot[1], pe = P.filter(function(M) {
1073
+ return !M.disabled;
1074
+ }).map(function(M) {
1075
+ return M.key;
1076
+ }), Oe = function($) {
1077
+ var A = pe.indexOf(Pe || s), K = pe.length, ve = (A + $ + K) % K, ie = pe[ve];
1078
+ Le(ie);
1079
+ }, ba = function($) {
1080
+ var A = $.code, K = i && m, ve = pe[0], ie = pe[pe.length - 1];
1081
+ switch (A) {
2160
1082
  case "ArrowLeft": {
2161
- y && Ze(re ? 1 : -1);
1083
+ m && Oe(K ? 1 : -1);
2162
1084
  break;
2163
1085
  }
2164
1086
  case "ArrowRight": {
2165
- y && Ze(re ? -1 : 1);
1087
+ m && Oe(K ? -1 : 1);
2166
1088
  break;
2167
1089
  }
2168
1090
  case "ArrowUp": {
2169
- L.preventDefault(), y || Ze(-1);
1091
+ $.preventDefault(), m || Oe(-1);
2170
1092
  break;
2171
1093
  }
2172
1094
  case "ArrowDown": {
2173
- L.preventDefault(), y || Ze(1);
1095
+ $.preventDefault(), m || Oe(1);
2174
1096
  break;
2175
1097
  }
2176
1098
  case "Home": {
2177
- L.preventDefault(), je(he);
1099
+ $.preventDefault(), Le(ve);
2178
1100
  break;
2179
1101
  }
2180
1102
  case "End": {
2181
- L.preventDefault(), je(Ce);
1103
+ $.preventDefault(), Le(ie);
2182
1104
  break;
2183
1105
  }
2184
1106
  case "Enter":
2185
1107
  case "Space": {
2186
- L.preventDefault(), S(Fe, L);
1108
+ $.preventDefault(), T(Pe, $);
2187
1109
  break;
2188
1110
  }
2189
1111
  case "Backspace":
2190
1112
  case "Delete": {
2191
- var Je = pe.indexOf(Fe), we = b.find(function(Ue) {
2192
- return Ue.key === Fe;
2193
- }), Rt = Hn(we == null ? void 0 : we.closable, we == null ? void 0 : we.closeIcon, u, we == null ? void 0 : we.disabled);
2194
- Rt && (L.preventDefault(), L.stopPropagation(), u.onEdit("remove", {
2195
- key: Fe,
2196
- event: L
2197
- }), Je === pe.length - 1 ? Ze(-1) : Ze(1));
1113
+ var Te = pe.indexOf(Pe), oe = P.find(function(Ne) {
1114
+ return Ne.key === Pe;
1115
+ }), nt = ht(oe == null ? void 0 : oe.closable, oe == null ? void 0 : oe.closeIcon, d, oe == null ? void 0 : oe.disabled);
1116
+ nt && ($.preventDefault(), $.stopPropagation(), d.onEdit("remove", {
1117
+ key: Pe,
1118
+ event: $
1119
+ }), Te === pe.length - 1 ? Oe(-1) : Oe(1));
2198
1120
  break;
2199
1121
  }
2200
1122
  }
2201
- }, tt = {};
2202
- y ? tt[s ? "marginRight" : "marginLeft"] = f : tt.marginTop = f;
2203
- var Vt = b.map(function(X, L) {
2204
- var ne = X.key;
2205
- return /* @__PURE__ */ i.createElement(ki, {
1123
+ }, Ae = {};
1124
+ m ? Ae[i ? "marginRight" : "marginLeft"] = b : Ae.marginTop = b;
1125
+ var Nt = P.map(function(M, $) {
1126
+ var A = M.key;
1127
+ return /* @__PURE__ */ l.createElement(zn, {
2206
1128
  id: r,
2207
- prefixCls: C,
2208
- key: ne,
2209
- tab: X,
2210
- style: L === 0 ? void 0 : tt,
2211
- closable: X.closable,
2212
- editable: u,
2213
- active: ne === l,
2214
- focus: ne === Fe,
2215
- renderWrapper: h,
2216
- removeAriaLabel: v == null ? void 0 : v.removeAriaLabel,
1129
+ prefixCls: S,
1130
+ key: A,
1131
+ tab: M,
1132
+ style: $ === 0 ? void 0 : Ae,
1133
+ closable: M.closable,
1134
+ editable: d,
1135
+ active: A === s,
1136
+ focus: A === Pe,
1137
+ renderWrapper: C,
1138
+ removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
2217
1139
  tabCount: pe.length,
2218
- currentPosition: L + 1,
2219
- onClick: function(he) {
2220
- S(ne, he);
1140
+ currentPosition: $ + 1,
1141
+ onClick: function(ve) {
1142
+ T(A, ve);
2221
1143
  },
2222
- onKeyDown: fn,
1144
+ onKeyDown: ba,
2223
1145
  onFocus: function() {
2224
- dn || je(ne), Bt(ne), ce(), M.current && (s || (M.current.scrollLeft = 0), M.current.scrollTop = 0);
1146
+ ma || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
2225
1147
  },
2226
1148
  onBlur: function() {
2227
- je(void 0);
1149
+ Le(void 0);
2228
1150
  },
2229
1151
  onMouseDown: function() {
2230
- wt(!0);
1152
+ Tt(!0);
2231
1153
  },
2232
1154
  onMouseUp: function() {
2233
- wt(!1);
1155
+ Tt(!1);
2234
1156
  }
2235
1157
  });
2236
- }), Ht = function() {
2237
- return Z(function() {
2238
- var L, ne = /* @__PURE__ */ new Map(), re = (L = O.current) === null || L === void 0 ? void 0 : L.getBoundingClientRect();
2239
- return b.forEach(function(he) {
2240
- var Ce, Je = he.key, we = (Ce = O.current) === null || Ce === void 0 ? void 0 : Ce.querySelector('[data-node-key="'.concat(ja(Je), '"]'));
2241
- if (we) {
2242
- var Rt = ji(we, re), Ue = z(Rt, 4), ft = Ue[0], vn = Ue[1], mn = Ue[2], gn = Ue[3];
2243
- ne.set(Je, {
2244
- width: ft,
2245
- height: vn,
2246
- left: mn,
2247
- top: gn
1158
+ }), It = function() {
1159
+ return V(function() {
1160
+ var $, A = /* @__PURE__ */ new Map(), K = ($ = R.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
1161
+ return P.forEach(function(ve) {
1162
+ var ie, Te = ve.key, oe = (ie = R.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Te), '"]'));
1163
+ if (oe) {
1164
+ var nt = Mn(oe, K), Ne = B(nt, 4), Sa = Ne[0], Ca = Ne[1], xa = Ne[2], _a = Ne[3];
1165
+ A.set(Te, {
1166
+ width: Sa,
1167
+ height: Ca,
1168
+ left: xa,
1169
+ top: _a
2248
1170
  });
2249
1171
  }
2250
- }), ne;
1172
+ }), A;
2251
1173
  });
2252
1174
  };
2253
- Be(function() {
2254
- Ht();
2255
- }, [b.map(function(X) {
2256
- return X.key;
1175
+ me(function() {
1176
+ It();
1177
+ }, [P.map(function(M) {
1178
+ return M.key;
2257
1179
  }).join("_")]);
2258
- var st = ka(function() {
2259
- var X = pt(_), L = pt(R), ne = pt(P);
2260
- A([X[0] - L[0] - ne[0], X[1] - L[1] - ne[1]]);
2261
- var re = pt(T);
2262
- de(re);
2263
- var he = pt(E);
2264
- me(he);
2265
- var Ce = pt(O);
2266
- U([Ce[0] - re[0], Ce[1] - re[1]]), Ht();
2267
- }), Gt = b.slice(0, jt), ct = b.slice(un + 1), Wt = [].concat(Ke(Gt), Ke(ct)), ut = ye.get(l), qe = Ri({
2268
- activeTabOffset: ut,
2269
- horizontal: y,
2270
- indicator: x,
2271
- rtl: s
2272
- }), Ft = qe.style;
2273
- Be(function() {
2274
- Bt();
2275
- }, [l, Re, Te, sa(ut), sa(ye), y]), Be(function() {
2276
- st();
2277
- }, [s]);
2278
- var _t = !!Wt.length, nt = "".concat(C, "-nav-wrap"), dt, Pt, It, qt;
2279
- return y ? s ? (Pt = I > 0, dt = I !== Te) : (dt = I < 0, Pt = I !== Re) : (It = W < 0, qt = W !== Re), /* @__PURE__ */ i.createElement(hn, {
2280
- onResize: st
2281
- }, /* @__PURE__ */ i.createElement("div", {
2282
- ref: ba(t, _),
1180
+ var He = ta(function() {
1181
+ var M = Ie(z), $ = Ie(j), A = Ie(k);
1182
+ I([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
1183
+ var K = Ie(N);
1184
+ fe(K);
1185
+ var ve = Ie(w);
1186
+ de(ve);
1187
+ var ie = Ie(R);
1188
+ Z([ie[0] - K[0], ie[1] - K[1]]), It();
1189
+ }), pa = P.slice(0, ua), ha = P.slice(va + 1), Rt = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = _n({
1190
+ activeTabOffset: zt,
1191
+ horizontal: m,
1192
+ indicator: O,
1193
+ rtl: i
1194
+ }), ya = $a.style;
1195
+ me(function() {
1196
+ Et();
1197
+ }, [s, Se, we, qt(zt), qt(ue), m]), me(function() {
1198
+ He();
1199
+ }, [i]);
1200
+ var Mt = !!Rt.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
1201
+ return m ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
1202
+ onResize: He
1203
+ }, /* @__PURE__ */ l.createElement("div", {
1204
+ ref: Ra(t, z),
2283
1205
  role: "tablist",
2284
- "aria-orientation": y ? "horizontal" : "vertical",
2285
- className: D("".concat(C, "-nav"), a),
1206
+ "aria-orientation": m ? "horizontal" : "vertical",
1207
+ className: E("".concat(S, "-nav"), a),
2286
1208
  style: n,
2287
1209
  onKeyDown: function() {
2288
- ce();
1210
+ Je();
2289
1211
  }
2290
- }, /* @__PURE__ */ i.createElement(Nn, {
2291
- ref: R,
1212
+ }, /* @__PURE__ */ l.createElement(ut, {
1213
+ ref: j,
2292
1214
  position: "left",
2293
1215
  extra: c,
2294
- prefixCls: C
2295
- }), /* @__PURE__ */ i.createElement(hn, {
2296
- onResize: st
2297
- }, /* @__PURE__ */ i.createElement("div", {
2298
- className: D(nt, B(B(B(B({}, "".concat(nt, "-ping-left"), dt), "".concat(nt, "-ping-right"), Pt), "".concat(nt, "-ping-top"), It), "".concat(nt, "-ping-bottom"), qt)),
2299
- ref: M
2300
- }, /* @__PURE__ */ i.createElement(hn, {
2301
- onResize: st
2302
- }, /* @__PURE__ */ i.createElement("div", {
2303
- ref: O,
2304
- className: "".concat(C, "-nav-list"),
1216
+ prefixCls: S
1217
+ }), /* @__PURE__ */ l.createElement(rt, {
1218
+ onResize: He
1219
+ }, /* @__PURE__ */ l.createElement("div", {
1220
+ className: E(je, te(te(te(te({}, "".concat(je, "-ping-left"), tt), "".concat(je, "-ping-right"), at), "".concat(je, "-ping-top"), Lt), "".concat(je, "-ping-bottom"), jt)),
1221
+ ref: D
1222
+ }, /* @__PURE__ */ l.createElement(rt, {
1223
+ onResize: He
1224
+ }, /* @__PURE__ */ l.createElement("div", {
1225
+ ref: R,
1226
+ className: "".concat(S, "-nav-list"),
2305
1227
  style: {
2306
- transform: "translate(".concat(I, "px, ").concat(W, "px)"),
2307
- transition: ke ? "none" : void 0
1228
+ transform: "translate(".concat(x, "px, ").concat(Y, "px)"),
1229
+ transition: De ? "none" : void 0
2308
1230
  }
2309
- }, Vt, /* @__PURE__ */ i.createElement(Ba, {
2310
- ref: T,
2311
- prefixCls: C,
2312
- locale: v,
2313
- editable: u,
2314
- style: Y(Y({}, Vt.length === 0 ? void 0 : tt), {}, {
2315
- visibility: _t ? "hidden" : null
1231
+ }, Nt, /* @__PURE__ */ l.createElement(na, {
1232
+ ref: N,
1233
+ prefixCls: S,
1234
+ locale: g,
1235
+ editable: d,
1236
+ style: le(le({}, Nt.length === 0 ? void 0 : Ae), {}, {
1237
+ visibility: Mt ? "hidden" : null
2316
1238
  })
2317
- }), /* @__PURE__ */ i.createElement("div", {
2318
- className: D("".concat(C, "-ink-bar"), B({}, "".concat(C, "-ink-bar-animated"), o.inkBar)),
2319
- style: Ft
2320
- }))))), /* @__PURE__ */ i.createElement(Ai, ae({}, e, {
2321
- removeAriaLabel: v == null ? void 0 : v.removeAriaLabel,
2322
- ref: E,
2323
- prefixCls: C,
2324
- tabs: Wt,
2325
- className: !_t && Ct,
2326
- tabMoving: !!ke
2327
- })), /* @__PURE__ */ i.createElement(Nn, {
2328
- ref: P,
1239
+ }), /* @__PURE__ */ l.createElement("div", {
1240
+ className: E("".concat(S, "-ink-bar"), te({}, "".concat(S, "-ink-bar-animated"), o.inkBar)),
1241
+ style: ya
1242
+ }))))), /* @__PURE__ */ l.createElement(Rn, he({}, e, {
1243
+ removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
1244
+ ref: w,
1245
+ prefixCls: S,
1246
+ tabs: Rt,
1247
+ className: !Mt && sa,
1248
+ tabMoving: !!De
1249
+ })), /* @__PURE__ */ l.createElement(ut, {
1250
+ ref: k,
2329
1251
  position: "right",
2330
1252
  extra: c,
2331
- prefixCls: C
1253
+ prefixCls: S
2332
1254
  })));
2333
- }), Gn = /* @__PURE__ */ i.forwardRef(function(e, t) {
2334
- var a = e.prefixCls, n = e.className, r = e.style, o = e.id, l = e.active, s = e.tabKey, c = e.children;
2335
- return /* @__PURE__ */ i.createElement("div", {
2336
- id: o && "".concat(o, "-panel-").concat(s),
1255
+ }), $t = /* @__PURE__ */ l.forwardRef(function(e, t) {
1256
+ var a = e.prefixCls, n = e.className, r = e.style, o = e.id, s = e.active, i = e.tabKey, c = e.children;
1257
+ return /* @__PURE__ */ l.createElement("div", {
1258
+ id: o && "".concat(o, "-panel-").concat(i),
2337
1259
  role: "tabpanel",
2338
- tabIndex: l ? 0 : -1,
2339
- "aria-labelledby": o && "".concat(o, "-tab-").concat(s),
2340
- "aria-hidden": !l,
1260
+ tabIndex: s ? 0 : -1,
1261
+ "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
1262
+ "aria-hidden": !s,
2341
1263
  style: r,
2342
- className: D(a, l && "".concat(a, "-active"), n),
1264
+ className: E(a, s && "".concat(a, "-active"), n),
2343
1265
  ref: t
2344
1266
  }, c);
2345
1267
  });
2346
- process.env.NODE_ENV !== "production" && (Gn.displayName = "TabPane");
2347
- var Bi = ["renderTabBar"], Ki = ["label", "key"], Ka = function(t) {
2348
- var a = t.renderTabBar, n = Se(t, Bi), r = i.useContext(sn), o = r.tabs;
1268
+ process.env.NODE_ENV !== "production" && ($t.displayName = "TabPane");
1269
+ var Ln = ["renderTabBar"], jn = ["label", "key"], ra = function(t) {
1270
+ var a = t.renderTabBar, n = We(t, Ln), r = l.useContext(Xe), o = r.tabs;
2349
1271
  if (a) {
2350
- var l = Y(Y({}, n), {}, {
1272
+ var s = le(le({}, n), {}, {
2351
1273
  // Legacy support. We do not use this actually
2352
- panes: o.map(function(s) {
2353
- var c = s.label, u = s.key, v = Se(s, Ki);
2354
- return /* @__PURE__ */ i.createElement(Gn, ae({
1274
+ panes: o.map(function(i) {
1275
+ var c = i.label, d = i.key, g = We(i, jn);
1276
+ return /* @__PURE__ */ l.createElement($t, he({
2355
1277
  tab: c,
2356
- key: u,
2357
- tabKey: u
2358
- }, v));
1278
+ key: d,
1279
+ tabKey: d
1280
+ }, g));
2359
1281
  })
2360
1282
  });
2361
- return a(l, ca);
1283
+ return a(s, Ft);
2362
1284
  }
2363
- return /* @__PURE__ */ i.createElement(ca, n);
1285
+ return /* @__PURE__ */ l.createElement(Ft, n);
2364
1286
  };
2365
- process.env.NODE_ENV !== "production" && (Ka.displayName = "TabNavListWrapper");
2366
- var Vi = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Hi = function(t) {
2367
- var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, s = i.useContext(sn), c = s.prefixCls, u = s.tabs, v = r.tabPane, d = "".concat(c, "-tabpane");
2368
- return /* @__PURE__ */ i.createElement("div", {
2369
- className: D("".concat(c, "-content-holder"))
2370
- }, /* @__PURE__ */ i.createElement("div", {
2371
- className: D("".concat(c, "-content"), "".concat(c, "-content-").concat(o), B({}, "".concat(c, "-content-animated"), v))
2372
- }, u.map(function(f) {
2373
- var h = f.key, S = f.forceRender, g = f.style, x = f.className, p = f.destroyInactiveTabPane, C = Se(f, Vi), b = h === n;
2374
- return /* @__PURE__ */ i.createElement(ha, ae({
2375
- key: h,
2376
- visible: b,
2377
- forceRender: S,
2378
- removeOnLeave: !!(l || p),
2379
- leavedClassName: "".concat(d, "-hidden")
2380
- }, r.tabPaneMotion), function(_, R) {
2381
- var P = _.style, M = _.className;
2382
- return /* @__PURE__ */ i.createElement(Gn, ae({}, C, {
2383
- prefixCls: d,
1287
+ process.env.NODE_ENV !== "production" && (ra.displayName = "TabNavListWrapper");
1288
+ var Bn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Dn = function(t) {
1289
+ var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, g = r.tabPane, f = "".concat(c, "-tabpane");
1290
+ return /* @__PURE__ */ l.createElement("div", {
1291
+ className: E("".concat(c, "-content-holder"))
1292
+ }, /* @__PURE__ */ l.createElement("div", {
1293
+ className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), g))
1294
+ }, d.map(function(b) {
1295
+ var C = b.key, T = b.forceRender, p = b.style, O = b.className, y = b.destroyInactiveTabPane, S = We(b, Bn), P = C === n;
1296
+ return /* @__PURE__ */ l.createElement(za, he({
1297
+ key: C,
1298
+ visible: P,
1299
+ forceRender: T,
1300
+ removeOnLeave: !!(s || y),
1301
+ leavedClassName: "".concat(f, "-hidden")
1302
+ }, r.tabPaneMotion), function(z, j) {
1303
+ var k = z.style, D = z.className;
1304
+ return /* @__PURE__ */ l.createElement($t, he({}, S, {
1305
+ prefixCls: f,
2384
1306
  id: a,
2385
- tabKey: h,
2386
- animated: v,
2387
- active: b,
2388
- style: Y(Y({}, g), P),
2389
- className: D(x, M),
2390
- ref: R
1307
+ tabKey: C,
1308
+ animated: g,
1309
+ active: P,
1310
+ style: le(le({}, p), k),
1311
+ className: E(O, D),
1312
+ ref: j
2391
1313
  }));
2392
1314
  });
2393
1315
  })));
2394
1316
  };
2395
- function Gi() {
1317
+ function An() {
2396
1318
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
2397
1319
  inkBar: !0,
2398
1320
  tabPane: !1
@@ -2403,98 +1325,98 @@ function Gi() {
2403
1325
  } : e === !0 ? t = {
2404
1326
  inkBar: !0,
2405
1327
  tabPane: !1
2406
- } : t = Y({
1328
+ } : t = le({
2407
1329
  inkBar: !0
2408
- }, en(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && rt(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
1330
+ }, vt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
2409
1331
  }
2410
- var Wi = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], ua = 0, Va = /* @__PURE__ */ i.forwardRef(function(e, t) {
2411
- var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, l = e.items, s = e.direction, c = e.activeKey, u = e.defaultActiveKey, v = e.editable, d = e.animated, f = e.tabPosition, h = f === void 0 ? "top" : f, S = e.tabBarGutter, g = e.tabBarStyle, x = e.tabBarExtraContent, p = e.locale, C = e.more, b = e.destroyInactiveTabPane, _ = e.renderTabBar, R = e.onChange, P = e.onTabClick, M = e.onTabScroll, O = e.getPopupContainer, E = e.popupClassName, T = e.indicator, y = Se(e, Wi), $ = i.useMemo(function() {
2412
- return (l || []).filter(function(H) {
2413
- return H && en(H) === "object" && "key" in H;
1332
+ var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
1333
+ var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, g = e.editable, f = e.animated, b = e.tabPosition, C = b === void 0 ? "top" : b, T = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, k = e.onTabClick, D = e.onTabScroll, R = e.getPopupContainer, w = e.popupClassName, N = e.indicator, m = We(e, Hn), h = l.useMemo(function() {
1334
+ return (s || []).filter(function(L) {
1335
+ return L && vt(L) === "object" && "key" in L;
2414
1336
  });
2415
- }, [l]), N = s === "rtl", I = Gi(d), j = be(!1), G = z(j, 2), m = G[0], W = G[1];
2416
- Be(function() {
2417
- W(dr());
1337
+ }, [s]), _ = i === "rtl", x = An(f), G = U(!1), X = B(G, 2), v = X[0], Y = X[1];
1338
+ me(function() {
1339
+ Y(La());
2418
1340
  }, []);
2419
- var J = bt(function() {
2420
- var H;
2421
- return (H = $[0]) === null || H === void 0 ? void 0 : H.key;
1341
+ var se = Bt(function() {
1342
+ var L;
1343
+ return (L = h[0]) === null || L === void 0 ? void 0 : L.key;
2422
1344
  }, {
2423
1345
  value: c,
2424
- defaultValue: u
2425
- }), F = z(J, 2), ee = F[0], se = F[1], A = be(function() {
2426
- return $.findIndex(function(H) {
2427
- return H.key === ee;
1346
+ defaultValue: d
1347
+ }), q = B(se, 2), J = q[0], ce = q[1], I = U(function() {
1348
+ return h.findIndex(function(L) {
1349
+ return L.key === J;
2428
1350
  });
2429
- }), K = z(A, 2), k = K[0], V = K[1];
2430
- Be(function() {
2431
- var H = $.findIndex(function(De) {
2432
- return De.key === ee;
1351
+ }), H = B(I, 2), W = H[0], Q = H[1];
1352
+ me(function() {
1353
+ var L = h.findIndex(function(xe) {
1354
+ return xe.key === J;
2433
1355
  });
2434
- if (H === -1) {
2435
- var me;
2436
- H = Math.max(0, Math.min(k, $.length - 1)), se((me = $[H]) === null || me === void 0 ? void 0 : me.key);
1356
+ if (L === -1) {
1357
+ var de;
1358
+ L = Math.max(0, Math.min(W, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
2437
1359
  }
2438
- V(H);
2439
- }, [$.map(function(H) {
2440
- return H.key;
2441
- }).join("_"), ee, k]);
2442
- var U = bt(null, {
1360
+ Q(L);
1361
+ }, [h.map(function(L) {
1362
+ return L.key;
1363
+ }).join("_"), J, W]);
1364
+ var Z = Bt(null, {
2443
1365
  value: a
2444
- }), q = z(U, 2), te = q[0], ie = q[1];
2445
- Be(function() {
2446
- a || (ie("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : ua)), ua += 1);
1366
+ }), ne = B(Z, 2), ae = ne[0], $e = ne[1];
1367
+ me(function() {
1368
+ a || ($e("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Xt)), Xt += 1);
2447
1369
  }, []);
2448
- function de(H, me) {
2449
- P == null || P(H, me);
2450
- var De = H !== ee;
2451
- se(H), De && (R == null || R(H));
1370
+ function fe(L, de) {
1371
+ k == null || k(L, de);
1372
+ var xe = L !== J;
1373
+ ce(L), xe && (j == null || j(L));
2452
1374
  }
2453
- var fe = {
2454
- id: te,
2455
- activeKey: ee,
2456
- animated: I,
2457
- tabPosition: h,
2458
- rtl: N,
2459
- mobile: m
2460
- }, Pe = Y(Y({}, fe), {}, {
2461
- editable: v,
2462
- locale: p,
2463
- more: C,
2464
- tabBarGutter: S,
2465
- onTabClick: de,
2466
- onTabScroll: M,
2467
- extra: x,
2468
- style: g,
1375
+ var re = {
1376
+ id: ae,
1377
+ activeKey: J,
1378
+ animated: x,
1379
+ tabPosition: C,
1380
+ rtl: _,
1381
+ mobile: v
1382
+ }, ye = le(le({}, re), {}, {
1383
+ editable: g,
1384
+ locale: y,
1385
+ more: S,
1386
+ tabBarGutter: T,
1387
+ onTabClick: fe,
1388
+ onTabScroll: D,
1389
+ extra: O,
1390
+ style: p,
2469
1391
  panes: null,
2470
- getPopupContainer: O,
2471
- popupClassName: E,
2472
- indicator: T
1392
+ getPopupContainer: R,
1393
+ popupClassName: w,
1394
+ indicator: N
2473
1395
  });
2474
- return /* @__PURE__ */ i.createElement(sn.Provider, {
1396
+ return /* @__PURE__ */ l.createElement(Xe.Provider, {
2475
1397
  value: {
2476
- tabs: $,
1398
+ tabs: h,
2477
1399
  prefixCls: r
2478
1400
  }
2479
- }, /* @__PURE__ */ i.createElement("div", ae({
1401
+ }, /* @__PURE__ */ l.createElement("div", he({
2480
1402
  ref: t,
2481
1403
  id: a,
2482
- className: D(r, "".concat(r, "-").concat(h), B(B(B({}, "".concat(r, "-mobile"), m), "".concat(r, "-editable"), v), "".concat(r, "-rtl"), N), o)
2483
- }, y), /* @__PURE__ */ i.createElement(Ka, ae({}, Pe, {
2484
- renderTabBar: _
2485
- })), /* @__PURE__ */ i.createElement(Hi, ae({
2486
- destroyInactiveTabPane: b
2487
- }, fe, {
2488
- animated: I
1404
+ className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), g), "".concat(r, "-rtl"), _), o)
1405
+ }, m), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
1406
+ renderTabBar: z
1407
+ })), /* @__PURE__ */ l.createElement(Dn, he({
1408
+ destroyInactiveTabPane: P
1409
+ }, re, {
1410
+ animated: x
2489
1411
  }))));
2490
1412
  });
2491
- process.env.NODE_ENV !== "production" && (Va.displayName = "Tabs");
2492
- const Fi = {
1413
+ process.env.NODE_ENV !== "production" && (ia.displayName = "Tabs");
1414
+ const kn = {
2493
1415
  motionAppear: !1,
2494
1416
  motionEnter: !0,
2495
1417
  motionLeave: !0
2496
1418
  };
2497
- function qi(e) {
1419
+ function Gn(e) {
2498
1420
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2499
1421
  inkBar: !0,
2500
1422
  tabPane: !1
@@ -2507,42 +1429,44 @@ function qi(e) {
2507
1429
  tabPane: !0
2508
1430
  } : a = Object.assign({
2509
1431
  inkBar: !0
2510
- }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Fi), {
2511
- motionName: fr(e, "switch")
1432
+ }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, kn), {
1433
+ motionName: ja(e, "switch")
2512
1434
  })), a;
2513
1435
  }
2514
- var Ui = function(e, t) {
1436
+ var Wn = globalThis && globalThis.__rest || function(e, t) {
2515
1437
  var a = {};
2516
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2517
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2518
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
1438
+ for (var n in e)
1439
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
1440
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1441
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1442
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2519
1443
  return a;
2520
1444
  };
2521
- function Xi(e) {
1445
+ function Vn(e) {
2522
1446
  return e.filter((t) => t);
2523
1447
  }
2524
- function Yi(e, t) {
2525
- if (process.env.NODE_ENV !== "production" && Ln("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
1448
+ function Kn(e, t) {
1449
+ if (process.env.NODE_ENV !== "production" && mt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
2526
1450
  return e;
2527
- const a = Ca(t).map((n) => {
2528
- if (/* @__PURE__ */ i.isValidElement(n)) {
1451
+ const a = Ta(t).map((n) => {
1452
+ if (/* @__PURE__ */ l.isValidElement(n)) {
2529
1453
  const {
2530
1454
  key: r,
2531
1455
  props: o
2532
- } = n, l = o || {}, {
2533
- tab: s
2534
- } = l, c = Ui(l, ["tab"]);
1456
+ } = n, s = o || {}, {
1457
+ tab: i
1458
+ } = s, c = Wn(s, ["tab"]);
2535
1459
  return Object.assign(Object.assign({
2536
1460
  key: String(r)
2537
1461
  }, c), {
2538
- label: s
1462
+ label: i
2539
1463
  });
2540
1464
  }
2541
1465
  return null;
2542
1466
  });
2543
- return Xi(a);
1467
+ return Vn(a);
2544
1468
  }
2545
- const Zi = (e) => {
1469
+ const qn = (e) => {
2546
1470
  const {
2547
1471
  componentCls: t,
2548
1472
  motionDurationSlow: a
@@ -2577,16 +1501,16 @@ const Zi = (e) => {
2577
1501
  }
2578
1502
  },
2579
1503
  // Follow code may reuse in other components
2580
- [Xn(e, "slide-up"), Xn(e, "slide-down")]
1504
+ [At(e, "slide-up"), At(e, "slide-down")]
2581
1505
  ];
2582
- }, Ji = (e) => {
1506
+ }, Fn = qn, Xn = (e) => {
2583
1507
  const {
2584
1508
  componentCls: t,
2585
1509
  tabsCardPadding: a,
2586
1510
  cardBg: n,
2587
1511
  cardGutter: r,
2588
1512
  colorBorderSecondary: o,
2589
- itemSelectedColor: l
1513
+ itemSelectedColor: s
2590
1514
  } = e;
2591
1515
  return {
2592
1516
  [`${t}-card`]: {
@@ -2595,14 +1519,14 @@ const Zi = (e) => {
2595
1519
  margin: 0,
2596
1520
  padding: a,
2597
1521
  background: n,
2598
- border: `${w(e.lineWidth)} ${e.lineType} ${o}`,
1522
+ border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
2599
1523
  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
2600
1524
  },
2601
1525
  [`${t}-tab-active`]: {
2602
- color: l,
1526
+ color: s,
2603
1527
  background: e.colorBgContainer
2604
1528
  },
2605
- [`${t}-tab-focus`]: Object.assign({}, ya(e, -3)),
1529
+ [`${t}-tab-focus`]: Object.assign({}, Zt(e, -3)),
2606
1530
  [`${t}-ink-bar`]: {
2607
1531
  visibility: "hidden"
2608
1532
  },
@@ -2616,7 +1540,7 @@ const Zi = (e) => {
2616
1540
  [`${t}-tab + ${t}-tab`]: {
2617
1541
  marginLeft: {
2618
1542
  _skip_check_: !0,
2619
- value: w(r)
1543
+ value: u(r)
2620
1544
  }
2621
1545
  }
2622
1546
  }
@@ -2624,7 +1548,7 @@ const Zi = (e) => {
2624
1548
  [`&${t}-top`]: {
2625
1549
  [`> ${t}-nav, > div > ${t}-nav`]: {
2626
1550
  [`${t}-tab`]: {
2627
- borderRadius: `${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0 0`
1551
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
2628
1552
  },
2629
1553
  [`${t}-tab-active`]: {
2630
1554
  borderBottomColor: e.colorBgContainer
@@ -2634,7 +1558,7 @@ const Zi = (e) => {
2634
1558
  [`&${t}-bottom`]: {
2635
1559
  [`> ${t}-nav, > div > ${t}-nav`]: {
2636
1560
  [`${t}-tab`]: {
2637
- borderRadius: `0 0 ${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)}`
1561
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2638
1562
  },
2639
1563
  [`${t}-tab-active`]: {
2640
1564
  borderTopColor: e.colorBgContainer
@@ -2645,7 +1569,7 @@ const Zi = (e) => {
2645
1569
  [`&${t}-left, &${t}-right`]: {
2646
1570
  [`> ${t}-nav, > div > ${t}-nav`]: {
2647
1571
  [`${t}-tab + ${t}-tab`]: {
2648
- marginTop: w(r)
1572
+ marginTop: u(r)
2649
1573
  }
2650
1574
  }
2651
1575
  },
@@ -2654,7 +1578,7 @@ const Zi = (e) => {
2654
1578
  [`${t}-tab`]: {
2655
1579
  borderRadius: {
2656
1580
  _skip_check_: !0,
2657
- value: `${w(e.borderRadiusLG)} 0 0 ${w(e.borderRadiusLG)}`
1581
+ value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
2658
1582
  }
2659
1583
  },
2660
1584
  [`${t}-tab-active`]: {
@@ -2670,7 +1594,7 @@ const Zi = (e) => {
2670
1594
  [`${t}-tab`]: {
2671
1595
  borderRadius: {
2672
1596
  _skip_check_: !0,
2673
- value: `0 ${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0`
1597
+ value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
2674
1598
  }
2675
1599
  },
2676
1600
  [`${t}-tab-active`]: {
@@ -2683,14 +1607,14 @@ const Zi = (e) => {
2683
1607
  }
2684
1608
  }
2685
1609
  };
2686
- }, Qi = (e) => {
1610
+ }, Un = (e) => {
2687
1611
  const {
2688
1612
  componentCls: t,
2689
1613
  itemHoverColor: a,
2690
1614
  dropdownEdgeChildVerticalPadding: n
2691
1615
  } = e;
2692
1616
  return {
2693
- [`${t}-dropdown`]: Object.assign(Object.assign({}, Dn(e)), {
1617
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, bt(e)), {
2694
1618
  position: "absolute",
2695
1619
  top: -9999,
2696
1620
  left: {
@@ -2705,7 +1629,7 @@ const Zi = (e) => {
2705
1629
  [`${t}-dropdown-menu`]: {
2706
1630
  maxHeight: e.tabsDropdownHeight,
2707
1631
  margin: 0,
2708
- padding: `${w(n)} 0`,
1632
+ padding: `${u(n)} 0`,
2709
1633
  overflowX: "hidden",
2710
1634
  overflowY: "auto",
2711
1635
  textAlign: {
@@ -2718,12 +1642,12 @@ const Zi = (e) => {
2718
1642
  borderRadius: e.borderRadiusLG,
2719
1643
  outline: "none",
2720
1644
  boxShadow: e.boxShadowSecondary,
2721
- "&-item": Object.assign(Object.assign({}, zn), {
1645
+ "&-item": Object.assign(Object.assign({}, pt), {
2722
1646
  display: "flex",
2723
1647
  alignItems: "center",
2724
1648
  minWidth: e.tabsDropdownWidth,
2725
1649
  margin: 0,
2726
- padding: `${w(e.paddingXXS)} ${w(e.paddingSM)}`,
1650
+ padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
2727
1651
  color: e.colorText,
2728
1652
  fontWeight: "normal",
2729
1653
  fontSize: e.fontSize,
@@ -2763,15 +1687,15 @@ const Zi = (e) => {
2763
1687
  }
2764
1688
  })
2765
1689
  };
2766
- }, eo = (e) => {
1690
+ }, Yn = (e) => {
2767
1691
  const {
2768
1692
  componentCls: t,
2769
1693
  margin: a,
2770
1694
  colorBorderSecondary: n,
2771
1695
  horizontalMargin: r,
2772
1696
  verticalItemPadding: o,
2773
- verticalItemMargin: l,
2774
- calc: s
1697
+ verticalItemMargin: s,
1698
+ calc: i
2775
1699
  } = e;
2776
1700
  return {
2777
1701
  // ========================== Top & Bottom ==========================
@@ -2789,7 +1713,7 @@ const Zi = (e) => {
2789
1713
  _skip_check_: !0,
2790
1714
  value: 0
2791
1715
  },
2792
- borderBottom: `${w(e.lineWidth)} ${e.lineType} ${n}`,
1716
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${n}`,
2793
1717
  content: "''"
2794
1718
  },
2795
1719
  [`${t}-ink-bar`]: {
@@ -2859,14 +1783,14 @@ const Zi = (e) => {
2859
1783
  [`${t}-left, ${t}-right`]: {
2860
1784
  [`> ${t}-nav, > div > ${t}-nav`]: {
2861
1785
  flexDirection: "column",
2862
- minWidth: s(e.controlHeight).mul(1.25).equal(),
1786
+ minWidth: i(e.controlHeight).mul(1.25).equal(),
2863
1787
  // >>>>>>>>>>> Tab
2864
1788
  [`${t}-tab`]: {
2865
1789
  padding: o,
2866
1790
  textAlign: "center"
2867
1791
  },
2868
1792
  [`${t}-tab + ${t}-tab`]: {
2869
- margin: l
1793
+ margin: s
2870
1794
  },
2871
1795
  // >>>>>>>>>>> Nav
2872
1796
  [`${t}-nav-wrap`]: {
@@ -2923,11 +1847,11 @@ const Zi = (e) => {
2923
1847
  [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
2924
1848
  marginLeft: {
2925
1849
  _skip_check_: !0,
2926
- value: w(s(e.lineWidth).mul(-1).equal())
1850
+ value: u(i(e.lineWidth).mul(-1).equal())
2927
1851
  },
2928
1852
  borderLeft: {
2929
1853
  _skip_check_: !0,
2930
- value: `${w(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1854
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
2931
1855
  },
2932
1856
  [`> ${t}-content > ${t}-tabpane`]: {
2933
1857
  paddingLeft: {
@@ -2951,11 +1875,11 @@ const Zi = (e) => {
2951
1875
  order: 0,
2952
1876
  marginRight: {
2953
1877
  _skip_check_: !0,
2954
- value: s(e.lineWidth).mul(-1).equal()
1878
+ value: i(e.lineWidth).mul(-1).equal()
2955
1879
  },
2956
1880
  borderRight: {
2957
1881
  _skip_check_: !0,
2958
- value: `${w(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1882
+ value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
2959
1883
  },
2960
1884
  [`> ${t}-content > ${t}-tabpane`]: {
2961
1885
  paddingRight: {
@@ -2966,7 +1890,7 @@ const Zi = (e) => {
2966
1890
  }
2967
1891
  }
2968
1892
  };
2969
- }, to = (e) => {
1893
+ }, Qn = (e) => {
2970
1894
  const {
2971
1895
  componentCls: t,
2972
1896
  cardPaddingSM: a,
@@ -3002,19 +1926,19 @@ const Zi = (e) => {
3002
1926
  },
3003
1927
  [`&${t}-bottom`]: {
3004
1928
  [`> ${t}-nav ${t}-tab`]: {
3005
- borderRadius: `0 0 ${w(e.borderRadius)} ${w(e.borderRadius)}`
1929
+ borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
3006
1930
  }
3007
1931
  },
3008
1932
  [`&${t}-top`]: {
3009
1933
  [`> ${t}-nav ${t}-tab`]: {
3010
- borderRadius: `${w(e.borderRadius)} ${w(e.borderRadius)} 0 0`
1934
+ borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
3011
1935
  }
3012
1936
  },
3013
1937
  [`&${t}-right`]: {
3014
1938
  [`> ${t}-nav ${t}-tab`]: {
3015
1939
  borderRadius: {
3016
1940
  _skip_check_: !0,
3017
- value: `0 ${w(e.borderRadius)} ${w(e.borderRadius)} 0`
1941
+ value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
3018
1942
  }
3019
1943
  }
3020
1944
  },
@@ -3022,7 +1946,7 @@ const Zi = (e) => {
3022
1946
  [`> ${t}-nav ${t}-tab`]: {
3023
1947
  borderRadius: {
3024
1948
  _skip_check_: !0,
3025
- value: `${w(e.borderRadius)} 0 0 ${w(e.borderRadius)}`
1949
+ value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
3026
1950
  }
3027
1951
  }
3028
1952
  }
@@ -3036,25 +1960,25 @@ const Zi = (e) => {
3036
1960
  }
3037
1961
  }
3038
1962
  };
3039
- }, no = (e) => {
1963
+ }, Zn = (e) => {
3040
1964
  const {
3041
1965
  componentCls: t,
3042
1966
  itemActiveColor: a,
3043
1967
  itemHoverColor: n,
3044
1968
  iconCls: r,
3045
1969
  tabsHorizontalItemMargin: o,
3046
- horizontalItemPadding: l,
3047
- itemSelectedColor: s,
1970
+ horizontalItemPadding: s,
1971
+ itemSelectedColor: i,
3048
1972
  itemColor: c
3049
- } = e, u = `${t}-tab`;
1973
+ } = e, d = `${t}-tab`;
3050
1974
  return {
3051
- [u]: {
1975
+ [d]: {
3052
1976
  position: "relative",
3053
1977
  WebkitTouchCallout: "none",
3054
1978
  WebkitTapHighlightColor: "transparent",
3055
1979
  display: "inline-flex",
3056
1980
  alignItems: "center",
3057
- padding: l,
1981
+ padding: s,
3058
1982
  fontSize: e.titleFontSize,
3059
1983
  background: "transparent",
3060
1984
  border: 0,
@@ -3069,7 +1993,7 @@ const Zi = (e) => {
3069
1993
  "&-btn": {
3070
1994
  outline: "none",
3071
1995
  transition: `all ${e.motionDurationSlow}`,
3072
- [`${u}-icon:not(:last-child)`]: {
1996
+ [`${d}-icon:not(:last-child)`]: {
3073
1997
  marginInlineEnd: e.marginSM
3074
1998
  }
3075
1999
  },
@@ -3093,25 +2017,25 @@ const Zi = (e) => {
3093
2017
  "&:hover": {
3094
2018
  color: e.colorTextHeading
3095
2019
  }
3096
- }, xn(e)),
2020
+ }, dt(e)),
3097
2021
  "&:hover": {
3098
2022
  color: n
3099
2023
  },
3100
- [`&${u}-active ${u}-btn`]: {
3101
- color: s,
2024
+ [`&${d}-active ${d}-btn`]: {
2025
+ color: i,
3102
2026
  textShadow: e.tabsActiveTextShadow
3103
2027
  },
3104
- [`&${u}-focus ${u}-btn`]: Object.assign({}, ya(e)),
3105
- [`&${u}-disabled`]: {
2028
+ [`&${d}-focus ${d}-btn`]: Object.assign({}, Zt(e)),
2029
+ [`&${d}-disabled`]: {
3106
2030
  color: e.colorTextDisabled,
3107
2031
  cursor: "not-allowed"
3108
2032
  },
3109
- [`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]: {
2033
+ [`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
3110
2034
  "&:focus, &:active": {
3111
2035
  color: e.colorTextDisabled
3112
2036
  }
3113
2037
  },
3114
- [`& ${u}-remove ${r}`]: {
2038
+ [`& ${d}-remove ${r}`]: {
3115
2039
  margin: 0
3116
2040
  },
3117
2041
  [`${r}:not(:last-child)`]: {
@@ -3121,14 +2045,14 @@ const Zi = (e) => {
3121
2045
  }
3122
2046
  }
3123
2047
  },
3124
- [`${u} + ${u}`]: {
2048
+ [`${d} + ${d}`]: {
3125
2049
  margin: {
3126
2050
  _skip_check_: !0,
3127
2051
  value: o
3128
2052
  }
3129
2053
  }
3130
2054
  };
3131
- }, ao = (e) => {
2055
+ }, Jn = (e) => {
3132
2056
  const {
3133
2057
  componentCls: t,
3134
2058
  tabsHorizontalItemMarginRTL: a,
@@ -3158,17 +2082,17 @@ const Zi = (e) => {
3158
2082
  },
3159
2083
  marginLeft: {
3160
2084
  _skip_check_: !0,
3161
- value: w(e.marginSM)
2085
+ value: u(e.marginSM)
3162
2086
  }
3163
2087
  },
3164
2088
  [`${t}-tab-remove`]: {
3165
2089
  marginRight: {
3166
2090
  _skip_check_: !0,
3167
- value: w(e.marginXS)
2091
+ value: u(e.marginXS)
3168
2092
  },
3169
2093
  marginLeft: {
3170
2094
  _skip_check_: !0,
3171
- value: w(o(e.marginXXS).mul(-1).equal())
2095
+ value: u(o(e.marginXXS).mul(-1).equal())
3172
2096
  },
3173
2097
  [n]: {
3174
2098
  margin: 0
@@ -3220,18 +2144,18 @@ const Zi = (e) => {
3220
2144
  }
3221
2145
  }
3222
2146
  };
3223
- }, ro = (e) => {
2147
+ }, er = (e) => {
3224
2148
  const {
3225
2149
  componentCls: t,
3226
2150
  tabsCardPadding: a,
3227
2151
  cardHeight: n,
3228
2152
  cardGutter: r,
3229
2153
  itemHoverColor: o,
3230
- itemActiveColor: l,
3231
- colorBorderSecondary: s
2154
+ itemActiveColor: s,
2155
+ colorBorderSecondary: i
3232
2156
  } = e;
3233
2157
  return {
3234
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Dn(e)), {
2158
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, bt(e)), {
3235
2159
  display: "flex",
3236
2160
  // ========================== Navigation ==========================
3237
2161
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -3301,10 +2225,10 @@ const Zi = (e) => {
3301
2225
  _skip_check_: !0,
3302
2226
  value: r
3303
2227
  },
3304
- padding: w(e.paddingXS),
2228
+ padding: u(e.paddingXS),
3305
2229
  background: "transparent",
3306
- border: `${w(e.lineWidth)} ${e.lineType} ${s}`,
3307
- borderRadius: `${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0 0`,
2230
+ border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
2231
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
3308
2232
  outline: "none",
3309
2233
  cursor: "pointer",
3310
2234
  color: e.colorText,
@@ -3313,9 +2237,9 @@ const Zi = (e) => {
3313
2237
  color: o
3314
2238
  },
3315
2239
  "&:active, &:focus:not(:focus-visible)": {
3316
- color: l
2240
+ color: s
3317
2241
  }
3318
- }, xn(e, -3))
2242
+ }, dt(e, -3))
3319
2243
  },
3320
2244
  [`${t}-extra-content`]: {
3321
2245
  flex: "none"
@@ -3326,7 +2250,7 @@ const Zi = (e) => {
3326
2250
  background: e.inkBarColor,
3327
2251
  pointerEvents: "none"
3328
2252
  }
3329
- }), no(e)), {
2253
+ }), Zn(e)), {
3330
2254
  // =========================== TabPanes ===========================
3331
2255
  [`${t}-content`]: {
3332
2256
  position: "relative",
@@ -3337,7 +2261,7 @@ const Zi = (e) => {
3337
2261
  minWidth: 0,
3338
2262
  minHeight: 0
3339
2263
  },
3340
- [`${t}-tabpane`]: Object.assign(Object.assign({}, xn(e)), {
2264
+ [`${t}-tabpane`]: Object.assign(Object.assign({}, dt(e)), {
3341
2265
  "&-hidden": {
3342
2266
  display: "none"
3343
2267
  }
@@ -3353,7 +2277,7 @@ const Zi = (e) => {
3353
2277
  }
3354
2278
  }
3355
2279
  };
3356
- }, io = (e) => {
2280
+ }, tr = (e) => {
3357
2281
  const t = e.controlHeightLG;
3358
2282
  return {
3359
2283
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -3384,125 +2308,131 @@ const Zi = (e) => {
3384
2308
  itemActiveColor: e.colorPrimaryActive,
3385
2309
  cardGutter: e.marginXXS / 2
3386
2310
  };
3387
- }, oo = On("Tabs", (e) => {
3388
- const t = Tn(e, {
2311
+ }, ar = ft("Tabs", (e) => {
2312
+ const t = gt(e, {
3389
2313
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
3390
2314
  tabsCardPadding: e.cardPadding,
3391
2315
  dropdownEdgeChildVerticalPadding: e.paddingXXS,
3392
2316
  tabsActiveTextShadow: "0 0 0.25px currentcolor",
3393
2317
  tabsDropdownHeight: 200,
3394
2318
  tabsDropdownWidth: 120,
3395
- tabsHorizontalItemMargin: `0 0 0 ${w(e.horizontalItemGutter)}`,
3396
- tabsHorizontalItemMarginRTL: `0 0 0 ${w(e.horizontalItemGutter)}`
2319
+ tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
2320
+ tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
3397
2321
  });
3398
- return [to(t), ao(t), eo(t), Qi(t), Ji(t), ro(t), Zi(t)];
3399
- }, io), Ha = () => null;
3400
- process.env.NODE_ENV !== "production" && (Ha.displayName = "DeprecatedTabPane");
3401
- var lo = function(e, t) {
2322
+ return [Qn(t), Jn(t), Yn(t), Un(t), Xn(t), er(t), Fn(t)];
2323
+ }, tr), oa = () => null;
2324
+ process.env.NODE_ENV !== "production" && (oa.displayName = "DeprecatedTabPane");
2325
+ const nr = oa;
2326
+ var rr = globalThis && globalThis.__rest || function(e, t) {
3402
2327
  var a = {};
3403
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
3404
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3405
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2328
+ for (var n in e)
2329
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2330
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2331
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2332
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
3406
2333
  return a;
3407
2334
  };
3408
- const Wn = (e) => {
3409
- var t, a, n, r, o, l, s, c, u, v, d;
2335
+ const yt = (e) => {
2336
+ var t, a, n, r, o, s, i, c, d, g, f;
3410
2337
  const {
3411
- type: f,
3412
- className: h,
3413
- rootClassName: S,
3414
- size: g,
3415
- onEdit: x,
3416
- hideAdd: p,
3417
- centered: C,
3418
- addIcon: b,
3419
- removeIcon: _,
3420
- moreIcon: R,
3421
- more: P,
3422
- popupClassName: M,
3423
- children: O,
3424
- items: E,
3425
- animated: T,
3426
- style: y,
3427
- indicatorSize: $,
3428
- indicator: N
3429
- } = e, I = lo(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
3430
- prefixCls: j
3431
- } = I, {
3432
- direction: G,
3433
- tabs: m,
3434
- getPrefixCls: W,
3435
- getPopupContainer: J
3436
- } = i.useContext(Ve), F = W("tabs", j), ee = gr(F), [se, A, K] = oo(F, ee);
3437
- let k;
3438
- f === "editable-card" && (k = {
3439
- onEdit: (fe, Pe) => {
2338
+ type: b,
2339
+ className: C,
2340
+ rootClassName: T,
2341
+ size: p,
2342
+ onEdit: O,
2343
+ hideAdd: y,
2344
+ centered: S,
2345
+ addIcon: P,
2346
+ removeIcon: z,
2347
+ moreIcon: j,
2348
+ more: k,
2349
+ popupClassName: D,
2350
+ children: R,
2351
+ items: w,
2352
+ animated: N,
2353
+ style: m,
2354
+ indicatorSize: h,
2355
+ indicator: _
2356
+ } = e, x = rr(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
2357
+ prefixCls: G
2358
+ } = x, {
2359
+ direction: X,
2360
+ tabs: v,
2361
+ getPrefixCls: Y,
2362
+ getPopupContainer: se
2363
+ } = l.useContext(be), q = Y("tabs", G), J = Wa(q), [ce, I, H] = ar(q, J);
2364
+ let W;
2365
+ b === "editable-card" && (W = {
2366
+ onEdit: (re, ye) => {
3440
2367
  let {
3441
- key: H,
3442
- event: me
3443
- } = Pe;
3444
- x == null || x(fe === "add" ? me : H, fe);
2368
+ key: L,
2369
+ event: de
2370
+ } = ye;
2371
+ O == null || O(re === "add" ? de : L, re);
3445
2372
  },
3446
- removeIcon: (t = _ ?? (m == null ? void 0 : m.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ i.createElement(vr, null),
3447
- addIcon: (b ?? (m == null ? void 0 : m.addIcon)) || /* @__PURE__ */ i.createElement(Aa, null),
3448
- showAdd: p !== !0
2373
+ removeIcon: (t = z ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
2374
+ addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(xn, null),
2375
+ showAdd: y !== !0
3449
2376
  });
3450
- const V = W();
2377
+ const Q = Y();
3451
2378
  if (process.env.NODE_ENV !== "production") {
3452
- const fe = Ln("Tabs");
3453
- process.env.NODE_ENV !== "production" && fe(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && fe(!($ || m != null && m.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
2379
+ const re = mt("Tabs");
2380
+ 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(!(h || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
3454
2381
  }
3455
- const U = $a(g), q = Yi(E, O), te = qi(F, T), ie = Object.assign(Object.assign({}, m == null ? void 0 : m.style), y), de = {
3456
- align: (a = N == null ? void 0 : N.align) !== null && a !== void 0 ? a : (n = m == null ? void 0 : m.indicator) === null || n === void 0 ? void 0 : n.align,
3457
- size: (s = (o = (r = N == null ? void 0 : N.size) !== null && r !== void 0 ? r : $) !== null && o !== void 0 ? o : (l = m == null ? void 0 : m.indicator) === null || l === void 0 ? void 0 : l.size) !== null && s !== void 0 ? s : m == null ? void 0 : m.indicatorSize
2382
+ const Z = Jt(p), ne = Kn(w, R), ae = Gn(q, N), $e = Object.assign(Object.assign({}, v == null ? void 0 : v.style), m), fe = {
2383
+ align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = v == null ? void 0 : v.indicator) === null || n === void 0 ? void 0 : n.align,
2384
+ size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = v == null ? void 0 : v.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
3458
2385
  };
3459
- return se(/* @__PURE__ */ i.createElement(Va, Object.assign({
3460
- direction: G,
3461
- getPopupContainer: J
3462
- }, I, {
3463
- items: q,
3464
- className: D({
3465
- [`${F}-${U}`]: U,
3466
- [`${F}-card`]: ["card", "editable-card"].includes(f),
3467
- [`${F}-editable-card`]: f === "editable-card",
3468
- [`${F}-centered`]: C
3469
- }, m == null ? void 0 : m.className, h, S, A, K, ee),
3470
- popupClassName: D(M, A, K, ee),
3471
- style: ie,
3472
- editable: k,
2386
+ return ce(/* @__PURE__ */ l.createElement(ia, Object.assign({
2387
+ direction: X,
2388
+ getPopupContainer: se
2389
+ }, x, {
2390
+ items: ne,
2391
+ className: E({
2392
+ [`${q}-${Z}`]: Z,
2393
+ [`${q}-card`]: ["card", "editable-card"].includes(b),
2394
+ [`${q}-editable-card`]: b === "editable-card",
2395
+ [`${q}-centered`]: S
2396
+ }, v == null ? void 0 : v.className, C, T, I, H, J),
2397
+ popupClassName: E(D, I, H, J),
2398
+ style: $e,
2399
+ editable: W,
3473
2400
  more: Object.assign({
3474
- icon: (d = (v = (u = (c = m == null ? void 0 : m.more) === null || c === void 0 ? void 0 : c.icon) !== null && u !== void 0 ? u : m == null ? void 0 : m.moreIcon) !== null && v !== void 0 ? v : R) !== null && d !== void 0 ? d : /* @__PURE__ */ i.createElement(za, null),
3475
- transitionName: `${V}-slide-up`
3476
- }, P),
3477
- prefixCls: F,
3478
- animated: te,
3479
- indicator: de
2401
+ icon: (f = (g = (d = (c = v == null ? void 0 : v.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : v == null ? void 0 : v.moreIcon) !== null && g !== void 0 ? g : j) !== null && f !== void 0 ? f : /* @__PURE__ */ l.createElement(ka, null),
2402
+ transitionName: `${Q}-slide-up`
2403
+ }, k),
2404
+ prefixCls: q,
2405
+ animated: ae,
2406
+ indicator: fe
3480
2407
  })));
3481
2408
  };
3482
- Wn.TabPane = Ha;
3483
- process.env.NODE_ENV !== "production" && (Wn.displayName = "Tabs");
3484
- var so = function(e, t) {
2409
+ yt.TabPane = nr;
2410
+ process.env.NODE_ENV !== "production" && (yt.displayName = "Tabs");
2411
+ const ir = yt;
2412
+ var or = globalThis && globalThis.__rest || function(e, t) {
3485
2413
  var a = {};
3486
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
3487
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3488
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2414
+ for (var n in e)
2415
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2416
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2417
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2418
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
3489
2419
  return a;
3490
2420
  };
3491
- const Ga = (e) => {
2421
+ const lr = (e) => {
3492
2422
  var {
3493
2423
  prefixCls: t,
3494
2424
  className: a,
3495
2425
  hoverable: n = !0
3496
- } = e, r = so(e, ["prefixCls", "className", "hoverable"]);
2426
+ } = e, r = or(e, ["prefixCls", "className", "hoverable"]);
3497
2427
  const {
3498
2428
  getPrefixCls: o
3499
- } = i.useContext(Ve), l = o("card", t), s = D(`${l}-grid`, a, {
3500
- [`${l}-grid-hoverable`]: n
2429
+ } = l.useContext(be), s = o("card", t), i = E(`${s}-grid`, a, {
2430
+ [`${s}-grid-hoverable`]: n
3501
2431
  });
3502
- return /* @__PURE__ */ i.createElement("div", Object.assign({}, r, {
3503
- className: s
2432
+ return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
2433
+ className: i
3504
2434
  }));
3505
- }, co = (e) => {
2435
+ }, la = lr, sr = (e) => {
3506
2436
  const {
3507
2437
  antCls: t,
3508
2438
  componentCls: a,
@@ -3516,14 +2446,14 @@ const Ga = (e) => {
3516
2446
  flexDirection: "column",
3517
2447
  minHeight: n,
3518
2448
  marginBottom: -1,
3519
- padding: `0 ${w(r)}`,
2449
+ padding: `0 ${u(r)}`,
3520
2450
  color: e.colorTextHeading,
3521
2451
  fontWeight: e.fontWeightStrong,
3522
2452
  fontSize: e.headerFontSize,
3523
2453
  background: e.headerBg,
3524
- borderBottom: `${w(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
3525
- borderRadius: `${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0 0`
3526
- }, tn()), {
2454
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
2455
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
2456
+ }, Ke()), {
3527
2457
  "&-wrapper": {
3528
2458
  width: "100%",
3529
2459
  display: "flex",
@@ -3532,7 +2462,7 @@ const Ga = (e) => {
3532
2462
  "&-title": Object.assign(Object.assign({
3533
2463
  display: "inline-block",
3534
2464
  flex: 1
3535
- }, zn), {
2465
+ }, pt), {
3536
2466
  [`
3537
2467
  > ${a}-typography,
3538
2468
  > ${a}-typography-edit-content
@@ -3549,11 +2479,11 @@ const Ga = (e) => {
3549
2479
  fontWeight: "normal",
3550
2480
  fontSize: e.fontSize,
3551
2481
  "&-bar": {
3552
- borderBottom: `${w(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
2482
+ borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
3553
2483
  }
3554
2484
  }
3555
2485
  });
3556
- }, uo = (e) => {
2486
+ }, cr = (e) => {
3557
2487
  const {
3558
2488
  cardPaddingBase: t,
3559
2489
  colorBorderSecondary: a,
@@ -3566,11 +2496,11 @@ const Ga = (e) => {
3566
2496
  border: 0,
3567
2497
  borderRadius: 0,
3568
2498
  boxShadow: `
3569
- ${w(r)} 0 0 0 ${a},
3570
- 0 ${w(r)} 0 0 ${a},
3571
- ${w(r)} ${w(r)} 0 0 ${a},
3572
- ${w(r)} 0 0 0 ${a} inset,
3573
- 0 ${w(r)} 0 0 ${a} inset;
2499
+ ${u(r)} 0 0 0 ${a},
2500
+ 0 ${u(r)} 0 0 ${a},
2501
+ ${u(r)} ${u(r)} 0 0 ${a},
2502
+ ${u(r)} 0 0 0 ${a} inset,
2503
+ 0 ${u(r)} 0 0 ${a} inset;
3574
2504
  `,
3575
2505
  transition: `all ${e.motionDurationMid}`,
3576
2506
  "&-hoverable:hover": {
@@ -3579,24 +2509,24 @@ const Ga = (e) => {
3579
2509
  boxShadow: n
3580
2510
  }
3581
2511
  };
3582
- }, fo = (e) => {
2512
+ }, dr = (e) => {
3583
2513
  const {
3584
2514
  componentCls: t,
3585
2515
  iconCls: a,
3586
2516
  actionsLiMargin: n,
3587
2517
  cardActionsIconSize: r,
3588
2518
  colorBorderSecondary: o,
3589
- actionsBg: l
2519
+ actionsBg: s
3590
2520
  } = e;
3591
2521
  return Object.assign(Object.assign({
3592
2522
  margin: 0,
3593
2523
  padding: 0,
3594
2524
  listStyle: "none",
3595
- background: l,
3596
- borderTop: `${w(e.lineWidth)} ${e.lineType} ${o}`,
2525
+ background: s,
2526
+ borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
3597
2527
  display: "flex",
3598
- borderRadius: `0 0 ${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)}`
3599
- }, tn()), {
2528
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2529
+ }, Ke()), {
3600
2530
  "& > li": {
3601
2531
  margin: n,
3602
2532
  color: e.colorTextDescription,
@@ -3616,7 +2546,7 @@ const Ga = (e) => {
3616
2546
  display: "inline-block",
3617
2547
  width: "100%",
3618
2548
  color: e.colorTextDescription,
3619
- lineHeight: w(e.fontHeight),
2549
+ lineHeight: u(e.fontHeight),
3620
2550
  transition: `color ${e.motionDurationMid}`,
3621
2551
  "&:hover": {
3622
2552
  color: e.colorPrimary
@@ -3624,18 +2554,18 @@ const Ga = (e) => {
3624
2554
  },
3625
2555
  [`> ${a}`]: {
3626
2556
  fontSize: r,
3627
- lineHeight: w(e.calc(r).mul(e.lineHeight).equal())
2557
+ lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
3628
2558
  }
3629
2559
  },
3630
2560
  "&:not(:last-child)": {
3631
- borderInlineEnd: `${w(e.lineWidth)} ${e.lineType} ${o}`
2561
+ borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
3632
2562
  }
3633
2563
  }
3634
2564
  });
3635
- }, vo = (e) => Object.assign(Object.assign({
3636
- margin: `${w(e.calc(e.marginXXS).mul(-1).equal())} 0`,
2565
+ }, ur = (e) => Object.assign(Object.assign({
2566
+ margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
3637
2567
  display: "flex"
3638
- }, tn()), {
2568
+ }, Ke()), {
3639
2569
  "&-avatar": {
3640
2570
  paddingInlineEnd: e.padding
3641
2571
  },
@@ -3650,11 +2580,11 @@ const Ga = (e) => {
3650
2580
  color: e.colorTextHeading,
3651
2581
  fontWeight: e.fontWeightStrong,
3652
2582
  fontSize: e.fontSizeLG
3653
- }, zn),
2583
+ }, pt),
3654
2584
  "&-description": {
3655
2585
  color: e.colorTextDescription
3656
2586
  }
3657
- }), mo = (e) => {
2587
+ }), vr = (e) => {
3658
2588
  const {
3659
2589
  componentCls: t,
3660
2590
  colorFillAlter: a,
@@ -3663,17 +2593,17 @@ const Ga = (e) => {
3663
2593
  } = e;
3664
2594
  return {
3665
2595
  [`${t}-head`]: {
3666
- padding: `0 ${w(n)}`,
2596
+ padding: `0 ${u(n)}`,
3667
2597
  background: a,
3668
2598
  "&-title": {
3669
2599
  fontSize: e.fontSize
3670
2600
  }
3671
2601
  },
3672
2602
  [`${t}-body`]: {
3673
- padding: `${w(e.padding)} ${w(r)}`
2603
+ padding: `${u(e.padding)} ${u(r)}`
3674
2604
  }
3675
2605
  };
3676
- }, go = (e) => {
2606
+ }, fr = (e) => {
3677
2607
  const {
3678
2608
  componentCls: t
3679
2609
  } = e;
@@ -3683,49 +2613,49 @@ const Ga = (e) => {
3683
2613
  userSelect: "none"
3684
2614
  }
3685
2615
  };
3686
- }, po = (e) => {
2616
+ }, gr = (e) => {
3687
2617
  const {
3688
2618
  componentCls: t,
3689
2619
  cardShadow: a,
3690
2620
  cardHeadPadding: n,
3691
2621
  colorBorderSecondary: r,
3692
2622
  boxShadowTertiary: o,
3693
- bodyPadding: l,
3694
- extraColor: s
2623
+ bodyPadding: s,
2624
+ extraColor: i
3695
2625
  } = e;
3696
2626
  return {
3697
- [t]: Object.assign(Object.assign({}, Dn(e)), {
2627
+ [t]: Object.assign(Object.assign({}, bt(e)), {
3698
2628
  position: "relative",
3699
2629
  background: e.colorBgContainer,
3700
2630
  borderRadius: e.borderRadiusLG,
3701
2631
  [`&:not(${t}-bordered)`]: {
3702
2632
  boxShadow: o
3703
2633
  },
3704
- [`${t}-head`]: co(e),
2634
+ [`${t}-head`]: sr(e),
3705
2635
  [`${t}-extra`]: {
3706
2636
  // https://stackoverflow.com/a/22429853/3040605
3707
2637
  marginInlineStart: "auto",
3708
- color: s,
2638
+ color: i,
3709
2639
  fontWeight: "normal",
3710
2640
  fontSize: e.fontSize
3711
2641
  },
3712
2642
  [`${t}-body`]: Object.assign({
3713
- padding: l,
3714
- borderRadius: `0 0 ${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)}`
3715
- }, tn()),
3716
- [`${t}-grid`]: uo(e),
2643
+ padding: s,
2644
+ borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2645
+ }, Ke()),
2646
+ [`${t}-grid`]: cr(e),
3717
2647
  [`${t}-cover`]: {
3718
2648
  "> *": {
3719
2649
  display: "block",
3720
2650
  width: "100%",
3721
- borderRadius: `${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0 0`
2651
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
3722
2652
  }
3723
2653
  },
3724
- [`${t}-actions`]: fo(e),
3725
- [`${t}-meta`]: vo(e)
2654
+ [`${t}-actions`]: dr(e),
2655
+ [`${t}-meta`]: ur(e)
3726
2656
  }),
3727
2657
  [`${t}-bordered`]: {
3728
- border: `${w(e.lineWidth)} ${e.lineType} ${r}`,
2658
+ border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
3729
2659
  [`${t}-cover`]: {
3730
2660
  marginTop: -1,
3731
2661
  marginInlineStart: -1,
@@ -3741,7 +2671,7 @@ const Ga = (e) => {
3741
2671
  }
3742
2672
  },
3743
2673
  [`${t}-contain-grid`]: {
3744
- borderRadius: `${w(e.borderRadiusLG)} ${w(e.borderRadiusLG)} 0 0 `,
2674
+ borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
3745
2675
  [`${t}-body`]: {
3746
2676
  display: "flex",
3747
2677
  flexWrap: "wrap"
@@ -3760,13 +2690,13 @@ const Ga = (e) => {
3760
2690
  }
3761
2691
  }
3762
2692
  },
3763
- [`${t}-type-inner`]: mo(e),
3764
- [`${t}-loading`]: go(e),
2693
+ [`${t}-type-inner`]: vr(e),
2694
+ [`${t}-loading`]: fr(e),
3765
2695
  [`${t}-rtl`]: {
3766
2696
  direction: "rtl"
3767
2697
  }
3768
2698
  };
3769
- }, bo = (e) => {
2699
+ }, mr = (e) => {
3770
2700
  const {
3771
2701
  componentCls: t,
3772
2702
  bodyPaddingSM: a,
@@ -3778,7 +2708,7 @@ const Ga = (e) => {
3778
2708
  [`${t}-small`]: {
3779
2709
  [`> ${t}-head`]: {
3780
2710
  minHeight: r,
3781
- padding: `0 ${w(n)}`,
2711
+ padding: `0 ${u(n)}`,
3782
2712
  fontSize: o,
3783
2713
  [`> ${t}-head-wrapper`]: {
3784
2714
  [`> ${t}-extra`]: {
@@ -3800,7 +2730,7 @@ const Ga = (e) => {
3800
2730
  }
3801
2731
  }
3802
2732
  };
3803
- }, ho = (e) => {
2733
+ }, br = (e) => {
3804
2734
  var t, a;
3805
2735
  return {
3806
2736
  headerBg: "transparent",
@@ -3818,8 +2748,8 @@ const Ga = (e) => {
3818
2748
  bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
3819
2749
  headerPadding: (a = e.headerPadding) !== null && a !== void 0 ? a : e.paddingLG
3820
2750
  };
3821
- }, yo = On("Card", (e) => {
3822
- const t = Tn(e, {
2751
+ }, pr = ft("Card", (e) => {
2752
+ const t = gt(e, {
3823
2753
  cardShadow: e.boxShadowCard,
3824
2754
  cardHeadPadding: e.padding,
3825
2755
  cardPaddingBase: e.paddingLG,
@@ -3827,188 +2757,192 @@ const Ga = (e) => {
3827
2757
  });
3828
2758
  return [
3829
2759
  // Style
3830
- po(t),
2760
+ gr(t),
3831
2761
  // Size
3832
- bo(t)
2762
+ mr(t)
3833
2763
  ];
3834
- }, ho);
3835
- var da = function(e, t) {
2764
+ }, br);
2765
+ var Ut = globalThis && globalThis.__rest || function(e, t) {
3836
2766
  var a = {};
3837
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
3838
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3839
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2767
+ for (var n in e)
2768
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2769
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2770
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2771
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
3840
2772
  return a;
3841
2773
  };
3842
- const Co = (e) => {
2774
+ const hr = (e) => {
3843
2775
  const {
3844
2776
  actionClasses: t,
3845
2777
  actions: a = [],
3846
2778
  actionStyle: n
3847
2779
  } = e;
3848
- return /* @__PURE__ */ i.createElement("ul", {
2780
+ return /* @__PURE__ */ l.createElement("ul", {
3849
2781
  className: t,
3850
2782
  style: n
3851
2783
  }, a.map((r, o) => {
3852
- const l = `action-${o}`;
3853
- return /* @__PURE__ */ i.createElement("li", {
2784
+ const s = `action-${o}`;
2785
+ return /* @__PURE__ */ l.createElement("li", {
3854
2786
  style: {
3855
2787
  width: `${100 / a.length}%`
3856
2788
  },
3857
- key: l
3858
- }, /* @__PURE__ */ i.createElement("span", null, r));
2789
+ key: s
2790
+ }, /* @__PURE__ */ l.createElement("span", null, r));
3859
2791
  }));
3860
- }, $o = /* @__PURE__ */ i.forwardRef((e, t) => {
2792
+ }, $r = /* @__PURE__ */ l.forwardRef((e, t) => {
3861
2793
  const {
3862
2794
  prefixCls: a,
3863
2795
  className: n,
3864
2796
  rootClassName: r,
3865
2797
  style: o,
3866
- extra: l,
3867
- headStyle: s = {},
2798
+ extra: s,
2799
+ headStyle: i = {},
3868
2800
  bodyStyle: c = {},
3869
- title: u,
3870
- loading: v,
3871
- bordered: d = !0,
3872
- size: f,
3873
- type: h,
3874
- cover: S,
3875
- actions: g,
3876
- tabList: x,
3877
- children: p,
3878
- activeTabKey: C,
3879
- defaultActiveTabKey: b,
3880
- tabBarExtraContent: _,
3881
- hoverable: R,
3882
- tabProps: P = {},
3883
- classNames: M,
3884
- styles: O
3885
- } = e, E = da(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
3886
- getPrefixCls: T,
3887
- direction: y,
3888
- card: $
3889
- } = i.useContext(Ve);
2801
+ title: d,
2802
+ loading: g,
2803
+ bordered: f = !0,
2804
+ size: b,
2805
+ type: C,
2806
+ cover: T,
2807
+ actions: p,
2808
+ tabList: O,
2809
+ children: y,
2810
+ activeTabKey: S,
2811
+ defaultActiveTabKey: P,
2812
+ tabBarExtraContent: z,
2813
+ hoverable: j,
2814
+ tabProps: k = {},
2815
+ classNames: D,
2816
+ styles: R
2817
+ } = e, w = Ut(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2818
+ getPrefixCls: N,
2819
+ direction: m,
2820
+ card: h
2821
+ } = l.useContext(be);
3890
2822
  if (process.env.NODE_ENV !== "production") {
3891
- const oe = Ln("Card");
3892
- [["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((Z) => {
3893
- let [ye, Ie] = Z;
3894
- oe.deprecated(!(ye in e), ye, Ie);
2823
+ const F = mt("Card");
2824
+ [["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((V) => {
2825
+ let [ue, _e] = V;
2826
+ F.deprecated(!(ue in e), ue, _e);
3895
2827
  });
3896
2828
  }
3897
- const N = (oe) => {
3898
- var Z;
3899
- (Z = e.onTabChange) === null || Z === void 0 || Z.call(e, oe);
3900
- }, I = (oe) => {
3901
- var Z;
3902
- return D((Z = $ == null ? void 0 : $.classNames) === null || Z === void 0 ? void 0 : Z[oe], M == null ? void 0 : M[oe]);
3903
- }, j = (oe) => {
3904
- var Z;
3905
- return Object.assign(Object.assign({}, (Z = $ == null ? void 0 : $.styles) === null || Z === void 0 ? void 0 : Z[oe]), O == null ? void 0 : O[oe]);
3906
- }, G = i.useMemo(() => {
3907
- let oe = !1;
3908
- return i.Children.forEach(p, (Z) => {
3909
- (Z == null ? void 0 : Z.type) === Ga && (oe = !0);
3910
- }), oe;
3911
- }, [p]), m = T("card", a), [W, J, F] = yo(m), ee = /* @__PURE__ */ i.createElement(ot, {
2829
+ const _ = (F) => {
2830
+ var V;
2831
+ (V = e.onTabChange) === null || V === void 0 || V.call(e, F);
2832
+ }, x = (F) => {
2833
+ var V;
2834
+ return E((V = h == null ? void 0 : h.classNames) === null || V === void 0 ? void 0 : V[F], D == null ? void 0 : D[F]);
2835
+ }, G = (F) => {
2836
+ var V;
2837
+ return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), R == null ? void 0 : R[F]);
2838
+ }, X = l.useMemo(() => {
2839
+ let F = !1;
2840
+ return l.Children.forEach(y, (V) => {
2841
+ (V == null ? void 0 : V.type) === la && (F = !0);
2842
+ }), F;
2843
+ }, [y]), v = N("card", a), [Y, se, q] = pr(v), J = /* @__PURE__ */ l.createElement($n, {
3912
2844
  loading: !0,
3913
2845
  active: !0,
3914
2846
  paragraph: {
3915
2847
  rows: 4
3916
2848
  },
3917
2849
  title: !1
3918
- }, p), se = C !== void 0, A = Object.assign(Object.assign({}, P), {
3919
- [se ? "activeKey" : "defaultActiveKey"]: se ? C : b,
3920
- tabBarExtraContent: _
2850
+ }, y), ce = S !== void 0, I = Object.assign(Object.assign({}, k), {
2851
+ [ce ? "activeKey" : "defaultActiveKey"]: ce ? S : P,
2852
+ tabBarExtraContent: z
3921
2853
  });
3922
- let K;
3923
- const k = $a(f), V = !k || k === "default" ? "large" : k, U = x ? /* @__PURE__ */ i.createElement(Wn, Object.assign({
3924
- size: V
3925
- }, A, {
3926
- className: `${m}-head-tabs`,
3927
- onChange: N,
3928
- items: x.map((oe) => {
2854
+ let H;
2855
+ const W = Jt(b), Q = !W || W === "default" ? "large" : W, Z = O ? /* @__PURE__ */ l.createElement(ir, Object.assign({
2856
+ size: Q
2857
+ }, I, {
2858
+ className: `${v}-head-tabs`,
2859
+ onChange: _,
2860
+ items: O.map((F) => {
3929
2861
  var {
3930
- tab: Z
3931
- } = oe, ye = da(oe, ["tab"]);
2862
+ tab: V
2863
+ } = F, ue = Ut(F, ["tab"]);
3932
2864
  return Object.assign({
3933
- label: Z
3934
- }, ye);
2865
+ label: V
2866
+ }, ue);
3935
2867
  })
3936
2868
  })) : null;
3937
- if (u || l || U) {
3938
- const oe = D(`${m}-head`, I("header")), Z = D(`${m}-head-title`, I("title")), ye = D(`${m}-extra`, I("extra")), Ie = Object.assign(Object.assign({}, s), j("header"));
3939
- K = /* @__PURE__ */ i.createElement("div", {
3940
- className: oe,
3941
- style: Ie
3942
- }, /* @__PURE__ */ i.createElement("div", {
3943
- className: `${m}-head-wrapper`
3944
- }, u && /* @__PURE__ */ i.createElement("div", {
3945
- className: Z,
3946
- style: j("title")
3947
- }, u), l && /* @__PURE__ */ i.createElement("div", {
3948
- className: ye,
3949
- style: j("extra")
3950
- }, l)), U);
2869
+ if (d || s || Z) {
2870
+ const F = E(`${v}-head`, x("header")), V = E(`${v}-head-title`, x("title")), ue = E(`${v}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), G("header"));
2871
+ H = /* @__PURE__ */ l.createElement("div", {
2872
+ className: F,
2873
+ style: _e
2874
+ }, /* @__PURE__ */ l.createElement("div", {
2875
+ className: `${v}-head-wrapper`
2876
+ }, d && /* @__PURE__ */ l.createElement("div", {
2877
+ className: V,
2878
+ style: G("title")
2879
+ }, d), s && /* @__PURE__ */ l.createElement("div", {
2880
+ className: ue,
2881
+ style: G("extra")
2882
+ }, s)), Z);
3951
2883
  }
3952
- const q = D(`${m}-cover`, I("cover")), te = S ? /* @__PURE__ */ i.createElement("div", {
3953
- className: q,
3954
- style: j("cover")
3955
- }, S) : null, ie = D(`${m}-body`, I("body")), de = Object.assign(Object.assign({}, c), j("body")), fe = /* @__PURE__ */ i.createElement("div", {
3956
- className: ie,
3957
- style: de
3958
- }, v ? ee : p), Pe = D(`${m}-actions`, I("actions")), H = g != null && g.length ? /* @__PURE__ */ i.createElement(Co, {
3959
- actionClasses: Pe,
3960
- actionStyle: j("actions"),
3961
- actions: g
3962
- }) : null, me = it(E, ["onTabChange"]), De = D(m, $ == null ? void 0 : $.className, {
3963
- [`${m}-loading`]: v,
3964
- [`${m}-bordered`]: d,
3965
- [`${m}-hoverable`]: R,
3966
- [`${m}-contain-grid`]: G,
3967
- [`${m}-contain-tabs`]: x == null ? void 0 : x.length,
3968
- [`${m}-${k}`]: k,
3969
- [`${m}-type-${h}`]: !!h,
3970
- [`${m}-rtl`]: y === "rtl"
3971
- }, n, r, J, F), Xe = Object.assign(Object.assign({}, $ == null ? void 0 : $.style), o);
3972
- return W(/* @__PURE__ */ i.createElement("div", Object.assign({
2884
+ const ne = E(`${v}-cover`, x("cover")), ae = T ? /* @__PURE__ */ l.createElement("div", {
2885
+ className: ne,
2886
+ style: G("cover")
2887
+ }, T) : null, $e = E(`${v}-body`, x("body")), fe = Object.assign(Object.assign({}, c), G("body")), re = /* @__PURE__ */ l.createElement("div", {
2888
+ className: $e,
2889
+ style: fe
2890
+ }, g ? J : y), ye = E(`${v}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(hr, {
2891
+ actionClasses: ye,
2892
+ actionStyle: G("actions"),
2893
+ actions: p
2894
+ }) : null, de = Ve(w, ["onTabChange"]), xe = E(v, h == null ? void 0 : h.className, {
2895
+ [`${v}-loading`]: g,
2896
+ [`${v}-bordered`]: f,
2897
+ [`${v}-hoverable`]: j,
2898
+ [`${v}-contain-grid`]: X,
2899
+ [`${v}-contain-tabs`]: O == null ? void 0 : O.length,
2900
+ [`${v}-${W}`]: W,
2901
+ [`${v}-type-${C}`]: !!C,
2902
+ [`${v}-rtl`]: m === "rtl"
2903
+ }, n, r, se, q), Be = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o);
2904
+ return Y(/* @__PURE__ */ l.createElement("div", Object.assign({
3973
2905
  ref: t
3974
- }, me, {
3975
- className: De,
3976
- style: Xe
3977
- }), K, te, fe, H));
3978
- });
3979
- var So = function(e, t) {
2906
+ }, de, {
2907
+ className: xe,
2908
+ style: Be
2909
+ }), H, ae, re, L));
2910
+ }), yr = $r;
2911
+ var Sr = globalThis && globalThis.__rest || function(e, t) {
3980
2912
  var a = {};
3981
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
3982
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
3983
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2913
+ for (var n in e)
2914
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2915
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2916
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2917
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
3984
2918
  return a;
3985
2919
  };
3986
- const xo = (e) => {
2920
+ const Cr = (e) => {
3987
2921
  const {
3988
2922
  prefixCls: t,
3989
2923
  className: a,
3990
2924
  avatar: n,
3991
2925
  title: r,
3992
2926
  description: o
3993
- } = e, l = So(e, ["prefixCls", "className", "avatar", "title", "description"]), {
3994
- getPrefixCls: s
3995
- } = i.useContext(Ve), c = s("card", t), u = D(`${c}-meta`, a), v = n ? /* @__PURE__ */ i.createElement("div", {
2927
+ } = e, s = Sr(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2928
+ getPrefixCls: i
2929
+ } = l.useContext(be), c = i("card", t), d = E(`${c}-meta`, a), g = n ? /* @__PURE__ */ l.createElement("div", {
3996
2930
  className: `${c}-meta-avatar`
3997
- }, n) : null, d = r ? /* @__PURE__ */ i.createElement("div", {
2931
+ }, n) : null, f = r ? /* @__PURE__ */ l.createElement("div", {
3998
2932
  className: `${c}-meta-title`
3999
- }, r) : null, f = o ? /* @__PURE__ */ i.createElement("div", {
2933
+ }, r) : null, b = o ? /* @__PURE__ */ l.createElement("div", {
4000
2934
  className: `${c}-meta-description`
4001
- }, o) : null, h = d || f ? /* @__PURE__ */ i.createElement("div", {
2935
+ }, o) : null, C = f || b ? /* @__PURE__ */ l.createElement("div", {
4002
2936
  className: `${c}-meta-detail`
4003
- }, d, f) : null;
4004
- return /* @__PURE__ */ i.createElement("div", Object.assign({}, l, {
4005
- className: u
4006
- }), v, h);
4007
- }, cn = $o;
4008
- cn.Grid = Ga;
4009
- cn.Meta = xo;
4010
- process.env.NODE_ENV !== "production" && (cn.displayName = "Card");
4011
- const Ao = fa(cn)`
2937
+ }, f, b) : null;
2938
+ return /* @__PURE__ */ l.createElement("div", Object.assign({}, s, {
2939
+ className: d
2940
+ }), g, C);
2941
+ }, xr = Cr, Ue = yr;
2942
+ Ue.Grid = la;
2943
+ Ue.Meta = xr;
2944
+ process.env.NODE_ENV !== "production" && (Ue.displayName = "Card");
2945
+ const _r = Ue, Ur = Yt(_r)`
4012
2946
  .ant-card-body {
4013
2947
  display: flex;
4014
2948
  flex-direction: column;
@@ -4024,7 +2958,7 @@ const Ao = fa(cn)`
4024
2958
  color: red;
4025
2959
  }
4026
2960
  }
4027
- `, ko = fa(Ja.Title)`
2961
+ `, Yr = Yt(wa.Title)`
4028
2962
  &.ant-typography {
4029
2963
  color: green !important;
4030
2964
  margin-bottom: 14px;
@@ -4033,6 +2967,6 @@ const Ao = fa(cn)`
4033
2967
  }
4034
2968
  `;
4035
2969
  export {
4036
- Ao as Card,
4037
- ko as Headline
2970
+ Ur as Card,
2971
+ Yr as Headline
4038
2972
  };