@undp/data-viz 2.3.10 → 2.3.12

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 (245) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +16 -16
  3. package/dist/{Axis-D56Gy0se.js → Axis-RyGdzLrG.js} +2 -2
  4. package/dist/{Axis-D56Gy0se.js.map → Axis-RyGdzLrG.js.map} +1 -1
  5. package/dist/{AxisTitle-VFq89Olw.js → AxisTitle-DGjX1_2v.js} +2 -2
  6. package/dist/{AxisTitle-VFq89Olw.js.map → AxisTitle-DGjX1_2v.js.map} +1 -1
  7. package/dist/BarGraph.cjs +1 -1
  8. package/dist/BarGraph.cjs.map +1 -1
  9. package/dist/BarGraph.js +21 -21
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.js +2 -2
  13. package/dist/BeeSwarmChart.cjs +1 -1
  14. package/dist/BeeSwarmChart.js +13 -13
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.js +13 -13
  18. package/dist/BiVariateChoroplethMap.js.map +1 -1
  19. package/dist/BulletChart.cjs +1 -1
  20. package/dist/BulletChart.cjs.map +1 -1
  21. package/dist/BulletChart.js +19 -19
  22. package/dist/BulletChart.js.map +1 -1
  23. package/dist/ButterflyChart.cjs +1 -1
  24. package/dist/ButterflyChart.cjs.map +1 -1
  25. package/dist/ButterflyChart.js +52 -52
  26. package/dist/ButterflyChart.js.map +1 -1
  27. package/dist/ChoroplethMap.cjs +1 -1
  28. package/dist/ChoroplethMap.cjs.map +1 -1
  29. package/dist/ChoroplethMap.js +13 -13
  30. package/dist/ChoroplethMap.js.map +1 -1
  31. package/dist/CirclePackingGraph.cjs +1 -1
  32. package/dist/CirclePackingGraph.js +4 -4
  33. package/dist/ColorLegend.cjs +1 -1
  34. package/dist/ColorLegend.js +2 -2
  35. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  36. package/dist/ColorLegendWithMouseOver.js +2 -2
  37. package/dist/CopyTextButton.cjs +1 -1
  38. package/dist/CopyTextButton.cjs.map +1 -1
  39. package/dist/CopyTextButton.js +4 -4
  40. package/dist/CopyTextButton.js.map +1 -1
  41. package/dist/CsvDownloadButton.js +2 -2
  42. package/dist/DataCards.cjs +1 -1
  43. package/dist/DataCards.js +7 -7
  44. package/dist/DataTable.cjs +1 -1
  45. package/dist/DataTable.js +4 -4
  46. package/dist/{DetailsModal-BMCTgVsk.js → DetailsModal-C3qlUyFK.js} +3 -3
  47. package/dist/{DetailsModal-BMCTgVsk.js.map → DetailsModal-C3qlUyFK.js.map} +1 -1
  48. package/dist/{DetailsModal-DHttOA80.cjs → DetailsModal-DIRTulvr.cjs} +2 -2
  49. package/dist/{DetailsModal-DHttOA80.cjs.map → DetailsModal-DIRTulvr.cjs.map} +1 -1
  50. package/dist/DifferenceLineChart.cjs +1 -1
  51. package/dist/DifferenceLineChart.js +15 -15
  52. package/dist/DonutChart.cjs +1 -1
  53. package/dist/DonutChart.js +10 -10
  54. package/dist/DotDensityMap.cjs +1 -1
  55. package/dist/DotDensityMap.cjs.map +1 -1
  56. package/dist/DotDensityMap.js +30 -30
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/{DropdownSelect-D8rFbygC.js → DropdownSelect-B2WTeedJ.js} +2 -2
  59. package/dist/{DropdownSelect-D8rFbygC.js.map → DropdownSelect-B2WTeedJ.js.map} +1 -1
  60. package/dist/DualAxisLineChart.cjs +1 -1
  61. package/dist/DualAxisLineChart.js +12 -12
  62. package/dist/DumbbellChart.cjs +1 -1
  63. package/dist/DumbbellChart.cjs.map +1 -1
  64. package/dist/DumbbellChart.js +19 -19
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/{EmptyState-dScPFkLy.js → EmptyState-B3fPoH6L.js} +4 -4
  67. package/dist/{EmptyState-dScPFkLy.js.map → EmptyState-B3fPoH6L.js.map} +1 -1
  68. package/dist/{EmptyState-N1eHt3vq.cjs → EmptyState-B4c-CrXs.cjs} +2 -2
  69. package/dist/{EmptyState-N1eHt3vq.cjs.map → EmptyState-B4c-CrXs.cjs.map} +1 -1
  70. package/dist/ExcelDownloadButton.js +2 -2
  71. package/dist/FootNote.cjs +1 -1
  72. package/dist/FootNote.js +2 -2
  73. package/dist/GeoHubCompareMaps.js +3 -3
  74. package/dist/GeoHubMap.js +4 -4
  75. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  76. package/dist/GeoHubMapWithLayerSelection.js +5 -5
  77. package/dist/{GraphContainer-CF6ws3pd.js → GraphContainer-DwMxWRCi.js} +2 -2
  78. package/dist/{GraphContainer-CF6ws3pd.js.map → GraphContainer-DwMxWRCi.js.map} +1 -1
  79. package/dist/GraphDescription.cjs +1 -1
  80. package/dist/GraphDescription.js +2 -2
  81. package/dist/{GraphEl-DjElfY07.cjs → GraphEl-Bgf8w82K.cjs} +2 -2
  82. package/dist/{GraphEl-DjElfY07.cjs.map → GraphEl-Bgf8w82K.cjs.map} +1 -1
  83. package/dist/{GraphEl-Bw-9MUym.js → GraphEl-CXK-LPsj.js} +5 -5
  84. package/dist/{GraphEl-Bw-9MUym.js.map → GraphEl-CXK-LPsj.js.map} +1 -1
  85. package/dist/GraphFooter.cjs +1 -1
  86. package/dist/GraphFooter.js +2 -2
  87. package/dist/GraphHeader.js +1 -1
  88. package/dist/GraphTitle.cjs +1 -1
  89. package/dist/GraphTitle.js +2 -2
  90. package/dist/GriddedGraphs.cjs +1 -1
  91. package/dist/GriddedGraphs.js +6 -6
  92. package/dist/GriddedGraphsFromConfig.js +2 -2
  93. package/dist/HeatMap.cjs +1 -1
  94. package/dist/HeatMap.js +10 -10
  95. package/dist/Histogram.cjs +1 -1
  96. package/dist/Histogram.js +4 -4
  97. package/dist/HybridMap.cjs +1 -1
  98. package/dist/HybridMap.cjs.map +1 -1
  99. package/dist/HybridMap.js +42 -42
  100. package/dist/HybridMap.js.map +1 -1
  101. package/dist/ImageDownloadButton.js +2 -2
  102. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  103. package/dist/LineChartWithConfidenceInterval.js +15 -15
  104. package/dist/LinearColorLegend.cjs +1 -1
  105. package/dist/LinearColorLegend.js +2 -2
  106. package/dist/{Modal-Ch9wvKxF.js → Modal-BV4rkoLM.js} +5 -5
  107. package/dist/{Modal-Ch9wvKxF.js.map → Modal-BV4rkoLM.js.map} +1 -1
  108. package/dist/{Modal-CaYa_TLE.cjs → Modal-ZX55hLH-.cjs} +5 -5
  109. package/dist/{Modal-CaYa_TLE.cjs.map → Modal-ZX55hLH-.cjs.map} +1 -1
  110. package/dist/MultiGraphDashboard.cjs +1 -1
  111. package/dist/MultiGraphDashboard.js +4 -4
  112. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  113. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  114. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  115. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  116. package/dist/MultiLineAltChart.cjs +1 -1
  117. package/dist/MultiLineAltChart.cjs.map +1 -1
  118. package/dist/MultiLineAltChart.d.ts +2 -0
  119. package/dist/MultiLineAltChart.js +393 -391
  120. package/dist/MultiLineAltChart.js.map +1 -1
  121. package/dist/MultiLineChart.cjs +1 -1
  122. package/dist/MultiLineChart.js +15 -15
  123. package/dist/ParetoChart.cjs +1 -1
  124. package/dist/ParetoChart.js +12 -12
  125. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  126. package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
  127. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  128. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  129. package/dist/RadarChart.cjs +1 -1
  130. package/dist/RadarChart.js +9 -9
  131. package/dist/{ReferenceLine-DgtoRgw0.js → ReferenceLine-CNEjAYvv.js} +3 -3
  132. package/dist/{ReferenceLine-DgtoRgw0.js.map → ReferenceLine-CNEjAYvv.js.map} +1 -1
  133. package/dist/{RegressionLine-D2aqeBKp.js → RegressionLine-BDrndQxo.js} +4 -4
  134. package/dist/{RegressionLine-D2aqeBKp.js.map → RegressionLine-BDrndQxo.js.map} +1 -1
  135. package/dist/SVGDownloadButton.js +2 -2
  136. package/dist/SankeyChart.cjs +1 -1
  137. package/dist/SankeyChart.js +9 -9
  138. package/dist/ScatterPlot.cjs +1 -1
  139. package/dist/ScatterPlot.cjs.map +1 -1
  140. package/dist/ScatterPlot.d.ts +2 -0
  141. package/dist/ScatterPlot.js +442 -440
  142. package/dist/ScatterPlot.js.map +1 -1
  143. package/dist/ScrollStory.js +3 -3
  144. package/dist/SimpleLineChart.cjs +1 -1
  145. package/dist/SimpleLineChart.js +16 -16
  146. package/dist/SingleGraphDashboard.cjs +1 -1
  147. package/dist/SingleGraphDashboard.js +6 -6
  148. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  149. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  150. package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
  151. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
  154. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  155. package/dist/SlopeChart.cjs +1 -1
  156. package/dist/SlopeChart.js +11 -11
  157. package/dist/{Source-24M277ZQ.cjs → Source-BOSAl3UX.cjs} +2 -2
  158. package/dist/{Source-24M277ZQ.cjs.map → Source-BOSAl3UX.cjs.map} +1 -1
  159. package/dist/{Source-Cu9OHOBj.js → Source-Djkz-7jX.js} +5 -5
  160. package/dist/{Source-Cu9OHOBj.js.map → Source-Djkz-7jX.js.map} +1 -1
  161. package/dist/Source.cjs +1 -1
  162. package/dist/Source.js +3 -3
  163. package/dist/SparkLine.js +5 -5
  164. package/dist/{Spinner--r2RrJV8.js → Spinner-CtJETd5V.js} +2 -2
  165. package/dist/{Spinner--r2RrJV8.js.map → Spinner-CtJETd5V.js.map} +1 -1
  166. package/dist/StatCardFromData.cjs +1 -1
  167. package/dist/StatCardFromData.js +2 -2
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.js +9 -9
  170. package/dist/ThreeDGlobe.cjs +1 -1
  171. package/dist/ThreeDGlobe.js +7 -7
  172. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  173. package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
  174. package/dist/{Tooltip-BRnAz2Gv.js → Tooltip-CohiIbLZ.js} +2 -2
  175. package/dist/{Tooltip-BRnAz2Gv.js.map → Tooltip-CohiIbLZ.js.map} +1 -1
  176. package/dist/TreeMapGraph.cjs +1 -1
  177. package/dist/TreeMapGraph.js +9 -9
  178. package/dist/Typography-CZZxlj1W.cjs +2 -0
  179. package/dist/Typography-CZZxlj1W.cjs.map +1 -0
  180. package/dist/{Typography-CdMGooqp.js → Typography-DMVW6JnV.js} +68 -61
  181. package/dist/Typography-DMVW6JnV.js.map +1 -0
  182. package/dist/UnitChart.cjs +1 -1
  183. package/dist/UnitChart.js +6 -6
  184. package/dist/WaterfallChart.cjs +1 -1
  185. package/dist/WaterfallChart.js +14 -14
  186. package/dist/{XAxesLabels-rhK7lRjO.js → XAxesLabels-IwjMJkYS.js} +3 -3
  187. package/dist/{XAxesLabels-rhK7lRjO.js.map → XAxesLabels-IwjMJkYS.js.map} +1 -1
  188. package/dist/{XTicksAndGridLines-CVZkZkpS.js → XTicksAndGridLines-BDmF9etl.js} +2 -2
  189. package/dist/{XTicksAndGridLines-CVZkZkpS.js.map → XTicksAndGridLines-BDmF9etl.js.map} +1 -1
  190. package/dist/{YAxesLabels-QICWVsHf.js → YAxesLabels-DoGvgHdw.js} +3 -3
  191. package/dist/{YAxesLabels-QICWVsHf.js.map → YAxesLabels-DoGvgHdw.js.map} +1 -1
  192. package/dist/{YTicksAndGridLines-GnXnSRF2.js → YTicksAndGridLines-C3GW1xFG.js} +2 -2
  193. package/dist/{YTicksAndGridLines-GnXnSRF2.js.map → YTicksAndGridLines-C3GW1xFG.js.map} +1 -1
  194. package/dist/{checkIfMultiple-D9fVkeOq.js → checkIfMultiple-B97uOUVq.js} +5 -5
  195. package/dist/{checkIfMultiple-D9fVkeOq.js.map → checkIfMultiple-B97uOUVq.js.map} +1 -1
  196. package/dist/{checkIfMultiple-DxnGtm3t.cjs → checkIfMultiple-TOaaUwS7.cjs} +2 -2
  197. package/dist/{checkIfMultiple-DxnGtm3t.cjs.map → checkIfMultiple-TOaaUwS7.cjs.map} +1 -1
  198. package/dist/{customArea-ASDaSE4u.js → customArea-Cc2whe6P.js} +3 -3
  199. package/dist/{customArea-ASDaSE4u.js.map → customArea-Cc2whe6P.js.map} +1 -1
  200. package/dist/{getSliderMarks-Cvg8zHBU.js → getSliderMarks-vXsR8RrR.js} +2 -2
  201. package/dist/{getSliderMarks-Cvg8zHBU.js.map → getSliderMarks-vXsR8RrR.js.map} +1 -1
  202. package/dist/{index-BzNfurbO.js → index-C6VwVS8W.js} +9 -9
  203. package/dist/{index-BzNfurbO.js.map → index-C6VwVS8W.js.map} +1 -1
  204. package/dist/{index-CHPV5EwG-DecW7_qr.js → index-CHPV5EwG-BCLAYDCV.js} +3 -3
  205. package/dist/{index-CHPV5EwG-DecW7_qr.js.map → index-CHPV5EwG-BCLAYDCV.js.map} +1 -1
  206. package/dist/{index-Dp_SfsUA.js → index-CKpKc9DR.js} +3 -3
  207. package/dist/{index-Dp_SfsUA.js.map → index-CKpKc9DR.js.map} +1 -1
  208. package/dist/{index-B-4y_iGB.js → index-CZ0elhKR.js} +4 -4
  209. package/dist/{index-B-4y_iGB.js.map → index-CZ0elhKR.js.map} +1 -1
  210. package/dist/{index-CtMBjvtq.js → index-Co3YGYe1.js} +3 -3
  211. package/dist/{index-CtMBjvtq.js.map → index-Co3YGYe1.js.map} +1 -1
  212. package/dist/{index-Cw8sCyo_-n4AacHGk.js → index-D6CYcVc7-BOa7Dpvf.js} +5 -5
  213. package/dist/{index-Cw8sCyo_-n4AacHGk.js.map → index-D6CYcVc7-BOa7Dpvf.js.map} +1 -1
  214. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +2 -0
  215. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +1 -0
  216. package/dist/{index-CSiFiXPj.js → index-D_dtv_T9.js} +3 -3
  217. package/dist/{index-CSiFiXPj.js.map → index-D_dtv_T9.js.map} +1 -1
  218. package/dist/{index-Dzc_aaI9-CG2Ar7l1.js → index-DoS4bGNa-Bgab95kx.js} +2 -2
  219. package/dist/{index-Dzc_aaI9-CG2Ar7l1.js.map → index-DoS4bGNa-Bgab95kx.js.map} +1 -1
  220. package/dist/{index-Dzc_aaI9-C3DbPpy3.cjs → index-DoS4bGNa-C3DbPpy3.cjs} +1 -1
  221. package/dist/{index-Dzc_aaI9-C3DbPpy3.cjs.map → index-DoS4bGNa-C3DbPpy3.cjs.map} +1 -1
  222. package/dist/{index-CXobQn-E.cjs → index-_TlgeI_i.cjs} +2 -2
  223. package/dist/{index-CXobQn-E.cjs.map → index-_TlgeI_i.cjs.map} +1 -1
  224. package/dist/index.cjs +1 -1
  225. package/dist/index.d.ts +4 -0
  226. package/dist/index.js +2 -2
  227. package/dist/{linear-CalFSAaO.js → linear-DNXM5Pdl.js} +3 -3
  228. package/dist/{linear-CalFSAaO.js.map → linear-DNXM5Pdl.js.map} +1 -1
  229. package/dist/{pow-CaIrlM4J.js → pow-BXYLJHCq.js} +2 -2
  230. package/dist/{pow-CaIrlM4J.js.map → pow-BXYLJHCq.js.map} +1 -1
  231. package/dist/{proxy-DRuSUlPL.js → proxy--_f6k3NR.js} +2 -2
  232. package/dist/{proxy-DRuSUlPL.js.map → proxy--_f6k3NR.js.map} +1 -1
  233. package/dist/{string-C_xJ4Wg4.js → string-CbaFIsiV.js} +4 -4
  234. package/dist/{string-C_xJ4Wg4.js.map → string-CbaFIsiV.js.map} +1 -1
  235. package/dist/style.css +1 -1
  236. package/dist/{time-CAtex-RV.js → time-vyz6Y89P.js} +2 -2
  237. package/dist/{time-CAtex-RV.js.map → time-vyz6Y89P.js.map} +1 -1
  238. package/dist/{use-in-view-Dl5L8LtP.js → use-in-view-DqvKAveg.js} +2 -2
  239. package/dist/{use-in-view-Dl5L8LtP.js.map → use-in-view-DqvKAveg.js.map} +1 -1
  240. package/package.json +2 -2
  241. package/dist/Typography-Cc_iHQB-.cjs +0 -2
  242. package/dist/Typography-Cc_iHQB-.cjs.map +0 -1
  243. package/dist/Typography-CdMGooqp.js.map +0 -1
  244. package/dist/index-Cw8sCyo_-CEcCMKUi.cjs +0 -2
  245. package/dist/index-Cw8sCyo_-CEcCMKUi.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),S=require("react"),A=require("./parse-xYI9yrvL.cjs"),je=require("./index-CSNtgibC.cjs"),Ae=require("./index-Cno4Q0YE.cjs"),we=require("./numberFormattingFunction-02t-wJta.cjs"),be=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ve=require("./customArea-B1LWQBmM.cjs"),Ee=require("./AxisTitle-DV4n0RxE.cjs"),Oe=require("./Axis-Jt_tmhxS.cjs"),Le=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),qe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ke=require("./index-D69M6klB.cjs"),$e=require("./time-CkcKbhwe.cjs"),Te=require("./linear-CgUCbw9F.cjs"),De=require("./area-C1gxfNGD.cjs"),Ne=require("./line-DaEMhXmx.cjs"),xe=require("./step-BZ3C8QFW.cjs"),Me=require("./select-Bnfk0lJx.cjs"),me=require("./proxy-C4-uo6nS.cjs"),Ge=require("./init-DU0ybBc_.cjs"),He=require("./pointer-Dkq5NV1q.cjs"),Fe=require("./use-in-view-C3o_ntMv.cjs"),Ve=require("./index-CoobIWNj.cjs"),Pe=require("./GraphFooter.cjs"),Ye=require("./GraphHeader.cjs"),Ie=require("./ColorLegend.cjs"),Xe=require("./Colors.cjs"),We=require("./EmptyState-N1eHt3vq.cjs"),Ce=require("./GraphContainer-B1EDxJ0S.cjs");function Ue(r){const t=i.compilerRuntimeExports.c(133),{data:m,width:W,height:Et,colors:Ot,dateFormat:n,noOfXTicks:Pt,rightMargin:v,leftMargin:y,topMargin:Lt,bottomMargin:St,yAxisTitle:U,tooltip:B,onSeriesMouseOver:at,highlightAreaSettings:lt,refValues:ct,minValue:Yt,maxValue:ut,rtl:G,annotations:z,customHighlightAreaSettings:xt,noOfYTicks:It,prefix:H,suffix:q,curveType:J,styles:p,classNames:d,precision:K,customLayers:F,animate:c}=r,Xt=S.useRef(null);let mt;t[0]!==c.amount||t[1]!==c.once?(mt={once:c.once,amount:c.amount},t[0]=c.amount,t[1]=c.once,t[2]=mt):mt=t[2];const f=Fe.useInView(Xt,mt),qt=J==="linear"?Ne.curveLinear:J==="step"?xe.curveStep:J==="stepAfter"?xe.stepAfter:J==="stepBefore"?xe.stepBefore:xe.monotoneX,[C,kt]=S.useState(void 0),[Q,Wt]=S.useState(void 0),[ft,Ut]=S.useState(void 0),$t=U?y+30:y;let u;t[3]!==St||t[4]!==v||t[5]!==$t||t[6]!==Lt?(u={top:Lt,bottom:St,left:$t,right:v},t[3]=St,t[4]=v,t[5]=$t,t[6]=Lt,t[7]=u):u=t[7];const o=u,pt=S.useRef(null);let V;t[8]!==n?(V=s=>({...s,date:A.parse(`${s.date}`,n,new Date)}),t[8]=n,t[9]=V):V=t[9];const h=Ae.orderBy(m.map(V),["date"],["asc"]);let w;if(t[10]!==n||t[11]!==lt){let s;t[13]!==n?(s=e=>({...e,coordinates:[e.coordinates[0]===null?null:A.parse(`${e.coordinates[0]}`,n,new Date),e.coordinates[1]===null?null:A.parse(`${e.coordinates[1]}`,n,new Date)]}),t[13]=n,t[14]=s):s=t[14],w=lt.map(s),t[10]=n,t[11]=lt,t[12]=w}else w=t[12];const dt=w;let Z;if(t[15]!==xt||t[16]!==n){let s;t[18]!==n?(s=e=>({...e,coordinates:e.coordinates.map((R,X)=>X%2===0?A.parse(`${R}`,n,new Date):R)}),t[18]=n,t[19]=s):s=t[19],Z=xt.map(s),t[15]=xt,t[16]=n,t[17]=Z}else Z=t[17];const Bt=Z,zt=h[0].y.map((s,e)=>h.map(R=>({date:R.date,y0:e===0?0:je.sum(R.y.filter((X,Qt)=>Qt<e)),y1:je.sum(R.y.filter((X,Qt)=>Qt<=e))}))),x=W-o.left-o.right,g=Et-o.top-o.bottom,Jt=h[0].date,Tt=h[h.length-1].date,j=ue.checkIfNullOrUndefined(Yt)?0:Yt;let P;t[20]!==m||t[21]!==ut?(P=ue.checkIfNullOrUndefined(ut)?Math.max(...m.map(es)):ut,t[20]=m,t[21]=ut,t[22]=P):P=t[22];const Dt=P,a=$e.time().domain([Jt,Tt]).range([0,x]),l=Te.linear().domain([j,Dt]).range([g,0]).nice(),gt=De.area().x(s=>a(s.date)).y0(s=>l(s.y0)).y1(s=>l(s.y1)).curve(qt),k=l.ticks(It),Nt=a.ticks(Pt);S.useEffect(()=>{const s=R=>{const X=h[Ge.bisectCenter(h.map(ts),a.invert(He.pointer(R)[0]),0)];kt(X||h[h.length-1]),at?.(X||h[h.length-1]),Ut(R.clientY),Wt(R.clientX)},e=()=>{kt(void 0),Wt(void 0),Ut(void 0),at?.(void 0)};Me.select(pt.current).on("mousemove",s).on("mouseout",e),at?.(void 0)},[a,h,at]);let Y;t[23]!==c||t[24]!==g||t[25]!==x||t[26]!==dt||t[27]!==f||t[28]!==a?(Y=i.jsxRuntimeExports.jsx(ke.HighlightArea,{areaSettings:dt,width:x,height:g,scale:a,animate:c,isInView:f}),t[23]=c,t[24]=g,t[25]=x,t[26]=dt,t[27]=f,t[28]=a,t[29]=Y):Y=t[29];const ht=p?.yAxis?.gridLines,_=p?.yAxis?.labels;let tt;t[30]!==ht||t[31]!==_?(tt={gridLines:ht,labels:_},t[30]=ht,t[31]=_,t[32]=tt):tt=t[32];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let et;t[33]!==yt||t[34]!==vt?(et={gridLines:yt,labels:vt},t[33]=yt,t[34]=vt,t[35]=et):et=t[35];const jt=l(j<0?0:j),Ct=l(j<0?0:j),Rt=0-y,st=x+o.right,At=j<0?0:j;let b;t[36]!==K||t[37]!==H||t[38]!==q||t[39]!==At?(b=we.numberFormattingFunction(At,"NA",K,H,q),t[36]=K,t[37]=H,t[38]=q,t[39]=At,t[40]=b):b=t[40];const ot=0-y,Kt=Dt<0?"1em":-5,it=l(j<0?0:j);let nt;t[41]!==ot||t[42]!==Kt||t[43]!==it?(nt={x:ot,dx:0,dy:Kt,y:it},t[41]=ot,t[42]=Kt,t[43]=it,t[44]=nt):nt=t[44];const wt=d?.xAxis?.axis,Mt=d?.yAxis?.labels;let E;t[45]!==wt||t[46]!==Mt?(E={axis:wt,label:Mt},t[45]=wt,t[46]=Mt,t[47]=E):E=t[47];const rt=p?.xAxis?.axis,bt=p?.yAxis?.labels;let $;t[48]!==rt||t[49]!==bt?($={axis:rt,label:bt},t[48]=rt,t[49]=bt,t[50]=$):$=t[50];let O;t[51]!==jt||t[52]!==Ct||t[53]!==Rt||t[54]!==st||t[55]!==b||t[56]!==nt||t[57]!==E||t[58]!==$?(O=i.jsxRuntimeExports.jsx(Oe.Axis,{y1:jt,y2:Ct,x1:Rt,x2:st,label:b,labelPos:nt,classNames:E,styles:$}),t[51]=jt,t[52]=Ct,t[53]=Rt,t[54]=st,t[55]=b,t[56]=nt,t[57]=E,t[58]=$,t[59]=O):O=t[59];const T=0-y-15,D=g/2,N=p?.yAxis?.title,M=d?.yAxis?.title;let L;t[60]!==T||t[61]!==D||t[62]!==N||t[63]!==M||t[64]!==U?(L=i.jsxRuntimeExports.jsx(Ee.AxisTitle,{x:T,y:D,style:N,className:M,text:U,rotate90:!0}),t[60]=T,t[61]=D,t[62]=N,t[63]=M,t[64]=U,t[65]=L):L=t[65];let I;t[66]!==n?(I=s=>A.format(s,n),t[66]=n,t[67]=I):I=t[67];const Zt=Nt.map(I),_t=Nt.map(s=>a(s)),fe=p?.xAxis?.gridLines,pe=p?.xAxis?.labels;let te;t[68]!==fe||t[69]!==pe?(te={gridLines:fe,labels:pe},t[68]=fe,t[69]=pe,t[70]=te):te=t[70];const de=d?.xAxis?.gridLines;let Gt;t[71]!==de?(Gt=i.mo("opacity-0",de),t[71]=de,t[72]=Gt):Gt=t[72];const ge=d?.xAxis?.labels;let Ht;t[73]!==ge?(Ht=i.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs",ge),t[73]=ge,t[74]=Ht):Ht=t[74];let ee;t[75]!==Gt||t[76]!==Ht?(ee={gridLines:Gt,labels:Ht},t[75]=Gt,t[76]=Ht,t[77]=ee):ee=t[77];let se;t[78]!==F?(se=F.filter(Qe).map(Ke),t[78]=F,t[79]=se):se=t[79];const he=me.motion,ye=zt.map((s,e)=>i.jsxRuntimeExports.jsx(me.motion.path,{d:gt(s),exit:{opacity:0,transition:{duration:c.duration}},variants:{initial:{d:gt(s.map(Je)),opacity:0},whileInView:{d:gt(s),opacity:1,transition:{duration:c.duration}}},initial:"initial",animate:f?"whileInView":"initial",style:{fill:Ot[e],opacity:.8}},e));let Ft;t[80]!==d?.mouseOverLine||t[81]!==g||t[82]!==C||t[83]!==p?.mouseOverLine||t[84]!==a?(Ft=C?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:a(C.date),x2:a(C.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:p?.mouseOverLine}):null,t[80]=d?.mouseOverLine,t[81]=g,t[82]=C,t[83]=p?.mouseOverLine,t[84]=a,t[85]=Ft):Ft=t[85];let oe;t[86]!==he.g||t[87]!==ye||t[88]!==Ft?(oe=i.jsxRuntimeExports.jsxs(he.g,{children:[ye,Ft]}),t[86]=he.g,t[87]=ye,t[88]=Ft,t[89]=oe):oe=t[89];let ie;t[90]!==c||t[91]!==x||t[92]!==f||t[93]!==y||t[94]!==o.right||t[95]!==ct||t[96]!==l?(ie=ct?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ct.map((s,e)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:s.text,color:s.color,y:l(s.value),x1:0-y,x2:x+o.right,classNames:s.classNames,styles:s.styles,animate:c,isInView:f},e))}):null,t[90]=c,t[91]=x,t[92]=f,t[93]=y,t[94]=o.right,t[95]=ct,t[96]=l,t[97]=ie):ie=t[97];let Vt;if(t[98]!==c||t[99]!==z||t[100]!==n||t[101]!==x||t[102]!==f||t[103]!==o.right||t[104]!==G||t[105]!==a||t[106]!==l){let s;t[108]!==c||t[109]!==n||t[110]!==x||t[111]!==f||t[112]!==o.right||t[113]!==G||t[114]!==a||t[115]!==l?(s=(e,R)=>{const X=ve.getLineEndPoint({x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,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(A.parse(`${e.xCoordinate}`,n,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Qt=e.showConnector?{y1:X.y,x1:X.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),cx:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,cy:e.yCoordinate?l(e.yCoordinate):0,circleRadius:ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Re={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:G?0:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:G?e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0):x+o.right-(e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(ve.Annotation,{color:e.color,connectorsSettings:Qt,labelSettings:Re,text:e.text,classNames:e.classNames,styles:e.styles,animate:c,isInView:f},R)},t[108]=c,t[109]=n,t[110]=x,t[111]=f,t[112]=o.right,t[113]=G,t[114]=a,t[115]=l,t[116]=s):s=t[116],Vt=z.map(s),t[98]=c,t[99]=z,t[100]=n,t[101]=x,t[102]=f,t[103]=o.right,t[104]=G,t[105]=a,t[106]=l,t[107]=Vt}else Vt=t[107];let ne;t[117]!==Vt?(ne=i.jsxRuntimeExports.jsx("g",{children:Vt}),t[117]=Vt,t[118]=ne):ne=t[118];let re;t[119]!==F?(re=F.filter(ze).map(Be),t[119]=F,t[120]=re):re=t[120];let ae;t[121]===Symbol.for("react.memo_cache_sentinel")?(ae={fill:"none",pointerEvents:"all"},t[121]=ae):ae=t[121];let le;t[122]!==pt||t[123]!==g||t[124]!==x?(le=i.jsxRuntimeExports.jsx("rect",{ref:pt,style:ae,width:x,height:g}),t[122]=pt,t[123]=g,t[124]=x,t[125]=le):le=t[125];let ce;return t[126]!==d?.tooltip||t[127]!==Q||t[128]!==ft||t[129]!==C||t[130]!==p?.tooltip||t[131]!==B?(ce=C&&B&&Q&&ft?i.jsxRuntimeExports.jsx(be.Tooltip,{data:C,body:B,xPos:Q,yPos:ft,backgroundStyle:p?.tooltip,className:d?.tooltip}):null,t[126]=d?.tooltip,t[127]=Q,t[128]=ft,t[129]=C,t[130]=p?.tooltip,t[131]=B,t[132]=ce):ce=t[132],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(me.motion.svg,{width:`${W}px`,height:`${Et}px`,viewBox:`0 0 ${W} ${Et}`,direction:"ltr",ref:Xt,children:i.jsxRuntimeExports.jsx(Ve.AnimatePresence,{children:i.jsxRuntimeExports.jsxs(me.motion.g,{transform:`translate(${o.left},${o.top})`,children:[Y,i.jsxRuntimeExports.jsx(ve.CustomArea,{animate:c,areaSettings:Bt,scaleX:a,scaleY:l,isInView:f}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(qe.YTicksAndGridLines,{values:k.filter(_e),y:k.filter(Ze).map(s=>l(s)),x1:0-y,x2:x+o.right,styles:tt,classNames:et,suffix:q,prefix:H,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),O,L]}),i.jsxRuntimeExports.jsx(Le.XTicksAndGridLines,{values:Zt,x:_t,y1:0,y2:g,styles:te,classNames:ee,suffix:q,prefix:H,labelType:"primary",showGridLines:!0,precision:K}),se,oe,ie,ne,re,le]})})}),ce]})}function Be(r){return r.layer}function ze(r){return r.position==="after"}function Je(r){return{...r,y0:0,y1:0}}function Ke(r){return r.layer}function Qe(r){return r.position==="before"}function Ze(r){return r!==0}function _e(r){return r!==0}function ts(r){return r.date}function es(r){return je.sum(r.y)||0}function ss(r){const t=i.compilerRuntimeExports.c(90),{data:m,graphTitle:W,colors:Et,sources:Ot,graphDescription:n,height:Pt,width:v,footNote:y,noOfXTicks:Lt,dateFormat:St,colorDomain:U,padding:B,backgroundColor:at,colorLegendTitle:lt,leftMargin:ct,rightMargin:Yt,topMargin:ut,bottomMargin:G,highlightAreaSettings:z,tooltip:xt,relativeHeight:It,onSeriesMouseOver:H,refValues:q,graphID:J,minValue:p,maxValue:d,graphDownload:K,dataDownload:F,showColorScale:c,language:Xt,minHeight:mt,annotations:f,customHighlightAreaSettings:qt,theme:C,ariaLabel:kt,yAxisTitle:Q,noOfYTicks:Wt,prefix:ft,suffix:Ut,curveType:$t,styles:u,classNames:o,precision:pt,customLayers:V,animate:h}=r,w=Et===void 0?Xe.Colors.light.categoricalColors.colors:Et,dt=Lt===void 0?10:Lt,Z=St===void 0?"yyyy":St,Bt=at===void 0?!1:at,zt=ct===void 0?50:ct,x=Yt===void 0?20:Yt,g=ut===void 0?20:ut,Jt=G===void 0?25:G;let Tt;t[0]!==z?(Tt=z===void 0?[]:z,t[0]=z,t[1]=Tt):Tt=t[1];const j=Tt;let P;t[2]!==q?(P=q===void 0?[]:q,t[2]=q,t[3]=P):P=t[3];const Dt=P,a=K===void 0?!1:K,l=F===void 0?!1:F,gt=c===void 0?!0:c,k=Xt===void 0?"en":Xt,Nt=mt===void 0?0:mt;let Y;t[4]!==f?(Y=f===void 0?[]:f,t[4]=f,t[5]=Y):Y=t[5];const ht=Y;let _;t[6]!==qt?(_=qt===void 0?[]:qt,t[6]=qt,t[7]=_):_=t[7];const tt=_,yt=C===void 0?"light":C,vt=Wt===void 0?5:Wt,et=ft===void 0?"":ft,jt=Ut===void 0?"":Ut,Ct=$t===void 0?"curve":$t,Rt=pt===void 0?2:pt;let st;t[8]!==V?(st=V===void 0?[]:V,t[8]=V,t[9]=st):st=t[9];const At=st,b=h===void 0?!1:h,[ot,Kt]=S.useState(0),[it,nt]=S.useState(0),wt=S.useRef(null),Mt=S.useRef(null);let E,rt;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{const Zt=new ResizeObserver(_t=>{Kt(_t[0].target.clientWidth||620),nt(_t[0].target.clientHeight||480)});return wt.current&&Zt.observe(wt.current),()=>Zt.disconnect()},rt=[],t[10]=E,t[11]=rt):(E=t[10],rt=t[11]),S.useEffect(E,rt);const bt=o?.graphContainer,$=u?.graphContainer;let O;t[12]!==o?.description||t[13]!==o?.title||t[14]!==m||t[15]!==l||t[16]!==n||t[17]!==a||t[18]!==W||t[19]!==u?.description||t[20]!==u?.title||t[21]!==v?(O=W||n||a||l?i.jsxRuntimeExports.jsx(Ye.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:o?.title,description:o?.description},graphTitle:W,graphDescription:n,width:v,graphDownload:a?Mt:void 0,dataDownload:l?m.map(as).filter(rs).length>0?m.map(ns).filter(is):m.filter(os):null}):null,t[12]=o?.description,t[13]=o?.title,t[14]=m,t[15]=l,t[16]=n,t[17]=a,t[18]=W,t[19]=u?.description,t[20]=u?.title,t[21]=v,t[22]=O):O=t[22];let T;t[23]!==o?.colorLegend||t[24]!==U||t[25]!==lt||t[26]!==w||t[27]!==m.length||t[28]!==gt?(T=gt!==!1&&m.length>0?i.jsxRuntimeExports.jsx(Ie.ColorLegend,{colorDomain:U,colors:w,colorLegendTitle:lt,showNAColor:!1,className:o?.colorLegend}):null,t[23]=o?.colorLegend,t[24]=U,t[25]=lt,t[26]=w,t[27]=m.length,t[28]=gt,t[29]=T):T=t[29];let D;t[30]!==m.length?(D=m.length===0&&i.jsxRuntimeExports.jsx(We.EmptyState,{}),t[30]=m.length,t[31]=D):D=t[31];let N;t[32]!==b||t[33]!==ht||t[34]!==Jt||t[35]!==o||t[36]!==w||t[37]!==Ct||t[38]!==tt||t[39]!==At||t[40]!==m||t[41]!==Z||t[42]!==j||t[43]!==k||t[44]!==zt||t[45]!==d||t[46]!==p||t[47]!==dt||t[48]!==vt||t[49]!==H||t[50]!==Rt||t[51]!==et||t[52]!==Dt||t[53]!==x||t[54]!==u||t[55]!==jt||t[56]!==it||t[57]!==ot||t[58]!==xt||t[59]!==g||t[60]!==Q?(N=ot&&it&&m.length>0?i.jsxRuntimeExports.jsx(Ue,{data:m,colors:w,width:ot,height:it,dateFormat:Z,noOfXTicks:dt,leftMargin:zt,rightMargin:x,topMargin:g,bottomMargin:Jt,tooltip:xt,onSeriesMouseOver:H,highlightAreaSettings:j,refValues:Dt,minValue:p,maxValue:d,rtl:k==="he"||k==="ar",annotations:ht,customHighlightAreaSettings:tt,yAxisTitle:Q,noOfYTicks:vt,prefix:et,suffix:jt,curveType:Ct,styles:u,classNames:o,precision:Rt,customLayers:At,animate:b===!0?{duration:.5,once:!0,amount:.5}:b||{duration:0,once:!0,amount:0}}):null,t[32]=b,t[33]=ht,t[34]=Jt,t[35]=o,t[36]=w,t[37]=Ct,t[38]=tt,t[39]=At,t[40]=m,t[41]=Z,t[42]=j,t[43]=k,t[44]=zt,t[45]=d,t[46]=p,t[47]=dt,t[48]=vt,t[49]=H,t[50]=Rt,t[51]=et,t[52]=Dt,t[53]=x,t[54]=u,t[55]=jt,t[56]=it,t[57]=ot,t[58]=xt,t[59]=g,t[60]=Q,t[61]=N):N=t[61];let M;t[62]!==D||t[63]!==N?(M=i.jsxRuntimeExports.jsxs(Ce.GraphArea,{ref:wt,children:[D,N]}),t[62]=D,t[63]=N,t[64]=M):M=t[64];let L;t[65]!==o?.footnote||t[66]!==o?.source||t[67]!==y||t[68]!==Ot||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==v?(L=Ot||y?i.jsxRuntimeExports.jsx(Pe.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:Ot,footNote:y,width:v}):null,t[65]=o?.footnote,t[66]=o?.source,t[67]=y,t[68]=Ot,t[69]=u?.footnote,t[70]=u?.source,t[71]=v,t[72]=L):L=t[72];let I;return t[73]!==kt||t[74]!==Bt||t[75]!==J||t[76]!==Pt||t[77]!==k||t[78]!==Nt||t[79]!==B||t[80]!==It||t[81]!==bt||t[82]!==$||t[83]!==O||t[84]!==T||t[85]!==M||t[86]!==L||t[87]!==yt||t[88]!==v?(I=i.jsxRuntimeExports.jsxs(Ce.GraphContainer,{className:bt,style:$,id:J,ref:Mt,"aria-label":kt,backgroundColor:Bt,theme:yt,language:k,minHeight:Nt,width:v,height:Pt,relativeHeight:It,padding:B,children:[O,T,M,L]}),t[73]=kt,t[74]=Bt,t[75]=J,t[76]=Pt,t[77]=k,t[78]=Nt,t[79]=B,t[80]=It,t[81]=bt,t[82]=$,t[83]=O,t[84]=T,t[85]=M,t[86]=L,t[87]=yt,t[88]=v,t[89]=I):I=t[89],I}function os(r){return r!==void 0}function is(r){return r!==void 0}function ns(r){return r.data}function rs(r){return r!==void 0}function as(r){return r.data}exports.AreaChart=ss;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),S=require("react"),A=require("./parse-xYI9yrvL.cjs"),je=require("./index-CSNtgibC.cjs"),Ae=require("./index-Cno4Q0YE.cjs"),we=require("./numberFormattingFunction-02t-wJta.cjs"),be=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ve=require("./customArea-B1LWQBmM.cjs"),Ee=require("./AxisTitle-DV4n0RxE.cjs"),Oe=require("./Axis-Jt_tmhxS.cjs"),Le=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),qe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ke=require("./index-D69M6klB.cjs"),$e=require("./time-CkcKbhwe.cjs"),Te=require("./linear-CgUCbw9F.cjs"),De=require("./area-C1gxfNGD.cjs"),Ne=require("./line-DaEMhXmx.cjs"),xe=require("./step-BZ3C8QFW.cjs"),Me=require("./select-Bnfk0lJx.cjs"),me=require("./proxy-C4-uo6nS.cjs"),Ge=require("./init-DU0ybBc_.cjs"),He=require("./pointer-Dkq5NV1q.cjs"),Fe=require("./use-in-view-C3o_ntMv.cjs"),Ve=require("./index-CoobIWNj.cjs"),Pe=require("./GraphFooter.cjs"),Ye=require("./GraphHeader.cjs"),Ie=require("./ColorLegend.cjs"),Xe=require("./Colors.cjs"),We=require("./EmptyState-B4c-CrXs.cjs"),Ce=require("./GraphContainer-B1EDxJ0S.cjs");function Ue(r){const t=i.compilerRuntimeExports.c(133),{data:m,width:W,height:Et,colors:Ot,dateFormat:n,noOfXTicks:Pt,rightMargin:v,leftMargin:y,topMargin:Lt,bottomMargin:St,yAxisTitle:U,tooltip:B,onSeriesMouseOver:at,highlightAreaSettings:lt,refValues:ct,minValue:Yt,maxValue:ut,rtl:G,annotations:z,customHighlightAreaSettings:xt,noOfYTicks:It,prefix:H,suffix:q,curveType:J,styles:p,classNames:d,precision:K,customLayers:F,animate:c}=r,Xt=S.useRef(null);let mt;t[0]!==c.amount||t[1]!==c.once?(mt={once:c.once,amount:c.amount},t[0]=c.amount,t[1]=c.once,t[2]=mt):mt=t[2];const f=Fe.useInView(Xt,mt),qt=J==="linear"?Ne.curveLinear:J==="step"?xe.curveStep:J==="stepAfter"?xe.stepAfter:J==="stepBefore"?xe.stepBefore:xe.monotoneX,[C,kt]=S.useState(void 0),[Q,Wt]=S.useState(void 0),[ft,Ut]=S.useState(void 0),$t=U?y+30:y;let u;t[3]!==St||t[4]!==v||t[5]!==$t||t[6]!==Lt?(u={top:Lt,bottom:St,left:$t,right:v},t[3]=St,t[4]=v,t[5]=$t,t[6]=Lt,t[7]=u):u=t[7];const o=u,pt=S.useRef(null);let V;t[8]!==n?(V=s=>({...s,date:A.parse(`${s.date}`,n,new Date)}),t[8]=n,t[9]=V):V=t[9];const h=Ae.orderBy(m.map(V),["date"],["asc"]);let w;if(t[10]!==n||t[11]!==lt){let s;t[13]!==n?(s=e=>({...e,coordinates:[e.coordinates[0]===null?null:A.parse(`${e.coordinates[0]}`,n,new Date),e.coordinates[1]===null?null:A.parse(`${e.coordinates[1]}`,n,new Date)]}),t[13]=n,t[14]=s):s=t[14],w=lt.map(s),t[10]=n,t[11]=lt,t[12]=w}else w=t[12];const dt=w;let Z;if(t[15]!==xt||t[16]!==n){let s;t[18]!==n?(s=e=>({...e,coordinates:e.coordinates.map((R,X)=>X%2===0?A.parse(`${R}`,n,new Date):R)}),t[18]=n,t[19]=s):s=t[19],Z=xt.map(s),t[15]=xt,t[16]=n,t[17]=Z}else Z=t[17];const Bt=Z,zt=h[0].y.map((s,e)=>h.map(R=>({date:R.date,y0:e===0?0:je.sum(R.y.filter((X,Qt)=>Qt<e)),y1:je.sum(R.y.filter((X,Qt)=>Qt<=e))}))),x=W-o.left-o.right,g=Et-o.top-o.bottom,Jt=h[0].date,Tt=h[h.length-1].date,j=ue.checkIfNullOrUndefined(Yt)?0:Yt;let P;t[20]!==m||t[21]!==ut?(P=ue.checkIfNullOrUndefined(ut)?Math.max(...m.map(es)):ut,t[20]=m,t[21]=ut,t[22]=P):P=t[22];const Dt=P,a=$e.time().domain([Jt,Tt]).range([0,x]),l=Te.linear().domain([j,Dt]).range([g,0]).nice(),gt=De.area().x(s=>a(s.date)).y0(s=>l(s.y0)).y1(s=>l(s.y1)).curve(qt),k=l.ticks(It),Nt=a.ticks(Pt);S.useEffect(()=>{const s=R=>{const X=h[Ge.bisectCenter(h.map(ts),a.invert(He.pointer(R)[0]),0)];kt(X||h[h.length-1]),at?.(X||h[h.length-1]),Ut(R.clientY),Wt(R.clientX)},e=()=>{kt(void 0),Wt(void 0),Ut(void 0),at?.(void 0)};Me.select(pt.current).on("mousemove",s).on("mouseout",e),at?.(void 0)},[a,h,at]);let Y;t[23]!==c||t[24]!==g||t[25]!==x||t[26]!==dt||t[27]!==f||t[28]!==a?(Y=i.jsxRuntimeExports.jsx(ke.HighlightArea,{areaSettings:dt,width:x,height:g,scale:a,animate:c,isInView:f}),t[23]=c,t[24]=g,t[25]=x,t[26]=dt,t[27]=f,t[28]=a,t[29]=Y):Y=t[29];const ht=p?.yAxis?.gridLines,_=p?.yAxis?.labels;let tt;t[30]!==ht||t[31]!==_?(tt={gridLines:ht,labels:_},t[30]=ht,t[31]=_,t[32]=tt):tt=t[32];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let et;t[33]!==yt||t[34]!==vt?(et={gridLines:yt,labels:vt},t[33]=yt,t[34]=vt,t[35]=et):et=t[35];const jt=l(j<0?0:j),Ct=l(j<0?0:j),Rt=0-y,st=x+o.right,At=j<0?0:j;let b;t[36]!==K||t[37]!==H||t[38]!==q||t[39]!==At?(b=we.numberFormattingFunction(At,"NA",K,H,q),t[36]=K,t[37]=H,t[38]=q,t[39]=At,t[40]=b):b=t[40];const ot=0-y,Kt=Dt<0?"1em":-5,it=l(j<0?0:j);let nt;t[41]!==ot||t[42]!==Kt||t[43]!==it?(nt={x:ot,dx:0,dy:Kt,y:it},t[41]=ot,t[42]=Kt,t[43]=it,t[44]=nt):nt=t[44];const wt=d?.xAxis?.axis,Mt=d?.yAxis?.labels;let E;t[45]!==wt||t[46]!==Mt?(E={axis:wt,label:Mt},t[45]=wt,t[46]=Mt,t[47]=E):E=t[47];const rt=p?.xAxis?.axis,bt=p?.yAxis?.labels;let $;t[48]!==rt||t[49]!==bt?($={axis:rt,label:bt},t[48]=rt,t[49]=bt,t[50]=$):$=t[50];let O;t[51]!==jt||t[52]!==Ct||t[53]!==Rt||t[54]!==st||t[55]!==b||t[56]!==nt||t[57]!==E||t[58]!==$?(O=i.jsxRuntimeExports.jsx(Oe.Axis,{y1:jt,y2:Ct,x1:Rt,x2:st,label:b,labelPos:nt,classNames:E,styles:$}),t[51]=jt,t[52]=Ct,t[53]=Rt,t[54]=st,t[55]=b,t[56]=nt,t[57]=E,t[58]=$,t[59]=O):O=t[59];const T=0-y-15,D=g/2,N=p?.yAxis?.title,M=d?.yAxis?.title;let L;t[60]!==T||t[61]!==D||t[62]!==N||t[63]!==M||t[64]!==U?(L=i.jsxRuntimeExports.jsx(Ee.AxisTitle,{x:T,y:D,style:N,className:M,text:U,rotate90:!0}),t[60]=T,t[61]=D,t[62]=N,t[63]=M,t[64]=U,t[65]=L):L=t[65];let I;t[66]!==n?(I=s=>A.format(s,n),t[66]=n,t[67]=I):I=t[67];const Zt=Nt.map(I),_t=Nt.map(s=>a(s)),fe=p?.xAxis?.gridLines,pe=p?.xAxis?.labels;let te;t[68]!==fe||t[69]!==pe?(te={gridLines:fe,labels:pe},t[68]=fe,t[69]=pe,t[70]=te):te=t[70];const de=d?.xAxis?.gridLines;let Gt;t[71]!==de?(Gt=i.mo("opacity-0",de),t[71]=de,t[72]=Gt):Gt=t[72];const ge=d?.xAxis?.labels;let Ht;t[73]!==ge?(Ht=i.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs",ge),t[73]=ge,t[74]=Ht):Ht=t[74];let ee;t[75]!==Gt||t[76]!==Ht?(ee={gridLines:Gt,labels:Ht},t[75]=Gt,t[76]=Ht,t[77]=ee):ee=t[77];let se;t[78]!==F?(se=F.filter(Qe).map(Ke),t[78]=F,t[79]=se):se=t[79];const he=me.motion,ye=zt.map((s,e)=>i.jsxRuntimeExports.jsx(me.motion.path,{d:gt(s),exit:{opacity:0,transition:{duration:c.duration}},variants:{initial:{d:gt(s.map(Je)),opacity:0},whileInView:{d:gt(s),opacity:1,transition:{duration:c.duration}}},initial:"initial",animate:f?"whileInView":"initial",style:{fill:Ot[e],opacity:.8}},e));let Ft;t[80]!==d?.mouseOverLine||t[81]!==g||t[82]!==C||t[83]!==p?.mouseOverLine||t[84]!==a?(Ft=C?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:a(C.date),x2:a(C.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:p?.mouseOverLine}):null,t[80]=d?.mouseOverLine,t[81]=g,t[82]=C,t[83]=p?.mouseOverLine,t[84]=a,t[85]=Ft):Ft=t[85];let oe;t[86]!==he.g||t[87]!==ye||t[88]!==Ft?(oe=i.jsxRuntimeExports.jsxs(he.g,{children:[ye,Ft]}),t[86]=he.g,t[87]=ye,t[88]=Ft,t[89]=oe):oe=t[89];let ie;t[90]!==c||t[91]!==x||t[92]!==f||t[93]!==y||t[94]!==o.right||t[95]!==ct||t[96]!==l?(ie=ct?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ct.map((s,e)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:s.text,color:s.color,y:l(s.value),x1:0-y,x2:x+o.right,classNames:s.classNames,styles:s.styles,animate:c,isInView:f},e))}):null,t[90]=c,t[91]=x,t[92]=f,t[93]=y,t[94]=o.right,t[95]=ct,t[96]=l,t[97]=ie):ie=t[97];let Vt;if(t[98]!==c||t[99]!==z||t[100]!==n||t[101]!==x||t[102]!==f||t[103]!==o.right||t[104]!==G||t[105]!==a||t[106]!==l){let s;t[108]!==c||t[109]!==n||t[110]!==x||t[111]!==f||t[112]!==o.right||t[113]!==G||t[114]!==a||t[115]!==l?(s=(e,R)=>{const X=ve.getLineEndPoint({x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,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(A.parse(`${e.xCoordinate}`,n,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Qt=e.showConnector?{y1:X.y,x1:X.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),cx:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,cy:e.yCoordinate?l(e.yCoordinate):0,circleRadius:ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Re={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:G?0:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:G?e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0):x+o.right-(e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(ve.Annotation,{color:e.color,connectorsSettings:Qt,labelSettings:Re,text:e.text,classNames:e.classNames,styles:e.styles,animate:c,isInView:f},R)},t[108]=c,t[109]=n,t[110]=x,t[111]=f,t[112]=o.right,t[113]=G,t[114]=a,t[115]=l,t[116]=s):s=t[116],Vt=z.map(s),t[98]=c,t[99]=z,t[100]=n,t[101]=x,t[102]=f,t[103]=o.right,t[104]=G,t[105]=a,t[106]=l,t[107]=Vt}else Vt=t[107];let ne;t[117]!==Vt?(ne=i.jsxRuntimeExports.jsx("g",{children:Vt}),t[117]=Vt,t[118]=ne):ne=t[118];let re;t[119]!==F?(re=F.filter(ze).map(Be),t[119]=F,t[120]=re):re=t[120];let ae;t[121]===Symbol.for("react.memo_cache_sentinel")?(ae={fill:"none",pointerEvents:"all"},t[121]=ae):ae=t[121];let le;t[122]!==pt||t[123]!==g||t[124]!==x?(le=i.jsxRuntimeExports.jsx("rect",{ref:pt,style:ae,width:x,height:g}),t[122]=pt,t[123]=g,t[124]=x,t[125]=le):le=t[125];let ce;return t[126]!==d?.tooltip||t[127]!==Q||t[128]!==ft||t[129]!==C||t[130]!==p?.tooltip||t[131]!==B?(ce=C&&B&&Q&&ft?i.jsxRuntimeExports.jsx(be.Tooltip,{data:C,body:B,xPos:Q,yPos:ft,backgroundStyle:p?.tooltip,className:d?.tooltip}):null,t[126]=d?.tooltip,t[127]=Q,t[128]=ft,t[129]=C,t[130]=p?.tooltip,t[131]=B,t[132]=ce):ce=t[132],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(me.motion.svg,{width:`${W}px`,height:`${Et}px`,viewBox:`0 0 ${W} ${Et}`,direction:"ltr",ref:Xt,children:i.jsxRuntimeExports.jsx(Ve.AnimatePresence,{children:i.jsxRuntimeExports.jsxs(me.motion.g,{transform:`translate(${o.left},${o.top})`,children:[Y,i.jsxRuntimeExports.jsx(ve.CustomArea,{animate:c,areaSettings:Bt,scaleX:a,scaleY:l,isInView:f}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(qe.YTicksAndGridLines,{values:k.filter(_e),y:k.filter(Ze).map(s=>l(s)),x1:0-y,x2:x+o.right,styles:tt,classNames:et,suffix:q,prefix:H,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),O,L]}),i.jsxRuntimeExports.jsx(Le.XTicksAndGridLines,{values:Zt,x:_t,y1:0,y2:g,styles:te,classNames:ee,suffix:q,prefix:H,labelType:"primary",showGridLines:!0,precision:K}),se,oe,ie,ne,re,le]})})}),ce]})}function Be(r){return r.layer}function ze(r){return r.position==="after"}function Je(r){return{...r,y0:0,y1:0}}function Ke(r){return r.layer}function Qe(r){return r.position==="before"}function Ze(r){return r!==0}function _e(r){return r!==0}function ts(r){return r.date}function es(r){return je.sum(r.y)||0}function ss(r){const t=i.compilerRuntimeExports.c(90),{data:m,graphTitle:W,colors:Et,sources:Ot,graphDescription:n,height:Pt,width:v,footNote:y,noOfXTicks:Lt,dateFormat:St,colorDomain:U,padding:B,backgroundColor:at,colorLegendTitle:lt,leftMargin:ct,rightMargin:Yt,topMargin:ut,bottomMargin:G,highlightAreaSettings:z,tooltip:xt,relativeHeight:It,onSeriesMouseOver:H,refValues:q,graphID:J,minValue:p,maxValue:d,graphDownload:K,dataDownload:F,showColorScale:c,language:Xt,minHeight:mt,annotations:f,customHighlightAreaSettings:qt,theme:C,ariaLabel:kt,yAxisTitle:Q,noOfYTicks:Wt,prefix:ft,suffix:Ut,curveType:$t,styles:u,classNames:o,precision:pt,customLayers:V,animate:h}=r,w=Et===void 0?Xe.Colors.light.categoricalColors.colors:Et,dt=Lt===void 0?10:Lt,Z=St===void 0?"yyyy":St,Bt=at===void 0?!1:at,zt=ct===void 0?50:ct,x=Yt===void 0?20:Yt,g=ut===void 0?20:ut,Jt=G===void 0?25:G;let Tt;t[0]!==z?(Tt=z===void 0?[]:z,t[0]=z,t[1]=Tt):Tt=t[1];const j=Tt;let P;t[2]!==q?(P=q===void 0?[]:q,t[2]=q,t[3]=P):P=t[3];const Dt=P,a=K===void 0?!1:K,l=F===void 0?!1:F,gt=c===void 0?!0:c,k=Xt===void 0?"en":Xt,Nt=mt===void 0?0:mt;let Y;t[4]!==f?(Y=f===void 0?[]:f,t[4]=f,t[5]=Y):Y=t[5];const ht=Y;let _;t[6]!==qt?(_=qt===void 0?[]:qt,t[6]=qt,t[7]=_):_=t[7];const tt=_,yt=C===void 0?"light":C,vt=Wt===void 0?5:Wt,et=ft===void 0?"":ft,jt=Ut===void 0?"":Ut,Ct=$t===void 0?"curve":$t,Rt=pt===void 0?2:pt;let st;t[8]!==V?(st=V===void 0?[]:V,t[8]=V,t[9]=st):st=t[9];const At=st,b=h===void 0?!1:h,[ot,Kt]=S.useState(0),[it,nt]=S.useState(0),wt=S.useRef(null),Mt=S.useRef(null);let E,rt;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{const Zt=new ResizeObserver(_t=>{Kt(_t[0].target.clientWidth||620),nt(_t[0].target.clientHeight||480)});return wt.current&&Zt.observe(wt.current),()=>Zt.disconnect()},rt=[],t[10]=E,t[11]=rt):(E=t[10],rt=t[11]),S.useEffect(E,rt);const bt=o?.graphContainer,$=u?.graphContainer;let O;t[12]!==o?.description||t[13]!==o?.title||t[14]!==m||t[15]!==l||t[16]!==n||t[17]!==a||t[18]!==W||t[19]!==u?.description||t[20]!==u?.title||t[21]!==v?(O=W||n||a||l?i.jsxRuntimeExports.jsx(Ye.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:o?.title,description:o?.description},graphTitle:W,graphDescription:n,width:v,graphDownload:a?Mt:void 0,dataDownload:l?m.map(as).filter(rs).length>0?m.map(ns).filter(is):m.filter(os):null}):null,t[12]=o?.description,t[13]=o?.title,t[14]=m,t[15]=l,t[16]=n,t[17]=a,t[18]=W,t[19]=u?.description,t[20]=u?.title,t[21]=v,t[22]=O):O=t[22];let T;t[23]!==o?.colorLegend||t[24]!==U||t[25]!==lt||t[26]!==w||t[27]!==m.length||t[28]!==gt?(T=gt!==!1&&m.length>0?i.jsxRuntimeExports.jsx(Ie.ColorLegend,{colorDomain:U,colors:w,colorLegendTitle:lt,showNAColor:!1,className:o?.colorLegend}):null,t[23]=o?.colorLegend,t[24]=U,t[25]=lt,t[26]=w,t[27]=m.length,t[28]=gt,t[29]=T):T=t[29];let D;t[30]!==m.length?(D=m.length===0&&i.jsxRuntimeExports.jsx(We.EmptyState,{}),t[30]=m.length,t[31]=D):D=t[31];let N;t[32]!==b||t[33]!==ht||t[34]!==Jt||t[35]!==o||t[36]!==w||t[37]!==Ct||t[38]!==tt||t[39]!==At||t[40]!==m||t[41]!==Z||t[42]!==j||t[43]!==k||t[44]!==zt||t[45]!==d||t[46]!==p||t[47]!==dt||t[48]!==vt||t[49]!==H||t[50]!==Rt||t[51]!==et||t[52]!==Dt||t[53]!==x||t[54]!==u||t[55]!==jt||t[56]!==it||t[57]!==ot||t[58]!==xt||t[59]!==g||t[60]!==Q?(N=ot&&it&&m.length>0?i.jsxRuntimeExports.jsx(Ue,{data:m,colors:w,width:ot,height:it,dateFormat:Z,noOfXTicks:dt,leftMargin:zt,rightMargin:x,topMargin:g,bottomMargin:Jt,tooltip:xt,onSeriesMouseOver:H,highlightAreaSettings:j,refValues:Dt,minValue:p,maxValue:d,rtl:k==="he"||k==="ar",annotations:ht,customHighlightAreaSettings:tt,yAxisTitle:Q,noOfYTicks:vt,prefix:et,suffix:jt,curveType:Ct,styles:u,classNames:o,precision:Rt,customLayers:At,animate:b===!0?{duration:.5,once:!0,amount:.5}:b||{duration:0,once:!0,amount:0}}):null,t[32]=b,t[33]=ht,t[34]=Jt,t[35]=o,t[36]=w,t[37]=Ct,t[38]=tt,t[39]=At,t[40]=m,t[41]=Z,t[42]=j,t[43]=k,t[44]=zt,t[45]=d,t[46]=p,t[47]=dt,t[48]=vt,t[49]=H,t[50]=Rt,t[51]=et,t[52]=Dt,t[53]=x,t[54]=u,t[55]=jt,t[56]=it,t[57]=ot,t[58]=xt,t[59]=g,t[60]=Q,t[61]=N):N=t[61];let M;t[62]!==D||t[63]!==N?(M=i.jsxRuntimeExports.jsxs(Ce.GraphArea,{ref:wt,children:[D,N]}),t[62]=D,t[63]=N,t[64]=M):M=t[64];let L;t[65]!==o?.footnote||t[66]!==o?.source||t[67]!==y||t[68]!==Ot||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==v?(L=Ot||y?i.jsxRuntimeExports.jsx(Pe.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:Ot,footNote:y,width:v}):null,t[65]=o?.footnote,t[66]=o?.source,t[67]=y,t[68]=Ot,t[69]=u?.footnote,t[70]=u?.source,t[71]=v,t[72]=L):L=t[72];let I;return t[73]!==kt||t[74]!==Bt||t[75]!==J||t[76]!==Pt||t[77]!==k||t[78]!==Nt||t[79]!==B||t[80]!==It||t[81]!==bt||t[82]!==$||t[83]!==O||t[84]!==T||t[85]!==M||t[86]!==L||t[87]!==yt||t[88]!==v?(I=i.jsxRuntimeExports.jsxs(Ce.GraphContainer,{className:bt,style:$,id:J,ref:Mt,"aria-label":kt,backgroundColor:Bt,theme:yt,language:k,minHeight:Nt,width:v,height:Pt,relativeHeight:It,padding:B,children:[O,T,M,L]}),t[73]=kt,t[74]=Bt,t[75]=J,t[76]=Pt,t[77]=k,t[78]=Nt,t[79]=B,t[80]=It,t[81]=bt,t[82]=$,t[83]=O,t[84]=T,t[85]=M,t[86]=L,t[87]=yt,t[88]=v,t[89]=I):I=t[89],I}function os(r){return r!==void 0}function is(r){return r!==void 0}function ns(r){return r.data}function rs(r){return r!==void 0}function as(r){return r.data}exports.AreaChart=ss;
2
2
  //# sourceMappingURL=AreaChart.cjs.map
package/dist/AreaChart.js CHANGED
@@ -1,35 +1,35 @@
1
- import { c as Ce, m as ve, j as a } from "./index-CHPV5EwG-DecW7_qr.js";
1
+ import { c as Ce, m as ve, j as a } from "./index-CHPV5EwG-BCLAYDCV.js";
2
2
  import { useRef as pe, useState as Qt, useEffect as we } from "react";
3
3
  import { p as D, f as Oe } from "./parse-Dv4of-PN.js";
4
4
  import { s as Ae } from "./index-CeVNqhMO.js";
5
5
  import { o as Le } from "./index-BZQYSqar.js";
6
6
  import { n as je } from "./numberFormattingFunction-14YCbkN2.js";
7
- import { T as Se } from "./Tooltip-BRnAz2Gv.js";
7
+ import { T as Se } from "./Tooltip-CohiIbLZ.js";
8
8
  import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
- import { C as De, g as $e, A as ke } from "./customArea-ASDaSE4u.js";
10
- import { A as Te } from "./AxisTitle-VFq89Olw.js";
11
- import { A as Ne } from "./Axis-D56Gy0se.js";
12
- import { X as Me } from "./XTicksAndGridLines-CVZkZkpS.js";
13
- import { a as He } from "./ReferenceLine-DgtoRgw0.js";
14
- import { Y as Re } from "./YTicksAndGridLines-GnXnSRF2.js";
15
- import { H as Ye } from "./index-CSiFiXPj.js";
16
- import { t as Fe } from "./time-CAtex-RV.js";
17
- import { a as Ve } from "./linear-CalFSAaO.js";
9
+ import { C as De, g as $e, A as ke } from "./customArea-Cc2whe6P.js";
10
+ import { A as Te } from "./AxisTitle-DGjX1_2v.js";
11
+ import { A as Ne } from "./Axis-RyGdzLrG.js";
12
+ import { X as Me } from "./XTicksAndGridLines-BDmF9etl.js";
13
+ import { a as He } from "./ReferenceLine-CNEjAYvv.js";
14
+ import { Y as Re } from "./YTicksAndGridLines-C3GW1xFG.js";
15
+ import { H as Ye } from "./index-D_dtv_T9.js";
16
+ import { t as Fe } from "./time-vyz6Y89P.js";
17
+ import { a as Ve } from "./linear-DNXM5Pdl.js";
18
18
  import { a as Ge } from "./area-B6r7cv2o.js";
19
19
  import { c as Pe } from "./line-DFlZsxI1.js";
20
20
  import { c as Xe, s as Ee, a as We, m as Ie } from "./step-BrDul-H4.js";
21
21
  import { s as Be } from "./select-DKy99ogv.js";
22
- import { m as fe } from "./proxy-DRuSUlPL.js";
22
+ import { m as fe } from "./proxy--_f6k3NR.js";
23
23
  import { a as ze } from "./init-BhZylTFx.js";
24
24
  import { p as Ue } from "./pointer-CWRWOsrb.js";
25
- import { u as qe } from "./use-in-view-Dl5L8LtP.js";
26
- import { A as Je } from "./index-CtMBjvtq.js";
25
+ import { u as qe } from "./use-in-view-DqvKAveg.js";
26
+ import { A as Je } from "./index-Co3YGYe1.js";
27
27
  import { GraphFooter as Ke } from "./GraphFooter.js";
28
28
  import { GraphHeader as Qe } from "./GraphHeader.js";
29
29
  import { ColorLegend as Ze } from "./ColorLegend.js";
30
30
  import { Colors as _e } from "./Colors.js";
31
- import { E as to } from "./EmptyState-dScPFkLy.js";
32
- import { a as eo, G as oo } from "./GraphContainer-CF6ws3pd.js";
31
+ import { E as to } from "./EmptyState-B3fPoH6L.js";
32
+ import { a as eo, G as oo } from "./GraphContainer-DwMxWRCi.js";
33
33
  function so(n) {
34
34
  const t = Ce.c(133), {
35
35
  data: p,
@@ -1,4 +1,4 @@
1
- import { c as b, j as y, m as f } from "./index-CHPV5EwG-DecW7_qr.js";
1
+ import { c as b, j as y, m as f } from "./index-CHPV5EwG-BCLAYDCV.js";
2
2
  import { c as u } from "./checkIfNullOrUndefined-DmfiKkNw.js";
3
3
  function h(p) {
4
4
  const e = b.c(19), {
@@ -28,4 +28,4 @@ function h(p) {
28
28
  export {
29
29
  h as A
30
30
  };
31
- //# sourceMappingURL=Axis-D56Gy0se.js.map
31
+ //# sourceMappingURL=Axis-RyGdzLrG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Axis-D56Gy0se.js","sources":["../src/Components/Elements/Axes/Axis.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\n\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\n\r\ninterface Props {\r\n label?: string;\r\n labelPos?: { x: number; y: number; dy: string | number; dx: string | number };\r\n y1: number;\r\n x1: number;\r\n y2: number;\r\n x2: number;\r\n classNames?: { axis?: string; label?: string };\r\n styles?: { axis?: React.CSSProperties; label?: React.CSSProperties };\r\n hideAxisLine?: boolean;\r\n}\r\n\r\nexport function Axis(props: Props) {\r\n const { label, x2, y2, x1, y1, classNames, styles, labelPos, hideAxisLine } = props;\r\n return (\r\n <>\r\n {hideAxisLine ? null : (\r\n <line\r\n y1={y1}\r\n y2={y2}\r\n x1={x1}\r\n x2={x2}\r\n style={styles?.axis}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300',\r\n classNames?.axis,\r\n )}\r\n />\r\n )}\r\n {!checkIfNullOrUndefined(label) ? (\r\n <text\r\n x={labelPos?.x}\r\n y={labelPos?.y}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.label || ''),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.label,\r\n )}\r\n dy={labelPos?.dy}\r\n dx={labelPos?.dx}\r\n >\r\n {label}\r\n </text>\r\n ) : null}\r\n </>\r\n );\r\n}\r\n"],"names":["Axis","props","$","_c","label","x2","y2","x1","y1","classNames","styles","labelPos","hideAxisLine","t0","axis","jsx","cn","t1","dx","dy","x","y","checkIfNullOrUndefined","textAnchor","t2"],"mappings":";;AAgBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,OAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,cAAAA;AAAAA,EAAAA,IAA8EX;AAAM,MAAAY;AAAA,EAAAX,EAAA,CAAA,MAAAO,GAAAK,QAAAZ,EAAA,CAAA,MAAAU,KAAAV,EAAA,CAAA,MAAAQ,GAAAI,QAAAZ,EAAA,CAAA,MAAAK,KAAAL,EAAA,CAAA,MAAAG,KAAAH,EAAA,CAAA,MAAAM,KAAAN,SAAAI,KAG/EO,IAAAD,IAAA,OACCG,gBAAAA,EAAAA,IAAA,QAAA,EACMP,IAAAA,GACAF,IAAAA,GACAC,IAAAA,GACAF,IAAAA,GACG,OAAAK,GAAMI,MACF,WAAAE,EACT,iEACAP,GAAUK,IACZ,GAAC,GAEJZ,EAAA,CAAA,IAAAO,GAAAK,MAAAZ,OAAAU,GAAAV,EAAA,CAAA,IAAAQ,GAAAI,MAAAZ,OAAAK,GAAAL,OAAAG,GAAAH,OAAAM,GAAAN,OAAAI,GAAAJ,OAAAW,KAAAA,IAAAX,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAO,GAAAL,SAAAF,EAAA,CAAA,MAAAE,KAAAF,EAAA,EAAA,MAAAS,GAAAO,MAAAhB,EAAA,EAAA,MAAAS,GAAAQ,MAAAjB,EAAA,EAAA,MAAAS,GAAAS,KAAAlB,EAAA,EAAA,MAAAS,GAAAU,KAAAnB,EAAA,EAAA,MAAAQ,GAAAN,SACAa,IAACK,EAAuBlB,CAAK,IAA7B,OACCW,gBAAAA,EAAAA,IAAA,QAAA,EACK,GAAAJ,GAAQS,GACR,GAAAT,GAAQU,GACJ,OAAA;AAAA,IAAAE,YACO;AAAA,IAAO,GACfb,GAAMN,SAAN;AAAA,EAAA,GAEK,WAAAY,EACT,4DACAP,GAAUL,KACZ,GACI,IAAAO,GAAQQ,IACR,IAAAR,GAAQO,iBAGd,GACMhB,EAAA,CAAA,IAAAO,GAAAL,OAAAF,OAAAE,GAAAF,EAAA,EAAA,IAAAS,GAAAO,IAAAhB,EAAA,EAAA,IAAAS,GAAAQ,IAAAjB,EAAA,EAAA,IAAAS,GAAAS,GAAAlB,EAAA,EAAA,IAAAS,GAAAU,GAAAnB,EAAA,EAAA,IAAAQ,GAAAN,OAAAF,QAAAe,KAAAA,IAAAf,EAAA,EAAA;AAAA,MAAAsB;AAAA,SAAAtB,EAAA,EAAA,MAAAW,KAAAX,UAAAe,KA/BVO,yCACGX,UAAAA;AAAAA,IAAAA;AAAAA,IAaAI;AAAAA,EAAAA,GAiBO,GACPf,QAAAW,GAAAX,QAAAe,GAAAf,QAAAsB,KAAAA,IAAAtB,EAAA,EAAA,GAhCHsB;AAgCG;"}
1
+ {"version":3,"file":"Axis-RyGdzLrG.js","sources":["../src/Components/Elements/Axes/Axis.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\n\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\n\r\ninterface Props {\r\n label?: string;\r\n labelPos?: { x: number; y: number; dy: string | number; dx: string | number };\r\n y1: number;\r\n x1: number;\r\n y2: number;\r\n x2: number;\r\n classNames?: { axis?: string; label?: string };\r\n styles?: { axis?: React.CSSProperties; label?: React.CSSProperties };\r\n hideAxisLine?: boolean;\r\n}\r\n\r\nexport function Axis(props: Props) {\r\n const { label, x2, y2, x1, y1, classNames, styles, labelPos, hideAxisLine } = props;\r\n return (\r\n <>\r\n {hideAxisLine ? null : (\r\n <line\r\n y1={y1}\r\n y2={y2}\r\n x1={x1}\r\n x2={x2}\r\n style={styles?.axis}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300',\r\n classNames?.axis,\r\n )}\r\n />\r\n )}\r\n {!checkIfNullOrUndefined(label) ? (\r\n <text\r\n x={labelPos?.x}\r\n y={labelPos?.y}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.label || ''),\r\n }}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.label,\r\n )}\r\n dy={labelPos?.dy}\r\n dx={labelPos?.dx}\r\n >\r\n {label}\r\n </text>\r\n ) : null}\r\n </>\r\n );\r\n}\r\n"],"names":["Axis","props","$","_c","label","x2","y2","x1","y1","classNames","styles","labelPos","hideAxisLine","t0","axis","jsx","cn","t1","dx","dy","x","y","checkIfNullOrUndefined","textAnchor","t2"],"mappings":";;AAgBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,OAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,cAAAA;AAAAA,EAAAA,IAA8EX;AAAM,MAAAY;AAAA,EAAAX,EAAA,CAAA,MAAAO,GAAAK,QAAAZ,EAAA,CAAA,MAAAU,KAAAV,EAAA,CAAA,MAAAQ,GAAAI,QAAAZ,EAAA,CAAA,MAAAK,KAAAL,EAAA,CAAA,MAAAG,KAAAH,EAAA,CAAA,MAAAM,KAAAN,SAAAI,KAG/EO,IAAAD,IAAA,OACCG,gBAAAA,EAAAA,IAAA,QAAA,EACMP,IAAAA,GACAF,IAAAA,GACAC,IAAAA,GACAF,IAAAA,GACG,OAAAK,GAAMI,MACF,WAAAE,EACT,iEACAP,GAAUK,IACZ,GAAC,GAEJZ,EAAA,CAAA,IAAAO,GAAAK,MAAAZ,OAAAU,GAAAV,EAAA,CAAA,IAAAQ,GAAAI,MAAAZ,OAAAK,GAAAL,OAAAG,GAAAH,OAAAM,GAAAN,OAAAI,GAAAJ,OAAAW,KAAAA,IAAAX,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAO,GAAAL,SAAAF,EAAA,CAAA,MAAAE,KAAAF,EAAA,EAAA,MAAAS,GAAAO,MAAAhB,EAAA,EAAA,MAAAS,GAAAQ,MAAAjB,EAAA,EAAA,MAAAS,GAAAS,KAAAlB,EAAA,EAAA,MAAAS,GAAAU,KAAAnB,EAAA,EAAA,MAAAQ,GAAAN,SACAa,IAACK,EAAuBlB,CAAK,IAA7B,OACCW,gBAAAA,EAAAA,IAAA,QAAA,EACK,GAAAJ,GAAQS,GACR,GAAAT,GAAQU,GACJ,OAAA;AAAA,IAAAE,YACO;AAAA,IAAO,GACfb,GAAMN,SAAN;AAAA,EAAA,GAEK,WAAAY,EACT,4DACAP,GAAUL,KACZ,GACI,IAAAO,GAAQQ,IACR,IAAAR,GAAQO,iBAGd,GACMhB,EAAA,CAAA,IAAAO,GAAAL,OAAAF,OAAAE,GAAAF,EAAA,EAAA,IAAAS,GAAAO,IAAAhB,EAAA,EAAA,IAAAS,GAAAQ,IAAAjB,EAAA,EAAA,IAAAS,GAAAS,GAAAlB,EAAA,EAAA,IAAAS,GAAAU,GAAAnB,EAAA,EAAA,IAAAQ,GAAAN,OAAAF,QAAAe,KAAAA,IAAAf,EAAA,EAAA;AAAA,MAAAsB;AAAA,SAAAtB,EAAA,EAAA,MAAAW,KAAAX,UAAAe,KA/BVO,yCACGX,UAAAA;AAAAA,IAAAA;AAAAA,IAaAI;AAAAA,EAAAA,GAiBO,GACPf,QAAAW,GAAAX,QAAAe,GAAAf,QAAAsB,KAAAA,IAAAtB,EAAA,EAAA,GAhCHsB;AAgCG;"}
@@ -1,4 +1,4 @@
1
- import { c as p, m as y, j as u } from "./index-CHPV5EwG-DecW7_qr.js";
1
+ import { c as p, m as y, j as u } from "./index-CHPV5EwG-BCLAYDCV.js";
2
2
  function $(m) {
3
3
  const t = p.c(11), {
4
4
  text: l,
@@ -26,4 +26,4 @@ function $(m) {
26
26
  export {
27
27
  $ as A
28
28
  };
29
- //# sourceMappingURL=AxisTitle-VFq89Olw.js.map
29
+ //# sourceMappingURL=AxisTitle-DGjX1_2v.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AxisTitle-VFq89Olw.js","sources":["../src/Components/Elements/Axes/AxisTitle.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\n\r\ninterface Props {\r\n text?: string;\r\n y: number;\r\n x: number;\r\n className?: string;\r\n style?: React.CSSProperties;\r\n rotate90?: boolean;\r\n}\r\n\r\nexport function AxisTitle(props: Props) {\r\n const { text, x, y, className, style, rotate90 } = props;\r\n if (!text) return null;\r\n return (\r\n <text\r\n transform={`translate(${x}, ${y})${rotate90 ? ' rotate(-90)' : ''}`}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(style || {}),\r\n }}\r\n className={cn('fill-primary-gray-700 dark:fill-primary-gray-300 text-xs', className)}\r\n >\r\n {text}\r\n </text>\r\n );\r\n}\r\n"],"names":["AxisTitle","props","$","_c","text","x","y","className","style","rotate90","t0","t1","t2","textAnchor","t3","cn","t4","jsx"],"mappings":";AAWO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAAmDR;AACnD,MAAI,CAACG;AAAI,WAAS;AAGH,QAAAM,IAAA,aAAaL,CAAC,KAAKC,CAAC,IAAIG,IAAA,iBAAA,EAA8B;AAAE,MAAAE;AAAA,EAAAT,SAAAM,KAG7DG,IAAAH,KAAA,CAAA,GAAWN,OAAAM,GAAAN,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAU;AAAA,EAAAV,SAAAS,KAFVC,IAAA;AAAA,IAAAC,YACO;AAAA,IAAQ,GAChBF;AAAAA,EAAAA,GACLT,OAAAS,GAAAT,OAAAU,KAAAA,IAAAV,EAAA,CAAA;AAAA,MAAAY;AAAA,EAAAZ,SAAAK,KACUO,IAAAC,EAAG,4DAA4DR,CAAS,GAACL,OAAAK,GAAAL,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAc;AAAA,SAAAd,EAAA,CAAA,MAAAQ,KAAAR,EAAA,CAAA,MAAAU,KAAAV,EAAA,CAAA,MAAAY,KAAAZ,SAAAE,KANtFY,IAAAC,gBAAAA,EAAAA,IAAA,UACa,WAAAP,GACJ,OAAAE,GAII,WAAAE,GAEVV,UAAAA,EAAAA,CACH,GAAOF,OAAAQ,GAAAR,OAAAU,GAAAV,OAAAY,GAAAZ,OAAAE,GAAAF,QAAAc,KAAAA,IAAAd,EAAA,EAAA,GATPc;AASO;"}
1
+ {"version":3,"file":"AxisTitle-DGjX1_2v.js","sources":["../src/Components/Elements/Axes/AxisTitle.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\n\r\ninterface Props {\r\n text?: string;\r\n y: number;\r\n x: number;\r\n className?: string;\r\n style?: React.CSSProperties;\r\n rotate90?: boolean;\r\n}\r\n\r\nexport function AxisTitle(props: Props) {\r\n const { text, x, y, className, style, rotate90 } = props;\r\n if (!text) return null;\r\n return (\r\n <text\r\n transform={`translate(${x}, ${y})${rotate90 ? ' rotate(-90)' : ''}`}\r\n style={{\r\n textAnchor: 'middle',\r\n ...(style || {}),\r\n }}\r\n className={cn('fill-primary-gray-700 dark:fill-primary-gray-300 text-xs', className)}\r\n >\r\n {text}\r\n </text>\r\n );\r\n}\r\n"],"names":["AxisTitle","props","$","_c","text","x","y","className","style","rotate90","t0","t1","t2","textAnchor","t3","cn","t4","jsx"],"mappings":";AAWO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAAmDR;AACnD,MAAI,CAACG;AAAI,WAAS;AAGH,QAAAM,IAAA,aAAaL,CAAC,KAAKC,CAAC,IAAIG,IAAA,iBAAA,EAA8B;AAAE,MAAAE;AAAA,EAAAT,SAAAM,KAG7DG,IAAAH,KAAA,CAAA,GAAWN,OAAAM,GAAAN,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAU;AAAA,EAAAV,SAAAS,KAFVC,IAAA;AAAA,IAAAC,YACO;AAAA,IAAQ,GAChBF;AAAAA,EAAAA,GACLT,OAAAS,GAAAT,OAAAU,KAAAA,IAAAV,EAAA,CAAA;AAAA,MAAAY;AAAA,EAAAZ,SAAAK,KACUO,IAAAC,EAAG,4DAA4DR,CAAS,GAACL,OAAAK,GAAAL,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAc;AAAA,SAAAd,EAAA,CAAA,MAAAQ,KAAAR,EAAA,CAAA,MAAAU,KAAAV,EAAA,CAAA,MAAAY,KAAAZ,SAAAE,KANtFY,IAAAC,gBAAAA,EAAAA,IAAA,UACa,WAAAP,GACJ,OAAAE,GAII,WAAAE,GAEVV,UAAAA,EAAAA,CACH,GAAOF,OAAAQ,GAAAR,OAAAU,GAAAV,OAAAY,GAAAZ,OAAAE,GAAAF,QAAAc,KAAAA,IAAAd,EAAA,EAAA,GATPc;AASO;"}