@undp/data-viz 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +957 -957
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +185 -185
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +2 -4
  23. package/dist/CirclePackingGraph.js.map +1 -1
  24. package/dist/Data/barChart.json +70 -0
  25. package/dist/Data/basic.csv +20 -0
  26. package/dist/DifferenceLineChart.cjs +1 -1
  27. package/dist/DifferenceLineChart.cjs.map +1 -1
  28. package/dist/DifferenceLineChart.js +224 -223
  29. package/dist/DifferenceLineChart.js.map +1 -1
  30. package/dist/DotDensityMap.cjs +1 -1
  31. package/dist/DotDensityMap.cjs.map +1 -1
  32. package/dist/DotDensityMap.js +156 -156
  33. package/dist/DotDensityMap.js.map +1 -1
  34. package/dist/DualAxisLineChart.cjs +1 -1
  35. package/dist/DualAxisLineChart.cjs.map +1 -1
  36. package/dist/DualAxisLineChart.js +326 -325
  37. package/dist/DualAxisLineChart.js.map +1 -1
  38. package/dist/GeoHubCompareMaps.cjs +1 -1
  39. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  40. package/dist/GeoHubCompareMaps.js +183 -183
  41. package/dist/GeoHubCompareMaps.js.map +1 -1
  42. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  43. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  44. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  45. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  46. package/dist/GriddedGraphs.cjs +1 -1
  47. package/dist/GriddedGraphs.js +1 -1
  48. package/dist/Histogram.cjs +1 -1
  49. package/dist/Histogram.js +1 -1
  50. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  51. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  52. package/dist/LineChartWithConfidenceInterval.js +133 -132
  53. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  54. package/dist/MultiGraphDashboard.cjs +1 -1
  55. package/dist/MultiGraphDashboard.cjs.map +1 -1
  56. package/dist/MultiGraphDashboard.js +52 -50
  57. package/dist/MultiGraphDashboard.js.map +1 -1
  58. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  59. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  60. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  61. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  62. package/dist/MultiLineAltChart.cjs +1 -1
  63. package/dist/MultiLineAltChart.cjs.map +1 -1
  64. package/dist/MultiLineAltChart.js +149 -148
  65. package/dist/MultiLineAltChart.js.map +1 -1
  66. package/dist/MultiLineChart.cjs +1 -1
  67. package/dist/MultiLineChart.cjs.map +1 -1
  68. package/dist/MultiLineChart.js +182 -181
  69. package/dist/MultiLineChart.js.map +1 -1
  70. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  71. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  72. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  73. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  74. package/dist/SimpleLineChart.cjs +1 -1
  75. package/dist/SimpleLineChart.cjs.map +1 -1
  76. package/dist/SimpleLineChart.js +123 -122
  77. package/dist/SimpleLineChart.js.map +1 -1
  78. package/dist/SingleGraphDashboard.cjs +1 -1
  79. package/dist/SingleGraphDashboard.cjs.map +1 -1
  80. package/dist/SingleGraphDashboard.js +83 -79
  81. package/dist/SingleGraphDashboard.js.map +1 -1
  82. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  83. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  84. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  85. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  86. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  87. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  88. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  89. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  90. package/dist/StatCardFromData.cjs +1 -1
  91. package/dist/StatCardFromData.cjs.map +1 -1
  92. package/dist/StatCardFromData.js +44 -46
  93. package/dist/StatCardFromData.js.map +1 -1
  94. package/dist/ThreeDGlobe.cjs +1 -1
  95. package/dist/ThreeDGlobe.cjs.map +1 -1
  96. package/dist/ThreeDGlobe.js +134 -134
  97. package/dist/ThreeDGlobe.js.map +1 -1
  98. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  99. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  100. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  101. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  102. package/dist/index-C6LorfZ-.cjs +2 -0
  103. package/dist/index-C6LorfZ-.cjs.map +1 -0
  104. package/dist/index-Ceppbd8C.js +342 -0
  105. package/dist/index-Ceppbd8C.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/index-DoY3Ga3W.cjs +0 -2
  110. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  111. package/dist/index-leTnKT2q.js +0 -329
  112. package/dist/index-leTnKT2q.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),c=require("react"),ee=require("./index-CyZ1lmi_.cjs"),G=require("./index-BS2TADPj.cjs"),h=require("./checkIfMultiple-wg6hJLXy.cjs"),ae=require("./Spinner-DRMBUsX7.cjs"),f=require("./DropdownSelect-Doz3mCrM.cjs"),te=require("./GraphContainer-d8A46BK2.cjs"),le=require("./GraphEl-BkyLYXG5.cjs"),I=require("./fetchAndParseData-l5HGMAEs.cjs"),oe=require("./Colors.cjs"),P=require("./transformDataForAggregation-KXGm6flX.cjs"),W=require("./getUniqValue-RViz8tTw.cjs"),re=require("./GraphHeader.cjs"),ne=require("./GraphFooter.cjs"),z=require("./filterData-T5DQBE9b.cjs"),se=require("./ColorLegend.cjs"),ie=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),B=require("./transformDataForSelect-YmStusCI.cjs");function ue(J){const{graphSettings:t,dataSettings:n,filters:T,graphType:q,dataTransform:y,graphDataConfiguration:i,noOfColumns:V,columnGridBy:v,dataFilters:A,showCommonColorScale:F,minGraphHeight:K,minGraphWidth:$,debugMode:b,dataSelectionOptions:k,advancedDataSelectionOptions:O,readableHeader:Q,noOfFiltersPerRow:p=4,uiMode:g="normal",theme:X="light"}=J,[C,Y]=c.useState(void 0),[S,Z]=c.useState(void 0),[w,_]=c.useState([]),M=c.useRef(null),[m,x]=c.useState(i),[j,H]=c.useState([]),[d,D]=c.useState({}),E=c.useMemo(()=>({ignoreCase:!0,ignoreAccents:!0,trim:!0}),[]),L=c.useMemo(()=>!S||j.length===0?S:S.filter(u=>j.every(a=>a.value&&G.flattenDeep([a.value]).length>0?ee.intersection(G.flattenDeep([u[a.filter]]),G.flattenDeep([a.value]).map(l=>l.value)).length>0:!0)),[j,S]);c.useEffect(()=>{Y(L)},[L]);const U=c.useCallback(async()=>{if(n)try{const u=await(n.dataURL?typeof n.dataURL=="string"?n.fileType==="json"?I.fetchAndParseJSON(n.dataURL,n.columnsToArray,n.dataTransformation,b):n.fileType==="api"?I.fetchAndTransformDataFromAPI(n.dataURL,n.apiHeaders,n.columnsToArray,n.dataTransformation,b):I.fetchAndParseCSV(n.dataURL,n.dataTransformation,n.columnsToArray,b,n.delimiter,!0):I.fetchAndParseMultipleDataSources(n.dataURL,n.idColumnTitle):I.transformColumnsToArray(n.data,n.columnsToArray));Z(u);const a=W.getUniqValue(u,v);_(a);const l=(T||[]).map(r=>({filter:r.column,label:r.label||`Filter by ${r.column}`,singleSelect:r.singleSelect,clearable:r.clearable,defaultValue:B.transformDefaultValue(r.defaultValue),value:B.transformDefaultValue(r.defaultValue),availableValues:W.getUniqValue(u,r.column).filter(s=>!r.excludeValues?.includes(`${s}`)).map(s=>({value:s,label:s})),allowSelectAll:r.allowSelectAll,width:r.width}));H(l)}catch(e){console.error("Data fetching error:",e)}},[n,b,v,T]);c.useEffect(()=>{U()},[U]),c.useEffect(()=>{x(i)},[i]);const N=c.useCallback((e,u)=>{H(a=>a.map(l=>l.filter===e?{...l,value:u}:l))},[]);return o.jsxRuntimeExports.jsxs(te.GraphContainer,{className:t?.classNames?.graphContainer,style:t?.styles?.graphContainer,id:t?.graphID,ref:M,"aria-label":t?.ariaLabel||"This is a gridded graph",backgroundColor:t?.backgroundColor??!1,theme:t?.theme||"light",language:t?.language||"en",width:t?.width,height:t?.height,padding:t?.padding,children:[d?.graphTitle||d?.graphDescription||t?.graphTitle||t?.graphDescription||t?.graphDownload||t?.dataDownload?o.jsxRuntimeExports.jsx(re.GraphHeader,{styles:{title:d?.styles?.title||t?.styles?.title,description:d?.styles?.description||t?.styles?.description},classNames:{title:d?.classNames?.title||t?.classNames?.title,description:d?.classNames?.description||t?.classNames?.description},graphTitle:d?.graphTitle||t?.graphTitle,graphDescription:d?.graphDescription||t?.graphDescription,width:d?.width||t?.width,graphDownload:t?.graphDownload?M:void 0,dataDownload:t?.dataDownload&&C&&C.length>0?C:null}):null,C&&w.length>0?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[j.length!==0||(k||[]).length!==0||(O||[]).length!==0?o.jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-start gap-x-4 gap-y-0 w-full",children:[O?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:e.ui!=="radio"?0:1,minWidth:"240px"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label||"Graph by"}),e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.options.map(a=>({...a,value:a.label})),isClearable:!1,isSearchable:!0,variant:g,controlShouldRenderValue:!0,defaultValue:e.defaultValue?{...e.defaultValue,value:e.defaultValue?.label}:{...e.options[0],value:e.options[0].label},onChange:a=>{D(a?.graphSettings||{}),x(a?.dataConfiguration)}}):o.jsxRuntimeExports.jsx(h.ye,{defaultValue:e.defaultValue?.label||e.options[0].label,variant:g,onValueChange:a=>{const l=e.options[e.options.findIndex(r=>r.label===a)];D(l.graphSettings||{}),x(l.dataConfiguration)},children:e.options.map((a,l)=>o.jsxRuntimeExports.jsx(h.he,{label:a.label,value:a.label},l))})]},u)),k?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:e.ui!=="radio"?0:1,minWidth:"240px"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label||`Visualize ${e.chartConfigId} by`}),h.checkIfMultiple(e.chartConfigId,m||[])?e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.allowedColumnIds,isMulti:!0,variant:g,isSearchable:!0,controlShouldRenderValue:!0,defaultValue:i?i[i.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(l=>l.value===a)]):void 0,filterOption:f.Du(E),onChange:a=>{const l={columnId:a.map(s=>s.value),chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);x(r)},isRtl:t?.language==="ar"||t?.language==="he"}):o.jsxRuntimeExports.jsx(h.$,{variant:g,defaultValue:i?i[i.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(l=>l.value===a)]).map(a=>a.value):[],onValueChange:a=>{const l={columnId:a||[],chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);x(r)},children:e.allowedColumnIds.map((a,l)=>o.jsxRuntimeExports.jsx(h.P,{label:a.label,value:a.label},l))}):e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.allowedColumnIds,isClearable:!1,isSearchable:!0,variant:g,defaultValue:i?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===i[i.findIndex(l=>l.chartConfigId===e.chartConfigId)].columnId)]:void 0,controlShouldRenderValue:!0,onChange:a=>{const l={columnId:a?.value,chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);D(a?.graphSettings||{}),x(r)}}):o.jsxRuntimeExports.jsx(h.ye,{variant:g,defaultValue:i?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===i[i.findIndex(l=>l.chartConfigId===e.chartConfigId)].columnId)].label:"",onValueChange:a=>{const l=e.allowedColumnIds[e.allowedColumnIds.findIndex(R=>R.label===a)],r={columnId:l.value,chartConfigId:e.chartConfigId},s=m?.map(R=>R.chartConfigId===r.chartConfigId?r:R);D(l.graphSettings||{}),x(s)},children:e.allowedColumnIds.map((a,l)=>o.jsxRuntimeExports.jsx(h.he,{label:a.label,value:a.label},l))})]},u)),j?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:0,flexWrap:"wrap"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label}),e.singleSelect?o.jsxRuntimeExports.jsx(f.ja,{variant:g,options:e.availableValues,isClearable:e.clearable===void 0?!0:e.clearable,isRtl:t?.language==="ar"||t?.language==="he",isSearchable:!0,controlShouldRenderValue:!0,filterOption:f.Du(E),onChange:a=>{N(e.filter,a)},defaultValue:e.defaultValue}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(f.ja,{variant:g,options:e.availableValues,isMulti:!0,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:f.Du(E),onChange:a=>{N(e.filter,a)},defaultValue:e.defaultValue,isRtl:t?.language==="ar"||t?.language==="he"}),e.allowSelectAll?o.jsxRuntimeExports.jsx("button",{className:"bg-transparent border-0 p-0 mt-2 cursor-pointer text-primary-blue-600 dark:text-primary-blue-400",type:"button",onClick:()=>{N(e.filter,e.availableValues)},children:"Select all options"}):null]})]},u))]}):null,F!==!1&&t?.showColorScale!==!1?o.jsxRuntimeExports.jsx(se.ColorLegend,{width:t?.width,colorLegendTitle:t?.colorLegendTitle,colors:t?.colors||t?.lineColors||oe.Colors[t?.theme||"light"].categoricalColors.colors,colorDomain:t?.colorDomain||t?.labels||[],showNAColor:t?.showNAColor===void 0||t?.showNAColor===null?!0:t?.showNAColor}):null,o.jsxRuntimeExports.jsx("div",{className:`flex flex-wrap gap-4 justify-center ${t?.language==="ar"||t?.language==="he"?"flex-row-reverse":"flex-row"}`,children:w.map((e,u)=>o.jsxRuntimeExports.jsx("div",{style:{width:`calc(${100/(V||Math.min(4,w.length||0))}% - ${((V||Math.min(4,w.length||0))-1)/(V||Math.min(4,w.length||0))}rem)`,minWidth:ie.checkIfNullOrUndefined($)?"280px":`${$}px`},children:o.jsxRuntimeExports.jsx(le.GraphEl,{graph:q,graphDataConfiguration:m,graphData:P.transformDataForGraph(y?P.transformDataForAggregation(z.filterData(C,A||[]).filter(a=>a[v]===e),y.keyColumn,y.aggregationColumnsSetting):z.filterData(C,A||[]).filter(a=>a[v]===e),q,m)||[],debugMode:b,settings:{...t||{},...d,theme:t?.theme||X,width:void 0,height:void 0,relativeHeight:t?.relativeHeight||.67,minHeight:K,graphTitle:`${e}`,graphDescription:void 0,graphDownload:!1,dataDownload:!1,backgroundColor:void 0,padding:"0",footNote:void 0,sources:void 0,showColorScale:t?.showColorScale===!1?!1:F===!1},readableHeader:Q||[]})},u))})]}):o.jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center p-4",children:o.jsxRuntimeExports.jsx(ae.w,{})}),t?.sources||t?.footNote?o.jsxRuntimeExports.jsx(ne.GraphFooter,{styles:{footnote:t?.styles?.footnote,source:t?.styles?.source},classNames:{footnote:t?.classNames?.footnote,source:t?.classNames?.source},sources:t?.sources,footNote:t?.footNote,width:t?.width}):null]})}exports.GriddedGraphs=ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),c=require("react"),ee=require("./index-CyZ1lmi_.cjs"),G=require("./index-BS2TADPj.cjs"),h=require("./checkIfMultiple-wg6hJLXy.cjs"),ae=require("./Spinner-DRMBUsX7.cjs"),f=require("./DropdownSelect-Doz3mCrM.cjs"),te=require("./GraphContainer-d8A46BK2.cjs"),le=require("./GraphEl-D5MUfp45.cjs"),I=require("./fetchAndParseData-l5HGMAEs.cjs"),oe=require("./Colors.cjs"),P=require("./transformDataForAggregation-KXGm6flX.cjs"),W=require("./getUniqValue-RViz8tTw.cjs"),re=require("./GraphHeader.cjs"),ne=require("./GraphFooter.cjs"),z=require("./filterData-T5DQBE9b.cjs"),se=require("./ColorLegend.cjs"),ie=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),B=require("./transformDataForSelect-YmStusCI.cjs");function ue(J){const{graphSettings:t,dataSettings:n,filters:T,graphType:q,dataTransform:y,graphDataConfiguration:i,noOfColumns:V,columnGridBy:v,dataFilters:A,showCommonColorScale:F,minGraphHeight:K,minGraphWidth:$,debugMode:b,dataSelectionOptions:k,advancedDataSelectionOptions:O,readableHeader:Q,noOfFiltersPerRow:p=4,uiMode:g="normal",theme:X="light"}=J,[C,Y]=c.useState(void 0),[S,Z]=c.useState(void 0),[w,_]=c.useState([]),M=c.useRef(null),[m,x]=c.useState(i),[j,H]=c.useState([]),[d,D]=c.useState({}),E=c.useMemo(()=>({ignoreCase:!0,ignoreAccents:!0,trim:!0}),[]),L=c.useMemo(()=>!S||j.length===0?S:S.filter(u=>j.every(a=>a.value&&G.flattenDeep([a.value]).length>0?ee.intersection(G.flattenDeep([u[a.filter]]),G.flattenDeep([a.value]).map(l=>l.value)).length>0:!0)),[j,S]);c.useEffect(()=>{Y(L)},[L]);const U=c.useCallback(async()=>{if(n)try{const u=await(n.dataURL?typeof n.dataURL=="string"?n.fileType==="json"?I.fetchAndParseJSON(n.dataURL,n.columnsToArray,n.dataTransformation,b):n.fileType==="api"?I.fetchAndTransformDataFromAPI(n.dataURL,n.apiHeaders,n.columnsToArray,n.dataTransformation,b):I.fetchAndParseCSV(n.dataURL,n.dataTransformation,n.columnsToArray,b,n.delimiter,!0):I.fetchAndParseMultipleDataSources(n.dataURL,n.idColumnTitle):I.transformColumnsToArray(n.data,n.columnsToArray));Z(u);const a=W.getUniqValue(u,v);_(a);const l=(T||[]).map(r=>({filter:r.column,label:r.label||`Filter by ${r.column}`,singleSelect:r.singleSelect,clearable:r.clearable,defaultValue:B.transformDefaultValue(r.defaultValue),value:B.transformDefaultValue(r.defaultValue),availableValues:W.getUniqValue(u,r.column).filter(s=>!r.excludeValues?.includes(`${s}`)).map(s=>({value:s,label:s})),allowSelectAll:r.allowSelectAll,width:r.width}));H(l)}catch(e){console.error("Data fetching error:",e)}},[n,b,v,T]);c.useEffect(()=>{U()},[U]),c.useEffect(()=>{x(i)},[i]);const N=c.useCallback((e,u)=>{H(a=>a.map(l=>l.filter===e?{...l,value:u}:l))},[]);return o.jsxRuntimeExports.jsxs(te.GraphContainer,{className:t?.classNames?.graphContainer,style:t?.styles?.graphContainer,id:t?.graphID,ref:M,"aria-label":t?.ariaLabel||"This is a gridded graph",backgroundColor:t?.backgroundColor??!1,theme:t?.theme||"light",language:t?.language||"en",width:t?.width,height:t?.height,padding:t?.padding,children:[d?.graphTitle||d?.graphDescription||t?.graphTitle||t?.graphDescription||t?.graphDownload||t?.dataDownload?o.jsxRuntimeExports.jsx(re.GraphHeader,{styles:{title:d?.styles?.title||t?.styles?.title,description:d?.styles?.description||t?.styles?.description},classNames:{title:d?.classNames?.title||t?.classNames?.title,description:d?.classNames?.description||t?.classNames?.description},graphTitle:d?.graphTitle||t?.graphTitle,graphDescription:d?.graphDescription||t?.graphDescription,width:d?.width||t?.width,graphDownload:t?.graphDownload?M:void 0,dataDownload:t?.dataDownload&&C&&C.length>0?C:null}):null,C&&w.length>0?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[j.length!==0||(k||[]).length!==0||(O||[]).length!==0?o.jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-start gap-x-4 gap-y-0 w-full",children:[O?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:e.ui!=="radio"?0:1,minWidth:"240px"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label||"Graph by"}),e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.options.map(a=>({...a,value:a.label})),isClearable:!1,isSearchable:!0,variant:g,controlShouldRenderValue:!0,defaultValue:e.defaultValue?{...e.defaultValue,value:e.defaultValue?.label}:{...e.options[0],value:e.options[0].label},onChange:a=>{D(a?.graphSettings||{}),x(a?.dataConfiguration)}}):o.jsxRuntimeExports.jsx(h.ye,{defaultValue:e.defaultValue?.label||e.options[0].label,variant:g,onValueChange:a=>{const l=e.options[e.options.findIndex(r=>r.label===a)];D(l.graphSettings||{}),x(l.dataConfiguration)},children:e.options.map((a,l)=>o.jsxRuntimeExports.jsx(h.he,{label:a.label,value:a.label},l))})]},u)),k?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:e.ui!=="radio"?0:1,minWidth:"240px"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label||`Visualize ${e.chartConfigId} by`}),h.checkIfMultiple(e.chartConfigId,m||[])?e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.allowedColumnIds,isMulti:!0,variant:g,isSearchable:!0,controlShouldRenderValue:!0,defaultValue:i?i[i.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(l=>l.value===a)]):void 0,filterOption:f.Du(E),onChange:a=>{const l={columnId:a.map(s=>s.value),chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);x(r)},isRtl:t?.language==="ar"||t?.language==="he"}):o.jsxRuntimeExports.jsx(h.$,{variant:g,defaultValue:i?i[i.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(l=>l.value===a)]).map(a=>a.value):[],onValueChange:a=>{const l={columnId:a||[],chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);x(r)},children:e.allowedColumnIds.map((a,l)=>o.jsxRuntimeExports.jsx(h.P,{label:a.label,value:a.label},l))}):e.ui!=="radio"?o.jsxRuntimeExports.jsx(f.ja,{options:e.allowedColumnIds,isClearable:!1,isSearchable:!0,variant:g,defaultValue:i?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===i[i.findIndex(l=>l.chartConfigId===e.chartConfigId)].columnId)]:void 0,controlShouldRenderValue:!0,onChange:a=>{const l={columnId:a?.value,chartConfigId:e.chartConfigId},r=m?.map(s=>s.chartConfigId===l.chartConfigId?l:s);D(a?.graphSettings||{}),x(r)}}):o.jsxRuntimeExports.jsx(h.ye,{variant:g,defaultValue:i?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===i[i.findIndex(l=>l.chartConfigId===e.chartConfigId)].columnId)].label:"",onValueChange:a=>{const l=e.allowedColumnIds[e.allowedColumnIds.findIndex(R=>R.label===a)],r={columnId:l.value,chartConfigId:e.chartConfigId},s=m?.map(R=>R.chartConfigId===r.chartConfigId?r:R);D(l.graphSettings||{}),x(s)},children:e.allowedColumnIds.map((a,l)=>o.jsxRuntimeExports.jsx(h.he,{label:a.label,value:a.label},l))})]},u)),j?.map((e,u)=>o.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:1,flexShrink:0,flexWrap:"wrap"},className:"pb-4",children:[o.jsxRuntimeExports.jsx(h.b,{className:"mb-2",children:e.label}),e.singleSelect?o.jsxRuntimeExports.jsx(f.ja,{variant:g,options:e.availableValues,isClearable:e.clearable===void 0?!0:e.clearable,isRtl:t?.language==="ar"||t?.language==="he",isSearchable:!0,controlShouldRenderValue:!0,filterOption:f.Du(E),onChange:a=>{N(e.filter,a)},defaultValue:e.defaultValue}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(f.ja,{variant:g,options:e.availableValues,isMulti:!0,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:f.Du(E),onChange:a=>{N(e.filter,a)},defaultValue:e.defaultValue,isRtl:t?.language==="ar"||t?.language==="he"}),e.allowSelectAll?o.jsxRuntimeExports.jsx("button",{className:"bg-transparent border-0 p-0 mt-2 cursor-pointer text-primary-blue-600 dark:text-primary-blue-400",type:"button",onClick:()=>{N(e.filter,e.availableValues)},children:"Select all options"}):null]})]},u))]}):null,F!==!1&&t?.showColorScale!==!1?o.jsxRuntimeExports.jsx(se.ColorLegend,{width:t?.width,colorLegendTitle:t?.colorLegendTitle,colors:t?.colors||t?.lineColors||oe.Colors[t?.theme||"light"].categoricalColors.colors,colorDomain:t?.colorDomain||t?.labels||[],showNAColor:t?.showNAColor===void 0||t?.showNAColor===null?!0:t?.showNAColor}):null,o.jsxRuntimeExports.jsx("div",{className:`flex flex-wrap gap-4 justify-center ${t?.language==="ar"||t?.language==="he"?"flex-row-reverse":"flex-row"}`,children:w.map((e,u)=>o.jsxRuntimeExports.jsx("div",{style:{width:`calc(${100/(V||Math.min(4,w.length||0))}% - ${((V||Math.min(4,w.length||0))-1)/(V||Math.min(4,w.length||0))}rem)`,minWidth:ie.checkIfNullOrUndefined($)?"280px":`${$}px`},children:o.jsxRuntimeExports.jsx(le.GraphEl,{graph:q,graphDataConfiguration:m,graphData:P.transformDataForGraph(y?P.transformDataForAggregation(z.filterData(C,A||[]).filter(a=>a[v]===e),y.keyColumn,y.aggregationColumnsSetting):z.filterData(C,A||[]).filter(a=>a[v]===e),q,m)||[],debugMode:b,settings:{...t||{},...d,theme:t?.theme||X,width:void 0,height:void 0,relativeHeight:t?.relativeHeight||.67,minHeight:K,graphTitle:`${e}`,graphDescription:void 0,graphDownload:!1,dataDownload:!1,backgroundColor:void 0,padding:"0",footNote:void 0,sources:void 0,showColorScale:t?.showColorScale===!1?!1:F===!1},readableHeader:Q||[]})},u))})]}):o.jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center p-4",children:o.jsxRuntimeExports.jsx(ae.w,{})}),t?.sources||t?.footNote?o.jsxRuntimeExports.jsx(ne.GraphFooter,{styles:{footnote:t?.styles?.footnote,source:t?.styles?.source},classNames:{footnote:t?.classNames?.footnote,source:t?.classNames?.source},sources:t?.sources,footNote:t?.footNote,width:t?.width}):null]})}exports.GriddedGraphs=ue;
2
2
  //# sourceMappingURL=GriddedGraphs.cjs.map
@@ -6,7 +6,7 @@ import { b as A, y as B, h as J, c as na, $ as ia, P as sa } from "./checkIfMult
6
6
  import { w as da } from "./Spinner-D7rnnwnA.js";
7
7
  import { j as x, D as R } from "./DropdownSelect-BbdPQa2k.js";
8
8
  import { G as ca } from "./GraphContainer-CRqzdKu2.js";
9
- import { G as ua } from "./GraphEl-DzRon4cb.js";
9
+ import { G as ua } from "./GraphEl-BZne2JIx.js";
10
10
  import { f as ha, a as fa, b as ga, c as pa, t as ma } from "./fetchAndParseData-BpqkBPQL.js";
11
11
  import { Colors as Ca } from "./Colors.js";
12
12
  import { a as wa, t as ba } from "./transformDataForAggregation-CE3bAlHU.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./index-CHPV5EwG-CTPQjnHt.cjs"),oe=require("./Spinner-DRMBUsX7.cjs"),J=require("./index-DoY3Ga3W.cjs"),se=require("./TreeMapGraph.cjs"),le=require("./DonutChart.cjs"),ae=require("./BarGraph.cjs"),W=require("./Colors.cjs"),ce=require("./init-DU0ybBc_.cjs"),K=require("./linear-BwPAspcq.cjs");function ue(i,e){let v=0;for(let l of i)l!=null&&(l=+l)>=l&&++v;return v}function he(i){return i}var fe=Array.prototype,pe=fe.slice;function ne(i){return()=>i}function ge(i,e,v){let l;for(;;){const t=K.tickIncrement(i,e,v);if(t===l||t===0||!isFinite(t))return[i,e];t>0?(i=Math.floor(i/t)*t,e=Math.ceil(e/t)*t):t<0&&(i=Math.ceil(i*t)/t,e=Math.floor(e*t)/t),l=t}}function me(i){return Math.max(1,Math.ceil(Math.log(ue(i))/Math.LN2)+1)}function xe(){var i=he,e=J.extent,v=me;function l(t){Array.isArray(t)||(t=Array.from(t));var r,H=t.length,a,P,p=new Array(H);for(r=0;r<H;++r)p[r]=i(t[r],r,t);var b=e(p),o=b[0],n=b[1],s=v(p,o,n);if(!Array.isArray(s)){const d=n,M=+s;if(e===J.extent&&([o,n]=ge(o,n,M)),s=K.ticks(o,n,M),s[0]<=o&&(P=K.tickIncrement(o,n,M)),s[s.length-1]>=n)if(d>=n&&e===J.extent){const c=K.tickIncrement(o,n,M);isFinite(c)&&(c>0?n=(Math.floor(n/c)+1)*c:c<0&&(n=(Math.ceil(n*-c)+1)/-c))}else s.pop()}for(var x=s.length,u=0,h=x;s[u]<=o;)++u;for(;s[h-1]>n;)--h;(u||h<x)&&(s=s.slice(u,h),x=h-u);var m=new Array(x+1),y;for(r=0;r<=x;++r)y=m[r]=[],y.x0=r>0?s[r-1]:o,y.x1=r<x?s[r]:n;if(isFinite(P)){if(P>0)for(r=0;r<H;++r)(a=p[r])!=null&&o<=a&&a<=n&&m[Math.min(x,Math.floor((a-o)/P))].push(t[r]);else if(P<0){for(r=0;r<H;++r)if((a=p[r])!=null&&o<=a&&a<=n){const d=Math.floor((o-a)*P);m[Math.min(x,d+(s[d]<=a))].push(t[r])}}}else for(r=0;r<H;++r)(a=p[r])!=null&&o<=a&&a<=n&&m[ce.bisectRight(s,a,0,x)].push(t[r]);return m}return l.value=function(t){return arguments.length?(i=typeof t=="function"?t:ne(t),l):i},l.domain=function(t){return arguments.length?(e=typeof t=="function"?t:ne([t[0],t[1]]),l):e},l.thresholds=function(t){return arguments.length?(v=typeof t=="function"?t:ne(Array.isArray(t)?pe.call(t):t),l):v},l}function de(i){const e=L.compilerRuntimeExports.c(138),{data:v,graphTitle:l,sources:t,graphDescription:r,barPadding:H,showValues:a,showTicks:P,leftMargin:p,rightMargin:b,height:o,width:n,footNote:s,colors:x,padding:u,backgroundColor:h,topMargin:m,bottomMargin:y,showLabels:d,relativeHeight:M,tooltip:c,onSeriesMouseOver:w,refValues:Q,graphID:j,maxValue:U,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,numberOfBins:X,truncateBy:Y,graphType:Z,barGraphLayout:_,donutStrokeWidth:ee,sortData:N,language:A,minHeight:F,theme:ie,maxBarThickness:te,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}=i,C=ie===void 0?"light":ie;let O;e[0]!==v||e[1]!==X?(O=xe().thresholds(X||10).value(ye)(v).map(Me),e[0]=v,e[1]=X,e[2]=O):O=e[2];const $=O;if($.length===0){const g=`${n}px`,f=`${o}px`;let B;e[3]!==g||e[4]!==f?(B={width:g,height:f,margin:"auto"},e[3]=g,e[4]=f,e[5]=B):B=e[5];let I;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=L.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:L.jsxRuntimeExports.jsx(oe.w,{})}),e[6]=I):I=e[6];let z;return e[7]!==B?(z=L.jsxRuntimeExports.jsx("div",{style:B,children:I}),e[7]=B,e[8]=z):z=e[8],z}if(Z==="circlePacking"){const g=x||W.Colors.graphMainColor;let f;return e[9]!==E||e[10]!==h||e[11]!==y||e[12]!==D||e[13]!==q||e[14]!==$||e[15]!==R||e[16]!==s||e[17]!==r||e[18]!==S||e[19]!==j||e[20]!==l||e[21]!==o||e[22]!==A||e[23]!==p||e[24]!==F||e[25]!==k||e[26]!==w||e[27]!==u||e[28]!==T||e[29]!==M||e[30]!==b||e[31]!==d||e[32]!==a||e[33]!==t||e[34]!==G||e[35]!==g||e[36]!==C||e[37]!==c||e[38]!==m||e[39]!==n?(f=L.jsxRuntimeExports.jsx(J.CirclePackingGraph,{colors:g,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,language:A,minHeight:F,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[9]=E,e[10]=h,e[11]=y,e[12]=D,e[13]=q,e[14]=$,e[15]=R,e[16]=s,e[17]=r,e[18]=S,e[19]=j,e[20]=l,e[21]=o,e[22]=A,e[23]=p,e[24]=F,e[25]=k,e[26]=w,e[27]=u,e[28]=T,e[29]=M,e[30]=b,e[31]=d,e[32]=a,e[33]=t,e[34]=G,e[35]=g,e[36]=C,e[37]=c,e[38]=m,e[39]=n,e[40]=f):f=e[40],f}if(Z==="treeMap"){const g=x||W.Colors.graphMainColor;let f;return e[41]!==E||e[42]!==h||e[43]!==y||e[44]!==D||e[45]!==q||e[46]!==$||e[47]!==R||e[48]!==s||e[49]!==r||e[50]!==S||e[51]!==j||e[52]!==l||e[53]!==o||e[54]!==A||e[55]!==p||e[56]!==F||e[57]!==k||e[58]!==w||e[59]!==u||e[60]!==T||e[61]!==M||e[62]!==b||e[63]!==d||e[64]!==a||e[65]!==t||e[66]!==G||e[67]!==g||e[68]!==C||e[69]!==c||e[70]!==m||e[71]!==n?(f=L.jsxRuntimeExports.jsx(se.TreeMapGraph,{colors:g,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,language:A,minHeight:F,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[41]=E,e[42]=h,e[43]=y,e[44]=D,e[45]=q,e[46]=$,e[47]=R,e[48]=s,e[49]=r,e[50]=S,e[51]=j,e[52]=l,e[53]=o,e[54]=A,e[55]=p,e[56]=F,e[57]=k,e[58]=w,e[59]=u,e[60]=T,e[61]=M,e[62]=b,e[63]=d,e[64]=a,e[65]=t,e[66]=G,e[67]=g,e[68]=C,e[69]=c,e[70]=m,e[71]=n,e[72]=f):f=e[72],f}if(Z==="donutChart"){const g=x||W.Colors[C].categoricalColors.colors,f=n&&o?n<o?n:o:n||o||void 0,B=$;let I;return e[73]!==E||e[74]!==h||e[75]!==D||e[76]!==q||e[77]!==R||e[78]!==ee||e[79]!==s||e[80]!==r||e[81]!==S||e[82]!==j||e[83]!==l||e[84]!==A||e[85]!==k||e[86]!==w||e[87]!==u||e[88]!==T||e[89]!==N||e[90]!==t||e[91]!==G||e[92]!==g||e[93]!==f||e[94]!==B||e[95]!==C||e[96]!==c?(I=L.jsxRuntimeExports.jsx(le.DonutChart,{colors:g,graphTitle:l,graphDescription:r,footNote:s,radius:f,sources:t,backgroundColor:h,padding:u,tooltip:c,onSeriesMouseOver:w,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:B,strokeWidth:ee,showColorScale:!0,sortData:N,language:A,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[73]=E,e[74]=h,e[75]=D,e[76]=q,e[77]=R,e[78]=ee,e[79]=s,e[80]=r,e[81]=S,e[82]=j,e[83]=l,e[84]=A,e[85]=k,e[86]=w,e[87]=u,e[88]=T,e[89]=N,e[90]=t,e[91]=G,e[92]=g,e[93]=f,e[94]=B,e[95]=C,e[96]=c,e[97]=I):I=e[97],I}const re=x||W.Colors.graphMainColor;let V;return e[98]!==E||e[99]!==h||e[100]!==_||e[101]!==H||e[102]!==y||e[103]!==D||e[104]!==q||e[105]!==$||e[106]!==R||e[107]!==s||e[108]!==r||e[109]!==S||e[110]!==j||e[111]!==l||e[112]!==o||e[113]!==A||e[114]!==p||e[115]!==te||e[116]!==U||e[117]!==F||e[118]!==k||e[119]!==w||e[120]!==u||e[121]!==T||e[122]!==Q||e[123]!==M||e[124]!==b||e[125]!==d||e[126]!==P||e[127]!==a||e[128]!==N||e[129]!==t||e[130]!==G||e[131]!==re||e[132]!==C||e[133]!==c||e[134]!==m||e[135]!==Y||e[136]!==n?(V=L.jsxRuntimeExports.jsx(ae.SimpleBarGraph,{colors:re,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,barPadding:H,refValues:Q,truncateBy:Y,maxValue:U,showTicks:P,sortData:N,language:A,minHeight:F,theme:C,maxBarThickness:te,ariaLabel:E,orientation:_,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[98]=E,e[99]=h,e[100]=_,e[101]=H,e[102]=y,e[103]=D,e[104]=q,e[105]=$,e[106]=R,e[107]=s,e[108]=r,e[109]=S,e[110]=j,e[111]=l,e[112]=o,e[113]=A,e[114]=p,e[115]=te,e[116]=U,e[117]=F,e[118]=k,e[119]=w,e[120]=u,e[121]=T,e[122]=Q,e[123]=M,e[124]=b,e[125]=d,e[126]=P,e[127]=a,e[128]=N,e[129]=t,e[130]=G,e[131]=re,e[132]=C,e[133]=c,e[134]=m,e[135]=Y,e[136]=n,e[137]=V):V=e[137],V}function Me(i){return{label:`${i.x0}-${i.x1}`,size:i.length,data:{options:`${i.x0}-${i.x1}`,frequency:i.length}}}function ye(i){return i.value}exports.Histogram=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./index-CHPV5EwG-CTPQjnHt.cjs"),oe=require("./Spinner-DRMBUsX7.cjs"),J=require("./index-C6LorfZ-.cjs"),se=require("./TreeMapGraph.cjs"),le=require("./DonutChart.cjs"),ae=require("./BarGraph.cjs"),W=require("./Colors.cjs"),ce=require("./init-DU0ybBc_.cjs"),K=require("./linear-BwPAspcq.cjs");function ue(i,e){let v=0;for(let l of i)l!=null&&(l=+l)>=l&&++v;return v}function he(i){return i}var fe=Array.prototype,pe=fe.slice;function ne(i){return()=>i}function ge(i,e,v){let l;for(;;){const t=K.tickIncrement(i,e,v);if(t===l||t===0||!isFinite(t))return[i,e];t>0?(i=Math.floor(i/t)*t,e=Math.ceil(e/t)*t):t<0&&(i=Math.ceil(i*t)/t,e=Math.floor(e*t)/t),l=t}}function me(i){return Math.max(1,Math.ceil(Math.log(ue(i))/Math.LN2)+1)}function xe(){var i=he,e=J.extent,v=me;function l(t){Array.isArray(t)||(t=Array.from(t));var r,H=t.length,a,P,p=new Array(H);for(r=0;r<H;++r)p[r]=i(t[r],r,t);var b=e(p),o=b[0],n=b[1],s=v(p,o,n);if(!Array.isArray(s)){const d=n,M=+s;if(e===J.extent&&([o,n]=ge(o,n,M)),s=K.ticks(o,n,M),s[0]<=o&&(P=K.tickIncrement(o,n,M)),s[s.length-1]>=n)if(d>=n&&e===J.extent){const c=K.tickIncrement(o,n,M);isFinite(c)&&(c>0?n=(Math.floor(n/c)+1)*c:c<0&&(n=(Math.ceil(n*-c)+1)/-c))}else s.pop()}for(var x=s.length,u=0,h=x;s[u]<=o;)++u;for(;s[h-1]>n;)--h;(u||h<x)&&(s=s.slice(u,h),x=h-u);var m=new Array(x+1),y;for(r=0;r<=x;++r)y=m[r]=[],y.x0=r>0?s[r-1]:o,y.x1=r<x?s[r]:n;if(isFinite(P)){if(P>0)for(r=0;r<H;++r)(a=p[r])!=null&&o<=a&&a<=n&&m[Math.min(x,Math.floor((a-o)/P))].push(t[r]);else if(P<0){for(r=0;r<H;++r)if((a=p[r])!=null&&o<=a&&a<=n){const d=Math.floor((o-a)*P);m[Math.min(x,d+(s[d]<=a))].push(t[r])}}}else for(r=0;r<H;++r)(a=p[r])!=null&&o<=a&&a<=n&&m[ce.bisectRight(s,a,0,x)].push(t[r]);return m}return l.value=function(t){return arguments.length?(i=typeof t=="function"?t:ne(t),l):i},l.domain=function(t){return arguments.length?(e=typeof t=="function"?t:ne([t[0],t[1]]),l):e},l.thresholds=function(t){return arguments.length?(v=typeof t=="function"?t:ne(Array.isArray(t)?pe.call(t):t),l):v},l}function de(i){const e=L.compilerRuntimeExports.c(138),{data:v,graphTitle:l,sources:t,graphDescription:r,barPadding:H,showValues:a,showTicks:P,leftMargin:p,rightMargin:b,height:o,width:n,footNote:s,colors:x,padding:u,backgroundColor:h,topMargin:m,bottomMargin:y,showLabels:d,relativeHeight:M,tooltip:c,onSeriesMouseOver:w,refValues:Q,graphID:j,maxValue:U,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,numberOfBins:X,truncateBy:Y,graphType:Z,barGraphLayout:_,donutStrokeWidth:ee,sortData:N,language:A,minHeight:F,theme:ie,maxBarThickness:te,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}=i,C=ie===void 0?"light":ie;let O;e[0]!==v||e[1]!==X?(O=xe().thresholds(X||10).value(ye)(v).map(Me),e[0]=v,e[1]=X,e[2]=O):O=e[2];const $=O;if($.length===0){const g=`${n}px`,f=`${o}px`;let B;e[3]!==g||e[4]!==f?(B={width:g,height:f,margin:"auto"},e[3]=g,e[4]=f,e[5]=B):B=e[5];let I;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=L.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:L.jsxRuntimeExports.jsx(oe.w,{})}),e[6]=I):I=e[6];let z;return e[7]!==B?(z=L.jsxRuntimeExports.jsx("div",{style:B,children:I}),e[7]=B,e[8]=z):z=e[8],z}if(Z==="circlePacking"){const g=x||W.Colors.graphMainColor;let f;return e[9]!==E||e[10]!==h||e[11]!==y||e[12]!==D||e[13]!==q||e[14]!==$||e[15]!==R||e[16]!==s||e[17]!==r||e[18]!==S||e[19]!==j||e[20]!==l||e[21]!==o||e[22]!==A||e[23]!==p||e[24]!==F||e[25]!==k||e[26]!==w||e[27]!==u||e[28]!==T||e[29]!==M||e[30]!==b||e[31]!==d||e[32]!==a||e[33]!==t||e[34]!==G||e[35]!==g||e[36]!==C||e[37]!==c||e[38]!==m||e[39]!==n?(f=L.jsxRuntimeExports.jsx(J.CirclePackingGraph,{colors:g,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,language:A,minHeight:F,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[9]=E,e[10]=h,e[11]=y,e[12]=D,e[13]=q,e[14]=$,e[15]=R,e[16]=s,e[17]=r,e[18]=S,e[19]=j,e[20]=l,e[21]=o,e[22]=A,e[23]=p,e[24]=F,e[25]=k,e[26]=w,e[27]=u,e[28]=T,e[29]=M,e[30]=b,e[31]=d,e[32]=a,e[33]=t,e[34]=G,e[35]=g,e[36]=C,e[37]=c,e[38]=m,e[39]=n,e[40]=f):f=e[40],f}if(Z==="treeMap"){const g=x||W.Colors.graphMainColor;let f;return e[41]!==E||e[42]!==h||e[43]!==y||e[44]!==D||e[45]!==q||e[46]!==$||e[47]!==R||e[48]!==s||e[49]!==r||e[50]!==S||e[51]!==j||e[52]!==l||e[53]!==o||e[54]!==A||e[55]!==p||e[56]!==F||e[57]!==k||e[58]!==w||e[59]!==u||e[60]!==T||e[61]!==M||e[62]!==b||e[63]!==d||e[64]!==a||e[65]!==t||e[66]!==G||e[67]!==g||e[68]!==C||e[69]!==c||e[70]!==m||e[71]!==n?(f=L.jsxRuntimeExports.jsx(se.TreeMapGraph,{colors:g,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,language:A,minHeight:F,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[41]=E,e[42]=h,e[43]=y,e[44]=D,e[45]=q,e[46]=$,e[47]=R,e[48]=s,e[49]=r,e[50]=S,e[51]=j,e[52]=l,e[53]=o,e[54]=A,e[55]=p,e[56]=F,e[57]=k,e[58]=w,e[59]=u,e[60]=T,e[61]=M,e[62]=b,e[63]=d,e[64]=a,e[65]=t,e[66]=G,e[67]=g,e[68]=C,e[69]=c,e[70]=m,e[71]=n,e[72]=f):f=e[72],f}if(Z==="donutChart"){const g=x||W.Colors[C].categoricalColors.colors,f=n&&o?n<o?n:o:n||o||void 0,B=$;let I;return e[73]!==E||e[74]!==h||e[75]!==D||e[76]!==q||e[77]!==R||e[78]!==ee||e[79]!==s||e[80]!==r||e[81]!==S||e[82]!==j||e[83]!==l||e[84]!==A||e[85]!==k||e[86]!==w||e[87]!==u||e[88]!==T||e[89]!==N||e[90]!==t||e[91]!==G||e[92]!==g||e[93]!==f||e[94]!==B||e[95]!==C||e[96]!==c?(I=L.jsxRuntimeExports.jsx(le.DonutChart,{colors:g,graphTitle:l,graphDescription:r,footNote:s,radius:f,sources:t,backgroundColor:h,padding:u,tooltip:c,onSeriesMouseOver:w,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:B,strokeWidth:ee,showColorScale:!0,sortData:N,language:A,theme:C,ariaLabel:E,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[73]=E,e[74]=h,e[75]=D,e[76]=q,e[77]=R,e[78]=ee,e[79]=s,e[80]=r,e[81]=S,e[82]=j,e[83]=l,e[84]=A,e[85]=k,e[86]=w,e[87]=u,e[88]=T,e[89]=N,e[90]=t,e[91]=G,e[92]=g,e[93]=f,e[94]=B,e[95]=C,e[96]=c,e[97]=I):I=e[97],I}const re=x||W.Colors.graphMainColor;let V;return e[98]!==E||e[99]!==h||e[100]!==_||e[101]!==H||e[102]!==y||e[103]!==D||e[104]!==q||e[105]!==$||e[106]!==R||e[107]!==s||e[108]!==r||e[109]!==S||e[110]!==j||e[111]!==l||e[112]!==o||e[113]!==A||e[114]!==p||e[115]!==te||e[116]!==U||e[117]!==F||e[118]!==k||e[119]!==w||e[120]!==u||e[121]!==T||e[122]!==Q||e[123]!==M||e[124]!==b||e[125]!==d||e[126]!==P||e[127]!==a||e[128]!==N||e[129]!==t||e[130]!==G||e[131]!==re||e[132]!==C||e[133]!==c||e[134]!==m||e[135]!==Y||e[136]!==n?(V=L.jsxRuntimeExports.jsx(ae.SimpleBarGraph,{colors:re,graphTitle:l,graphDescription:r,footNote:s,width:n,height:o,sources:t,leftMargin:p,rightMargin:b,backgroundColor:h,padding:u,topMargin:m,bottomMargin:y,relativeHeight:M,showLabels:d,tooltip:c,onSeriesMouseOver:w,showColorScale:!1,showValues:a,graphID:j,onSeriesMouseClick:k,graphDownload:S,dataDownload:q,data:$,barPadding:H,refValues:Q,truncateBy:Y,maxValue:U,showTicks:P,sortData:N,language:A,minHeight:F,theme:C,maxBarThickness:te,ariaLabel:E,orientation:_,detailsOnClick:R,styles:G,classNames:D,precision:T}),e[98]=E,e[99]=h,e[100]=_,e[101]=H,e[102]=y,e[103]=D,e[104]=q,e[105]=$,e[106]=R,e[107]=s,e[108]=r,e[109]=S,e[110]=j,e[111]=l,e[112]=o,e[113]=A,e[114]=p,e[115]=te,e[116]=U,e[117]=F,e[118]=k,e[119]=w,e[120]=u,e[121]=T,e[122]=Q,e[123]=M,e[124]=b,e[125]=d,e[126]=P,e[127]=a,e[128]=N,e[129]=t,e[130]=G,e[131]=re,e[132]=C,e[133]=c,e[134]=m,e[135]=Y,e[136]=n,e[137]=V):V=e[137],V}function Me(i){return{label:`${i.x0}-${i.x1}`,size:i.length,data:{options:`${i.x0}-${i.x1}`,frequency:i.length}}}function ye(i){return i.value}exports.Histogram=de;
2
2
  //# sourceMappingURL=Histogram.cjs.map
package/dist/Histogram.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as ne, j as R } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { w as ae } from "./Spinner-D7rnnwnA.js";
3
- import { e as te, C as le } from "./index-leTnKT2q.js";
3
+ import { e as te, C as le } from "./index-Ceppbd8C.js";
4
4
  import { TreeMapGraph as se } from "./TreeMapGraph.js";
5
5
  import { DonutChart as ce } from "./DonutChart.js";
6
6
  import { SimpleBarGraph as fe } from "./BarGraph.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),E=require("react"),w=require("./parse-hMnG_lRV.cjs"),De=require("./simple-statistics-xm8c0LQQ.cjs"),$e=require("./index-Cno4Q0YE.cjs"),Oe=require("./numberFormattingFunction-02t-wJta.cjs"),Fe=require("./Tooltip-4dJo4_AF.cjs"),T=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-CMF5g-C3.cjs"),Te=require("./AxisTitle-sS5bLLR7.cjs"),We=require("./Axis-DxRV2yMi.cjs"),He=require("./ReferenceLine-BH0qdf4R.cjs"),Ge=require("./RegressionLine-BOTTNSrr.cjs"),Pe=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Ye=require("./index-B_sAFsEV.cjs"),Ue=require("./time-CZd5YLSP.cjs"),Xe=require("./linear-BwPAspcq.cjs"),Ae=require("./line-DHV4JwCR.cjs"),be=require("./step-BZ3C8QFW.cjs"),Be=require("./area-D3Qx7k7K.cjs"),ze=require("./select-Bnfk0lJx.cjs"),Je=require("./init-DU0ybBc_.cjs"),Ke=require("./pointer-Dkq5NV1q.cjs"),Qe=require("./use-in-view-QcfiW0w3.cjs"),O=require("./proxy-BxvUI_9l.cjs"),Ze=require("./GraphFooter.cjs"),_e=require("./GraphHeader.cjs"),Le=require("./Colors.cjs"),ti=require("./ColorLegend.cjs"),ei=require("./EmptyState-sAEZ_5rU.cjs"),Ne=require("./GraphContainer-d8A46BK2.cjs");function ii(n){const t=i.compilerRuntimeExports.c(102),{data:A,width:z,height:qt,lineColor:b,suffix:V,prefix:C,dateFormat:l,highlightAreaSettings:h,showValues:$t,noOfXTicks:me,rightMargin:Ft,leftMargin:S,topMargin:Tt,bottomMargin:xt,tooltip:J,onSeriesMouseOver:Wt,refValues:_t,minValue:te,maxValue:mt,animate:o,rtl:pt,strokeWidth:K,showDots:ee,annotations:ie,customHighlightAreaSettings:dt,regressionLine:ht,showIntervalDots:ne,showIntervalValues:pe,intervalLineStrokeWidth:Ht,intervalLineColors:R,intervalAreaColor:Gt,intervalAreaOpacity:Pt,yAxisTitle:ft,noOfYTicks:de,minDate:oe,maxDate:se,curveType:yt,styles:f,classNames:y,precision:D,customLayers:W}=n,gt=E.useRef(null);let H;t[0]!==o.amount||t[1]!==o.once?(H={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=H):H=t[2];const c=Qe.useInView(gt,H),[m,ae]=E.useState(!1);let vt,Q;t[3]!==o.duration||t[4]!==m||t[5]!==c?(vt=()=>{if(c&&!m){const e=setTimeout(()=>{ae(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},Q=[c,m,o.duration],t[3]=o.duration,t[4]=m,t[5]=c,t[6]=vt,t[7]=Q):(vt=t[6],Q=t[7]),E.useEffect(vt,Q);const Z=yt==="linear"?Ae.curveLinear:yt==="step"?be.curveStep:yt==="stepAfter"?be.stepAfter:yt==="stepBefore"?be.stepBefore:be.monotoneX,[L,jt]=E.useState(void 0),[G,re]=E.useState(void 0),[x,p]=E.useState(void 0),Yt=ft?S+30:S;let P;t[8]!==xt||t[9]!==Ft||t[10]!==Yt||t[11]!==Tt?(P={top:Tt,bottom:xt,left:Yt,right:Ft},t[8]=xt,t[9]=Ft,t[10]=Yt,t[11]=Tt,t[12]=P):P=t[12];const v=P,_=E.useRef(null);let tt;t[13]!==l?(tt=e=>({date:w.parse(`${e.date}`,l,new Date),y:e.y,yMin:T.checkIfNullOrUndefined(e.yMin)?e.y:e.yMin,yMax:T.checkIfNullOrUndefined(e.yMax)?e.y:e.yMax,data:e.data}),t[13]=l,t[14]=tt):tt=t[14];const a=$e.orderBy(A.filter(fi).map(tt),["date"],["asc"]);let et;if(t[15]!==l||t[16]!==h){let e;t[18]!==l?(e=d=>({...d,coordinates:[d.coordinates[0]===null?null:w.parse(`${d.coordinates[0]}`,l,new Date),d.coordinates[1]===null?null:w.parse(`${d.coordinates[1]}`,l,new Date)]}),t[18]=l,t[19]=e):e=t[19],et=h.map(e),t[15]=l,t[16]=h,t[17]=et}else et=t[17];const wt=et;let it;if(t[20]!==dt||t[21]!==l){let e;t[23]!==l?(e=d=>({...d,coordinates:d.coordinates.map((B,Zt)=>Zt%2===0?w.parse(`${B}`,l,new Date):B)}),t[23]=l,t[24]=e):e=t[24],it=dt.map(e),t[20]=dt,t[21]=l,t[22]=it}else it=t[22];const le=it,u=z-v.left-v.right,g=qt-v.top-v.bottom,Ut=oe?w.parse(`${oe}`,l,new Date):a[0].date,ce=se?w.parse(`${se}`,l,new Date):a[a.length-1].date,j=T.checkIfNullOrUndefined(te)?Math.min(...a.map(hi))?Math.min(...a.map(di))>0?0:Math.min(...a.map(pi)):0:te,Y=Math.max(...a.map(mi))?Math.max(...a.map(xi)):0,s=Ue.time().domain([Ut,ce]).range([0,u]);let nt;t[25]!==Y||t[26]!==mt?(nt=T.checkIfNullOrUndefined(mt)?Y>0?Y:0:mt,t[25]=Y,t[26]=mt,t[27]=nt):nt=t[27];const r=Xe.linear().domain([j,nt]).range([g,0]).nice(),Xt=Ae.line().x(e=>s(e.date)).y(e=>r(e.y)).curve(Z),Rt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMin)).curve(Z),Bt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMax)).curve(Z),zt=Be.area().x(e=>s(e.date)).y0(e=>r(e.yMin)).y1(e=>r(e.yMax)).curve(Z),Jt=r.ticks(de),Kt=s.ticks(me);E.useEffect(()=>{const e=B=>{const Zt=a[Je.bisectCenter(a.map(ui),s.invert(Ke.pointer(B)[0]),0)];jt(Zt||a[a.length-1]),Wt?.(Zt||a[a.length-1]),p(B.clientY),re(B.clientX)},d=()=>{jt(void 0),re(void 0),p(void 0),Wt?.(void 0)};ze.select(_.current).on("mousemove",e).on("mouseout",d)},[s,a,Wt]);const Qt=De.linearRegression(a.filter(ci).map(e=>[s(e.date),r(e.y)])),Et=De.linearRegressionLine(Qt);let M;t[28]!==o||t[29]!==g||t[30]!==u||t[31]!==wt||t[32]!==c||t[33]!==s?(M=i.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:wt,width:u,height:g,scale:s,animate:o,isInView:c}),t[28]=o,t[29]=g,t[30]=u,t[31]=wt,t[32]=c,t[33]=s,t[34]=M):M=t[34];const Ct=f?.yAxis?.gridLines,Mt=f?.yAxis?.labels;let ot;t[35]!==Ct||t[36]!==Mt?(ot={gridLines:Ct,labels:Mt},t[35]=Ct,t[36]=Mt,t[37]=ot):ot=t[37];const st=y?.yAxis?.gridLines,Ot=y?.yAxis?.labels;let U;t[38]!==st||t[39]!==Ot?(U={gridLines:st,labels:Ot},t[38]=st,t[39]=Ot,t[40]=U):U=t[40];const At=r(j<0?0:j),bt=r(j<0?0:j),Lt=0-S,kt=u+v.right,It=j<0?0:j;let k;t[41]!==D||t[42]!==C||t[43]!==V||t[44]!==It?(k=Oe.numberFormattingFunction(It,"NA",D,C,V),t[41]=D,t[42]=C,t[43]=V,t[44]=It,t[45]=k):k=t[45];const Vt=0-S,at=r(j<0?0:j),ue=Y<0?"1em":-5;let I;t[46]!==Vt||t[47]!==at||t[48]!==ue?(I={x:Vt,y:at,dx:0,dy:ue},t[46]=Vt,t[47]=at,t[48]=ue,t[49]=I):I=t[49];const xe=y?.xAxis?.axis,St=y?.yAxis?.labels;let X;t[50]!==xe||t[51]!==St?(X={axis:xe,label:St},t[50]=xe,t[51]=St,t[52]=X):X=t[52];const rt=f?.xAxis?.axis,lt=f?.yAxis?.labels;let N;t[53]!==rt||t[54]!==lt?(N={axis:rt,label:lt},t[53]=rt,t[54]=lt,t[55]=N):N=t[55];let ct;t[56]!==At||t[57]!==bt||t[58]!==Lt||t[59]!==kt||t[60]!==k||t[61]!==I||t[62]!==X||t[63]!==N?(ct=i.jsxRuntimeExports.jsx(We.Axis,{y1:At,y2:bt,x1:Lt,x2:kt,label:k,labelPos:I,classNames:X,styles:N}),t[56]=At,t[57]=bt,t[58]=Lt,t[59]=kt,t[60]=k,t[61]=I,t[62]=X,t[63]=N,t[64]=ct):ct=t[64];const q=0-S+15,$=g/2,F=f?.yAxis?.title,ut=y?.yAxis?.title;let Dt;t[65]!==q||t[66]!==$||t[67]!==F||t[68]!==ut||t[69]!==ft?(Dt=i.jsxRuntimeExports.jsx(Te.AxisTitle,{x:q,y:$,style:F,className:ut,text:ft,rotate90:!0}),t[65]=q,t[66]=$,t[67]=F,t[68]=ut,t[69]=ft,t[70]=Dt):Dt=t[70];let Nt;t[71]!==W?(Nt=W.filter(ai).map(si),t[71]=W,t[72]=Nt):Nt=t[72];let he;t[73]!==Gt?(he={fill:Gt},t[73]=Gt,t[74]=he):he=t[74];let fe;t[75]!==o.duration?(fe={opacity:0,transition:{duration:o.duration}},t[75]=o.duration,t[76]=fe):fe=t[76];let ye;t[77]!==b||t[78]!==K?(ye={stroke:b,fill:"none",strokeWidth:K},t[77]=b,t[78]=K,t[79]=ye):ye=t[79];let ge;t[80]!==o.duration?(ge={opacity:0,transition:{duration:o.duration}},t[80]=o.duration,t[81]=ge):ge=t[81];const ke=a.map((e,d)=>i.jsxRuntimeExports.jsx(O.motion.g,{children:T.checkIfNullOrUndefined(e.y)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[ee?i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,style:{fill:b},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:r(e.y)},whileInView:{opacity:1,transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.y)}},initial:"initial",animate:c?"whileInView":"initial"}):null,ne?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[0],cx:s(e.date),cy:r(e.yMin)},whileInView:{opacity:1,transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.yMin),fill:R[0]}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[1],cx:s(e.date),cy:r(e.yMax)},whileInView:{opacity:1,fill:R[1],transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.yMax)}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,$t?i.jsxRuntimeExports.jsx(O.motion.text,{dy:-8,style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("graph-value text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:b,x:s(e.date),y:r(e.y)},whileInView:{opacity:1,x:s(e.date),fill:b,y:r(e.y),transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.y,"NA",D,C,V)}):null,pe?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.text,{dy:"1em",style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[0],x:s(e.date),y:r(e.yMin)},whileInView:{opacity:1,x:s(e.date),y:r(e.yMin),fill:R[0],transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMin,"NA",D,C,V)}),i.jsxRuntimeExports.jsx(O.motion.text,{dy:-8,style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[1],x:s(e.date),y:r(e.yMax)},whileInView:{opacity:1,fill:R[1],x:s(e.date),y:r(e.yMax),transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMax,"NA",D,C,V)})]}):null]})},d));let ve;t[82]!==ke?(ve=i.jsxRuntimeExports.jsx("g",{children:ke}),t[82]=ke,t[83]=ve):ve=t[83];const Ie=ie.map((e,d)=>{const B=Se.getLineEndPoint({x:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date)):0,y:e.yCoordinate?r(e.yCoordinate):0},T.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Zt=e.showConnector?{y1:B.y,x1:B.x,y2:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?r(e.yCoordinate):0,cx:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date)):0,circleRadius:T.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,qe={y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:pt?0:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:pt?e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+v.right-(e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(Se.Annotation,{color:e.color,connectorsSettings:Zt,labelSettings:qe,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d)});let je;t[84]!==Ie?(je=i.jsxRuntimeExports.jsx("g",{children:Ie}),t[84]=Ie,t[85]=je):je=t[85];const Ve=ht?i.jsxRuntimeExports.jsx(Ge.RegressionLine,{x1:0,x2:u,y1:Et(0),y2:Et(u),graphHeight:g,graphWidth:u,className:y?.regLine,style:f?.regLine,color:typeof ht=="string"?ht:void 0,animate:o,isInView:c}):null;let we;t[86]!==Ve?(we=i.jsxRuntimeExports.jsx("g",{children:Ve}),t[86]=Ve,t[87]=we):we=t[87];let Re;t[88]!==W?(Re=W.filter(oi).map(ni),t[88]=W,t[89]=Re):Re=t[89];let Ee;t[90]===Symbol.for("react.memo_cache_sentinel")?(Ee={fill:"none",pointerEvents:"all"},t[90]=Ee):Ee=t[90];let Ce;t[91]!==_||t[92]!==g||t[93]!==u?(Ce=i.jsxRuntimeExports.jsx("rect",{ref:_,style:Ee,width:u,height:g}),t[91]=_,t[92]=g,t[93]=u,t[94]=Ce):Ce=t[94];let Me;return t[95]!==y?.tooltip||t[96]!==G||t[97]!==x||t[98]!==L||t[99]!==f?.tooltip||t[100]!==J?(Me=L&&J&&G&&x?i.jsxRuntimeExports.jsx(Fe.Tooltip,{data:L,body:J,xPos:G,yPos:x,backgroundStyle:f?.tooltip,className:y?.tooltip}):null,t[95]=y?.tooltip,t[96]=G,t[97]=x,t[98]=L,t[99]=f?.tooltip,t[100]=J,t[101]=Me):Me=t[101],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.svg,{width:`${z}px`,height:`${qt}px`,viewBox:`0 0 ${z} ${qt}`,direction:"ltr",ref:gt,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${v.left},${v.top})`,children:[M,i.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:le,scaleX:s,scaleY:r,animate:o,isInView:c}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(Pe.YTicksAndGridLines,{values:Jt.filter(li),y:Jt.filter(ri).map(e=>r(e)),x1:0-S,x2:u+v.right,styles:ot,classNames:U,suffix:V,prefix:C,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:D}),ct,Dt]}),i.jsxRuntimeExports.jsx("g",{children:Kt.map((e,d)=>i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("text",{y:g,x:s(e),style:{textAnchor:"middle"},className:"fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",dy:15,children:w.format(e,l)})},d))}),Nt,i.jsxRuntimeExports.jsx(O.motion.path,{style:he,exit:fe,variants:{initial:{opacity:0,d:zt(a)||""},whileInView:{opacity:Pt,d:zt(a)||"",transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),Ht?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.path,{style:{stroke:R[0],fill:"none",strokeWidth:Ht},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Rt(a)||"",opacity:1},whileInView:{pathLength:1,d:Rt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(O.motion.path,{style:{stroke:R[1],fill:"none",strokeWidth:Ht},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Bt(a)||"",opacity:1},whileInView:{pathLength:1,d:Bt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,i.jsxRuntimeExports.jsx(O.motion.path,{style:ye,exit:ge,variants:{initial:{pathLength:0,d:Xt(a)||"",opacity:1},whileInView:{pathLength:1,d:Xt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),L?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:s(L.date),x2:s(L.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",y?.mouseOverLine),style:f?.mouseOverLine}):null,ve,_t?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:_t.map((e,d)=>i.jsxRuntimeExports.jsx(He.RefLineY,{text:e.text,color:e.color,y:r(e.value),x1:0-S,x2:u+v.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d))}):null,je,we,Re,Ce]})}),Me]})}function ni(n){return n.layer}function oi(n){return n.position==="after"}function si(n){return n.layer}function ai(n){return n.position==="before"}function ri(n){return n!==0}function li(n){return n!==0}function ci(n){return!T.checkIfNullOrUndefined(n.date)&&!T.checkIfNullOrUndefined(n.y)}function ui(n){return n.date}function xi(n){return Math.max(n.y,n.yMax,n.yMin)}function mi(n){return Math.max(n.y,n.yMax,n.yMin)}function pi(n){return Math.min(n.y,n.yMax,n.yMin)}function di(n){return Math.min(n.y,n.yMax,n.yMin)}function hi(n){return Math.min(n.y,n.yMax,n.yMin)}function fi(n){return!T.checkIfNullOrUndefined(n.y)}function yi(n){const t=i.compilerRuntimeExports.c(95),{data:A,graphTitle:z,suffix:qt,sources:b,prefix:V,graphDescription:C,height:l,width:h,footNote:$t,noOfXTicks:me,dateFormat:Ft,showValues:S,backgroundColor:Tt,padding:xt,lineColor:J,leftMargin:Wt,rightMargin:_t,topMargin:te,bottomMargin:mt,tooltip:o,refValues:pt,highlightAreaSettings:K,relativeHeight:ee,onSeriesMouseOver:ie,graphID:dt,minValue:ht,maxValue:ne,regressionLine:pe,showIntervalDots:Ht,showIntervalValues:R,intervalLineStrokeWidth:Gt,intervalLineColors:Pt,intervalAreaColor:ft,intervalAreaOpacity:de,graphDownload:oe,dataDownload:se,animate:yt,language:f,minHeight:y,strokeWidth:D,showDots:W,annotations:gt,customHighlightAreaSettings:H,theme:c,ariaLabel:m,yAxisTitle:ae,noOfYTicks:vt,minDate:Q,maxDate:Z,colorLegendTitle:L,colorLegendColors:jt,colorLegendDomain:G,curveType:re,styles:x,classNames:p,precision:Yt,customLayers:P}=n,v=qt===void 0?"":qt,_=V===void 0?"":V,tt=me===void 0?10:me,a=Ft===void 0?"yyyy":Ft,et=S===void 0?!1:S,wt=Tt===void 0?!1:Tt,it=Wt===void 0?30:Wt,le=_t===void 0?30:_t,u=te===void 0?20:te,g=mt===void 0?25:mt;let Ut;t[0]!==pt?(Ut=pt===void 0?[]:pt,t[0]=pt,t[1]=Ut):Ut=t[1];const ce=Ut;let j;t[2]!==K?(j=K===void 0?[]:K,t[2]=K,t[3]=j):j=t[3];const Y=j,s=pe===void 0?!1:pe,nt=Ht===void 0?!1:Ht,r=R===void 0?!1:R,Xt=Gt===void 0?0:Gt;let Rt;t[4]!==Pt?(Rt=Pt===void 0?[Le.Colors.light.grays["gray-500"],Le.Colors.light.grays["gray-500"]]:Pt,t[4]=Pt,t[5]=Rt):Rt=t[5];const Bt=Rt,zt=ft===void 0?Le.Colors.primaryColors["blue-100"]:ft,Jt=de===void 0?.4:de,Kt=oe===void 0?!1:oe,Qt=se===void 0?!1:se,Et=yt===void 0?!1:yt,M=f===void 0?"en":f,Ct=y===void 0?0:y,Mt=D===void 0?2:D,ot=W===void 0?!0:W;let st;t[6]!==gt?(st=gt===void 0?[]:gt,t[6]=gt,t[7]=st):st=t[7];const Ot=st;let U;t[8]!==H?(U=H===void 0?[]:H,t[8]=H,t[9]=U):U=t[9];const At=U,bt=c===void 0?"light":c,Lt=vt===void 0?5:vt,kt=re===void 0?"curve":re,It=Yt===void 0?2:Yt;let k;t[10]!==P?(k=P===void 0?[]:P,t[10]=P,t[11]=k):k=t[11];const Vt=k,[at,ue]=E.useState(0),[I,xe]=E.useState(0),St=E.useRef(null),X=E.useRef(null);let rt,lt;t[12]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>{const Dt=new ResizeObserver(Nt=>{ue(Nt[0].target.clientWidth||620),xe(Nt[0].target.clientHeight||480)});return St.current&&Dt.observe(St.current),()=>Dt.disconnect()},lt=[],t[12]=rt,t[13]=lt):(rt=t[12],lt=t[13]),E.useEffect(rt,lt);const N=p?.graphContainer,ct=x?.graphContainer;let q;t[14]!==p?.description||t[15]!==p?.title||t[16]!==A||t[17]!==Qt||t[18]!==C||t[19]!==Kt||t[20]!==z||t[21]!==x?.description||t[22]!==x?.title||t[23]!==h?(q=z||C||Kt||Qt?i.jsxRuntimeExports.jsx(_e.GraphHeader,{styles:{title:x?.title,description:x?.description},classNames:{title:p?.title,description:p?.description},graphTitle:z,graphDescription:C,width:h,graphDownload:Kt?X:void 0,dataDownload:Qt?A.map(Ri).filter(wi).length>0?A.map(ji).filter(vi):A.filter(gi):null}):null,t[14]=p?.description,t[15]=p?.title,t[16]=A,t[17]=Qt,t[18]=C,t[19]=Kt,t[20]=z,t[21]=x?.description,t[22]=x?.title,t[23]=h,t[24]=q):q=t[24];let $;t[25]!==Et||t[26]!==Ot||t[27]!==g||t[28]!==p||t[29]!==jt||t[30]!==G||t[31]!==L||t[32]!==kt||t[33]!==At||t[34]!==Vt||t[35]!==A||t[36]!==a||t[37]!==Y||t[38]!==zt||t[39]!==Jt||t[40]!==Bt||t[41]!==Xt||t[42]!==M||t[43]!==it||t[44]!==J||t[45]!==Z||t[46]!==ne||t[47]!==Q||t[48]!==ht||t[49]!==tt||t[50]!==Lt||t[51]!==ie||t[52]!==It||t[53]!==_||t[54]!==ce||t[55]!==s||t[56]!==le||t[57]!==ot||t[58]!==nt||t[59]!==r||t[60]!==et||t[61]!==Mt||t[62]!==x||t[63]!==v||t[64]!==I||t[65]!==at||t[66]!==o||t[67]!==u||t[68]!==h||t[69]!==ae?($=A.length===0?i.jsxRuntimeExports.jsx(ei.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[jt&&G?i.jsxRuntimeExports.jsx(ti.ColorLegend,{width:h,colorLegendTitle:L,colors:jt,colorDomain:G,showNAColor:!1,className:p?.colorLegend}):null,i.jsxRuntimeExports.jsx(Ne.GraphArea,{ref:St,children:at&&I?i.jsxRuntimeExports.jsx(ii,{data:A,lineColor:J||Le.Colors.primaryColors["blue-600"],width:at,height:I,suffix:v,prefix:_,dateFormat:a,showValues:et,noOfXTicks:tt,leftMargin:it,rightMargin:le,topMargin:u,bottomMargin:g,tooltip:o,highlightAreaSettings:Y,onSeriesMouseOver:ie,refValues:ce,minValue:ht,maxValue:ne,animate:Et===!0?{duration:.5,once:!0,amount:.5}:Et||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:Mt,showDots:ot,annotations:Ot,customHighlightAreaSettings:At,regressionLine:s,showIntervalDots:nt,showIntervalValues:r,intervalLineStrokeWidth:Xt,intervalLineColors:Bt,intervalAreaColor:zt,intervalAreaOpacity:Jt,yAxisTitle:ae,noOfYTicks:Lt,minDate:Q,maxDate:Z,curveType:kt,styles:x,classNames:p,precision:It,customLayers:Vt}):null})]}),t[25]=Et,t[26]=Ot,t[27]=g,t[28]=p,t[29]=jt,t[30]=G,t[31]=L,t[32]=kt,t[33]=At,t[34]=Vt,t[35]=A,t[36]=a,t[37]=Y,t[38]=zt,t[39]=Jt,t[40]=Bt,t[41]=Xt,t[42]=M,t[43]=it,t[44]=J,t[45]=Z,t[46]=ne,t[47]=Q,t[48]=ht,t[49]=tt,t[50]=Lt,t[51]=ie,t[52]=It,t[53]=_,t[54]=ce,t[55]=s,t[56]=le,t[57]=ot,t[58]=nt,t[59]=r,t[60]=et,t[61]=Mt,t[62]=x,t[63]=v,t[64]=I,t[65]=at,t[66]=o,t[67]=u,t[68]=h,t[69]=ae,t[70]=$):$=t[70];let F;t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==$t||t[74]!==b||t[75]!==x?.footnote||t[76]!==x?.source||t[77]!==h?(F=b||$t?i.jsxRuntimeExports.jsx(Ze.GraphFooter,{styles:{footnote:x?.footnote,source:x?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:b,footNote:$t,width:h}):null,t[71]=p?.footnote,t[72]=p?.source,t[73]=$t,t[74]=b,t[75]=x?.footnote,t[76]=x?.source,t[77]=h,t[78]=F):F=t[78];let ut;return t[79]!==m||t[80]!==wt||t[81]!==dt||t[82]!==l||t[83]!==M||t[84]!==Ct||t[85]!==xt||t[86]!==ee||t[87]!==N||t[88]!==ct||t[89]!==q||t[90]!==$||t[91]!==F||t[92]!==bt||t[93]!==h?(ut=i.jsxRuntimeExports.jsxs(Ne.GraphContainer,{className:N,style:ct,id:dt,ref:X,"aria-label":m,backgroundColor:wt,theme:bt,language:M,minHeight:Ct,width:h,height:l,relativeHeight:ee,padding:xt,children:[q,$,F]}),t[79]=m,t[80]=wt,t[81]=dt,t[82]=l,t[83]=M,t[84]=Ct,t[85]=xt,t[86]=ee,t[87]=N,t[88]=ct,t[89]=q,t[90]=$,t[91]=F,t[92]=bt,t[93]=h,t[94]=ut):ut=t[94],ut}function gi(n){return n!==void 0}function vi(n){return n!==void 0}function ji(n){return n.data}function wi(n){return n!==void 0}function Ri(n){return n.data}exports.LineChartWithConfidenceInterval=yi;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),E=require("react"),w=require("./parse-hMnG_lRV.cjs"),Se=require("./simple-statistics-xm8c0LQQ.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Oe=require("./numberFormattingFunction-02t-wJta.cjs"),$e=require("./Tooltip-4dJo4_AF.cjs"),F=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ne=require("./customArea-CMF5g-C3.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),We=require("./Axis-DxRV2yMi.cjs"),He=require("./ReferenceLine-BH0qdf4R.cjs"),Ge=require("./RegressionLine-BOTTNSrr.cjs"),Pe=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Ye=require("./index-B_sAFsEV.cjs"),Ue=require("./time-CZd5YLSP.cjs"),Xe=require("./linear-BwPAspcq.cjs"),Ae=require("./line-DHV4JwCR.cjs"),be=require("./step-BZ3C8QFW.cjs"),Be=require("./area-D3Qx7k7K.cjs"),ze=require("./select-Bnfk0lJx.cjs"),Je=require("./init-DU0ybBc_.cjs"),Ke=require("./pointer-Dkq5NV1q.cjs"),Qe=require("./use-in-view-QcfiW0w3.cjs"),O=require("./proxy-BxvUI_9l.cjs"),Ze=require("./GraphFooter.cjs"),_e=require("./GraphHeader.cjs"),ke=require("./Colors.cjs"),ti=require("./ColorLegend.cjs"),ei=require("./EmptyState-sAEZ_5rU.cjs"),De=require("./GraphContainer-d8A46BK2.cjs"),ii=require("./getNoOfTicks-C_1CFXv_.cjs");function ni(n){const t=i.compilerRuntimeExports.c(102),{data:A,width:J,height:qt,lineColor:b,suffix:V,prefix:C,dateFormat:l,highlightAreaSettings:h,showValues:Tt,noOfXTicks:me,rightMargin:$t,leftMargin:N,topMargin:Ft,bottomMargin:xt,tooltip:K,onSeriesMouseOver:Wt,refValues:_t,minValue:te,maxValue:mt,animate:o,rtl:pt,strokeWidth:Q,showDots:ee,annotations:ie,customHighlightAreaSettings:dt,regressionLine:ht,showIntervalDots:ne,showIntervalValues:pe,intervalLineStrokeWidth:Ht,intervalLineColors:R,intervalAreaColor:Gt,intervalAreaOpacity:Pt,yAxisTitle:ft,noOfYTicks:de,minDate:oe,maxDate:se,curveType:yt,styles:f,classNames:y,precision:S,customLayers:W}=n,gt=E.useRef(null);let H;t[0]!==o.amount||t[1]!==o.once?(H={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=H):H=t[2];const c=Qe.useInView(gt,H),[m,ae]=E.useState(!1);let vt,Z;t[3]!==o.duration||t[4]!==m||t[5]!==c?(vt=()=>{if(c&&!m){const e=setTimeout(()=>{ae(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},Z=[c,m,o.duration],t[3]=o.duration,t[4]=m,t[5]=c,t[6]=vt,t[7]=Z):(vt=t[6],Z=t[7]),E.useEffect(vt,Z);const _=yt==="linear"?Ae.curveLinear:yt==="step"?be.curveStep:yt==="stepAfter"?be.stepAfter:yt==="stepBefore"?be.stepBefore:be.monotoneX,[k,jt]=E.useState(void 0),[G,re]=E.useState(void 0),[x,p]=E.useState(void 0),Yt=ft?N+30:N;let P;t[8]!==xt||t[9]!==$t||t[10]!==Yt||t[11]!==Ft?(P={top:Ft,bottom:xt,left:Yt,right:$t},t[8]=xt,t[9]=$t,t[10]=Yt,t[11]=Ft,t[12]=P):P=t[12];const v=P,tt=E.useRef(null);let et;t[13]!==l?(et=e=>({date:w.parse(`${e.date}`,l,new Date),y:e.y,yMin:F.checkIfNullOrUndefined(e.yMin)?e.y:e.yMin,yMax:F.checkIfNullOrUndefined(e.yMax)?e.y:e.yMax,data:e.data}),t[13]=l,t[14]=et):et=t[14];const a=Te.orderBy(A.filter(yi).map(et),["date"],["asc"]);let it;if(t[15]!==l||t[16]!==h){let e;t[18]!==l?(e=d=>({...d,coordinates:[d.coordinates[0]===null?null:w.parse(`${d.coordinates[0]}`,l,new Date),d.coordinates[1]===null?null:w.parse(`${d.coordinates[1]}`,l,new Date)]}),t[18]=l,t[19]=e):e=t[19],it=h.map(e),t[15]=l,t[16]=h,t[17]=it}else it=t[17];const wt=it;let nt;if(t[20]!==dt||t[21]!==l){let e;t[23]!==l?(e=d=>({...d,coordinates:d.coordinates.map((z,Zt)=>Zt%2===0?w.parse(`${z}`,l,new Date):z)}),t[23]=l,t[24]=e):e=t[24],nt=dt.map(e),t[20]=dt,t[21]=l,t[22]=nt}else nt=t[22];const le=nt,u=J-v.left-v.right,g=qt-v.top-v.bottom,Ut=oe?w.parse(`${oe}`,l,new Date):a[0].date,ce=se?w.parse(`${se}`,l,new Date):a[a.length-1].date,j=F.checkIfNullOrUndefined(te)?Math.min(...a.map(fi))?Math.min(...a.map(hi))>0?0:Math.min(...a.map(di)):0:te,Y=Math.max(...a.map(pi))?Math.max(...a.map(mi)):0,s=Ue.time().domain([Ut,ce]).range([0,u]);let ot;t[25]!==Y||t[26]!==mt?(ot=F.checkIfNullOrUndefined(mt)?Y>0?Y:0:mt,t[25]=Y,t[26]=mt,t[27]=ot):ot=t[27];const r=Xe.linear().domain([j,ot]).range([g,0]).nice(),Xt=Ae.line().x(e=>s(e.date)).y(e=>r(e.y)).curve(_),Rt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMin)).curve(_),Bt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMax)).curve(_),zt=Be.area().x(e=>s(e.date)).y0(e=>r(e.yMin)).y1(e=>r(e.yMax)).curve(_),Jt=r.ticks(de),Kt=s.ticks(me);E.useEffect(()=>{const e=z=>{const Zt=a[Je.bisectCenter(a.map(xi),s.invert(Ke.pointer(z)[0]),0)];jt(Zt||a[a.length-1]),Wt?.(Zt||a[a.length-1]),p(z.clientY),re(z.clientX)},d=()=>{jt(void 0),re(void 0),p(void 0),Wt?.(void 0)};ze.select(tt.current).on("mousemove",e).on("mouseout",d)},[s,a,Wt]);const Qt=Se.linearRegression(a.filter(ui).map(e=>[s(e.date),r(e.y)])),Et=Se.linearRegressionLine(Qt);let M;t[28]!==o||t[29]!==g||t[30]!==u||t[31]!==wt||t[32]!==c||t[33]!==s?(M=i.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:wt,width:u,height:g,scale:s,animate:o,isInView:c}),t[28]=o,t[29]=g,t[30]=u,t[31]=wt,t[32]=c,t[33]=s,t[34]=M):M=t[34];const Ct=f?.yAxis?.gridLines,Mt=f?.yAxis?.labels;let st;t[35]!==Ct||t[36]!==Mt?(st={gridLines:Ct,labels:Mt},t[35]=Ct,t[36]=Mt,t[37]=st):st=t[37];const at=y?.yAxis?.gridLines,Ot=y?.yAxis?.labels;let U;t[38]!==at||t[39]!==Ot?(U={gridLines:at,labels:Ot},t[38]=at,t[39]=Ot,t[40]=U):U=t[40];const At=r(j<0?0:j),bt=r(j<0?0:j),kt=0-N,Lt=u+v.right,It=j<0?0:j;let L;t[41]!==S||t[42]!==C||t[43]!==V||t[44]!==It?(L=Oe.numberFormattingFunction(It,"NA",S,C,V),t[41]=S,t[42]=C,t[43]=V,t[44]=It,t[45]=L):L=t[45];const Vt=0-N,X=r(j<0?0:j),ue=Y<0?"1em":-5;let I;t[46]!==Vt||t[47]!==X||t[48]!==ue?(I={x:Vt,y:X,dx:0,dy:ue},t[46]=Vt,t[47]=X,t[48]=ue,t[49]=I):I=t[49];const xe=y?.xAxis?.axis,Nt=y?.yAxis?.labels;let B;t[50]!==xe||t[51]!==Nt?(B={axis:xe,label:Nt},t[50]=xe,t[51]=Nt,t[52]=B):B=t[52];const rt=f?.xAxis?.axis,lt=f?.yAxis?.labels;let D;t[53]!==rt||t[54]!==lt?(D={axis:rt,label:lt},t[53]=rt,t[54]=lt,t[55]=D):D=t[55];let ct;t[56]!==At||t[57]!==bt||t[58]!==kt||t[59]!==Lt||t[60]!==L||t[61]!==I||t[62]!==B||t[63]!==D?(ct=i.jsxRuntimeExports.jsx(We.Axis,{y1:At,y2:bt,x1:kt,x2:Lt,label:L,labelPos:I,classNames:B,styles:D}),t[56]=At,t[57]=bt,t[58]=kt,t[59]=Lt,t[60]=L,t[61]=I,t[62]=B,t[63]=D,t[64]=ct):ct=t[64];const q=0-N+15,T=g/2,$=f?.yAxis?.title,ut=y?.yAxis?.title;let St;t[65]!==q||t[66]!==T||t[67]!==$||t[68]!==ut||t[69]!==ft?(St=i.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:q,y:T,style:$,className:ut,text:ft,rotate90:!0}),t[65]=q,t[66]=T,t[67]=$,t[68]=ut,t[69]=ft,t[70]=St):St=t[70];let Dt;t[71]!==W?(Dt=W.filter(ri).map(ai),t[71]=W,t[72]=Dt):Dt=t[72];let he;t[73]!==Gt?(he={fill:Gt},t[73]=Gt,t[74]=he):he=t[74];let fe;t[75]!==o.duration?(fe={opacity:0,transition:{duration:o.duration}},t[75]=o.duration,t[76]=fe):fe=t[76];let ye;t[77]!==b||t[78]!==Q?(ye={stroke:b,fill:"none",strokeWidth:Q},t[77]=b,t[78]=Q,t[79]=ye):ye=t[79];let ge;t[80]!==o.duration?(ge={opacity:0,transition:{duration:o.duration}},t[80]=o.duration,t[81]=ge):ge=t[81];const Le=a.map((e,d)=>i.jsxRuntimeExports.jsx(O.motion.g,{children:F.checkIfNullOrUndefined(e.y)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[ee?i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,style:{fill:b},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:r(e.y)},whileInView:{opacity:1,transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.y)}},initial:"initial",animate:c?"whileInView":"initial"}):null,ne?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[0],cx:s(e.date),cy:r(e.yMin)},whileInView:{opacity:1,transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.yMin),fill:R[0]}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(O.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[1],cx:s(e.date),cy:r(e.yMax)},whileInView:{opacity:1,fill:R[1],transition:{duration:m?o.duration:.5,delay:m?0:o.duration},cx:s(e.date),cy:r(e.yMax)}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,Tt?i.jsxRuntimeExports.jsx(O.motion.text,{dy:-8,style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("graph-value text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:b,x:s(e.date),y:r(e.y)},whileInView:{opacity:1,x:s(e.date),fill:b,y:r(e.y),transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.y,"NA",S,C,V)}):null,pe?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.text,{dy:"1em",style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[0],x:s(e.date),y:r(e.yMin)},whileInView:{opacity:1,x:s(e.date),y:r(e.yMin),fill:R[0],transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMin,"NA",S,C,V)}),i.jsxRuntimeExports.jsx(O.motion.text,{dy:-8,style:{textAnchor:"middle",...f?.graphObjectValues||{}},className:i.mo("text-xs font-bold",y?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:R[1],x:s(e.date),y:r(e.yMax)},whileInView:{opacity:1,fill:R[1],x:s(e.date),y:r(e.yMax),transition:{duration:m?o.duration:.5,delay:m?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMax,"NA",S,C,V)})]}):null]})},d));let ve;t[82]!==Le?(ve=i.jsxRuntimeExports.jsx("g",{children:Le}),t[82]=Le,t[83]=ve):ve=t[83];const Ie=ie.map((e,d)=>{const z=Ne.getLineEndPoint({x:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date)):0,y:e.yCoordinate?r(e.yCoordinate):0},F.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Zt=e.showConnector?{y1:z.y,x1:z.x,y2:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?r(e.yCoordinate):0,cx:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date)):0,circleRadius:F.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,qe={y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:pt?0:e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:pt?e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+v.right-(e.xCoordinate?s(w.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(Ne.Annotation,{color:e.color,connectorsSettings:Zt,labelSettings:qe,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d)});let je;t[84]!==Ie?(je=i.jsxRuntimeExports.jsx("g",{children:Ie}),t[84]=Ie,t[85]=je):je=t[85];const Ve=ht?i.jsxRuntimeExports.jsx(Ge.RegressionLine,{x1:0,x2:u,y1:Et(0),y2:Et(u),graphHeight:g,graphWidth:u,className:y?.regLine,style:f?.regLine,color:typeof ht=="string"?ht:void 0,animate:o,isInView:c}):null;let we;t[86]!==Ve?(we=i.jsxRuntimeExports.jsx("g",{children:Ve}),t[86]=Ve,t[87]=we):we=t[87];let Re;t[88]!==W?(Re=W.filter(si).map(oi),t[88]=W,t[89]=Re):Re=t[89];let Ee;t[90]===Symbol.for("react.memo_cache_sentinel")?(Ee={fill:"none",pointerEvents:"all"},t[90]=Ee):Ee=t[90];let Ce;t[91]!==tt||t[92]!==g||t[93]!==u?(Ce=i.jsxRuntimeExports.jsx("rect",{ref:tt,style:Ee,width:u,height:g}),t[91]=tt,t[92]=g,t[93]=u,t[94]=Ce):Ce=t[94];let Me;return t[95]!==y?.tooltip||t[96]!==G||t[97]!==x||t[98]!==k||t[99]!==f?.tooltip||t[100]!==K?(Me=k&&K&&G&&x?i.jsxRuntimeExports.jsx($e.Tooltip,{data:k,body:K,xPos:G,yPos:x,backgroundStyle:f?.tooltip,className:y?.tooltip}):null,t[95]=y?.tooltip,t[96]=G,t[97]=x,t[98]=k,t[99]=f?.tooltip,t[100]=K,t[101]=Me):Me=t[101],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.svg,{width:`${J}px`,height:`${qt}px`,viewBox:`0 0 ${J} ${qt}`,direction:"ltr",ref:gt,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${v.left},${v.top})`,children:[M,i.jsxRuntimeExports.jsx(Ne.CustomArea,{areaSettings:le,scaleX:s,scaleY:r,animate:o,isInView:c}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(Pe.YTicksAndGridLines,{values:Jt.filter(ci),y:Jt.filter(li).map(e=>r(e)),x1:0-N,x2:u+v.right,styles:st,classNames:U,suffix:V,prefix:C,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:S}),ct,St]}),i.jsxRuntimeExports.jsx("g",{children:Kt.map((e,d)=>i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("text",{y:g,x:s(e),style:{textAnchor:"middle"},className:"fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",dy:15,children:w.format(e,l)})},d))}),Dt,i.jsxRuntimeExports.jsx(O.motion.path,{style:he,exit:fe,variants:{initial:{opacity:0,d:zt(a)||""},whileInView:{opacity:Pt,d:zt(a)||"",transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),Ht?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(O.motion.path,{style:{stroke:R[0],fill:"none",strokeWidth:Ht},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Rt(a)||"",opacity:1},whileInView:{pathLength:1,d:Rt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(O.motion.path,{style:{stroke:R[1],fill:"none",strokeWidth:Ht},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Bt(a)||"",opacity:1},whileInView:{pathLength:1,d:Bt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,i.jsxRuntimeExports.jsx(O.motion.path,{style:ye,exit:ge,variants:{initial:{pathLength:0,d:Xt(a)||"",opacity:1},whileInView:{pathLength:1,d:Xt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),k?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:s(k.date),x2:s(k.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",y?.mouseOverLine),style:f?.mouseOverLine}):null,ve,_t?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:_t.map((e,d)=>i.jsxRuntimeExports.jsx(He.RefLineY,{text:e.text,color:e.color,y:r(e.value),x1:0-N,x2:u+v.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d))}):null,je,we,Re,Ce]})}),Me]})}function oi(n){return n.layer}function si(n){return n.position==="after"}function ai(n){return n.layer}function ri(n){return n.position==="before"}function li(n){return n!==0}function ci(n){return n!==0}function ui(n){return!F.checkIfNullOrUndefined(n.date)&&!F.checkIfNullOrUndefined(n.y)}function xi(n){return n.date}function mi(n){return Math.max(n.y,n.yMax,n.yMin)}function pi(n){return Math.max(n.y,n.yMax,n.yMin)}function di(n){return Math.min(n.y,n.yMax,n.yMin)}function hi(n){return Math.min(n.y,n.yMax,n.yMin)}function fi(n){return Math.min(n.y,n.yMax,n.yMin)}function yi(n){return!F.checkIfNullOrUndefined(n.y)}function gi(n){const t=i.compilerRuntimeExports.c(95),{data:A,graphTitle:J,suffix:qt,sources:b,prefix:V,graphDescription:C,height:l,width:h,footNote:Tt,noOfXTicks:me,dateFormat:$t,showValues:N,backgroundColor:Ft,padding:xt,lineColor:K,leftMargin:Wt,rightMargin:_t,topMargin:te,bottomMargin:mt,tooltip:o,refValues:pt,highlightAreaSettings:Q,relativeHeight:ee,onSeriesMouseOver:ie,graphID:dt,minValue:ht,maxValue:ne,regressionLine:pe,showIntervalDots:Ht,showIntervalValues:R,intervalLineStrokeWidth:Gt,intervalLineColors:Pt,intervalAreaColor:ft,intervalAreaOpacity:de,graphDownload:oe,dataDownload:se,animate:yt,language:f,minHeight:y,strokeWidth:S,showDots:W,annotations:gt,customHighlightAreaSettings:H,theme:c,ariaLabel:m,yAxisTitle:ae,noOfYTicks:vt,minDate:Z,maxDate:_,colorLegendTitle:k,colorLegendColors:jt,colorLegendDomain:G,curveType:re,styles:x,classNames:p,precision:Yt,customLayers:P}=n,v=qt===void 0?"":qt,tt=V===void 0?"":V,et=me===void 0?10:me,a=$t===void 0?"yyyy":$t,it=N===void 0?!1:N,wt=Ft===void 0?!1:Ft,nt=Wt===void 0?30:Wt,le=_t===void 0?30:_t,u=te===void 0?20:te,g=mt===void 0?25:mt;let Ut;t[0]!==pt?(Ut=pt===void 0?[]:pt,t[0]=pt,t[1]=Ut):Ut=t[1];const ce=Ut;let j;t[2]!==Q?(j=Q===void 0?[]:Q,t[2]=Q,t[3]=j):j=t[3];const Y=j,s=pe===void 0?!1:pe,ot=Ht===void 0?!1:Ht,r=R===void 0?!1:R,Xt=Gt===void 0?0:Gt;let Rt;t[4]!==Pt?(Rt=Pt===void 0?[ke.Colors.light.grays["gray-500"],ke.Colors.light.grays["gray-500"]]:Pt,t[4]=Pt,t[5]=Rt):Rt=t[5];const Bt=Rt,zt=ft===void 0?ke.Colors.primaryColors["blue-100"]:ft,Jt=de===void 0?.4:de,Kt=oe===void 0?!1:oe,Qt=se===void 0?!1:se,Et=yt===void 0?!1:yt,M=f===void 0?"en":f,Ct=y===void 0?0:y,Mt=S===void 0?2:S,st=W===void 0?!0:W;let at;t[6]!==gt?(at=gt===void 0?[]:gt,t[6]=gt,t[7]=at):at=t[7];const Ot=at;let U;t[8]!==H?(U=H===void 0?[]:H,t[8]=H,t[9]=U):U=t[9];const At=U,bt=c===void 0?"light":c,kt=vt===void 0?5:vt,Lt=re===void 0?"curve":re,It=Yt===void 0?2:Yt;let L;t[10]!==P?(L=P===void 0?[]:P,t[10]=P,t[11]=L):L=t[11];const Vt=L,[X,ue]=E.useState(0),[I,xe]=E.useState(0),Nt=E.useRef(null),B=E.useRef(null);let rt,lt;t[12]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>{const St=new ResizeObserver(Dt=>{ue(Dt[0].target.clientWidth||620),xe(Dt[0].target.clientHeight||480)});return Nt.current&&St.observe(Nt.current),()=>St.disconnect()},lt=[],t[12]=rt,t[13]=lt):(rt=t[12],lt=t[13]),E.useEffect(rt,lt);const D=p?.graphContainer,ct=x?.graphContainer;let q;t[14]!==p?.description||t[15]!==p?.title||t[16]!==A||t[17]!==Qt||t[18]!==C||t[19]!==Kt||t[20]!==J||t[21]!==x?.description||t[22]!==x?.title||t[23]!==h?(q=J||C||Kt||Qt?i.jsxRuntimeExports.jsx(_e.GraphHeader,{styles:{title:x?.title,description:x?.description},classNames:{title:p?.title,description:p?.description},graphTitle:J,graphDescription:C,width:h,graphDownload:Kt?B:void 0,dataDownload:Qt?A.map(Ei).filter(Ri).length>0?A.map(wi).filter(ji):A.filter(vi):null}):null,t[14]=p?.description,t[15]=p?.title,t[16]=A,t[17]=Qt,t[18]=C,t[19]=Kt,t[20]=J,t[21]=x?.description,t[22]=x?.title,t[23]=h,t[24]=q):q=t[24];let T;t[25]!==Et||t[26]!==Ot||t[27]!==g||t[28]!==p||t[29]!==jt||t[30]!==G||t[31]!==k||t[32]!==Lt||t[33]!==At||t[34]!==Vt||t[35]!==A||t[36]!==a||t[37]!==Y||t[38]!==zt||t[39]!==Jt||t[40]!==Bt||t[41]!==Xt||t[42]!==M||t[43]!==nt||t[44]!==K||t[45]!==_||t[46]!==ne||t[47]!==Z||t[48]!==ht||t[49]!==et||t[50]!==kt||t[51]!==ie||t[52]!==It||t[53]!==tt||t[54]!==ce||t[55]!==s||t[56]!==le||t[57]!==st||t[58]!==ot||t[59]!==r||t[60]!==it||t[61]!==Mt||t[62]!==x||t[63]!==v||t[64]!==I||t[65]!==X||t[66]!==o||t[67]!==u||t[68]!==h||t[69]!==ae?(T=A.length===0?i.jsxRuntimeExports.jsx(ei.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[jt&&G?i.jsxRuntimeExports.jsx(ti.ColorLegend,{width:h,colorLegendTitle:k,colors:jt,colorDomain:G,showNAColor:!1,className:p?.colorLegend}):null,i.jsxRuntimeExports.jsx(De.GraphArea,{ref:Nt,children:X&&I?i.jsxRuntimeExports.jsx(ni,{data:A,lineColor:K||ke.Colors.primaryColors["blue-600"],width:X,height:I,suffix:v,prefix:tt,dateFormat:a,showValues:it,noOfXTicks:et??ii.getNoOfTicks(X),leftMargin:nt,rightMargin:le,topMargin:u,bottomMargin:g,tooltip:o,highlightAreaSettings:Y,onSeriesMouseOver:ie,refValues:ce,minValue:ht,maxValue:ne,animate:Et===!0?{duration:.5,once:!0,amount:.5}:Et||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:Mt,showDots:st,annotations:Ot,customHighlightAreaSettings:At,regressionLine:s,showIntervalDots:ot,showIntervalValues:r,intervalLineStrokeWidth:Xt,intervalLineColors:Bt,intervalAreaColor:zt,intervalAreaOpacity:Jt,yAxisTitle:ae,noOfYTicks:kt,minDate:Z,maxDate:_,curveType:Lt,styles:x,classNames:p,precision:It,customLayers:Vt}):null})]}),t[25]=Et,t[26]=Ot,t[27]=g,t[28]=p,t[29]=jt,t[30]=G,t[31]=k,t[32]=Lt,t[33]=At,t[34]=Vt,t[35]=A,t[36]=a,t[37]=Y,t[38]=zt,t[39]=Jt,t[40]=Bt,t[41]=Xt,t[42]=M,t[43]=nt,t[44]=K,t[45]=_,t[46]=ne,t[47]=Z,t[48]=ht,t[49]=et,t[50]=kt,t[51]=ie,t[52]=It,t[53]=tt,t[54]=ce,t[55]=s,t[56]=le,t[57]=st,t[58]=ot,t[59]=r,t[60]=it,t[61]=Mt,t[62]=x,t[63]=v,t[64]=I,t[65]=X,t[66]=o,t[67]=u,t[68]=h,t[69]=ae,t[70]=T):T=t[70];let $;t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==Tt||t[74]!==b||t[75]!==x?.footnote||t[76]!==x?.source||t[77]!==h?($=b||Tt?i.jsxRuntimeExports.jsx(Ze.GraphFooter,{styles:{footnote:x?.footnote,source:x?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:b,footNote:Tt,width:h}):null,t[71]=p?.footnote,t[72]=p?.source,t[73]=Tt,t[74]=b,t[75]=x?.footnote,t[76]=x?.source,t[77]=h,t[78]=$):$=t[78];let ut;return t[79]!==m||t[80]!==wt||t[81]!==dt||t[82]!==l||t[83]!==M||t[84]!==Ct||t[85]!==xt||t[86]!==ee||t[87]!==D||t[88]!==ct||t[89]!==q||t[90]!==T||t[91]!==$||t[92]!==bt||t[93]!==h?(ut=i.jsxRuntimeExports.jsxs(De.GraphContainer,{className:D,style:ct,id:dt,ref:B,"aria-label":m,backgroundColor:wt,theme:bt,language:M,minHeight:Ct,width:h,height:l,relativeHeight:ee,padding:xt,children:[q,T,$]}),t[79]=m,t[80]=wt,t[81]=dt,t[82]=l,t[83]=M,t[84]=Ct,t[85]=xt,t[86]=ee,t[87]=D,t[88]=ct,t[89]=q,t[90]=T,t[91]=$,t[92]=bt,t[93]=h,t[94]=ut):ut=t[94],ut}function vi(n){return n!==void 0}function ji(n){return n!==void 0}function wi(n){return n.data}function Ri(n){return n!==void 0}function Ei(n){return n.data}exports.LineChartWithConfidenceInterval=gi;
2
2
  //# sourceMappingURL=LineChartWithConfidenceInterval.cjs.map