@gobolt/genesis 0.0.7 → 0.0.9

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