@undp/data-viz 2.3.10 → 2.3.11
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.
- package/dist/AreaChart.js +16 -16
- package/dist/{Axis-D56Gy0se.js → Axis-RyGdzLrG.js} +2 -2
- package/dist/{Axis-D56Gy0se.js.map → Axis-RyGdzLrG.js.map} +1 -1
- package/dist/{AxisTitle-VFq89Olw.js → AxisTitle-DGjX1_2v.js} +2 -2
- package/dist/{AxisTitle-VFq89Olw.js.map → AxisTitle-DGjX1_2v.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +18 -18
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +13 -13
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +12 -12
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +18 -18
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +15 -15
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.js +12 -12
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +4 -4
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +4 -4
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +7 -7
- package/dist/DataTable.js +4 -4
- package/dist/{DetailsModal-BMCTgVsk.js → DetailsModal-C3qlUyFK.js} +3 -3
- package/dist/{DetailsModal-BMCTgVsk.js.map → DetailsModal-C3qlUyFK.js.map} +1 -1
- package/dist/{DetailsModal-DHttOA80.cjs → DetailsModal-DIRTulvr.cjs} +2 -2
- package/dist/{DetailsModal-DHttOA80.cjs.map → DetailsModal-DIRTulvr.cjs.map} +1 -1
- package/dist/DifferenceLineChart.js +15 -15
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +10 -10
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +13 -13
- package/dist/{DropdownSelect-D8rFbygC.js → DropdownSelect-B2WTeedJ.js} +2 -2
- package/dist/{DropdownSelect-D8rFbygC.js.map → DropdownSelect-B2WTeedJ.js.map} +1 -1
- package/dist/DualAxisLineChart.js +12 -12
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +18 -18
- package/dist/{EmptyState-dScPFkLy.js → EmptyState-D807L58h.js} +4 -4
- package/dist/{EmptyState-dScPFkLy.js.map → EmptyState-D807L58h.js.map} +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.js +3 -3
- package/dist/GeoHubMap.js +4 -4
- package/dist/GeoHubMapWithLayerSelection.js +5 -5
- package/dist/{GraphContainer-CF6ws3pd.js → GraphContainer-DwMxWRCi.js} +2 -2
- package/dist/{GraphContainer-CF6ws3pd.js.map → GraphContainer-DwMxWRCi.js.map} +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-Bw-9MUym.js → GraphEl-CT3xPv2P.js} +5 -5
- package/dist/{GraphEl-Bw-9MUym.js.map → GraphEl-CT3xPv2P.js.map} +1 -1
- package/dist/{GraphEl-DjElfY07.cjs → GraphEl-DvwOOhF1.cjs} +2 -2
- package/dist/{GraphEl-DjElfY07.cjs.map → GraphEl-DvwOOhF1.cjs.map} +1 -1
- package/dist/GraphFooter.js +2 -2
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +6 -6
- package/dist/GriddedGraphsFromConfig.js +2 -2
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +10 -10
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +4 -4
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +15 -15
- package/dist/ImageDownloadButton.js +2 -2
- package/dist/LineChartWithConfidenceInterval.js +15 -15
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-Ch9wvKxF.js → Modal-BV4rkoLM.js} +5 -5
- package/dist/{Modal-Ch9wvKxF.js.map → Modal-BV4rkoLM.js.map} +1 -1
- package/dist/{Modal-CaYa_TLE.cjs → Modal-ZX55hLH-.cjs} +5 -5
- package/dist/{Modal-CaYa_TLE.cjs.map → Modal-ZX55hLH-.cjs.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.js +4 -4
- package/dist/MultiGraphDashboardFromConfig.js +2 -2
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
- package/dist/MultiLineAltChart.js +15 -15
- package/dist/MultiLineChart.js +15 -15
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +12 -12
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
- package/dist/PerformanceIntensiveScrollStory.js +3 -3
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +9 -9
- package/dist/{ReferenceLine-DgtoRgw0.js → ReferenceLine-CNEjAYvv.js} +3 -3
- package/dist/{ReferenceLine-DgtoRgw0.js.map → ReferenceLine-CNEjAYvv.js.map} +1 -1
- package/dist/{RegressionLine-D2aqeBKp.js → RegressionLine-BDrndQxo.js} +4 -4
- package/dist/{RegressionLine-D2aqeBKp.js.map → RegressionLine-BDrndQxo.js.map} +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +9 -9
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +20 -20
- package/dist/ScrollStory.js +3 -3
- package/dist/SimpleLineChart.js +16 -16
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +6 -6
- package/dist/SingleGraphDashboardFromConfig.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +11 -11
- package/dist/{Source-Cu9OHOBj.js → Source-eILIr4Ov.js} +5 -5
- package/dist/{Source-Cu9OHOBj.js.map → Source-eILIr4Ov.js.map} +1 -1
- package/dist/Source.js +3 -3
- package/dist/SparkLine.js +5 -5
- package/dist/{Spinner--r2RrJV8.js → Spinner-CtJETd5V.js} +2 -2
- package/dist/{Spinner--r2RrJV8.js.map → Spinner-CtJETd5V.js.map} +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +9 -9
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +7 -7
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
- package/dist/{Tooltip-BRnAz2Gv.js → Tooltip-CohiIbLZ.js} +2 -2
- package/dist/{Tooltip-BRnAz2Gv.js.map → Tooltip-CohiIbLZ.js.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +9 -9
- package/dist/{Typography-CdMGooqp.js → Typography-HicNIA61.js} +2 -2
- package/dist/{Typography-CdMGooqp.js.map → Typography-HicNIA61.js.map} +1 -1
- package/dist/UnitChart.js +6 -6
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +14 -14
- package/dist/{XAxesLabels-rhK7lRjO.js → XAxesLabels-IwjMJkYS.js} +3 -3
- package/dist/{XAxesLabels-rhK7lRjO.js.map → XAxesLabels-IwjMJkYS.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CVZkZkpS.js → XTicksAndGridLines-BDmF9etl.js} +2 -2
- package/dist/{XTicksAndGridLines-CVZkZkpS.js.map → XTicksAndGridLines-BDmF9etl.js.map} +1 -1
- package/dist/{YAxesLabels-QICWVsHf.js → YAxesLabels-DoGvgHdw.js} +3 -3
- package/dist/{YAxesLabels-QICWVsHf.js.map → YAxesLabels-DoGvgHdw.js.map} +1 -1
- package/dist/{YTicksAndGridLines-GnXnSRF2.js → YTicksAndGridLines-C3GW1xFG.js} +2 -2
- package/dist/{YTicksAndGridLines-GnXnSRF2.js.map → YTicksAndGridLines-C3GW1xFG.js.map} +1 -1
- package/dist/{checkIfMultiple-D9fVkeOq.js → checkIfMultiple-B97uOUVq.js} +5 -5
- package/dist/{checkIfMultiple-D9fVkeOq.js.map → checkIfMultiple-B97uOUVq.js.map} +1 -1
- package/dist/{checkIfMultiple-DxnGtm3t.cjs → checkIfMultiple-TOaaUwS7.cjs} +2 -2
- package/dist/{checkIfMultiple-DxnGtm3t.cjs.map → checkIfMultiple-TOaaUwS7.cjs.map} +1 -1
- package/dist/{customArea-ASDaSE4u.js → customArea-Cc2whe6P.js} +3 -3
- package/dist/{customArea-ASDaSE4u.js.map → customArea-Cc2whe6P.js.map} +1 -1
- package/dist/{getSliderMarks-Cvg8zHBU.js → getSliderMarks-vXsR8RrR.js} +2 -2
- package/dist/{getSliderMarks-Cvg8zHBU.js.map → getSliderMarks-vXsR8RrR.js.map} +1 -1
- package/dist/{index-BzNfurbO.js → index-B5ggV1vg.js} +9 -9
- package/dist/{index-BzNfurbO.js.map → index-B5ggV1vg.js.map} +1 -1
- package/dist/{index-CXobQn-E.cjs → index-BDR7MlMo.cjs} +2 -2
- package/dist/{index-CXobQn-E.cjs.map → index-BDR7MlMo.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-DecW7_qr.js → index-CHPV5EwG-BCLAYDCV.js} +3 -3
- package/dist/{index-CHPV5EwG-DecW7_qr.js.map → index-CHPV5EwG-BCLAYDCV.js.map} +1 -1
- package/dist/{index-Dp_SfsUA.js → index-CKpKc9DR.js} +3 -3
- package/dist/{index-Dp_SfsUA.js.map → index-CKpKc9DR.js.map} +1 -1
- package/dist/{index-B-4y_iGB.js → index-CZ0elhKR.js} +4 -4
- package/dist/{index-B-4y_iGB.js.map → index-CZ0elhKR.js.map} +1 -1
- package/dist/{index-CtMBjvtq.js → index-Co3YGYe1.js} +3 -3
- package/dist/{index-CtMBjvtq.js.map → index-Co3YGYe1.js.map} +1 -1
- package/dist/{index-Cw8sCyo_-n4AacHGk.js → index-D6CYcVc7-BOa7Dpvf.js} +5 -5
- package/dist/{index-Cw8sCyo_-n4AacHGk.js.map → index-D6CYcVc7-BOa7Dpvf.js.map} +1 -1
- package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +2 -0
- package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +1 -0
- package/dist/{index-CSiFiXPj.js → index-D_dtv_T9.js} +3 -3
- package/dist/{index-CSiFiXPj.js.map → index-D_dtv_T9.js.map} +1 -1
- package/dist/{index-Dzc_aaI9-CG2Ar7l1.js → index-DoS4bGNa-Bgab95kx.js} +2 -2
- package/dist/{index-Dzc_aaI9-CG2Ar7l1.js.map → index-DoS4bGNa-Bgab95kx.js.map} +1 -1
- package/dist/{index-Dzc_aaI9-C3DbPpy3.cjs → index-DoS4bGNa-C3DbPpy3.cjs} +1 -1
- package/dist/{index-Dzc_aaI9-C3DbPpy3.cjs.map → index-DoS4bGNa-C3DbPpy3.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{linear-CalFSAaO.js → linear-DNXM5Pdl.js} +3 -3
- package/dist/{linear-CalFSAaO.js.map → linear-DNXM5Pdl.js.map} +1 -1
- package/dist/{pow-CaIrlM4J.js → pow-BXYLJHCq.js} +2 -2
- package/dist/{pow-CaIrlM4J.js.map → pow-BXYLJHCq.js.map} +1 -1
- package/dist/{proxy-DRuSUlPL.js → proxy--_f6k3NR.js} +2 -2
- package/dist/{proxy-DRuSUlPL.js.map → proxy--_f6k3NR.js.map} +1 -1
- package/dist/{string-C_xJ4Wg4.js → string-CbaFIsiV.js} +4 -4
- package/dist/{string-C_xJ4Wg4.js.map → string-CbaFIsiV.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{time-CAtex-RV.js → time-vyz6Y89P.js} +2 -2
- package/dist/{time-CAtex-RV.js.map → time-vyz6Y89P.js.map} +1 -1
- package/dist/{use-in-view-Dl5L8LtP.js → use-in-view-DqvKAveg.js} +2 -2
- package/dist/{use-in-view-Dl5L8LtP.js.map → use-in-view-DqvKAveg.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-Cw8sCyo_-CEcCMKUi.cjs +0 -2
- package/dist/index-Cw8sCyo_-CEcCMKUi.cjs.map +0 -1
package/dist/MultiLineChart.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { c as Ee, j as s, m as He } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as Ee, j as s, m as He } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useRef as Ie, useState as le, useEffect as Xe } from "react";
|
|
3
3
|
import { p as j, f as Ue } from "./parse-Dv4of-PN.js";
|
|
4
4
|
import { o as qe } from "./index-BZQYSqar.js";
|
|
5
5
|
import { n as Ge } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
|
-
import { T as Je } from "./Tooltip-
|
|
6
|
+
import { T as Je } from "./Tooltip-CohiIbLZ.js";
|
|
7
7
|
import { c as b } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
|
-
import { C as Ke, g as Qe, A as Ze } from "./customArea-
|
|
9
|
-
import { A as _e } from "./AxisTitle-
|
|
10
|
-
import { A as ti } from "./Axis-
|
|
11
|
-
import { X as ei } from "./XTicksAndGridLines-
|
|
12
|
-
import { a as ii } from "./ReferenceLine-
|
|
13
|
-
import { Y as oi } from "./YTicksAndGridLines-
|
|
14
|
-
import { H as ni } from "./index-
|
|
15
|
-
import { t as si } from "./time-
|
|
16
|
-
import { a as ai } from "./linear-
|
|
8
|
+
import { C as Ke, g as Qe, A as Ze } from "./customArea-Cc2whe6P.js";
|
|
9
|
+
import { A as _e } from "./AxisTitle-DGjX1_2v.js";
|
|
10
|
+
import { A as ti } from "./Axis-RyGdzLrG.js";
|
|
11
|
+
import { X as ei } from "./XTicksAndGridLines-BDmF9etl.js";
|
|
12
|
+
import { a as ii } from "./ReferenceLine-CNEjAYvv.js";
|
|
13
|
+
import { Y as oi } from "./YTicksAndGridLines-C3GW1xFG.js";
|
|
14
|
+
import { H as ni } from "./index-D_dtv_T9.js";
|
|
15
|
+
import { t as si } from "./time-vyz6Y89P.js";
|
|
16
|
+
import { a as ai } from "./linear-DNXM5Pdl.js";
|
|
17
17
|
import { l as ri, c as li } from "./line-DFlZsxI1.js";
|
|
18
18
|
import { c as ci, s as mi, a as fi, m as di } from "./step-BrDul-H4.js";
|
|
19
19
|
import { s as ui } from "./select-DKy99ogv.js";
|
|
20
|
-
import { m as zt } from "./proxy
|
|
20
|
+
import { m as zt } from "./proxy--_f6k3NR.js";
|
|
21
21
|
import { a as hi } from "./init-BhZylTFx.js";
|
|
22
22
|
import { p as pi } from "./pointer-CWRWOsrb.js";
|
|
23
|
-
import { u as gi } from "./use-in-view-
|
|
23
|
+
import { u as gi } from "./use-in-view-DqvKAveg.js";
|
|
24
24
|
import { GraphFooter as xi } from "./GraphFooter.js";
|
|
25
25
|
import { GraphHeader as yi } from "./GraphHeader.js";
|
|
26
26
|
import { ColorLegend as vi } from "./ColorLegend.js";
|
|
27
27
|
import { Colors as wi } from "./Colors.js";
|
|
28
|
-
import { E as Ci } from "./EmptyState-
|
|
28
|
+
import { E as Ci } from "./EmptyState-D807L58h.js";
|
|
29
29
|
import { g as Ai } from "./generateRandomString-za3IQGfQ.js";
|
|
30
|
-
import { a as bi, G as Oi } from "./GraphContainer-
|
|
30
|
+
import { a as bi, G as Oi } from "./GraphContainer-DwMxWRCi.js";
|
|
31
31
|
import { g as Li } from "./getNoOfTicks-CpmRjcRF.js";
|
|
32
32
|
function ji(i) {
|
|
33
33
|
const t = Ee.c(153), {
|
package/dist/ParetoChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Jt_tmhxS.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DHttOA80.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-N1eHt3vq.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,jt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function li(e){return e.data}exports.ParetoChart=ei;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Jt_tmhxS.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DIRTulvr.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-N1eHt3vq.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,jt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function li(e){return e.data}exports.ParetoChart=ei;
|
|
2
2
|
//# sourceMappingURL=ParetoChart.cjs.map
|
package/dist/ParetoChart.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as de, j as s, m as ne } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as de, j as s, m as ne } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useRef as ue, useState as Kt, useEffect as he } from "react";
|
|
3
3
|
import { i as xe } from "./index-Bwrro8-q.js";
|
|
4
4
|
import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
|
-
import { T as ge } from "./Tooltip-
|
|
5
|
+
import { T as ge } from "./Tooltip-CohiIbLZ.js";
|
|
6
6
|
import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
-
import { A as ce } from "./Axis-
|
|
8
|
-
import { A as fe } from "./AxisTitle-
|
|
9
|
-
import { X as ye } from "./XAxesLabels-
|
|
10
|
-
import { D as be } from "./DetailsModal-
|
|
7
|
+
import { A as ce } from "./Axis-RyGdzLrG.js";
|
|
8
|
+
import { A as fe } from "./AxisTitle-DGjX1_2v.js";
|
|
9
|
+
import { X as ye } from "./XAxesLabels-IwjMJkYS.js";
|
|
10
|
+
import { D as be } from "./DetailsModal-C3qlUyFK.js";
|
|
11
11
|
import { b as ve } from "./band-DYty33LD.js";
|
|
12
|
-
import { a as pe } from "./linear-
|
|
12
|
+
import { a as pe } from "./linear-DNXM5Pdl.js";
|
|
13
13
|
import { l as Ae, c as we } from "./line-DFlZsxI1.js";
|
|
14
14
|
import { c as je, s as Me, a as Ce, m as ke } from "./step-BrDul-H4.js";
|
|
15
|
-
import { m as Ht } from "./proxy
|
|
16
|
-
import { u as Le } from "./use-in-view-
|
|
17
|
-
import { A as $e } from "./index-
|
|
15
|
+
import { m as Ht } from "./proxy--_f6k3NR.js";
|
|
16
|
+
import { u as Le } from "./use-in-view-DqvKAveg.js";
|
|
17
|
+
import { A as $e } from "./index-Co3YGYe1.js";
|
|
18
18
|
import { GraphFooter as Ne } from "./GraphFooter.js";
|
|
19
19
|
import { GraphHeader as Se } from "./GraphHeader.js";
|
|
20
20
|
import { ColorLegend as Oe } from "./ColorLegend.js";
|
|
21
21
|
import { Colors as le } from "./Colors.js";
|
|
22
|
-
import { E as Ve } from "./EmptyState-
|
|
23
|
-
import { a as De, G as Te } from "./GraphContainer-
|
|
22
|
+
import { E as Ve } from "./EmptyState-D807L58h.js";
|
|
23
|
+
import { a as De, G as Te } from "./GraphContainer-DwMxWRCi.js";
|
|
24
24
|
function Ie(e) {
|
|
25
25
|
const t = de.c(157), {
|
|
26
26
|
data: p,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),o=require("react"),U=require("./index-CyZ1lmi_.cjs"),T=require("./index-BS2TADPj.cjs"),b=require("./DropdownSelect-NNpOs7DX.cjs"),g=require("./checkIfMultiple-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),o=require("react"),U=require("./index-CyZ1lmi_.cjs"),T=require("./index-BS2TADPj.cjs"),b=require("./DropdownSelect-NNpOs7DX.cjs"),g=require("./checkIfMultiple-TOaaUwS7.cjs"),z=require("./SingleGraphDashboard.cjs"),I=require("./SingleGraphDashboardThreeDGraphs.cjs"),J=require("./SingleGraphDashboardGeoHubMaps.cjs"),m=require("./fetchAndParseData-QTF6tjij.cjs"),B=require("./getUniqValue-NX8DgwND.cjs"),K=require("./GraphHeader.cjs"),H=require("./filterData-T5DQBE9b.cjs"),M=require("./transformDataForSelect-YmStusCI.cjs"),Q=require("./GraphContainer-B1EDxJ0S.cjs"),w=S=>S.map(t=>t.columnWidth||1).reduce((t,f)=>t+f,0),X=["barChart","choroplethMap","biVariateChoroplethMap","circlePacking","treeMap"];function Y(S){const{dashboardID:C,dashboardLayout:n,dataSettings:t,filters:f,debugMode:u,theme:x="light",readableHeader:E,dataFilters:V,noOfFiltersPerRow:D=4,filterPosition:R,uiMode:c="normal",graphStyles:y,graphClassNames:j}=S,[v,F]=o.useState(void 0),[d,A]=o.useState(void 0),[l,G]=o.useState([]),N=["threeDGlobe"],$=["geoHubCompareMap","geoHubMap","geoHubMapWithLayerSelection"],O={ignoreCase:!0,ignoreAccents:!0,trim:!0},q=o.useEffectEvent(()=>{const a=(f||[]).map(s=>({filter:s.column,label:s.label||`Filter by ${s.column}`,singleSelect:s.singleSelect,clearable:s.clearable,defaultValue:M.transformDefaultValue(s.defaultValue),value:M.transformDefaultValue(s.defaultValue),availableValues:B.getUniqValue(d,s.column).filter(e=>!s.excludeValues?.includes(`${e}`)).map(e=>({value:e,label:e})),allowSelectAll:s.allowSelectAll,width:s.width}));G(a)}),P=o.useEffectEvent(()=>{if(!d||l.length===0)F(d);else{const a=d.filter(s=>l.every(e=>e.value&&T.flattenDeep([e.value]).length>0?U.intersection(T.flattenDeep([s[e.filter]]),T.flattenDeep([e.value]).map(r=>r.value)).length>0:!0));F(a)}});o.useEffect(()=>{P()},[l,d]),o.useEffect(()=>{(async()=>{try{const s=t.dataURL?typeof t.dataURL=="string"?t.fileType==="json"?await m.fetchAndParseJSON(t.dataURL,t.columnsToArray,t.dataTransformation,u):t.fileType==="api"?await m.fetchAndTransformDataFromAPI(t.dataURL,t.apiHeaders,t.columnsToArray,t.dataTransformation,u):await m.fetchAndParseCSV(t.dataURL,t.dataTransformation,t.columnsToArray,u,t.delimiter,!0):await m.fetchAndParseMultipleDataSources(t.dataURL,t.idColumnTitle):await m.transformColumnsToArray(t.data,t.columnsToArray);A(s)}catch(s){console.error("Data fetching error:",s)}})(),q()},[t,u]),o.useEffect(()=>{q()},[f,d]);const p=(a,s)=>{G(e=>e.map(r=>r.filter===a?{...r,value:s}:r))};return i.jsxRuntimeExports.jsxs(Q.GraphContainer,{id:C,"aria-label":"This is a dashboard",backgroundColor:n.backgroundColor??!1,theme:x||"light",language:n.language||"en",padding:n.padding,children:[n.title||n.description?i.jsxRuntimeExports.jsx(K.GraphHeader,{graphTitle:n.title,graphDescription:n.description,isDashboard:!0}):null,i.jsxRuntimeExports.jsxs("div",{className:"flex gap-4 flex-wrap",children:[l.length!==0?i.jsxRuntimeExports.jsx("div",{className:"flex-grow flex-shrink-0",style:{width:R==="side"?"280px":"100%"},children:i.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-start gap-4 w-full sticky top-4",children:l?.map((a,s)=>i.jsxRuntimeExports.jsxs("div",{style:{width:a.width||`calc(${100/D}% - ${(D-1)/D}rem)`,flexGrow:a.width?0:1,flexShrink:a.ui!=="radio"||a.width?0:1,minWidth:"240px"},children:[i.jsxRuntimeExports.jsx(g.b,{className:"mb-2",children:a.label}),a.singleSelect?a.ui!=="radio"?i.jsxRuntimeExports.jsx(b.ja,{options:a.availableValues,variant:c,isClearable:a.clearable===void 0?!0:a.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:b.Du(O),onChange:e=>{p(a.filter,e)},value:a.value,defaultValue:a.defaultValue}):i.jsxRuntimeExports.jsx(g.ye,{variant:c,defaultValue:a.defaultValue.value,onValueChange:e=>{p(a.filter,a.availableValues.filter(r=>r.value===e))},children:a.availableValues.map((e,r)=>i.jsxRuntimeExports.jsx(g.he,{label:`${e.label}`,value:`${e.value}`},r))}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[a.ui!=="radio"?i.jsxRuntimeExports.jsx(b.ja,{options:a.availableValues,variant:c,size:"sm",isMulti:!0,isClearable:a.clearable===void 0?!0:a.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:b.Du(O),onChange:e=>{p(a.filter,e)},value:a.value,defaultValue:a.defaultValue}):i.jsxRuntimeExports.jsx(g.$,{variant:c,defaultValue:a.defaultValue?a.defaultValue.map(e=>`${e.value}`):[],value:a.value?a.value.map(e=>`${e.value}`):void 0,onValueChange:e=>{p(a.filter,a.availableValues.filter(r=>e.indexOf(`${r.value}`)!==-1))},children:a.availableValues.map((e,r)=>i.jsxRuntimeExports.jsx(g.P,{label:`${e.label}`,value:`${e.value}`},r))}),a.allowSelectAll?i.jsxRuntimeExports.jsx("button",{type:"button",className:"bg-transparent border-0 p-0 mt-2 cursor-pointer text-primary-blue-600 dark:text-primary-blue-400",onClick:()=>{p(a.filter,a.availableValues)},children:"Select all options"}):null]})]},s))})}):null,i.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-4 flex-grow flex-shrink-0 min-w-[280px]",style:{width:R==="side"?"calc(100% - 280px - 1rem)":"100%"},children:n.rows.map((a,s)=>i.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-stretch gap-4 w-full h-auto",style:{minHeight:`${a.height||0}px`},children:a.columns.map((e,r)=>i.jsxRuntimeExports.jsx("div",{className:"flex bg-transparent grow min-w-60",style:{width:`calc(${100*(e.columnWidth||1)/w(a.columns)}% - ${(w(a.columns)-(e.columnWidth||1))/w(a.columns)}rem)`,minHeight:"inherit"},children:N.includes(e.graphType)?i.jsxRuntimeExports.jsx(I.SingleGraphDashboardThreeDGraphs,{graphType:e.graphType,dataFilters:e.dataFilters,uiMode:c,graphSettings:{...e.settings||{},width:void 0,height:void 0,minHeight:void 0,relativeHeight:void 0,resetSelectionOnDoubleClick:e.attachedFilter?!1:e.settings?.resetSelectionOnDoubleClick,styles:e.settings?.styles||y,classNames:e.settings?.classNames||j,radius:e.graphType==="donutChart"?void 0:e.settings?.radius,size:e.graphType==="unitChart"?e.settings?.size:void 0,language:e.settings?.language||n.language,theme:e.settings?.theme||x},dataSettings:{data:v?H.filterData(v,V||[]):void 0},dataTransform:e.dataTransform,dataSelectionOptions:e.dataSelectionOptions,advancedDataSelectionOptions:e.advancedDataSelectionOptions,graphDataConfiguration:e.graphDataConfiguration,debugMode:u,readableHeader:E||[]}):$.includes(e.graphType)?i.jsxRuntimeExports.jsx(J.SingleGraphDashboardGeoHubMaps,{graphType:e.graphType,uiMode:c,graphSettings:{...e.settings||{},width:void 0,height:void 0,resetSelectionOnDoubleClick:e.attachedFilter?!1:e.settings?.resetSelectionOnDoubleClick,styles:e.settings?.styles||y,classNames:e.settings?.classNames||j,radius:e.graphType==="donutChart"?void 0:e.settings?.radius,size:e.graphType==="unitChart"?e.settings?.size:void 0,language:e.settings?.language||n.language,theme:e.settings?.theme||x},debugMode:u}):i.jsxRuntimeExports.jsx(z.SingleGraphDashboard,{graphType:e.graphType,dataFilters:e.dataFilters,uiMode:c,graphSettings:{...e.settings||{},width:void 0,height:void 0,resetSelectionOnDoubleClick:e.attachedFilter?!1:e.settings?.resetSelectionOnDoubleClick,styles:e.settings?.styles||y,classNames:e.settings?.classNames||j,radius:e.graphType==="donutChart"?void 0:e.settings?.radius,size:e.graphType==="unitChart"?e.settings?.size:void 0,language:e.settings?.language||n.language,theme:e.settings?.theme||x},dataSettings:{data:v?H.filterData(v,V||[]):void 0},updateFilters:e.attachedFilter&&X.indexOf(e.graphType)!==-1&&l.findIndex(h=>h.filter===e.attachedFilter)!==-1?h=>{const k=l.findIndex(L=>L.filter===e.attachedFilter),W=h?l[k].singleSelect?{value:h,label:h}:[{value:h,label:h}]:void 0;p(e.attachedFilter,W)}:void 0,dataTransform:e.dataTransform,dataSelectionOptions:e.dataSelectionOptions,advancedDataSelectionOptions:e.advancedDataSelectionOptions,graphDataConfiguration:e.graphDataConfiguration,debugMode:u,readableHeader:E||[]})},r))},s))})]})]})}exports.PerformanceIntensiveMultiGraphDashboard=Y;
|
|
2
2
|
//# sourceMappingURL=PerformanceIntensiveMultiGraphDashboard.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as s } from "./index-CHPV5EwG-
|
|
1
|
+
import { j as s } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useState as y, useEffectEvent as $, useEffect as S } from "react";
|
|
3
3
|
import { i as I } from "./index-BuwmuDFJ.js";
|
|
4
4
|
import { f as D } from "./index-EArKRVKg.js";
|
|
5
|
-
import { j as H, D as G } from "./DropdownSelect-
|
|
6
|
-
import { b as q, y as J, h as B, $ as K, P as Q } from "./checkIfMultiple-
|
|
5
|
+
import { j as H, D as G } from "./DropdownSelect-B2WTeedJ.js";
|
|
6
|
+
import { b as q, y as J, h as B, $ as K, P as Q } from "./checkIfMultiple-B97uOUVq.js";
|
|
7
7
|
import { SingleGraphDashboard as X } from "./SingleGraphDashboard.js";
|
|
8
8
|
import { SingleGraphDashboardThreeDGraphs as Y } from "./SingleGraphDashboardThreeDGraphs.js";
|
|
9
9
|
import { SingleGraphDashboardGeoHubMaps as Z } from "./SingleGraphDashboardGeoHubMaps.js";
|
|
@@ -12,7 +12,7 @@ import { g as sa } from "./getUniqValue-DsqSii6M.js";
|
|
|
12
12
|
import { GraphHeader as ra } from "./GraphHeader.js";
|
|
13
13
|
import { f as M } from "./filterData-DsAiFzKY.js";
|
|
14
14
|
import { t as k } from "./transformDataForSelect-D8AuvYdf.js";
|
|
15
|
-
import { G as la } from "./GraphContainer-
|
|
15
|
+
import { G as la } from "./GraphContainer-DwMxWRCi.js";
|
|
16
16
|
const T = (f) => f.map((t) => t.columnWidth || 1).reduce((t, p) => t + p, 0), na = ["barChart", "choroplethMap", "biVariateChoroplethMap", "circlePacking", "treeMap"];
|
|
17
17
|
function Ta(f) {
|
|
18
18
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as h, j as d } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as h, j as d } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useState as m, useEffect as c } from "react";
|
|
3
|
-
import { w as g } from "./Spinner
|
|
3
|
+
import { w as g } from "./Spinner-CtJETd5V.js";
|
|
4
4
|
import { PerformanceIntensiveMultiGraphDashboard as u } from "./PerformanceIntensiveMultiGraphDashboard.js";
|
|
5
5
|
import { f as p } from "./fetchAndParseData-BAXhgTDM.js";
|
|
6
6
|
function F(n) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as k, j as c } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as k, j as c } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useState as A, useRef as P } from "react";
|
|
3
3
|
import { SingleGraphDashboard as R } from "./SingleGraphDashboard.js";
|
|
4
4
|
import { SingleGraphDashboardThreeDGraphs as V } from "./SingleGraphDashboardThreeDGraphs.js";
|
|
5
5
|
import { SingleGraphDashboardGeoHubMaps as W } from "./SingleGraphDashboardGeoHubMaps.js";
|
|
6
|
-
import { m as z } from "./proxy
|
|
7
|
-
import { u as L } from "./use-in-view-
|
|
6
|
+
import { m as z } from "./proxy--_f6k3NR.js";
|
|
7
|
+
import { u as L } from "./use-in-view-DqvKAveg.js";
|
|
8
8
|
function Y(G) {
|
|
9
9
|
const t = k.c(27), {
|
|
10
10
|
chapters: a,
|
package/dist/RadarChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("react"),Ht=require("./index-DQA8q5sC.cjs"),Wt=require("./Tooltip-BLa2EfMs.cjs"),N=require("./Colors.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Bt=require("./DetailsModal-DHttOA80.cjs"),Nt=require("./linear-CgUCbw9F.cjs"),Vt=require("./line-DaEMhXmx.cjs"),bt=require("./proxy-C4-uo6nS.cjs"),Xt=require("./use-in-view-C3o_ntMv.cjs"),Yt=require("./index-CoobIWNj.cjs"),zt=require("./GraphFooter.cjs"),Jt=require("./GraphHeader.cjs"),Kt=require("./EmptyState-N1eHt3vq.cjs"),Qt=require("./ColorLegendWithMouseOver.cjs"),St=require("./uniqBy-O05lp2S5.cjs"),At=require("./GraphContainer-B1EDxJ0S.cjs");var Zt=Dt(Vt.curveLinear);function qt(e){this._curve=e}qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Dt(e){function t(o){return new qt(e(o))}return t._curve=e,t}function te(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(o){return arguments.length?t(Dt(o)):t()._curve},e}function ee(){return te(Vt.line().curve(Zt))}function wt(){}function Ot(e,t,o){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-o),e._x2,e._y2)}function Lt(e,t){this._context=e,this._k=(1-t)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function o(c){return new Lt(c,t)}return o.tension=function(c){return e(+c)},o})(0);function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ie=(function e(t){function o(c){return new Tt(c,t)}return o.tension=function(c){return e(+c)},o})(0);function $t(e){this._context=e}$t.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ne(e){return new $t(e)}function oe(e){const t=n.compilerRuntimeExports.c(106),{data:o,radius:c,lineColors:r,tooltip:H,onSeriesMouseOver:W,onSeriesMouseClick:p,colorDomain:g,detailsOnClick:R,styles:u,classNames:a,selectedColor:S,axisLabels:J,strokeWidth:K,showValues:mt,showDots:ft,rightMargin:Q,topMargin:Z,bottomMargin:B,leftMargin:X,curveType:jt,noOfTicks:dt,minValue:j,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:q,animate:h,dimmedOpacity:y,precision:et,customLayers:k}=e,kt=C.useRef(null);let M;t[0]!==h.amount||t[1]!==h.once?(M={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=M):M=t[2];const f=Xt.useInView(kt,M),gt=jt==="linear"?ne:ie;let it;t[3]!==B||t[4]!==X||t[5]!==Q||t[6]!==Z?(it={top:Z,bottom:B,left:X,right:Q},t[3]=B,t[4]=X,t[5]=Q,t[6]=Z,t[7]=it):it=t[7];const D=it,v=Math.min((2*c-X-Q)/2,(2*c-Z-B)/2),[_,yt]=C.useState(void 0),[I,_t]=C.useState(void 0),[nt,Mt]=C.useState(void 0),[Y,vt]=C.useState(void 0);let L,T,w,$,F,G,E,O,s,P,ot,U,st,rt;if(t[8]!==h.duration||t[9]!==J||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==g||t[15]!==gt||t[16]!==k||t[17]!==o||t[18]!==R||t[19]!==y||t[20]!==tt||t[21]!==q||t[22]!==f||t[23]!==r||t[24]!==D.left||t[25]!==D.top||t[26]!==A||t[27]!==j||t[28]!==I||t[29]!==_||t[30]!==dt||t[31]!==p||t[32]!==W||t[33]!==et||t[34]!==c||t[35]!==v||t[36]!==V||t[37]!==S||t[38]!==ft||t[39]!==mt||t[40]!==K||t[41]!==u?.graphObjectValues||t[42]!==u?.xAxis?.axis||t[43]!==u?.xAxis?.gridLines||t[44]!==u?.xAxis?.labels){const l=Nt.linear().domain([0,o[0].values.length]).range([0,2*Math.PI]);let Ct;t[59]!==o||t[60]!==A?(Ct=z.checkIfNullOrUndefined(A)?Math.max(...o.map(be))<0?0:Math.max(...o.map(Me)):A,t[59]=o,t[60]=A,t[61]=Ct):Ct=t[61];const Ft=Ct;let Rt;t[62]!==o||t[63]!==j?(Rt=z.checkIfNullOrUndefined(j)?Math.min(...o.map(ye))>=0?0:Math.min(...o.map(de)):j,t[62]=o,t[63]=j,t[64]=Rt):Rt=t[64];const Gt=Rt,b=Nt.linear().domain([Gt,Ft]).range([0,v]).nice(),Ut=b.ticks(dt),It=ee().radius(i=>b(i)).angle((i,x)=>l(x)).curve(gt);T=bt.motion.svg,st=`${c*2}px`,rt=`${c*2}px`,w=`0 0 ${c*2} ${c*2}`,$="ltr",F=kt,G="mx-auto",ot=`translate(${D.left},${D.top})`,t[65]!==k?(U=k.filter(fe).map(me),t[65]=k,t[66]=U):U=t[66],O=`translate(${v},${v})`,s=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),P=Ut.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:It(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*b(i)>-1e-4?Math.sin(-Math.PI/2)*b(i)-7:Math.sin(-Math.PI/2)*b(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:Pt.numberFormattingFunction(i,"NA",et)})})})]},x)),L=Yt.AnimatePresence,E=o.map((i,x)=>n.jsxRuntimeExports.jsxs(bt.motion.g,{variants:{initial:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:y:1,transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{yt(i),vt(m.clientY),Mt(m.clientX),W?.(i)},onMouseMove:m=>{yt(i),vt(m.clientY),Mt(m.clientX)},onMouseLeave:()=>{yt(void 0),Mt(void 0),vt(void 0),W?.(void 0)},onClick:()=>{(p||R)&&(Ht.isEqual(I,i)&&V?(_t(void 0),p?.(void 0)):(_t(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(bt.motion.path,{d:It(i.values)||"",variants:{initial:{d:It(i.values.map(pe))||"",stroke:o.filter(xe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?o.filter(he).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K},whileInView:{d:It(i.values)||"",transition:{duration:h.duration},stroke:o.filter(ue).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?o.filter(ce).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,d)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ft?n.jsxRuntimeExports.jsx(bt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:o.filter(le).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray},whileInView:{cx:Math.cos(l(d)-Math.PI/2)*b(m),cy:Math.sin(l(d)-Math.PI/2)*b(m),opacity:1,transition:{duration:h.duration},fill:o.filter(ae).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,mt?n.jsxRuntimeExports.jsx(bt.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(d)-Math.PI/2)<0?10:(Math.sin(l(d)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(d)-Math.PI/2)*(b(m)+6),y:Math.sin(l(d)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(d)-Math.PI/2)*(b(m)+6),y:Math.sin(l(d)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Pt.numberFormattingFunction(m,"NA",et)}):null]})},d))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=g,t[15]=gt,t[16]=k,t[17]=o,t[18]=R,t[19]=y,t[20]=tt,t[21]=q,t[22]=f,t[23]=r,t[24]=D.left,t[25]=D.top,t[26]=A,t[27]=j,t[28]=I,t[29]=_,t[30]=dt,t[31]=p,t[32]=W,t[33]=et,t[34]=c,t[35]=v,t[36]=V,t[37]=S,t[38]=ft,t[39]=mt,t[40]=K,t[41]=u?.graphObjectValues,t[42]=u?.xAxis?.axis,t[43]=u?.xAxis?.gridLines,t[44]=u?.xAxis?.labels,t[45]=L,t[46]=T,t[47]=w,t[48]=$,t[49]=F,t[50]=G,t[51]=E,t[52]=O,t[53]=s,t[54]=P,t[55]=ot,t[56]=U,t[57]=st,t[58]=rt}else L=t[45],T=t[46],w=t[47],$=t[48],F=t[49],G=t[50],E=t[51],O=t[52],s=t[53],P=t[54],ot=t[55],U=t[56],st=t[57],rt=t[58];let at;t[67]!==L||t[68]!==E?(at=n.jsxRuntimeExports.jsx(L,{children:E}),t[67]=L,t[68]=E,t[69]=at):at=t[69];let lt;t[70]!==at||t[71]!==O||t[72]!==s||t[73]!==P?(lt=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[s,P,at]}),t[70]=at,t[71]=O,t[72]=s,t[73]=P,t[74]=lt):lt=t[74];let ct;t[75]!==k?(ct=k.filter(re).map(se),t[75]=k,t[76]=ct):ct=t[76];let ut;t[77]!==lt||t[78]!==ct||t[79]!==ot||t[80]!==U?(ut=n.jsxRuntimeExports.jsxs("g",{transform:ot,children:[U,lt,ct]}),t[77]=lt,t[78]=ct,t[79]=ot,t[80]=U,t[81]=ut):ut=t[81];let ht;t[82]!==T||t[83]!==w||t[84]!==$||t[85]!==F||t[86]!==G||t[87]!==ut||t[88]!==st||t[89]!==rt?(ht=n.jsxRuntimeExports.jsx(T,{width:st,height:rt,viewBox:w,direction:$,ref:F,className:G,children:ut}),t[82]=T,t[83]=w,t[84]=$,t[85]=F,t[86]=G,t[87]=ut,t[88]=st,t[89]=rt,t[90]=ht):ht=t[90];let xt;t[91]!==a?.tooltip||t[92]!==nt||t[93]!==Y||t[94]!==_||t[95]!==u?.tooltip||t[96]!==H?(xt=_&&H&&nt&&Y?n.jsxRuntimeExports.jsx(Wt.Tooltip,{data:_,body:H,xPos:nt,yPos:Y,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[91]=a?.tooltip,t[92]=nt,t[93]=Y,t[94]=_,t[95]=u?.tooltip,t[96]=H,t[97]=xt):xt=t[97];let pt;t[98]!==a?.modal||t[99]!==R||t[100]!==I?(pt=R&&I!==void 0?n.jsxRuntimeExports.jsx(Bt.DetailsModal,{body:R,data:I,setData:_t,className:a?.modal}):null,t[98]=a?.modal,t[99]=R,t[100]=I,t[101]=pt):pt=t[101];let Et;return t[102]!==ht||t[103]!==xt||t[104]!==pt?(Et=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ht,xt,pt]}),t[102]=ht,t[103]=xt,t[104]=pt,t[105]=Et):Et=t[105],Et}function se(e){return e.layer}function re(e){return e.position==="after"}function ae(e){return e.color}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return 0}function me(e){return e.layer}function fe(e){return e.position==="before"}function de(e){return Math.min(...e.values.filter(ge))}function ge(e){return!z.checkIfNullOrUndefined(e)}function ye(e){return Math.min(...e.values.filter(_e))}function _e(e){return!z.checkIfNullOrUndefined(e)}function Me(e){return Math.max(...e.values.filter(ve))}function ve(e){return!z.checkIfNullOrUndefined(e)}function be(e){return Math.max(...e.values.filter(je))}function je(e){return!z.checkIfNullOrUndefined(e)}function ke(e){const{graphTitle:t,colors:o,sources:c,graphDescription:r,footNote:H,radius:W,data:p,showColorScale:g=!0,padding:R,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:S,graphID:J,onSeriesMouseClick:K,topMargin:mt=75,bottomMargin:ft=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:B=!1,dataDownload:X=!1,colorDomain:jt,language:dt="en",theme:j="light",highlightedLines:A=[],width:V,height:tt,minHeight:q=0,strokeWidth:h=2,relativeHeight:y,ariaLabel:et,colorLegendTitle:k,detailsOnClick:kt,styles:M,classNames:f,showNAColor:gt=!0,axisLabels:it,showDots:D=!0,showValues:v=!1,curveType:_="curve",noOfTicks:yt=5,minValue:I,maxValue:_t,fillShape:nt=!1,resetSelectionOnDoubleClick:Mt=!0,animate:Y=!1,dimmedOpacity:vt=.3,precision:L=2,customLayers:T=[]}=e,[w,$]=C.useState(0),[F,G]=C.useState(void 0),E=C.useRef(null),O=C.useRef(null);return C.useEffect(()=>{const s=new ResizeObserver(P=>{$((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,W||1/0)||420)/2)});return E.current&&s.observe(E.current),()=>s.disconnect()},[W]),n.jsxRuntimeExports.jsxs(At.GraphContainer,{className:f?.graphContainer,style:M?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:u,theme:j,language:dt,minHeight:q,width:V,height:tt,relativeHeight:y,padding:R,children:[t||r||B||X?n.jsxRuntimeExports.jsx(Jt.GraphHeader,{styles:{title:M?.title,description:M?.description},classNames:{title:f?.title,description:f?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:B?O:void 0,dataDownload:X?p.map(s=>s.data).filter(s=>s!==void 0).length>0?p.map(s=>s.data).filter(s=>s!==void 0):p.filter(s=>s!==void 0):null}):null,g&&p.filter(s=>s.color).length!==0&&p.length>0?n.jsxRuntimeExports.jsx(Qt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:k,colors:o||N.Colors[j].categoricalColors.colors,colorDomain:jt||St.uniqBy(p,"color",!0),setSelectedColor:G,showNAColor:gt,className:f?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsxs(At.GraphArea,{ref:E,children:[p.length===0&&n.jsxRuntimeExports.jsx(Kt.EmptyState,{}),w&&p.length>0?n.jsxRuntimeExports.jsx(oe,{data:p,lineColors:p.filter(s=>s.color).length===0?o?[o]:[N.Colors.primaryColors["blue-600"]]:o||N.Colors[j].categoricalColors.colors,radius:w,tooltip:a,colorDomain:jt||St.uniqBy(p,"color",!0),onSeriesMouseOver:S,onSeriesMouseClick:K,styles:M,detailsOnClick:kt,selectedColor:F,axisLabels:it,strokeWidth:h,showValues:v,showDots:D,topMargin:mt,bottomMargin:ft,leftMargin:Q,rightMargin:Z,curveType:_,noOfTicks:yt,minValue:I,maxValue:_t,fillShape:nt,highlightedLines:A,resetSelectionOnDoubleClick:Mt,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},dimmedOpacity:vt,precision:L,customLayers:T}):null]}),c||H?n.jsxRuntimeExports.jsx(zt.GraphFooter,{styles:{footnote:M?.footnote,source:M?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:c,footNote:H,width:V}):null]})}exports.RadarChart=ke;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("react"),Ht=require("./index-DQA8q5sC.cjs"),Wt=require("./Tooltip-BLa2EfMs.cjs"),N=require("./Colors.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Bt=require("./DetailsModal-DIRTulvr.cjs"),Nt=require("./linear-CgUCbw9F.cjs"),Vt=require("./line-DaEMhXmx.cjs"),bt=require("./proxy-C4-uo6nS.cjs"),Xt=require("./use-in-view-C3o_ntMv.cjs"),Yt=require("./index-CoobIWNj.cjs"),zt=require("./GraphFooter.cjs"),Jt=require("./GraphHeader.cjs"),Kt=require("./EmptyState-N1eHt3vq.cjs"),Qt=require("./ColorLegendWithMouseOver.cjs"),St=require("./uniqBy-O05lp2S5.cjs"),At=require("./GraphContainer-B1EDxJ0S.cjs");var Zt=Dt(Vt.curveLinear);function qt(e){this._curve=e}qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Dt(e){function t(o){return new qt(e(o))}return t._curve=e,t}function te(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(o){return arguments.length?t(Dt(o)):t()._curve},e}function ee(){return te(Vt.line().curve(Zt))}function wt(){}function Ot(e,t,o){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-o),e._x2,e._y2)}function Lt(e,t){this._context=e,this._k=(1-t)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function o(c){return new Lt(c,t)}return o.tension=function(c){return e(+c)},o})(0);function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ie=(function e(t){function o(c){return new Tt(c,t)}return o.tension=function(c){return e(+c)},o})(0);function $t(e){this._context=e}$t.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ne(e){return new $t(e)}function oe(e){const t=n.compilerRuntimeExports.c(106),{data:o,radius:c,lineColors:r,tooltip:H,onSeriesMouseOver:W,onSeriesMouseClick:p,colorDomain:g,detailsOnClick:R,styles:u,classNames:a,selectedColor:S,axisLabels:J,strokeWidth:K,showValues:mt,showDots:ft,rightMargin:Q,topMargin:Z,bottomMargin:B,leftMargin:X,curveType:jt,noOfTicks:dt,minValue:j,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:q,animate:h,dimmedOpacity:y,precision:et,customLayers:k}=e,kt=C.useRef(null);let M;t[0]!==h.amount||t[1]!==h.once?(M={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=M):M=t[2];const f=Xt.useInView(kt,M),gt=jt==="linear"?ne:ie;let it;t[3]!==B||t[4]!==X||t[5]!==Q||t[6]!==Z?(it={top:Z,bottom:B,left:X,right:Q},t[3]=B,t[4]=X,t[5]=Q,t[6]=Z,t[7]=it):it=t[7];const D=it,v=Math.min((2*c-X-Q)/2,(2*c-Z-B)/2),[_,yt]=C.useState(void 0),[I,_t]=C.useState(void 0),[nt,Mt]=C.useState(void 0),[Y,vt]=C.useState(void 0);let L,T,w,$,F,G,E,O,s,P,ot,U,st,rt;if(t[8]!==h.duration||t[9]!==J||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==g||t[15]!==gt||t[16]!==k||t[17]!==o||t[18]!==R||t[19]!==y||t[20]!==tt||t[21]!==q||t[22]!==f||t[23]!==r||t[24]!==D.left||t[25]!==D.top||t[26]!==A||t[27]!==j||t[28]!==I||t[29]!==_||t[30]!==dt||t[31]!==p||t[32]!==W||t[33]!==et||t[34]!==c||t[35]!==v||t[36]!==V||t[37]!==S||t[38]!==ft||t[39]!==mt||t[40]!==K||t[41]!==u?.graphObjectValues||t[42]!==u?.xAxis?.axis||t[43]!==u?.xAxis?.gridLines||t[44]!==u?.xAxis?.labels){const l=Nt.linear().domain([0,o[0].values.length]).range([0,2*Math.PI]);let Ct;t[59]!==o||t[60]!==A?(Ct=z.checkIfNullOrUndefined(A)?Math.max(...o.map(be))<0?0:Math.max(...o.map(Me)):A,t[59]=o,t[60]=A,t[61]=Ct):Ct=t[61];const Ft=Ct;let Rt;t[62]!==o||t[63]!==j?(Rt=z.checkIfNullOrUndefined(j)?Math.min(...o.map(ye))>=0?0:Math.min(...o.map(de)):j,t[62]=o,t[63]=j,t[64]=Rt):Rt=t[64];const Gt=Rt,b=Nt.linear().domain([Gt,Ft]).range([0,v]).nice(),Ut=b.ticks(dt),It=ee().radius(i=>b(i)).angle((i,x)=>l(x)).curve(gt);T=bt.motion.svg,st=`${c*2}px`,rt=`${c*2}px`,w=`0 0 ${c*2} ${c*2}`,$="ltr",F=kt,G="mx-auto",ot=`translate(${D.left},${D.top})`,t[65]!==k?(U=k.filter(fe).map(me),t[65]=k,t[66]=U):U=t[66],O=`translate(${v},${v})`,s=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),P=Ut.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:It(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*b(i)>-1e-4?Math.sin(-Math.PI/2)*b(i)-7:Math.sin(-Math.PI/2)*b(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:Pt.numberFormattingFunction(i,"NA",et)})})})]},x)),L=Yt.AnimatePresence,E=o.map((i,x)=>n.jsxRuntimeExports.jsxs(bt.motion.g,{variants:{initial:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:y:1,transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{yt(i),vt(m.clientY),Mt(m.clientX),W?.(i)},onMouseMove:m=>{yt(i),vt(m.clientY),Mt(m.clientX)},onMouseLeave:()=>{yt(void 0),Mt(void 0),vt(void 0),W?.(void 0)},onClick:()=>{(p||R)&&(Ht.isEqual(I,i)&&V?(_t(void 0),p?.(void 0)):(_t(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(bt.motion.path,{d:It(i.values)||"",variants:{initial:{d:It(i.values.map(pe))||"",stroke:o.filter(xe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?o.filter(he).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K},whileInView:{d:It(i.values)||"",transition:{duration:h.duration},stroke:o.filter(ue).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?o.filter(ce).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,d)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ft?n.jsxRuntimeExports.jsx(bt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:o.filter(le).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray},whileInView:{cx:Math.cos(l(d)-Math.PI/2)*b(m),cy:Math.sin(l(d)-Math.PI/2)*b(m),opacity:1,transition:{duration:h.duration},fill:o.filter(ae).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,mt?n.jsxRuntimeExports.jsx(bt.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(d)-Math.PI/2)<0?10:(Math.sin(l(d)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(d)-Math.PI/2)*(b(m)+6),y:Math.sin(l(d)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(d)-Math.PI/2)*(b(m)+6),y:Math.sin(l(d)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Pt.numberFormattingFunction(m,"NA",et)}):null]})},d))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=g,t[15]=gt,t[16]=k,t[17]=o,t[18]=R,t[19]=y,t[20]=tt,t[21]=q,t[22]=f,t[23]=r,t[24]=D.left,t[25]=D.top,t[26]=A,t[27]=j,t[28]=I,t[29]=_,t[30]=dt,t[31]=p,t[32]=W,t[33]=et,t[34]=c,t[35]=v,t[36]=V,t[37]=S,t[38]=ft,t[39]=mt,t[40]=K,t[41]=u?.graphObjectValues,t[42]=u?.xAxis?.axis,t[43]=u?.xAxis?.gridLines,t[44]=u?.xAxis?.labels,t[45]=L,t[46]=T,t[47]=w,t[48]=$,t[49]=F,t[50]=G,t[51]=E,t[52]=O,t[53]=s,t[54]=P,t[55]=ot,t[56]=U,t[57]=st,t[58]=rt}else L=t[45],T=t[46],w=t[47],$=t[48],F=t[49],G=t[50],E=t[51],O=t[52],s=t[53],P=t[54],ot=t[55],U=t[56],st=t[57],rt=t[58];let at;t[67]!==L||t[68]!==E?(at=n.jsxRuntimeExports.jsx(L,{children:E}),t[67]=L,t[68]=E,t[69]=at):at=t[69];let lt;t[70]!==at||t[71]!==O||t[72]!==s||t[73]!==P?(lt=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[s,P,at]}),t[70]=at,t[71]=O,t[72]=s,t[73]=P,t[74]=lt):lt=t[74];let ct;t[75]!==k?(ct=k.filter(re).map(se),t[75]=k,t[76]=ct):ct=t[76];let ut;t[77]!==lt||t[78]!==ct||t[79]!==ot||t[80]!==U?(ut=n.jsxRuntimeExports.jsxs("g",{transform:ot,children:[U,lt,ct]}),t[77]=lt,t[78]=ct,t[79]=ot,t[80]=U,t[81]=ut):ut=t[81];let ht;t[82]!==T||t[83]!==w||t[84]!==$||t[85]!==F||t[86]!==G||t[87]!==ut||t[88]!==st||t[89]!==rt?(ht=n.jsxRuntimeExports.jsx(T,{width:st,height:rt,viewBox:w,direction:$,ref:F,className:G,children:ut}),t[82]=T,t[83]=w,t[84]=$,t[85]=F,t[86]=G,t[87]=ut,t[88]=st,t[89]=rt,t[90]=ht):ht=t[90];let xt;t[91]!==a?.tooltip||t[92]!==nt||t[93]!==Y||t[94]!==_||t[95]!==u?.tooltip||t[96]!==H?(xt=_&&H&&nt&&Y?n.jsxRuntimeExports.jsx(Wt.Tooltip,{data:_,body:H,xPos:nt,yPos:Y,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[91]=a?.tooltip,t[92]=nt,t[93]=Y,t[94]=_,t[95]=u?.tooltip,t[96]=H,t[97]=xt):xt=t[97];let pt;t[98]!==a?.modal||t[99]!==R||t[100]!==I?(pt=R&&I!==void 0?n.jsxRuntimeExports.jsx(Bt.DetailsModal,{body:R,data:I,setData:_t,className:a?.modal}):null,t[98]=a?.modal,t[99]=R,t[100]=I,t[101]=pt):pt=t[101];let Et;return t[102]!==ht||t[103]!==xt||t[104]!==pt?(Et=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ht,xt,pt]}),t[102]=ht,t[103]=xt,t[104]=pt,t[105]=Et):Et=t[105],Et}function se(e){return e.layer}function re(e){return e.position==="after"}function ae(e){return e.color}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return 0}function me(e){return e.layer}function fe(e){return e.position==="before"}function de(e){return Math.min(...e.values.filter(ge))}function ge(e){return!z.checkIfNullOrUndefined(e)}function ye(e){return Math.min(...e.values.filter(_e))}function _e(e){return!z.checkIfNullOrUndefined(e)}function Me(e){return Math.max(...e.values.filter(ve))}function ve(e){return!z.checkIfNullOrUndefined(e)}function be(e){return Math.max(...e.values.filter(je))}function je(e){return!z.checkIfNullOrUndefined(e)}function ke(e){const{graphTitle:t,colors:o,sources:c,graphDescription:r,footNote:H,radius:W,data:p,showColorScale:g=!0,padding:R,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:S,graphID:J,onSeriesMouseClick:K,topMargin:mt=75,bottomMargin:ft=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:B=!1,dataDownload:X=!1,colorDomain:jt,language:dt="en",theme:j="light",highlightedLines:A=[],width:V,height:tt,minHeight:q=0,strokeWidth:h=2,relativeHeight:y,ariaLabel:et,colorLegendTitle:k,detailsOnClick:kt,styles:M,classNames:f,showNAColor:gt=!0,axisLabels:it,showDots:D=!0,showValues:v=!1,curveType:_="curve",noOfTicks:yt=5,minValue:I,maxValue:_t,fillShape:nt=!1,resetSelectionOnDoubleClick:Mt=!0,animate:Y=!1,dimmedOpacity:vt=.3,precision:L=2,customLayers:T=[]}=e,[w,$]=C.useState(0),[F,G]=C.useState(void 0),E=C.useRef(null),O=C.useRef(null);return C.useEffect(()=>{const s=new ResizeObserver(P=>{$((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,W||1/0)||420)/2)});return E.current&&s.observe(E.current),()=>s.disconnect()},[W]),n.jsxRuntimeExports.jsxs(At.GraphContainer,{className:f?.graphContainer,style:M?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:u,theme:j,language:dt,minHeight:q,width:V,height:tt,relativeHeight:y,padding:R,children:[t||r||B||X?n.jsxRuntimeExports.jsx(Jt.GraphHeader,{styles:{title:M?.title,description:M?.description},classNames:{title:f?.title,description:f?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:B?O:void 0,dataDownload:X?p.map(s=>s.data).filter(s=>s!==void 0).length>0?p.map(s=>s.data).filter(s=>s!==void 0):p.filter(s=>s!==void 0):null}):null,g&&p.filter(s=>s.color).length!==0&&p.length>0?n.jsxRuntimeExports.jsx(Qt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:k,colors:o||N.Colors[j].categoricalColors.colors,colorDomain:jt||St.uniqBy(p,"color",!0),setSelectedColor:G,showNAColor:gt,className:f?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsxs(At.GraphArea,{ref:E,children:[p.length===0&&n.jsxRuntimeExports.jsx(Kt.EmptyState,{}),w&&p.length>0?n.jsxRuntimeExports.jsx(oe,{data:p,lineColors:p.filter(s=>s.color).length===0?o?[o]:[N.Colors.primaryColors["blue-600"]]:o||N.Colors[j].categoricalColors.colors,radius:w,tooltip:a,colorDomain:jt||St.uniqBy(p,"color",!0),onSeriesMouseOver:S,onSeriesMouseClick:K,styles:M,detailsOnClick:kt,selectedColor:F,axisLabels:it,strokeWidth:h,showValues:v,showDots:D,topMargin:mt,bottomMargin:ft,leftMargin:Q,rightMargin:Z,curveType:_,noOfTicks:yt,minValue:I,maxValue:_t,fillShape:nt,highlightedLines:A,resetSelectionOnDoubleClick:Mt,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},dimmedOpacity:vt,precision:L,customLayers:T}):null]}),c||H?n.jsxRuntimeExports.jsx(zt.GraphFooter,{styles:{footnote:M?.footnote,source:M?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:c,footNote:H,width:V}):null]})}exports.RadarChart=ke;
|
|
2
2
|
//# sourceMappingURL=RadarChart.cjs.map
|
package/dist/RadarChart.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { c as Xt, j as o, m as bt } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as Xt, j as o, m as bt } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { useRef as Nt, useState as mt, useEffect as Yt } from "react";
|
|
3
3
|
import { i as zt } from "./index-Bwrro8-q.js";
|
|
4
|
-
import { T as qt } from "./Tooltip-
|
|
4
|
+
import { T as qt } from "./Tooltip-CohiIbLZ.js";
|
|
5
5
|
import { Colors as N } from "./Colors.js";
|
|
6
6
|
import { n as Vt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
7
7
|
import { c as B } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
|
-
import { D as Bt } from "./DetailsModal-
|
|
9
|
-
import { a as Dt } from "./linear-
|
|
8
|
+
import { D as Bt } from "./DetailsModal-C3qlUyFK.js";
|
|
9
|
+
import { a as Dt } from "./linear-DNXM5Pdl.js";
|
|
10
10
|
import { c as Ut, l as Jt } from "./line-DFlZsxI1.js";
|
|
11
|
-
import { m as kt } from "./proxy
|
|
12
|
-
import { u as Kt } from "./use-in-view-
|
|
13
|
-
import { A as Qt } from "./index-
|
|
11
|
+
import { m as kt } from "./proxy--_f6k3NR.js";
|
|
12
|
+
import { u as Kt } from "./use-in-view-DqvKAveg.js";
|
|
13
|
+
import { A as Qt } from "./index-Co3YGYe1.js";
|
|
14
14
|
import { GraphFooter as Zt } from "./GraphFooter.js";
|
|
15
15
|
import { GraphHeader as ti } from "./GraphHeader.js";
|
|
16
|
-
import { E as ii } from "./EmptyState-
|
|
16
|
+
import { E as ii } from "./EmptyState-D807L58h.js";
|
|
17
17
|
import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
|
|
18
18
|
import { u as Lt } from "./uniqBy-BHy4I8PK.js";
|
|
19
|
-
import { G as ni, a as oi } from "./GraphContainer-
|
|
19
|
+
import { G as ni, a as oi } from "./GraphContainer-DwMxWRCi.js";
|
|
20
20
|
var ai = Tt(Ut);
|
|
21
21
|
function Et(i) {
|
|
22
22
|
this._curve = i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as B, m as Y, j as _ } from "./index-CHPV5EwG-
|
|
2
|
-
import { m as C } from "./proxy
|
|
1
|
+
import { c as B, m as Y, j as _ } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
|
+
import { m as C } from "./proxy--_f6k3NR.js";
|
|
3
3
|
function G(q) {
|
|
4
4
|
const t = B.c(44), {
|
|
5
5
|
text: v,
|
|
@@ -159,4 +159,4 @@ export {
|
|
|
159
159
|
H as R,
|
|
160
160
|
G as a
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=ReferenceLine-
|
|
162
|
+
//# sourceMappingURL=ReferenceLine-CNEjAYvv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceLine-DgtoRgw0.js","sources":["../src/Components/Elements/ReferenceLine.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface RefLineYProps {\r\n text?: string;\r\n color?: string;\r\n y: number;\r\n x1: number;\r\n x2: number;\r\n classNames?: {\r\n line?: string;\r\n text?: string;\r\n };\r\n styles?: {\r\n line?: React.CSSProperties;\r\n text?: React.CSSProperties;\r\n };\r\n animate?: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function RefLineY(props: RefLineYProps) {\r\n const { text, x1, x2, y, classNames, styles, color, animate, isInView } = props;\r\n if (!text) return null;\r\n return (\r\n <motion.g\r\n key={`${x1}-${x2}-${y}`}\r\n exit={{ opacity: 0, transition: { duration: animate?.duration || 0 } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n transition: { duration: animate?.duration || 0 },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <line\r\n className={cn(\r\n 'undp-ref-line',\r\n !color ? 'stroke-primary-gray-700 dark:stroke-primary-gray-300' : undefined,\r\n classNames?.line,\r\n )}\r\n style={{\r\n ...(color && { stroke: color }),\r\n ...(styles?.line || {}),\r\n }}\r\n y1={y}\r\n y2={y}\r\n x1={x1}\r\n x2={x2}\r\n />\r\n <text\r\n x={x2}\r\n y={y}\r\n style={{\r\n ...(color && { fill: color }),\r\n textAnchor: 'end',\r\n ...(styles?.text || {}),\r\n }}\r\n className={cn(\r\n 'text-xs font-bold',\r\n !color ? ' fill-primary-gray-700 dark:fill-primary-gray-300' : undefined,\r\n classNames?.text,\r\n )}\r\n dy={-5}\r\n >\r\n {text}\r\n </text>\r\n </motion.g>\r\n );\r\n}\r\n\r\ninterface RefLineXProps {\r\n text?: string;\r\n color?: string;\r\n x: number;\r\n y1: number;\r\n y2: number;\r\n textSide: 'left' | 'right';\r\n classNames?: {\r\n line?: string;\r\n text?: string;\r\n };\r\n styles?: {\r\n line?: React.CSSProperties;\r\n text?: React.CSSProperties;\r\n };\r\n animate?: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function RefLineX(props: RefLineXProps) {\r\n const { text, y1, y2, x, classNames, styles, color, textSide, animate, isInView } = props;\r\n if (!text) return null;\r\n return (\r\n <motion.g\r\n key={`${y1}-${y2}-${x}`}\r\n exit={{ opacity: 0, transition: { duration: animate?.duration || 0 } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n transition: { duration: animate?.duration || 0 },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <line\r\n className={cn(\r\n 'undp-ref-line',\r\n !color ? 'stroke-primary-gray-700 dark:stroke-primary-gray-300' : undefined,\r\n classNames?.line,\r\n )}\r\n style={{\r\n ...(color && { stroke: color }),\r\n ...(styles?.line || {}),\r\n }}\r\n y1={y1}\r\n y2={y2}\r\n x1={x}\r\n x2={x}\r\n />\r\n <text\r\n x={x}\r\n y={y1}\r\n style={{\r\n ...(color && { fill: color }),\r\n textAnchor: textSide === 'left' ? 'end' : 'start',\r\n ...(styles?.text || {}),\r\n }}\r\n className={cn(\r\n 'text-xs font-bold',\r\n !color ? 'fill-primary-gray-700 dark:fill-primary-gray-300' : undefined,\r\n classNames?.text,\r\n )}\r\n dy={12.5}\r\n dx={textSide === 'left' ? -5 : 5}\r\n >\r\n {text}\r\n </text>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["RefLineY","props","$","_c","text","x1","x2","y","classNames","styles","color","animate","isInView","t0","t1","duration","t2","opacity","transition","t3","Symbol","for","t4","t5","initial","whileInView","t6","t7","undefined","t8","line","t9","cn","t10","stroke","t11","t12","t13","jsx","t14","fill","t15","t16","textAnchor","t17","t18","t19","t20","t21","jsxs","motion","RefLineX","y1","y2","x","textSide","t22","t23"],"mappings":";;AAuBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAA0EX;AAC1E,MAAI,CAACG;AAAI,WAAS;AAGT,QAAAS,IAAA,GAAGR,CAAE,IAAIC,CAAE,IAAIC,CAAC,IACuBO,IAAAH,GAAOI,YAAP;AAAsB,MAAAC;AAAA,EAAAd,SAAAY,KAA5DE,IAAA;AAAA,IAAAC,SAAW;AAAA,IAACC,YAAc;AAAA,MAAAH,UAAYD;AAAAA,IAAAA;AAAAA,E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GAAAX,QAAAmC,GAAAnC,QAAAc,GAAAd,QAAAsD,GAAAtD,QAAAqB,GAAArB,QAAAwB,GAAAxB,QAAAuD,KAAAA,IAAAvD,EAAA,EAAA,GAhDXuD;AAgDW;"}
|
|
1
|
+
{"version":3,"file":"ReferenceLine-CNEjAYvv.js","sources":["../src/Components/Elements/ReferenceLine.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface RefLineYProps {\r\n text?: string;\r\n color?: string;\r\n y: number;\r\n x1: number;\r\n x2: number;\r\n classNames?: {\r\n line?: string;\r\n text?: string;\r\n };\r\n styles?: {\r\n line?: React.CSSProperties;\r\n text?: React.CSSProperties;\r\n };\r\n animate?: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function RefLineY(props: RefLineYProps) {\r\n const { text, x1, x2, y, classNames, styles, color, animate, isInView } = props;\r\n if (!text) return null;\r\n return (\r\n <motion.g\r\n key={`${x1}-${x2}-${y}`}\r\n exit={{ opacity: 0, transition: { duration: animate?.duration || 0 } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n transition: { duration: animate?.duration || 0 },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <line\r\n className={cn(\r\n 'undp-ref-line',\r\n !color ? 'stroke-primary-gray-700 dark:stroke-primary-gray-300' : undefined,\r\n classNames?.line,\r\n )}\r\n style={{\r\n ...(color && { stroke: color }),\r\n ...(styles?.line || {}),\r\n }}\r\n y1={y}\r\n y2={y}\r\n x1={x1}\r\n x2={x2}\r\n />\r\n <text\r\n x={x2}\r\n y={y}\r\n style={{\r\n ...(color && { fill: color }),\r\n textAnchor: 'end',\r\n ...(styles?.text || {}),\r\n }}\r\n className={cn(\r\n 'text-xs font-bold',\r\n !color ? ' fill-primary-gray-700 dark:fill-primary-gray-300' : undefined,\r\n classNames?.text,\r\n )}\r\n dy={-5}\r\n >\r\n {text}\r\n </text>\r\n </motion.g>\r\n );\r\n}\r\n\r\ninterface RefLineXProps {\r\n text?: string;\r\n color?: string;\r\n x: number;\r\n y1: number;\r\n y2: number;\r\n textSide: 'left' | 'right';\r\n classNames?: {\r\n line?: string;\r\n text?: string;\r\n };\r\n styles?: {\r\n line?: React.CSSProperties;\r\n text?: React.CSSProperties;\r\n };\r\n animate?: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function RefLineX(props: RefLineXProps) {\r\n const { text, y1, y2, x, classNames, styles, color, textSide, animate, isInView } = props;\r\n if (!text) return null;\r\n return (\r\n <motion.g\r\n key={`${y1}-${y2}-${x}`}\r\n exit={{ opacity: 0, transition: { duration: animate?.duration || 0 } }}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n transition: { duration: animate?.duration || 0 },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n >\r\n <line\r\n className={cn(\r\n 'undp-ref-line',\r\n !color ? 'stroke-primary-gray-700 dark:stroke-primary-gray-300' : undefined,\r\n classNames?.line,\r\n )}\r\n style={{\r\n ...(color && { stroke: color }),\r\n ...(styles?.line || {}),\r\n }}\r\n y1={y1}\r\n y2={y2}\r\n x1={x}\r\n x2={x}\r\n />\r\n <text\r\n x={x}\r\n y={y1}\r\n style={{\r\n ...(color && { fill: color }),\r\n textAnchor: textSide === 'left' ? 'end' : 'start',\r\n ...(styles?.text || {}),\r\n }}\r\n className={cn(\r\n 'text-xs font-bold',\r\n !color ? 'fill-primary-gray-700 dark:fill-primary-gray-300' : undefined,\r\n classNames?.text,\r\n )}\r\n dy={12.5}\r\n dx={textSide === 'left' ? -5 : 5}\r\n >\r\n {text}\r\n </text>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["RefLineY","props","$","_c","text","x1","x2","y","classNames","styles","color","animate","isInView","t0","t1","duration","t2","opacity","transition","t3","Symbol","for","t4","t5","initial","whileInView","t6","t7","undefined","t8","line","t9","cn","t10","stroke","t11","t12","t13","jsx","t14","fill","t15","t16","textAnchor","t17","t18","t19","t20","t21","jsxs","motion","RefLineX","y1","y2","x","textSide","t22","t23"],"mappings":";;AAuBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAA0EX;AAC1E,MAAI,CAACG;AAAI,WAAS;AAGT,QAAAS,IAAA,GAAGR,CAAE,IAAIC,CAAE,IAAIC,CAAC,IACuBO,IAAAH,GAAOI,YAAP;AAAsB,MAAAC;AAAA,EAAAd,SAAAY,KAA5DE,IAAA;AAAA,IAAAC,SAAW;AAAA,IAACC,YAAc;AAAA,MAAAH,UAAYD;AAAAA,IAAAA;AAAAA,EAAuB,GAAGZ,OAAAY,GAAAZ,OAAAc,KAAAA,IAAAd,EAAA,CAAA;AAAA,MAAAiB;AAAA,EAAAjB,EAAA,CAAA,MAAAkB,uBAAAC,IAAA,2BAAA,KAE3DF,IAAA;AAAA,IAAAF,SACE;AAAA,EAAA,GACVf,OAAAiB,KAAAA,IAAAjB,EAAA,CAAA;AAGyB,QAAAoB,IAAAX,GAAOI,YAAP;AAAsB,MAAAQ;AAAA,EAAArB,SAAAoB,KANxCC,IAAA;AAAA,IAAAC,SACCL;AAAAA,IAERM,aACY;AAAA,MAAAR,SACF;AAAA,MAACC,YACE;AAAA,QAAAH,UAAYO;AAAAA,MAAAA;AAAAA,IAAuB;AAAA,EACjD,GACDpB,OAAAoB,GAAApB,OAAAqB,KAAAA,IAAArB,EAAA,CAAA;AAEQ,Q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,EAAA,EAAA,MAAA6C,KAAA7C,EAAA,EAAA,MAAA8C,KAAA9C,EAAA,EAAA,MAAAE,KAAAF,UAAAoD,KAAApD,EAAA,EAAA,MAAAkD,KAdlCI,oCACKF,GAAAA,GACAF,GAAAA,GACI,OAAAR,GAKI,WAAAG,GAKP,UACA,IAAAC,GAEH5C,UAAAA,GACH,GAAOF,QAAA0C,GAAA1C,QAAA6C,GAAA7C,QAAA8C,GAAA9C,QAAAE,GAAAF,QAAAoD,GAAApD,QAAAkD,GAAAlD,QAAAsD,KAAAA,IAAAtD,EAAA,EAAA;AAAA,MAAAuD;AAAA,SAAAvD,UAAAW,KAAAX,EAAA,EAAA,MAAAmC,KAAAnC,EAAA,EAAA,MAAAc,KAAAd,EAAA,EAAA,MAAAsD,KAAAtD,UAAAqB,KAAArB,EAAA,EAAA,MAAAwB,KA/CT+B,IAAAR,gBAAAA,EAAAA,KAAAC,EAAA,GAAA,EAEQ,MAAAlC,GACI,UAAAO,GASF,SAAA,WACC,SAAAG,GAETW,UAAAA;AAAAA,IAAAA;AAAAA,IAeAmB;AAAAA,EAAAA,EAAAA,GA7BK3C,CA+CP,GAAWX,QAAAW,GAAAX,QAAAmC,GAAAnC,QAAAc,GAAAd,QAAAsD,GAAAtD,QAAAqB,GAAArB,QAAAwB,GAAAxB,QAAAuD,KAAAA,IAAAvD,EAAA,EAAA,GAhDXuD;AAgDW;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as _, m as $, j as y } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as _, m as $, j as y } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
2
|
import { g as b } from "./generateRandomString-za3IQGfQ.js";
|
|
3
|
-
import { m as H } from "./proxy
|
|
4
|
-
import { A as L } from "./index-
|
|
3
|
+
import { m as H } from "./proxy--_f6k3NR.js";
|
|
4
|
+
import { A as L } from "./index-Co3YGYe1.js";
|
|
5
5
|
function C(N) {
|
|
6
6
|
const e = _.c(42), {
|
|
7
7
|
color: t,
|
|
@@ -84,4 +84,4 @@ function C(N) {
|
|
|
84
84
|
export {
|
|
85
85
|
C as R
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=RegressionLine-
|
|
87
|
+
//# sourceMappingURL=RegressionLine-BDrndQxo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegressionLine-
|
|
1
|
+
{"version":3,"file":"RegressionLine-BDrndQxo.js","sources":["../src/Components/Elements/RegressionLine.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\nimport { generateRandomString } from '@/Utils/generateRandomString';\r\n\r\ninterface Props {\r\n color?: string;\r\n y1: number;\r\n y2: number;\r\n x1: number;\r\n x2: number;\r\n graphWidth: number;\r\n graphHeight: number;\r\n className?: string;\r\n style?: React.CSSProperties;\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function RegressionLine(props: Props) {\r\n const { color, x1, x2, y1, y2, className, style, animate, isInView, graphWidth, graphHeight } =\r\n props;\r\n const id = generateRandomString(8);\r\n return (\r\n <g>\r\n <defs>\r\n <clipPath id={id}>\r\n <rect x='0' y='0' width={graphWidth} height={graphHeight} />\r\n </clipPath>\r\n </defs>\r\n <AnimatePresence>\r\n <motion.line\r\n clipPath={`url(#${id})`}\r\n className={cn(\r\n 'undp-ref-line',\r\n !color ? 'stroke-primary-gray-700 dark:stroke-primary-gray-300' : undefined,\r\n className,\r\n )}\r\n style={{\r\n fill: 'none',\r\n ...(style || {}),\r\n }}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: {\r\n y1,\r\n y2: y1,\r\n x1,\r\n x2: x1,\r\n ...(color && { stroke: color }),\r\n },\r\n whileInView: {\r\n y1,\r\n y2,\r\n x1,\r\n x2,\r\n ...(color && { stroke: color }),\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n </AnimatePresence>\r\n </g>\r\n );\r\n}\r\n"],"names":["RegressionLine","props","$","_c","color","x1","x2","y1","y2","className","style","animate","isInView","graphWidth","graphHeight","t0","Symbol","for","generateRandomString","id","t1","jsx","t2","undefined","t3","cn","t4","t5","fill","t6","duration","opacity","transition","t7","stroke","t8","t9","t10","t11","t12","initial","whileInView","t13","t14","AnimatePresence","motion","t15"],"mappings":";;;;AAoBO,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,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,aAAAA;AAAAA,EAAAA,IACEb;AAAM,MAAAc;AAAA,EAAAb,EAAA,CAAA,MAAAc,uBAAAC,IAAA,2BAAA,KACGF,IAAAG,EAAqB,CAAC,GAAChB,OAAAa,KAAAA,IAAAb,EAAA,CAAA;AAAlC,QAAAiB,IAAWJ;AAAwB,MAAAK;AAAA,EAAAlB,EAAA,CAAA,MAAAY,KAAAZ,SAAAW,KAG/BO,0BAAA,QAAA,EACE,UAAAC,gBAAAA,MAAA,YAAA,EAAcF,IAAAA,GACZ,gCAAA,QAAA,EAAQ,GAAA,KAAM,GAAA,KAAWN,OAAAA,GAAoBC,QAAAA,EAAAA,CAAW,GAC1D,GACF,GAAOZ,OAAAY,GAAAZ,OAAAW,GAAAX,OAAAkB,KAAAA,IAAAlB,EAAA,CAAA;AAMD,QAAAoB,IAAClB,IAADmB,SAAA;AAA2E,MAAAC;AAAA,EAAAtB,EAAA,CAAA,MAAAO,KAAAP,SAAAoB,KAFlEE,IAAAC,EACT,iBACAH,GACAb,CAC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WACC,SAAAG,EAAAA,CAAoC,EAAA,CAEjD,GAAkBxC,QAAAqC,GAAArC,QAAAwC,GAAAxC,QAAAsB,GAAAtB,QAAAyB,GAAAzB,QAAA2B,GAAA3B,QAAAyC,KAAAA,IAAAzC,EAAA,EAAA;AAAA,MAAA4C;AAAA,SAAA5C,EAAA,EAAA,MAAAkB,KAAAlB,UAAAyC,KAvCpBG,2BAAA,KAAA,EACE1B,UAAAA;AAAAA,IAAAA;AAAAA,IAKAuB;AAAAA,EAAAA,GAkCF,GAAIzC,QAAAkB,GAAAlB,QAAAyC,GAAAzC,QAAA4C,KAAAA,IAAA5C,EAAA,EAAA,GAxCJ4C;AAwCI;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as v, j as p } from "./index-CHPV5EwG-
|
|
2
|
-
import { I as x, u as y } from "./index-
|
|
1
|
+
import { c as v, j as p } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
|
+
import { I as x, u as y } from "./index-CZ0elhKR.js";
|
|
3
3
|
import { s as u } from "./svgDownload-BAoarWNt.js";
|
|
4
4
|
function j(f) {
|
|
5
5
|
const t = v.c(10), {
|