@amateescu/portal-ui-components 0.0.35-beta0 → 0.0.37

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