@undp/data-viz 2.5.4 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +17 -16
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/Axis-DY7jsk1Y.cjs +2 -0
  6. package/dist/{Axis-BTaS9oPQ.cjs.map → Axis-DY7jsk1Y.cjs.map} +1 -1
  7. package/dist/{Axis-CNZYWzH0.js → Axis-RRx-0Rlw.js} +9 -8
  8. package/dist/{Axis-CNZYWzH0.js.map → Axis-RRx-0Rlw.js.map} +1 -1
  9. package/dist/AxisTitle-B9F80_Z0.js +30 -0
  10. package/dist/AxisTitle-B9F80_Z0.js.map +1 -0
  11. package/dist/AxisTitle-CyFFbdNU.cjs +2 -0
  12. package/dist/{AxisTitle-DP_evhbe.cjs.map → AxisTitle-CyFFbdNU.cjs.map} +1 -1
  13. package/dist/BarGraph.cjs +1 -1
  14. package/dist/BarGraph.cjs.map +1 -1
  15. package/dist/BarGraph.js +203 -201
  16. package/dist/BarGraph.js.map +1 -1
  17. package/dist/BasicStatCard.cjs +1 -1
  18. package/dist/BasicStatCard.cjs.map +1 -1
  19. package/dist/BasicStatCard.js +15 -14
  20. package/dist/BasicStatCard.js.map +1 -1
  21. package/dist/BeeSwarmChart.cjs +1 -1
  22. package/dist/BeeSwarmChart.cjs.map +1 -1
  23. package/dist/BeeSwarmChart.js +60 -59
  24. package/dist/BeeSwarmChart.js.map +1 -1
  25. package/dist/BiVariateChoroplethMap.cjs +1 -1
  26. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  27. package/dist/BiVariateChoroplethMap.js +88 -86
  28. package/dist/BiVariateChoroplethMap.js.map +1 -1
  29. package/dist/BulletChart.cjs +1 -1
  30. package/dist/BulletChart.cjs.map +1 -1
  31. package/dist/BulletChart.js +88 -86
  32. package/dist/BulletChart.js.map +1 -1
  33. package/dist/ButterflyChart.cjs +1 -1
  34. package/dist/ButterflyChart.cjs.map +1 -1
  35. package/dist/ButterflyChart.js +100 -98
  36. package/dist/ButterflyChart.js.map +1 -1
  37. package/dist/ChoroplethMap.cjs +1 -1
  38. package/dist/ChoroplethMap.cjs.map +1 -1
  39. package/dist/ChoroplethMap.js +83 -81
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.js +4 -4
  43. package/dist/ColorLegend.cjs +1 -1
  44. package/dist/ColorLegend.cjs.map +1 -1
  45. package/dist/ColorLegend.js +17 -16
  46. package/dist/ColorLegend.js.map +1 -1
  47. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  48. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  49. package/dist/ColorLegendWithMouseOver.js +13 -12
  50. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  51. package/dist/CopyTextButton.cjs +1 -1
  52. package/dist/CopyTextButton.cjs.map +1 -1
  53. package/dist/CopyTextButton.js +37 -754
  54. package/dist/CopyTextButton.js.map +1 -1
  55. package/dist/CsvDownloadButton.cjs +4 -4
  56. package/dist/CsvDownloadButton.cjs.map +1 -1
  57. package/dist/CsvDownloadButton.js +47 -45
  58. package/dist/CsvDownloadButton.js.map +1 -1
  59. package/dist/DataCards.cjs +1 -1
  60. package/dist/DataCards.cjs.map +1 -1
  61. package/dist/DataCards.js +213 -467
  62. package/dist/DataCards.js.map +1 -1
  63. package/dist/DataTable.cjs +1 -1
  64. package/dist/DataTable.cjs.map +1 -1
  65. package/dist/DataTable.js +19 -19
  66. package/dist/DetailsModal-BmjtLqrZ.cjs +2 -0
  67. package/dist/{DetailsModal-Du8Fr1QD.cjs.map → DetailsModal-BmjtLqrZ.cjs.map} +1 -1
  68. package/dist/{DetailsModal-GqEbGHY2.js → DetailsModal-k-Me_U_T.js} +3 -3
  69. package/dist/{DetailsModal-GqEbGHY2.js.map → DetailsModal-k-Me_U_T.js.map} +1 -1
  70. package/dist/DifferenceLineChart.cjs +1 -1
  71. package/dist/DifferenceLineChart.cjs.map +1 -1
  72. package/dist/DifferenceLineChart.js +61 -60
  73. package/dist/DifferenceLineChart.js.map +1 -1
  74. package/dist/DonutChart.cjs +1 -1
  75. package/dist/DonutChart.cjs.map +1 -1
  76. package/dist/DonutChart.js +47 -46
  77. package/dist/DonutChart.js.map +1 -1
  78. package/dist/DotDensityMap.cjs +1 -1
  79. package/dist/DotDensityMap.cjs.map +1 -1
  80. package/dist/DotDensityMap.js +112 -110
  81. package/dist/DotDensityMap.js.map +1 -1
  82. package/dist/DualAxisLineChart.cjs +1 -1
  83. package/dist/DualAxisLineChart.cjs.map +1 -1
  84. package/dist/DualAxisLineChart.js +13 -12
  85. package/dist/DualAxisLineChart.js.map +1 -1
  86. package/dist/DumbbellChart.cjs +1 -1
  87. package/dist/DumbbellChart.cjs.map +1 -1
  88. package/dist/DumbbellChart.js +104 -102
  89. package/dist/DumbbellChart.js.map +1 -1
  90. package/dist/EmptyState-BoaUUuo6.cjs +2 -0
  91. package/dist/{EmptyState-CFmiFPHz.cjs.map → EmptyState-BoaUUuo6.cjs.map} +1 -1
  92. package/dist/{EmptyState-CaxXCkiN.js → EmptyState-prZ8OnEs.js} +4 -4
  93. package/dist/{EmptyState-CaxXCkiN.js.map → EmptyState-prZ8OnEs.js.map} +1 -1
  94. package/dist/ExcelDownloadButton.cjs +1 -1
  95. package/dist/ExcelDownloadButton.cjs.map +1 -1
  96. package/dist/ExcelDownloadButton.js +15 -13
  97. package/dist/ExcelDownloadButton.js.map +1 -1
  98. package/dist/FootNote.cjs +1 -1
  99. package/dist/FootNote.cjs.map +1 -1
  100. package/dist/FootNote.js +10 -9
  101. package/dist/FootNote.js.map +1 -1
  102. package/dist/GeoHubCompareMaps.cjs +1 -1
  103. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  104. package/dist/GeoHubCompareMaps.js +14 -14
  105. package/dist/GeoHubMap.cjs +1 -1
  106. package/dist/GeoHubMap.cjs.map +1 -1
  107. package/dist/GeoHubMap.js +59 -59
  108. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  109. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  110. package/dist/GeoHubMapWithLayerSelection.js +50 -50
  111. package/dist/{GraphContainer-B8ZqOzKI.js → GraphContainer-DcOM2CI6.js} +28 -27
  112. package/dist/GraphContainer-DcOM2CI6.js.map +1 -0
  113. package/dist/GraphContainer-gaG9TSy4.cjs +2 -0
  114. package/dist/{GraphContainer-Cul9b74X.cjs.map → GraphContainer-gaG9TSy4.cjs.map} +1 -1
  115. package/dist/GraphDescription.cjs +1 -1
  116. package/dist/GraphDescription.cjs.map +1 -1
  117. package/dist/GraphDescription.js +14 -13
  118. package/dist/GraphDescription.js.map +1 -1
  119. package/dist/{GraphEl-Ch0uAeZw.js → GraphEl-C7KBBHvB.js} +9 -9
  120. package/dist/{GraphEl-Ch0uAeZw.js.map → GraphEl-C7KBBHvB.js.map} +1 -1
  121. package/dist/GraphEl-CGALp07K.cjs +2 -0
  122. package/dist/{GraphEl-BgkDbq50.cjs.map → GraphEl-CGALp07K.cjs.map} +1 -1
  123. package/dist/GraphFooter.cjs +1 -1
  124. package/dist/GraphFooter.cjs.map +1 -1
  125. package/dist/GraphFooter.js +2 -2
  126. package/dist/GraphHeader.cjs +1 -1
  127. package/dist/GraphHeader.cjs.map +1 -1
  128. package/dist/GraphHeader.js +1 -1
  129. package/dist/GraphTitle.cjs +1 -1
  130. package/dist/GraphTitle.cjs.map +1 -1
  131. package/dist/GraphTitle.js +14 -13
  132. package/dist/GraphTitle.js.map +1 -1
  133. package/dist/GriddedGraphs.cjs +1 -1
  134. package/dist/GriddedGraphs.cjs.map +1 -1
  135. package/dist/GriddedGraphs.js +58 -55
  136. package/dist/GriddedGraphs.js.map +1 -1
  137. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  138. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  139. package/dist/GriddedGraphsFromConfig.js +15 -15
  140. package/dist/HeatMap.cjs +1 -1
  141. package/dist/HeatMap.cjs.map +1 -1
  142. package/dist/HeatMap.js +17 -16
  143. package/dist/HeatMap.js.map +1 -1
  144. package/dist/Histogram.cjs +1 -1
  145. package/dist/Histogram.cjs.map +1 -1
  146. package/dist/Histogram.js +3 -3
  147. package/dist/HybridMap.cjs +1 -1
  148. package/dist/HybridMap.cjs.map +1 -1
  149. package/dist/HybridMap.js +392 -424
  150. package/dist/HybridMap.js.map +1 -1
  151. package/dist/ImageDownloadButton.cjs +1 -1
  152. package/dist/ImageDownloadButton.cjs.map +1 -1
  153. package/dist/ImageDownloadButton.js +16 -14
  154. package/dist/ImageDownloadButton.js.map +1 -1
  155. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  156. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  157. package/dist/LineChartWithConfidenceInterval.js +16 -15
  158. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  159. package/dist/LinearColorLegend.cjs +1 -1
  160. package/dist/LinearColorLegend.cjs.map +1 -1
  161. package/dist/LinearColorLegend.js +5 -4
  162. package/dist/LinearColorLegend.js.map +1 -1
  163. package/dist/MultiGraphDashboard.cjs +1 -1
  164. package/dist/MultiGraphDashboard.cjs.map +1 -1
  165. package/dist/MultiGraphDashboard.js +62 -60
  166. package/dist/MultiGraphDashboard.js.map +1 -1
  167. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  168. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  169. package/dist/MultiGraphDashboardFromConfig.js +7 -7
  170. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  171. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  172. package/dist/MultiGraphDashboardWideToLongFormat.js +21 -21
  173. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  174. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  175. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  176. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +3 -3
  177. package/dist/MultiLineAltChart.cjs +1 -1
  178. package/dist/MultiLineAltChart.cjs.map +1 -1
  179. package/dist/MultiLineAltChart.js +16 -15
  180. package/dist/MultiLineAltChart.js.map +1 -1
  181. package/dist/MultiLineChart.cjs +1 -1
  182. package/dist/MultiLineChart.cjs.map +1 -1
  183. package/dist/MultiLineChart.js +16 -15
  184. package/dist/MultiLineChart.js.map +1 -1
  185. package/dist/ParetoChart.cjs +1 -1
  186. package/dist/ParetoChart.cjs.map +1 -1
  187. package/dist/ParetoChart.js +14 -13
  188. package/dist/ParetoChart.js.map +1 -1
  189. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  190. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  191. package/dist/PerformanceIntensiveMultiGraphDashboard.js +67 -65
  192. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  193. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  194. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  195. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +8 -8
  196. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  197. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  198. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  199. package/dist/RadarChart.cjs +1 -1
  200. package/dist/RadarChart.cjs.map +1 -1
  201. package/dist/RadarChart.js +11 -10
  202. package/dist/RadarChart.js.map +1 -1
  203. package/dist/ReferenceLine-CxITVT1K.cjs +2 -0
  204. package/dist/{ReferenceLine-CpU4G01Y.cjs.map → ReferenceLine-CxITVT1K.cjs.map} +1 -1
  205. package/dist/{ReferenceLine-D41VuUhE.js → ReferenceLine-NF4g3Reh.js} +26 -25
  206. package/dist/ReferenceLine-NF4g3Reh.js.map +1 -0
  207. package/dist/RegressionLine-BQ6h-NZP.js +88 -0
  208. package/dist/RegressionLine-BQ6h-NZP.js.map +1 -0
  209. package/dist/RegressionLine-BpcVBjL0.cjs +2 -0
  210. package/dist/{RegressionLine-BFoBiVJk.cjs.map → RegressionLine-BpcVBjL0.cjs.map} +1 -1
  211. package/dist/SVGDownloadButton.cjs +1 -1
  212. package/dist/SVGDownloadButton.cjs.map +1 -1
  213. package/dist/SVGDownloadButton.js +11 -9
  214. package/dist/SVGDownloadButton.js.map +1 -1
  215. package/dist/SankeyChart.cjs +1 -1
  216. package/dist/SankeyChart.cjs.map +1 -1
  217. package/dist/SankeyChart.js +63 -62
  218. package/dist/SankeyChart.js.map +1 -1
  219. package/dist/ScatterPlot.cjs +1 -1
  220. package/dist/ScatterPlot.cjs.map +1 -1
  221. package/dist/ScatterPlot.js +109 -107
  222. package/dist/ScatterPlot.js.map +1 -1
  223. package/dist/ScrollStory.cjs +1 -1
  224. package/dist/ScrollStory.cjs.map +1 -1
  225. package/dist/ScrollStory.js +3 -3
  226. package/dist/SimpleLineChart.cjs +1 -1
  227. package/dist/SimpleLineChart.cjs.map +1 -1
  228. package/dist/SimpleLineChart.js +17 -16
  229. package/dist/SimpleLineChart.js.map +1 -1
  230. package/dist/SingleGraphDashboard.cjs +1 -1
  231. package/dist/SingleGraphDashboard.cjs.map +1 -1
  232. package/dist/SingleGraphDashboard.js +59 -56
  233. package/dist/SingleGraphDashboard.js.map +1 -1
  234. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  235. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  236. package/dist/SingleGraphDashboardFromConfig.js +6 -6
  237. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  238. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  239. package/dist/SingleGraphDashboardGeoHubMaps.js +12 -12
  240. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  241. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  242. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +8 -8
  243. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  244. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  245. package/dist/SingleGraphDashboardThreeDGraphs.js +59 -56
  246. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  247. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  248. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  249. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +7 -7
  250. package/dist/SlopeChart.cjs +1 -1
  251. package/dist/SlopeChart.cjs.map +1 -1
  252. package/dist/SlopeChart.js +60 -59
  253. package/dist/SlopeChart.js.map +1 -1
  254. package/dist/Source.cjs +1 -1
  255. package/dist/Source.cjs.map +1 -1
  256. package/dist/Source.js +38 -4
  257. package/dist/Source.js.map +1 -1
  258. package/dist/SparkLine.cjs +1 -1
  259. package/dist/SparkLine.cjs.map +1 -1
  260. package/dist/SparkLine.js +11 -10
  261. package/dist/SparkLine.js.map +1 -1
  262. package/dist/StatCardFromData.cjs +1 -1
  263. package/dist/StatCardFromData.cjs.map +1 -1
  264. package/dist/StatCardFromData.js +15 -14
  265. package/dist/StatCardFromData.js.map +1 -1
  266. package/dist/StripChart.cjs +1 -1
  267. package/dist/StripChart.cjs.map +1 -1
  268. package/dist/StripChart.js +11 -10
  269. package/dist/StripChart.js.map +1 -1
  270. package/dist/ThreeDGlobe.cjs +1 -1
  271. package/dist/ThreeDGlobe.cjs.map +1 -1
  272. package/dist/ThreeDGlobe.js +52 -51
  273. package/dist/ThreeDGlobe.js.map +1 -1
  274. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  275. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  276. package/dist/ThresholdColorLegendWithMouseOver.js +17 -16
  277. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  278. package/dist/{Tooltip-3EYDVa3w.js → Tooltip-DO56mY4b.js} +11 -10
  279. package/dist/{Tooltip-3EYDVa3w.js.map → Tooltip-DO56mY4b.js.map} +1 -1
  280. package/dist/Tooltip-DwUFLDrj.cjs +2 -0
  281. package/dist/{Tooltip-C9F3uYG0.cjs.map → Tooltip-DwUFLDrj.cjs.map} +1 -1
  282. package/dist/TreeMapGraph.cjs +1 -1
  283. package/dist/TreeMapGraph.cjs.map +1 -1
  284. package/dist/TreeMapGraph.js +34 -33
  285. package/dist/TreeMapGraph.js.map +1 -1
  286. package/dist/UnitChart.cjs +1 -1
  287. package/dist/UnitChart.cjs.map +1 -1
  288. package/dist/UnitChart.js +27 -27
  289. package/dist/WaterfallChart.cjs +1 -1
  290. package/dist/WaterfallChart.cjs.map +1 -1
  291. package/dist/WaterfallChart.js +21 -20
  292. package/dist/WaterfallChart.js.map +1 -1
  293. package/dist/XAxesLabels-0ROJnigy.cjs +2 -0
  294. package/dist/{XAxesLabels-C03jHniq.cjs.map → XAxesLabels-0ROJnigy.cjs.map} +1 -1
  295. package/dist/{XAxesLabels-B9gkjUiC.js → XAxesLabels-CPZX3OJN.js} +12 -11
  296. package/dist/XAxesLabels-CPZX3OJN.js.map +1 -0
  297. package/dist/XTicksAndGridLines-BO6KJc8d.cjs +2 -0
  298. package/dist/{XTicksAndGridLines-B4UhDVyU.cjs.map → XTicksAndGridLines-BO6KJc8d.cjs.map} +1 -1
  299. package/dist/{XTicksAndGridLines-CkYwVshF.js → XTicksAndGridLines-obTK2e7G.js} +10 -9
  300. package/dist/{XTicksAndGridLines-CkYwVshF.js.map → XTicksAndGridLines-obTK2e7G.js.map} +1 -1
  301. package/dist/{YAxesLabels-hWEUCTvs.js → YAxesLabels-CwVnFG2a.js} +13 -12
  302. package/dist/YAxesLabels-CwVnFG2a.js.map +1 -0
  303. package/dist/YAxesLabels-DIa2cEXL.cjs +2 -0
  304. package/dist/{YAxesLabels-DeENFC2M.cjs.map → YAxesLabels-DIa2cEXL.cjs.map} +1 -1
  305. package/dist/YTicksAndGridLines-C7glLI5b.cjs +2 -0
  306. package/dist/{YTicksAndGridLines-sT3zdCs6.cjs.map → YTicksAndGridLines-C7glLI5b.cjs.map} +1 -1
  307. package/dist/{YTicksAndGridLines-BbujwxOB.js → YTicksAndGridLines-wtuAKNeT.js} +10 -9
  308. package/dist/{YTicksAndGridLines-BbujwxOB.js.map → YTicksAndGridLines-wtuAKNeT.js.map} +1 -1
  309. package/dist/checkIfMultiple-BIEQDuA3.cjs +2 -0
  310. package/dist/checkIfMultiple-BIEQDuA3.cjs.map +1 -0
  311. package/dist/checkIfMultiple-D2tgEnYM.js +11 -0
  312. package/dist/checkIfMultiple-D2tgEnYM.js.map +1 -0
  313. package/dist/compiler-runtime-oPPev21o.cjs +11 -0
  314. package/dist/compiler-runtime-oPPev21o.cjs.map +1 -0
  315. package/dist/compiler-runtime-qHgugrLy.js +297 -0
  316. package/dist/compiler-runtime-qHgugrLy.js.map +1 -0
  317. package/dist/customArea-BCGIYDQa.cjs +2 -0
  318. package/dist/{customArea-BAcQ3pBM.cjs.map → customArea-BCGIYDQa.cjs.map} +1 -1
  319. package/dist/{customArea-D89lETG0.js → customArea-Dixg0NtQ.js} +10 -9
  320. package/dist/{customArea-D89lETG0.js.map → customArea-Dixg0NtQ.js.map} +1 -1
  321. package/dist/{fetchAndParseData-BAXhgTDM.js → fetchAndParseData-CDjQZ1fL.js} +5 -5
  322. package/dist/{fetchAndParseData-BAXhgTDM.js.map → fetchAndParseData-CDjQZ1fL.js.map} +1 -1
  323. package/dist/fetchAndParseData.js +1 -1
  324. package/dist/getSliderMarks-Bj_JJTtX.cjs +2 -0
  325. package/dist/getSliderMarks-Bj_JJTtX.cjs.map +1 -0
  326. package/dist/getSliderMarks-DSxFGb1f.js +21 -0
  327. package/dist/getSliderMarks-DSxFGb1f.js.map +1 -0
  328. package/dist/index-5BQWR1Z8.cjs +10 -0
  329. package/dist/{index-FXfr51ZM.cjs.map → index-5BQWR1Z8.cjs.map} +1 -1
  330. package/dist/index-BaXzoD4r.cjs +2 -0
  331. package/dist/{index-BuhBhuCq.cjs.map → index-BaXzoD4r.cjs.map} +1 -1
  332. package/dist/{index-Cv_5q6Rb.js → index-CNUlPiEL.js} +3 -3
  333. package/dist/{index-Cv_5q6Rb.js.map → index-CNUlPiEL.js.map} +1 -1
  334. package/dist/{index-DHVGV8Df.js → index-CmkqqFRG.js} +3 -3
  335. package/dist/{index-DHVGV8Df.js.map → index-CmkqqFRG.js.map} +1 -1
  336. package/dist/index-D_ls5oK8.js +142 -0
  337. package/dist/index-D_ls5oK8.js.map +1 -0
  338. package/dist/index-DbSnila_.cjs +2 -0
  339. package/dist/index-DbSnila_.cjs.map +1 -0
  340. package/dist/{index-BPyj_6hG.js → index-_w-CQAbR.js} +113 -112
  341. package/dist/{index-BPyj_6hG.js.map → index-_w-CQAbR.js.map} +1 -1
  342. package/dist/index-dN3wiQgD.cjs +2 -0
  343. package/dist/{index-DuLvdHo2.cjs.map → index-dN3wiQgD.cjs.map} +1 -1
  344. package/dist/index.cjs +1 -1
  345. package/dist/index.js +181 -180
  346. package/dist/index.js.map +1 -1
  347. package/dist/{proxy-BsxtcZKa.js → proxy-D31SA_aE.js} +2 -2
  348. package/dist/{proxy-BsxtcZKa.js.map → proxy-D31SA_aE.js.map} +1 -1
  349. package/dist/proxy-QMeVVqam.cjs +2 -0
  350. package/dist/{proxy-CqH8m8IQ.cjs.map → proxy-QMeVVqam.cjs.map} +1 -1
  351. package/dist/style.css +1 -1
  352. package/dist/transformData.js +2 -2
  353. package/dist/{transformDataForGraphFromFile-dt9sHTVy.js → transformDataForGraphFromFile-COZC6A0_.js} +4 -4
  354. package/dist/{transformDataForGraphFromFile-dt9sHTVy.js.map → transformDataForGraphFromFile-COZC6A0_.js.map} +1 -1
  355. package/dist/{use-in-view-KOXq5Kmc.js → use-in-view-Co5SmzfT.js} +2 -2
  356. package/dist/{use-in-view-KOXq5Kmc.js.map → use-in-view-Co5SmzfT.js.map} +1 -1
  357. package/dist/use-in-view-DjR_gqJP.cjs +2 -0
  358. package/dist/{use-in-view-dnRv_qqF.cjs.map → use-in-view-DjR_gqJP.cjs.map} +1 -1
  359. package/package.json +1 -1
  360. package/dist/Axis-BTaS9oPQ.cjs +0 -2
  361. package/dist/AxisTitle-CyLCqpW6.js +0 -29
  362. package/dist/AxisTitle-CyLCqpW6.js.map +0 -1
  363. package/dist/AxisTitle-DP_evhbe.cjs +0 -2
  364. package/dist/DetailsModal-Du8Fr1QD.cjs +0 -2
  365. package/dist/DropdownSelect-CX1yMemd.cjs +0 -5
  366. package/dist/DropdownSelect-CX1yMemd.cjs.map +0 -1
  367. package/dist/DropdownSelect-Dz7imdTB.js +0 -4191
  368. package/dist/DropdownSelect-Dz7imdTB.js.map +0 -1
  369. package/dist/EmptyState-CFmiFPHz.cjs +0 -2
  370. package/dist/GraphContainer-B8ZqOzKI.js.map +0 -1
  371. package/dist/GraphContainer-Cul9b74X.cjs +0 -2
  372. package/dist/GraphEl-BgkDbq50.cjs +0 -2
  373. package/dist/Modal-BIErPPKT.cjs +0 -46
  374. package/dist/Modal-BIErPPKT.cjs.map +0 -1
  375. package/dist/Modal-CrUYln5V.js +0 -1047
  376. package/dist/Modal-CrUYln5V.js.map +0 -1
  377. package/dist/ReferenceLine-CpU4G01Y.cjs +0 -2
  378. package/dist/ReferenceLine-D41VuUhE.js.map +0 -1
  379. package/dist/RegressionLine-BFoBiVJk.cjs +0 -2
  380. package/dist/RegressionLine-CuwB42I6.js +0 -87
  381. package/dist/RegressionLine-CuwB42I6.js.map +0 -1
  382. package/dist/Source-PKuwZOn3.cjs +0 -2
  383. package/dist/Source-PKuwZOn3.cjs.map +0 -1
  384. package/dist/Source-QGk8vhkS.js +0 -78
  385. package/dist/Source-QGk8vhkS.js.map +0 -1
  386. package/dist/Spinner-B2IIKg9r.js +0 -47
  387. package/dist/Spinner-B2IIKg9r.js.map +0 -1
  388. package/dist/Spinner-WHzzloYQ.cjs +0 -2
  389. package/dist/Spinner-WHzzloYQ.cjs.map +0 -1
  390. package/dist/Tooltip-C9F3uYG0.cjs +0 -2
  391. package/dist/Typography-BO0gQDIT.js +0 -270
  392. package/dist/Typography-BO0gQDIT.js.map +0 -1
  393. package/dist/Typography-BqmyF1gP.cjs +0 -2
  394. package/dist/Typography-BqmyF1gP.cjs.map +0 -1
  395. package/dist/XAxesLabels-B9gkjUiC.js.map +0 -1
  396. package/dist/XAxesLabels-C03jHniq.cjs +0 -2
  397. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +0 -2
  398. package/dist/YAxesLabels-DeENFC2M.cjs +0 -2
  399. package/dist/YAxesLabels-hWEUCTvs.js.map +0 -1
  400. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +0 -2
  401. package/dist/checkIfMultiple-CH5tqj4q.cjs +0 -2
  402. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +0 -1
  403. package/dist/checkIfMultiple-Dpyy6BUP.js +0 -938
  404. package/dist/checkIfMultiple-Dpyy6BUP.js.map +0 -1
  405. package/dist/customArea-BAcQ3pBM.cjs +0 -2
  406. package/dist/getSliderMarks-BzrpHrHS.cjs +0 -2
  407. package/dist/getSliderMarks-BzrpHrHS.cjs.map +0 -1
  408. package/dist/getSliderMarks-X-_goqH9.js +0 -1027
  409. package/dist/getSliderMarks-X-_goqH9.js.map +0 -1
  410. package/dist/index-ApTBN0kp.js +0 -196
  411. package/dist/index-ApTBN0kp.js.map +0 -1
  412. package/dist/index-BhI7mBJx.cjs +0 -2
  413. package/dist/index-BhI7mBJx.cjs.map +0 -1
  414. package/dist/index-BuhBhuCq.cjs +0 -2
  415. package/dist/index-CHPV5EwG-BzibaIRc.js +0 -3360
  416. package/dist/index-CHPV5EwG-BzibaIRc.js.map +0 -1
  417. package/dist/index-CHPV5EwG-D4pAp7u0.cjs +0 -20
  418. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +0 -1
  419. package/dist/index-DuLvdHo2.cjs +0 -2
  420. package/dist/index-FXfr51ZM.cjs +0 -10
  421. package/dist/index-Scxs_wcm-BAjU0Cob.js +0 -49
  422. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +0 -1
  423. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +0 -2
  424. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +0 -1
  425. package/dist/index-w64Zl8io-DrMm5QSb.cjs +0 -2
  426. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +0 -1
  427. package/dist/index-w64Zl8io-ihagHOdP.js +0 -459
  428. package/dist/index-w64Zl8io-ihagHOdP.js.map +0 -1
  429. package/dist/proxy-CqH8m8IQ.cjs +0 -2
  430. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +0 -4
  431. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +0 -1
  432. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +0 -145
  433. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +0 -1
  434. package/dist/use-in-view-dnRv_qqF.cjs +0 -2
  435. package/dist/x-BXShoIAM-BC2sxios.cjs +0 -2
  436. package/dist/x-BXShoIAM-BC2sxios.cjs.map +0 -1
  437. package/dist/x-BXShoIAM-D6VWO6z5.js +0 -74
  438. package/dist/x-BXShoIAM-D6VWO6z5.js.map +0 -1
package/dist/DataTable.js CHANGED
@@ -1,15 +1,15 @@
1
- import { c as It, j as i } from "./index-CHPV5EwG-BzibaIRc.js";
1
+ import { c as It, j as i } from "./compiler-runtime-qHgugrLy.js";
2
2
  import { i as ht } from "./index-Bwrro8-q.js";
3
3
  import { useRef as jt, useState as y, useEffectEvent as vt, useEffect as kt } from "react";
4
4
  import { i as wt } from "./index-BuwmuDFJ.js";
5
- import { _ as S } from "./Typography-BO0gQDIT.js";
5
+ import { P as S } from "@undp/design-system-react/Typography";
6
6
  import { o as Nt } from "./index-BZQYSqar.js";
7
7
  import { n as X } from "./numberFormattingFunction-BUUV_luR.js";
8
8
  import { GraphFooter as $t } from "./GraphFooter.js";
9
9
  import { GraphHeader as Ot } from "./GraphHeader.js";
10
- import { S as Dt, a as St, b as Bt, F as Et, c as Ft } from "./index-ApTBN0kp.js";
10
+ import { S as Dt, a as St, b as Bt, F as Et, c as Ft } from "./index-D_ls5oK8.js";
11
11
  import { g as st } from "./getTextColorBasedOnBgColor-CDY808zi.js";
12
- import { G as zt } from "./GraphContainer-B8ZqOzKI.js";
12
+ import { G as zt } from "./GraphContainer-DcOM2CI6.js";
13
13
  const xt = (c) => c.map((h) => h || 1).reduce((h, b) => h + b, 0);
14
14
  function Qt(c) {
15
15
  const t = It.c(76), {
@@ -38,15 +38,15 @@ function Qt(c) {
38
38
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {}, t[0] = T) : T = t[0];
39
39
  const [Q, bt] = y(T);
40
40
  let G;
41
- t[1] !== n ? (G = n.filter(Rt).map(Gt), t[1] = n, t[2] = G) : G = t[2];
41
+ t[1] !== n ? (G = n.filter(Pt).map(Gt), t[1] = n, t[2] = G) : G = t[2];
42
42
  const [a, gt] = y(G), [U, Ct] = y(f);
43
- let R;
44
- t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (r) => {
43
+ let P;
44
+ t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (r) => {
45
45
  Ct(r);
46
- }, t[3] = R) : R = t[3];
47
- const Z = vt(R);
48
- let A;
49
- t[4] !== n || t[5] !== u || t[6] !== f || t[7] !== a || t[8] !== Z || t[9] !== g ? (A = () => {
46
+ }, t[3] = P) : P = t[3];
47
+ const R = vt(P);
48
+ let Z;
49
+ t[4] !== n || t[5] !== u || t[6] !== f || t[7] !== a || t[8] !== R || t[9] !== g ? (Z = () => {
50
50
  const r = [];
51
51
  f.forEach((d) => {
52
52
  let o = !0;
@@ -58,10 +58,10 @@ function Qt(c) {
58
58
  } else
59
59
  e.option.indexOf(d[e.id]) === -1 && (o = !1);
60
60
  }), o && r.push(d);
61
- }), Z(u && f ? Nt(r, [u], [g]) : r);
62
- }, t[4] = n, t[5] = u, t[6] = f, t[7] = a, t[8] = Z, t[9] = g, t[10] = A) : A = t[10];
63
- let L;
64
- t[11] !== n || t[12] !== u || t[13] !== f || t[14] !== a || t[15] !== g ? (L = [u, g, f, a, n], t[11] = n, t[12] = u, t[13] = f, t[14] = a, t[15] = g, t[16] = L) : L = t[16], kt(A, L);
61
+ }), R(u && f ? Nt(r, [u], [g]) : r);
62
+ }, t[4] = n, t[5] = u, t[6] = f, t[7] = a, t[8] = R, t[9] = g, t[10] = Z) : Z = t[10];
63
+ let A;
64
+ t[11] !== n || t[12] !== u || t[13] !== f || t[14] !== a || t[15] !== g ? (A = [u, g, f, a, n], t[11] = n, t[12] = u, t[13] = f, t[14] = a, t[15] = g, t[16] = A) : A = t[16], kt(Z, A);
65
65
  const _ = p?.graphContainer, tt = l?.graphContainer;
66
66
  let j;
67
67
  t[17] !== p?.description || t[18] !== p?.title || t[19] !== E || t[20] !== b || t[21] !== l?.description || t[22] !== l?.title || t[23] !== m ? (j = b || E ? /* @__PURE__ */ i.jsx(Ot, { styles: {
@@ -158,13 +158,13 @@ function Qt(c) {
158
158
  r
159
159
  ] }, d) }, d)) })
160
160
  ] }) }), t[56] = n, t[57] = a, t[58] = Q, t[59] = x, t[60] = D) : D = t[60];
161
- let P;
162
- return t[61] !== V || t[62] !== J || t[63] !== M || t[64] !== h || t[65] !== H || t[66] !== q || t[67] !== _ || t[68] !== tt || t[69] !== j || t[70] !== $ || t[71] !== O || t[72] !== D || t[73] !== Y || t[74] !== m ? (P = /* @__PURE__ */ i.jsxs(zt, { className: _, style: tt, id: M, ref: yt, "aria-label": V, backgroundColor: J, theme: Y, language: H, width: m, height: h, padding: q, children: [
161
+ let L;
162
+ return t[61] !== V || t[62] !== J || t[63] !== M || t[64] !== h || t[65] !== H || t[66] !== q || t[67] !== _ || t[68] !== tt || t[69] !== j || t[70] !== $ || t[71] !== O || t[72] !== D || t[73] !== Y || t[74] !== m ? (L = /* @__PURE__ */ i.jsxs(zt, { className: _, style: tt, id: M, ref: yt, "aria-label": V, backgroundColor: J, theme: Y, language: H, width: m, height: h, padding: q, children: [
163
163
  j,
164
164
  $,
165
165
  O,
166
166
  D
167
- ] }), t[61] = V, t[62] = J, t[63] = M, t[64] = h, t[65] = H, t[66] = q, t[67] = _, t[68] = tt, t[69] = j, t[70] = $, t[71] = O, t[72] = D, t[73] = Y, t[74] = m, t[75] = P) : P = t[75], P;
167
+ ] }), t[61] = V, t[62] = J, t[63] = M, t[64] = h, t[65] = H, t[66] = q, t[67] = _, t[68] = tt, t[69] = j, t[70] = $, t[71] = O, t[72] = D, t[73] = Y, t[74] = m, t[75] = L) : L = t[75], L;
168
168
  }
169
169
  function Wt(c) {
170
170
  return c.columnWidth || 1;
@@ -178,7 +178,7 @@ function Gt(c) {
178
178
  option: c.filterOptions
179
179
  };
180
180
  }
181
- function Rt(c) {
181
+ function Pt(c) {
182
182
  return c.filterOptions && c.filterOptions.length > 0;
183
183
  }
184
184
  export {
@@ -0,0 +1,2 @@
1
+ "use strict";const d=require("./compiler-runtime-oPPev21o.cjs"),m=require("@undp/design-system-react/Modal"),p=require("./string2HTML-30nfIm8R.cjs");function x(f){const e=d.compilerRuntimeExports.c(16),{body:t,data:n,setData:c,className:a}=f;if(typeof t=="function"&&(t(n)===null||t(n)===void 0)||t==="")return null;const u=n!==void 0;let l;e[0]!==c?(l=()=>{c(void 0)},e[0]=c,e[1]=l):l=e[1];let o;e[2]!==t||e[3]!==n?(o=typeof t=="string"?{__html:p.string2HTML(t,n)}:void 0,e[2]=t,e[3]=n,e[4]=o):o=e[4];let s;e[5]!==t||e[6]!==n?(s=typeof t=="function"?t(n):null,e[5]=t,e[6]=n,e[7]=s):s=e[7];let i;e[8]!==o||e[9]!==s?(i=d.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:o,children:s}),e[8]=o,e[9]=s,e[10]=i):i=e[10];let r;return e[11]!==a||e[12]!==u||e[13]!==l||e[14]!==i?(r=d.jsxRuntimeExports.jsx(m.Modal,{open:u,onClose:l,className:a,children:i}),e[11]=a,e[12]=u,e[13]=l,e[14]=i,e[15]=r):r=e[15],r}exports.DetailsModal=x;
2
+ //# sourceMappingURL=DetailsModal-BmjtLqrZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsModal-Du8Fr1QD.cjs","sources":["../src/Components/Elements/DetailsModal.tsx"],"sourcesContent":["import { Modal } from '@undp/design-system-react/Modal';\r\n\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n body: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n setData: (_d: any) => void;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n data: any;\r\n className?: string;\r\n}\r\n\r\nexport function DetailsModal(props: Props) {\r\n const { body, data, setData, className } = props;\r\n if (\r\n (typeof body === 'function' && (body(data) === null || body(data) === undefined)) ||\r\n body === ''\r\n ) {\r\n return null;\r\n }\r\n return (\r\n <Modal\r\n open={data !== undefined}\r\n onClose={() => {\r\n setData(undefined);\r\n }}\r\n className={className}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof body === 'string' ? { __html: string2HTML(body, data) } : undefined\r\n }\r\n >\r\n {typeof body === 'function' ? body(data) : null}\r\n </div>\r\n </Modal>\r\n );\r\n}\r\n"],"names":["DetailsModal","props","$","_c","body","data","setData","className","undefined","t0","t1","t2","__html","string2HTML","t3","t4","t5","Modal"],"mappings":"wIAcO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,KAAAA,EAAAC,KAAAA,EAAAC,QAAAA,EAAAC,UAAAA,CAAAA,EAA2CN,EAC3C,GACG,OAAOG,GAAS,aAAeA,EAAKC,CAAI,IAAM,MAAQD,EAAKC,CAAI,IAAMG,SACtEJ,IAAS,GAAE,OAEJ,KAIC,MAAAK,EAAAJ,IAASG,OAAS,IAAAE,EAAAR,OAAAI,GACfI,EAAAA,IAAA,CACPJ,EAAQE,MAAS,CAAC,EACnBN,KAAAI,EAAAJ,KAAAQ,GAAAA,EAAAR,EAAA,CAAA,EAAA,IAAAS,EAAAT,EAAA,CAAA,IAAAE,GAAAF,OAAAG,GAMGM,EAAA,OAAOP,GAAS,SAAhB,CAAAQ,OAAqCC,EAAAA,YAAYT,EAAMC,CAAI,CAAA,EAA3DG,OAA0EN,KAAAE,EAAAF,KAAAG,EAAAH,KAAAS,GAAAA,EAAAT,EAAA,CAAA,EAAA,IAAAY,EAAAZ,EAAA,CAAA,IAAAE,GAAAF,OAAAG,GAG3ES,EAAA,OAAOV,GAAS,WAAaA,EAAKC,CAAW,EAA7C,KAA8CH,KAAAE,EAAAF,KAAAG,EAAAH,KAAAY,GAAAA,EAAAZ,EAAA,CAAA,EAAA,IAAAa,EAAAb,EAAA,CAAA,IAAAS,GAAAT,OAAAY,GANjDC,iCACY,UAAA,0BAER,wBAAAJ,EAGDG,SAAAA,EACH,EAAMZ,KAAAS,EAAAT,KAAAY,EAAAZ,MAAAa,GAAAA,EAAAb,EAAA,EAAA,EAAA,IAAAc,EAAA,OAAAd,EAAA,EAAA,IAAAK,GAAAL,EAAA,EAAA,IAAAO,GAAAP,EAAA,EAAA,IAAAQ,GAAAR,QAAAa,GAdRC,0BAACC,KAAA,CACO,KAAAR,EACG,QAAAC,EAGEH,UAAAA,EAEXQ,SAAAA,CAAAA,CAQF,EAAQb,MAAAK,EAAAL,MAAAO,EAAAP,MAAAQ,EAAAR,MAAAa,EAAAb,MAAAc,GAAAA,EAAAd,EAAA,EAAA,EAfRc,CAeQ"}
1
+ {"version":3,"file":"DetailsModal-BmjtLqrZ.cjs","sources":["../src/Components/Elements/DetailsModal.tsx"],"sourcesContent":["import { Modal } from '@undp/design-system-react/Modal';\r\n\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n body: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n setData: (_d: any) => void;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n data: any;\r\n className?: string;\r\n}\r\n\r\nexport function DetailsModal(props: Props) {\r\n const { body, data, setData, className } = props;\r\n if (\r\n (typeof body === 'function' && (body(data) === null || body(data) === undefined)) ||\r\n body === ''\r\n ) {\r\n return null;\r\n }\r\n return (\r\n <Modal\r\n open={data !== undefined}\r\n onClose={() => {\r\n setData(undefined);\r\n }}\r\n className={className}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof body === 'string' ? { __html: string2HTML(body, data) } : undefined\r\n }\r\n >\r\n {typeof body === 'function' ? body(data) : null}\r\n </div>\r\n </Modal>\r\n );\r\n}\r\n"],"names":["DetailsModal","props","$","_c","body","data","setData","className","undefined","t0","t1","t2","__html","string2HTML","t3","t4","t5","Modal"],"mappings":"qJAcO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,KAAAA,EAAAC,KAAAA,EAAAC,QAAAA,EAAAC,UAAAA,CAAAA,EAA2CN,EAC3C,GACG,OAAOG,GAAS,aAAeA,EAAKC,CAAI,IAAM,MAAQD,EAAKC,CAAI,IAAMG,SACtEJ,IAAS,GAAE,OAEJ,KAIC,MAAAK,EAAAJ,IAASG,OAAS,IAAAE,EAAAR,OAAAI,GACfI,EAAAA,IAAA,CACPJ,EAAQE,MAAS,CAAC,EACnBN,KAAAI,EAAAJ,KAAAQ,GAAAA,EAAAR,EAAA,CAAA,EAAA,IAAAS,EAAAT,EAAA,CAAA,IAAAE,GAAAF,OAAAG,GAMGM,EAAA,OAAOP,GAAS,SAAhB,CAAAQ,OAAqCC,EAAAA,YAAYT,EAAMC,CAAI,CAAA,EAA3DG,OAA0EN,KAAAE,EAAAF,KAAAG,EAAAH,KAAAS,GAAAA,EAAAT,EAAA,CAAA,EAAA,IAAAY,EAAAZ,EAAA,CAAA,IAAAE,GAAAF,OAAAG,GAG3ES,EAAA,OAAOV,GAAS,WAAaA,EAAKC,CAAW,EAA7C,KAA8CH,KAAAE,EAAAF,KAAAG,EAAAH,KAAAY,GAAAA,EAAAZ,EAAA,CAAA,EAAA,IAAAa,EAAAb,EAAA,CAAA,IAAAS,GAAAT,OAAAY,GANjDC,iCACY,UAAA,0BAER,wBAAAJ,EAGDG,SAAAA,EACH,EAAMZ,KAAAS,EAAAT,KAAAY,EAAAZ,MAAAa,GAAAA,EAAAb,EAAA,EAAA,EAAA,IAAAc,EAAA,OAAAd,EAAA,EAAA,IAAAK,GAAAL,EAAA,EAAA,IAAAO,GAAAP,EAAA,EAAA,IAAAQ,GAAAR,QAAAa,GAdRC,0BAACC,QAAA,CACO,KAAAR,EACG,QAAAC,EAGEH,UAAAA,EAEXQ,SAAAA,CAAAA,CAQF,EAAQb,MAAAK,EAAAL,MAAAO,EAAAP,MAAAQ,EAAAR,MAAAa,EAAAb,MAAAc,GAAAA,EAAAd,EAAA,EAAA,EAfRc,CAeQ"}
@@ -1,5 +1,5 @@
1
- import { c as p, j as m } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { l as u } from "./Modal-CrUYln5V.js";
1
+ import { c as p, j as m } from "./compiler-runtime-qHgugrLy.js";
2
+ import { Modal as u } from "@undp/design-system-react/Modal";
3
3
  import { s as x } from "./string2HTML-DL-pInUB.js";
4
4
  function h(d) {
5
5
  const t = p.c(16), {
@@ -29,4 +29,4 @@ function h(d) {
29
29
  export {
30
30
  h as D
31
31
  };
32
- //# sourceMappingURL=DetailsModal-GqEbGHY2.js.map
32
+ //# sourceMappingURL=DetailsModal-k-Me_U_T.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsModal-GqEbGHY2.js","sources":["../src/Components/Elements/DetailsModal.tsx"],"sourcesContent":["import { Modal } from '@undp/design-system-react/Modal';\r\n\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n body: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n setData: (_d: any) => void;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n data: any;\r\n className?: string;\r\n}\r\n\r\nexport function DetailsModal(props: Props) {\r\n const { body, data, setData, className } = props;\r\n if (\r\n (typeof body === 'function' && (body(data) === null || body(data) === undefined)) ||\r\n body === ''\r\n ) {\r\n return null;\r\n }\r\n return (\r\n <Modal\r\n open={data !== undefined}\r\n onClose={() => {\r\n setData(undefined);\r\n }}\r\n className={className}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof body === 'string' ? { __html: string2HTML(body, data) } : undefined\r\n }\r\n >\r\n {typeof body === 'function' ? body(data) : null}\r\n </div>\r\n </Modal>\r\n );\r\n}\r\n"],"names":["DetailsModal","props","$","_c","body","data","setData","className","undefined","t0","t1","t2","__html","string2HTML","t3","t4","t5","Modal"],"mappings":";;;AAcO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,MAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,WAAAA;AAAAA,EAAAA,IAA2CN;AAC3C,MACG,OAAOG,KAAS,eAAeA,EAAKC,CAAI,MAAM,QAAQD,EAAKC,CAAI,MAAMG,WACtEJ,MAAS;AAAE,WAEJ;AAIC,QAAAK,IAAAJ,MAASG;AAAS,MAAAE;AAAA,EAAAR,SAAAI,KACfI,IAAAA,MAAA;AACPJ,IAAAA,EAAQE,MAAS;AAAA,EAAC,GACnBN,OAAAI,GAAAJ,OAAAQ,KAAAA,IAAAR,EAAA,CAAA;AAAA,MAAAS;AAAA,EAAAT,EAAA,CAAA,MAAAE,KAAAF,SAAAG,KAMGM,IAAA,OAAOP,KAAS,WAAhB;AAAA,IAAAQ,QAAqCC,EAAYT,GAAMC,CAAI;AAAA,EAAA,IAA3DG,QAA0EN,OAAAE,GAAAF,OAAAG,GAAAH,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAY;AAAA,EAAAZ,EAAA,CAAA,MAAAE,KAAAF,SAAAG,KAG3ES,IAAA,OAAOV,KAAS,aAAaA,EAAKC,CAAW,IAA7C,MAA8CH,OAAAE,GAAAF,OAAAG,GAAAH,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAa;AAAA,EAAAb,EAAA,CAAA,MAAAS,KAAAT,SAAAY,KANjDC,mCACY,WAAA,2BAER,yBAAAJ,GAGDG,UAAAA,GACH,GAAMZ,OAAAS,GAAAT,OAAAY,GAAAZ,QAAAa,KAAAA,IAAAb,EAAA,EAAA;AAAA,MAAAc;AAAA,SAAAd,EAAA,EAAA,MAAAK,KAAAL,EAAA,EAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAQ,KAAAR,UAAAa,KAdRC,0BAACC,GAAA,EACO,MAAAR,GACG,SAAAC,GAGEH,WAAAA,GAEXQ,UAAAA,EAAAA,CAQF,GAAQb,QAAAK,GAAAL,QAAAO,GAAAP,QAAAQ,GAAAR,QAAAa,GAAAb,QAAAc,KAAAA,IAAAd,EAAA,EAAA,GAfRc;AAeQ;"}
1
+ {"version":3,"file":"DetailsModal-k-Me_U_T.js","sources":["../src/Components/Elements/DetailsModal.tsx"],"sourcesContent":["import { Modal } from '@undp/design-system-react/Modal';\r\n\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n body: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n setData: (_d: any) => void;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n data: any;\r\n className?: string;\r\n}\r\n\r\nexport function DetailsModal(props: Props) {\r\n const { body, data, setData, className } = props;\r\n if (\r\n (typeof body === 'function' && (body(data) === null || body(data) === undefined)) ||\r\n body === ''\r\n ) {\r\n return null;\r\n }\r\n return (\r\n <Modal\r\n open={data !== undefined}\r\n onClose={() => {\r\n setData(undefined);\r\n }}\r\n className={className}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof body === 'string' ? { __html: string2HTML(body, data) } : undefined\r\n }\r\n >\r\n {typeof body === 'function' ? body(data) : null}\r\n </div>\r\n </Modal>\r\n );\r\n}\r\n"],"names":["DetailsModal","props","$","_c","body","data","setData","className","undefined","t0","t1","t2","__html","string2HTML","t3","t4","t5","Modal"],"mappings":";;;AAcO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,MAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,WAAAA;AAAAA,EAAAA,IAA2CN;AAC3C,MACG,OAAOG,KAAS,eAAeA,EAAKC,CAAI,MAAM,QAAQD,EAAKC,CAAI,MAAMG,WACtEJ,MAAS;AAAE,WAEJ;AAIC,QAAAK,IAAAJ,MAASG;AAAS,MAAAE;AAAA,EAAAR,SAAAI,KACfI,IAAAA,MAAA;AACPJ,IAAAA,EAAQE,MAAS;AAAA,EAAC,GACnBN,OAAAI,GAAAJ,OAAAQ,KAAAA,IAAAR,EAAA,CAAA;AAAA,MAAAS;AAAA,EAAAT,EAAA,CAAA,MAAAE,KAAAF,SAAAG,KAMGM,IAAA,OAAOP,KAAS,WAAhB;AAAA,IAAAQ,QAAqCC,EAAYT,GAAMC,CAAI;AAAA,EAAA,IAA3DG,QAA0EN,OAAAE,GAAAF,OAAAG,GAAAH,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAY;AAAA,EAAAZ,EAAA,CAAA,MAAAE,KAAAF,SAAAG,KAG3ES,IAAA,OAAOV,KAAS,aAAaA,EAAKC,CAAW,IAA7C,MAA8CH,OAAAE,GAAAF,OAAAG,GAAAH,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAa;AAAA,EAAAb,EAAA,CAAA,MAAAS,KAAAT,SAAAY,KANjDC,mCACY,WAAA,2BAER,yBAAAJ,GAGDG,UAAAA,GACH,GAAMZ,OAAAS,GAAAT,OAAAY,GAAAZ,QAAAa,KAAAA,IAAAb,EAAA,EAAA;AAAA,MAAAc;AAAA,SAAAd,EAAA,EAAA,MAAAK,KAAAL,EAAA,EAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAQ,KAAAR,UAAAa,KAdRC,0BAACC,GAAA,EACO,MAAAR,GACG,SAAAC,GAGEH,WAAAA,GAEXQ,UAAAA,EAAAA,CAQF,GAAQb,QAAAK,GAAAL,QAAAO,GAAAP,QAAAQ,GAAAR,QAAAa,GAAAb,QAAAc,KAAAA,IAAAd,EAAA,EAAA,GAfRc;AAeQ;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-D4pAp7u0.cjs"),S=require("react"),L=require("./parse-xYI9yrvL.cjs"),fi=require("./index-Cno4Q0YE.cjs"),oi=require("./numberFormattingFunction-u2iNHL_c.cjs"),di=require("./Tooltip-C9F3uYG0.cjs"),Ft=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),si=require("./customArea-BAcQ3pBM.cjs"),hi=require("./AxisTitle-DP_evhbe.cjs"),yi=require("./Axis-BTaS9oPQ.cjs"),gi=require("./XTicksAndGridLines-B4UhDVyU.cjs"),ji=require("./ReferenceLine-CpU4G01Y.cjs"),vi=require("./YTicksAndGridLines-sT3zdCs6.cjs"),wi=require("./index-BuhBhuCq.cjs"),bi=require("./time-CkcKbhwe.cjs"),Ri=require("./linear-CgUCbw9F.cjs"),ai=require("./line-DaEMhXmx.cjs"),Pe=require("./step-BZ3C8QFW.cjs"),ri=require("./area-C1gxfNGD.cjs"),Ei=require("./select-Bnfk0lJx.cjs"),k=require("./proxy-CqH8m8IQ.cjs"),Oi=require("./init-DU0ybBc_.cjs"),Ci=require("./pointer-Dkq5NV1q.cjs"),Ai=require("./use-in-view-dnRv_qqF.cjs"),Li=require("./GraphFooter.cjs"),Vi=require("./GraphHeader.cjs"),Si=require("./ColorLegend.cjs"),He=require("./Colors.cjs"),ki=require("./generateRandomString-B5zBiJzS.cjs"),Di=require("./EmptyState-CFmiFPHz.cjs"),li=require("./GraphContainer-Cul9b74X.cjs"),Ii=require("./getNoOfTicks-C_1CFXv_.cjs");function Ti(r){const t=s.compilerRuntimeExports.c(225),{data:w,width:it,height:nt,lineColors:u,suffix:O,prefix:g,dateFormat:x,showValues:U,noOfXTicks:xe,rightMargin:Gt,leftMargin:V,topMargin:ot,bottomMargin:Pt,tooltip:At,highlightAreaSettings:Ht,onSeriesMouseOver:Wt,animate:i,rtl:N,showColorLegendAtTop:st,colorDomain:q,diffAreaColors:$,idSuffix:at,strokeWidth:Z,showDots:B,refValues:Lt,minValue:D,maxValue:Vt,annotations:M,customHighlightAreaSettings:Yt,yAxisTitle:rt,noOfYTicks:Xt,minDate:re,maxDate:le,curveType:z,styles:d,classNames:h,precision:b,customLayers:I,locale:A,naLabel:F,padZeros:C}=r,ce=S.useRef(null);let lt;t[0]!==i.amount||t[1]!==i.once?(lt={once:i.once,amount:i.amount},t[0]=i.amount,t[1]=i.once,t[2]=lt):lt=t[2];const c=Ai.useInView(ce,lt),[y,v]=S.useState(!1);let f,J;t[3]!==i.duration||t[4]!==y||t[5]!==c?(f=()=>{if(c&&!y){const o=setTimeout(()=>{v(!0)},(i.duration+.5)*1e3);return()=>clearTimeout(o)}},J=[c,y,i.duration],t[3]=i.duration,t[4]=y,t[5]=c,t[6]=f,t[7]=J):(f=t[6],J=t[7]),S.useEffect(f,J);const ct=z==="linear"?ai.curveLinear:z==="step"?Pe.curveStep:z==="stepAfter"?Pe.stepAfter:z==="stepBefore"?Pe.stepBefore:Pe.monotoneX,[p,Ut]=S.useState(void 0),[ut,Zt]=S.useState(void 0),[K,Q]=S.useState(void 0),St=rt?V+30:V;let xt;t[8]!==Pt||t[9]!==Gt||t[10]!==St||t[11]!==ot?(xt={top:ot,bottom:Pt,left:St,right:Gt},t[8]=Pt,t[9]=Gt,t[10]=St,t[11]=ot,t[12]=xt):xt=t[12];const j=xt,mt=S.useRef(null);let pt;t[13]!==x?(pt=o=>({...o,date:L.parse(`${o.date}`,x,new Date)}),t[13]=x,t[14]=pt):pt=t[14];const n=fi.orderBy(w.map(pt),["date"],["asc"]);let ft;if(t[15]!==x||t[16]!==Ht){let o;t[18]!==x?(o=e=>({...e,coordinates:[e.coordinates[0]===null?null:L.parse(`${e.coordinates[0]}`,x,new Date),e.coordinates[1]===null?null:L.parse(`${e.coordinates[1]}`,x,new Date)]}),t[18]=x,t[19]=o):o=t[19],ft=Ht.map(o),t[15]=x,t[16]=Ht,t[17]=ft}else ft=t[17];const dt=ft;let _;if(t[20]!==Yt||t[21]!==x){let o;t[23]!==x?(o=e=>({...e,coordinates:e.coordinates.map((X,Mt)=>Mt%2===0?L.parse(`${X}`,x,new Date):X)}),t[23]=x,t[24]=o):o=t[24],_=Yt.map(o),t[20]=Yt,t[21]=x,t[22]=_}else _=t[22];const Bt=_,m=it-j.left-j.right,R=nt-j.top-j.bottom,ht=re?L.parse(`${re}`,x,new Date):n[0].date,zt=le?L.parse(`${le}`,x,new Date):n[n.length-1].date,yt=Math.min(...n.map(Ki))!==1/0?Math.min(...n.map(Ji))>0?0:Math.min(...n.map(zi)):0,gt=Math.min(...n.map(Bi))!==1/0?Math.min(...n.map(Zi))>0?0:Math.min(...n.map(Ui)):0,Jt=Math.max(...n.map(Xi))!==1/0?Math.max(...n.map(Yi)):0,kt=Math.max(...n.map(Wi))!==1/0?Math.max(...n.map(Hi)):0;let jt;t[25]!==yt||t[26]!==gt||t[27]!==D?(jt=Ft.checkIfNullOrUndefined(D)?yt<gt?yt:gt:D,t[25]=yt,t[26]=gt,t[27]=D,t[28]=jt):jt=t[28];const E=jt,tt=Jt>kt?Jt:kt,a=bi.time().domain([ht,zt]).range([0,m]);let vt;t[29]!==E||t[30]!==D?(vt=Ft.checkIfNullOrUndefined(D)?E:D,t[29]=E,t[30]=D,t[31]=vt):vt=t[31];let wt;t[32]!==tt||t[33]!==Vt?(wt=Ft.checkIfNullOrUndefined(Vt)?tt>0?tt:0:Vt,t[32]=tt,t[33]=Vt,t[34]=wt):wt=t[34];const l=Ri.linear().domain([vt,wt]).range([R,0]).nice(),Dt=ai.line().x(o=>a(o.date)).y(o=>l(o.y1)).curve(ct),It=ai.line().x(o=>a(o.date)).y(o=>l(o.y2)).curve(ct),Kt=ri.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(o=>l(o.y2)).curve(ct),ue=ri.area().x(o=>a(o.date)).y1(o=>l(o.y1)).y0(0).curve(ct),Tt=ri.area().x(o=>a(o.date)).y1(o=>l(o.y2)).y0(0).curve(ct),me=l.ticks(Xt),Nt=a.ticks(xe);S.useEffect(()=>{const o=X=>{const Mt=n[Oi.bisectCenter(n.map(Pi),a.invert(Ci.pointer(X)[0]),0)];Ut(Mt||n[n.length-1]),Wt?.(Mt||n[n.length-1]),Q(X.clientY),Zt(X.clientX)},e=()=>{Ut(void 0),Zt(void 0),Q(void 0),Wt?.(void 0)};Ei.select(mt.current).on("mousemove",o).on("mouseout",e)},[a,n,Wt]);let Qt;t[35]===Symbol.for("react.memo_cache_sentinel")?(Qt={fill:"none"},t[35]=Qt):Qt=t[35];let bt;t[36]===Symbol.for("react.memo_cache_sentinel")?(bt={fill:"none"},t[36]=bt):bt=t[36];let qt;t[37]!==i||t[38]!==R||t[39]!==m||t[40]!==dt||t[41]!==c||t[42]!==a?(qt=s.jsxRuntimeExports.jsx(wi.HighlightArea,{areaSettings:dt,width:m,height:R,scale:a,animate:i,isInView:c}),t[37]=i,t[38]=R,t[39]=m,t[40]=dt,t[41]=c,t[42]=a,t[43]=qt):qt=t[43];const Rt=d?.yAxis?.gridLines,Et=d?.yAxis?.labels;let Ot;t[44]!==Rt||t[45]!==Et?(Ot={gridLines:Rt,labels:Et},t[44]=Rt,t[45]=Et,t[46]=Ot):Ot=t[46];const $t=h?.yAxis?.gridLines,G=h?.yAxis?.labels;let T;t[47]!==$t||t[48]!==G?(T={gridLines:$t,labels:G},t[47]=$t,t[48]=G,t[49]=T):T=t[49];const P=l(E<0?0:E),H=l(E<0?0:E),W=0-V,Y=m+j.right,Ct=E<0?0:E;let et;t[50]!==A||t[51]!==C||t[52]!==b||t[53]!==g||t[54]!==O||t[55]!==Ct?(et=oi.numberFormattingFunction(Ct,void 0,b,g,O,A,C),t[50]=A,t[51]=C,t[52]=b,t[53]=g,t[54]=O,t[55]=Ct,t[56]=et):et=t[56];const _t=0-V,We=l(E<0?0:E),Ye=tt<0?"1rem":-5;let te;t[57]!==_t||t[58]!==We||t[59]!==Ye?(te={x:_t,y:We,dx:0,dy:Ye},t[57]=_t,t[58]=We,t[59]=Ye,t[60]=te):te=t[60];const Xe=h?.xAxis?.axis,Ue=h?.yAxis?.labels;let ee;t[61]!==Xe||t[62]!==Ue?(ee={axis:Xe,label:Ue},t[61]=Xe,t[62]=Ue,t[63]=ee):ee=t[63];const Ze=d?.xAxis?.axis,Be=d?.yAxis?.labels;let ie;t[64]!==Ze||t[65]!==Be?(ie={axis:Ze,label:Be},t[64]=Ze,t[65]=Be,t[66]=ie):ie=t[66];let pe;t[67]!==P||t[68]!==H||t[69]!==W||t[70]!==Y||t[71]!==et||t[72]!==te||t[73]!==ee||t[74]!==ie?(pe=s.jsxRuntimeExports.jsx(yi.Axis,{y1:P,y2:H,x1:W,x2:Y,label:et,labelPos:te,classNames:ee,styles:ie}),t[67]=P,t[68]=H,t[69]=W,t[70]=Y,t[71]=et,t[72]=te,t[73]=ee,t[74]=ie,t[75]=pe):pe=t[75];const ze=0-V-15,Je=R/2,Ke=d?.yAxis?.title,Qe=h?.yAxis?.title;let fe;t[76]!==ze||t[77]!==Je||t[78]!==Ke||t[79]!==Qe||t[80]!==rt?(fe=s.jsxRuntimeExports.jsx(hi.AxisTitle,{x:ze,y:Je,style:Ke,className:Qe,text:rt,rotate90:!0}),t[76]=ze,t[77]=Je,t[78]=Ke,t[79]=Qe,t[80]=rt,t[81]=fe):fe=t[81];let de;t[82]!==x?(de=o=>L.format(o,x),t[82]=x,t[83]=de):de=t[83];const ci=Nt.map(de),ui=Nt.map(o=>a(o)),_e=d?.xAxis?.gridLines,ti=d?.xAxis?.labels;let he;t[84]!==_e||t[85]!==ti?(he={gridLines:_e,labels:ti},t[84]=_e,t[85]=ti,t[86]=he):he=t[86];const ei=h?.xAxis?.gridLines;let ne;t[87]!==ei?(ne=s.mo("opacity-0",ei),t[87]=ei,t[88]=ne):ne=t[88];const ii=h?.xAxis?.labels;let oe;t[89]!==ii?(oe=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",ii),t[89]=ii,t[90]=oe):oe=t[90];let ye;t[91]!==ne||t[92]!==oe?(ye={gridLines:ne,labels:oe},t[91]=ne,t[92]=oe,t[93]=ye):ye=t[93];let ge;t[94]!==I?(ge=I.filter(Mi).map($i),t[94]=I,t[95]=ge):ge=t[95];let je;t[96]!==$[1]?(je={fill:$[1]},t[96]=$[1],t[97]=je):je=t[97];let ve;t[98]!==i.duration?(ve={opacity:0,transition:{duration:i.duration}},t[98]=i.duration,t[99]=ve):ve=t[99];let we;t[100]===Symbol.for("react.memo_cache_sentinel")?(we={opacity:1},t[100]=we):we=t[100];let be;t[101]!==i.duration?(be={initial:we,whileInView:{opacity:1,transition:{duration:i.duration}}},t[101]=i.duration,t[102]=be):be=t[102];let Re;t[103]!==$[0]?(Re={fill:$[0]},t[103]=$[0],t[104]=Re):Re=t[104];let Ee;t[105]!==i.duration?(Ee={opacity:0,transition:{duration:i.duration}},t[105]=i.duration,t[106]=Ee):Ee=t[106];let Oe;t[107]===Symbol.for("react.memo_cache_sentinel")?(Oe={opacity:0},t[107]=Oe):Oe=t[107];let Ce;t[108]!==i.duration?(Ce={initial:Oe,whileInView:{opacity:1,transition:{duration:i.duration}}},t[108]=i.duration,t[109]=Ce):Ce=t[109];let Ae;t[110]!==u[0]||t[111]!==Z?(Ae={fill:"none",stroke:u[0],strokeWidth:Z},t[110]=u[0],t[111]=Z,t[112]=Ae):Ae=t[112];let Le;t[113]!==i.duration?(Le={opacity:0,transition:{duration:i.duration}},t[113]=i.duration,t[114]=Le):Le=t[114];let Ve;t[115]!==u[1]||t[116]!==Z?(Ve={fill:"none",stroke:u[1],strokeWidth:Z},t[115]=u[1],t[116]=Z,t[117]=Ve):Ve=t[117];let Se;t[118]!==i.duration?(Se={opacity:0,transition:{duration:i.duration}},t[118]=i.duration,t[119]=Se):Se=t[119];const xi=1,ni=It(n)||"";let se;t[120]!==i.duration?(se={duration:i.duration},t[120]=i.duration,t[121]=se):se=t[121];let ke;t[122]!==ni||t[123]!==se?(ke={pathLength:xi,d:ni,opacity:1,transition:se},t[122]=ni,t[123]=se,t[124]=ke):ke=t[124];let De;t[125]!==i.duration||t[126]!==q||t[127]!==n||t[128]!==y||t[129]!==c||t[130]!==u[0]||t[131]!==u[1]||t[132]!==st||t[133]!==a||t[134]!==l?(De=st?null:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(k.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:u[0]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y1),fill:u[0],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:q[0]},q[0]),s.jsxRuntimeExports.jsx(k.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:u[1]},whileInView:{opacity:1,x:a(n[n.length-1].date),y:l(n[n.length-1].y2),fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:q[1]},q[1])]}),t[125]=i.duration,t[126]=q,t[127]=n,t[128]=y,t[129]=c,t[130]=u[0],t[131]=u[1],t[132]=st,t[133]=a,t[134]=l,t[135]=De):De=t[135];let Ie;t[136]!==h?.mouseOverLine||t[137]!==R||t[138]!==p||t[139]!==d?.mouseOverLine||t[140]!==a?(Ie=p?s.jsxRuntimeExports.jsx("line",{y1:0,y2:R,x1:a(p.date),x2:a(p.date),className:s.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",h?.mouseOverLine),style:d?.mouseOverLine}):null,t[136]=h?.mouseOverLine,t[137]=R,t[138]=p,t[139]=d?.mouseOverLine,t[140]=a,t[141]=Ie):Ie=t[141];let Te;if(t[142]!==i.duration||t[143]!==h?.graphObjectValues||t[144]!==n||t[145]!==m||t[146]!==y||t[147]!==c||t[148]!==u[0]||t[149]!==u[1]||t[150]!==A||t[151]!==F||t[152]!==C||t[153]!==b||t[154]!==g||t[155]!==B||t[156]!==U||t[157]!==d?.graphObjectValues||t[158]!==O||t[159]!==a||t[160]!==l){let o;t[162]!==i.duration||t[163]!==h?.graphObjectValues||t[164]!==n.length||t[165]!==m||t[166]!==y||t[167]!==c||t[168]!==u[0]||t[169]!==u[1]||t[170]!==A||t[171]!==F||t[172]!==C||t[173]!==b||t[174]!==g||t[175]!==B||t[176]!==U||t[177]!==d?.graphObjectValues||t[178]!==O||t[179]!==a||t[180]!==l?(o=(e,X)=>s.jsxRuntimeExports.jsxs(k.motion.g,{children:[Ft.checkIfNullOrUndefined(e.y1)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[B?s.jsxRuntimeExports.jsx(k.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y1),fill:u[0]},whileInView:{opacity:1,fill:u[0],transition:{duration:.5,delay:i.duration},cx:a(e.date),cy:l(e.y1)}},initial:"initial",animate:c?"whileInView":"initial"}):null,U?s.jsxRuntimeExports.jsx(k.motion.text,{dy:e.y2<e.y1?-8:"1em",style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-1 text-xs font-bold",h?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y1),fill:u[0]},whileInView:{opacity:1,fill:u[0],x:a(e.date),y:l(e.y1),transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:oi.numberFormattingFunction(e.y1,F,b,g,O,A,C)}):null]}),Ft.checkIfNullOrUndefined(e.y2)?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[B?s.jsxRuntimeExports.jsx(k.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:a(e.date),cy:l(e.y2),fill:u[1]},whileInView:{opacity:1,fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration},cx:a(e.date),cy:l(e.y2)}},initial:"initial",animate:c?"whileInView":"initial"}):null,U?s.jsxRuntimeExports.jsx(k.motion.text,{dy:e.y2>e.y1?-8:"1em",style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:s.mo("graph-value graph-value-line-2 text-xs font-bold",h?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:a(e.date),y:l(e.y2),fill:u[1]},whileInView:{opacity:1,x:a(e.date),y:l(e.y2),fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:oi.numberFormattingFunction(e.y2,F,b,g,O,A,C)}):null]})]},X),t[162]=i.duration,t[163]=h?.graphObjectValues,t[164]=n.length,t[165]=m,t[166]=y,t[167]=c,t[168]=u[0],t[169]=u[1],t[170]=A,t[171]=F,t[172]=C,t[173]=b,t[174]=g,t[175]=B,t[176]=U,t[177]=d?.graphObjectValues,t[178]=O,t[179]=a,t[180]=l,t[181]=o):o=t[181],Te=n.map(o),t[142]=i.duration,t[143]=h?.graphObjectValues,t[144]=n,t[145]=m,t[146]=y,t[147]=c,t[148]=u[0],t[149]=u[1],t[150]=A,t[151]=F,t[152]=C,t[153]=b,t[154]=g,t[155]=B,t[156]=U,t[157]=d?.graphObjectValues,t[158]=O,t[159]=a,t[160]=l,t[161]=Te}else Te=t[161];let Ne;t[182]!==i||t[183]!==m||t[184]!==c||t[185]!==V||t[186]!==j.right||t[187]!==Lt||t[188]!==l?(Ne=Lt?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:Lt.map((o,e)=>s.jsxRuntimeExports.jsx(ji.RefLineY,{text:o.text,color:o.color,y:l(o.value),x1:0-V,x2:m+j.right,classNames:o.classNames,styles:o.styles,animate:i,isInView:c},e))}):null,t[182]=i,t[183]=m,t[184]=c,t[185]=V,t[186]=j.right,t[187]=Lt,t[188]=l,t[189]=Ne):Ne=t[189];let ae;if(t[190]!==i||t[191]!==M||t[192]!==x||t[193]!==m||t[194]!==c||t[195]!==j.right||t[196]!==N||t[197]!==a||t[198]!==l){let o;t[200]!==i||t[201]!==x||t[202]!==m||t[203]!==c||t[204]!==j.right||t[205]!==N||t[206]!==a||t[207]!==l?(o=(e,X)=>{const Mt=si.getLineEndPoint({x:e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},Ft.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),mi=e.showConnector?{y1:Mt.y,x1:Mt.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date)):0,circleRadius:Ft.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,pi={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:N?0:e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:N?e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0):m+j.right-(e.xCoordinate?a(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return s.jsxRuntimeExports.jsx(si.Annotation,{color:e.color,connectorsSettings:mi,labelSettings:pi,text:e.text,classNames:e.classNames,styles:e.styles,animate:i,isInView:c},X)},t[200]=i,t[201]=x,t[202]=m,t[203]=c,t[204]=j.right,t[205]=N,t[206]=a,t[207]=l,t[208]=o):o=t[208],ae=M.map(o),t[190]=i,t[191]=M,t[192]=x,t[193]=m,t[194]=c,t[195]=j.right,t[196]=N,t[197]=a,t[198]=l,t[199]=ae}else ae=t[199];let qe;t[209]!==ae?(qe=s.jsxRuntimeExports.jsx("g",{children:ae}),t[209]=ae,t[210]=qe):qe=t[210];let $e;t[211]!==I?($e=I.filter(qi).map(Ni),t[211]=I,t[212]=$e):$e=t[212];let Me;t[213]===Symbol.for("react.memo_cache_sentinel")?(Me={fill:"none",pointerEvents:"all"},t[213]=Me):Me=t[213];let Fe;t[214]!==mt||t[215]!==R||t[216]!==m?(Fe=s.jsxRuntimeExports.jsx("rect",{ref:mt,style:Me,width:m,height:R}),t[214]=mt,t[215]=R,t[216]=m,t[217]=Fe):Fe=t[217];let Ge;return t[218]!==h?.tooltip||t[219]!==ut||t[220]!==K||t[221]!==p||t[222]!==d?.tooltip||t[223]!==At?(Ge=p&&At&&ut&&K?s.jsxRuntimeExports.jsx(di.Tooltip,{data:p,body:At,xPos:ut,yPos:K,backgroundStyle:d?.tooltip,className:h?.tooltip}):null,t[218]=h?.tooltip,t[219]=ut,t[220]=K,t[221]=p,t[222]=d?.tooltip,t[223]=At,t[224]=Ge):Ge=t[224],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(k.motion.svg,{width:`${it}px`,height:`${nt}px`,viewBox:`0 0 ${it} ${nt}`,direction:"ltr",ref:ce,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${j.left},${j.top})`,children:[s.jsxRuntimeExports.jsx("clipPath",{id:`above${at}`,children:s.jsxRuntimeExports.jsx("path",{d:Tt(n),style:Qt})}),s.jsxRuntimeExports.jsx("clipPath",{id:`below${at}`,children:s.jsxRuntimeExports.jsx("path",{d:ue(n),style:bt})}),qt,s.jsxRuntimeExports.jsx(si.CustomArea,{areaSettings:Bt,scaleX:a,scaleY:l,animate:i,isInView:c}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(vi.YTicksAndGridLines,{values:me.filter(Gi),y:me.filter(Fi).map(o=>l(o)),x1:0-V,x2:m+j.right,styles:Ot,classNames:T,suffix:O,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:b,locale:A,padZeros:C}),pe,fe]})}),s.jsxRuntimeExports.jsx(gi.XTicksAndGridLines,{values:ci,x:ui,y1:0,y2:R,styles:he,classNames:ye,suffix:O,prefix:g,labelType:"primary",showGridLines:!0,precision:b,locale:A,padZeros:C}),ge,s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(k.motion.path,{clipPath:`url(#below${at})`,d:Kt(n)||"",style:je,exit:ve,variants:be,initial:"initial",animate:c?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(k.motion.path,{clipPath:`url(#above${at})`,d:Kt(n)||"",style:Re,exit:Ee,variants:Ce,initial:"initial",animate:c?"whileInView":"initial"})]}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(k.motion.path,{d:Dt(n)||"",style:Ae,exit:Le,variants:{initial:{pathLength:0,d:Dt(n)||"",opacity:1},whileInView:{pathLength:1,d:Dt(n)||"",opacity:1,transition:{duration:i.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),s.jsxRuntimeExports.jsx(k.motion.path,{style:Ve,exit:Se,variants:{initial:{pathLength:0,d:It(n)||"",opacity:1},whileInView:ke},initial:"initial",animate:c?"whileInView":"initial"}),De,Ie,Te]}),Ne,qe,$e,Fe]})}),Ge]})}function Ni(r){return r.layer}function qi(r){return r.position==="after"}function $i(r){return r.layer}function Mi(r){return r.position==="before"}function Fi(r){return r!==0}function Gi(r){return r!==0}function Pi(r){return r.date}function Hi(r){return r.y2}function Wi(r){return r.y2}function Yi(r){return r.y1}function Xi(r){return r.y1}function Ui(r){return r.y2}function Zi(r){return r.y2}function Bi(r){return r.y2}function zi(r){return r.y1}function Ji(r){return r.y1}function Ki(r){return r.y1}function Qi(r){const t=s.compilerRuntimeExports.c(105),{data:w,graphTitle:it,sources:nt,graphDescription:u,height:O,width:g,footNote:x,noOfXTicks:U,dateFormat:xe,showValues:Gt,padding:V,lineColors:ot,backgroundColor:Pt,leftMargin:At,rightMargin:Ht,topMargin:Wt,bottomMargin:i,tooltip:N,highlightAreaSettings:st,relativeHeight:q,onSeriesMouseOver:$,graphID:at,graphDownload:Z,dataDownload:B,animate:Lt,language:D,minHeight:Vt,labels:M,showColorLegendAtTop:Yt,colorLegendTitle:rt,diffAreaColors:Xt,strokeWidth:re,showDots:le,refValues:z,minValue:d,maxValue:h,annotations:b,customHighlightAreaSettings:I,theme:A,ariaLabel:F,yAxisTitle:C,noOfYTicks:ce,minDate:lt,maxDate:c,curveType:y,styles:v,classNames:f,customLayers:J,naLabel:ct,numberDisplayOptions:p}=r,Ut=U===void 0?10:U,ut=xe===void 0?"yyyy":xe,Zt=Gt===void 0?!1:Gt;let K;t[0]!==ot?(K=ot===void 0?[He.Colors.light.categoricalColors.colors[0],He.Colors.light.categoricalColors.colors[1]]:ot,t[0]=ot,t[1]=K):K=t[1];const Q=K,St=Pt===void 0?!1:Pt,xt=At===void 0?30:At,j=Ht===void 0?50:Ht,mt=Wt===void 0?20:Wt,pt=i===void 0?25:i;let n;t[2]!==st?(n=st===void 0?[]:st,t[2]=st,t[3]=n):n=t[3];const ft=n,dt=Z===void 0?!1:Z,_=B===void 0?!1:B,Bt=Lt===void 0?!1:Lt,m=D===void 0?"en":D,R=Vt===void 0?0:Vt,ht=Yt===void 0?!1:Yt;let zt;t[4]!==Xt?(zt=Xt===void 0?[He.Colors.alerts.red,He.Colors.alerts.darkGreen]:Xt,t[4]=Xt,t[5]=zt):zt=t[5];const yt=zt,gt=re===void 0?2:re,Jt=le===void 0?!0:le;let kt;t[6]!==z?(kt=z===void 0?[]:z,t[6]=z,t[7]=kt):kt=t[7];const jt=kt;let E;t[8]!==b?(E=b===void 0?[]:b,t[8]=b,t[9]=E):E=t[9];const tt=E;let a;t[10]!==I?(a=I===void 0?[]:I,t[10]=I,t[11]=a):a=t[11];const vt=a,wt=A===void 0?"light":A,l=ce===void 0?5:ce,Dt=y===void 0?"curve":y;let It;t[12]!==J?(It=J===void 0?[]:J,t[12]=J,t[13]=It):It=t[13];const Kt=It,ue=ct===void 0?"NA":ct,[Tt,me]=S.useState(0),[Nt,Qt]=S.useState(0),bt=S.useRef(null),qt=S.useRef(null);let Rt,Et;t[14]===Symbol.for("react.memo_cache_sentinel")?(Rt=()=>{const et=new ResizeObserver(_t=>{me(_t[0].target.clientWidth||620),Qt(_t[0].target.clientHeight||480)});return bt.current&&et.observe(bt.current),()=>et.disconnect()},Et=[],t[14]=Rt,t[15]=Et):(Rt=t[14],Et=t[15]),S.useEffect(Rt,Et);const Ot=f?.graphContainer,$t=v?.graphContainer;let G;t[16]!==f?.description||t[17]!==f?.title||t[18]!==w||t[19]!==_||t[20]!==u||t[21]!==dt||t[22]!==it||t[23]!==v?.description||t[24]!==v?.title||t[25]!==g?(G=it||u||dt||_?s.jsxRuntimeExports.jsx(Vi.GraphHeader,{styles:{title:v?.title,description:v?.description},classNames:{title:f?.title,description:f?.description},graphTitle:it,graphDescription:u,width:g,graphDownload:dt?qt:void 0,dataDownload:_?w.map(on).filter(nn).length>0?w.map(en).filter(tn):w.filter(_i):null}):null,t[16]=f?.description,t[17]=f?.title,t[18]=w,t[19]=_,t[20]=u,t[21]=dt,t[22]=it,t[23]=v?.description,t[24]=v?.title,t[25]=g,t[26]=G):G=t[26];let T;t[27]!==f?.colorLegend||t[28]!==rt||t[29]!==w.length||t[30]!==M||t[31]!==Q||t[32]!==ht?(T=ht&&w.length>0?s.jsxRuntimeExports.jsx(Si.ColorLegend,{colorDomain:M,colorLegendTitle:rt,colors:Q,showNAColor:!1,className:f?.colorLegend}):null,t[27]=f?.colorLegend,t[28]=rt,t[29]=w.length,t[30]=M,t[31]=Q,t[32]=ht,t[33]=T):T=t[33];let P;t[34]!==w.length?(P=w.length===0&&s.jsxRuntimeExports.jsx(Di.EmptyState,{}),t[34]=w.length,t[35]=P):P=t[35];let H;t[36]!==Bt||t[37]!==tt||t[38]!==pt||t[39]!==f||t[40]!==Dt||t[41]!==vt||t[42]!==Kt||t[43]!==w||t[44]!==ut||t[45]!==yt||t[46]!==ft||t[47]!==M||t[48]!==m||t[49]!==xt||t[50]!==Q||t[51]!==c||t[52]!==h||t[53]!==lt||t[54]!==d||t[55]!==ue||t[56]!==Ut||t[57]!==l||t[58]!==p?.locale||t[59]!==p?.padZeros||t[60]!==p?.precision||t[61]!==p?.prefix||t[62]!==p?.suffix||t[63]!==$||t[64]!==jt||t[65]!==j||t[66]!==ht||t[67]!==Jt||t[68]!==Zt||t[69]!==gt||t[70]!==v||t[71]!==Nt||t[72]!==Tt||t[73]!==N||t[74]!==mt||t[75]!==C?(H=Tt&&Nt&&w.length>0?s.jsxRuntimeExports.jsx(Ti,{data:w,lineColors:Q,colorDomain:M,width:Tt,height:Nt,dateFormat:ut,showValues:Zt,noOfXTicks:Ut??Ii.getNoOfTicks(Tt),leftMargin:xt,rightMargin:j,topMargin:mt,bottomMargin:pt,highlightAreaSettings:ft,tooltip:N,onSeriesMouseOver:$,showColorLegendAtTop:ht,animate:Bt===!0?{duration:.5,once:!0,amount:.5}:Bt||{duration:0,once:!0,amount:0},rtl:m==="he"||m==="ar",diffAreaColors:yt,idSuffix:ki.generateRandomString(8),strokeWidth:gt,showDots:Jt,refValues:jt,minValue:d,maxValue:h,annotations:tt,customHighlightAreaSettings:vt,yAxisTitle:C,noOfYTicks:l,minDate:lt,maxDate:c,curveType:Dt,styles:v,classNames:f,customLayers:Kt,naLabel:ue,locale:p?.locale||"en",padZeros:p?.padZeros||!1,suffix:p?.suffix||"",prefix:p?.prefix||"",precision:p?.precision??2}):null,t[36]=Bt,t[37]=tt,t[38]=pt,t[39]=f,t[40]=Dt,t[41]=vt,t[42]=Kt,t[43]=w,t[44]=ut,t[45]=yt,t[46]=ft,t[47]=M,t[48]=m,t[49]=xt,t[50]=Q,t[51]=c,t[52]=h,t[53]=lt,t[54]=d,t[55]=ue,t[56]=Ut,t[57]=l,t[58]=p?.locale,t[59]=p?.padZeros,t[60]=p?.precision,t[61]=p?.prefix,t[62]=p?.suffix,t[63]=$,t[64]=jt,t[65]=j,t[66]=ht,t[67]=Jt,t[68]=Zt,t[69]=gt,t[70]=v,t[71]=Nt,t[72]=Tt,t[73]=N,t[74]=mt,t[75]=C,t[76]=H):H=t[76];let W;t[77]!==P||t[78]!==H?(W=s.jsxRuntimeExports.jsxs(li.GraphArea,{ref:bt,children:[P,H]}),t[77]=P,t[78]=H,t[79]=W):W=t[79];let Y;t[80]!==f?.footnote||t[81]!==f?.source||t[82]!==x||t[83]!==nt||t[84]!==v?.footnote||t[85]!==v?.source||t[86]!==g?(Y=nt||x?s.jsxRuntimeExports.jsx(Li.GraphFooter,{styles:{footnote:v?.footnote,source:v?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:nt,footNote:x,width:g}):null,t[80]=f?.footnote,t[81]=f?.source,t[82]=x,t[83]=nt,t[84]=v?.footnote,t[85]=v?.source,t[86]=g,t[87]=Y):Y=t[87];let Ct;return t[88]!==F||t[89]!==St||t[90]!==at||t[91]!==O||t[92]!==m||t[93]!==R||t[94]!==V||t[95]!==q||t[96]!==Ot||t[97]!==$t||t[98]!==G||t[99]!==T||t[100]!==W||t[101]!==Y||t[102]!==wt||t[103]!==g?(Ct=s.jsxRuntimeExports.jsxs(li.GraphContainer,{className:Ot,style:$t,id:at,ref:qt,"aria-label":F,backgroundColor:St,theme:wt,language:m,minHeight:R,width:g,height:O,relativeHeight:q,padding:V,children:[G,T,W,Y]}),t[88]=F,t[89]=St,t[90]=at,t[91]=O,t[92]=m,t[93]=R,t[94]=V,t[95]=q,t[96]=Ot,t[97]=$t,t[98]=G,t[99]=T,t[100]=W,t[101]=Y,t[102]=wt,t[103]=g,t[104]=Ct):Ct=t[104],Ct}function _i(r){return r!==void 0}function tn(r){return r!==void 0}function en(r){return r.data}function nn(r){return r!==void 0}function on(r){return r.data}exports.DifferenceLineChart=Qi;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./compiler-runtime-oPPev21o.cjs"),S=require("react"),L=require("./parse-xYI9yrvL.cjs"),xe=require("@undp/design-system-react/cn"),di=require("./index-Cno4Q0YE.cjs"),si=require("./numberFormattingFunction-u2iNHL_c.cjs"),hi=require("./Tooltip-DwUFLDrj.cjs"),Ft=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ai=require("./customArea-BCGIYDQa.cjs"),yi=require("./AxisTitle-CyFFbdNU.cjs"),gi=require("./Axis-DY7jsk1Y.cjs"),ji=require("./XTicksAndGridLines-BO6KJc8d.cjs"),vi=require("./ReferenceLine-CxITVT1K.cjs"),wi=require("./YTicksAndGridLines-C7glLI5b.cjs"),Ri=require("./index-BaXzoD4r.cjs"),bi=require("./time-CkcKbhwe.cjs"),Oi=require("./linear-CgUCbw9F.cjs"),ri=require("./line-DaEMhXmx.cjs"),He=require("./step-BZ3C8QFW.cjs"),li=require("./area-C1gxfNGD.cjs"),Ei=require("./select-Bnfk0lJx.cjs"),k=require("./proxy-QMeVVqam.cjs"),Ci=require("./init-DU0ybBc_.cjs"),Ai=require("./pointer-Dkq5NV1q.cjs"),Li=require("./use-in-view-DjR_gqJP.cjs"),Vi=require("./GraphFooter.cjs"),Si=require("./GraphHeader.cjs"),ki=require("./ColorLegend.cjs"),We=require("./Colors.cjs"),Di=require("./generateRandomString-B5zBiJzS.cjs"),Ii=require("./EmptyState-BoaUUuo6.cjs"),ci=require("./GraphContainer-gaG9TSy4.cjs"),Ti=require("./getNoOfTicks-C_1CFXv_.cjs");function qi(r){const t=a.compilerRuntimeExports.c(225),{data:w,width:it,height:nt,lineColors:u,suffix:E,prefix:g,dateFormat:x,showValues:U,noOfXTicks:me,rightMargin:Gt,leftMargin:V,topMargin:ot,bottomMargin:Pt,tooltip:At,highlightAreaSettings:Ht,onSeriesMouseOver:Wt,animate:i,rtl:q,showColorLegendAtTop:st,colorDomain:N,diffAreaColors:$,idSuffix:at,strokeWidth:Z,showDots:B,refValues:Lt,minValue:D,maxValue:Vt,annotations:M,customHighlightAreaSettings:Yt,yAxisTitle:rt,noOfYTicks:Xt,minDate:re,maxDate:le,curveType:z,styles:d,classNames:h,precision:R,customLayers:I,locale:A,naLabel:F,padZeros:C}=r,ce=S.useRef(null);let lt;t[0]!==i.amount||t[1]!==i.once?(lt={once:i.once,amount:i.amount},t[0]=i.amount,t[1]=i.once,t[2]=lt):lt=t[2];const c=Li.useInView(ce,lt),[y,v]=S.useState(!1);let f,J;t[3]!==i.duration||t[4]!==y||t[5]!==c?(f=()=>{if(c&&!y){const o=setTimeout(()=>{v(!0)},(i.duration+.5)*1e3);return()=>clearTimeout(o)}},J=[c,y,i.duration],t[3]=i.duration,t[4]=y,t[5]=c,t[6]=f,t[7]=J):(f=t[6],J=t[7]),S.useEffect(f,J);const ct=z==="linear"?ri.curveLinear:z==="step"?He.curveStep:z==="stepAfter"?He.stepAfter:z==="stepBefore"?He.stepBefore:He.monotoneX,[p,Ut]=S.useState(void 0),[ut,Zt]=S.useState(void 0),[K,Q]=S.useState(void 0),St=rt?V+30:V;let xt;t[8]!==Pt||t[9]!==Gt||t[10]!==St||t[11]!==ot?(xt={top:ot,bottom:Pt,left:St,right:Gt},t[8]=Pt,t[9]=Gt,t[10]=St,t[11]=ot,t[12]=xt):xt=t[12];const j=xt,mt=S.useRef(null);let pt;t[13]!==x?(pt=o=>({...o,date:L.parse(`${o.date}`,x,new Date)}),t[13]=x,t[14]=pt):pt=t[14];const n=di.orderBy(w.map(pt),["date"],["asc"]);let ft;if(t[15]!==x||t[16]!==Ht){let o;t[18]!==x?(o=e=>({...e,coordinates:[e.coordinates[0]===null?null:L.parse(`${e.coordinates[0]}`,x,new Date),e.coordinates[1]===null?null:L.parse(`${e.coordinates[1]}`,x,new Date)]}),t[18]=x,t[19]=o):o=t[19],ft=Ht.map(o),t[15]=x,t[16]=Ht,t[17]=ft}else ft=t[17];const dt=ft;let _;if(t[20]!==Yt||t[21]!==x){let o;t[23]!==x?(o=e=>({...e,coordinates:e.coordinates.map((X,Mt)=>Mt%2===0?L.parse(`${X}`,x,new Date):X)}),t[23]=x,t[24]=o):o=t[24],_=Yt.map(o),t[20]=Yt,t[21]=x,t[22]=_}else _=t[22];const Bt=_,m=it-j.left-j.right,b=nt-j.top-j.bottom,ht=re?L.parse(`${re}`,x,new Date):n[0].date,zt=le?L.parse(`${le}`,x,new Date):n[n.length-1].date,yt=Math.min(...n.map(Qi))!==1/0?Math.min(...n.map(Ki))>0?0:Math.min(...n.map(Ji)):0,gt=Math.min(...n.map(zi))!==1/0?Math.min(...n.map(Bi))>0?0:Math.min(...n.map(Zi)):0,Jt=Math.max(...n.map(Ui))!==1/0?Math.max(...n.map(Xi)):0,kt=Math.max(...n.map(Yi))!==1/0?Math.max(...n.map(Wi)):0;let jt;t[25]!==yt||t[26]!==gt||t[27]!==D?(jt=Ft.checkIfNullOrUndefined(D)?yt<gt?yt:gt:D,t[25]=yt,t[26]=gt,t[27]=D,t[28]=jt):jt=t[28];const O=jt,tt=Jt>kt?Jt:kt,s=bi.time().domain([ht,zt]).range([0,m]);let vt;t[29]!==O||t[30]!==D?(vt=Ft.checkIfNullOrUndefined(D)?O:D,t[29]=O,t[30]=D,t[31]=vt):vt=t[31];let wt;t[32]!==tt||t[33]!==Vt?(wt=Ft.checkIfNullOrUndefined(Vt)?tt>0?tt:0:Vt,t[32]=tt,t[33]=Vt,t[34]=wt):wt=t[34];const l=Oi.linear().domain([vt,wt]).range([b,0]).nice(),Dt=ri.line().x(o=>s(o.date)).y(o=>l(o.y1)).curve(ct),It=ri.line().x(o=>s(o.date)).y(o=>l(o.y2)).curve(ct),Kt=li.area().x(o=>s(o.date)).y1(o=>l(o.y1)).y0(o=>l(o.y2)).curve(ct),ue=li.area().x(o=>s(o.date)).y1(o=>l(o.y1)).y0(0).curve(ct),Tt=li.area().x(o=>s(o.date)).y1(o=>l(o.y2)).y0(0).curve(ct),pe=l.ticks(Xt),qt=s.ticks(me);S.useEffect(()=>{const o=X=>{const Mt=n[Ci.bisectCenter(n.map(Hi),s.invert(Ai.pointer(X)[0]),0)];Ut(Mt||n[n.length-1]),Wt?.(Mt||n[n.length-1]),Q(X.clientY),Zt(X.clientX)},e=()=>{Ut(void 0),Zt(void 0),Q(void 0),Wt?.(void 0)};Ei.select(mt.current).on("mousemove",o).on("mouseout",e)},[s,n,Wt]);let Qt;t[35]===Symbol.for("react.memo_cache_sentinel")?(Qt={fill:"none"},t[35]=Qt):Qt=t[35];let Rt;t[36]===Symbol.for("react.memo_cache_sentinel")?(Rt={fill:"none"},t[36]=Rt):Rt=t[36];let Nt;t[37]!==i||t[38]!==b||t[39]!==m||t[40]!==dt||t[41]!==c||t[42]!==s?(Nt=a.jsxRuntimeExports.jsx(Ri.HighlightArea,{areaSettings:dt,width:m,height:b,scale:s,animate:i,isInView:c}),t[37]=i,t[38]=b,t[39]=m,t[40]=dt,t[41]=c,t[42]=s,t[43]=Nt):Nt=t[43];const bt=d?.yAxis?.gridLines,Ot=d?.yAxis?.labels;let Et;t[44]!==bt||t[45]!==Ot?(Et={gridLines:bt,labels:Ot},t[44]=bt,t[45]=Ot,t[46]=Et):Et=t[46];const $t=h?.yAxis?.gridLines,G=h?.yAxis?.labels;let T;t[47]!==$t||t[48]!==G?(T={gridLines:$t,labels:G},t[47]=$t,t[48]=G,t[49]=T):T=t[49];const P=l(O<0?0:O),H=l(O<0?0:O),W=0-V,Y=m+j.right,Ct=O<0?0:O;let et;t[50]!==A||t[51]!==C||t[52]!==R||t[53]!==g||t[54]!==E||t[55]!==Ct?(et=si.numberFormattingFunction(Ct,void 0,R,g,E,A,C),t[50]=A,t[51]=C,t[52]=R,t[53]=g,t[54]=E,t[55]=Ct,t[56]=et):et=t[56];const _t=0-V,Ye=l(O<0?0:O),Xe=tt<0?"1rem":-5;let te;t[57]!==_t||t[58]!==Ye||t[59]!==Xe?(te={x:_t,y:Ye,dx:0,dy:Xe},t[57]=_t,t[58]=Ye,t[59]=Xe,t[60]=te):te=t[60];const Ue=h?.xAxis?.axis,Ze=h?.yAxis?.labels;let ee;t[61]!==Ue||t[62]!==Ze?(ee={axis:Ue,label:Ze},t[61]=Ue,t[62]=Ze,t[63]=ee):ee=t[63];const Be=d?.xAxis?.axis,ze=d?.yAxis?.labels;let ie;t[64]!==Be||t[65]!==ze?(ie={axis:Be,label:ze},t[64]=Be,t[65]=ze,t[66]=ie):ie=t[66];let fe;t[67]!==P||t[68]!==H||t[69]!==W||t[70]!==Y||t[71]!==et||t[72]!==te||t[73]!==ee||t[74]!==ie?(fe=a.jsxRuntimeExports.jsx(gi.Axis,{y1:P,y2:H,x1:W,x2:Y,label:et,labelPos:te,classNames:ee,styles:ie}),t[67]=P,t[68]=H,t[69]=W,t[70]=Y,t[71]=et,t[72]=te,t[73]=ee,t[74]=ie,t[75]=fe):fe=t[75];const Je=0-V-15,Ke=b/2,Qe=d?.yAxis?.title,_e=h?.yAxis?.title;let de;t[76]!==Je||t[77]!==Ke||t[78]!==Qe||t[79]!==_e||t[80]!==rt?(de=a.jsxRuntimeExports.jsx(yi.AxisTitle,{x:Je,y:Ke,style:Qe,className:_e,text:rt,rotate90:!0}),t[76]=Je,t[77]=Ke,t[78]=Qe,t[79]=_e,t[80]=rt,t[81]=de):de=t[81];let he;t[82]!==x?(he=o=>L.format(o,x),t[82]=x,t[83]=he):he=t[83];const ui=qt.map(he),xi=qt.map(o=>s(o)),ti=d?.xAxis?.gridLines,ei=d?.xAxis?.labels;let ye;t[84]!==ti||t[85]!==ei?(ye={gridLines:ti,labels:ei},t[84]=ti,t[85]=ei,t[86]=ye):ye=t[86];const ii=h?.xAxis?.gridLines;let ne;t[87]!==ii?(ne=xe.cn("opacity-0",ii),t[87]=ii,t[88]=ne):ne=t[88];const ni=h?.xAxis?.labels;let oe;t[89]!==ni?(oe=xe.cn("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",ni),t[89]=ni,t[90]=oe):oe=t[90];let ge;t[91]!==ne||t[92]!==oe?(ge={gridLines:ne,labels:oe},t[91]=ne,t[92]=oe,t[93]=ge):ge=t[93];let je;t[94]!==I?(je=I.filter(Fi).map(Mi),t[94]=I,t[95]=je):je=t[95];let ve;t[96]!==$[1]?(ve={fill:$[1]},t[96]=$[1],t[97]=ve):ve=t[97];let we;t[98]!==i.duration?(we={opacity:0,transition:{duration:i.duration}},t[98]=i.duration,t[99]=we):we=t[99];let Re;t[100]===Symbol.for("react.memo_cache_sentinel")?(Re={opacity:1},t[100]=Re):Re=t[100];let be;t[101]!==i.duration?(be={initial:Re,whileInView:{opacity:1,transition:{duration:i.duration}}},t[101]=i.duration,t[102]=be):be=t[102];let Oe;t[103]!==$[0]?(Oe={fill:$[0]},t[103]=$[0],t[104]=Oe):Oe=t[104];let Ee;t[105]!==i.duration?(Ee={opacity:0,transition:{duration:i.duration}},t[105]=i.duration,t[106]=Ee):Ee=t[106];let Ce;t[107]===Symbol.for("react.memo_cache_sentinel")?(Ce={opacity:0},t[107]=Ce):Ce=t[107];let Ae;t[108]!==i.duration?(Ae={initial:Ce,whileInView:{opacity:1,transition:{duration:i.duration}}},t[108]=i.duration,t[109]=Ae):Ae=t[109];let Le;t[110]!==u[0]||t[111]!==Z?(Le={fill:"none",stroke:u[0],strokeWidth:Z},t[110]=u[0],t[111]=Z,t[112]=Le):Le=t[112];let Ve;t[113]!==i.duration?(Ve={opacity:0,transition:{duration:i.duration}},t[113]=i.duration,t[114]=Ve):Ve=t[114];let Se;t[115]!==u[1]||t[116]!==Z?(Se={fill:"none",stroke:u[1],strokeWidth:Z},t[115]=u[1],t[116]=Z,t[117]=Se):Se=t[117];let ke;t[118]!==i.duration?(ke={opacity:0,transition:{duration:i.duration}},t[118]=i.duration,t[119]=ke):ke=t[119];const mi=1,oi=It(n)||"";let se;t[120]!==i.duration?(se={duration:i.duration},t[120]=i.duration,t[121]=se):se=t[121];let De;t[122]!==oi||t[123]!==se?(De={pathLength:mi,d:oi,opacity:1,transition:se},t[122]=oi,t[123]=se,t[124]=De):De=t[124];let Ie;t[125]!==i.duration||t[126]!==N||t[127]!==n||t[128]!==y||t[129]!==c||t[130]!==u[0]||t[131]!==u[1]||t[132]!==st||t[133]!==s||t[134]!==l?(Ie=st?null:a.jsxRuntimeExports.jsxs("g",{children:[a.jsxRuntimeExports.jsx(k.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:s(n[n.length-1].date),y:l(n[n.length-1].y1),fill:u[0]},whileInView:{opacity:1,x:s(n[n.length-1].date),y:l(n[n.length-1].y1),fill:u[0],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:N[0]},N[0]),a.jsxRuntimeExports.jsx(k.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:s(n[n.length-1].date),y:l(n[n.length-1].y2),fill:u[1]},whileInView:{opacity:1,x:s(n[n.length-1].date),y:l(n[n.length-1].y2),fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:N[1]},N[1])]}),t[125]=i.duration,t[126]=N,t[127]=n,t[128]=y,t[129]=c,t[130]=u[0],t[131]=u[1],t[132]=st,t[133]=s,t[134]=l,t[135]=Ie):Ie=t[135];let Te;t[136]!==h?.mouseOverLine||t[137]!==b||t[138]!==p||t[139]!==d?.mouseOverLine||t[140]!==s?(Te=p?a.jsxRuntimeExports.jsx("line",{y1:0,y2:b,x1:s(p.date),x2:s(p.date),className:xe.cn("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",h?.mouseOverLine),style:d?.mouseOverLine}):null,t[136]=h?.mouseOverLine,t[137]=b,t[138]=p,t[139]=d?.mouseOverLine,t[140]=s,t[141]=Te):Te=t[141];let qe;if(t[142]!==i.duration||t[143]!==h?.graphObjectValues||t[144]!==n||t[145]!==m||t[146]!==y||t[147]!==c||t[148]!==u[0]||t[149]!==u[1]||t[150]!==A||t[151]!==F||t[152]!==C||t[153]!==R||t[154]!==g||t[155]!==B||t[156]!==U||t[157]!==d?.graphObjectValues||t[158]!==E||t[159]!==s||t[160]!==l){let o;t[162]!==i.duration||t[163]!==h?.graphObjectValues||t[164]!==n.length||t[165]!==m||t[166]!==y||t[167]!==c||t[168]!==u[0]||t[169]!==u[1]||t[170]!==A||t[171]!==F||t[172]!==C||t[173]!==R||t[174]!==g||t[175]!==B||t[176]!==U||t[177]!==d?.graphObjectValues||t[178]!==E||t[179]!==s||t[180]!==l?(o=(e,X)=>a.jsxRuntimeExports.jsxs(k.motion.g,{children:[Ft.checkIfNullOrUndefined(e.y1)?null:a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[B?a.jsxRuntimeExports.jsx(k.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:l(e.y1),fill:u[0]},whileInView:{opacity:1,fill:u[0],transition:{duration:.5,delay:i.duration},cx:s(e.date),cy:l(e.y1)}},initial:"initial",animate:c?"whileInView":"initial"}):null,U?a.jsxRuntimeExports.jsx(k.motion.text,{dy:e.y2<e.y1?-8:"1em",style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:xe.cn("graph-value graph-value-line-1 text-xs font-bold",h?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:s(e.date),y:l(e.y1),fill:u[0]},whileInView:{opacity:1,fill:u[0],x:s(e.date),y:l(e.y1),transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:si.numberFormattingFunction(e.y1,F,R,g,E,A,C)}):null]}),Ft.checkIfNullOrUndefined(e.y2)?null:a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[B?a.jsxRuntimeExports.jsx(k.motion.circle,{r:m/n.length<5?0:m/n.length<20?2:4,exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:l(e.y2),fill:u[1]},whileInView:{opacity:1,fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration},cx:s(e.date),cy:l(e.y2)}},initial:"initial",animate:c?"whileInView":"initial"}):null,U?a.jsxRuntimeExports.jsx(k.motion.text,{dy:e.y2>e.y1?-8:"1em",style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:xe.cn("graph-value graph-value-line-2 text-xs font-bold",h?.graphObjectValues),exit:{opacity:0,transition:{duration:i.duration}},variants:{initial:{opacity:0,x:s(e.date),y:l(e.y2),fill:u[1]},whileInView:{opacity:1,x:s(e.date),y:l(e.y2),fill:u[1],transition:{duration:y?i.duration:.5,delay:y?0:i.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:si.numberFormattingFunction(e.y2,F,R,g,E,A,C)}):null]})]},X),t[162]=i.duration,t[163]=h?.graphObjectValues,t[164]=n.length,t[165]=m,t[166]=y,t[167]=c,t[168]=u[0],t[169]=u[1],t[170]=A,t[171]=F,t[172]=C,t[173]=R,t[174]=g,t[175]=B,t[176]=U,t[177]=d?.graphObjectValues,t[178]=E,t[179]=s,t[180]=l,t[181]=o):o=t[181],qe=n.map(o),t[142]=i.duration,t[143]=h?.graphObjectValues,t[144]=n,t[145]=m,t[146]=y,t[147]=c,t[148]=u[0],t[149]=u[1],t[150]=A,t[151]=F,t[152]=C,t[153]=R,t[154]=g,t[155]=B,t[156]=U,t[157]=d?.graphObjectValues,t[158]=E,t[159]=s,t[160]=l,t[161]=qe}else qe=t[161];let Ne;t[182]!==i||t[183]!==m||t[184]!==c||t[185]!==V||t[186]!==j.right||t[187]!==Lt||t[188]!==l?(Ne=Lt?a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:Lt.map((o,e)=>a.jsxRuntimeExports.jsx(vi.RefLineY,{text:o.text,color:o.color,y:l(o.value),x1:0-V,x2:m+j.right,classNames:o.classNames,styles:o.styles,animate:i,isInView:c},e))}):null,t[182]=i,t[183]=m,t[184]=c,t[185]=V,t[186]=j.right,t[187]=Lt,t[188]=l,t[189]=Ne):Ne=t[189];let ae;if(t[190]!==i||t[191]!==M||t[192]!==x||t[193]!==m||t[194]!==c||t[195]!==j.right||t[196]!==q||t[197]!==s||t[198]!==l){let o;t[200]!==i||t[201]!==x||t[202]!==m||t[203]!==c||t[204]!==j.right||t[205]!==q||t[206]!==s||t[207]!==l?(o=(e,X)=>{const Mt=ai.getLineEndPoint({x:e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},Ft.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),pi=e.showConnector?{y1:Mt.y,x1:Mt.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date)):0,circleRadius:Ft.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,fi={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:q?0:e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:q?e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0):m+j.right-(e.xCoordinate?s(L.parse(`${e.xCoordinate}`,x,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return a.jsxRuntimeExports.jsx(ai.Annotation,{color:e.color,connectorsSettings:pi,labelSettings:fi,text:e.text,classNames:e.classNames,styles:e.styles,animate:i,isInView:c},X)},t[200]=i,t[201]=x,t[202]=m,t[203]=c,t[204]=j.right,t[205]=q,t[206]=s,t[207]=l,t[208]=o):o=t[208],ae=M.map(o),t[190]=i,t[191]=M,t[192]=x,t[193]=m,t[194]=c,t[195]=j.right,t[196]=q,t[197]=s,t[198]=l,t[199]=ae}else ae=t[199];let $e;t[209]!==ae?($e=a.jsxRuntimeExports.jsx("g",{children:ae}),t[209]=ae,t[210]=$e):$e=t[210];let Me;t[211]!==I?(Me=I.filter($i).map(Ni),t[211]=I,t[212]=Me):Me=t[212];let Fe;t[213]===Symbol.for("react.memo_cache_sentinel")?(Fe={fill:"none",pointerEvents:"all"},t[213]=Fe):Fe=t[213];let Ge;t[214]!==mt||t[215]!==b||t[216]!==m?(Ge=a.jsxRuntimeExports.jsx("rect",{ref:mt,style:Fe,width:m,height:b}),t[214]=mt,t[215]=b,t[216]=m,t[217]=Ge):Ge=t[217];let Pe;return t[218]!==h?.tooltip||t[219]!==ut||t[220]!==K||t[221]!==p||t[222]!==d?.tooltip||t[223]!==At?(Pe=p&&At&&ut&&K?a.jsxRuntimeExports.jsx(hi.Tooltip,{data:p,body:At,xPos:ut,yPos:K,backgroundStyle:d?.tooltip,className:h?.tooltip}):null,t[218]=h?.tooltip,t[219]=ut,t[220]=K,t[221]=p,t[222]=d?.tooltip,t[223]=At,t[224]=Pe):Pe=t[224],a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(k.motion.svg,{width:`${it}px`,height:`${nt}px`,viewBox:`0 0 ${it} ${nt}`,direction:"ltr",ref:ce,children:a.jsxRuntimeExports.jsxs("g",{transform:`translate(${j.left},${j.top})`,children:[a.jsxRuntimeExports.jsx("clipPath",{id:`above${at}`,children:a.jsxRuntimeExports.jsx("path",{d:Tt(n),style:Qt})}),a.jsxRuntimeExports.jsx("clipPath",{id:`below${at}`,children:a.jsxRuntimeExports.jsx("path",{d:ue(n),style:Rt})}),Nt,a.jsxRuntimeExports.jsx(ai.CustomArea,{areaSettings:Bt,scaleX:s,scaleY:l,animate:i,isInView:c}),a.jsxRuntimeExports.jsx("g",{children:a.jsxRuntimeExports.jsxs("g",{children:[a.jsxRuntimeExports.jsx(wi.YTicksAndGridLines,{values:pe.filter(Pi),y:pe.filter(Gi).map(o=>l(o)),x1:0-V,x2:m+j.right,styles:Et,classNames:T,suffix:E,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:R,locale:A,padZeros:C}),fe,de]})}),a.jsxRuntimeExports.jsx(ji.XTicksAndGridLines,{values:ui,x:xi,y1:0,y2:b,styles:ye,classNames:ge,suffix:E,prefix:g,labelType:"primary",showGridLines:!0,precision:R,locale:A,padZeros:C}),je,a.jsxRuntimeExports.jsxs("g",{children:[a.jsxRuntimeExports.jsx(k.motion.path,{clipPath:`url(#below${at})`,d:Kt(n)||"",style:ve,exit:we,variants:be,initial:"initial",animate:c?"whileInView":"initial"}),a.jsxRuntimeExports.jsx(k.motion.path,{clipPath:`url(#above${at})`,d:Kt(n)||"",style:Oe,exit:Ee,variants:Ae,initial:"initial",animate:c?"whileInView":"initial"})]}),a.jsxRuntimeExports.jsxs("g",{children:[a.jsxRuntimeExports.jsx(k.motion.path,{d:Dt(n)||"",style:Le,exit:Ve,variants:{initial:{pathLength:0,d:Dt(n)||"",opacity:1},whileInView:{pathLength:1,d:Dt(n)||"",opacity:1,transition:{duration:i.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),a.jsxRuntimeExports.jsx(k.motion.path,{style:Se,exit:ke,variants:{initial:{pathLength:0,d:It(n)||"",opacity:1},whileInView:De},initial:"initial",animate:c?"whileInView":"initial"}),Ie,Te,qe]}),Ne,$e,Me,Ge]})}),Pe]})}function Ni(r){return r.layer}function $i(r){return r.position==="after"}function Mi(r){return r.layer}function Fi(r){return r.position==="before"}function Gi(r){return r!==0}function Pi(r){return r!==0}function Hi(r){return r.date}function Wi(r){return r.y2}function Yi(r){return r.y2}function Xi(r){return r.y1}function Ui(r){return r.y1}function Zi(r){return r.y2}function Bi(r){return r.y2}function zi(r){return r.y2}function Ji(r){return r.y1}function Ki(r){return r.y1}function Qi(r){return r.y1}function _i(r){const t=a.compilerRuntimeExports.c(105),{data:w,graphTitle:it,sources:nt,graphDescription:u,height:E,width:g,footNote:x,noOfXTicks:U,dateFormat:me,showValues:Gt,padding:V,lineColors:ot,backgroundColor:Pt,leftMargin:At,rightMargin:Ht,topMargin:Wt,bottomMargin:i,tooltip:q,highlightAreaSettings:st,relativeHeight:N,onSeriesMouseOver:$,graphID:at,graphDownload:Z,dataDownload:B,animate:Lt,language:D,minHeight:Vt,labels:M,showColorLegendAtTop:Yt,colorLegendTitle:rt,diffAreaColors:Xt,strokeWidth:re,showDots:le,refValues:z,minValue:d,maxValue:h,annotations:R,customHighlightAreaSettings:I,theme:A,ariaLabel:F,yAxisTitle:C,noOfYTicks:ce,minDate:lt,maxDate:c,curveType:y,styles:v,classNames:f,customLayers:J,naLabel:ct,numberDisplayOptions:p}=r,Ut=U===void 0?10:U,ut=me===void 0?"yyyy":me,Zt=Gt===void 0?!1:Gt;let K;t[0]!==ot?(K=ot===void 0?[We.Colors.light.categoricalColors.colors[0],We.Colors.light.categoricalColors.colors[1]]:ot,t[0]=ot,t[1]=K):K=t[1];const Q=K,St=Pt===void 0?!1:Pt,xt=At===void 0?30:At,j=Ht===void 0?50:Ht,mt=Wt===void 0?20:Wt,pt=i===void 0?25:i;let n;t[2]!==st?(n=st===void 0?[]:st,t[2]=st,t[3]=n):n=t[3];const ft=n,dt=Z===void 0?!1:Z,_=B===void 0?!1:B,Bt=Lt===void 0?!1:Lt,m=D===void 0?"en":D,b=Vt===void 0?0:Vt,ht=Yt===void 0?!1:Yt;let zt;t[4]!==Xt?(zt=Xt===void 0?[We.Colors.alerts.red,We.Colors.alerts.darkGreen]:Xt,t[4]=Xt,t[5]=zt):zt=t[5];const yt=zt,gt=re===void 0?2:re,Jt=le===void 0?!0:le;let kt;t[6]!==z?(kt=z===void 0?[]:z,t[6]=z,t[7]=kt):kt=t[7];const jt=kt;let O;t[8]!==R?(O=R===void 0?[]:R,t[8]=R,t[9]=O):O=t[9];const tt=O;let s;t[10]!==I?(s=I===void 0?[]:I,t[10]=I,t[11]=s):s=t[11];const vt=s,wt=A===void 0?"light":A,l=ce===void 0?5:ce,Dt=y===void 0?"curve":y;let It;t[12]!==J?(It=J===void 0?[]:J,t[12]=J,t[13]=It):It=t[13];const Kt=It,ue=ct===void 0?"NA":ct,[Tt,pe]=S.useState(0),[qt,Qt]=S.useState(0),Rt=S.useRef(null),Nt=S.useRef(null);let bt,Ot;t[14]===Symbol.for("react.memo_cache_sentinel")?(bt=()=>{const et=new ResizeObserver(_t=>{pe(_t[0].target.clientWidth||620),Qt(_t[0].target.clientHeight||480)});return Rt.current&&et.observe(Rt.current),()=>et.disconnect()},Ot=[],t[14]=bt,t[15]=Ot):(bt=t[14],Ot=t[15]),S.useEffect(bt,Ot);const Et=f?.graphContainer,$t=v?.graphContainer;let G;t[16]!==f?.description||t[17]!==f?.title||t[18]!==w||t[19]!==_||t[20]!==u||t[21]!==dt||t[22]!==it||t[23]!==v?.description||t[24]!==v?.title||t[25]!==g?(G=it||u||dt||_?a.jsxRuntimeExports.jsx(Si.GraphHeader,{styles:{title:v?.title,description:v?.description},classNames:{title:f?.title,description:f?.description},graphTitle:it,graphDescription:u,width:g,graphDownload:dt?Nt:void 0,dataDownload:_?w.map(sn).filter(on).length>0?w.map(nn).filter(en):w.filter(tn):null}):null,t[16]=f?.description,t[17]=f?.title,t[18]=w,t[19]=_,t[20]=u,t[21]=dt,t[22]=it,t[23]=v?.description,t[24]=v?.title,t[25]=g,t[26]=G):G=t[26];let T;t[27]!==f?.colorLegend||t[28]!==rt||t[29]!==w.length||t[30]!==M||t[31]!==Q||t[32]!==ht?(T=ht&&w.length>0?a.jsxRuntimeExports.jsx(ki.ColorLegend,{colorDomain:M,colorLegendTitle:rt,colors:Q,showNAColor:!1,className:f?.colorLegend}):null,t[27]=f?.colorLegend,t[28]=rt,t[29]=w.length,t[30]=M,t[31]=Q,t[32]=ht,t[33]=T):T=t[33];let P;t[34]!==w.length?(P=w.length===0&&a.jsxRuntimeExports.jsx(Ii.EmptyState,{}),t[34]=w.length,t[35]=P):P=t[35];let H;t[36]!==Bt||t[37]!==tt||t[38]!==pt||t[39]!==f||t[40]!==Dt||t[41]!==vt||t[42]!==Kt||t[43]!==w||t[44]!==ut||t[45]!==yt||t[46]!==ft||t[47]!==M||t[48]!==m||t[49]!==xt||t[50]!==Q||t[51]!==c||t[52]!==h||t[53]!==lt||t[54]!==d||t[55]!==ue||t[56]!==Ut||t[57]!==l||t[58]!==p?.locale||t[59]!==p?.padZeros||t[60]!==p?.precision||t[61]!==p?.prefix||t[62]!==p?.suffix||t[63]!==$||t[64]!==jt||t[65]!==j||t[66]!==ht||t[67]!==Jt||t[68]!==Zt||t[69]!==gt||t[70]!==v||t[71]!==qt||t[72]!==Tt||t[73]!==q||t[74]!==mt||t[75]!==C?(H=Tt&&qt&&w.length>0?a.jsxRuntimeExports.jsx(qi,{data:w,lineColors:Q,colorDomain:M,width:Tt,height:qt,dateFormat:ut,showValues:Zt,noOfXTicks:Ut??Ti.getNoOfTicks(Tt),leftMargin:xt,rightMargin:j,topMargin:mt,bottomMargin:pt,highlightAreaSettings:ft,tooltip:q,onSeriesMouseOver:$,showColorLegendAtTop:ht,animate:Bt===!0?{duration:.5,once:!0,amount:.5}:Bt||{duration:0,once:!0,amount:0},rtl:m==="he"||m==="ar",diffAreaColors:yt,idSuffix:Di.generateRandomString(8),strokeWidth:gt,showDots:Jt,refValues:jt,minValue:d,maxValue:h,annotations:tt,customHighlightAreaSettings:vt,yAxisTitle:C,noOfYTicks:l,minDate:lt,maxDate:c,curveType:Dt,styles:v,classNames:f,customLayers:Kt,naLabel:ue,locale:p?.locale||"en",padZeros:p?.padZeros||!1,suffix:p?.suffix||"",prefix:p?.prefix||"",precision:p?.precision??2}):null,t[36]=Bt,t[37]=tt,t[38]=pt,t[39]=f,t[40]=Dt,t[41]=vt,t[42]=Kt,t[43]=w,t[44]=ut,t[45]=yt,t[46]=ft,t[47]=M,t[48]=m,t[49]=xt,t[50]=Q,t[51]=c,t[52]=h,t[53]=lt,t[54]=d,t[55]=ue,t[56]=Ut,t[57]=l,t[58]=p?.locale,t[59]=p?.padZeros,t[60]=p?.precision,t[61]=p?.prefix,t[62]=p?.suffix,t[63]=$,t[64]=jt,t[65]=j,t[66]=ht,t[67]=Jt,t[68]=Zt,t[69]=gt,t[70]=v,t[71]=qt,t[72]=Tt,t[73]=q,t[74]=mt,t[75]=C,t[76]=H):H=t[76];let W;t[77]!==P||t[78]!==H?(W=a.jsxRuntimeExports.jsxs(ci.GraphArea,{ref:Rt,children:[P,H]}),t[77]=P,t[78]=H,t[79]=W):W=t[79];let Y;t[80]!==f?.footnote||t[81]!==f?.source||t[82]!==x||t[83]!==nt||t[84]!==v?.footnote||t[85]!==v?.source||t[86]!==g?(Y=nt||x?a.jsxRuntimeExports.jsx(Vi.GraphFooter,{styles:{footnote:v?.footnote,source:v?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:nt,footNote:x,width:g}):null,t[80]=f?.footnote,t[81]=f?.source,t[82]=x,t[83]=nt,t[84]=v?.footnote,t[85]=v?.source,t[86]=g,t[87]=Y):Y=t[87];let Ct;return t[88]!==F||t[89]!==St||t[90]!==at||t[91]!==E||t[92]!==m||t[93]!==b||t[94]!==V||t[95]!==N||t[96]!==Et||t[97]!==$t||t[98]!==G||t[99]!==T||t[100]!==W||t[101]!==Y||t[102]!==wt||t[103]!==g?(Ct=a.jsxRuntimeExports.jsxs(ci.GraphContainer,{className:Et,style:$t,id:at,ref:Nt,"aria-label":F,backgroundColor:St,theme:wt,language:m,minHeight:b,width:g,height:E,relativeHeight:N,padding:V,children:[G,T,W,Y]}),t[88]=F,t[89]=St,t[90]=at,t[91]=E,t[92]=m,t[93]=b,t[94]=V,t[95]=N,t[96]=Et,t[97]=$t,t[98]=G,t[99]=T,t[100]=W,t[101]=Y,t[102]=wt,t[103]=g,t[104]=Ct):Ct=t[104],Ct}function tn(r){return r!==void 0}function en(r){return r!==void 0}function nn(r){return r.data}function on(r){return r!==void 0}function sn(r){return r.data}exports.DifferenceLineChart=_i;
2
2
  //# sourceMappingURL=DifferenceLineChart.cjs.map