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