@ck-ui/component-library 0.2.0 → 0.3.0

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 (334) hide show
  1. package/dist/{DropdownFooter-De6BYlLK.js → DropdownFooter-C20yRiDR.js} +28 -21
  2. package/dist/Grow-D08Iq1uH.js +794 -0
  3. package/dist/IconSlot-CFKmSU2_.js +33 -0
  4. package/dist/OptionList-BNaH2PnX.js +951 -0
  5. package/dist/Select-Cw96VEHD.js +6411 -0
  6. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  7. package/dist/assets/DateRangePicker-BKND6jiD.css +1 -0
  8. package/dist/assets/IconSlot-CLpdZgmb.css +1 -0
  9. package/dist/assets/ReactToastify-tlSLHgLC.css +1 -0
  10. package/dist/assets/{ToastContent-DpF5zCks.css → ToastContent-PGkBxPUW.css} +1 -1
  11. package/dist/assets/index-BLz-9Nuk.css +1 -0
  12. package/dist/assets/index-BQ0m7FKV.css +1 -0
  13. package/dist/assets/index-BkNXS5fR.css +1 -0
  14. package/dist/assets/index-BmQOtMhS.css +1 -0
  15. package/dist/assets/index-CiQd_iRw.css +1 -0
  16. package/dist/assets/index-DNhNBxL9.css +1 -0
  17. package/dist/assets/index-DvlnFLG-.css +1 -0
  18. package/dist/assets/index-YHUWVH17.css +1 -0
  19. package/dist/assets/index-_Kh8p9R0.css +1 -0
  20. package/dist/assets/index-nXJu3Pq0.css +1 -0
  21. package/dist/assets/index-rrYSS2rl.css +1 -0
  22. package/dist/assets/{main-3OqLSdPm.css → main-Dv8QUU_o.css} +1 -1
  23. package/dist/assets/styles-BA66-SUu.css +1 -0
  24. package/dist/assets/styles-BTZL03H2.css +1 -0
  25. package/dist/assets/styles-Be-tqCP9.css +1 -0
  26. package/dist/assets/styles-CbbBUzsN.css +1 -0
  27. package/dist/assets/styles-CflOKRvX.css +1 -0
  28. package/dist/assets/{styles-C5uYY4fL.css → styles-Chhklrps.css} +1 -1
  29. package/dist/assets/styles-D8sahtFb.css +1 -0
  30. package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
  31. package/dist/components/CKButton/_helper/IconSlot.js +1 -1
  32. package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
  33. package/dist/components/CKButton/_types/button.types.d.ts +2 -0
  34. package/dist/components/CKButton/_types/button.types.d.ts.map +1 -1
  35. package/dist/components/CKButton/index.d.ts.map +1 -1
  36. package/dist/components/CKButton/index.js +32 -30
  37. package/dist/components/CKCheckbox/_types/type.d.ts +4 -0
  38. package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -1
  39. package/dist/components/CKCheckbox/index.d.ts +1 -1
  40. package/dist/components/CKCheckbox/index.d.ts.map +1 -1
  41. package/dist/components/CKCheckbox/index.js +44 -29
  42. package/dist/components/CKTag/_types/type.d.ts +1 -1
  43. package/dist/components/CKTag/_types/type.d.ts.map +1 -1
  44. package/dist/components/CKTag/index.d.ts +1 -1
  45. package/dist/components/CKTag/index.d.ts.map +1 -1
  46. package/dist/components/CKTag/index.js +33 -24
  47. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +36 -0
  48. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -0
  49. package/dist/components/CostComparatorTable/_helpers/CostCell.js +52 -0
  50. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts +14 -0
  51. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts.map +1 -0
  52. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +19 -0
  53. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +83 -0
  54. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -0
  55. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.js +1 -0
  56. package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts +22 -0
  57. package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts.map +1 -0
  58. package/dist/components/CostComparatorTable/_utils/costComparator.utils.js +50 -0
  59. package/dist/components/CostComparatorTable/index.d.ts +23 -0
  60. package/dist/components/CostComparatorTable/index.d.ts.map +1 -0
  61. package/dist/components/CostComparatorTable/index.js +177 -0
  62. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  63. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  64. package/dist/components/DateRangePicker/DateRangePicker.js +6027 -0
  65. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +41 -0
  66. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -0
  67. package/dist/components/DateRangePicker/_types/dateRangePicker.types.js +1 -0
  68. package/dist/components/DateRangePicker/helper/util.d.ts +26 -0
  69. package/dist/components/DateRangePicker/helper/util.d.ts.map +1 -0
  70. package/dist/components/DateRangePicker/helper/util.js +54 -0
  71. package/dist/components/DeviationTag/index.d.ts.map +1 -1
  72. package/dist/components/DeviationTag/index.js +42 -29
  73. package/dist/components/EmptyState/index.js +7 -7
  74. package/dist/components/FusionChart/_config/builders.d.ts +10 -0
  75. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -0
  76. package/dist/components/FusionChart/_config/builders.js +573 -0
  77. package/dist/components/FusionChart/_config/events.d.ts +7 -0
  78. package/dist/components/FusionChart/_config/events.d.ts.map +1 -0
  79. package/dist/components/FusionChart/_config/events.js +40 -0
  80. package/dist/components/FusionChart/_config/helpers.d.ts +288 -0
  81. package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -0
  82. package/dist/components/FusionChart/_config/helpers.js +452 -0
  83. package/dist/components/FusionChart/_constant/chartTestData.d.ts +33 -0
  84. package/dist/components/FusionChart/_constant/chartTestData.d.ts.map +1 -0
  85. package/dist/components/FusionChart/_constant/chartTestData.js +460 -0
  86. package/dist/components/FusionChart/_constant/constants.d.ts +16 -0
  87. package/dist/components/FusionChart/_constant/constants.d.ts.map +1 -0
  88. package/dist/components/FusionChart/_constant/constants.js +18 -0
  89. package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts +17 -0
  90. package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -0
  91. package/dist/components/FusionChart/_helpers/doughnutHelper.js +57 -0
  92. package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts +8 -0
  93. package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts.map +1 -0
  94. package/dist/components/FusionChart/_helpers/multiAxisHelper.js +21 -0
  95. package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts +8 -0
  96. package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts.map +1 -0
  97. package/dist/components/FusionChart/_helpers/multiLineHelper.js +23 -0
  98. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +128 -0
  99. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -0
  100. package/dist/components/FusionChart/_types/fusionChart.types.js +1 -0
  101. package/dist/components/FusionChart/_utils/chartHelpers.d.ts +45 -0
  102. package/dist/components/FusionChart/_utils/chartHelpers.d.ts.map +1 -0
  103. package/dist/components/FusionChart/_utils/chartHelpers.js +25 -0
  104. package/dist/components/FusionChart/index.d.ts +7 -0
  105. package/dist/components/FusionChart/index.d.ts.map +1 -0
  106. package/dist/components/FusionChart/index.js +1043 -0
  107. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -1
  108. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +20 -11
  109. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts +4 -0
  110. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts.map +1 -0
  111. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +28 -0
  112. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts +2 -9
  113. package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -1
  114. package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +5 -14
  115. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -1
  116. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +21 -14
  117. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -1
  118. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +46 -26
  119. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +1 -1
  120. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -1
  121. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +20 -12
  122. package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -1
  123. package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +33 -30
  124. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
  125. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +41 -32
  126. package/dist/components/GroupedMultiSelect/_types/type.d.ts +23 -16
  127. package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -1
  128. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts +7 -0
  129. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
  130. package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.js +8 -0
  131. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts +1 -1
  132. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -1
  133. package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +2 -2
  134. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +1 -1
  135. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -1
  136. package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +1 -1
  137. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +1 -1
  138. package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -1
  139. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +1 -1
  140. package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -1
  141. package/dist/components/GroupedMultiSelect/index.d.ts +1 -1
  142. package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -1
  143. package/dist/components/GroupedMultiSelect/index.js +122 -112
  144. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -1
  145. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +28 -19
  146. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -1
  147. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +22 -12
  148. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -1
  149. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +35 -24
  150. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -1
  151. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +42 -24
  152. package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -1
  153. package/dist/components/GroupedSingleSelect/index.js +61 -51
  154. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +1 -7
  155. package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -1
  156. package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
  157. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
  158. package/dist/components/MenuOptions/index.d.ts +1 -1
  159. package/dist/components/MenuOptions/index.d.ts.map +1 -1
  160. package/dist/components/MenuOptions/index.js +41 -35
  161. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +27 -27
  162. package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts +4 -0
  163. package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
  164. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +72 -0
  165. package/dist/components/MultiSelect/_helpers/OptionRow.d.ts +4 -0
  166. package/dist/components/MultiSelect/_helpers/OptionRow.d.ts.map +1 -0
  167. package/dist/components/MultiSelect/_helpers/OptionRow.js +40 -0
  168. package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts +4 -0
  169. package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts.map +1 -0
  170. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +7 -0
  171. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts +4 -0
  172. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts.map +1 -0
  173. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +30 -0
  174. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts +4 -0
  175. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -0
  176. package/dist/components/MultiSelect/_helpers/SearchResult.js +33 -0
  177. package/dist/components/MultiSelect/_helpers/TagContent.d.ts +5 -0
  178. package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -0
  179. package/dist/components/MultiSelect/_helpers/TagContent.js +47 -0
  180. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts +4 -0
  181. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
  182. package/dist/components/MultiSelect/_helpers/TriggerButton.js +77 -0
  183. package/dist/components/MultiSelect/_types/type.d.ts +103 -0
  184. package/dist/components/MultiSelect/_types/type.d.ts.map +1 -0
  185. package/dist/components/MultiSelect/_types/type.js +1 -0
  186. package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts +9 -0
  187. package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
  188. package/dist/components/MultiSelect/_utils/computeApplyDisabled.js +9 -0
  189. package/dist/components/MultiSelect/_utils/filterOptions.d.ts +6 -0
  190. package/dist/components/MultiSelect/_utils/filterOptions.d.ts.map +1 -0
  191. package/dist/components/MultiSelect/_utils/filterOptions.js +7 -0
  192. package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts +6 -0
  193. package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts.map +1 -0
  194. package/dist/components/MultiSelect/_utils/getInitialSelected.js +6 -0
  195. package/dist/components/MultiSelect/index.d.ts +4 -0
  196. package/dist/components/MultiSelect/index.d.ts.map +1 -0
  197. package/dist/components/MultiSelect/index.js +232 -0
  198. package/dist/components/Pagination/_types/pagination.types.d.ts +21 -0
  199. package/dist/components/Pagination/_types/pagination.types.d.ts.map +1 -0
  200. package/dist/components/Pagination/_types/pagination.types.js +1 -0
  201. package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts +5 -0
  202. package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts.map +1 -0
  203. package/dist/components/Pagination/_utils/computePageSizeOptions.js +10 -0
  204. package/dist/components/Pagination/_utils/generatePageNumbers.d.ts +4 -0
  205. package/dist/components/Pagination/_utils/generatePageNumbers.d.ts.map +1 -0
  206. package/dist/components/Pagination/_utils/generatePageNumbers.js +18 -0
  207. package/dist/components/Pagination/index.d.ts +6 -0
  208. package/dist/components/Pagination/index.d.ts.map +1 -0
  209. package/dist/components/Pagination/index.js +164 -0
  210. package/dist/components/Popover/_types/popover.types.d.ts +13 -0
  211. package/dist/components/Popover/_types/popover.types.d.ts.map +1 -0
  212. package/dist/components/Popover/_types/popover.types.js +1 -0
  213. package/dist/components/Popover/index.d.ts +4 -0
  214. package/dist/components/Popover/index.d.ts.map +1 -0
  215. package/dist/components/Popover/index.js +91 -0
  216. package/dist/components/PopupAndDialogBox/components/DialogContent.js +1 -1
  217. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
  218. package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
  219. package/dist/components/PopupAndDialogBox/index.js +1 -1
  220. package/dist/components/ProgressBar/_types/progressBar.types.d.ts +34 -0
  221. package/dist/components/ProgressBar/_types/progressBar.types.d.ts.map +1 -0
  222. package/dist/components/ProgressBar/_types/progressBar.types.js +1 -0
  223. package/dist/components/ProgressBar/index.d.ts +3 -0
  224. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  225. package/dist/components/ProgressBar/index.js +48 -0
  226. package/dist/components/RadioButton/index.js +24 -24
  227. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +15 -0
  228. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -0
  229. package/dist/components/RadioGroup/_types/radioGroup.types.js +1 -0
  230. package/dist/components/RadioGroup/index.d.ts +3 -0
  231. package/dist/components/RadioGroup/index.d.ts.map +1 -0
  232. package/dist/components/RadioGroup/index.js +44 -0
  233. package/dist/components/Search/index.d.ts.map +1 -1
  234. package/dist/components/Search/index.js +64 -54
  235. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +11 -4
  236. package/dist/components/SingleSelectDropdown/index.js +43 -36
  237. package/dist/components/Switch/index.js +3 -3
  238. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +4 -0
  239. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -0
  240. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +85 -0
  241. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +4 -0
  242. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -0
  243. package/dist/components/Table/_helpers/ColumnManager/index.js +2451 -0
  244. package/dist/components/Table/_helpers/ExpandableRow/index.d.ts +16 -0
  245. package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -0
  246. package/dist/components/Table/_helpers/ExpandableRow/index.js +44 -0
  247. package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts +14 -0
  248. package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts.map +1 -0
  249. package/dist/components/Table/_helpers/FilterColumnToolbar.js +121 -0
  250. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +24 -0
  251. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -0
  252. package/dist/components/Table/_helpers/GroupedHeader/index.js +201 -0
  253. package/dist/components/Table/_helpers/SelectionCell/index.d.ts +19 -0
  254. package/dist/components/Table/_helpers/SelectionCell/index.d.ts.map +1 -0
  255. package/dist/components/Table/_helpers/SelectionCell/index.js +50 -0
  256. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts +3 -0
  257. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -0
  258. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +11 -0
  259. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts +3 -0
  260. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts.map +1 -0
  261. package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.js +75 -0
  262. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts +3 -0
  263. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -0
  264. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +1544 -0
  265. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts +4 -0
  266. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -0
  267. package/dist/components/Table/_helpers/TableFilterModal/index.js +115 -0
  268. package/dist/components/Table/_helpers/TableRows.d.ts +3 -0
  269. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -0
  270. package/dist/components/Table/_helpers/TableRows.js +403 -0
  271. package/dist/components/Table/_hooks/useExpansion.d.ts +20 -0
  272. package/dist/components/Table/_hooks/useExpansion.d.ts.map +1 -0
  273. package/dist/components/Table/_hooks/useExpansion.js +46 -0
  274. package/dist/components/Table/_hooks/useFilterColumnState.d.ts +17 -0
  275. package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -0
  276. package/dist/components/Table/_hooks/useFilterColumnState.js +94 -0
  277. package/dist/components/Table/_hooks/useSelection.d.ts +12 -0
  278. package/dist/components/Table/_hooks/useSelection.d.ts.map +1 -0
  279. package/dist/components/Table/_hooks/useSelection.js +45 -0
  280. package/dist/components/Table/_types/table.types.d.ts +280 -0
  281. package/dist/components/Table/_types/table.types.d.ts.map +1 -0
  282. package/dist/components/Table/_types/table.types.js +1 -0
  283. package/dist/components/Table/_utils/formatCellValue.d.ts +13 -0
  284. package/dist/components/Table/_utils/formatCellValue.d.ts.map +1 -0
  285. package/dist/components/Table/_utils/formatCellValue.js +17 -0
  286. package/dist/components/Table/_utils/table.utils.d.ts +7 -0
  287. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -0
  288. package/dist/components/Table/_utils/table.utils.js +37 -0
  289. package/dist/components/Table/constants.d.ts +6 -0
  290. package/dist/components/Table/constants.d.ts.map +1 -0
  291. package/dist/components/Table/constants.js +13 -0
  292. package/dist/components/Table/index.d.ts +4 -0
  293. package/dist/components/Table/index.d.ts.map +1 -0
  294. package/dist/components/Table/index.js +518 -0
  295. package/dist/components/TextField/index.js +685 -6956
  296. package/dist/components/Toast/_helper/ToastContent.js +25 -25
  297. package/dist/components/Toast/_helper/ToastProvider.js +9 -9
  298. package/dist/components/Toast/_hooks/useToast.js +1 -1
  299. package/dist/components/Tooltip/index.js +699 -781
  300. package/dist/components/Typography/_types/typography.types.d.ts +28 -0
  301. package/dist/components/Typography/_types/typography.types.d.ts.map +1 -0
  302. package/dist/components/Typography/_types/typography.types.js +1 -0
  303. package/dist/components/Typography/index.d.ts +3 -0
  304. package/dist/components/Typography/index.d.ts.map +1 -0
  305. package/dist/components/Typography/index.js +45 -0
  306. package/dist/contains-kLLEGdNH.js +41 -0
  307. package/dist/index-C8cPPHJD.js +1196 -0
  308. package/dist/index-f7TB87Mf.js +1846 -0
  309. package/dist/isFocusVisible-BzX3wEi7.js +12 -0
  310. package/dist/main.d.ts +12 -0
  311. package/dist/main.d.ts.map +1 -1
  312. package/dist/main.js +110 -88
  313. package/dist/reset-icon-YxMt3Ozp.js +5 -0
  314. package/dist/search-B_cup-NN.js +5 -0
  315. package/dist/styles.module-BZaUJMlf.js +14 -0
  316. package/dist/styles.module-CCyijXTv.js +16 -0
  317. package/dist/styles.module-CmWIIYpK.js +41 -0
  318. package/dist/styles.module-ZyeVE7KZ.js +39 -0
  319. package/dist/table-filter-C0zetUfo.js +6 -0
  320. package/dist/useSlot-ylt7_lTY.js +4698 -0
  321. package/package.json +17 -3
  322. package/dist/Grow-Bsrwqfek.js +0 -5468
  323. package/dist/IconSlot-CbpGCbaA.js +0 -32
  324. package/dist/assets/IconSlot-Ct_SZh2X.css +0 -1
  325. package/dist/assets/ReactToastify-GNLSjkBZ.css +0 -1
  326. package/dist/assets/index-0R9p-l95.css +0 -1
  327. package/dist/assets/index-BbJZjGLb.css +0 -1
  328. package/dist/assets/index-Bu-eyi44.css +0 -1
  329. package/dist/assets/index-DAtOlGx5.css +0 -1
  330. package/dist/assets/index-fvceox3b.css +0 -1
  331. package/dist/assets/styles-CGTFG68B.css +0 -1
  332. package/dist/index-BR6M9zUI.js +0 -382
  333. package/dist/styles.module-BpAF4ufQ.js +0 -38
  334. package/dist/styles.module-yNDMDNO-.js +0 -14
@@ -0,0 +1,1043 @@
1
+ import { jsxs as Ne, jsx as $ } from "react/jsx-runtime";
2
+ import Je, { useState as de, useRef as Qe, useCallback as he, useMemo as ge, useEffect as ve } from "react";
3
+ import { g as Ge } from "../../_commonjsHelpers-C6fGbg64.js";
4
+ import { buildChartConfig as Xe } from "./_config/builders.js";
5
+ import { getOnRender as ze, getChartEvents as Ze } from "./_config/events.js";
6
+ import { EXTENDED_PALETTE as ee, STACKED_AREA_PALETTE as Fe } from "./_constant/constants.js";
7
+ import { mergeClasses as xe } from "../../utils/mergeClasses.js";
8
+ import '../../assets/index-BQ0m7FKV.css';var ae = {}, ie = {}, N = {}, pe;
9
+ function Ye() {
10
+ return pe || (pe = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.default = "ffffffff-ffff-ffff-ffff-ffffffffffff"), N;
11
+ }
12
+ var F = {}, me;
13
+ function Be() {
14
+ return me || (me = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.default = "00000000-0000-0000-0000-000000000000"), F;
15
+ }
16
+ var x = {}, H = {}, W = {}, ye;
17
+ function et() {
18
+ return ye || (ye = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i), W;
19
+ }
20
+ var _e;
21
+ function re() {
22
+ if (_e) return H;
23
+ _e = 1, Object.defineProperty(H, "__esModule", { value: !0 });
24
+ const r = et();
25
+ function l(p) {
26
+ return typeof p == "string" && r.default.test(p);
27
+ }
28
+ return H.default = l, H;
29
+ }
30
+ var be;
31
+ function ne() {
32
+ if (be) return x;
33
+ be = 1, Object.defineProperty(x, "__esModule", { value: !0 });
34
+ const r = re();
35
+ function l(p) {
36
+ if (!(0, r.default)(p))
37
+ throw TypeError("Invalid UUID");
38
+ let g;
39
+ return Uint8Array.of((g = parseInt(p.slice(0, 8), 16)) >>> 24, g >>> 16 & 255, g >>> 8 & 255, g & 255, (g = parseInt(p.slice(9, 13), 16)) >>> 8, g & 255, (g = parseInt(p.slice(14, 18), 16)) >>> 8, g & 255, (g = parseInt(p.slice(19, 23), 16)) >>> 8, g & 255, (g = parseInt(p.slice(24, 36), 16)) / 1099511627776 & 255, g / 4294967296 & 255, g >>> 24 & 255, g >>> 16 & 255, g >>> 8 & 255, g & 255);
40
+ }
41
+ return x.default = l, x;
42
+ }
43
+ var q = {}, Oe;
44
+ function P() {
45
+ if (Oe) return q;
46
+ Oe = 1, Object.defineProperty(q, "__esModule", { value: !0 }), q.unsafeStringify = void 0;
47
+ const r = re(), l = [];
48
+ for (let e = 0; e < 256; ++e)
49
+ l.push((e + 256).toString(16).slice(1));
50
+ function p(e, i = 0) {
51
+ return (l[e[i + 0]] + l[e[i + 1]] + l[e[i + 2]] + l[e[i + 3]] + "-" + l[e[i + 4]] + l[e[i + 5]] + "-" + l[e[i + 6]] + l[e[i + 7]] + "-" + l[e[i + 8]] + l[e[i + 9]] + "-" + l[e[i + 10]] + l[e[i + 11]] + l[e[i + 12]] + l[e[i + 13]] + l[e[i + 14]] + l[e[i + 15]]).toLowerCase();
52
+ }
53
+ q.unsafeStringify = p;
54
+ function g(e, i = 0) {
55
+ const a = p(e, i);
56
+ if (!(0, r.default)(a))
57
+ throw TypeError("Stringified UUID is invalid");
58
+ return a;
59
+ }
60
+ return q.default = g, q;
61
+ }
62
+ var V = {}, K = {}, Ce;
63
+ function ce() {
64
+ if (Ce) return K;
65
+ Ce = 1, Object.defineProperty(K, "__esModule", { value: !0 });
66
+ let r;
67
+ const l = new Uint8Array(16);
68
+ function p() {
69
+ if (!r) {
70
+ if (typeof crypto > "u" || !crypto.getRandomValues)
71
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
72
+ r = crypto.getRandomValues.bind(crypto);
73
+ }
74
+ return r(l);
75
+ }
76
+ return K.default = p, K;
77
+ }
78
+ var je;
79
+ function He() {
80
+ if (je) return V;
81
+ je = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.updateV1State = void 0;
82
+ const r = ce(), l = P(), p = {};
83
+ function g(a, y, u) {
84
+ let f;
85
+ const v = a?._v6 ?? !1;
86
+ if (a) {
87
+ const C = Object.keys(a);
88
+ C.length === 1 && C[0] === "_v6" && (a = void 0);
89
+ }
90
+ if (a)
91
+ f = i(a.random ?? a.rng?.() ?? (0, r.default)(), a.msecs, a.nsecs, a.clockseq, a.node, y, u);
92
+ else {
93
+ const C = Date.now(), t = (0, r.default)();
94
+ e(p, C, t), f = i(t, p.msecs, p.nsecs, v ? void 0 : p.clockseq, v ? void 0 : p.node, y, u);
95
+ }
96
+ return y ?? (0, l.unsafeStringify)(f);
97
+ }
98
+ function e(a, y, u) {
99
+ return a.msecs ??= -1 / 0, a.nsecs ??= 0, y === a.msecs ? (a.nsecs++, a.nsecs >= 1e4 && (a.node = void 0, a.nsecs = 0)) : y > a.msecs ? a.nsecs = 0 : y < a.msecs && (a.node = void 0), a.node || (a.node = u.slice(10, 16), a.node[0] |= 1, a.clockseq = (u[8] << 8 | u[9]) & 16383), a.msecs = y, a;
100
+ }
101
+ V.updateV1State = e;
102
+ function i(a, y, u, f, v, C, t = 0) {
103
+ if (a.length < 16)
104
+ throw new Error("Random bytes length must be >= 16");
105
+ if (!C)
106
+ C = new Uint8Array(16), t = 0;
107
+ else if (t < 0 || t + 16 > C.length)
108
+ throw new RangeError(`UUID byte range ${t}:${t + 15} is out of buffer bounds`);
109
+ y ??= Date.now(), u ??= 0, f ??= (a[8] << 8 | a[9]) & 16383, v ??= a.slice(10, 16), y += 122192928e5;
110
+ const j = ((y & 268435455) * 1e4 + u) % 4294967296;
111
+ C[t++] = j >>> 24 & 255, C[t++] = j >>> 16 & 255, C[t++] = j >>> 8 & 255, C[t++] = j & 255;
112
+ const A = y / 4294967296 * 1e4 & 268435455;
113
+ C[t++] = A >>> 8 & 255, C[t++] = A & 255, C[t++] = A >>> 24 & 15 | 16, C[t++] = A >>> 16 & 255, C[t++] = f >>> 8 | 128, C[t++] = f & 255;
114
+ for (let s = 0; s < 6; ++s)
115
+ C[t++] = v[s];
116
+ return C;
117
+ }
118
+ return V.default = g, V;
119
+ }
120
+ var J = {}, Se;
121
+ function We() {
122
+ if (Se) return J;
123
+ Se = 1, Object.defineProperty(J, "__esModule", { value: !0 });
124
+ const r = ne(), l = P();
125
+ function p(e) {
126
+ const i = typeof e == "string" ? (0, r.default)(e) : e, a = g(i);
127
+ return typeof e == "string" ? (0, l.unsafeStringify)(a) : a;
128
+ }
129
+ J.default = p;
130
+ function g(e) {
131
+ return Uint8Array.of((e[6] & 15) << 4 | e[7] >> 4 & 15, (e[7] & 15) << 4 | (e[4] & 240) >> 4, (e[4] & 15) << 4 | (e[5] & 240) >> 4, (e[5] & 15) << 4 | (e[0] & 240) >> 4, (e[0] & 15) << 4 | (e[1] & 240) >> 4, (e[1] & 15) << 4 | (e[2] & 240) >> 4, 96 | e[2] & 15, e[3], e[8], e[9], e[10], e[11], e[12], e[13], e[14], e[15]);
132
+ }
133
+ return J;
134
+ }
135
+ var oe = {}, Q = {}, Ae;
136
+ function tt() {
137
+ if (Ae) return Q;
138
+ Ae = 1, Object.defineProperty(Q, "__esModule", { value: !0 });
139
+ function r(t) {
140
+ const j = e(t), A = g(j, t.length * 8);
141
+ return l(A);
142
+ }
143
+ function l(t) {
144
+ const j = new Uint8Array(t.length * 4);
145
+ for (let A = 0; A < t.length * 4; A++)
146
+ j[A] = t[A >> 2] >>> A % 4 * 8 & 255;
147
+ return j;
148
+ }
149
+ function p(t) {
150
+ return (t + 64 >>> 9 << 4) + 14 + 1;
151
+ }
152
+ function g(t, j) {
153
+ const A = new Uint32Array(p(j)).fill(0);
154
+ A.set(t), A[j >> 5] |= 128 << j % 32, A[A.length - 1] = j, t = A;
155
+ let s = 1732584193, o = -271733879, n = -1732584194, c = 271733878;
156
+ for (let m = 0; m < t.length; m += 16) {
157
+ const D = s, _ = o, b = n, w = c;
158
+ s = u(s, o, n, c, t[m], 7, -680876936), c = u(c, s, o, n, t[m + 1], 12, -389564586), n = u(n, c, s, o, t[m + 2], 17, 606105819), o = u(o, n, c, s, t[m + 3], 22, -1044525330), s = u(s, o, n, c, t[m + 4], 7, -176418897), c = u(c, s, o, n, t[m + 5], 12, 1200080426), n = u(n, c, s, o, t[m + 6], 17, -1473231341), o = u(o, n, c, s, t[m + 7], 22, -45705983), s = u(s, o, n, c, t[m + 8], 7, 1770035416), c = u(c, s, o, n, t[m + 9], 12, -1958414417), n = u(n, c, s, o, t[m + 10], 17, -42063), o = u(o, n, c, s, t[m + 11], 22, -1990404162), s = u(s, o, n, c, t[m + 12], 7, 1804603682), c = u(c, s, o, n, t[m + 13], 12, -40341101), n = u(n, c, s, o, t[m + 14], 17, -1502002290), o = u(o, n, c, s, t[m + 15], 22, 1236535329), s = f(s, o, n, c, t[m + 1], 5, -165796510), c = f(c, s, o, n, t[m + 6], 9, -1069501632), n = f(n, c, s, o, t[m + 11], 14, 643717713), o = f(o, n, c, s, t[m], 20, -373897302), s = f(s, o, n, c, t[m + 5], 5, -701558691), c = f(c, s, o, n, t[m + 10], 9, 38016083), n = f(n, c, s, o, t[m + 15], 14, -660478335), o = f(o, n, c, s, t[m + 4], 20, -405537848), s = f(s, o, n, c, t[m + 9], 5, 568446438), c = f(c, s, o, n, t[m + 14], 9, -1019803690), n = f(n, c, s, o, t[m + 3], 14, -187363961), o = f(o, n, c, s, t[m + 8], 20, 1163531501), s = f(s, o, n, c, t[m + 13], 5, -1444681467), c = f(c, s, o, n, t[m + 2], 9, -51403784), n = f(n, c, s, o, t[m + 7], 14, 1735328473), o = f(o, n, c, s, t[m + 12], 20, -1926607734), s = v(s, o, n, c, t[m + 5], 4, -378558), c = v(c, s, o, n, t[m + 8], 11, -2022574463), n = v(n, c, s, o, t[m + 11], 16, 1839030562), o = v(o, n, c, s, t[m + 14], 23, -35309556), s = v(s, o, n, c, t[m + 1], 4, -1530992060), c = v(c, s, o, n, t[m + 4], 11, 1272893353), n = v(n, c, s, o, t[m + 7], 16, -155497632), o = v(o, n, c, s, t[m + 10], 23, -1094730640), s = v(s, o, n, c, t[m + 13], 4, 681279174), c = v(c, s, o, n, t[m], 11, -358537222), n = v(n, c, s, o, t[m + 3], 16, -722521979), o = v(o, n, c, s, t[m + 6], 23, 76029189), s = v(s, o, n, c, t[m + 9], 4, -640364487), c = v(c, s, o, n, t[m + 12], 11, -421815835), n = v(n, c, s, o, t[m + 15], 16, 530742520), o = v(o, n, c, s, t[m + 2], 23, -995338651), s = C(s, o, n, c, t[m], 6, -198630844), c = C(c, s, o, n, t[m + 7], 10, 1126891415), n = C(n, c, s, o, t[m + 14], 15, -1416354905), o = C(o, n, c, s, t[m + 5], 21, -57434055), s = C(s, o, n, c, t[m + 12], 6, 1700485571), c = C(c, s, o, n, t[m + 3], 10, -1894986606), n = C(n, c, s, o, t[m + 10], 15, -1051523), o = C(o, n, c, s, t[m + 1], 21, -2054922799), s = C(s, o, n, c, t[m + 8], 6, 1873313359), c = C(c, s, o, n, t[m + 15], 10, -30611744), n = C(n, c, s, o, t[m + 6], 15, -1560198380), o = C(o, n, c, s, t[m + 13], 21, 1309151649), s = C(s, o, n, c, t[m + 4], 6, -145523070), c = C(c, s, o, n, t[m + 11], 10, -1120210379), n = C(n, c, s, o, t[m + 2], 15, 718787259), o = C(o, n, c, s, t[m + 9], 21, -343485551), s = i(s, D), o = i(o, _), n = i(n, b), c = i(c, w);
159
+ }
160
+ return Uint32Array.of(s, o, n, c);
161
+ }
162
+ function e(t) {
163
+ if (t.length === 0)
164
+ return new Uint32Array();
165
+ const j = new Uint32Array(p(t.length * 8)).fill(0);
166
+ for (let A = 0; A < t.length; A++)
167
+ j[A >> 2] |= (t[A] & 255) << A % 4 * 8;
168
+ return j;
169
+ }
170
+ function i(t, j) {
171
+ const A = (t & 65535) + (j & 65535);
172
+ return (t >> 16) + (j >> 16) + (A >> 16) << 16 | A & 65535;
173
+ }
174
+ function a(t, j) {
175
+ return t << j | t >>> 32 - j;
176
+ }
177
+ function y(t, j, A, s, o, n) {
178
+ return i(a(i(i(j, t), i(s, n)), o), A);
179
+ }
180
+ function u(t, j, A, s, o, n, c) {
181
+ return y(j & A | ~j & s, t, j, o, n, c);
182
+ }
183
+ function f(t, j, A, s, o, n, c) {
184
+ return y(j & s | A & ~s, t, j, o, n, c);
185
+ }
186
+ function v(t, j, A, s, o, n, c) {
187
+ return y(j ^ A ^ s, t, j, o, n, c);
188
+ }
189
+ function C(t, j, A, s, o, n, c) {
190
+ return y(A ^ (j | ~s), t, j, o, n, c);
191
+ }
192
+ return Q.default = r, Q;
193
+ }
194
+ var E = {}, we;
195
+ function te() {
196
+ if (we) return E;
197
+ we = 1, Object.defineProperty(E, "__esModule", { value: !0 }), E.URL = E.DNS = E.stringToBytes = void 0;
198
+ const r = ne(), l = P();
199
+ function p(e) {
200
+ e = unescape(encodeURIComponent(e));
201
+ const i = new Uint8Array(e.length);
202
+ for (let a = 0; a < e.length; ++a)
203
+ i[a] = e.charCodeAt(a);
204
+ return i;
205
+ }
206
+ E.stringToBytes = p, E.DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", E.URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
207
+ function g(e, i, a, y, u, f) {
208
+ const v = typeof a == "string" ? p(a) : a, C = typeof y == "string" ? (0, r.default)(y) : y;
209
+ if (typeof y == "string" && (y = (0, r.default)(y)), y?.length !== 16)
210
+ throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
211
+ let t = new Uint8Array(16 + v.length);
212
+ if (t.set(C), t.set(v, C.length), t = i(t), t[6] = t[6] & 15 | e, t[8] = t[8] & 63 | 128, u) {
213
+ if (f = f || 0, f < 0 || f + 16 > u.length)
214
+ throw new RangeError(`UUID byte range ${f}:${f + 15} is out of buffer bounds`);
215
+ for (let j = 0; j < 16; ++j)
216
+ u[f + j] = t[j];
217
+ return u;
218
+ }
219
+ return (0, l.unsafeStringify)(t);
220
+ }
221
+ return E.default = g, E;
222
+ }
223
+ var Re;
224
+ function rt() {
225
+ return Re || (Re = 1, (function(r) {
226
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.URL = r.DNS = void 0;
227
+ const l = tt(), p = te();
228
+ var g = te();
229
+ Object.defineProperty(r, "DNS", { enumerable: !0, get: function() {
230
+ return g.DNS;
231
+ } }), Object.defineProperty(r, "URL", { enumerable: !0, get: function() {
232
+ return g.URL;
233
+ } });
234
+ function e(i, a, y, u) {
235
+ return (0, p.default)(48, l.default, i, a, y, u);
236
+ }
237
+ e.DNS = p.DNS, e.URL = p.URL, r.default = e;
238
+ })(oe)), oe;
239
+ }
240
+ var G = {}, X = {}, Ue;
241
+ function nt() {
242
+ if (Ue) return X;
243
+ Ue = 1, Object.defineProperty(X, "__esModule", { value: !0 });
244
+ const r = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
245
+ return X.default = { randomUUID: r }, X;
246
+ }
247
+ var Me;
248
+ function at() {
249
+ if (Me) return G;
250
+ Me = 1, Object.defineProperty(G, "__esModule", { value: !0 });
251
+ const r = nt(), l = ce(), p = P();
252
+ function g(e, i, a) {
253
+ if (r.default.randomUUID && !i && !e)
254
+ return r.default.randomUUID();
255
+ e = e || {};
256
+ const y = e.random ?? e.rng?.() ?? (0, l.default)();
257
+ if (y.length < 16)
258
+ throw new Error("Random bytes length must be >= 16");
259
+ if (y[6] = y[6] & 15 | 64, y[8] = y[8] & 63 | 128, i) {
260
+ if (a = a || 0, a < 0 || a + 16 > i.length)
261
+ throw new RangeError(`UUID byte range ${a}:${a + 15} is out of buffer bounds`);
262
+ for (let u = 0; u < 16; ++u)
263
+ i[a + u] = y[u];
264
+ return i;
265
+ }
266
+ return (0, p.unsafeStringify)(y);
267
+ }
268
+ return G.default = g, G;
269
+ }
270
+ var ue = {}, z = {}, ke;
271
+ function it() {
272
+ if (ke) return z;
273
+ ke = 1, Object.defineProperty(z, "__esModule", { value: !0 });
274
+ function r(g, e, i, a) {
275
+ switch (g) {
276
+ case 0:
277
+ return e & i ^ ~e & a;
278
+ case 1:
279
+ return e ^ i ^ a;
280
+ case 2:
281
+ return e & i ^ e & a ^ i & a;
282
+ case 3:
283
+ return e ^ i ^ a;
284
+ }
285
+ }
286
+ function l(g, e) {
287
+ return g << e | g >>> 32 - e;
288
+ }
289
+ function p(g) {
290
+ const e = [1518500249, 1859775393, 2400959708, 3395469782], i = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], a = new Uint8Array(g.length + 1);
291
+ a.set(g), a[g.length] = 128, g = a;
292
+ const y = g.length / 4 + 2, u = Math.ceil(y / 16), f = new Array(u);
293
+ for (let v = 0; v < u; ++v) {
294
+ const C = new Uint32Array(16);
295
+ for (let t = 0; t < 16; ++t)
296
+ C[t] = g[v * 64 + t * 4] << 24 | g[v * 64 + t * 4 + 1] << 16 | g[v * 64 + t * 4 + 2] << 8 | g[v * 64 + t * 4 + 3];
297
+ f[v] = C;
298
+ }
299
+ f[u - 1][14] = (g.length - 1) * 8 / Math.pow(2, 32), f[u - 1][14] = Math.floor(f[u - 1][14]), f[u - 1][15] = (g.length - 1) * 8 & 4294967295;
300
+ for (let v = 0; v < u; ++v) {
301
+ const C = new Uint32Array(80);
302
+ for (let n = 0; n < 16; ++n)
303
+ C[n] = f[v][n];
304
+ for (let n = 16; n < 80; ++n)
305
+ C[n] = l(C[n - 3] ^ C[n - 8] ^ C[n - 14] ^ C[n - 16], 1);
306
+ let t = i[0], j = i[1], A = i[2], s = i[3], o = i[4];
307
+ for (let n = 0; n < 80; ++n) {
308
+ const c = Math.floor(n / 20), m = l(t, 5) + r(c, j, A, s) + o + e[c] + C[n] >>> 0;
309
+ o = s, s = A, A = l(j, 30) >>> 0, j = t, t = m;
310
+ }
311
+ i[0] = i[0] + t >>> 0, i[1] = i[1] + j >>> 0, i[2] = i[2] + A >>> 0, i[3] = i[3] + s >>> 0, i[4] = i[4] + o >>> 0;
312
+ }
313
+ return Uint8Array.of(i[0] >> 24, i[0] >> 16, i[0] >> 8, i[0], i[1] >> 24, i[1] >> 16, i[1] >> 8, i[1], i[2] >> 24, i[2] >> 16, i[2] >> 8, i[2], i[3] >> 24, i[3] >> 16, i[3] >> 8, i[3], i[4] >> 24, i[4] >> 16, i[4] >> 8, i[4]);
314
+ }
315
+ return z.default = p, z;
316
+ }
317
+ var De;
318
+ function ot() {
319
+ return De || (De = 1, (function(r) {
320
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.URL = r.DNS = void 0;
321
+ const l = it(), p = te();
322
+ var g = te();
323
+ Object.defineProperty(r, "DNS", { enumerable: !0, get: function() {
324
+ return g.DNS;
325
+ } }), Object.defineProperty(r, "URL", { enumerable: !0, get: function() {
326
+ return g.URL;
327
+ } });
328
+ function e(i, a, y, u) {
329
+ return (0, p.default)(80, l.default, i, a, y, u);
330
+ }
331
+ e.DNS = p.DNS, e.URL = p.URL, r.default = e;
332
+ })(ue)), ue;
333
+ }
334
+ var Z = {}, Ie;
335
+ function ut() {
336
+ if (Ie) return Z;
337
+ Ie = 1, Object.defineProperty(Z, "__esModule", { value: !0 });
338
+ const r = P(), l = He(), p = We();
339
+ function g(e, i, a) {
340
+ e ??= {}, a ??= 0;
341
+ let y = (0, l.default)({ ...e, _v6: !0 }, new Uint8Array(16));
342
+ if (y = (0, p.default)(y), i) {
343
+ if (a < 0 || a + 16 > i.length)
344
+ throw new RangeError(`UUID byte range ${a}:${a + 15} is out of buffer bounds`);
345
+ for (let u = 0; u < 16; u++)
346
+ i[a + u] = y[u];
347
+ return i;
348
+ }
349
+ return (0, r.unsafeStringify)(y);
350
+ }
351
+ return Z.default = g, Z;
352
+ }
353
+ var Y = {}, Ee;
354
+ function st() {
355
+ if (Ee) return Y;
356
+ Ee = 1, Object.defineProperty(Y, "__esModule", { value: !0 });
357
+ const r = ne(), l = P();
358
+ function p(e) {
359
+ const i = typeof e == "string" ? (0, r.default)(e) : e, a = g(i);
360
+ return typeof e == "string" ? (0, l.unsafeStringify)(a) : a;
361
+ }
362
+ Y.default = p;
363
+ function g(e) {
364
+ return Uint8Array.of((e[3] & 15) << 4 | e[4] >> 4 & 15, (e[4] & 15) << 4 | (e[5] & 240) >> 4, (e[5] & 15) << 4 | e[6] & 15, e[7], (e[1] & 15) << 4 | (e[2] & 240) >> 4, (e[2] & 15) << 4 | (e[3] & 240) >> 4, 16 | (e[0] & 240) >> 4, (e[0] & 15) << 4 | (e[1] & 240) >> 4, e[8], e[9], e[10], e[11], e[12], e[13], e[14], e[15]);
365
+ }
366
+ return Y;
367
+ }
368
+ var L = {}, Te;
369
+ function ct() {
370
+ if (Te) return L;
371
+ Te = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.updateV7State = void 0;
372
+ const r = ce(), l = P(), p = {};
373
+ function g(a, y, u) {
374
+ let f;
375
+ if (a)
376
+ f = i(a.random ?? a.rng?.() ?? (0, r.default)(), a.msecs, a.seq, y, u);
377
+ else {
378
+ const v = Date.now(), C = (0, r.default)();
379
+ e(p, v, C), f = i(C, p.msecs, p.seq, y, u);
380
+ }
381
+ return y ?? (0, l.unsafeStringify)(f);
382
+ }
383
+ function e(a, y, u) {
384
+ return a.msecs ??= -1 / 0, a.seq ??= 0, y > a.msecs ? (a.seq = u[6] << 23 | u[7] << 16 | u[8] << 8 | u[9], a.msecs = y) : (a.seq = a.seq + 1 | 0, a.seq === 0 && a.msecs++), a;
385
+ }
386
+ L.updateV7State = e;
387
+ function i(a, y, u, f, v = 0) {
388
+ if (a.length < 16)
389
+ throw new Error("Random bytes length must be >= 16");
390
+ if (!f)
391
+ f = new Uint8Array(16), v = 0;
392
+ else if (v < 0 || v + 16 > f.length)
393
+ throw new RangeError(`UUID byte range ${v}:${v + 15} is out of buffer bounds`);
394
+ return y ??= Date.now(), u ??= a[6] * 127 << 24 | a[7] << 16 | a[8] << 8 | a[9], f[v++] = y / 1099511627776 & 255, f[v++] = y / 4294967296 & 255, f[v++] = y / 16777216 & 255, f[v++] = y / 65536 & 255, f[v++] = y / 256 & 255, f[v++] = y & 255, f[v++] = 112 | u >>> 28 & 15, f[v++] = u >>> 20 & 255, f[v++] = 128 | u >>> 14 & 63, f[v++] = u >>> 6 & 255, f[v++] = u << 2 & 255 | a[10] & 3, f[v++] = a[11], f[v++] = a[12], f[v++] = a[13], f[v++] = a[14], f[v++] = a[15], f;
395
+ }
396
+ return L.default = g, L;
397
+ }
398
+ var B = {}, Pe;
399
+ function ft() {
400
+ if (Pe) return B;
401
+ Pe = 1, Object.defineProperty(B, "__esModule", { value: !0 });
402
+ const r = re();
403
+ function l(p) {
404
+ if (!(0, r.default)(p))
405
+ throw TypeError("Invalid UUID");
406
+ return parseInt(p.slice(14, 15), 16);
407
+ }
408
+ return B.default = l, B;
409
+ }
410
+ var qe;
411
+ function lt() {
412
+ return qe || (qe = 1, (function(r) {
413
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.version = r.validate = r.v7 = r.v6ToV1 = r.v6 = r.v5 = r.v4 = r.v3 = r.v1ToV6 = r.v1 = r.stringify = r.parse = r.NIL = r.MAX = void 0;
414
+ var l = Ye();
415
+ Object.defineProperty(r, "MAX", { enumerable: !0, get: function() {
416
+ return l.default;
417
+ } });
418
+ var p = Be();
419
+ Object.defineProperty(r, "NIL", { enumerable: !0, get: function() {
420
+ return p.default;
421
+ } });
422
+ var g = ne();
423
+ Object.defineProperty(r, "parse", { enumerable: !0, get: function() {
424
+ return g.default;
425
+ } });
426
+ var e = P();
427
+ Object.defineProperty(r, "stringify", { enumerable: !0, get: function() {
428
+ return e.default;
429
+ } });
430
+ var i = He();
431
+ Object.defineProperty(r, "v1", { enumerable: !0, get: function() {
432
+ return i.default;
433
+ } });
434
+ var a = We();
435
+ Object.defineProperty(r, "v1ToV6", { enumerable: !0, get: function() {
436
+ return a.default;
437
+ } });
438
+ var y = rt();
439
+ Object.defineProperty(r, "v3", { enumerable: !0, get: function() {
440
+ return y.default;
441
+ } });
442
+ var u = at();
443
+ Object.defineProperty(r, "v4", { enumerable: !0, get: function() {
444
+ return u.default;
445
+ } });
446
+ var f = ot();
447
+ Object.defineProperty(r, "v5", { enumerable: !0, get: function() {
448
+ return f.default;
449
+ } });
450
+ var v = ut();
451
+ Object.defineProperty(r, "v6", { enumerable: !0, get: function() {
452
+ return v.default;
453
+ } });
454
+ var C = st();
455
+ Object.defineProperty(r, "v6ToV1", { enumerable: !0, get: function() {
456
+ return C.default;
457
+ } });
458
+ var t = ct();
459
+ Object.defineProperty(r, "v7", { enumerable: !0, get: function() {
460
+ return t.default;
461
+ } });
462
+ var j = re();
463
+ Object.defineProperty(r, "validate", { enumerable: !0, get: function() {
464
+ return j.default;
465
+ } });
466
+ var A = ft();
467
+ Object.defineProperty(r, "version", { enumerable: !0, get: function() {
468
+ return A.default;
469
+ } });
470
+ })(ie)), ie;
471
+ }
472
+ var T = {}, Ve;
473
+ function dt() {
474
+ if (Ve) return T;
475
+ Ve = 1, Object.defineProperty(T, "__esModule", {
476
+ value: !0
477
+ }), T.checkIfDataTableExists = a, T.cloneDataSource = y, T.deepCopyOf = i, T.isCallable = p, T.isObject = l, T.isSameObjectContent = g, T.isUndefined = e;
478
+ function r(u) {
479
+ "@babel/helpers - typeof";
480
+ return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
481
+ return typeof f;
482
+ } : function(f) {
483
+ return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
484
+ }, r(u);
485
+ }
486
+ function l(u) {
487
+ return u !== null && r(u) === "object";
488
+ }
489
+ function p(u) {
490
+ return typeof u == "function";
491
+ }
492
+ function g(u, f) {
493
+ if (Object.keys(u).length !== Object.keys(f).length)
494
+ return !1;
495
+ for (var v = Object.keys(u), C = 0; C < v.length; C += 1) {
496
+ var t = v[C];
497
+ if (l(u[t]) && l(f[t])) {
498
+ if (!g(u[t], f[t]))
499
+ return !1;
500
+ } else if (u[t] !== f[t])
501
+ return !1;
502
+ }
503
+ return !0;
504
+ }
505
+ function e(u) {
506
+ var f = void 0;
507
+ return u === f;
508
+ }
509
+ function i(u) {
510
+ return JSON.parse(JSON.stringify(u));
511
+ }
512
+ function a(u) {
513
+ return !!(u && u.data && u.data._dataStore);
514
+ }
515
+ function y(u) {
516
+ var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "clone", v = r(u);
517
+ if (v === "string" || v === "number" || v === "function" || v === "boolean" || u == null)
518
+ return u;
519
+ if (Array.isArray(u)) {
520
+ for (var C = [], t = 0; t < u.length; t++)
521
+ C.push(this.cloneDataSource(u[t]));
522
+ return C;
523
+ }
524
+ if (r(u) === "object") {
525
+ var j = {};
526
+ for (var A in u) {
527
+ if (A === "data") {
528
+ u[A]._dataStore && f === "clone" ? j[A] = u[A] : u[A]._dataStore && f === "diff" ? j[A] = "-" : j[A] = this.cloneDataSource(u[A]);
529
+ continue;
530
+ }
531
+ j[A] = this.cloneDataSource(u[A]);
532
+ }
533
+ return j;
534
+ }
535
+ }
536
+ return T;
537
+ }
538
+ var se = {}, Le;
539
+ function ht() {
540
+ return Le || (Le = 1, (function(r) {
541
+ Object.defineProperty(r, "__esModule", {
542
+ value: !0
543
+ }), r.default = void 0, r.default = ["type", "id", "width", "height", "dataFormat", "dataSource", "events", "link", "showDataLoadingMessage", "showChartLoadingMessage", "baseChartMessageFont", "baseChartMessageFontSize", "baseChartMessageColor", "dataLoadStartMessage", "dataLoadErrorMessage", "dataInvalidMessage", "dataEmptyMessage", "typeNotSupportedMessage", "loadMessage", "renderErrorMessage", "containerBackgroundColor", "containerBackgroundOpacity", "containerClassName", "baseChartMessageImageHAlign", "baseChartMessageImageVAlign", "baseChartMessageImageAlpha", "baseChartMessageImageScale", "typeNotSupportedMessageImageHAalign", "typeNotSupportedMessageImageVAlign", "typeNotSupportedMessageImageAlpha", "typeNotSupportedMessageImageScale", "dataLoadErrorMessageImageHAlign", "dataLoadErrorMessageImageVAlign", "dataLoadErrorMessageImageAlpha", "dataLoadErrorMessageImageScale", "dataLoadStartMessageImageHAlign", "dataLoadStartMessageImageVAlign", "dataLoadStartMessageImageAlpha", "dataLoadStartMessageImageScale", "dataInvalidMessageImageHAlign", "dataInvalidMessageImageVAlign", "dataInvalidMessageImageAlpha", "dataInvalidMessageImageScale", "dataEmptyMessageImageHAlign", "dataEmptyMessageImageVAlign", "dataEmptyMessageImageAlpha", "dataEmptyMessageImageScale", "renderErrorMessageImageHAlign", "renderErrorMessageImageVAlign", "renderErrorMessageImageAlpha", "renderErrorMessageImageScale", "loadMessageImageHAlign", "loadMessageImageVAlign", "loadMessageImageAlpha", "loadMessageImageScale"];
544
+ })(se)), se;
545
+ }
546
+ var $e;
547
+ function gt() {
548
+ return $e || ($e = 1, (function(r) {
549
+ function l(_) {
550
+ "@babel/helpers - typeof";
551
+ return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
552
+ return typeof b;
553
+ } : function(b) {
554
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
555
+ }, l(_);
556
+ }
557
+ Object.defineProperty(r, "__esModule", {
558
+ value: !0
559
+ }), r.default = void 0;
560
+ var p = y(Je), g = /* @__PURE__ */ lt(), e = a(dt()), i = y(ht());
561
+ function a(_, b) {
562
+ if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
563
+ return (a = function(h, S) {
564
+ if (!S && h && h.__esModule) return h;
565
+ var R, U, k = { __proto__: null, default: h };
566
+ if (h === null || l(h) != "object" && typeof h != "function") return k;
567
+ if (R = S ? d : w) {
568
+ if (R.has(h)) return R.get(h);
569
+ R.set(h, k);
570
+ }
571
+ for (var M in h) M !== "default" && {}.hasOwnProperty.call(h, M) && ((U = (R = Object.defineProperty) && Object.getOwnPropertyDescriptor(h, M)) && (U.get || U.set) ? R(k, M, U) : k[M] = h[M]);
572
+ return k;
573
+ })(_, b);
574
+ }
575
+ function y(_) {
576
+ return _ && _.__esModule ? _ : { default: _ };
577
+ }
578
+ function u(_, b) {
579
+ if (!(_ instanceof b)) throw new TypeError("Cannot call a class as a function");
580
+ }
581
+ function f(_, b) {
582
+ for (var w = 0; w < b.length; w++) {
583
+ var d = b[w];
584
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(_, C(d.key), d);
585
+ }
586
+ }
587
+ function v(_, b, w) {
588
+ return b && f(_.prototype, b), w && f(_, w), Object.defineProperty(_, "prototype", { writable: !1 }), _;
589
+ }
590
+ function C(_) {
591
+ var b = t(_, "string");
592
+ return l(b) == "symbol" ? b : b + "";
593
+ }
594
+ function t(_, b) {
595
+ if (l(_) != "object" || !_) return _;
596
+ var w = _[Symbol.toPrimitive];
597
+ if (w !== void 0) {
598
+ var d = w.call(_, b);
599
+ if (l(d) != "object") return d;
600
+ throw new TypeError("@@toPrimitive must return a primitive value.");
601
+ }
602
+ return String(_);
603
+ }
604
+ function j(_, b, w) {
605
+ return b = n(b), A(_, o() ? Reflect.construct(b, w || [], n(_).constructor) : b.apply(_, w));
606
+ }
607
+ function A(_, b) {
608
+ if (b && (l(b) == "object" || typeof b == "function")) return b;
609
+ if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
610
+ return s(_);
611
+ }
612
+ function s(_) {
613
+ if (_ === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
614
+ return _;
615
+ }
616
+ function o() {
617
+ try {
618
+ var _ = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
619
+ }));
620
+ } catch {
621
+ }
622
+ return (o = function() {
623
+ return !!_;
624
+ })();
625
+ }
626
+ function n(_) {
627
+ return n = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(b) {
628
+ return b.__proto__ || Object.getPrototypeOf(b);
629
+ }, n(_);
630
+ }
631
+ function c(_, b) {
632
+ if (typeof b != "function" && b !== null) throw new TypeError("Super expression must either be null or a function");
633
+ _.prototype = Object.create(b && b.prototype, { constructor: { value: _, writable: !0, configurable: !0 } }), Object.defineProperty(_, "prototype", { writable: !1 }), b && m(_, b);
634
+ }
635
+ function m(_, b) {
636
+ return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(w, d) {
637
+ return w.__proto__ = d, w;
638
+ }, m(_, b);
639
+ }
640
+ var D = /* @__PURE__ */ (function(_) {
641
+ function b(w) {
642
+ var d;
643
+ return u(this, b), d = j(this, b, [w]), d.initialUnmount = !1, d.containerRef = /* @__PURE__ */ p.default.createRef(), d.containerId = (0, g.v4)(), d.oldOptions = null, d.FusionCharts = w.fcLibrary || b.fusionChartsCore || window.FusionCharts, d;
644
+ }
645
+ return c(b, _), v(b, [{
646
+ key: "componentDidMount",
647
+ value: function() {
648
+ this.renderChart();
649
+ }
650
+ }, {
651
+ key: "componentDidUpdate",
652
+ value: function(d) {
653
+ d !== this.props && this.detectChanges(this.props);
654
+ }
655
+ }, {
656
+ key: "componentWillUnmount",
657
+ value: function() {
658
+ if (this.initialUnmount)
659
+ this.chartObj.dispose();
660
+ else {
661
+ var d;
662
+ this.initialUnmount = !0;
663
+ var O = (d = this.props.type) === null || d === void 0 ? void 0 : d.toLowerCase().includes("map");
664
+ O || this.chartObj.dispose();
665
+ }
666
+ }
667
+ }, {
668
+ key: "detectChanges",
669
+ value: function(d) {
670
+ var O = this.resolveChartOptions(d), h = this.oldOptions, S = ["width", "height", "type", "dataFormat", "dataSource", "events"];
671
+ this.checkAndUpdateChartDimensions(O, h), this.checkAndUpdateChartType(O, h), this.checkAndUpdateChartData(O, h), this.checkAndUpdateEvents(O, h), this.checkAndUpdateRestOptions(i.default.filter(function(R) {
672
+ return S.indexOf(R) === -1;
673
+ }), O, h), this.oldOptions = O;
674
+ }
675
+ }, {
676
+ key: "checkAndUpdateChartDimensions",
677
+ value: function(d, O) {
678
+ var h = d.width, S = d.height, R = O.width, U = O.height;
679
+ (String(h) !== String(R) || String(S) !== String(U)) && (!e.isUndefined(h) && !e.isUndefined(S) ? this.chartObj.resizeTo(h, S) : (e.isUndefined(h) || this.chartObj.resizeTo({
680
+ w: h
681
+ }), e.isUndefined(S) || this.chartObj.resizeTo({
682
+ h: S
683
+ })));
684
+ }
685
+ }, {
686
+ key: "checkAndUpdateChartType",
687
+ value: function(d, O) {
688
+ var h = d.type, S = O.type;
689
+ String(h).toLowerCase() !== String(S).toLowerCase() && (e.isUndefined(h) || this.chartObj.chartType(String(h).toLowerCase()));
690
+ }
691
+ }, {
692
+ key: "checkAndUpdateChartData",
693
+ value: function(d, O) {
694
+ var h = d.dataFormat, S = d.dataSource, R = O.dataFormat, U = O.dataSource;
695
+ if (String(h).toLowerCase() !== String(R).toLowerCase() && !e.isUndefined(h) && !e.isUndefined(S)) {
696
+ this.chartObj.setChartData(S, String(h).toLowerCase()), this.chartObj.render();
697
+ return;
698
+ }
699
+ this.isSameChartData(S, U) || e.isUndefined(S) || this.chartObj.setChartData(
700
+ S,
701
+ // When dataFormat is not given, but data is changed,
702
+ // then use 'json' as default dataFormat
703
+ h ? String(h).toLowerCase() : "json"
704
+ );
705
+ }
706
+ }, {
707
+ key: "isSameChartData",
708
+ value: function(d, O) {
709
+ if (e.checkIfDataTableExists(d) && !e.checkIfDataTableExists(O) || !e.checkIfDataTableExists(d) && e.checkIfDataTableExists(O) || e.checkIfDataTableExists(d) && e.checkIfDataTableExists(O) && d.data !== O.data)
710
+ return !1;
711
+ var h = JSON.stringify(e.cloneDataSource(O, "diff")), S = JSON.stringify(e.cloneDataSource(d, "diff"));
712
+ return h === S;
713
+ }
714
+ }, {
715
+ key: "checkAndUpdateEvents",
716
+ value: function(d, O) {
717
+ var h = this, S = d.events, R = O.events, U, k;
718
+ this.detectChartEventsChange(S, R) && (e.isUndefined(S) || (U = Object.assign({}, S), k = e.isUndefined(R) ? {} : Object.assign({}, R), Object.keys(k).forEach(function(M) {
719
+ k[M] === U[M] ? U[M] = void 0 : h.chartObj.removeEventListener(M, k[M]);
720
+ }), Object.keys(U).forEach(function(M) {
721
+ U[M] && h.chartObj.addEventListener(M, U[M]);
722
+ })));
723
+ }
724
+ }, {
725
+ key: "detectChartEventsChange",
726
+ value: function(d, O) {
727
+ return e.isObject(d) && e.isObject(O) ? !this.isSameChartEvents(d, O) : d !== O;
728
+ }
729
+ }, {
730
+ key: "isSameChartEvents",
731
+ value: function(d, O) {
732
+ if (Object.keys(d).length !== Object.keys(O).length)
733
+ return !1;
734
+ for (var h = Object.keys(d), S = 0; S < h.length; ++S) {
735
+ var R = h[S];
736
+ if (d[R] !== O[R])
737
+ return !1;
738
+ }
739
+ return !0;
740
+ }
741
+ }, {
742
+ key: "checkAndUpdateRestOptions",
743
+ value: function(d, O, h) {
744
+ var S = this, R = !1;
745
+ d.forEach(function(U) {
746
+ var k = O[U], M = h[U];
747
+ S.isSameOptionValue(k, M) || e.isUndefined(k) || S.chartObj.options && S.chartObj.options.hasOwnProperty(U) && (S.chartObj.options[U] = k, R = !0);
748
+ }), R && this.chartObj.render();
749
+ }
750
+ }, {
751
+ key: "isSameOptionValue",
752
+ value: function(d, O) {
753
+ return e.isObject(d) && e.isObject(O) ? e.isSameObjectContent(d, O) : String(d) === String(O);
754
+ }
755
+ }, {
756
+ key: "renderChart",
757
+ value: function() {
758
+ var d = this, O = this.resolveChartOptions(this.props), h = {};
759
+ this.containerRef.current && this.props.renderInShadowDom ? O.renderAt = this.containerRef.current : O.renderAt = this.containerId, Object.keys(this.props).forEach(function(S) {
760
+ var R = S.match(/^fcEvent-.*/i);
761
+ if (R && typeof d.props[S] == "function") {
762
+ var U = S.replace(/^fcEvent-/i, "");
763
+ h[U] = d.props[S];
764
+ }
765
+ }), Object.keys(h).length > 0 && (O.events === void 0 ? O.events = h : O.events = Object.assign(O.events, h)), this.chartObj = new this.FusionCharts(O), this.chartObj.render(), this.oldOptions = O, this.props.onRender && typeof this.props.onRender == "function" && this.props.onRender(this.chartObj);
766
+ }
767
+ }, {
768
+ key: "resolveChartOptions",
769
+ value: function(d) {
770
+ var O = d.chartConfig ? d.chartConfig : {}, h = i.default.reduce(function(S, R) {
771
+ return S[R] = d[R], S;
772
+ }, {});
773
+ return Object.assign(h, O), e.isObject(h.dataSource) && !e.checkIfDataTableExists(h.dataSource) ? h.dataSource = e.deepCopyOf(h.dataSource) : e.isObject(h.dataSource) && e.checkIfDataTableExists(h.dataSource) && (h.dataSource = e.cloneDataSource(h.dataSource, "clone")), e.isObject(h.link) && (h.link = e.deepCopyOf(h.link)), e.isObject(h.events) && (h.events = Object.assign({}, h.events)), h;
774
+ }
775
+ }, {
776
+ key: "render",
777
+ value: function() {
778
+ return /* @__PURE__ */ p.default.createElement("div", {
779
+ ref: this.containerRef,
780
+ className: this.props.className,
781
+ id: this.containerId
782
+ });
783
+ }
784
+ }], [{
785
+ key: "fcRoot",
786
+ value: function(d) {
787
+ for (var O = arguments.length, h = new Array(O > 1 ? O - 1 : 0), S = 1; S < O; S++)
788
+ h[S - 1] = arguments[S];
789
+ h.forEach(function(R) {
790
+ R.getName && R.getType || R.name && R.type ? d.addDep(R) : R(d);
791
+ }), b.fusionChartsCore = d;
792
+ }
793
+ }]);
794
+ })(p.default.Component);
795
+ r.default = D;
796
+ })(ae)), ae;
797
+ }
798
+ var vt = gt();
799
+ const pt = /* @__PURE__ */ Ge(vt), mt = "_sankey_1mb5t_1", yt = "_scrollArea_1mb5t_32", _t = "_stackedArea_1mb5t_32", bt = "_msCombiDy2d_1mb5t_32", Ot = "_fusion_chart_wrapper_1mb5t_133", I = {
800
+ "ck-finops-charts": "_ck-finops-charts_1mb5t_1",
801
+ sankey: mt,
802
+ scrollArea: yt,
803
+ stackedArea: _t,
804
+ msCombiDy2d: bt,
805
+ fusion_chart_wrapper: Ot,
806
+ "doughnut-legend": "_doughnut-legend_1mb5t_137",
807
+ "doughnut-legend-item": "_doughnut-legend-item_1mb5t_146",
808
+ "doughnut-legend-item--hidden": "_doughnut-legend-item--hidden_1mb5t_158",
809
+ "doughnut-legend-text": "_doughnut-legend-text_1mb5t_161",
810
+ "doughnut-legend-icon": "_doughnut-legend-icon_1mb5t_165"
811
+ }, Ct = pt;
812
+ function jt(r) {
813
+ return r.chartType === "stackedArea" ? (r.palettecolors || Fe).split(",").map((g) => g.trim()) : (r.palettecolors || ee).split(",").map((p) => p.trim());
814
+ }
815
+ function St({ items: r, colors: l, hiddenSeries: p, onToggle: g }) {
816
+ return r.length === 0 ? null : /* @__PURE__ */ $("div", { className: I["doughnut-legend"], children: r.map((e, i) => {
817
+ const a = !!p[e];
818
+ return /* @__PURE__ */ Ne(
819
+ "button",
820
+ {
821
+ type: "button",
822
+ className: xe(
823
+ I["doughnut-legend-item"],
824
+ a && I["doughnut-legend-item--hidden"]
825
+ ),
826
+ onClick: () => g(e),
827
+ "aria-pressed": !a,
828
+ "aria-label": `Toggle ${e} series`,
829
+ children: [
830
+ /* @__PURE__ */ $(
831
+ "span",
832
+ {
833
+ className: I["doughnut-legend-icon"],
834
+ style: {
835
+ backgroundColor: a ? "#C2C2C2" : l[i % l.length]
836
+ }
837
+ }
838
+ ),
839
+ /* @__PURE__ */ $("span", { className: I["doughnut-legend-text"], children: e })
840
+ ]
841
+ },
842
+ e || i
843
+ );
844
+ }) });
845
+ }
846
+ function At(r) {
847
+ const { chartType: l, showLegend: p } = r;
848
+ if (p === "0") return null;
849
+ if (l === "doughnutChart")
850
+ return (r.graphData?.data || []).map((i) => i.legendItemName || i.label || "");
851
+ if (l === "multipleLineChart" || l === "groupChart" || l === "stackedcolumn2d" || l === "stackedArea" || l === "stackBarChart" || l === "scrollArea" || l === "scrollColumn2d" || l === "scrollStackedColumn2d" || l === "msCombiDy2d") {
852
+ if ((l === "scrollArea" || l === "scrollColumn2d") && !(!Array.isArray(r.graphData) && r.graphData?.dataset))
853
+ return null;
854
+ const e = r.graphData?.dataset || [];
855
+ if (e.length > 0)
856
+ return e.map((i) => i.seriesname || "");
857
+ }
858
+ if ((l === "column2d" || l === "bar2d" || l === "area") && Array.isArray(r.graphData)) {
859
+ const g = r.graphData;
860
+ if (g.length > 0)
861
+ return g.map((e) => e.label || "");
862
+ }
863
+ return r.legendLabel && p === "1" ? [r.legendLabel] : null;
864
+ }
865
+ function wt(r) {
866
+ return [
867
+ "multipleLineChart",
868
+ "groupChart",
869
+ "stackedcolumn2d",
870
+ "stackedArea",
871
+ "stackBarChart",
872
+ "scrollArea",
873
+ "scrollColumn2d",
874
+ "scrollStackedColumn2d",
875
+ "msCombiDy2d"
876
+ ].includes(r);
877
+ }
878
+ function Rt(r, l, p, g) {
879
+ if (!Object.values(l).some(Boolean)) return r;
880
+ if (p === "doughnutChart") {
881
+ const f = r;
882
+ if (!f?.data) return r;
883
+ const v = (g || ee).split(",").map((j) => j.trim()), t = f.data.map((j, A) => ({
884
+ ...j,
885
+ color: j.color || v[A % v.length]
886
+ })).filter(
887
+ (j) => !l[j.legendItemName || j.label || ""]
888
+ );
889
+ return { ...f, data: t };
890
+ }
891
+ if (p === "column2d" || p === "bar2d" || p === "area") {
892
+ if (Array.isArray(r)) {
893
+ const f = (g || ee).split(",").map((t) => t.trim());
894
+ return r.map((t, j) => ({
895
+ ...t,
896
+ color: t.color || f[j % f.length]
897
+ })).filter((t) => !l[t.label || ""]);
898
+ }
899
+ return r;
900
+ }
901
+ if (!wt(p)) return r;
902
+ const i = r;
903
+ if (!i?.dataset) return r;
904
+ const a = (p === "stackedArea" ? g || Fe : g || ee).split(",").map((f) => f.trim()), u = i.dataset.map((f, v) => ({
905
+ ...f,
906
+ color: f.color || a[v % a.length]
907
+ })).filter(
908
+ (f) => !l[f.seriesname || ""]
909
+ );
910
+ return { ...i, dataset: u };
911
+ }
912
+ function Ut(r) {
913
+ const { chartType: l, applyRoundedBarsOnRender: p } = r, [g, e] = de({}), [i, a] = de(!1), y = Qe(null), u = he((o) => {
914
+ e((n) => ({
915
+ ...n,
916
+ [o]: !n[o]
917
+ }));
918
+ }, []), f = ge(
919
+ () => Rt(r.graphData, g, l, r.palettecolors),
920
+ [r.graphData, g, l, r.palettecolors]
921
+ ), v = Xe({ ...r, graphData: f }), C = ge(
922
+ () => Object.entries(g).filter(([, o]) => o).map(([o]) => o).join("|") || "all",
923
+ [g]
924
+ ), t = he(() => {
925
+ if (!p || !y.current) return;
926
+ const o = y.current;
927
+ if (o.getAttribute("data-rounded-applied") === "true") return;
928
+ const n = o.querySelector("svg");
929
+ if (!n) return;
930
+ const c = Array.from(n.querySelectorAll("rect")), m = l === "bar2d", D = c.filter((_) => {
931
+ const b = parseFloat(_.getAttribute("height") || "0"), w = parseFloat(_.getAttribute("width") || "0"), d = _.getAttribute("fill") || "", O = d === "#ffffff" || d === "none" || d === "transparent" || d === "#FFFFFF";
932
+ return b > 10 && w > 2 && !O;
933
+ });
934
+ if (D.length !== 0) {
935
+ if (m)
936
+ D.forEach((_) => {
937
+ const b = parseFloat(_.getAttribute("x") || "0"), w = parseFloat(_.getAttribute("y") || "0"), d = parseFloat(_.getAttribute("width") || "0"), O = parseFloat(_.getAttribute("height") || "0"), h = 4, S = document.createElementNS("http://www.w3.org/2000/svg", "path"), R = `M${b},${w} L${b + d - h},${w} Q${b + d},${w} ${b + d},${w + h} L${b + d},${w + O - h} Q${b + d},${w + O} ${b + d - h},${w + O} L${b},${w + O} Z`;
938
+ S.setAttribute("d", R), ["fill", "fill-opacity", "stroke", "stroke-width", "opacity", "class"].forEach((k) => {
939
+ const M = _.getAttribute(k);
940
+ M && S.setAttribute(k, M);
941
+ }), _.getAttribute("style") && S.setAttribute("style", _.getAttribute("style") || ""), _.parentNode?.replaceChild(S, _);
942
+ });
943
+ else {
944
+ const _ = {};
945
+ D.forEach((b) => {
946
+ const d = `${Math.round(parseFloat(b.getAttribute("x") || "0"))}`;
947
+ _[d] || (_[d] = []), _[d].push(b);
948
+ }), Object.values(_).forEach((b) => {
949
+ let w = null, d = 1 / 0;
950
+ b.forEach((h) => {
951
+ const S = parseFloat(h.getAttribute("y") || "0");
952
+ S < d && (d = S, w = h);
953
+ });
954
+ const O = w;
955
+ if (O) {
956
+ const h = parseFloat(O.getAttribute("x") || "0"), S = parseFloat(O.getAttribute("y") || "0"), R = parseFloat(O.getAttribute("width") || "0"), U = parseFloat(O.getAttribute("height") || "0"), k = 4, M = document.createElementNS("http://www.w3.org/2000/svg", "path"), Ke = `M${h},${S + U} L${h},${S + k} Q${h},${S} ${h + k},${S} L${h + R - k},${S} Q${h + R},${S} ${h + R},${S + k} L${h + R},${S + U} Z`;
957
+ M.setAttribute("d", Ke), ["fill", "fill-opacity", "stroke", "stroke-width", "opacity", "class"].forEach((fe) => {
958
+ const le = O.getAttribute(fe);
959
+ le && M.setAttribute(fe, le);
960
+ }), O.getAttribute("style") && M.setAttribute("style", O.getAttribute("style") || ""), O.parentNode?.replaceChild(M, O);
961
+ }
962
+ });
963
+ }
964
+ o.setAttribute("data-rounded-applied", "true");
965
+ }
966
+ }, [p, l]);
967
+ ve(() => {
968
+ if (!p) return;
969
+ y.current && y.current.removeAttribute("data-rounded-applied");
970
+ const o = y.current;
971
+ if (!o) return;
972
+ const n = () => {
973
+ const _ = o.querySelector("svg")?.querySelectorAll("rect");
974
+ return _ && _.length > 5 ? (t(), !0) : !1;
975
+ };
976
+ if (n()) return;
977
+ const c = new MutationObserver(() => {
978
+ n() && c.disconnect();
979
+ });
980
+ c.observe(o, { childList: !0, subtree: !0 });
981
+ const m = [
982
+ setTimeout(() => n(), 500),
983
+ setTimeout(() => n(), 1500),
984
+ setTimeout(() => n(), 3e3)
985
+ ];
986
+ return () => {
987
+ c.disconnect(), m.forEach(clearTimeout);
988
+ };
989
+ }, [p, f, t]), ve(() => {
990
+ a(!1);
991
+ const o = y.current;
992
+ if (!o) return;
993
+ const n = () => {
994
+ const D = o.querySelector("svg");
995
+ return D && D.getBoundingClientRect().height > 0 ? (a(!0), !0) : !1;
996
+ };
997
+ if (n()) return;
998
+ const c = new MutationObserver(() => {
999
+ n() && c.disconnect();
1000
+ });
1001
+ c.observe(o, { childList: !0, subtree: !0 });
1002
+ const m = setTimeout(() => {
1003
+ n(), c.disconnect();
1004
+ }, 2e3);
1005
+ return () => {
1006
+ c.disconnect(), clearTimeout(m);
1007
+ };
1008
+ }, [f, C]);
1009
+ const j = xe(
1010
+ I["ck-finops-charts"],
1011
+ l === "sankey" && I.sankey,
1012
+ l === "stackedArea" && I.stackedArea,
1013
+ l === "scrollArea" && I.scrollArea,
1014
+ l === "msCombiDy2d" && I.msCombiDy2d
1015
+ );
1016
+ if (!v)
1017
+ return null;
1018
+ const A = At(r), s = jt(r);
1019
+ return /* @__PURE__ */ Ne("div", { className: j, children: [
1020
+ /* @__PURE__ */ $("div", { className: I.fusion_chart_wrapper, ref: y, children: /* @__PURE__ */ $(
1021
+ Ct,
1022
+ {
1023
+ ...v,
1024
+ events: Ze(r),
1025
+ onRender: ze(r)
1026
+ },
1027
+ C
1028
+ ) }),
1029
+ A && i && /* @__PURE__ */ $(
1030
+ St,
1031
+ {
1032
+ items: A,
1033
+ colors: s,
1034
+ hiddenSeries: g,
1035
+ onToggle: u
1036
+ }
1037
+ )
1038
+ ] });
1039
+ }
1040
+ Ut.displayName = "FusionChart";
1041
+ export {
1042
+ Ut as FusionChart
1043
+ };