@carto/ps-react-ui 4.4.0-chat-ui.5 → 4.4.0-chat-ui.7

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 (910) hide show
  1. package/dist/category-DwaeYjpX.js +656 -0
  2. package/dist/category-DwaeYjpX.js.map +1 -0
  3. package/dist/change-column-Cidl_M-4.js +1110 -0
  4. package/dist/change-column-Cidl_M-4.js.map +1 -0
  5. package/dist/chat.js +622 -673
  6. package/dist/chat.js.map +1 -1
  7. package/dist/components.js.map +1 -1
  8. package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
  9. package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
  10. package/dist/download-config-C7hf33ip.js +58 -0
  11. package/dist/download-config-C7hf33ip.js.map +1 -0
  12. package/dist/echart-CU0KmClP.js +176 -0
  13. package/dist/echart-CU0KmClP.js.map +1 -0
  14. package/dist/exports-Cr43OCul.js.map +1 -1
  15. package/dist/exports-Cx-f6m6U.js +63 -0
  16. package/dist/exports-Cx-f6m6U.js.map +1 -0
  17. package/dist/formatter-B9Bxn1k7.js +6 -0
  18. package/dist/formatter-B9Bxn1k7.js.map +1 -0
  19. package/dist/formula-DuC0NQLH.js +79 -0
  20. package/dist/formula-DuC0NQLH.js.map +1 -0
  21. package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
  22. package/dist/markdown-BD1jcknS.js +8326 -0
  23. package/dist/markdown-BD1jcknS.js.map +1 -0
  24. package/dist/option-builders-F-c9ELi1.js +122 -0
  25. package/dist/option-builders-F-c9ELi1.js.map +1 -0
  26. package/dist/options-CthfUJDz.js +46 -0
  27. package/dist/options-CthfUJDz.js.map +1 -0
  28. package/dist/png-item-CS4z1iSH.js +45 -0
  29. package/dist/png-item-CS4z1iSH.js.map +1 -0
  30. package/dist/range-l4fNHLEg.js +213 -0
  31. package/dist/range-l4fNHLEg.js.map +1 -0
  32. package/dist/resolve-theme-color-BdojIw0K.js +47 -0
  33. package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
  34. package/dist/row-DZSP99LW.js +34 -0
  35. package/dist/row-DZSP99LW.js.map +1 -0
  36. package/dist/series-DLNHDWs0.js +90 -0
  37. package/dist/series-DLNHDWs0.js.map +1 -0
  38. package/dist/shared-resize-observer-98b1SK1e.js +17 -0
  39. package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
  40. package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
  41. package/dist/spread-CngWB5KF.js +68 -0
  42. package/dist/spread-CngWB5KF.js.map +1 -0
  43. package/dist/style-DVnT6HC1.js +131 -0
  44. package/dist/style-DVnT6HC1.js.map +1 -0
  45. package/dist/styles-cohnxh9F.js +23 -0
  46. package/dist/styles-cohnxh9F.js.map +1 -0
  47. package/dist/table-CQCAnDLb.js +388 -0
  48. package/dist/table-CQCAnDLb.js.map +1 -0
  49. package/dist/tooltip-BDnrRKrp.js.map +1 -1
  50. package/dist/transforms-Cdx4fkU5.js +106 -0
  51. package/dist/transforms-Cdx4fkU5.js.map +1 -0
  52. package/dist/types/chat/containers/chat-content.d.ts +2 -2
  53. package/dist/types/chat/containers/styles.d.ts +10 -27
  54. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
  55. package/dist/types/chat/index.d.ts +1 -1
  56. package/dist/types/chat/types.d.ts +35 -3
  57. package/dist/types/components/basemaps/basemaps.d.ts +20 -0
  58. package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
  59. package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
  60. package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
  61. package/dist/types/components/list-data/list-data.d.ts +16 -0
  62. package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
  63. package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
  64. package/dist/types/components/tooltip/tooltip.d.ts +13 -0
  65. package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
  66. package/dist/types/hooks/index.d.ts +0 -1
  67. package/dist/types/hooks/use-widget-ref.d.ts +9 -6
  68. package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
  69. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
  70. package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
  71. package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
  72. package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
  73. package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
  74. package/dist/types/widgets/actions/download/download.d.ts +11 -0
  75. package/dist/types/widgets/actions/download/exports.d.ts +15 -0
  76. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
  77. package/dist/types/widgets/actions/index.d.ts +7 -5
  78. package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
  79. package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
  80. package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
  81. package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
  82. package/dist/types/widgets/bar/config.d.ts +8 -4
  83. package/dist/types/widgets/category/category-ui.d.ts +3 -0
  84. package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
  85. package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
  86. package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
  87. package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
  88. package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
  89. package/dist/types/widgets/category/config.d.ts +11 -0
  90. package/dist/types/widgets/category/index.d.ts +10 -2
  91. package/dist/types/widgets/category/style.d.ts +1 -0
  92. package/dist/types/widgets/category/types.d.ts +1 -0
  93. package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
  94. package/dist/types/widgets/echart/echart.d.ts +6 -0
  95. package/dist/types/widgets/echart/options.d.ts +7 -0
  96. package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
  97. package/dist/types/widgets/echart/types.d.ts +5 -1
  98. package/dist/types/widgets/echart/utils.d.ts +54 -7
  99. package/dist/types/widgets/echart/utils.test.d.ts +1 -0
  100. package/dist/types/widgets/error/error.d.ts +10 -0
  101. package/dist/types/widgets/formula/components/item.d.ts +3 -0
  102. package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
  103. package/dist/types/widgets/formula/components/row.d.ts +3 -0
  104. package/dist/types/widgets/formula/components/series.d.ts +3 -0
  105. package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
  106. package/dist/types/widgets/formula/components/value.d.ts +3 -0
  107. package/dist/types/widgets/formula/config.d.ts +11 -0
  108. package/dist/types/widgets/formula/config.test.d.ts +1 -0
  109. package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
  110. package/dist/types/widgets/histogram/config.d.ts +18 -2
  111. package/dist/types/widgets/histogram/index.d.ts +2 -1
  112. package/dist/types/widgets/histogram/types.d.ts +6 -3
  113. package/dist/types/widgets/loader/loader.d.ts +22 -0
  114. package/dist/types/widgets/loader/utils.d.ts +26 -3
  115. package/dist/types/widgets/markdown/config.d.ts +10 -0
  116. package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
  117. package/dist/types/widgets/markdown/markdown.d.ts +3 -0
  118. package/dist/types/widgets/no-data/no-data.d.ts +3 -2
  119. package/dist/types/widgets/no-data/types.d.ts +5 -1
  120. package/dist/types/widgets/note/note.d.ts +10 -0
  121. package/dist/types/widgets/pie/config.d.ts +8 -4
  122. package/dist/types/widgets/range/components/range-item.d.ts +3 -0
  123. package/dist/types/widgets/range/config.d.ts +5 -0
  124. package/dist/types/widgets/range/range-ui.d.ts +3 -0
  125. package/dist/types/widgets/scatterplot/config.d.ts +7 -3
  126. package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
  127. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
  128. package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
  129. package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
  130. package/dist/types/widgets/spread/components/separator.d.ts +3 -0
  131. package/dist/types/widgets/spread/config.d.ts +11 -0
  132. package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
  133. package/dist/types/widgets/stores/index.d.ts +3 -2
  134. package/dist/types/widgets/stores/types.d.ts +12 -10
  135. package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
  136. package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
  137. package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
  138. package/dist/types/widgets/stores/widget-store.d.ts +48 -27
  139. package/dist/types/widgets/subheader/subheader.d.ts +11 -0
  140. package/dist/types/widgets/table/config.d.ts +8 -3
  141. package/dist/types/widgets/table/config.test.d.ts +1 -0
  142. package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
  143. package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
  144. package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
  145. package/dist/types/widgets/table/index.d.ts +6 -2
  146. package/dist/types/widgets/table/types.d.ts +1 -1
  147. package/dist/types/widgets/timeseries/config.d.ts +8 -4
  148. package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
  149. package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
  150. package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
  151. package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
  152. package/dist/types/widgets/utils/formatter.d.ts +2 -0
  153. package/dist/types/widgets/utils/index.d.ts +7 -0
  154. package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
  155. package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
  156. package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
  157. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
  158. package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
  159. package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
  160. package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
  161. package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
  162. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
  163. package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
  164. package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
  165. package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
  166. package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
  167. package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
  168. package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
  169. package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
  170. package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
  171. package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
  172. package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
  173. package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
  174. package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
  175. package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
  176. package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
  177. package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
  178. package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
  179. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
  180. package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
  181. package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
  182. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
  183. package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
  184. package/dist/types/widgets-v2/actions/index.d.ts +9 -0
  185. package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
  186. package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
  187. package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
  188. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
  189. package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
  190. package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
  191. package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
  192. package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
  193. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
  194. package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
  195. package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
  196. package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
  197. package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
  198. package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
  199. package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
  200. package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
  201. package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
  202. package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
  203. package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
  204. package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
  205. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
  206. package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
  207. package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
  208. package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
  209. package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
  210. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
  211. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
  212. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
  213. package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
  214. package/dist/types/widgets-v2/bar/download.d.ts +24 -0
  215. package/dist/types/widgets-v2/bar/index.d.ts +4 -0
  216. package/dist/types/widgets-v2/bar/options.d.ts +43 -0
  217. package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
  218. package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
  219. package/dist/types/widgets-v2/bar/types.d.ts +46 -0
  220. package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
  221. package/dist/types/widgets-v2/category/category.d.ts +48 -0
  222. package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
  223. package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
  224. package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
  225. package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
  226. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
  227. package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
  228. package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
  229. package/dist/types/widgets-v2/category/download.d.ts +16 -0
  230. package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
  231. package/dist/types/widgets-v2/category/index.d.ts +10 -0
  232. package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
  233. package/dist/types/widgets-v2/category/style.d.ts +166 -0
  234. package/dist/types/widgets-v2/category/types.d.ts +53 -0
  235. package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
  236. package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
  237. package/dist/types/widgets-v2/echart/index.d.ts +4 -0
  238. package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
  239. package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
  240. package/dist/types/widgets-v2/echart/style.d.ts +6 -0
  241. package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
  242. package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
  243. package/dist/types/widgets-v2/formula/download.d.ts +20 -0
  244. package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
  245. package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
  246. package/dist/types/widgets-v2/formula/index.d.ts +11 -0
  247. package/dist/types/widgets-v2/formula/note.d.ts +11 -0
  248. package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
  249. package/dist/types/widgets-v2/formula/series.d.ts +16 -0
  250. package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
  251. package/dist/types/widgets-v2/formula/style.d.ts +29 -0
  252. package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
  253. package/dist/types/widgets-v2/formula/types.d.ts +43 -0
  254. package/dist/types/widgets-v2/formula/value.d.ts +14 -0
  255. package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
  256. package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
  257. package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
  258. package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
  259. package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
  260. package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
  261. package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
  262. package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
  263. package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
  264. package/dist/types/widgets-v2/index.d.ts +108 -0
  265. package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
  266. package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
  267. package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
  268. package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
  269. package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
  270. package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
  271. package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
  272. package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
  273. package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
  274. package/dist/types/widgets-v2/note/labels.d.ts +5 -0
  275. package/dist/types/widgets-v2/note/style.d.ts +26 -0
  276. package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
  277. package/dist/types/widgets-v2/pie/download.d.ts +17 -0
  278. package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
  279. package/dist/types/widgets-v2/pie/index.d.ts +4 -0
  280. package/dist/types/widgets-v2/pie/options.d.ts +35 -0
  281. package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
  282. package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
  283. package/dist/types/widgets-v2/pie/types.d.ts +57 -0
  284. package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
  285. package/dist/types/widgets-v2/range/index.d.ts +4 -0
  286. package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
  287. package/dist/types/widgets-v2/range/range.d.ts +24 -0
  288. package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
  289. package/dist/types/widgets-v2/range/style.d.ts +40 -0
  290. package/dist/types/widgets-v2/range/types.d.ts +37 -0
  291. package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
  292. package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
  293. package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
  294. package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
  295. package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
  296. package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
  297. package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
  298. package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
  299. package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
  300. package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
  301. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
  302. package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
  303. package/dist/types/widgets-v2/spread/download.d.ts +15 -0
  304. package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
  305. package/dist/types/widgets-v2/spread/index.d.ts +6 -0
  306. package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
  307. package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
  308. package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
  309. package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
  310. package/dist/types/widgets-v2/spread/types.d.ts +25 -0
  311. package/dist/types/widgets-v2/state/labels.d.ts +7 -0
  312. package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
  313. package/dist/types/widgets-v2/state/style.d.ts +19 -0
  314. package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
  315. package/dist/types/widgets-v2/stores/index.d.ts +8 -0
  316. package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
  317. package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
  318. package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
  319. package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
  320. package/dist/types/widgets-v2/stores/types.d.ts +55 -0
  321. package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
  322. package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
  323. package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
  324. package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
  325. package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
  326. package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
  327. package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
  328. package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
  329. package/dist/types/widgets-v2/table/download.d.ts +18 -0
  330. package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
  331. package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
  332. package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
  333. package/dist/types/widgets-v2/table/index.d.ts +7 -0
  334. package/dist/types/widgets-v2/table/labels.d.ts +22 -0
  335. package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
  336. package/dist/types/widgets-v2/table/style.d.ts +40 -0
  337. package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
  338. package/dist/types/widgets-v2/table/table.d.ts +50 -0
  339. package/dist/types/widgets-v2/table/types.d.ts +48 -0
  340. package/dist/types/widgets-v2/test-utils.d.ts +52 -0
  341. package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
  342. package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
  343. package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
  344. package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
  345. package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
  346. package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
  347. package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
  348. package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
  349. package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
  350. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
  351. package/dist/types/widgets-v2/types.d.ts +25 -0
  352. package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
  353. package/dist/types/widgets-v2/utils/index.d.ts +3 -0
  354. package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
  355. package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
  356. package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
  357. package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
  358. package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
  359. package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
  360. package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
  361. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
  362. package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
  363. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
  364. package/dist/use-transform-DXPN3nY7.js +110 -0
  365. package/dist/use-transform-DXPN3nY7.js.map +1 -0
  366. package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
  367. package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
  368. package/dist/use-widget-selector-DFl2hW0R.js +12 -0
  369. package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
  370. package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
  371. package/dist/utils-BOhInag6.js.map +1 -0
  372. package/dist/widget-context-DTGO0Yta.js +13 -0
  373. package/dist/widget-context-DTGO0Yta.js.map +1 -0
  374. package/dist/widget-store-Bw5zRUGg.js +261 -0
  375. package/dist/widget-store-Bw5zRUGg.js.map +1 -0
  376. package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
  377. package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
  378. package/dist/widgets/actions.js +1120 -760
  379. package/dist/widgets/actions.js.map +1 -1
  380. package/dist/widgets/bar.js +87 -97
  381. package/dist/widgets/bar.js.map +1 -1
  382. package/dist/widgets/category.js +247 -236
  383. package/dist/widgets/category.js.map +1 -1
  384. package/dist/widgets/echart.js +100 -99
  385. package/dist/widgets/echart.js.map +1 -1
  386. package/dist/widgets/error.js +37 -2
  387. package/dist/widgets/error.js.map +1 -1
  388. package/dist/widgets/formula.js +78 -67
  389. package/dist/widgets/formula.js.map +1 -1
  390. package/dist/widgets/histogram.js +116 -92
  391. package/dist/widgets/histogram.js.map +1 -1
  392. package/dist/widgets/loader.js +53 -60
  393. package/dist/widgets/loader.js.map +1 -1
  394. package/dist/widgets/markdown.js +55 -53
  395. package/dist/widgets/markdown.js.map +1 -1
  396. package/dist/widgets/no-data.js +58 -2
  397. package/dist/widgets/no-data.js.map +1 -1
  398. package/dist/widgets/note.js +121 -2
  399. package/dist/widgets/note.js.map +1 -1
  400. package/dist/widgets/pie.js +148 -112
  401. package/dist/widgets/pie.js.map +1 -1
  402. package/dist/widgets/range.js +147 -144
  403. package/dist/widgets/range.js.map +1 -1
  404. package/dist/widgets/scatterplot.js +52 -65
  405. package/dist/widgets/scatterplot.js.map +1 -1
  406. package/dist/widgets/selection-summary.js.map +1 -1
  407. package/dist/widgets/skeleton-loader.js +18 -17
  408. package/dist/widgets/skeleton-loader.js.map +1 -1
  409. package/dist/widgets/spread.js +108 -90
  410. package/dist/widgets/spread.js.map +1 -1
  411. package/dist/widgets/stores.js +5 -2
  412. package/dist/widgets/stores.js.map +1 -1
  413. package/dist/widgets/subheader.js +29 -29
  414. package/dist/widgets/subheader.js.map +1 -1
  415. package/dist/widgets/table.js +429 -440
  416. package/dist/widgets/table.js.map +1 -1
  417. package/dist/widgets/timeseries.js +56 -69
  418. package/dist/widgets/timeseries.js.map +1 -1
  419. package/dist/widgets/toolbar-actions.js +50 -50
  420. package/dist/widgets/utils.js +34 -0
  421. package/dist/widgets/utils.js.map +1 -0
  422. package/dist/widgets/wrapper.js +156 -158
  423. package/dist/widgets/wrapper.js.map +1 -1
  424. package/dist/widgets-v2/actions.js +43 -0
  425. package/dist/widgets-v2/actions.js.map +1 -0
  426. package/dist/widgets-v2/bar.js +331 -0
  427. package/dist/widgets-v2/bar.js.map +1 -0
  428. package/dist/widgets-v2/category.js +105 -0
  429. package/dist/widgets-v2/category.js.map +1 -0
  430. package/dist/widgets-v2/echart.js +57 -0
  431. package/dist/widgets-v2/echart.js.map +1 -0
  432. package/dist/widgets-v2/formula.js +75 -0
  433. package/dist/widgets-v2/formula.js.map +1 -0
  434. package/dist/widgets-v2/histogram.js +354 -0
  435. package/dist/widgets-v2/histogram.js.map +1 -0
  436. package/dist/widgets-v2/markdown.js +69 -0
  437. package/dist/widgets-v2/markdown.js.map +1 -0
  438. package/dist/widgets-v2/pie.js +388 -0
  439. package/dist/widgets-v2/pie.js.map +1 -0
  440. package/dist/widgets-v2/range.js +52 -0
  441. package/dist/widgets-v2/range.js.map +1 -0
  442. package/dist/widgets-v2/scatterplot.js +412 -0
  443. package/dist/widgets-v2/scatterplot.js.map +1 -0
  444. package/dist/widgets-v2/spread.js +73 -0
  445. package/dist/widgets-v2/spread.js.map +1 -0
  446. package/dist/widgets-v2/stores.js +42 -0
  447. package/dist/widgets-v2/stores.js.map +1 -0
  448. package/dist/widgets-v2/table.js +79 -0
  449. package/dist/widgets-v2/table.js.map +1 -0
  450. package/dist/widgets-v2/timeseries.js +359 -0
  451. package/dist/widgets-v2/timeseries.js.map +1 -0
  452. package/dist/widgets-v2/utils.js +8 -0
  453. package/dist/widgets-v2/utils.js.map +1 -0
  454. package/dist/widgets-v2.js +954 -0
  455. package/dist/widgets-v2.js.map +1 -0
  456. package/package.json +84 -13
  457. package/src/chat/containers/chat-content.test.tsx +260 -6
  458. package/src/chat/containers/chat-content.tsx +137 -27
  459. package/src/chat/containers/chat-starter.tsx +2 -2
  460. package/src/chat/containers/styles.ts +16 -36
  461. package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
  462. package/src/chat/feedback/chat-tool-group.tsx +1 -1
  463. package/src/chat/feedback/chat-tool-trace.tsx +6 -1
  464. package/src/chat/index.ts +1 -1
  465. package/src/chat/types.ts +36 -4
  466. package/src/components/basemaps/basemaps.tsx +20 -0
  467. package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
  468. package/src/components/lasso-tool/chip.test.tsx +176 -0
  469. package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
  470. package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
  471. package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
  472. package/src/components/lasso-tool/lasso-tool.tsx +21 -0
  473. package/src/components/list-data/list-data.test.tsx +73 -0
  474. package/src/components/list-data/list-data.tsx +16 -0
  475. package/src/components/measurement-tools/measurement-tools.tsx +20 -0
  476. package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
  477. package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
  478. package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
  479. package/src/components/tooltip/tooltip.tsx +13 -0
  480. package/src/components/zoom-controls/zoom-controls.tsx +16 -0
  481. package/src/hooks/index.ts +0 -1
  482. package/src/hooks/use-widget-ref.ts +10 -10
  483. package/src/widgets/README.md +13 -13
  484. package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
  485. package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
  486. package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
  487. package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
  488. package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
  489. package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
  490. package/src/widgets/actions/brush-toggle/style.ts +46 -0
  491. package/src/widgets/actions/brush-toggle/types.ts +78 -0
  492. package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
  493. package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
  494. package/src/widgets/actions/change-column/change-column.tsx +15 -15
  495. package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
  496. package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
  497. package/src/widgets/actions/download/download.test.tsx +1 -1
  498. package/src/widgets/actions/download/download.tsx +15 -3
  499. package/src/widgets/actions/download/exports.tsx +15 -0
  500. package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
  501. package/src/widgets/actions/index.ts +21 -2
  502. package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
  503. package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
  504. package/src/widgets/actions/lock-selection/types.ts +2 -0
  505. package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
  506. package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
  507. package/src/widgets/actions/relative-data/types.ts +2 -0
  508. package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
  509. package/src/widgets/actions/searcher/searcher.tsx +39 -42
  510. package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
  511. package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
  512. package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
  513. package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
  514. package/src/widgets/bar/config.ts +39 -34
  515. package/src/widgets/bar/style.ts +1 -1
  516. package/src/widgets/category/category-ui.tsx +41 -34
  517. package/src/widgets/category/components/category-bar.tsx +3 -0
  518. package/src/widgets/category/components/category-legend.tsx +3 -0
  519. package/src/widgets/category/components/category-row-multi.tsx +9 -2
  520. package/src/widgets/category/components/category-row-other.tsx +3 -0
  521. package/src/widgets/category/components/category-row-single.tsx +8 -1
  522. package/src/widgets/category/components/category-rows.test.tsx +213 -0
  523. package/src/widgets/category/config.ts +11 -0
  524. package/src/widgets/category/index.ts +13 -14
  525. package/src/widgets/category/style.ts +1 -0
  526. package/src/widgets/category/types.ts +1 -0
  527. package/src/widgets/echart/echart-ui.test.tsx +20 -16
  528. package/src/widgets/echart/echart-ui.tsx +18 -14
  529. package/src/widgets/echart/echart.tsx +19 -27
  530. package/src/widgets/echart/options.ts +8 -4
  531. package/src/widgets/echart/shared-resize-observer.ts +45 -0
  532. package/src/widgets/echart/types.ts +5 -1
  533. package/src/widgets/echart/utils.test.ts +277 -0
  534. package/src/widgets/echart/utils.ts +94 -21
  535. package/src/widgets/error/error.tsx +17 -9
  536. package/src/widgets/formula/components/item.tsx +3 -0
  537. package/src/widgets/formula/components/prefix.tsx +7 -6
  538. package/src/widgets/formula/components/row.tsx +7 -4
  539. package/src/widgets/formula/components/series.tsx +7 -6
  540. package/src/widgets/formula/components/suffix.tsx +7 -6
  541. package/src/widgets/formula/components/value.tsx +13 -18
  542. package/src/widgets/formula/config.test.ts +37 -0
  543. package/src/widgets/formula/config.ts +11 -0
  544. package/src/widgets/formula/formula-ui.tsx +4 -1
  545. package/src/widgets/histogram/config.ts +99 -24
  546. package/src/widgets/histogram/index.ts +6 -1
  547. package/src/widgets/histogram/style.ts +1 -1
  548. package/src/widgets/histogram/types.ts +9 -3
  549. package/src/widgets/loader/loader.tsx +53 -44
  550. package/src/widgets/loader/utils.ts +26 -3
  551. package/src/widgets/markdown/config.ts +10 -0
  552. package/src/widgets/markdown/markdown-ui.tsx +7 -0
  553. package/src/widgets/markdown/markdown.tsx +7 -7
  554. package/src/widgets/no-data/no-data.test.tsx +90 -40
  555. package/src/widgets/no-data/no-data.tsx +12 -13
  556. package/src/widgets/no-data/types.ts +5 -1
  557. package/src/widgets/note/note.tsx +10 -0
  558. package/src/widgets/pie/config.ts +102 -33
  559. package/src/widgets/pie/style.ts +1 -1
  560. package/src/widgets/range/components/range-item.test.tsx +243 -0
  561. package/src/widgets/range/components/range-item.tsx +25 -20
  562. package/src/widgets/range/config.ts +5 -0
  563. package/src/widgets/range/range-ui.tsx +3 -0
  564. package/src/widgets/scatterplot/config.ts +21 -23
  565. package/src/widgets/scatterplot/style.ts +1 -1
  566. package/src/widgets/selection-summary/selection-summary.tsx +11 -0
  567. package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
  568. package/src/widgets/spread/components/max-value.tsx +18 -18
  569. package/src/widgets/spread/components/min-value.tsx +18 -18
  570. package/src/widgets/spread/components/separator.tsx +3 -0
  571. package/src/widgets/spread/config.ts +11 -0
  572. package/src/widgets/spread/spread-ui.tsx +4 -1
  573. package/src/widgets/stores/index.ts +4 -1
  574. package/src/widgets/stores/types.ts +12 -18
  575. package/src/widgets/stores/use-widget-selector.ts +47 -0
  576. package/src/widgets/stores/widget-store-branches.test.ts +275 -0
  577. package/src/widgets/stores/widget-store-performance.test.ts +750 -0
  578. package/src/widgets/stores/widget-store.test.ts +213 -13
  579. package/src/widgets/stores/widget-store.ts +240 -65
  580. package/src/widgets/subheader/subheader.tsx +22 -3
  581. package/src/widgets/table/config.test.ts +65 -0
  582. package/src/widgets/table/config.ts +8 -4
  583. package/src/widgets/table/hooks/use-pagination.ts +39 -55
  584. package/src/widgets/table/hooks/use-selection.ts +31 -26
  585. package/src/widgets/table/hooks/use-sort.ts +33 -42
  586. package/src/widgets/table/index.ts +6 -4
  587. package/src/widgets/table/table-ui.tsx +1 -1
  588. package/src/widgets/table/types.ts +1 -1
  589. package/src/widgets/timeseries/config.ts +34 -33
  590. package/src/widgets/timeseries/style.ts +1 -1
  591. package/src/widgets/utils/chart-config/download-config.ts +22 -0
  592. package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
  593. package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
  594. package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
  595. package/src/widgets/utils/formatter.ts +2 -0
  596. package/src/widgets/utils/index.ts +26 -0
  597. package/src/widgets/wrapper/components/actions.tsx +3 -0
  598. package/src/widgets/wrapper/components/options.tsx +3 -0
  599. package/src/widgets/wrapper/components/title.tsx +3 -0
  600. package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
  601. package/src/widgets/wrapper/wrapper.tsx +18 -6
  602. package/src/widgets-v2/PERFORMANCE.md +189 -0
  603. package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
  604. package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
  605. package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
  606. package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
  607. package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
  608. package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
  609. package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
  610. package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
  611. package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
  612. package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
  613. package/src/widgets-v2/actions/change-column/index.ts +7 -0
  614. package/src/widgets-v2/actions/change-column/labels.ts +9 -0
  615. package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
  616. package/src/widgets-v2/actions/change-column/style.ts +32 -0
  617. package/src/widgets-v2/actions/change-column/types.ts +11 -0
  618. package/src/widgets-v2/actions/download/download.test.tsx +327 -0
  619. package/src/widgets-v2/actions/download/download.tsx +144 -0
  620. package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
  621. package/src/widgets-v2/actions/download/exports.ts +115 -0
  622. package/src/widgets-v2/actions/download/icons.tsx +26 -0
  623. package/src/widgets-v2/actions/download/index.ts +13 -0
  624. package/src/widgets-v2/actions/download/labels.ts +16 -0
  625. package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
  626. package/src/widgets-v2/actions/download/png-item.tsx +52 -0
  627. package/src/widgets-v2/actions/download/style.ts +3 -0
  628. package/src/widgets-v2/actions/download/types.ts +32 -0
  629. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
  630. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
  631. package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
  632. package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
  633. package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
  634. package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
  635. package/src/widgets-v2/actions/index.ts +82 -0
  636. package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
  637. package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
  638. package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
  639. package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
  640. package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
  641. package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
  642. package/src/widgets-v2/actions/relative-data/index.ts +3 -0
  643. package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
  644. package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
  645. package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
  646. package/src/widgets-v2/actions/relative-data/style.ts +11 -0
  647. package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
  648. package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
  649. package/src/widgets-v2/actions/searcher/filter.ts +28 -0
  650. package/src/widgets-v2/actions/searcher/index.ts +8 -0
  651. package/src/widgets-v2/actions/searcher/labels.ts +13 -0
  652. package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
  653. package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
  654. package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
  655. package/src/widgets-v2/actions/searcher/style.ts +15 -0
  656. package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
  657. package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
  658. package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
  659. package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
  660. package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
  661. package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
  662. package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
  663. package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
  664. package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
  665. package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
  666. package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
  667. package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
  668. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
  669. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
  670. package/src/widgets-v2/bar/download.test.tsx +91 -0
  671. package/src/widgets-v2/bar/download.tsx +66 -0
  672. package/src/widgets-v2/bar/index.ts +10 -0
  673. package/src/widgets-v2/bar/options.test.ts +334 -0
  674. package/src/widgets-v2/bar/options.ts +332 -0
  675. package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
  676. package/src/widgets-v2/bar/skeleton.tsx +69 -0
  677. package/src/widgets-v2/bar/types.ts +51 -0
  678. package/src/widgets-v2/category/category-ui.test.tsx +746 -0
  679. package/src/widgets-v2/category/category-ui.tsx +389 -0
  680. package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
  681. package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
  682. package/src/widgets-v2/category/category.test.tsx +305 -0
  683. package/src/widgets-v2/category/category.tsx +121 -0
  684. package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
  685. package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
  686. package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
  687. package/src/widgets-v2/category/components/category-bar.tsx +49 -0
  688. package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
  689. package/src/widgets-v2/category/components/category-legend.tsx +39 -0
  690. package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
  691. package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
  692. package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
  693. package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
  694. package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
  695. package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
  696. package/src/widgets-v2/category/download.test.ts +71 -0
  697. package/src/widgets-v2/category/download.ts +54 -0
  698. package/src/widgets-v2/category/index.ts +32 -0
  699. package/src/widgets-v2/category/skeleton.test.tsx +26 -0
  700. package/src/widgets-v2/category/skeleton.tsx +74 -0
  701. package/src/widgets-v2/category/style.ts +290 -0
  702. package/src/widgets-v2/category/types.ts +59 -0
  703. package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
  704. package/src/widgets-v2/echart/echart-ui.tsx +184 -0
  705. package/src/widgets-v2/echart/echart.test.tsx +229 -0
  706. package/src/widgets-v2/echart/echart.tsx +199 -0
  707. package/src/widgets-v2/echart/index.ts +22 -0
  708. package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
  709. package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
  710. package/src/widgets-v2/echart/style.ts +8 -0
  711. package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
  712. package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
  713. package/src/widgets-v2/formula/delta.tsx +61 -0
  714. package/src/widgets-v2/formula/download.test.tsx +65 -0
  715. package/src/widgets-v2/formula/download.tsx +69 -0
  716. package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
  717. package/src/widgets-v2/formula/formula-ui.tsx +66 -0
  718. package/src/widgets-v2/formula/formula.test.tsx +50 -0
  719. package/src/widgets-v2/formula/formula.tsx +34 -0
  720. package/src/widgets-v2/formula/index.ts +17 -0
  721. package/src/widgets-v2/formula/note.tsx +25 -0
  722. package/src/widgets-v2/formula/prefix.tsx +25 -0
  723. package/src/widgets-v2/formula/series.tsx +67 -0
  724. package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
  725. package/src/widgets-v2/formula/skeleton.tsx +27 -0
  726. package/src/widgets-v2/formula/style.ts +31 -0
  727. package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
  728. package/src/widgets-v2/formula/suffix.tsx +25 -0
  729. package/src/widgets-v2/formula/types.ts +48 -0
  730. package/src/widgets-v2/formula/value.tsx +31 -0
  731. package/src/widgets-v2/histogram/download.test.ts +94 -0
  732. package/src/widgets-v2/histogram/download.ts +60 -0
  733. package/src/widgets-v2/histogram/index.ts +10 -0
  734. package/src/widgets-v2/histogram/options.test.ts +318 -0
  735. package/src/widgets-v2/histogram/options.ts +338 -0
  736. package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
  737. package/src/widgets-v2/histogram/skeleton.tsx +70 -0
  738. package/src/widgets-v2/histogram/transforms.test.ts +46 -0
  739. package/src/widgets-v2/histogram/transforms.ts +30 -0
  740. package/src/widgets-v2/histogram/types.ts +55 -0
  741. package/src/widgets-v2/index.ts +204 -0
  742. package/src/widgets-v2/markdown/download.test.ts +66 -0
  743. package/src/widgets-v2/markdown/download.ts +53 -0
  744. package/src/widgets-v2/markdown/index.ts +6 -0
  745. package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
  746. package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
  747. package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
  748. package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
  749. package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
  750. package/src/widgets-v2/markdown/markdown.tsx +17 -0
  751. package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
  752. package/src/widgets-v2/markdown/skeleton.tsx +32 -0
  753. package/src/widgets-v2/markdown/style.ts +53 -0
  754. package/src/widgets-v2/markdown/types.ts +4 -0
  755. package/src/widgets-v2/note/labels.ts +9 -0
  756. package/src/widgets-v2/note/style.ts +26 -0
  757. package/src/widgets-v2/note/widget-note.test.tsx +158 -0
  758. package/src/widgets-v2/note/widget-note.tsx +172 -0
  759. package/src/widgets-v2/pie/download.test.ts +78 -0
  760. package/src/widgets-v2/pie/download.ts +55 -0
  761. package/src/widgets-v2/pie/index.ts +10 -0
  762. package/src/widgets-v2/pie/options.test.ts +601 -0
  763. package/src/widgets-v2/pie/options.ts +513 -0
  764. package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
  765. package/src/widgets-v2/pie/skeleton.tsx +32 -0
  766. package/src/widgets-v2/pie/types.ts +62 -0
  767. package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
  768. package/src/widgets-v2/provider/widget-provider.tsx +111 -0
  769. package/src/widgets-v2/range/index.ts +4 -0
  770. package/src/widgets-v2/range/range-ui.test.tsx +136 -0
  771. package/src/widgets-v2/range/range-ui.tsx +278 -0
  772. package/src/widgets-v2/range/range.test.tsx +68 -0
  773. package/src/widgets-v2/range/range.tsx +52 -0
  774. package/src/widgets-v2/range/skeleton.test.tsx +17 -0
  775. package/src/widgets-v2/range/skeleton.tsx +47 -0
  776. package/src/widgets-v2/range/style.ts +41 -0
  777. package/src/widgets-v2/range/types.ts +37 -0
  778. package/src/widgets-v2/scatterplot/download.test.ts +71 -0
  779. package/src/widgets-v2/scatterplot/download.ts +54 -0
  780. package/src/widgets-v2/scatterplot/index.ts +11 -0
  781. package/src/widgets-v2/scatterplot/options.test.ts +411 -0
  782. package/src/widgets-v2/scatterplot/options.ts +425 -0
  783. package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
  784. package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
  785. package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
  786. package/src/widgets-v2/scatterplot/transforms.ts +38 -0
  787. package/src/widgets-v2/scatterplot/types.ts +59 -0
  788. package/src/widgets-v2/selection-summary/labels.ts +11 -0
  789. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
  790. package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
  791. package/src/widgets-v2/selection-summary/style.ts +23 -0
  792. package/src/widgets-v2/spread/download.test.ts +64 -0
  793. package/src/widgets-v2/spread/download.ts +59 -0
  794. package/src/widgets-v2/spread/index.ts +6 -0
  795. package/src/widgets-v2/spread/separator.tsx +11 -0
  796. package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
  797. package/src/widgets-v2/spread/skeleton.tsx +38 -0
  798. package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
  799. package/src/widgets-v2/spread/spread-ui.tsx +52 -0
  800. package/src/widgets-v2/spread/spread.test.tsx +50 -0
  801. package/src/widgets-v2/spread/spread.tsx +31 -0
  802. package/src/widgets-v2/spread/types.ts +27 -0
  803. package/src/widgets-v2/state/labels.test.ts +33 -0
  804. package/src/widgets-v2/state/labels.ts +20 -0
  805. package/src/widgets-v2/state/style.ts +25 -0
  806. package/src/widgets-v2/state/widget-state.test.tsx +294 -0
  807. package/src/widgets-v2/state/widget-state.tsx +184 -0
  808. package/src/widgets-v2/stores/index.ts +49 -0
  809. package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
  810. package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
  811. package/src/widgets-v2/stores/transforms.test.ts +162 -0
  812. package/src/widgets-v2/stores/transforms.ts +70 -0
  813. package/src/widgets-v2/stores/types.ts +64 -0
  814. package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
  815. package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
  816. package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
  817. package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
  818. package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
  819. package/src/widgets-v2/stores/use-transform.ts +158 -0
  820. package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
  821. package/src/widgets-v2/stores/widget-context.ts +15 -0
  822. package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
  823. package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
  824. package/src/widgets-v2/subheader/style.ts +12 -0
  825. package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
  826. package/src/widgets-v2/subheader/subheader.tsx +16 -0
  827. package/src/widgets-v2/table/download.test.ts +75 -0
  828. package/src/widgets-v2/table/download.ts +47 -0
  829. package/src/widgets-v2/table/helpers.test.ts +214 -0
  830. package/src/widgets-v2/table/helpers.ts +136 -0
  831. package/src/widgets-v2/table/index.ts +23 -0
  832. package/src/widgets-v2/table/labels.tsx +41 -0
  833. package/src/widgets-v2/table/skeleton.test.tsx +26 -0
  834. package/src/widgets-v2/table/skeleton.tsx +65 -0
  835. package/src/widgets-v2/table/style.ts +43 -0
  836. package/src/widgets-v2/table/table-ui.test.tsx +200 -0
  837. package/src/widgets-v2/table/table-ui.tsx +364 -0
  838. package/src/widgets-v2/table/table.test.tsx +119 -0
  839. package/src/widgets-v2/table/table.tsx +179 -0
  840. package/src/widgets-v2/table/types.ts +55 -0
  841. package/src/widgets-v2/test-utils.ts +107 -0
  842. package/src/widgets-v2/timeseries/download.test.ts +95 -0
  843. package/src/widgets-v2/timeseries/download.ts +86 -0
  844. package/src/widgets-v2/timeseries/index.ts +10 -0
  845. package/src/widgets-v2/timeseries/options.test.ts +394 -0
  846. package/src/widgets-v2/timeseries/options.ts +348 -0
  847. package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
  848. package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
  849. package/src/widgets-v2/timeseries/types.ts +65 -0
  850. package/src/widgets-v2/toolbox/labels.ts +9 -0
  851. package/src/widgets-v2/toolbox/style.ts +33 -0
  852. package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
  853. package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
  854. package/src/widgets-v2/types.ts +25 -0
  855. package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
  856. package/src/widgets-v2/utils/index.ts +3 -0
  857. package/src/widgets-v2/utils/merge-options.test.ts +52 -0
  858. package/src/widgets-v2/utils/merge-options.ts +50 -0
  859. package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
  860. package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
  861. package/src/widgets-v2/wrapper/index.ts +14 -0
  862. package/src/widgets-v2/wrapper/labels.ts +11 -0
  863. package/src/widgets-v2/wrapper/style.ts +134 -0
  864. package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
  865. package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
  866. package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
  867. package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
  868. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
  869. package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
  870. package/dist/error-CEkRPccv.js +0 -39
  871. package/dist/error-CEkRPccv.js.map +0 -1
  872. package/dist/index-BnyeR7Qx.js +0 -6601
  873. package/dist/index-BnyeR7Qx.js.map +0 -1
  874. package/dist/no-data-hR3KcJ-_.js +0 -60
  875. package/dist/no-data-hR3KcJ-_.js.map +0 -1
  876. package/dist/note-t51drNe0.js +0 -124
  877. package/dist/note-t51drNe0.js.map +0 -1
  878. package/dist/options-D9wflre6.js +0 -49
  879. package/dist/options-D9wflre6.js.map +0 -1
  880. package/dist/row-DTCV0Ocm.js +0 -35
  881. package/dist/row-DTCV0Ocm.js.map +0 -1
  882. package/dist/series-CYNOu2Ju.js +0 -91
  883. package/dist/series-CYNOu2Ju.js.map +0 -1
  884. package/dist/styles-CAroD5Rc.js +0 -123
  885. package/dist/styles-CAroD5Rc.js.map +0 -1
  886. package/dist/types/hooks/use-debounce.d.ts +0 -19
  887. package/dist/types/widgets/category/components/index.d.ts +0 -10
  888. package/dist/types/widgets/index.d.ts +0 -9
  889. package/dist/types/widgets/table/hooks/index.d.ts +0 -6
  890. package/dist/use-widget-ref-P-2i0MJG.js +0 -19
  891. package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
  892. package/dist/utils-idmvq0Oa.js.map +0 -1
  893. package/dist/widget-store-CzDt8oSK.js +0 -163
  894. package/dist/widget-store-CzDt8oSK.js.map +0 -1
  895. package/dist/widgets.js +0 -13
  896. package/dist/widgets.js.map +0 -1
  897. package/src/hooks/use-debounce.ts +0 -55
  898. package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
  899. package/src/widgets/category/components/index.ts +0 -14
  900. package/src/widgets/index.ts +0 -25
  901. package/src/widgets/table/hooks/index.ts +0 -7
  902. /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
  903. /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
  904. /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
  905. /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
  906. /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
  907. /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
  908. /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
  909. /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
  910. /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
@@ -1,21 +1,22 @@
1
- import { jsx as g, jsxs as re, Fragment as be } from "react/jsx-runtime";
2
- import { c as q } from "react/compiler-runtime";
3
- import { IconButton as J, DialogContent as Pe, Dialog as Ae, Typography as Re, DialogTitle as Be, CircularProgress as Me, MenuItem as Ee, ListItemIcon as Fe, ListItemText as Le, Menu as xe, useTheme as Ze, Box as Ve, TextField as Ge, InputAdornment as ve, SvgIcon as He } from "@mui/material";
4
- import { u as $ } from "../widget-store-CzDt8oSK.js";
5
- import { FullscreenOutlined as Ne, Close as je, FileDownloadOutlined as Ue, PercentOutlined as Ke, SubdirectoryArrowLeftOutlined as Ye, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as $e, ClearOutlined as Qe } from "@mui/icons-material";
6
- import { useShallow as te } from "zustand/shallow";
7
- import { useState as he, useRef as de, useEffect as K } from "react";
8
- import "react-markdown";
9
- import { a as Bn, d as Mn } from "../exports-Cr43OCul.js";
1
+ import { jsx as x, jsxs as oe, Fragment as ue } from "react/jsx-runtime";
2
+ import { c as Q } from "react/compiler-runtime";
3
+ import { IconButton as ee, DialogContent as Ae, Dialog as Be, Typography as We, DialogTitle as Fe, CircularProgress as $e, MenuItem as we, ListItemIcon as Ne, ListItemText as Pe, Menu as Re, useTheme as Ge, Box as De, TextField as Ze, InputAdornment as xe, SvgIcon as Ve } from "@mui/material";
4
+ import { w as p, u as He } from "../widget-store-Bw5zRUGg.js";
5
+ import { u as ne } from "../use-widget-selector-DFl2hW0R.js";
6
+ import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Xe, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as ze, ClearOutlined as Qe, HighlightAltOutlined as et } from "@mui/icons-material";
7
+ import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as ve } from "react";
8
+ import { a as Rn, d as Dn } from "../exports-Cr43OCul.js";
10
9
  import "../lasso-tool-BYbxrJ-7.js";
11
10
  import "../cjs-D4KH3azB.js";
12
- import { T as ie } from "../tooltip-BDnrRKrp.js";
11
+ import { T as re } from "../tooltip-BDnrRKrp.js";
13
12
  import "@carto/ps-utils";
14
- import { b as Xe, a as et, D as tt } from "../utils-idmvq0Oa.js";
15
- import { useSensors as nt, useSensor as Ie, PointerSensor as ot, KeyboardSensor as lt, DndContext as st, closestCenter as rt } from "@dnd-kit/core";
16
- import { useSortable as it, sortableKeyboardCoordinates as ct, arrayMove as at, SortableContext as dt, verticalListSortingStrategy as ut } from "@dnd-kit/sortable";
17
- import { CSS as ft } from "@dnd-kit/utilities";
18
- const Ce = {
13
+ import { b as tt, a as nt, D as ot } from "../utils-BOhInag6.js";
14
+ import { useSensors as lt, useSensor as ye, PointerSensor as rt, KeyboardSensor as it, DndContext as st, closestCenter as ct } from "@dnd-kit/core";
15
+ import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as mt } from "@dnd-kit/sortable";
16
+ import { CSS as gt } from "@dnd-kit/utilities";
17
+ import { createPortal as ht } from "react-dom";
18
+ import { o as pt } from "../shared-resize-observer-98b1SK1e.js";
19
+ const Ie = {
19
20
  title: {
20
21
  container: {
21
22
  display: "flex",
@@ -31,268 +32,302 @@ const Ce = {
31
32
  spacing: n
32
33
  }) => n(1)
33
34
  }
34
- }, mt = {};
35
- function Ln(n) {
36
- const e = q(47), {
35
+ }, bt = {};
36
+ function Sn(n) {
37
+ const e = Q(42), {
37
38
  id: t,
38
- labels: a,
39
- children: p,
39
+ labels: r,
40
+ children: u,
40
41
  Icon: c,
41
- IconButtonProps: u,
42
- DialogContentProps: E,
43
- DialogProps: f
44
- } = n, b = E === void 0 ? mt : E;
45
- let d, S;
46
- e[0] !== b ? ({
47
- sx: S,
48
- ...d
49
- } = b, e[0] = b, e[1] = d, e[2] = S) : (d = e[1], S = e[2]);
50
- let r;
51
- e[3] !== t ? (r = (k) => k.getWidget(t)?.isFullScreen, e[3] = t, e[4] = r) : r = e[4];
52
- const s = $(te(r));
53
- let _;
54
- e[5] !== t ? (_ = (k) => k.getWidget(t)?.title, e[5] = t, e[6] = _) : _ = e[6];
55
- const T = $(te(_)), o = $(gt);
56
- let h;
57
- e[7] !== t || e[8] !== o ? (h = (k) => {
58
- o(t, {
59
- isFullScreen: k.isFullScreen
60
- });
61
- }, e[7] = t, e[8] = o, e[9] = h) : h = e[9];
62
- const i = h;
42
+ IconButtonProps: b,
43
+ DialogContentProps: C,
44
+ DialogProps: S
45
+ } = n, o = C === void 0 ? bt : C;
46
+ let i, l;
47
+ e[0] !== o ? ({
48
+ sx: l,
49
+ ...i
50
+ } = o, e[0] = o, e[1] = i, e[2] = l) : (i = e[1], l = e[2]);
51
+ const {
52
+ isFullScreen: a,
53
+ title: d
54
+ } = ne(t, St);
63
55
  let m;
64
- e[10] !== i ? (m = () => i({
56
+ e[3] !== t ? (m = (M) => {
57
+ p.setWidget(t, {
58
+ isFullScreen: M.isFullScreen
59
+ });
60
+ }, e[3] = t, e[4] = m) : m = e[4];
61
+ const f = m;
62
+ let h;
63
+ e[5] !== f ? (h = () => f({
65
64
  isFullScreen: !0
66
- }), e[10] = i, e[11] = m) : m = e[11];
67
- let v;
68
- e[12] !== c ? (v = c ?? /* @__PURE__ */ g(Ne, {}), e[12] = c, e[13] = v) : v = e[13];
69
- let l;
70
- e[14] !== u || e[15] !== m || e[16] !== v ? (l = /* @__PURE__ */ g(J, { ...u, onClick: m, children: v }), e[14] = u, e[15] = m, e[16] = v, e[17] = l) : l = e[17];
71
- const O = !!s, P = a?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
72
- let y;
73
- e[18] !== i ? (y = () => i({
65
+ }), e[5] = f, e[6] = h) : h = e[6];
66
+ let g;
67
+ e[7] !== c ? (g = c ?? /* @__PURE__ */ x(je, {}), e[7] = c, e[8] = g) : g = e[8];
68
+ let I;
69
+ e[9] !== b || e[10] !== h || e[11] !== g ? (I = /* @__PURE__ */ x(ee, { ...b, onClick: h, children: g }), e[9] = b, e[10] = h, e[11] = g, e[12] = I) : I = e[12];
70
+ const s = !!a, w = r?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
71
+ let L;
72
+ e[13] !== f ? (L = () => f({
74
73
  isFullScreen: !1
75
- }), e[18] = i, e[19] = y) : y = e[19];
76
- const A = `fullscreen-dialog-title-${t}`;
77
- let w;
78
- e[20] !== T ? (w = /* @__PURE__ */ g(Re, { variant: "subtitle1", component: "span", children: T }), e[20] = T, e[21] = w) : w = e[21];
74
+ }), e[13] = f, e[14] = L) : L = e[14];
75
+ const P = `fullscreen-dialog-title-${t}`;
79
76
  let D;
80
- e[22] !== i ? (D = () => i({
77
+ e[15] !== d ? (D = /* @__PURE__ */ x(We, { variant: "subtitle1", component: "span", children: d }), e[15] = d, e[16] = D) : D = e[16];
78
+ let O;
79
+ e[17] !== f ? (O = () => f({
81
80
  isFullScreen: !1
82
- }), e[22] = i, e[23] = D) : D = e[23];
83
- let L;
84
- e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ g(je, {}), e[24] = L) : L = e[24];
85
- let I;
86
- e[25] !== D ? (I = /* @__PURE__ */ g(J, { onClick: D, children: L }), e[25] = D, e[26] = I) : I = e[26];
87
- let W;
88
- e[27] !== A || e[28] !== w || e[29] !== I ? (W = /* @__PURE__ */ re(Be, { id: A, sx: Ce.title.container, children: [
89
- w,
90
- I
91
- ] }), e[27] = A, e[28] = w, e[29] = I, e[30] = W) : W = e[30];
92
- let z;
93
- e[31] !== S ? (z = {
94
- ...Ce.content,
95
- ...S
96
- }, e[31] = S, e[32] = z) : z = e[32];
81
+ }), e[17] = f, e[18] = O) : O = e[18];
82
+ let E;
83
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ x(Ue, {}), e[19] = E) : E = e[19];
97
84
  let R;
98
- e[33] !== d || e[34] !== p || e[35] !== z ? (R = /* @__PURE__ */ g(Pe, { sx: z, ...d, children: p }), e[33] = d, e[34] = p, e[35] = z, e[36] = R) : R = e[36];
99
- let C;
100
- e[37] !== f || e[38] !== P || e[39] !== y || e[40] !== W || e[41] !== R || e[42] !== O ? (C = /* @__PURE__ */ re(Ae, { maxWidth: !1, open: O, keepMounted: !0, "aria-labelledby": P, ...f, onClose: y, children: [
101
- W,
85
+ e[20] !== O ? (R = /* @__PURE__ */ x(ee, { onClick: O, children: E }), e[20] = O, e[21] = R) : R = e[21];
86
+ let k;
87
+ e[22] !== P || e[23] !== D || e[24] !== R ? (k = /* @__PURE__ */ oe(Fe, { id: P, sx: Ie.title.container, children: [
88
+ D,
102
89
  R
103
- ] }), e[37] = f, e[38] = P, e[39] = y, e[40] = W, e[41] = R, e[42] = O, e[43] = C) : C = e[43];
104
- let x;
105
- return e[44] !== C || e[45] !== l ? (x = /* @__PURE__ */ re(be, { children: [
106
- l,
107
- C
108
- ] }), e[44] = C, e[45] = l, e[46] = x) : x = e[46], x;
90
+ ] }), e[22] = P, e[23] = D, e[24] = R, e[25] = k) : k = e[25];
91
+ let v;
92
+ e[26] !== l ? (v = {
93
+ ...Ie.content,
94
+ ...l
95
+ }, e[26] = l, e[27] = v) : v = e[27];
96
+ let T;
97
+ e[28] !== i || e[29] !== u || e[30] !== v ? (T = /* @__PURE__ */ x(Ae, { sx: v, ...i, children: u }), e[28] = i, e[29] = u, e[30] = v, e[31] = T) : T = e[31];
98
+ let _;
99
+ e[32] !== S || e[33] !== k || e[34] !== T || e[35] !== s || e[36] !== w || e[37] !== L ? (_ = /* @__PURE__ */ oe(Be, { maxWidth: !1, open: s, keepMounted: !0, "aria-labelledby": w, ...S, onClose: L, children: [
100
+ k,
101
+ T
102
+ ] }), e[32] = S, e[33] = k, e[34] = T, e[35] = s, e[36] = w, e[37] = L, e[38] = _) : _ = e[38];
103
+ let z;
104
+ return e[39] !== _ || e[40] !== I ? (z = /* @__PURE__ */ oe(ue, { children: [
105
+ I,
106
+ _
107
+ ] }), e[39] = _, e[40] = I, e[41] = z) : z = e[41], z;
109
108
  }
110
- function gt(n) {
111
- return n.setWidget;
109
+ function St(n) {
110
+ return {
111
+ isFullScreen: n?.isFullScreen,
112
+ title: n?.title
113
+ };
112
114
  }
113
- const pt = {};
115
+ const xt = {};
114
116
  function xn(n) {
115
- const e = q(33), {
117
+ const e = Q(31), {
116
118
  id: t,
117
- items: a,
118
- labels: p,
119
+ items: r,
120
+ labels: u,
119
121
  Icon: c,
120
- IconButtonProps: u
121
- } = n, E = p === void 0 ? pt : p;
122
+ IconButtonProps: b
123
+ } = n, C = u === void 0 ? xt : u, {
124
+ data: S
125
+ } = ne(t, vt), [o, i] = ie(!1), [l, a] = ie(null);
126
+ let d;
127
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (M) => {
128
+ M.stopPropagation(), a(M.currentTarget);
129
+ }, e[0] = d) : d = e[0];
130
+ const m = d;
122
131
  let f;
123
- e[0] !== t ? (f = (C) => C.getWidget(t)?.data, e[0] = t, e[1] = f) : f = e[1];
124
- const b = $(te(f)), [d, S] = he(!1), [r, s] = he(null);
125
- let _;
126
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (C) => {
127
- C.stopPropagation(), s(C.currentTarget);
128
- }, e[2] = _) : _ = e[2];
129
- const T = _;
130
- let o;
131
- e[3] !== t ? (o = (C, x) => {
132
- const k = document.createElement("a");
133
- k.href = C, k.download = x.filename ?? t, k.style.display = "none", document.body.appendChild(k), k.click(), document.body.removeChild(k), x.callback?.(k.href);
134
- }, e[3] = t, e[4] = o) : o = e[4];
135
- const h = o;
136
- let i;
137
- e[5] !== b || e[6] !== h ? (i = async (C, x) => {
138
- C.stopPropagation(), S(!0), s(null);
139
- const k = await x.modifier(b);
140
- if (!k) {
141
- S(!1);
132
+ e[1] !== t ? (f = (M, A) => {
133
+ const W = document.createElement("a");
134
+ W.href = M, W.download = A.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), A.callback?.(W.href);
135
+ }, e[1] = t, e[2] = f) : f = e[2];
136
+ const h = f;
137
+ let g;
138
+ e[3] !== S || e[4] !== h ? (g = async (M, A) => {
139
+ M.stopPropagation(), i(!0), a(null);
140
+ const W = await A.modifier(S);
141
+ if (!W) {
142
+ i(!1);
142
143
  return;
143
144
  }
144
- h(k, x), S(!1);
145
- }, e[5] = b, e[6] = h, e[7] = i) : i = e[7];
146
- const m = i, v = E.ariaLabel ?? "download options", l = d || a.length === 0, O = d || r ? "active" : "";
145
+ h(W, A), i(!1);
146
+ }, e[3] = S, e[4] = h, e[5] = g) : g = e[5];
147
+ const I = g, s = C.ariaLabel ?? "download options", w = o || r.length === 0, L = o || l ? "active" : "";
147
148
  let P;
148
- e[8] !== c || e[9] !== d ? (P = d ? /* @__PURE__ */ g(Me, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ g(Ue, {}), e[8] = c, e[9] = d, e[10] = P) : P = e[10];
149
- let y;
150
- e[11] !== u || e[12] !== v || e[13] !== l || e[14] !== O || e[15] !== P ? (y = /* @__PURE__ */ g(J, { size: "small", "aria-label": v, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: T, ...u, disabled: l, className: O, children: P }), e[11] = u, e[12] = v, e[13] = l, e[14] = O, e[15] = P, e[16] = y) : y = e[16];
151
- let A, w;
152
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
149
+ e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x($e, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Xe, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
150
+ let D;
151
+ e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: m, ...b, disabled: w, className: L, children: P }), e[9] = b, e[10] = s, e[11] = w, e[12] = L, e[13] = P, e[14] = D) : D = e[14];
152
+ let O, E;
153
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
153
154
  vertical: "bottom",
154
155
  horizontal: "right"
155
- }, w = {
156
+ }, E = {
156
157
  vertical: "top",
157
158
  horizontal: "right"
158
- }, e[17] = A, e[18] = w) : (A = e[17], w = e[18]);
159
- const D = !!r;
160
- let L, I;
161
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => s(null), I = {
159
+ }, e[15] = O, e[16] = E) : (O = e[15], E = e[16]);
160
+ const R = !!l;
161
+ let k, v;
162
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => a(null), v = {
162
163
  sx: {
163
164
  paddingBottom: 0
164
165
  }
165
- }, e[19] = L, e[20] = I) : (L = e[19], I = e[20]);
166
- let W;
167
- if (e[21] !== m || e[22] !== a) {
168
- let C;
169
- e[24] !== m ? (C = (x) => /* @__PURE__ */ re(Ee, { disabled: x.disabled, onClick: (k) => {
170
- m(k, x);
166
+ }, e[17] = k, e[18] = v) : (k = e[17], v = e[18]);
167
+ let T;
168
+ if (e[19] !== I || e[20] !== r) {
169
+ let M;
170
+ e[22] !== I ? (M = (A) => /* @__PURE__ */ oe(we, { disabled: A.disabled, onClick: (W) => {
171
+ I(W, A);
171
172
  }, children: [
172
- x.icon && /* @__PURE__ */ g(Fe, { sx: {
173
+ A.icon && /* @__PURE__ */ x(Ne, { sx: {
173
174
  color: "text.primary"
174
- }, children: x.icon }),
175
- /* @__PURE__ */ g(Le, { children: x.label })
176
- ] }, x.id), e[24] = m, e[25] = C) : C = e[25], W = a.map(C), e[21] = m, e[22] = a, e[23] = W;
175
+ }, children: A.icon }),
176
+ /* @__PURE__ */ x(Pe, { children: A.label })
177
+ ] }, A.id), e[22] = I, e[23] = M) : M = e[23], T = r.map(M), e[19] = I, e[20] = r, e[21] = T;
177
178
  } else
178
- W = e[23];
179
+ T = e[21];
180
+ let _;
181
+ e[24] !== l || e[25] !== R || e[26] !== T ? (_ = /* @__PURE__ */ x(Re, { variant: "menu", elevation: 8, anchorOrigin: O, transformOrigin: E, anchorEl: l, open: R, onClose: k, MenuListProps: v, children: T }), e[24] = l, e[25] = R, e[26] = T, e[27] = _) : _ = e[27];
179
182
  let z;
180
- e[26] !== r || e[27] !== D || e[28] !== W ? (z = /* @__PURE__ */ g(xe, { variant: "menu", elevation: 8, anchorOrigin: A, transformOrigin: w, anchorEl: r, open: D, onClose: L, MenuListProps: I, children: W }), e[26] = r, e[27] = D, e[28] = W, e[29] = z) : z = e[29];
181
- let R;
182
- return e[30] !== y || e[31] !== z ? (R = /* @__PURE__ */ re(be, { children: [
183
- y,
184
- z
185
- ] }), e[30] = y, e[31] = z, e[32] = R) : R = e[32], R;
183
+ return e[28] !== _ || e[29] !== D ? (z = /* @__PURE__ */ oe(ue, { children: [
184
+ D,
185
+ _
186
+ ] }), e[28] = _, e[29] = D, e[30] = z) : z = e[30], z;
187
+ }
188
+ function vt(n) {
189
+ return {
190
+ data: n?.data
191
+ };
186
192
  }
187
- const ue = {
193
+ const se = {
188
194
  trigger: {
189
195
  '&[data-active="true"]': {
190
196
  background: (n) => n.palette.primary.relatedLight
191
197
  }
192
198
  }
193
199
  };
194
- function ht(n) {
195
- return n.reduce((e, t) => t.reduce((a, p) => {
196
- if (Array.isArray(p)) {
197
- const c = p.at(-1);
198
- return typeof c == "number" ? a + c : a;
200
+ function yt(n) {
201
+ return n.reduce((e, t) => t.reduce((r, u) => {
202
+ if (Array.isArray(u)) {
203
+ const c = u.at(-1);
204
+ return typeof c == "number" ? r + c : r;
199
205
  }
200
- return Object.entries(p).reduce((c, [u, E]) => u === "name" ? c : typeof E == "number" ? c + E : c, a);
206
+ return Object.entries(u).reduce((c, [b, C]) => b === "name" ? c : typeof C == "number" ? c + C : c, r);
201
207
  }, e), 0);
202
208
  }
203
- function bt(n, e) {
204
- return e === 0 ? n : n.map((t) => t.map((a) => {
205
- if (Array.isArray(a))
206
- return a.map((c, u) => u === a.length - 1 && typeof c == "number" ? c / e * 100 : c);
207
- const p = {};
208
- for (const [c, u] of Object.entries(a)) {
209
+ function It(n, e) {
210
+ return e === 0 ? n : n.map((t) => t.map((r) => {
211
+ if (Array.isArray(r))
212
+ return r.map((c, b) => b === r.length - 1 && typeof c == "number" ? c / e * 100 : c);
213
+ const u = {};
214
+ for (const [c, b] of Object.entries(r)) {
209
215
  if (c === "name") {
210
- p[c] = u;
216
+ u[c] = b;
211
217
  continue;
212
218
  }
213
- p[c] = typeof u == "number" ? u / e * 100 : u;
219
+ u[c] = typeof b == "number" ? b / e * 100 : b;
214
220
  }
215
- return p;
221
+ return u;
216
222
  }));
217
223
  }
218
- const pe = "relative-data";
219
- function $n(n) {
220
- const e = q(32), {
224
+ const ge = "relative-data", Te = "relative-data-config";
225
+ function vn(n) {
226
+ const e = Q(36), {
221
227
  id: t,
222
- order: a,
223
- defaultIsRelative: p,
228
+ order: r,
229
+ defaultIsRelative: u,
224
230
  labels: c,
225
- Icon: u,
226
- IconButtonProps: E
227
- } = n, f = a === void 0 ? 10 : a, b = p === void 0 ? !1 : p, d = de(void 0), S = de(void 0), r = $(Ct), s = $(It), _ = $(vt), T = $(_t), o = $(Tt);
228
- let h;
229
- e[0] !== t ? (h = (z) => z.getWidget(t)?.isRelative, e[0] = t, e[1] = h) : h = e[1];
230
- const m = $(h) ?? b;
231
- let v, l;
232
- e[2] !== b || e[3] !== s || e[4] !== t || e[5] !== r ? (v = () => {
233
- s(t)?.isRelative === void 0 && r(t, {
234
- isRelative: b
235
- });
236
- }, l = [b, s, t, r], e[2] = b, e[3] = s, e[4] = t, e[5] = r, e[6] = v, e[7] = l) : (v = e[6], l = e[7]), K(v, l);
237
- let O, P;
238
- e[8] !== t || e[9] !== m || e[10] !== f || e[11] !== _ || e[12] !== T ? (O = () => (_(t, {
239
- id: pe,
240
- order: f,
241
- enabled: m,
242
- fn: St
243
- }), () => T(t, pe)), P = [t, f, _, T, m], e[8] = t, e[9] = m, e[10] = f, e[11] = _, e[12] = T, e[13] = O, e[14] = P) : (O = e[13], P = e[14]), K(O, P);
244
- let y;
245
- e[15] !== s || e[16] !== t || e[17] !== m || e[18] !== o || e[19] !== r ? (y = () => {
246
- const z = !m;
247
- o(t, pe, z);
248
- let R = d.current;
249
- if (z) {
250
- const C = s(t);
251
- S.current = C?.formatter;
252
- const x = s(t)?.max;
253
- d.current = x, R = 100;
231
+ Icon: b,
232
+ IconButtonProps: C
233
+ } = n, S = r === void 0 ? 10 : r, o = u === void 0 ? !1 : u, i = le(void 0);
234
+ let l;
235
+ e[0] !== o ? (l = (v) => ({
236
+ isRelative: v?.isRelative ?? o
237
+ }), e[0] = o, e[1] = l) : l = e[1];
238
+ const {
239
+ isRelative: a
240
+ } = ne(t, l);
241
+ let d, m;
242
+ e[2] !== o || e[3] !== t ? (d = () => {
243
+ const v = p.getWidget(t);
244
+ v?.isRelative === void 0 && (o ? p.setWidget(t, {
245
+ isRelative: !0,
246
+ originalFormatter: v?.formatter,
247
+ originalMax: v?.max
248
+ }) : p.setWidget(t, {
249
+ isRelative: o
250
+ }));
251
+ }, m = [t, o], e[2] = o, e[3] = t, e[4] = d, e[5] = m) : (d = e[4], m = e[5]), H(d, m);
252
+ let f, h;
253
+ e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (p.registerTool(t, {
254
+ id: ge,
255
+ order: S,
256
+ enabled: o,
257
+ fn: Tt
258
+ }), () => p.unregisterTool(t, ge)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
259
+ let g, I;
260
+ e[11] !== t || e[12] !== a ? (g = () => {
261
+ p.setToolEnabled(t, ge, a);
262
+ }, I = [t, a], e[11] = t, e[12] = a, e[13] = g, e[14] = I) : (g = e[13], I = e[14]), H(g, I);
263
+ let s;
264
+ e[15] !== t || e[16] !== S ? (s = () => (p.registerTool(t, {
265
+ id: Te,
266
+ type: "config",
267
+ order: S,
268
+ enabled: !0,
269
+ fn: (v) => {
270
+ const T = v, _ = p.getWidget(t), z = _?.sourceData != null && !(Array.isArray(_.sourceData) && _.sourceData.length === 0);
271
+ if (_?.isRelative) {
272
+ if (!z)
273
+ return T;
274
+ if (!i.current) {
275
+ const M = _?.locale;
276
+ i.current = (A) => new Intl.NumberFormat(M, {
277
+ style: "percent",
278
+ minimumFractionDigits: 1,
279
+ maximumFractionDigits: 1
280
+ }).format(A / 100);
281
+ }
282
+ return {
283
+ ...T,
284
+ formatter: i.current,
285
+ max: 100
286
+ };
287
+ }
288
+ return i.current = void 0, _ != null && "originalFormatter" in _ ? {
289
+ ...T,
290
+ formatter: _.originalFormatter,
291
+ max: _.originalMax
292
+ } : T;
254
293
  }
255
- r(t, {
256
- isRelative: z,
257
- max: R,
258
- formatter: z ? (C) => {
259
- const x = s(t);
260
- return new Intl.NumberFormat(x?.locale, {
261
- style: "percent",
262
- minimumFractionDigits: 1,
263
- maximumFractionDigits: 1
264
- }).format(C / 100);
265
- } : S.current
266
- });
267
- }, e[15] = s, e[16] = t, e[17] = m, e[18] = o, e[19] = r, e[20] = y) : y = e[20];
268
- const A = y, w = m ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", D = c?.ariaLabel ?? w;
294
+ }), () => {
295
+ const v = p.getWidget(t);
296
+ v?.isRelative && "originalFormatter" in v && p.setWidget(t, {
297
+ formatter: v.originalFormatter,
298
+ max: v.originalMax
299
+ }), i.current = void 0, p.unregisterTool(t, Te);
300
+ }), e[15] = t, e[16] = S, e[17] = s) : s = e[17];
301
+ let w;
302
+ e[18] !== o || e[19] !== t || e[20] !== S ? (w = [t, S, o], e[18] = o, e[19] = t, e[20] = S, e[21] = w) : w = e[21], H(s, w);
269
303
  let L;
270
- e[21] !== u ? (L = u ?? /* @__PURE__ */ g(Ke, {}), e[21] = u, e[22] = L) : L = e[22];
271
- let I;
272
- e[23] !== E || e[24] !== A || e[25] !== m || e[26] !== L || e[27] !== D ? (I = /* @__PURE__ */ g(J, { size: "small", "aria-label": D, onClick: A, sx: ue.trigger, "data-active": m, ...E, children: L }), e[23] = E, e[24] = A, e[25] = m, e[26] = L, e[27] = D, e[28] = I) : I = e[28];
273
- let W;
274
- return e[29] !== I || e[30] !== w ? (W = /* @__PURE__ */ g(ie, { title: w, children: I }), e[29] = I, e[30] = w, e[31] = W) : W = e[31], W;
275
- }
276
- function St(n) {
277
- const e = n, t = ht(e);
278
- return bt(e, t);
304
+ e[22] !== t || e[23] !== a ? (L = () => {
305
+ const v = !a;
306
+ if (i.current = void 0, v) {
307
+ const T = p.getWidget(t);
308
+ p.setWidget(t, {
309
+ isRelative: !0,
310
+ originalFormatter: T?.formatter,
311
+ originalMax: T?.max
312
+ });
313
+ } else
314
+ p.setWidget(t, {
315
+ isRelative: !1
316
+ });
317
+ }, e[22] = t, e[23] = a, e[24] = L) : L = e[24];
318
+ const P = L, D = a ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", O = c?.ariaLabel ?? D;
319
+ let E;
320
+ e[25] !== b ? (E = b ?? /* @__PURE__ */ x(Ye, {}), e[25] = b, e[26] = E) : E = e[26];
321
+ let R;
322
+ e[27] !== C || e[28] !== P || e[29] !== a || e[30] !== O || e[31] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": a, ...C, children: E }), e[27] = C, e[28] = P, e[29] = a, e[30] = O, e[31] = E, e[32] = R) : R = e[32];
323
+ let k;
324
+ return e[33] !== R || e[34] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[33] = R, e[34] = D, e[35] = k) : k = e[35], k;
279
325
  }
280
326
  function Tt(n) {
281
- return n.setToolEnabled;
282
- }
283
- function _t(n) {
284
- return n.unregisterTool;
285
- }
286
- function vt(n) {
287
- return n.registerTool;
327
+ const e = n, t = yt(e);
328
+ return It(e, t);
288
329
  }
289
- function It(n) {
290
- return n.getWidget;
291
- }
292
- function Ct(n) {
293
- return n.setWidget;
294
- }
295
- const ye = {
330
+ const _e = {
296
331
  container: {
297
332
  display: "flex",
298
333
  alignItems: "center",
@@ -305,653 +340,978 @@ const ye = {
305
340
  background: (n) => n.palette.primary.relatedLight
306
341
  }
307
342
  }
308
- }, ee = "zoom-toggle";
309
- function On(n) {
310
- const e = q(50), {
343
+ }, he = "zoom-toggle";
344
+ function yn(n) {
345
+ const e = Q(63), {
311
346
  id: t,
312
- defaultZoom: a,
313
- defaultZoomStart: p,
347
+ defaultZoom: r,
348
+ defaultZoomStart: u,
314
349
  defaultZoomEnd: c,
315
- labels: u,
316
- Icon: E,
317
- ResetIcon: f,
318
- IconButtonProps: b
319
- } = n, d = a === void 0 ? !1 : a, S = p === void 0 ? 0 : p, r = c === void 0 ? 100 : c, s = Ze(), _ = $(Ot), T = $($t), o = $(xt), h = $(Lt), i = $(Et);
350
+ labels: b,
351
+ Icon: C,
352
+ ResetIcon: S,
353
+ IconButtonProps: o
354
+ } = n, i = r === void 0 ? !1 : r, l = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ge();
320
355
  let m;
321
- e[0] !== t ? (m = (V) => (V.getWidget(t)?.registeredTools ?? []).find(kt), e[0] = t, e[1] = m) : m = e[1];
322
- const v = $(te(m)), l = v?.enabled ?? d, O = v?.config?.start ?? S, P = v?.config?.end ?? r;
323
- let y;
324
- e[2] !== t || e[3] !== h || e[4] !== i ? (y = (V) => {
325
- const B = V, U = B.start ?? B.batch?.[0]?.start, H = B.end ?? B.batch?.[0]?.end;
326
- U !== void 0 && H !== void 0 && (h(t, ee, !0), i(t, ee, {
327
- enabled: !0,
328
- start: U,
329
- end: H
330
- }));
331
- }, e[2] = t, e[3] = h, e[4] = i, e[5] = y) : y = e[5];
332
- const A = y;
333
- let w, D;
334
- e[6] !== d || e[7] !== r || e[8] !== S || e[9] !== _ || e[10] !== A || e[11] !== t || e[12] !== T || e[13] !== s || e[14] !== o ? (w = () => {
335
- const V = _(t)?.registeredTools?.find(yt), B = V?.enabled ?? d, U = V?.config?.start ?? S, H = V?.config?.end ?? r;
336
- return T(t, {
337
- id: ee,
338
- type: "config",
339
- order: 20,
340
- enabled: B,
341
- fn: (ne, Y) => {
342
- const Q = ne, se = Q.option, oe = Q.onEvents ?? {}, ce = Y?.enabled ?? !1, X = Y?.start ?? 0, le = Y?.end ?? 100, Se = se?.legend, Oe = Se?.show !== !1 && Se !== void 0, we = parseInt(s?.spacing?.(4) ?? "32"), De = Xe(ce, {
343
- start: X,
344
- end: le
345
- }, {
346
- inside: !0,
347
- xSlider: !0,
348
- ySlider: !1,
349
- bottomOffset: Oe ? 28 : 0
350
- }, s), fe = se?.grid, Te = typeof fe?.bottom == "number" ? fe.bottom : parseInt(fe?.bottom ?? "24"), We = ce ? Te + we + 8 : Te, _e = {
351
- ...oe
352
- };
353
- delete _e.dataZoom;
354
- const ze = ce ? {
355
- ...oe,
356
- dataZoom: A
357
- } : _e;
358
- return {
359
- ...Q,
360
- option: {
361
- ...se,
362
- ...De,
363
- grid: {
364
- ...fe,
365
- bottom: We
366
- }
367
- },
368
- onEvents: ze
369
- };
370
- },
371
- config: {
372
- enabled: B,
373
- start: U,
374
- end: H
375
- }
376
- }), () => o(t, ee);
377
- }, D = [d, r, S, _, A, t, T, s, o], e[6] = d, e[7] = r, e[8] = S, e[9] = _, e[10] = A, e[11] = t, e[12] = T, e[13] = s, e[14] = o, e[15] = w, e[16] = D) : (w = e[15], D = e[16]), K(w, D);
378
- let L;
379
- e[17] !== t || e[18] !== h || e[19] !== i || e[20] !== l || e[21] !== P || e[22] !== O ? (L = () => {
380
- const V = !l;
381
- h(t, ee, V), i(t, ee, {
382
- enabled: V,
383
- start: V ? O : 0,
384
- end: V ? P : 100
356
+ e[0] !== i || e[1] !== a || e[2] !== l ? (m = (y) => ({
357
+ zoom: y?.zoom ?? i,
358
+ zoomStart: y?.zoomStart ?? l,
359
+ zoomEnd: y?.zoomEnd ?? a
360
+ }), e[0] = i, e[1] = a, e[2] = l, e[3] = m) : m = e[3];
361
+ const {
362
+ zoom: f,
363
+ zoomStart: h,
364
+ zoomEnd: g
365
+ } = ne(t, m);
366
+ let I, s;
367
+ e[4] !== i || e[5] !== a || e[6] !== l || e[7] !== t ? (I = () => {
368
+ p.getWidget(t)?.zoom === void 0 && p.setWidget(t, {
369
+ zoom: i,
370
+ zoomStart: l,
371
+ zoomEnd: a
385
372
  });
386
- }, e[17] = t, e[18] = h, e[19] = i, e[20] = l, e[21] = P, e[22] = O, e[23] = L) : L = e[23];
387
- const I = L;
388
- let W;
389
- e[24] !== r || e[25] !== S || e[26] !== t || e[27] !== h || e[28] !== i ? (W = () => {
390
- h(t, ee, !0), i(t, ee, {
391
- enabled: !0,
392
- start: S,
393
- end: r
373
+ }, s = [t, i, l, a], e[4] = i, e[5] = a, e[6] = l, e[7] = t, e[8] = I, e[9] = s) : (I = e[8], s = e[9]), H(I, s);
374
+ let w;
375
+ e[10] !== t ? (w = (y) => {
376
+ const B = y, F = B.start ?? B.batch?.[0]?.start, V = B.end ?? B.batch?.[0]?.end;
377
+ F !== void 0 && V !== void 0 && p.setWidget(t, {
378
+ zoom: !0,
379
+ zoomStart: F,
380
+ zoomEnd: V
394
381
  });
395
- }, e[24] = r, e[25] = S, e[26] = t, e[27] = h, e[28] = i, e[29] = W) : W = e[29];
396
- const z = W, R = u?.enable ?? "Enable zoom", C = u?.disable ?? "Disable zoom", x = u?.reset ?? "Reset zoom", k = l ? C : R, j = u?.ariaLabel ?? k;
382
+ }, e[10] = t, e[11] = w) : w = e[11];
383
+ const L = w;
384
+ let P;
385
+ e[12] !== i || e[13] !== L || e[14] !== t || e[15] !== d ? (P = () => (p.registerTool(t, {
386
+ id: he,
387
+ type: "config",
388
+ order: 20,
389
+ enabled: i,
390
+ fn: (y) => {
391
+ const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"), me = tt({
392
+ start: q,
393
+ end: te
394
+ }, {
395
+ inside: !0,
396
+ xSlider: !0,
397
+ ySlider: !1,
398
+ bottomOffset: J ? 28 : 0
399
+ }, d), ae = F?.grid, Oe = (typeof ae?.bottom == "number" ? ae.bottom : parseInt(ae?.bottom ?? "24")) + ce + 8, Me = {
400
+ ...V,
401
+ dataZoom: L
402
+ };
403
+ return {
404
+ ...B,
405
+ option: {
406
+ ...F,
407
+ ...me,
408
+ grid: {
409
+ ...ae,
410
+ bottom: Oe
411
+ }
412
+ },
413
+ onEvents: Me
414
+ };
415
+ }
416
+ }), () => p.unregisterTool(t, he)), e[12] = i, e[13] = L, e[14] = t, e[15] = d, e[16] = P) : P = e[16];
417
+ let D;
418
+ e[17] !== i || e[18] !== a || e[19] !== l || e[20] !== L || e[21] !== t || e[22] !== d ? (D = [t, d, L, i, l, a], e[17] = i, e[18] = a, e[19] = l, e[20] = L, e[21] = t, e[22] = d, e[23] = D) : D = e[23], H(P, D);
419
+ let O, E;
420
+ e[24] !== t || e[25] !== f ? (O = () => {
421
+ p.setToolEnabled(t, he, f);
422
+ }, E = [t, f], e[24] = t, e[25] = f, e[26] = O, e[27] = E) : (O = e[26], E = e[27]), H(O, E);
423
+ let R;
424
+ e[28] !== t ? (R = () => {
425
+ p.triggerToolPipeline(t);
426
+ }, e[28] = t, e[29] = R) : R = e[29];
427
+ let k;
428
+ e[30] !== t || e[31] !== g || e[32] !== h ? (k = [t, h, g], e[30] = t, e[31] = g, e[32] = h, e[33] = k) : k = e[33], H(R, k);
429
+ let v;
430
+ e[34] !== t || e[35] !== f || e[36] !== g || e[37] !== h ? (v = () => {
431
+ const y = !f;
432
+ p.setWidget(t, {
433
+ zoom: y,
434
+ zoomStart: y ? h : 0,
435
+ zoomEnd: y ? g : 100
436
+ });
437
+ }, e[34] = t, e[35] = f, e[36] = g, e[37] = h, e[38] = v) : v = e[38];
438
+ const T = v;
439
+ let _;
440
+ e[39] !== a || e[40] !== l || e[41] !== t ? (_ = () => {
441
+ p.setWidget(t, {
442
+ zoom: !0,
443
+ zoomStart: l,
444
+ zoomEnd: a
445
+ });
446
+ }, e[39] = a, e[40] = l, e[41] = t, e[42] = _) : _ = e[42];
447
+ const z = _, M = b?.enable ?? "Enable zoom", A = b?.disable ?? "Disable zoom", W = b?.reset ?? "Reset zoom", U = f ? A : M, j = b?.ariaLabel ?? U;
448
+ let $;
449
+ e[43] !== C ? ($ = C ?? /* @__PURE__ */ x(qe, {}), e[43] = C, e[44] = $) : $ = e[44];
397
450
  let G;
398
- e[30] !== E ? (G = E ?? /* @__PURE__ */ g(qe, {}), e[30] = E, e[31] = G) : G = e[31];
399
- let F;
400
- e[32] !== b || e[33] !== I || e[34] !== j || e[35] !== G || e[36] !== l ? (F = /* @__PURE__ */ g(J, { size: "small", "aria-label": j, onClick: I, sx: ye.trigger, "data-active": l, ...b, children: G }), e[32] = b, e[33] = I, e[34] = j, e[35] = G, e[36] = l, e[37] = F) : F = e[37];
451
+ e[45] !== o || e[46] !== T || e[47] !== j || e[48] !== $ || e[49] !== f ? (G = /* @__PURE__ */ x(ee, { size: "small", "aria-label": j, onClick: T, sx: _e.trigger, "data-active": f, ...o, children: $ }), e[45] = o, e[46] = T, e[47] = j, e[48] = $, e[49] = f, e[50] = G) : G = e[50];
401
452
  let Z;
402
- e[38] !== F || e[39] !== k ? (Z = /* @__PURE__ */ g(ie, { title: k, children: F }), e[38] = F, e[39] = k, e[40] = Z) : Z = e[40];
403
- let M;
404
- e[41] !== b || e[42] !== f || e[43] !== z || e[44] !== x || e[45] !== l ? (M = l && /* @__PURE__ */ g(ie, { title: x, children: /* @__PURE__ */ g(J, { size: "small", "aria-label": x, onClick: z, ...b, children: f ?? /* @__PURE__ */ g(Ye, {}) }) }), e[41] = b, e[42] = f, e[43] = z, e[44] = x, e[45] = l, e[46] = M) : M = e[46];
453
+ e[51] !== G || e[52] !== U ? (Z = /* @__PURE__ */ x(re, { title: U, children: G }), e[51] = G, e[52] = U, e[53] = Z) : Z = e[53];
405
454
  let N;
406
- return e[47] !== Z || e[48] !== M ? (N = /* @__PURE__ */ re(Ve, { sx: ye.container, children: [
455
+ e[54] !== o || e[55] !== S || e[56] !== z || e[57] !== W || e[58] !== f ? (N = f && /* @__PURE__ */ x(re, { title: W, children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: z, ...o, children: S ?? /* @__PURE__ */ x(Ke, {}) }) }), e[54] = o, e[55] = S, e[56] = z, e[57] = W, e[58] = f, e[59] = N) : N = e[59];
456
+ let K;
457
+ return e[60] !== Z || e[61] !== N ? (K = /* @__PURE__ */ oe(De, { sx: _e.container, children: [
407
458
  Z,
408
- M
409
- ] }), e[47] = Z, e[48] = M, e[49] = N) : N = e[49], N;
410
- }
411
- function yt(n) {
412
- return n.id === ee;
413
- }
414
- function kt(n) {
415
- return n.id === ee;
416
- }
417
- function Et(n) {
418
- return n.updateToolConfig;
419
- }
420
- function Lt(n) {
421
- return n.setToolEnabled;
422
- }
423
- function xt(n) {
424
- return n.unregisterTool;
425
- }
426
- function $t(n) {
427
- return n.registerTool;
428
- }
429
- function Ot(n) {
430
- return n.getWidget;
459
+ N
460
+ ] }), e[60] = Z, e[61] = N, e[62] = K) : K = e[62], K;
431
461
  }
432
- const wt = () => {
433
- const n = q(1);
462
+ const _t = () => {
463
+ const n = Q(1);
434
464
  let e;
435
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ g("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ g("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
436
- }, me = "stack-toggle";
437
- function wn(n) {
438
- const e = q(47), {
465
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
466
+ }, pe = "stack-toggle";
467
+ function In(n) {
468
+ const e = Q(35), {
439
469
  id: t,
440
- defaultIsStacked: a,
441
- labels: p,
470
+ defaultIsStacked: r,
471
+ labels: u,
442
472
  Icon: c,
443
- IconButtonProps: u
444
- } = n, E = a === void 0 ? !1 : a, f = $(Bt), b = $(Rt), d = $(At), S = $(Pt), r = $(zt);
445
- let s;
446
- e[0] !== t ? (s = (k) => k.getWidget(t)?.isStacked, e[0] = t, e[1] = s) : s = e[1];
447
- const _ = $(te(s));
448
- let T;
449
- e[2] !== t ? (T = (k) => k.getWidget(t)?.option, e[2] = t, e[3] = T) : T = e[3];
450
- const o = $(te(T));
451
- let h;
473
+ IconButtonProps: b
474
+ } = n, C = r === void 0 ? !1 : r, {
475
+ storeIsStacked: S,
476
+ option: o
477
+ } = ne(t, kt);
478
+ let i;
452
479
  e: {
453
480
  if (!o) {
454
- let M;
455
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
481
+ let A;
482
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
456
483
  hasMultiSeries: !1,
457
484
  hasStackInSeries: !1
458
- }, e[4] = M) : M = e[4], h = M;
485
+ }, e[0] = A) : A = e[0], i = A;
459
486
  break e;
460
487
  }
461
- let k;
462
- e[5] !== o.series ? (k = Array.isArray(o.series) ? o.series : [o.series], e[5] = o.series, e[6] = k) : k = e[6];
463
- const j = k, G = j.length > 1;
464
- let F;
465
- e[7] !== j ? (F = j.some(Wt), e[7] = j, e[8] = F) : F = e[8];
466
- let Z;
467
- e[9] !== G || e[10] !== F ? (Z = {
468
- hasMultiSeries: G,
469
- hasStackInSeries: F
470
- }, e[9] = G, e[10] = F, e[11] = Z) : Z = e[11], h = Z;
488
+ let v;
489
+ e[1] !== o.series ? (v = Array.isArray(o.series) ? o.series : [o.series], e[1] = o.series, e[2] = v) : v = e[2];
490
+ const T = v, _ = T.length > 1;
491
+ let z;
492
+ e[3] !== T ? (z = T.some(Lt), e[3] = T, e[4] = z) : z = e[4];
493
+ let M;
494
+ e[5] !== _ || e[6] !== z ? (M = {
495
+ hasMultiSeries: _,
496
+ hasStackInSeries: z
497
+ }, e[5] = _, e[6] = z, e[7] = M) : M = e[7], i = M;
471
498
  }
472
499
  const {
473
- hasMultiSeries: i,
474
- hasStackInSeries: m
475
- } = h, v = m || E, l = _ ?? v;
476
- let O, P;
477
- e[12] !== i || e[13] !== t || e[14] !== l || e[15] !== b || e[16] !== d ? (O = () => (b(t, {
478
- id: me,
500
+ hasMultiSeries: l,
501
+ hasStackInSeries: a
502
+ } = i, d = a || C, m = S ?? d;
503
+ let f, h;
504
+ e[8] !== t ? (f = () => (p.registerTool(t, {
505
+ id: pe,
479
506
  type: "config",
480
507
  order: 10,
481
- enabled: l && i,
482
- fn: Dt,
483
- config: {
484
- stacked: l
485
- }
486
- }), () => d(t, me)), P = [t, b, d, l, i], e[12] = i, e[13] = t, e[14] = l, e[15] = b, e[16] = d, e[17] = O, e[18] = P) : (O = e[17], P = e[18]), K(O, P);
487
- let y, A;
488
- e[19] !== i || e[20] !== t || e[21] !== l || e[22] !== S || e[23] !== r ? (y = () => {
489
- S(t, me, l && i), r(t, me, {
490
- stacked: l
508
+ enabled: !1,
509
+ fn: Et
510
+ }), () => p.unregisterTool(t, pe)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
511
+ let g, I;
512
+ e[11] !== l || e[12] !== t || e[13] !== m ? (g = () => {
513
+ p.setToolEnabled(t, pe, m && l);
514
+ }, I = [t, m, l], e[11] = l, e[12] = t, e[13] = m, e[14] = g, e[15] = I) : (g = e[14], I = e[15]), H(g, I);
515
+ let s, w;
516
+ e[16] !== d || e[17] !== t || e[18] !== S ? (s = () => {
517
+ S === void 0 && p.setWidget(t, {
518
+ isStacked: d
491
519
  });
492
- }, A = [t, l, i, S, r], e[19] = i, e[20] = t, e[21] = l, e[22] = S, e[23] = r, e[24] = y, e[25] = A) : (y = e[24], A = e[25]), K(y, A);
493
- let w, D;
494
- e[26] !== v || e[27] !== t || e[28] !== f || e[29] !== _ ? (D = () => {
495
- _ === void 0 && f(t, {
496
- isStacked: v
497
- });
498
- }, w = [v, t, f, _], e[26] = v, e[27] = t, e[28] = f, e[29] = _, e[30] = w, e[31] = D) : (w = e[30], D = e[31]), K(D, w);
520
+ }, w = [d, t, S], e[16] = d, e[17] = t, e[18] = S, e[19] = s, e[20] = w) : (s = e[19], w = e[20]), H(s, w);
499
521
  let L;
500
- e[32] !== t || e[33] !== l || e[34] !== f ? (L = () => {
501
- f(t, {
502
- isStacked: !l
522
+ e[21] !== t || e[22] !== m ? (L = () => {
523
+ p.setWidget(t, {
524
+ isStacked: !m
503
525
  });
504
- }, e[32] = t, e[33] = l, e[34] = f, e[35] = L) : L = e[35];
505
- const I = L, W = l ? p?.unstacked ?? "Disable stacking" : p?.stacked ?? "Enable stacking";
506
- if (!i)
526
+ }, e[21] = t, e[22] = m, e[23] = L) : L = e[23];
527
+ const P = L, D = m ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
528
+ if (!l)
507
529
  return null;
508
- const z = p?.ariaLabel ?? W;
530
+ const O = u?.ariaLabel ?? D;
531
+ let E;
532
+ e[24] !== c ? (E = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = E) : E = e[25];
509
533
  let R;
510
- e[36] !== c ? (R = c ?? /* @__PURE__ */ g(wt, {}), e[36] = c, e[37] = R) : R = e[37];
511
- let C;
512
- e[38] !== u || e[39] !== I || e[40] !== l || e[41] !== z || e[42] !== R ? (C = /* @__PURE__ */ g(J, { size: "small", "aria-label": z, onClick: I, sx: ue.trigger, "data-active": l, ...u, children: R }), e[38] = u, e[39] = I, e[40] = l, e[41] = z, e[42] = R, e[43] = C) : C = e[43];
513
- let x;
514
- return e[44] !== C || e[45] !== W ? (x = /* @__PURE__ */ g(ie, { title: W, children: C }), e[44] = C, e[45] = W, e[46] = x) : x = e[46], x;
515
- }
516
- function Dt(n, e) {
517
- const t = n, a = t.option;
518
- if (!a)
534
+ e[26] !== b || e[27] !== P || e[28] !== m || e[29] !== O || e[30] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": m, ...b, children: E }), e[26] = b, e[27] = P, e[28] = m, e[29] = O, e[30] = E, e[31] = R) : R = e[31];
535
+ let k;
536
+ return e[32] !== R || e[33] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = k) : k = e[34], k;
537
+ }
538
+ function Et(n) {
539
+ const e = n, t = e.option;
540
+ if (!t)
519
541
  return n;
520
- const p = e?.stacked ?? !1, u = (Array.isArray(a.series) ? a.series : [a.series]).map((E) => {
521
- const f = E?.stack;
522
- return {
523
- ...E,
524
- ...et(p, typeof f == "string" ? f : tt)
525
- };
526
- });
542
+ const u = (Array.isArray(t.series) ? t.series : [t.series]).map(Ct);
527
543
  return {
528
- ...t,
544
+ ...e,
529
545
  option: {
530
- ...a,
546
+ ...t,
531
547
  series: u
532
548
  }
533
549
  };
534
550
  }
535
- function Wt(n) {
536
- return n?.stack;
537
- }
538
- function zt(n) {
539
- return n.updateToolConfig;
540
- }
541
- function Pt(n) {
542
- return n.setToolEnabled;
543
- }
544
- function At(n) {
545
- return n.unregisterTool;
551
+ function Ct(n) {
552
+ const e = n?.stack;
553
+ return {
554
+ ...n,
555
+ ...nt(typeof e == "string" ? e : ot)
556
+ };
546
557
  }
547
- function Rt(n) {
548
- return n.registerTool;
558
+ function Lt(n) {
559
+ return n?.stack;
549
560
  }
550
- function Bt(n) {
551
- return n.setWidget;
561
+ function kt(n) {
562
+ return {
563
+ storeIsStacked: n?.isStacked,
564
+ option: n?.option
565
+ };
552
566
  }
553
- const ae = "lock-selection";
554
- function Dn(n) {
555
- const e = q(36), {
567
+ const de = "lock-selection";
568
+ function Tn(n) {
569
+ const e = Q(24), {
556
570
  id: t,
557
- selectedItems: a,
558
- order: p,
571
+ selectedItems: r,
572
+ order: u,
559
573
  labels: c,
560
- Icon: u,
561
- IconButtonProps: E
562
- } = n, f = p === void 0 ? 30 : p, b = $(Ht), d = $(Gt), S = $(Vt), r = $(Zt), s = $(Ft);
563
- let _;
564
- e[0] !== t ? (_ = (W) => W.getWidget(t)?.isLocked, e[0] = t, e[1] = _) : _ = e[1];
565
- const o = $(te(_)) ?? !1;
566
- let h;
567
- e[2] !== o || e[3] !== a ? (h = o ? a : [], e[2] = o, e[3] = a, e[4] = h) : h = e[4];
568
- const i = h;
569
- let m, v;
570
- e[5] !== t || e[6] !== o || e[7] !== i || e[8] !== f || e[9] !== d || e[10] !== S ? (m = () => (d(t, {
571
- id: ae,
572
- order: f,
573
- enabled: o,
574
- fn: Mt,
575
- config: {
576
- lockedItems: i
574
+ Icon: b,
575
+ IconButtonProps: C
576
+ } = n, S = u === void 0 ? 30 : u, {
577
+ storeIsLocked: o
578
+ } = ne(t, wt), i = o ?? !1;
579
+ let l, a;
580
+ e[0] !== t || e[1] !== S ? (l = () => (p.registerTool(t, {
581
+ id: de,
582
+ order: S,
583
+ enabled: !1,
584
+ fn: (P) => {
585
+ const O = p.getWidget(t)?.lockedItems ?? [];
586
+ return O.length === 0 ? P : Pt(P, O);
577
587
  }
578
- }), () => S(t, ae)), v = [t, f, d, S, o, i], e[5] = t, e[6] = o, e[7] = i, e[8] = f, e[9] = d, e[10] = S, e[11] = m, e[12] = v) : (m = e[11], v = e[12]), K(m, v);
579
- let l, O;
580
- e[13] !== t || e[14] !== o || e[15] !== i || e[16] !== r || e[17] !== s ? (l = () => {
581
- r(t, ae, o), s(t, ae, {
582
- lockedItems: i
583
- });
584
- }, O = [t, o, i, r, s], e[13] = t, e[14] = o, e[15] = i, e[16] = r, e[17] = s, e[18] = l, e[19] = O) : (l = e[18], O = e[19]), K(l, O);
585
- let P;
586
- e[20] !== t || e[21] !== o || e[22] !== a || e[23] !== b ? (P = () => {
587
- o ? b(t, {
588
+ }), () => p.unregisterTool(t, de)), a = [t, S], e[0] = t, e[1] = S, e[2] = l, e[3] = a) : (l = e[2], a = e[3]), H(l, a);
589
+ let d, m;
590
+ e[4] !== t || e[5] !== i || e[6] !== r.length ? (d = () => {
591
+ if (i && r.length === 0) {
592
+ p.setWidget(t, {
593
+ isLocked: !1,
594
+ lockedItems: []
595
+ });
596
+ return;
597
+ }
598
+ p.setToolEnabled(t, de, i);
599
+ }, m = [t, i, r.length], e[4] = t, e[5] = i, e[6] = r.length, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), H(d, m);
600
+ let f;
601
+ e[9] !== t || e[10] !== i || e[11] !== r ? (f = () => {
602
+ i ? p.setWidget(t, {
588
603
  isLocked: !1,
589
604
  lockedItems: []
590
- }) : b(t, {
605
+ }) : p.setWidget(t, {
591
606
  isLocked: !0,
592
- lockedItems: a
607
+ lockedItems: r
593
608
  });
594
- }, e[20] = t, e[21] = o, e[22] = a, e[23] = b, e[24] = P) : P = e[24];
595
- const y = P;
596
- if (a.length === 0)
609
+ }, e[9] = t, e[10] = i, e[11] = r, e[12] = f) : f = e[12];
610
+ const h = f;
611
+ if (r.length === 0)
597
612
  return null;
598
- const A = o ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", w = c?.ariaLabel ?? A;
599
- let D;
600
- e[25] !== u ? (D = u ?? /* @__PURE__ */ g(Je, { fontSize: "small" }), e[25] = u, e[26] = D) : D = e[26];
613
+ const g = i ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", I = c?.ariaLabel ?? g;
614
+ let s;
615
+ e[13] !== b ? (s = b ?? /* @__PURE__ */ x(Je, { fontSize: "small" }), e[13] = b, e[14] = s) : s = e[14];
616
+ let w;
617
+ e[15] !== C || e[16] !== I || e[17] !== h || e[18] !== i || e[19] !== s ? (w = /* @__PURE__ */ x(ee, { size: "small", "aria-label": I, onClick: h, sx: se.trigger, "data-active": i, ...C, children: s }), e[15] = C, e[16] = I, e[17] = h, e[18] = i, e[19] = s, e[20] = w) : w = e[20];
601
618
  let L;
602
- e[27] !== E || e[28] !== w || e[29] !== y || e[30] !== o || e[31] !== D ? (L = /* @__PURE__ */ g(J, { size: "small", "aria-label": w, onClick: y, sx: ue.trigger, "data-active": o, ...E, children: D }), e[27] = E, e[28] = w, e[29] = y, e[30] = o, e[31] = D, e[32] = L) : L = e[32];
603
- let I;
604
- return e[33] !== L || e[34] !== A ? (I = /* @__PURE__ */ g(ie, { title: A, children: L }), e[33] = L, e[34] = A, e[35] = I) : I = e[35], I;
605
- }
606
- function Mt(n, e) {
607
- const t = e?.lockedItems || [];
608
- return t.length === 0 ? n : Nt(n, t);
609
- }
610
- function Ft(n) {
611
- return n.updateToolConfig;
612
- }
613
- function Zt(n) {
614
- return n.setToolEnabled;
615
- }
616
- function Vt(n) {
617
- return n.unregisterTool;
619
+ return e[21] !== w || e[22] !== g ? (L = /* @__PURE__ */ x(re, { title: g, children: w }), e[21] = w, e[22] = g, e[23] = L) : L = e[23], L;
618
620
  }
619
- function Gt(n) {
620
- return n.registerTool;
621
- }
622
- function Ht(n) {
623
- return n.setWidget;
621
+ function wt(n) {
622
+ return {
623
+ storeIsLocked: n?.isLocked
624
+ };
624
625
  }
625
- function Nt(n, e) {
626
- return n.map((t) => t.filter((a) => {
627
- const p = a.name;
628
- return typeof p == "string" && e.includes(p);
626
+ function Pt(n, e) {
627
+ return n.map((t) => t.filter((r) => {
628
+ const u = r.name;
629
+ return typeof u == "string" && e.includes(u);
629
630
  }));
630
631
  }
631
- const ge = "searcher", jt = 300;
632
- function Wn(n) {
633
- const e = q(44), {
632
+ const be = "searcher", Rt = 300;
633
+ function _n(n) {
634
+ const e = Q(39), {
634
635
  id: t,
635
- filterFn: a,
636
- order: p,
636
+ filterFn: r,
637
+ order: u,
637
638
  labels: c,
638
- TextFieldProps: u,
639
- ClearIcon: E,
640
- debounceDelay: f
641
- } = n, b = p === void 0 ? 20 : p, d = f === void 0 ? jt : f, S = de(null), r = de(null);
642
- let s;
643
- e[0] !== t ? (s = (B) => B.getWidget(t), e[0] = t, e[1] = s) : s = e[1];
644
- const _ = $(s), T = _?.isSearchEnabled ?? !1, o = _?.searchText ?? "", h = de(T), i = a ?? Jt, m = $(qt), v = $(Yt), l = $(Kt), O = $(Ut);
645
- let P;
646
- e[2] !== t || e[3] !== m ? (P = (B) => {
647
- m(t, {
648
- searchText: B
639
+ TextFieldProps: b,
640
+ ClearIcon: C,
641
+ debounceDelay: S
642
+ } = n, o = u === void 0 ? 20 : u, i = S === void 0 ? Rt : S, l = le(null), a = le(null), {
643
+ enabled: d,
644
+ searchText: m
645
+ } = ne(t, Dt), f = le(d), h = r ?? zt;
646
+ let g;
647
+ e[0] !== t ? (g = (Z) => {
648
+ p.setWidget(t, {
649
+ searchText: Z
649
650
  });
650
- }, e[2] = t, e[3] = m, e[4] = P) : P = e[4];
651
- const y = P;
652
- let A, w;
653
- e[5] !== T || e[6] !== i || e[7] !== t || e[8] !== b || e[9] !== v || e[10] !== o || e[11] !== l ? (A = () => (v(t, {
654
- id: ge,
655
- order: b,
656
- enabled: T,
657
- fn: async (B, U) => {
658
- const H = U?.searchText || "";
659
- return i(B, H);
660
- },
661
- config: {
662
- searchText: o
651
+ }, e[0] = t, e[1] = g) : g = e[1];
652
+ const I = g;
653
+ let s, w;
654
+ e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (p.registerTool(t, {
655
+ id: be,
656
+ order: o,
657
+ enabled: !1,
658
+ fn: async (Z) => {
659
+ const K = p.getWidget(t)?.searchText ?? "";
660
+ return h(Z, K);
663
661
  },
664
- disables: [ae]
665
- }), () => l(t, ge)), w = [t, b, i, v, l, T, o], e[5] = T, e[6] = i, e[7] = t, e[8] = b, e[9] = v, e[10] = o, e[11] = l, e[12] = A, e[13] = w) : (A = e[12], w = e[13]), K(A, w);
662
+ disables: [de]
663
+ }), () => p.unregisterTool(t, be)), w = [t, o, h], e[2] = h, e[3] = t, e[4] = o, e[5] = s, e[6] = w) : (s = e[5], w = e[6]), H(s, w);
664
+ let L, P;
665
+ e[7] !== d || e[8] !== t ? (L = () => {
666
+ p.setToolEnabled(t, be, d);
667
+ }, P = [t, d], e[7] = d, e[8] = t, e[9] = L, e[10] = P) : (L = e[9], P = e[10]), H(L, P);
666
668
  let D;
667
- e[14] !== d || e[15] !== t || e[16] !== O ? (D = (B) => {
668
- r.current && clearTimeout(r.current), r.current = setTimeout(() => {
669
- O(t, ge, {
670
- searchText: B
671
- });
672
- }, d);
673
- }, e[14] = d, e[15] = t, e[16] = O, e[17] = D) : D = e[17];
674
- const L = D;
675
- let I, W;
676
- e[18] !== T ? (I = () => {
677
- T && !h.current && S.current && S.current.focus(), h.current = T;
678
- }, W = [T], e[18] = T, e[19] = I, e[20] = W) : (I = e[19], W = e[20]), K(I, W);
679
- let z, R;
680
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => () => {
681
- r.current && clearTimeout(r.current);
682
- }, R = [], e[21] = z, e[22] = R) : (z = e[21], R = e[22]), K(z, R);
683
- let C;
684
- e[23] !== L || e[24] !== y ? (C = (B) => {
685
- const U = B.target.value;
686
- y(U), L(U);
687
- }, e[23] = L, e[24] = y, e[25] = C) : C = e[25];
688
- const x = C;
689
- let k;
690
- e[26] !== t || e[27] !== y || e[28] !== O ? (k = () => {
691
- y(""), O(t, ge, {
692
- searchText: ""
693
- }), S.current && S.current.focus();
694
- }, e[26] = t, e[27] = y, e[28] = O, e[29] = k) : k = e[29];
695
- const j = k;
696
- if (!T)
669
+ e[11] !== i || e[12] !== t ? (D = () => {
670
+ a.current && clearTimeout(a.current), a.current = setTimeout(() => {
671
+ p.triggerToolPipeline(t);
672
+ }, i);
673
+ }, e[11] = i, e[12] = t, e[13] = D) : D = e[13];
674
+ const O = D;
675
+ let E, R;
676
+ e[14] !== d ? (R = () => {
677
+ d && !f.current && l.current && l.current.focus(), f.current = d;
678
+ }, E = [d], e[14] = d, e[15] = E, e[16] = R) : (E = e[15], R = e[16]), H(R, E);
679
+ let k, v;
680
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => () => {
681
+ a.current && clearTimeout(a.current);
682
+ }, v = [], e[17] = k, e[18] = v) : (k = e[17], v = e[18]), H(k, v);
683
+ let T;
684
+ e[19] !== O || e[20] !== I ? (T = (Z) => {
685
+ const N = Z.target.value;
686
+ I(N), O();
687
+ }, e[19] = O, e[20] = I, e[21] = T) : T = e[21];
688
+ const _ = T;
689
+ let z;
690
+ e[22] !== t || e[23] !== I ? (z = () => {
691
+ I(""), p.triggerToolPipeline(t), l.current && l.current.focus();
692
+ }, e[22] = t, e[23] = I, e[24] = z) : z = e[24];
693
+ const M = z;
694
+ if (!d)
697
695
  return null;
698
- const G = c?.placeholder ?? "Search...", F = c?.clearAriaLabel ?? "Clear search";
699
- let Z;
700
- e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ g(ve, { position: "start", children: /* @__PURE__ */ g($e, {}) }), e[30] = Z) : Z = e[30];
701
- let M;
702
- e[31] !== E || e[32] !== F || e[33] !== j || e[34] !== o ? (M = o ? /* @__PURE__ */ g(ve, { position: "end", children: /* @__PURE__ */ g(J, { size: "small", "aria-label": F, onClick: j, edge: "end", children: E ?? /* @__PURE__ */ g(Qe, { fontSize: "small" }) }) }) : null, e[31] = E, e[32] = F, e[33] = j, e[34] = o, e[35] = M) : M = e[35];
703
- let N;
704
- e[36] !== M ? (N = {
705
- startAdornment: Z,
706
- endAdornment: M
707
- }, e[36] = M, e[37] = N) : N = e[37];
708
- let V;
709
- return e[38] !== u || e[39] !== x || e[40] !== G || e[41] !== o || e[42] !== N ? (V = /* @__PURE__ */ g(Ge, { inputRef: S, size: "small", fullWidth: !0, variant: "filled", placeholder: G, value: o, onChange: x, InputProps: N, ...u }), e[38] = u, e[39] = x, e[40] = G, e[41] = o, e[42] = N, e[43] = V) : V = e[43], V;
710
- }
711
- function Ut(n) {
712
- return n.updateToolConfig;
713
- }
714
- function Kt(n) {
715
- return n.unregisterTool;
716
- }
717
- function Yt(n) {
718
- return n.registerTool;
696
+ const A = c?.placeholder ?? "Search...", W = c?.clearAriaLabel ?? "Clear search";
697
+ let U;
698
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ x(xe, { position: "start", children: /* @__PURE__ */ x(ze, {}) }), e[25] = U) : U = e[25];
699
+ let j;
700
+ e[26] !== C || e[27] !== W || e[28] !== M || e[29] !== m ? (j = m ? /* @__PURE__ */ x(xe, { position: "end", children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: M, edge: "end", children: C ?? /* @__PURE__ */ x(Qe, { fontSize: "small" }) }) }) : null, e[26] = C, e[27] = W, e[28] = M, e[29] = m, e[30] = j) : j = e[30];
701
+ let $;
702
+ e[31] !== j ? ($ = {
703
+ startAdornment: U,
704
+ endAdornment: j
705
+ }, e[31] = j, e[32] = $) : $ = e[32];
706
+ let G;
707
+ return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !== m || e[37] !== $ ? (G = /* @__PURE__ */ x(Ze, { inputRef: l, size: "small", fullWidth: !0, variant: "filled", placeholder: A, value: m, onChange: _, InputProps: $, ...b }), e[33] = b, e[34] = _, e[35] = A, e[36] = m, e[37] = $, e[38] = G) : G = e[38], G;
719
708
  }
720
- function qt(n) {
721
- return n.setWidget;
709
+ function Dt(n) {
710
+ return {
711
+ enabled: n?.isSearchEnabled ?? !1,
712
+ searchText: n?.searchText ?? ""
713
+ };
722
714
  }
723
- const Jt = (n, e) => {
715
+ const zt = (n, e) => {
724
716
  if (!e.trim()) return Promise.resolve(n);
725
717
  const t = e.toLowerCase();
726
- return Promise.resolve(n.map((a) => a.filter((p) => Object.values(p).some((c) => typeof c == "string" && c.toLowerCase().includes(t)))));
718
+ return Promise.resolve(n.map((r) => r.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
727
719
  };
728
- function zn(n) {
729
- const e = q(23), {
720
+ function En(n) {
721
+ const e = Q(18), {
730
722
  id: t,
731
- defaultEnabled: a,
732
- labels: p,
723
+ defaultEnabled: r,
724
+ labels: u,
733
725
  Icon: c,
734
- IconButtonProps: u
735
- } = n, E = a === void 0 ? !1 : a, f = $(Xt), b = $(Qt);
736
- let d;
737
- e[0] !== t ? (d = (O) => O.getWidget(t)?.isSearchEnabled, e[0] = t, e[1] = d) : d = e[1];
738
- const r = $(te(d)) ?? E;
739
- let s, _;
740
- e[2] !== E || e[3] !== b || e[4] !== t || e[5] !== f ? (s = () => {
741
- b(t)?.isSearchEnabled === void 0 && f(t, {
742
- isSearchEnabled: E
726
+ IconButtonProps: b
727
+ } = n, C = r === void 0 ? !1 : r, {
728
+ storeIsEnabled: S
729
+ } = ne(t, Ot), o = S ?? C;
730
+ let i, l;
731
+ e[0] !== C || e[1] !== t ? (i = () => {
732
+ p.getWidget(t)?.isSearchEnabled === void 0 && p.setWidget(t, {
733
+ isSearchEnabled: C
743
734
  });
744
- }, _ = [E, b, t, f], e[2] = E, e[3] = b, e[4] = t, e[5] = f, e[6] = s, e[7] = _) : (s = e[6], _ = e[7]), K(s, _);
745
- let T;
746
- e[8] !== t || e[9] !== r || e[10] !== f ? (T = () => {
747
- f(t, {
748
- isSearchEnabled: !r
735
+ }, l = [C, t], e[0] = C, e[1] = t, e[2] = i, e[3] = l) : (i = e[2], l = e[3]), H(i, l);
736
+ let a;
737
+ e[4] !== t || e[5] !== o ? (a = () => {
738
+ p.setWidget(t, {
739
+ isSearchEnabled: !o
749
740
  });
750
- }, e[8] = t, e[9] = r, e[10] = f, e[11] = T) : T = e[11];
751
- const o = T, h = r ? p?.disable ?? "Disable search" : p?.enable ?? "Enable search", i = p?.ariaLabel ?? h;
752
- let m;
753
- e[12] !== c ? (m = c ?? /* @__PURE__ */ g($e, { fontSize: "small" }), e[12] = c, e[13] = m) : m = e[13];
754
- let v;
755
- e[14] !== u || e[15] !== i || e[16] !== o || e[17] !== r || e[18] !== m ? (v = /* @__PURE__ */ g(J, { size: "small", "aria-label": i, onClick: o, sx: ue.trigger, "data-active": r, ...u, children: m }), e[14] = u, e[15] = i, e[16] = o, e[17] = r, e[18] = m, e[19] = v) : v = e[19];
756
- let l;
757
- return e[20] !== v || e[21] !== h ? (l = /* @__PURE__ */ g(ie, { title: h, children: v }), e[20] = v, e[21] = h, e[22] = l) : l = e[22], l;
758
- }
759
- function Qt(n) {
760
- return n.getWidget;
741
+ }, e[4] = t, e[5] = o, e[6] = a) : a = e[6];
742
+ const d = a, m = o ? u?.disable ?? "Disable search" : u?.enable ?? "Enable search", f = u?.ariaLabel ?? m;
743
+ let h;
744
+ e[7] !== c ? (h = c ?? /* @__PURE__ */ x(ze, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
745
+ let g;
746
+ e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (g = /* @__PURE__ */ x(ee, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...b, children: h }), e[9] = b, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = g) : g = e[14];
747
+ let I;
748
+ return e[15] !== g || e[16] !== m ? (I = /* @__PURE__ */ x(re, { title: m, children: g }), e[15] = g, e[16] = m, e[17] = I) : I = e[17], I;
761
749
  }
762
- function Xt(n) {
763
- return n.setWidget;
750
+ function Ot(n) {
751
+ return {
752
+ storeIsEnabled: n?.isSearchEnabled
753
+ };
764
754
  }
765
- const en = () => {
766
- const n = q(1);
755
+ const Mt = () => {
756
+ const n = Q(1);
767
757
  let e;
768
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ g("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
758
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ x("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
769
759
  };
770
- function tn(n) {
771
- const e = q(18), {
760
+ function At(n) {
761
+ const e = Q(18), {
772
762
  column: t
773
763
  } = n;
774
- let a;
775
- e[0] !== t.id ? (a = {
764
+ let r;
765
+ e[0] !== t.id ? (r = {
776
766
  id: t.id
777
- }, e[0] = t.id, e[1] = a) : a = e[1];
767
+ }, e[0] = t.id, e[1] = r) : r = e[1];
778
768
  const {
779
- attributes: p,
769
+ attributes: u,
780
770
  listeners: c,
781
- setNodeRef: u,
782
- transform: E,
783
- transition: f,
784
- isDragging: b
785
- } = it(a);
771
+ setNodeRef: b,
772
+ transform: C,
773
+ transition: S,
774
+ isDragging: o
775
+ } = at(r);
776
+ let i;
777
+ e[2] !== C ? (i = gt.Transform.toString(C ? {
778
+ ...C,
779
+ x: 0
780
+ } : null), e[2] = C, e[3] = i) : i = e[3];
781
+ const l = o ? 0.5 : 1, a = o ? "grabbing" : "grab";
786
782
  let d;
787
- e[2] !== E ? (d = ft.Transform.toString(E), e[2] = E, e[3] = d) : d = e[3];
788
- const S = b ? 0.5 : 1, r = b ? "grabbing" : "grab";
789
- let s;
790
- e[4] !== d || e[5] !== S || e[6] !== r || e[7] !== f ? (s = {
791
- transform: d,
792
- transition: f,
793
- opacity: S,
794
- cursor: r
795
- }, e[4] = d, e[5] = S, e[6] = r, e[7] = f, e[8] = s) : s = e[8];
796
- const _ = s;
797
- let T;
798
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
783
+ e[4] !== i || e[5] !== l || e[6] !== a || e[7] !== S ? (d = {
784
+ transform: i,
785
+ transition: S,
786
+ opacity: l,
787
+ cursor: a
788
+ }, e[4] = i, e[5] = l, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
789
+ const m = d;
790
+ let f;
791
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
799
792
  "&:focus-visible": {
800
- outline: nn,
793
+ outline: Bt,
801
794
  outlineOffset: -2
802
795
  }
803
- }, e[9] = T) : T = e[9];
804
- let o;
805
- e[10] !== t.label ? (o = /* @__PURE__ */ g(Le, { children: t.label }), e[10] = t.label, e[11] = o) : o = e[11];
796
+ }, e[9] = f) : f = e[9];
806
797
  let h;
807
- return e[12] !== p || e[13] !== c || e[14] !== u || e[15] !== _ || e[16] !== o ? (h = /* @__PURE__ */ g(Ee, { ref: u, style: _, ...p, ...c, role: "menuitem", tabIndex: 0, sx: T, children: o }), e[12] = p, e[13] = c, e[14] = u, e[15] = _, e[16] = o, e[17] = h) : h = e[17], h;
798
+ e[10] !== t.label ? (h = /* @__PURE__ */ x(Pe, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
799
+ let g;
800
+ return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !== m || e[16] !== h ? (g = /* @__PURE__ */ x(we, { ref: b, style: m, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = b, e[15] = m, e[16] = h, e[17] = g) : g = e[17], g;
808
801
  }
809
- function nn(n) {
802
+ function Bt(n) {
810
803
  return `2px solid ${n.palette.primary.main}`;
811
804
  }
812
- const ke = "change-column";
813
- function Pn(n) {
814
- const e = q(50), {
805
+ const Ee = "change-column";
806
+ function Cn(n) {
807
+ const e = Q(46), {
815
808
  id: t,
816
- labels: a,
817
- Icon: p,
809
+ labels: r,
810
+ Icon: u,
818
811
  IconButtonProps: c,
819
- MenuProps: u
820
- } = n, [E, f] = he(null), b = $(an), d = $(cn), S = $(rn);
821
- let r;
822
- e[0] !== t ? (r = (B) => B.getWidget(t)?.columns, e[0] = t, e[1] = r) : r = e[1];
823
- const s = $(te(r));
824
- let _;
825
- e[2] !== t ? (_ = (B) => {
826
- const H = $.getState().getWidget(t)?.columns;
827
- if (!H || H.length === 0)
828
- return B;
829
- const ne = B, Y = ne.columns;
830
- if (!Y || Y.length === 0 || Y.length === H.length && Y.every((X, le) => X.id === H[le]?.id))
831
- return B;
832
- const se = new Map(Y.map(sn)), oe = [];
833
- for (const X of H) {
834
- const le = se.get(X.id);
835
- le && (oe.push(le), se.delete(X.id));
812
+ MenuProps: b
813
+ } = n, [C, S] = ie(null), {
814
+ columns: o
815
+ } = ne(t, Nt);
816
+ let i;
817
+ e[0] !== t ? (i = (N) => {
818
+ const y = p.getWidget(t)?.columns;
819
+ if (!y || y.length === 0)
820
+ return N;
821
+ const B = N, F = B.columns;
822
+ if (!F || F.length === 0 || F.length === y.length && F.every((Y, J) => Y.id === y[J]?.id))
823
+ return N;
824
+ const X = new Map(F.map($t)), q = [];
825
+ for (const Y of y) {
826
+ const J = X.get(Y.id);
827
+ J && (q.push(J), X.delete(Y.id));
836
828
  }
837
- for (const X of se.values())
838
- oe.push(X);
839
- const ce = oe.length === H.length && oe.every((X, le) => X.id === H[le]?.id);
829
+ for (const Y of X.values())
830
+ q.push(Y);
831
+ const te = q.length === y.length && q.every((Y, J) => Y.id === y[J]?.id);
840
832
  return {
841
- ...ne,
842
- columns: ce ? H : oe
833
+ ...B,
834
+ columns: te ? y : q
843
835
  };
844
- }, e[2] = t, e[3] = _) : _ = e[3];
845
- const T = _;
846
- let o;
847
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
848
- coordinateGetter: ct
849
- }, e[4] = o) : o = e[4];
850
- const h = nt(Ie(ot), Ie(lt, o));
851
- let i;
852
- e[5] !== s ? (i = s?.map(ln) ?? [], e[5] = s, e[6] = i) : i = e[6];
853
- const m = i;
854
- let v, l;
855
- e[7] !== t || e[8] !== d || e[9] !== T || e[10] !== S ? (v = () => (d(t, {
856
- id: ke,
836
+ }, e[0] = t, e[1] = i) : i = e[1];
837
+ const l = i;
838
+ let a;
839
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
840
+ coordinateGetter: dt
841
+ }, e[2] = a) : a = e[2];
842
+ const d = lt(ye(rt), ye(it, a));
843
+ let m;
844
+ e[3] !== o ? (m = o?.map(Ft) ?? [], e[3] = o, e[4] = m) : m = e[4];
845
+ const f = m;
846
+ let h, g;
847
+ e[5] !== t || e[6] !== l ? (h = () => (p.registerTool(t, {
848
+ id: Ee,
857
849
  type: "config",
858
850
  order: 100,
859
851
  enabled: !0,
860
- fn: T
861
- }), () => S(t, ke)), l = [t, d, S, T], e[7] = t, e[8] = d, e[9] = T, e[10] = S, e[11] = v, e[12] = l) : (v = e[11], l = e[12]), K(v, l);
862
- let O;
863
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (B) => {
864
- B.stopPropagation(), f(B.currentTarget);
865
- }, e[13] = O) : O = e[13];
866
- const P = O;
867
- let y;
868
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
869
- f(null);
870
- }, e[14] = y) : y = e[14];
871
- const A = y;
852
+ fn: l
853
+ }), () => p.unregisterTool(t, Ee)), g = [t, l], e[5] = t, e[6] = l, e[7] = h, e[8] = g) : (h = e[7], g = e[8]), H(h, g);
854
+ let I;
855
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (N) => {
856
+ N.stopPropagation(), S(N.currentTarget);
857
+ }, e[9] = I) : I = e[9];
858
+ const s = I;
872
859
  let w;
873
- e[15] !== s || e[16] !== t || e[17] !== b ? (w = (B) => {
860
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => {
861
+ S(null);
862
+ }, e[10] = w) : w = e[10];
863
+ const L = w;
864
+ let P;
865
+ e[11] !== o || e[12] !== t ? (P = (N) => {
874
866
  const {
875
- active: U,
876
- over: H
877
- } = B;
878
- if (!H || U.id === H.id || !s)
867
+ active: K,
868
+ over: y
869
+ } = N;
870
+ if (!y || K.id === y.id || !o)
879
871
  return;
880
- const ne = s.findIndex((Q) => Q.id === U.id), Y = s.findIndex((Q) => Q.id === H.id);
881
- if (ne !== -1 && Y !== -1) {
882
- const Q = at(s, ne, Y);
883
- b(t, {
884
- columns: Q
872
+ const B = o.findIndex((V) => V.id === K.id), F = o.findIndex((V) => V.id === y.id);
873
+ if (B !== -1 && F !== -1) {
874
+ const V = ut(o, B, F);
875
+ p.setWidget(t, {
876
+ columns: V
885
877
  });
886
878
  }
887
- }, e[15] = s, e[16] = t, e[17] = b, e[18] = w) : w = e[18];
888
- const D = w;
889
- if (!s || s.length < 2)
879
+ }, e[11] = o, e[12] = t, e[13] = P) : P = e[13];
880
+ const D = P;
881
+ if (!o || o.length < 2)
890
882
  return null;
891
- const L = a?.tooltip ?? "Change column", I = !!E, W = a?.ariaLabel ?? L, z = I ? "change-column-menu" : void 0, R = I ? "true" : void 0;
892
- let C;
893
- e[19] !== p ? (C = p ?? /* @__PURE__ */ g(He, { children: /* @__PURE__ */ g(en, {}) }), e[19] = p, e[20] = C) : C = e[20];
894
- let x;
895
- e[21] !== c || e[22] !== I || e[23] !== W || e[24] !== z || e[25] !== R || e[26] !== C ? (x = /* @__PURE__ */ g(J, { size: "small", "aria-label": W, "aria-controls": z, "aria-haspopup": "true", "aria-expanded": R, onClick: P, "data-active": I, sx: ue.trigger, ...c, children: C }), e[21] = c, e[22] = I, e[23] = W, e[24] = z, e[25] = R, e[26] = C, e[27] = x) : x = e[27];
896
- let k;
897
- e[28] !== x || e[29] !== L ? (k = /* @__PURE__ */ g(ie, { title: L, children: x }), e[28] = x, e[29] = L, e[30] = k) : k = e[30];
898
- let j, G;
899
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
883
+ const O = r?.tooltip ?? "Change column", E = !!C, R = r?.ariaLabel ?? O, k = E ? "change-column-menu" : void 0, v = E ? "true" : void 0;
884
+ let T;
885
+ e[14] !== u ? (T = u ?? /* @__PURE__ */ x(Ve, { children: /* @__PURE__ */ x(Mt, {}) }), e[14] = u, e[15] = T) : T = e[15];
886
+ let _;
887
+ e[16] !== c || e[17] !== E || e[18] !== k || e[19] !== v || e[20] !== T || e[21] !== R ? (_ = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, "aria-controls": k, "aria-haspopup": "true", "aria-expanded": v, onClick: s, "data-active": E, sx: se.trigger, ...c, children: T }), e[16] = c, e[17] = E, e[18] = k, e[19] = v, e[20] = T, e[21] = R, e[22] = _) : _ = e[22];
888
+ let z;
889
+ e[23] !== _ || e[24] !== O ? (z = /* @__PURE__ */ x(re, { title: O, children: _ }), e[23] = _, e[24] = O, e[25] = z) : z = e[25];
890
+ let M, A, W;
891
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
900
892
  vertical: "bottom",
901
893
  horizontal: "right"
902
- }, G = {
894
+ }, A = {
903
895
  vertical: "top",
904
896
  horizontal: "right"
905
- }, e[31] = j, e[32] = G) : (j = e[31], G = e[32]);
906
- let F;
907
- e[33] !== s ? (F = s.map(on), e[33] = s, e[34] = F) : F = e[34];
897
+ }, W = {
898
+ paper: {
899
+ sx: {
900
+ overflow: "hidden"
901
+ }
902
+ }
903
+ }, e[26] = M, e[27] = A, e[28] = W) : (M = e[26], A = e[27], W = e[28]);
904
+ let U;
905
+ e[29] !== o ? (U = o.map(Wt), e[29] = o, e[30] = U) : U = e[30];
906
+ let j;
907
+ e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy: mt, children: U }), e[31] = f, e[32] = U, e[33] = j) : j = e[33];
908
+ let $;
909
+ e[34] !== b || e[35] !== C || e[36] !== E || e[37] !== j ? ($ = /* @__PURE__ */ x(Re, { id: "change-column-menu", anchorEl: C, open: E, onClose: L, anchorOrigin: M, transformOrigin: A, slotProps: W, ...b, children: j }), e[34] = b, e[35] = C, e[36] = E, e[37] = j, e[38] = $) : $ = e[38];
910
+ let G;
911
+ e[39] !== D || e[40] !== d || e[41] !== $ ? (G = /* @__PURE__ */ x(st, { sensors: d, collisionDetection: ct, onDragEnd: D, children: $ }), e[39] = D, e[40] = d, e[41] = $, e[42] = G) : G = e[42];
908
912
  let Z;
909
- e[35] !== m || e[36] !== F ? (Z = /* @__PURE__ */ g(dt, { items: m, strategy: ut, children: F }), e[35] = m, e[36] = F, e[37] = Z) : Z = e[37];
910
- let M;
911
- e[38] !== u || e[39] !== E || e[40] !== I || e[41] !== Z ? (M = /* @__PURE__ */ g(xe, { id: "change-column-menu", anchorEl: E, open: I, onClose: A, anchorOrigin: j, transformOrigin: G, ...u, children: Z }), e[38] = u, e[39] = E, e[40] = I, e[41] = Z, e[42] = M) : M = e[42];
912
- let N;
913
- e[43] !== D || e[44] !== h || e[45] !== M ? (N = /* @__PURE__ */ g(st, { sensors: h, collisionDetection: rt, onDragEnd: D, children: M }), e[43] = D, e[44] = h, e[45] = M, e[46] = N) : N = e[46];
914
- let V;
915
- return e[47] !== k || e[48] !== N ? (V = /* @__PURE__ */ re(be, { children: [
916
- k,
917
- N
918
- ] }), e[47] = k, e[48] = N, e[49] = V) : V = e[49], V;
913
+ return e[43] !== z || e[44] !== G ? (Z = /* @__PURE__ */ oe(ue, { children: [
914
+ z,
915
+ G
916
+ ] }), e[43] = z, e[44] = G, e[45] = Z) : Z = e[45], Z;
919
917
  }
920
- function on(n) {
921
- return /* @__PURE__ */ g(tn, { column: n }, n.id);
918
+ function Wt(n) {
919
+ return /* @__PURE__ */ x(At, { column: n }, n.id);
922
920
  }
923
- function ln(n) {
921
+ function Ft(n) {
924
922
  return n.id;
925
923
  }
926
- function sn(n) {
924
+ function $t(n) {
927
925
  return [n.id, n];
928
926
  }
929
- function rn(n) {
930
- return n.unregisterTool;
927
+ function Nt(n) {
928
+ return {
929
+ columns: n?.columns
930
+ };
931
+ }
932
+ const Ce = {
933
+ container: {
934
+ display: "flex",
935
+ alignItems: "center",
936
+ gap: ({
937
+ spacing: n
938
+ }) => n(0.25)
939
+ },
940
+ trigger: {
941
+ '&[data-active="true"]': {
942
+ background: (n) => n.palette.primary.relatedLight
943
+ }
944
+ }
945
+ }, Le = {
946
+ // `top` and `height` are filled in at render time from the chart's plot
947
+ // rect so rectangles don't bleed over the legend / axis labels.
948
+ //
949
+ // Colors track ECharts 6's `backgroundTint` token (used by the default
950
+ // brush) — a barely-visible pale blue-gray translucent fill that washes
951
+ // bars underneath rather than masking them. Border is a hairline dark
952
+ // alpha so the selection edges are just findable, not prominent.
953
+ rect: {
954
+ position: "absolute",
955
+ background: "rgba(234, 237, 245, 0.2)",
956
+ border: "1px dashed rgba(0, 0, 0, 0.15)",
957
+ pointerEvents: "none"
958
+ },
959
+ // Live drag preview — identical to committed rect (no "in-progress" vs
960
+ // "committed" visual distinction; the preview just disappears on
961
+ // `pointerup` as the rect takes its place).
962
+ rectPreview: {
963
+ position: "absolute",
964
+ background: "rgba(234, 237, 245, 0.6)",
965
+ border: "1px dashed rgba(0, 0, 0, 0.15)",
966
+ pointerEvents: "none"
967
+ }
968
+ };
969
+ function Gt(n, e, t) {
970
+ if (t <= 0) return [];
971
+ const [r, u] = n <= e ? [n, e] : [e, n], c = Math.max(0, Math.floor(r)), b = Math.min(t - 1, Math.ceil(u));
972
+ if (c > b) return [];
973
+ const C = [];
974
+ for (let S = c; S <= b; S += 1) C.push(S);
975
+ return C;
976
+ }
977
+ function Zt(n, e) {
978
+ if (n.length === 0) return [];
979
+ const t = /* @__PURE__ */ new Set();
980
+ for (const r of n)
981
+ for (const u of Gt(r.xStart, r.xEnd, e))
982
+ t.add(u);
983
+ return Array.from(t).sort((r, u) => r - u);
984
+ }
985
+ const Vt = 2, Ht = Object.freeze([]), ke = Object.freeze([]);
986
+ function jt(n) {
987
+ try {
988
+ const r = n.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
989
+ return !r || !Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) ? null : {
990
+ x: r.x,
991
+ y: r.y,
992
+ width: r.width,
993
+ height: r.height
994
+ };
995
+ } catch {
996
+ return null;
997
+ }
998
+ }
999
+ function Ut(n, e) {
1000
+ return n === e ? !0 : !n || !e ? !1 : n.x === e.x && n.y === e.y && n.width === e.width && n.height === e.height;
1001
+ }
1002
+ function Xt(n) {
1003
+ const e = Q(55), {
1004
+ id: t,
1005
+ multiBrush: r
1006
+ } = n, {
1007
+ enabled: u,
1008
+ rects: c,
1009
+ dataLength: b
1010
+ } = ne(t, Jt), C = qt;
1011
+ let S;
1012
+ e[0] !== t ? (S = () => p.getWidget(t)?.refUI?.current ?? null, e[0] = t, e[1] = S) : S = e[1];
1013
+ const o = ve(C, S, Kt);
1014
+ let i;
1015
+ e[2] !== t ? (i = () => p.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = i) : i = e[3];
1016
+ const l = ve(C, i, Yt), a = le(null), d = le(null), m = le(null), [f, h] = ie(ke), [g, I] = ie(null), [s, w] = ie(null);
1017
+ let L, P;
1018
+ e[4] !== o || e[5] !== t ? (L = () => {
1019
+ if (!o)
1020
+ return;
1021
+ const y = document.getElementById(t);
1022
+ if (!y)
1023
+ return;
1024
+ const B = y.style.position;
1025
+ return B || (y.style.position = "relative"), () => {
1026
+ B || (y.style.position = "");
1027
+ };
1028
+ }, P = [t, o], e[4] = o, e[5] = t, e[6] = L, e[7] = P) : (L = e[6], P = e[7]), H(L, P);
1029
+ let D, O;
1030
+ e[8] !== o || e[9] !== l || e[10] !== c ? (D = () => {
1031
+ if (!l || !o)
1032
+ return;
1033
+ const y = () => {
1034
+ const F = jt(l);
1035
+ if (w((X) => Ut(X, F) ? X : F), !F)
1036
+ return;
1037
+ const V = [];
1038
+ for (const X of c) {
1039
+ const q = l.convertToPixel({
1040
+ xAxisIndex: 0
1041
+ }, X.xStart), te = l.convertToPixel({
1042
+ xAxisIndex: 0
1043
+ }, X.xEnd);
1044
+ if (typeof q != "number" || typeof te != "number" || !Number.isFinite(q) || !Number.isFinite(te))
1045
+ continue;
1046
+ const Y = Math.max(F.x, Math.min(q, te)), J = Math.min(F.x + F.width, Math.max(q, te));
1047
+ J <= Y || V.push({
1048
+ left: Y,
1049
+ right: J
1050
+ });
1051
+ }
1052
+ h(V.length === 0 ? ke : V);
1053
+ };
1054
+ y(), l.on("finished", y);
1055
+ const B = pt(o, y);
1056
+ return () => {
1057
+ l.off("finished", y), B();
1058
+ };
1059
+ }, O = [l, o, c], e[8] = o, e[9] = l, e[10] = c, e[11] = D, e[12] = O) : (D = e[11], O = e[12]), H(D, O);
1060
+ let E;
1061
+ e[13] !== o || e[14] !== u || e[15] !== l || e[16] !== s ? (E = (y) => {
1062
+ if (!u || !o || !s)
1063
+ return;
1064
+ const B = a.current;
1065
+ if (!B)
1066
+ return;
1067
+ y.preventDefault(), B.setPointerCapture(y.pointerId), m.current = y.pointerId, l?.dispatchAction({
1068
+ type: "hideTip"
1069
+ });
1070
+ const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1071
+ d.current = V, I({
1072
+ left: V,
1073
+ right: V
1074
+ });
1075
+ }, e[13] = o, e[14] = u, e[15] = l, e[16] = s, e[17] = E) : E = e[17];
1076
+ const R = E;
1077
+ let k;
1078
+ e[18] !== o || e[19] !== l || e[20] !== s ? (k = (y) => {
1079
+ if (m.current === null) {
1080
+ if (l && o) {
1081
+ const X = o.getBoundingClientRect();
1082
+ l.dispatchAction({
1083
+ type: "showTip",
1084
+ x: y.clientX - X.left,
1085
+ y: y.clientY - X.top
1086
+ });
1087
+ }
1088
+ return;
1089
+ }
1090
+ if (m.current !== y.pointerId)
1091
+ return;
1092
+ const B = d.current;
1093
+ if (B === null || !o || !s)
1094
+ return;
1095
+ const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1096
+ I({
1097
+ left: Math.min(B, V),
1098
+ right: Math.max(B, V)
1099
+ });
1100
+ }, e[18] = o, e[19] = l, e[20] = s, e[21] = k) : k = e[21];
1101
+ const v = k;
1102
+ let T;
1103
+ e[22] !== l ? (T = () => {
1104
+ m.current === null && l?.dispatchAction({
1105
+ type: "hideTip"
1106
+ });
1107
+ }, e[22] = l, e[23] = T) : T = e[23];
1108
+ const _ = T;
1109
+ let z;
1110
+ e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== l || e[28] !== r || e[29] !== s || e[30] !== c ? (z = (y) => {
1111
+ if (m.current !== y.pointerId)
1112
+ return;
1113
+ const B = d.current, F = a.current;
1114
+ if (m.current = null, d.current = null, I(null), B === null || !F || !l || !o || !s)
1115
+ return;
1116
+ try {
1117
+ F.releasePointerCapture(y.pointerId);
1118
+ } catch {
1119
+ }
1120
+ const V = o.getBoundingClientRect(), X = Se(y.clientX - V.left, s), q = Math.min(B, X), te = Math.max(B, X);
1121
+ if (te - q < Vt)
1122
+ return;
1123
+ const Y = l.convertFromPixel({
1124
+ xAxisIndex: 0
1125
+ }, q), J = l.convertFromPixel({
1126
+ xAxisIndex: 0
1127
+ }, te);
1128
+ if (typeof Y != "number" || typeof J != "number" || !Number.isFinite(Y) || !Number.isFinite(J))
1129
+ return;
1130
+ const ce = {
1131
+ xStart: Y,
1132
+ xEnd: J
1133
+ }, fe = r ? [...c, ce] : [ce], me = {
1134
+ dataIndex: Zt(fe, b),
1135
+ seriesIndex: 0
1136
+ };
1137
+ p.setWidget(t, {
1138
+ brushRects: fe,
1139
+ brushSelection: me,
1140
+ ...r ? {} : {
1141
+ brush: !1
1142
+ }
1143
+ });
1144
+ }, e[24] = o, e[25] = b, e[26] = t, e[27] = l, e[28] = r, e[29] = s, e[30] = c, e[31] = z) : z = e[31];
1145
+ const M = z;
1146
+ if (!o)
1147
+ return null;
1148
+ let A;
1149
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
1150
+ position: "absolute",
1151
+ inset: 0,
1152
+ pointerEvents: "none",
1153
+ zIndex: 1
1154
+ }, e[32] = A) : A = e[32];
1155
+ const W = A;
1156
+ let U;
1157
+ e[33] !== u || e[34] !== s ? (U = s ? {
1158
+ position: "absolute",
1159
+ left: s.x,
1160
+ top: s.y,
1161
+ width: s.width,
1162
+ height: s.height,
1163
+ pointerEvents: u ? "auto" : "none",
1164
+ cursor: u ? "crosshair" : "default",
1165
+ userSelect: "none",
1166
+ touchAction: "none"
1167
+ } : void 0, e[33] = u, e[34] = s, e[35] = U) : U = e[35];
1168
+ const j = U;
1169
+ let $;
1170
+ e[36] !== j || e[37] !== R || e[38] !== _ || e[39] !== v || e[40] !== M ? ($ = j && /* @__PURE__ */ x("div", { ref: a, style: j, onPointerDown: R, onPointerMove: v, onPointerUp: M, onPointerCancel: M, onPointerLeave: _ }), e[36] = j, e[37] = R, e[38] = _, e[39] = v, e[40] = M, e[41] = $) : $ = e[41];
1171
+ let G;
1172
+ e[42] !== s || e[43] !== f ? (G = s && f.map((y, B) => /* @__PURE__ */ x("div", { style: {
1173
+ ...Le.rect,
1174
+ left: y.left,
1175
+ width: Math.max(0, y.right - y.left),
1176
+ top: s.y,
1177
+ height: s.height
1178
+ } }, `${y.left}-${y.right}-${B}`)), e[42] = s, e[43] = f, e[44] = G) : G = e[44];
1179
+ let Z;
1180
+ e[45] !== g || e[46] !== s ? (Z = s && g && /* @__PURE__ */ x("div", { style: {
1181
+ ...Le.rectPreview,
1182
+ left: g.left,
1183
+ width: Math.max(0, g.right - g.left),
1184
+ top: s.y,
1185
+ height: s.height
1186
+ } }), e[45] = g, e[46] = s, e[47] = Z) : Z = e[47];
1187
+ let N;
1188
+ e[48] !== $ || e[49] !== G || e[50] !== Z ? (N = /* @__PURE__ */ oe("div", { style: W, children: [
1189
+ $,
1190
+ G,
1191
+ Z
1192
+ ] }), e[48] = $, e[49] = G, e[50] = Z, e[51] = N) : N = e[51];
1193
+ let K;
1194
+ return e[52] !== o || e[53] !== N ? (K = ht(N, o), e[52] = o, e[53] = N, e[54] = K) : K = e[54], K;
1195
+ }
1196
+ function Yt() {
1197
+ return null;
1198
+ }
1199
+ function Kt() {
1200
+ return null;
1201
+ }
1202
+ function qt(n) {
1203
+ return He.subscribe(n);
1204
+ }
1205
+ function Jt(n) {
1206
+ const e = n, r = n?.data?.[0], u = Array.isArray(r) ? r.length : 0;
1207
+ return {
1208
+ enabled: e?.brush ?? !1,
1209
+ rects: e?.brushRects ?? Ht,
1210
+ dataLength: u
1211
+ };
931
1212
  }
932
- function cn(n) {
933
- return n.registerTool;
1213
+ function Se(n, e) {
1214
+ return Math.max(e.x, Math.min(e.x + e.width, n));
934
1215
  }
935
- function an(n) {
936
- return n.setWidget;
1216
+ const Ln = "brush-toggle";
1217
+ function kn(n) {
1218
+ const e = Q(35), {
1219
+ id: t,
1220
+ onBrushSelected: r,
1221
+ multiBrush: u,
1222
+ selections: c,
1223
+ defaultEnabled: b,
1224
+ labels: C,
1225
+ Icon: S,
1226
+ IconButtonProps: o
1227
+ } = n, i = b === void 0 ? !1 : b;
1228
+ let l;
1229
+ e[0] !== i ? (l = (M) => {
1230
+ const A = M;
1231
+ return {
1232
+ brush: A?.brush ?? i,
1233
+ selection: A?.brushSelection
1234
+ };
1235
+ }, e[0] = i, e[1] = l) : l = e[1];
1236
+ const {
1237
+ brush: a,
1238
+ selection: d
1239
+ } = ne(t, l);
1240
+ let m, f;
1241
+ e[2] !== i || e[3] !== t ? (m = () => {
1242
+ p.getWidget(t)?.brush === void 0 && p.setWidget(t, {
1243
+ brush: i
1244
+ });
1245
+ }, f = [t, i], e[2] = i, e[3] = t, e[4] = m, e[5] = f) : (m = e[4], f = e[5]), H(m, f);
1246
+ let h;
1247
+ e[6] !== a || e[7] !== t || e[8] !== r ? (h = () => {
1248
+ a ? p.setWidget(t, {
1249
+ brush: !1
1250
+ }) : (p.setWidget(t, {
1251
+ brush: !0,
1252
+ brushRects: [],
1253
+ brushSelection: {
1254
+ dataIndex: [],
1255
+ seriesIndex: 0
1256
+ }
1257
+ }), r?.({
1258
+ dataIndex: [],
1259
+ seriesIndex: 0
1260
+ }));
1261
+ }, e[6] = a, e[7] = t, e[8] = r, e[9] = h) : h = e[9];
1262
+ const g = h, I = le(void 0);
1263
+ let s, w;
1264
+ e[10] !== r || e[11] !== d ? (s = () => {
1265
+ d && I.current !== d && (I.current = d, r?.(d));
1266
+ }, w = [d, r], e[10] = r, e[11] = d, e[12] = s, e[13] = w) : (s = e[12], w = e[13]), H(s, w);
1267
+ let L, P;
1268
+ e[14] !== t || e[15] !== c ? (L = () => {
1269
+ if (c !== 0)
1270
+ return;
1271
+ const M = p.getWidget(t), A = (M?.brushRects?.length ?? 0) > 0, W = (M?.brushSelection?.dataIndex?.length ?? 0) > 0;
1272
+ !A && !W || p.setWidget(t, {
1273
+ brushRects: [],
1274
+ brushSelection: {
1275
+ dataIndex: [],
1276
+ seriesIndex: 0
1277
+ }
1278
+ });
1279
+ }, P = [c, t], e[14] = t, e[15] = c, e[16] = L, e[17] = P) : (L = e[16], P = e[17]), H(L, P);
1280
+ const D = C?.enable ?? "Enable brush selection", O = C?.disable ?? "Disable brush selection", E = a ? O : D, R = C?.ariaLabel ?? E;
1281
+ let k;
1282
+ e[18] !== S ? (k = S ?? /* @__PURE__ */ x(et, {}), e[18] = S, e[19] = k) : k = e[19];
1283
+ let v;
1284
+ e[20] !== o || e[21] !== a || e[22] !== g || e[23] !== R || e[24] !== k ? (v = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, onClick: g, sx: Ce.trigger, "data-active": a, ...o, children: k }), e[20] = o, e[21] = a, e[22] = g, e[23] = R, e[24] = k, e[25] = v) : v = e[25];
1285
+ let T;
1286
+ e[26] !== v || e[27] !== E ? (T = /* @__PURE__ */ x(De, { sx: Ce.container, children: /* @__PURE__ */ x(re, { title: E, children: v }) }), e[26] = v, e[27] = E, e[28] = T) : T = e[28];
1287
+ let _;
1288
+ e[29] !== t || e[30] !== u ? (_ = /* @__PURE__ */ x(Xt, { id: t, multiBrush: u }), e[29] = t, e[30] = u, e[31] = _) : _ = e[31];
1289
+ let z;
1290
+ return e[32] !== T || e[33] !== _ ? (z = /* @__PURE__ */ oe(ue, { children: [
1291
+ T,
1292
+ _
1293
+ ] }), e[32] = T, e[33] = _, e[34] = z) : z = e[34], z;
937
1294
  }
938
1295
  export {
939
- ke as CHANGE_COLUMN_TOOL_ID,
940
- Pn as ChangeColumn,
1296
+ Ln as BRUSH_TOGGLE_TOOL_ID,
1297
+ kn as BrushToggle,
1298
+ Ee as CHANGE_COLUMN_TOOL_ID,
1299
+ Cn as ChangeColumn,
941
1300
  xn as Download,
942
- Ln as FullScreen,
943
- ae as LOCK_SELECTION_TOOL_ID,
944
- Dn as LockSelection,
945
- pe as RELATIVE_DATA_TOOL_ID,
946
- $n as RelativeData,
947
- ge as SEARCHER_TOOL_ID,
948
- me as STACK_TOGGLE_TOOL_ID,
949
- Wn as Searcher,
950
- zn as SearcherToggle,
951
- wn as StackToggle,
952
- ee as ZOOM_TOGGLE_TOOL_ID,
953
- On as ZoomToggle,
954
- Bn as downloadToCSV,
955
- Mn as downloadToPNG
1301
+ Sn as FullScreen,
1302
+ de as LOCK_SELECTION_TOOL_ID,
1303
+ Tn as LockSelection,
1304
+ Te as RELATIVE_DATA_CONFIG_TOOL_ID,
1305
+ ge as RELATIVE_DATA_TOOL_ID,
1306
+ vn as RelativeData,
1307
+ be as SEARCHER_TOOL_ID,
1308
+ pe as STACK_TOGGLE_TOOL_ID,
1309
+ _n as Searcher,
1310
+ En as SearcherToggle,
1311
+ In as StackToggle,
1312
+ he as ZOOM_TOGGLE_TOOL_ID,
1313
+ yn as ZoomToggle,
1314
+ Rn as downloadToCSV,
1315
+ Dn as downloadToPNG
956
1316
  };
957
1317
  //# sourceMappingURL=actions.js.map