@undp/data-viz 2.3.3 → 2.3.5

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 (146) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/BarGraph.cjs +1 -1
  4. package/dist/BarGraph.js +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.js +1 -1
  7. package/dist/BeeSwarmChart.cjs +1 -1
  8. package/dist/BeeSwarmChart.js +2 -2
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.js +1 -1
  11. package/dist/BulletChart.cjs +1 -1
  12. package/dist/BulletChart.js +1 -1
  13. package/dist/ButterflyChart.cjs +1 -1
  14. package/dist/ButterflyChart.js +1 -1
  15. package/dist/ChoroplethMap.cjs +1 -1
  16. package/dist/ChoroplethMap.js +1 -1
  17. package/dist/CirclePackingGraph.cjs +1 -1
  18. package/dist/CirclePackingGraph.d.ts +2 -0
  19. package/dist/CirclePackingGraph.js +2 -2
  20. package/dist/ColorLegend.cjs +1 -1
  21. package/dist/ColorLegend.js +1 -1
  22. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  23. package/dist/ColorLegendWithMouseOver.js +1 -1
  24. package/dist/DataCards.cjs +1 -1
  25. package/dist/DataCards.js +2 -2
  26. package/dist/DataTable.cjs +1 -1
  27. package/dist/DataTable.js +1 -1
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.js +1 -1
  30. package/dist/DonutChart.cjs +1 -1
  31. package/dist/DonutChart.js +3 -3
  32. package/dist/DotDensityMap.cjs +1 -1
  33. package/dist/DotDensityMap.js +1 -1
  34. package/dist/DualAxisLineChart.cjs +1 -1
  35. package/dist/DualAxisLineChart.js +1 -1
  36. package/dist/DumbbellChart.cjs +1 -1
  37. package/dist/DumbbellChart.js +1 -1
  38. package/dist/{EmptyState-DX0t62iF.cjs → EmptyState-N1eHt3vq.cjs} +2 -2
  39. package/dist/{EmptyState-DX0t62iF.cjs.map → EmptyState-N1eHt3vq.cjs.map} +1 -1
  40. package/dist/{EmptyState-Pj-emXt5.js → EmptyState-dScPFkLy.js} +2 -2
  41. package/dist/{EmptyState-Pj-emXt5.js.map → EmptyState-dScPFkLy.js.map} +1 -1
  42. package/dist/FootNote.cjs +1 -1
  43. package/dist/FootNote.js +1 -1
  44. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  45. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  46. package/dist/GraphDescription.cjs +1 -1
  47. package/dist/GraphDescription.js +1 -1
  48. package/dist/{GraphEl-DDXkYObU.js → GraphEl-Bw-9MUym.js} +8 -7
  49. package/dist/GraphEl-Bw-9MUym.js.map +1 -0
  50. package/dist/{GraphEl-CWjTuiYd.cjs → GraphEl-DjElfY07.cjs} +2 -2
  51. package/dist/GraphEl-DjElfY07.cjs.map +1 -0
  52. package/dist/GraphFooter.cjs +1 -1
  53. package/dist/GraphFooter.js +1 -1
  54. package/dist/GraphTitle.cjs +1 -1
  55. package/dist/GraphTitle.js +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.d.ts +1 -0
  58. package/dist/GriddedGraphs.js +1 -1
  59. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  60. package/dist/HeatMap.cjs +1 -1
  61. package/dist/HeatMap.js +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +1 -1
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +2 -2
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.js +1 -1
  68. package/dist/LinearColorLegend.cjs +1 -1
  69. package/dist/LinearColorLegend.js +1 -1
  70. package/dist/MultiGraphDashboard.d.ts +1 -0
  71. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  72. package/dist/MultiLineAltChart.cjs +1 -1
  73. package/dist/MultiLineAltChart.js +1 -1
  74. package/dist/MultiLineChart.cjs +1 -1
  75. package/dist/MultiLineChart.js +1 -1
  76. package/dist/ParetoChart.cjs +1 -1
  77. package/dist/ParetoChart.js +1 -1
  78. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  79. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  80. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  81. package/dist/RadarChart.cjs +1 -1
  82. package/dist/RadarChart.js +1 -1
  83. package/dist/SankeyChart.cjs +1 -1
  84. package/dist/SankeyChart.js +2 -2
  85. package/dist/ScatterPlot.cjs +1 -1
  86. package/dist/ScatterPlot.js +1 -1
  87. package/dist/ScrollStory.d.ts +1 -0
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.js +1 -1
  90. package/dist/SingleGraphDashboard.cjs +1 -1
  91. package/dist/SingleGraphDashboard.d.ts +1 -0
  92. package/dist/SingleGraphDashboard.js +1 -1
  93. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  94. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  95. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  96. package/dist/SingleGraphDashboardGeoHubMaps.js +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  98. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  99. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  100. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  102. package/dist/SlopeChart.cjs +1 -1
  103. package/dist/SlopeChart.js +1 -1
  104. package/dist/{Source-B3i0Bx2R.cjs → Source-24M277ZQ.cjs} +2 -2
  105. package/dist/{Source-B3i0Bx2R.cjs.map → Source-24M277ZQ.cjs.map} +1 -1
  106. package/dist/{Source-_STIejqs.js → Source-Cu9OHOBj.js} +2 -2
  107. package/dist/{Source-_STIejqs.js.map → Source-Cu9OHOBj.js.map} +1 -1
  108. package/dist/Source.cjs +1 -1
  109. package/dist/Source.js +2 -2
  110. package/dist/StatCardFromData.cjs +1 -1
  111. package/dist/StatCardFromData.js +1 -1
  112. package/dist/StripChart.cjs +1 -1
  113. package/dist/StripChart.js +1 -1
  114. package/dist/ThreeDGlobe.cjs +1 -1
  115. package/dist/ThreeDGlobe.js +1 -1
  116. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  117. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  118. package/dist/TreeMapGraph.cjs +1 -1
  119. package/dist/TreeMapGraph.js +2 -2
  120. package/dist/Types.d.ts +1 -0
  121. package/dist/Typography-Cc_iHQB-.cjs +2 -0
  122. package/dist/Typography-Cc_iHQB-.cjs.map +1 -0
  123. package/dist/{Typography-iR8PEgdt.js → Typography-CdMGooqp.js} +4 -4
  124. package/dist/Typography-CdMGooqp.js.map +1 -0
  125. package/dist/UnitChart.cjs +1 -1
  126. package/dist/UnitChart.js +1 -1
  127. package/dist/WaterfallChart.cjs +1 -1
  128. package/dist/WaterfallChart.js +1 -1
  129. package/dist/index-BzNfurbO.js +378 -0
  130. package/dist/index-BzNfurbO.js.map +1 -0
  131. package/dist/index-CXobQn-E.cjs +2 -0
  132. package/dist/index-CXobQn-E.cjs.map +1 -0
  133. package/dist/index.cjs +1 -1
  134. package/dist/index.d.ts +3 -0
  135. package/dist/index.js +2 -2
  136. package/dist/style.css +1 -1
  137. package/package.json +3 -3
  138. package/dist/GraphEl-CWjTuiYd.cjs.map +0 -1
  139. package/dist/GraphEl-DDXkYObU.js.map +0 -1
  140. package/dist/Typography-DrJ7IOdw.cjs +0 -2
  141. package/dist/Typography-DrJ7IOdw.cjs.map +0 -1
  142. package/dist/Typography-iR8PEgdt.js.map +0 -1
  143. package/dist/index-BE-lvE4c.js +0 -337
  144. package/dist/index-BE-lvE4c.js.map +0 -1
  145. package/dist/index-DlrGwLQA.cjs +0 -2
  146. package/dist/index-DlrGwLQA.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("./index-CSNtgibC.cjs"),nt=require("./Typography-DrJ7IOdw.cjs"),rt=require("./GraphFooter.cjs"),ot=require("./GraphHeader.cjs"),g=require("./numberFormattingFunction-02t-wJta.cjs");function st(e){const t=o.compilerRuntimeExports.c(50),{year:f,data:r,graphTitle:m,suffix:W,sources:h,prefix:L,graphDescription:p,footNote:y,padding:P,backgroundColor:I,graphID:G,aggregationMethod:V,language:J,countOnly:x,theme:K,ariaLabel:it,textBackground:Q,headingFontSize:U,centerAlign:X,verticalAlign:Y,layout:Z,styles:n,classNames:i,precision:tt}=e,s=W===void 0?"":W,a=L===void 0?"":L,d=I===void 0?!1:I,l=V===void 0?"count":V,c=J===void 0?"en":J,et=K===void 0?"light":K,$=Q===void 0?!1:Q,S=U===void 0?"4.375rem":U,_=X===void 0?!1:X,w=Y===void 0?"center":Y,k=Z===void 0?"primary":Z,u=tt===void 0?2:tt,M=`${et||"light"} w-full`,T=c==="he"||c==="ar"?"rtl":void 0,q=`${et||"light"} flex flex-col w-full box-border h-full ${d?d===!0?"bg-primary-gray-200 dark:bg-primary-gray-650":"":"bg-transparent"} ${c||"en"}`,H=i?.graphContainer;let v;t[0]!==q||t[1]!==H?(v=o.mo(q,H),t[0]=q,t[1]=H,t[2]=v):v=t[2];let j;t[3]!==n?.graphContainer?(j=n?.graphContainer||{},t[3]=n?.graphContainer,t[4]=j):j=t[4];let b;t[5]!==d?(b=d&&d!==!0?{backgroundColor:d}:{},t[5]=d,t[6]=b):b=t[6];const z=d?P||"1rem":P||0;let F;t[7]!==j||t[8]!==b||t[9]!==z?(F={...j,...b,padding:z},t[7]=j,t[8]=b,t[9]=z,t[10]=F):F=t[10];const B=it||`${m?`The graph shows ${m}. `:""}This is a statistic card.${p?` ${p}`:""}`,D=`flex flex-col w-full grow ${k!=="secondary"?"gap-12 justify-between":"gap-4 justify-center"}`;let N;t[11]!==l||t[12]!==_||t[13]!==i?.description||t[14]!==i?.footnote||t[15]!==i?.source||t[16]!==i?.title||t[17]!==x||t[18]!==r||t[19]!==y||t[20]!==p||t[21]!==m||t[22]!==S||t[23]!==c||t[24]!==k||t[25]!==u||t[26]!==a||t[27]!==h||t[28]!==n?.description||t[29]!==n?.footnote||t[30]!==n?.source||t[31]!==n?.title||t[32]!==s||t[33]!==$||t[34]!==w||t[35]!==f?(N=k!=="secondary"?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[m||p?o.jsxRuntimeExports.jsx(ot.GraphHeader,{styles:{title:n?.title,description:n?.description},classNames:{title:i?.title,description:i?.description},graphTitle:m,graphDescription:p}):null,o.jsxRuntimeExports.jsx("div",{className:`flex flex-col justify-between grow ${w==="top"?"justify-start":w==="bottom"?"justify-end":"justify-center"}`,children:o.jsxRuntimeExports.jsxs(nt.R,{marginBottom:"base",className:`leading-none text-outline font-heading ${_?"text-center":c==="he"||c==="ar"?"text-right":"text-left"} ${$?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:S,letterSpacing:"0.05rem"},children:[r.filter(jt).length>0||l==="count"?x&&x?.length!==0?r.filter(O=>x.indexOf(O.value)!==-1).length:r.length:l==="sum"?g.numberFormattingFunction(C.sum(r.map(vt)),"NA",u,a,s):l==="average"?g.numberFormattingFunction(parseFloat((C.sum(r.map(yt))/r.length).toFixed(2)),"NA",u,a,s):l==="max"?g.numberFormattingFunction(Math.max(...r.map(ht).filter(ft)),"NA",u,a,s):g.numberFormattingFunction(Math.min(...r.map(gt).filter(dt)),"NA",u,a,s)," ",f?o.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",f,")"]}):null]})}),h||y?o.jsxRuntimeExports.jsx(rt.GraphFooter,{styles:{footnote:n?.footnote,source:n?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:h,footNote:y}):null]}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(nt.R,{marginBottom:k==="secondary"?"none":"base",className:`leading-none text-outline font-heading ${_?"text-center":c==="he"||c==="ar"?"text-right":"text-left"} ${$?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:S,letterSpacing:"0.05rem"},children:[r.filter(xt).length>0||l==="count"?x&&x?.length!==0?r.filter(O=>x.indexOf(O.value)!==-1).length:r.length:l==="sum"?g.numberFormattingFunction(C.sum(r.map(pt)),"NA",u,a,s):l==="average"?g.numberFormattingFunction(parseFloat((C.sum(r.map(mt))/r.length).toFixed(2)),"NA",u,a,s):l==="max"?g.numberFormattingFunction(Math.max(...r.map(ct).filter(ut)),"NA",u,a,s):g.numberFormattingFunction(Math.min(...r.map(lt).filter(at)),"NA",u,a,s)," ",f?o.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",f,")"]}):null]}),m||p?o.jsxRuntimeExports.jsx(ot.GraphHeader,{styles:{title:n?.title,description:n?.description},classNames:{title:i?.title,description:i?.description},graphTitle:m,graphDescription:p}):null,h||y?o.jsxRuntimeExports.jsx(rt.GraphFooter,{styles:{footnote:n?.footnote,source:n?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:h,footNote:y}):null]}),t[11]=l,t[12]=_,t[13]=i?.description,t[14]=i?.footnote,t[15]=i?.source,t[16]=i?.title,t[17]=x,t[18]=r,t[19]=y,t[20]=p,t[21]=m,t[22]=S,t[23]=c,t[24]=k,t[25]=u,t[26]=a,t[27]=h,t[28]=n?.description,t[29]=n?.footnote,t[30]=n?.source,t[31]=n?.title,t[32]=s,t[33]=$,t[34]=w,t[35]=f,t[36]=N):N=t[36];let R;t[37]!==D||t[38]!==N?(R=o.jsxRuntimeExports.jsx("div",{className:D,children:N}),t[37]=D,t[38]=N,t[39]=R):R=t[39];let E;t[40]!==G||t[41]!==T||t[42]!==v||t[43]!==F||t[44]!==B||t[45]!==R?(E=o.jsxRuntimeExports.jsx("div",{id:G,dir:T,className:v,style:F,"aria-label":B,children:R}),t[40]=G,t[41]=T,t[42]=v,t[43]=F,t[44]=B,t[45]=R,t[46]=E):E=t[46];let A;return t[47]!==M||t[48]!==E?(A=o.jsxRuntimeExports.jsx("div",{className:M,children:E}),t[47]=M,t[48]=E,t[49]=A):A=t[49],A}function at(e){return e!==void 0}function lt(e){return e.value}function ut(e){return e!==void 0}function ct(e){return e.value}function mt(e){return e.value}function pt(e){return e.value}function xt(e){return typeof e.value=="string"}function dt(e){return e!==void 0}function gt(e){return e.value}function ft(e){return e!==void 0}function ht(e){return e.value}function yt(e){return e.value}function vt(e){return e.value}function jt(e){return typeof e.value=="string"}exports.StatCardFromData=st;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("./index-CSNtgibC.cjs"),nt=require("./Typography-Cc_iHQB-.cjs"),rt=require("./GraphFooter.cjs"),ot=require("./GraphHeader.cjs"),g=require("./numberFormattingFunction-02t-wJta.cjs");function st(e){const t=o.compilerRuntimeExports.c(50),{year:f,data:r,graphTitle:m,suffix:W,sources:h,prefix:L,graphDescription:p,footNote:y,padding:P,backgroundColor:I,graphID:G,aggregationMethod:V,language:J,countOnly:x,theme:K,ariaLabel:it,textBackground:Q,headingFontSize:U,centerAlign:X,verticalAlign:Y,layout:Z,styles:n,classNames:i,precision:tt}=e,s=W===void 0?"":W,a=L===void 0?"":L,d=I===void 0?!1:I,l=V===void 0?"count":V,c=J===void 0?"en":J,et=K===void 0?"light":K,$=Q===void 0?!1:Q,S=U===void 0?"4.375rem":U,_=X===void 0?!1:X,w=Y===void 0?"center":Y,k=Z===void 0?"primary":Z,u=tt===void 0?2:tt,M=`${et||"light"} w-full`,T=c==="he"||c==="ar"?"rtl":void 0,q=`${et||"light"} flex flex-col w-full box-border h-full ${d?d===!0?"bg-primary-gray-200 dark:bg-primary-gray-650":"":"bg-transparent"} ${c||"en"}`,H=i?.graphContainer;let v;t[0]!==q||t[1]!==H?(v=o.mo(q,H),t[0]=q,t[1]=H,t[2]=v):v=t[2];let j;t[3]!==n?.graphContainer?(j=n?.graphContainer||{},t[3]=n?.graphContainer,t[4]=j):j=t[4];let b;t[5]!==d?(b=d&&d!==!0?{backgroundColor:d}:{},t[5]=d,t[6]=b):b=t[6];const z=d?P||"1rem":P||0;let F;t[7]!==j||t[8]!==b||t[9]!==z?(F={...j,...b,padding:z},t[7]=j,t[8]=b,t[9]=z,t[10]=F):F=t[10];const B=it||`${m?`The graph shows ${m}. `:""}This is a statistic card.${p?` ${p}`:""}`,D=`flex flex-col w-full grow ${k!=="secondary"?"gap-12 justify-between":"gap-4 justify-center"}`;let N;t[11]!==l||t[12]!==_||t[13]!==i?.description||t[14]!==i?.footnote||t[15]!==i?.source||t[16]!==i?.title||t[17]!==x||t[18]!==r||t[19]!==y||t[20]!==p||t[21]!==m||t[22]!==S||t[23]!==c||t[24]!==k||t[25]!==u||t[26]!==a||t[27]!==h||t[28]!==n?.description||t[29]!==n?.footnote||t[30]!==n?.source||t[31]!==n?.title||t[32]!==s||t[33]!==$||t[34]!==w||t[35]!==f?(N=k!=="secondary"?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[m||p?o.jsxRuntimeExports.jsx(ot.GraphHeader,{styles:{title:n?.title,description:n?.description},classNames:{title:i?.title,description:i?.description},graphTitle:m,graphDescription:p}):null,o.jsxRuntimeExports.jsx("div",{className:`flex flex-col justify-between grow ${w==="top"?"justify-start":w==="bottom"?"justify-end":"justify-center"}`,children:o.jsxRuntimeExports.jsxs(nt.R,{marginBottom:"base",className:`leading-none text-outline font-heading ${_?"text-center":c==="he"||c==="ar"?"text-right":"text-left"} ${$?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:S,letterSpacing:"0.05rem"},children:[r.filter(jt).length>0||l==="count"?x&&x?.length!==0?r.filter(O=>x.indexOf(O.value)!==-1).length:r.length:l==="sum"?g.numberFormattingFunction(C.sum(r.map(vt)),"NA",u,a,s):l==="average"?g.numberFormattingFunction(parseFloat((C.sum(r.map(yt))/r.length).toFixed(2)),"NA",u,a,s):l==="max"?g.numberFormattingFunction(Math.max(...r.map(ht).filter(ft)),"NA",u,a,s):g.numberFormattingFunction(Math.min(...r.map(gt).filter(dt)),"NA",u,a,s)," ",f?o.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",f,")"]}):null]})}),h||y?o.jsxRuntimeExports.jsx(rt.GraphFooter,{styles:{footnote:n?.footnote,source:n?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:h,footNote:y}):null]}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(nt.R,{marginBottom:k==="secondary"?"none":"base",className:`leading-none text-outline font-heading ${_?"text-center":c==="he"||c==="ar"?"text-right":"text-left"} ${$?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:S,letterSpacing:"0.05rem"},children:[r.filter(xt).length>0||l==="count"?x&&x?.length!==0?r.filter(O=>x.indexOf(O.value)!==-1).length:r.length:l==="sum"?g.numberFormattingFunction(C.sum(r.map(pt)),"NA",u,a,s):l==="average"?g.numberFormattingFunction(parseFloat((C.sum(r.map(mt))/r.length).toFixed(2)),"NA",u,a,s):l==="max"?g.numberFormattingFunction(Math.max(...r.map(ct).filter(ut)),"NA",u,a,s):g.numberFormattingFunction(Math.min(...r.map(lt).filter(at)),"NA",u,a,s)," ",f?o.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",f,")"]}):null]}),m||p?o.jsxRuntimeExports.jsx(ot.GraphHeader,{styles:{title:n?.title,description:n?.description},classNames:{title:i?.title,description:i?.description},graphTitle:m,graphDescription:p}):null,h||y?o.jsxRuntimeExports.jsx(rt.GraphFooter,{styles:{footnote:n?.footnote,source:n?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:h,footNote:y}):null]}),t[11]=l,t[12]=_,t[13]=i?.description,t[14]=i?.footnote,t[15]=i?.source,t[16]=i?.title,t[17]=x,t[18]=r,t[19]=y,t[20]=p,t[21]=m,t[22]=S,t[23]=c,t[24]=k,t[25]=u,t[26]=a,t[27]=h,t[28]=n?.description,t[29]=n?.footnote,t[30]=n?.source,t[31]=n?.title,t[32]=s,t[33]=$,t[34]=w,t[35]=f,t[36]=N):N=t[36];let R;t[37]!==D||t[38]!==N?(R=o.jsxRuntimeExports.jsx("div",{className:D,children:N}),t[37]=D,t[38]=N,t[39]=R):R=t[39];let E;t[40]!==G||t[41]!==T||t[42]!==v||t[43]!==F||t[44]!==B||t[45]!==R?(E=o.jsxRuntimeExports.jsx("div",{id:G,dir:T,className:v,style:F,"aria-label":B,children:R}),t[40]=G,t[41]=T,t[42]=v,t[43]=F,t[44]=B,t[45]=R,t[46]=E):E=t[46];let A;return t[47]!==M||t[48]!==E?(A=o.jsxRuntimeExports.jsx("div",{className:M,children:E}),t[47]=M,t[48]=E,t[49]=A):A=t[49],A}function at(e){return e!==void 0}function lt(e){return e.value}function ut(e){return e!==void 0}function ct(e){return e.value}function mt(e){return e.value}function pt(e){return e.value}function xt(e){return typeof e.value=="string"}function dt(e){return e!==void 0}function gt(e){return e.value}function ft(e){return e!==void 0}function ht(e){return e.value}function yt(e){return e.value}function vt(e){return e.value}function jt(e){return typeof e.value=="string"}exports.StatCardFromData=st;
2
2
  //# sourceMappingURL=StatCardFromData.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { c as at, m as st, j as i } from "./index-CHPV5EwG-DecW7_qr.js";
2
2
  import { s as T } from "./index-CeVNqhMO.js";
3
- import { R as nt } from "./Typography-iR8PEgdt.js";
3
+ import { R as nt } from "./Typography-CdMGooqp.js";
4
4
  import { GraphFooter as rt } from "./GraphFooter.js";
5
5
  import { GraphHeader as ot } from "./GraphHeader.js";
6
6
  import { n as g } from "./numberFormattingFunction-14YCbkN2.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-6v2a2njQ.cjs"),X=require("react"),Kt=require("./index-DQA8q5sC.cjs"),Qt=require("./index-Cno4Q0YE.cjs"),Zt=require("./Tooltip-BLa2EfMs.cjs"),mt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ht=require("./numberFormattingFunction-02t-wJta.cjs"),u=require("./Colors.cjs"),_t=require("./DetailsModal-DHttOA80.cjs"),te=require("./linear-CgUCbw9F.cjs"),wt=require("./proxy-C4-uo6nS.cjs"),ee=require("./use-in-view-C3o_ntMv.cjs"),oe=require("./index-CoobIWNj.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-B1EDxJ0S.cjs"),ne=require("./EmptyState-DX0t62iF.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),le=require("./GraphFooter.cjs"),se=require("./GraphHeader.cjs");function ie(e,t){if(e<2)return[];const i=t/(e-1);return Array.from({length:e},(D,v)=>v*i)}function ae(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,noOfTicks:st,prefix:et,suffix:at,stripType:O,highlightColor:h,dotOpacity:dt,resetSelectionOnDoubleClick:B,detailsOnClick:b,styles:f,classNames:C,valueColor:x,animate:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?20:E,xt=gt===void 0?20:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==g.amount||t[1]!==g.once?(ut={once:g.once,amount:g.amount},t[0]=g.amount,t[1]=g.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==g.duration||t[9]!==C?.graphObjectValues||t[10]!==C?.yAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==b||t[16]!==J||t[17]!==dt||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==h||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==st||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==et||t[34]!==d||t[35]!==B||t[36]!==tt||t[37]!==O||t[38]!==f?.graphObjectValues||t[39]!==f?.yAxis?.labels||t[40]!==at||t[41]!==x||t[42]!==D){const Dt=i.map(Se);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(Ne).map(De))<0?0:Math.max(...i.filter(Ie).map(ke)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Re).map(Ve))>=0?0:Math.min(...i.filter(Ee).map(Me)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([Q,0]).nice(),It=ie(st,Q);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(we).map(Ce),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:K/2,y:Et(0)},whileInView:{x:K/2,y:Et(o.position),opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:dt,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||b)&&(Kt.isEqual(M,o)&&B?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[O==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(je).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(Oe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ve).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{y:-1,height:2,variants:{initial:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(he).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(de).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(me).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},style:{textAnchor:"start",...f?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",C?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,et,at)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{y:o,x:K/2+d+5,style:{textAnchor:"start",...f?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",C?.yAxis?.labels),children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,et,at)},c)),t[8]=g.duration,t[9]=C?.graphObjectValues,t[10]=C?.yAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=b,t[16]=J,t[17]=dt,t[18]=Q,t[19]=K,t[20]=v,t[21]=h,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=st,t[30]=Y,t[31]=_,t[32]=ct,t[33]=et,t[34]=d,t[35]=B,t[36]=tt,t[37]=O,t[38]=f?.graphObjectValues,t[39]=f?.yAxis?.labels,t[40]=at,t[41]=x,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(ue).map(ce),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==C?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==f?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:f?.tooltip,className:C?.tooltip}):null,t[83]=C?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=f?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==C?.modal||t[91]!==b||t[92]!==M?(I=b&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:b,data:M,setData:jt,className:C?.modal}):null,t[90]=C?.modal,t[91]=b,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function ce(e){return e.layer}function ue(e){return e.position==="after"}function fe(e){return e.color}function pe(e){return e.color}function me(e){return e.color}function de(e){return e.color}function xe(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.color}function be(e){return e.color}function je(e){return e.color}function Ce(e){return e.layer}function we(e){return e.position==="before"}function Me(e){return e.position}function Ee(e){return!mt.checkIfNullOrUndefined(e.position)}function Ve(e){return e.position}function Re(e){return!mt.checkIfNullOrUndefined(e.position)}function ke(e){return e.position}function Ie(e){return!mt.checkIfNullOrUndefined(e.position)}function De(e){return e.position}function Ne(e){return!mt.checkIfNullOrUndefined(e.position)}function Se(e,t){return{...e,id:`${t}`}}function $e(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,prefix:st,suffix:et,stripType:at,highlightColor:O,dotOpacity:h,resetSelectionOnDoubleClick:dt,detailsOnClick:B,styles:b,classNames:f,valueColor:C,animate:x,noOfTicks:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?5:E,xt=gt===void 0?5:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==x.amount||t[1]!==x.once?(ut={once:x.once,amount:x.amount},t[0]=x.amount,t[1]=x.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==x.duration||t[9]!==f?.graphObjectValues||t[10]!==f?.xAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==B||t[16]!==J||t[17]!==h||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==O||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==g||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==st||t[34]!==d||t[35]!==dt||t[36]!==tt||t[37]!==at||t[38]!==b?.graphObjectValues||t[39]!==b?.xAxis?.labels||t[40]!==et||t[41]!==C||t[42]!==D){const Dt=i.map(ro);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(no).map(io))<0?0:Math.max(...i.filter(oo).map(eo)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(to).map(_e))>=0?0:Math.min(...i.filter(Ze).map(Qe)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([0,K]).nice(),It=ie(g,K);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(Ke).map(Je),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Et(0),y:Q/2},whileInView:{x:Et(o.position),y:Q/2,opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:h,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||B)&&(Kt.isEqual(M,o)&&dt?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[at==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(ze).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(Ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{x:-1,width:2,variants:{initial:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(We).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(He).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{x:0,variants:{initial:{opacity:0,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Le).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Te).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},style:{textAnchor:"middle",...b?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",f?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,st,et)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{x:o,y:Q/2+d,style:{textAnchor:c===0?"start":c===It.length-1?"end":"middle",...b?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",f?.xAxis?.labels),dy:"1em",children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,st,et)},c)),t[8]=x.duration,t[9]=f?.graphObjectValues,t[10]=f?.xAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=B,t[16]=J,t[17]=h,t[18]=Q,t[19]=K,t[20]=v,t[21]=O,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=g,t[30]=Y,t[31]=_,t[32]=ct,t[33]=st,t[34]=d,t[35]=dt,t[36]=tt,t[37]=at,t[38]=b?.graphObjectValues,t[39]=b?.xAxis?.labels,t[40]=et,t[41]=C,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(qe).map(Ae),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==f?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==b?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:b?.tooltip,className:f?.tooltip}):null,t[83]=f?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=b?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==f?.modal||t[91]!==B||t[92]!==M?(I=B&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:B,data:M,setData:jt,className:f?.modal}):null,t[90]=f?.modal,t[91]=B,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function Ae(e){return e.layer}function qe(e){return e.position==="after"}function Te(e){return e.color}function Fe(e){return e.color}function Pe(e){return e.color}function Le(e){return e.color}function Ue(e){return e.color}function He(e){return e.color}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.color}function Be(e){return e.color}function ze(e){return e.color}function Je(e){return e.layer}function Ke(e){return e.position==="before"}function Qe(e){return e.position}function Ze(e){return!mt.checkIfNullOrUndefined(e.position)}function _e(e){return e.position}function to(e){return!mt.checkIfNullOrUndefined(e.position)}function eo(e){return e.position}function oo(e){return!mt.checkIfNullOrUndefined(e.position)}function io(e){return e.position}function no(e){return!mt.checkIfNullOrUndefined(e.position)}function ro(e,t){return{...e,id:`${t}`}}function lo(e){const t=l.compilerRuntimeExports.c(92),{data:i,graphTitle:D,colors:v,sources:n,graphDescription:s,height:d,width:E,footNote:gt,colorDomain:rt,colorLegendTitle:Mt,radius:lt,padding:_,backgroundColor:r,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,relativeHeight:et,onSeriesMouseOver:at,showColorScale:O,highlightedDataPoints:h,graphID:dt,minValue:B,maxValue:b,onSeriesMouseClick:f,noOfTicks:C,graphDownload:x,dataDownload:g,prefix:J,suffix:ct,stripType:w,language:yt,highlightColor:xt,dotOpacity:vt,showNAColor:Ot,minHeight:Vt,theme:ut,ariaLabel:$,valueColor:ot,resetSelectionOnDoubleClick:bt,detailsOnClick:M,orientation:jt,styles:p,classNames:a,animate:ft,dimmedOpacity:Ct,precision:pt,customLayers:m}=e,K=lt===void 0?5:lt,Q=r===void 0?!1:r,A=O===void 0?!0:O;let V;t[0]!==h?(V=h===void 0?[]:h,t[0]=h,t[1]=V):V=t[1];const q=V,T=C===void 0?2:C,R=x===void 0?!1:x,k=g===void 0?!1:g,F=J===void 0?"":J,P=ct===void 0?"":ct,L=w===void 0?"dot":w,U=yt===void 0?"en":yt,j=vt===void 0?.3:vt,H=Ot===void 0?!0:Ot,G=Vt===void 0?0:Vt,y=ut===void 0?"light":ut,W=bt===void 0?!0:bt,z=jt===void 0?"vertical":jt,I=ft===void 0?!1:ft,it=Ct===void 0?.3:Ct,Dt=pt===void 0?2:pt;let Z;t[2]!==m?(Z=m===void 0?[]:m,t[2]=m,t[3]=Z):Z=t[3];const Nt=Z,nt=z==="horizontal"?$e:ae,[Rt,ht]=X.useState(0),[kt,Et]=X.useState(0),[It,o]=X.useState(void 0),c=X.useRef(null),Xt=X.useRef(null);let Pt,Lt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>{const Yt=new ResizeObserver(Bt=>{ht(Bt[0].target.clientWidth||620),Et(Bt[0].target.clientHeight||480)});return c.current&&Yt.observe(c.current),()=>Yt.disconnect()},Lt=[],t[4]=Pt,t[5]=Lt):(Pt=t[4],Lt=t[5]),X.useEffect(Pt,Lt);const Gt=a?.graphContainer,Wt=p?.graphContainer;let St;t[6]!==a?.description||t[7]!==a?.title||t[8]!==i||t[9]!==k||t[10]!==s||t[11]!==R||t[12]!==D||t[13]!==p?.description||t[14]!==p?.title||t[15]!==E?(St=D||s||R||k?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:a?.title,description:a?.description},graphTitle:D,graphDescription:s,width:E,graphDownload:R?Xt:void 0,dataDownload:k?i.map(xo).filter(mo).length>0?i.map(po).filter(fo):i.filter(uo):null}):null,t[6]=a?.description,t[7]=a?.title,t[8]=i,t[9]=k,t[10]=s,t[11]=R,t[12]=D,t[13]=p?.description,t[14]=p?.title,t[15]=E,t[16]=St):St=t[16];let $t;t[17]!==a?.colorLegend||t[18]!==rt||t[19]!==Mt||t[20]!==v||t[21]!==i||t[22]!==A||t[23]!==H||t[24]!==y||t[25]!==E?($t=A!==!1&&i.filter(co).length!==0&&i.length>0?l.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:E,colorLegendTitle:Mt,colors:v||u.Colors[y].categoricalColors.colors,colorDomain:rt||zt.uniqBy(i,"color",!0),setSelectedColor:o,showNAColor:H,className:a?.colorLegend}):null,t[17]=a?.colorLegend,t[18]=rt,t[19]=Mt,t[20]=v,t[21]=i,t[22]=A,t[23]=H,t[24]=y,t[25]=E,t[26]=$t):$t=t[26];let At;t[27]!==i.length?(At=i.length===0&&l.jsxRuntimeExports.jsx(ne.EmptyState,{}),t[27]=i.length,t[28]=At):At=t[28];let qt;t[29]!==nt||t[30]!==I||t[31]!==Y||t[32]!==a||t[33]!==rt||t[34]!==v||t[35]!==Nt||t[36]!==i||t[37]!==M||t[38]!==it||t[39]!==j||t[40]!==xt||t[41]!==q||t[42]!==tt||t[43]!==b||t[44]!==B||t[45]!==T||t[46]!==f||t[47]!==at||t[48]!==Dt||t[49]!==F||t[50]!==K||t[51]!==W||t[52]!==N||t[53]!==It||t[54]!==L||t[55]!==p||t[56]!==P||t[57]!==kt||t[58]!==Rt||t[59]!==y||t[60]!==st||t[61]!==S||t[62]!==ot?(qt=Rt&&kt&&i.length>0?l.jsxRuntimeExports.jsx(nt,{data:i,width:Rt,height:kt,colorDomain:i.filter(ao).length===0?[]:rt||zt.uniqBy(i,"color",!0),colors:i.filter(so).length===0?v?[v]:[u.Colors.primaryColors["blue-600"]]:v||u.Colors[y].categoricalColors.colors,selectedColor:It,radius:K,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,onSeriesMouseOver:at,highlightedDataPoints:q,minValue:B,maxValue:b,onSeriesMouseClick:f,prefix:F,suffix:P,stripType:L,highlightColor:xt,dotOpacity:j,resetSelectionOnDoubleClick:W,detailsOnClick:M,styles:p,classNames:a,valueColor:ot,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},noOfTicks:T,dimmedOpacity:it,precision:Dt,customLayers:Nt}):null,t[29]=nt,t[30]=I,t[31]=Y,t[32]=a,t[33]=rt,t[34]=v,t[35]=Nt,t[36]=i,t[37]=M,t[38]=it,t[39]=j,t[40]=xt,t[41]=q,t[42]=tt,t[43]=b,t[44]=B,t[45]=T,t[46]=f,t[47]=at,t[48]=Dt,t[49]=F,t[50]=K,t[51]=W,t[52]=N,t[53]=It,t[54]=L,t[55]=p,t[56]=P,t[57]=kt,t[58]=Rt,t[59]=y,t[60]=st,t[61]=S,t[62]=ot,t[63]=qt):qt=t[63];let Tt;t[64]!==At||t[65]!==qt?(Tt=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:c,children:[At,qt]}),t[64]=At,t[65]=qt,t[66]=Tt):Tt=t[66];let Ft;t[67]!==a?.footnote||t[68]!==a?.source||t[69]!==gt||t[70]!==n||t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==E?(Ft=n||gt?l.jsxRuntimeExports.jsx(le.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:n,footNote:gt,width:E}):null,t[67]=a?.footnote,t[68]=a?.source,t[69]=gt,t[70]=n,t[71]=p?.footnote,t[72]=p?.source,t[73]=E,t[74]=Ft):Ft=t[74];let Ut;return t[75]!==$||t[76]!==Q||t[77]!==dt||t[78]!==d||t[79]!==U||t[80]!==G||t[81]!==_||t[82]!==et||t[83]!==Gt||t[84]!==Wt||t[85]!==St||t[86]!==$t||t[87]!==Tt||t[88]!==Ft||t[89]!==y||t[90]!==E?(Ut=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:Gt,style:Wt,id:dt,ref:Xt,"aria-label":$,backgroundColor:Q,theme:y,language:U,minHeight:G,width:E,height:d,relativeHeight:et,padding:_,children:[St,$t,Tt,Ft]}),t[75]=$,t[76]=Q,t[77]=dt,t[78]=d,t[79]=U,t[80]=G,t[81]=_,t[82]=et,t[83]=Gt,t[84]=Wt,t[85]=St,t[86]=$t,t[87]=Tt,t[88]=Ft,t[89]=y,t[90]=E,t[91]=Ut):Ut=t[91],Ut}function so(e){return e.color}function ao(e){return e.color}function co(e){return e.color}function uo(e){return e!==void 0}function fo(e){return e!==void 0}function po(e){return e.data}function mo(e){return e!==void 0}function xo(e){return e.data}exports.StripChart=lo;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-6v2a2njQ.cjs"),X=require("react"),Kt=require("./index-DQA8q5sC.cjs"),Qt=require("./index-Cno4Q0YE.cjs"),Zt=require("./Tooltip-BLa2EfMs.cjs"),mt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ht=require("./numberFormattingFunction-02t-wJta.cjs"),u=require("./Colors.cjs"),_t=require("./DetailsModal-DHttOA80.cjs"),te=require("./linear-CgUCbw9F.cjs"),wt=require("./proxy-C4-uo6nS.cjs"),ee=require("./use-in-view-C3o_ntMv.cjs"),oe=require("./index-CoobIWNj.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-B1EDxJ0S.cjs"),ne=require("./EmptyState-N1eHt3vq.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),le=require("./GraphFooter.cjs"),se=require("./GraphHeader.cjs");function ie(e,t){if(e<2)return[];const i=t/(e-1);return Array.from({length:e},(D,v)=>v*i)}function ae(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,noOfTicks:st,prefix:et,suffix:at,stripType:O,highlightColor:h,dotOpacity:dt,resetSelectionOnDoubleClick:B,detailsOnClick:b,styles:f,classNames:C,valueColor:x,animate:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?20:E,xt=gt===void 0?20:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==g.amount||t[1]!==g.once?(ut={once:g.once,amount:g.amount},t[0]=g.amount,t[1]=g.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==g.duration||t[9]!==C?.graphObjectValues||t[10]!==C?.yAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==b||t[16]!==J||t[17]!==dt||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==h||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==st||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==et||t[34]!==d||t[35]!==B||t[36]!==tt||t[37]!==O||t[38]!==f?.graphObjectValues||t[39]!==f?.yAxis?.labels||t[40]!==at||t[41]!==x||t[42]!==D){const Dt=i.map(Se);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(Ne).map(De))<0?0:Math.max(...i.filter(Ie).map(ke)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(Re).map(Ve))>=0?0:Math.min(...i.filter(Ee).map(Me)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([Q,0]).nice(),It=ie(st,Q);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(we).map(Ce),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:K/2,y:Et(0)},whileInView:{x:K/2,y:Et(o.position),opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:dt,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||b)&&(Kt.isEqual(M,o)&&B?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[O==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(je).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(Oe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ve).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{y:-1,height:2,variants:{initial:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{x:0-d,width:d*2,fill:h&&r?r.indexOf(o.label)!==-1?h:i.filter(he).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{y:0,dy:"0.33em",variants:{initial:{opacity:0,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(de).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(me).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,x:0+d+3,fill:x||(h&&r?r.indexOf(o.label)!==-1?h:i.filter(pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:g.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:g.duration}},style:{textAnchor:"start",...f?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",C?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,et,at)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{y:o,x:K/2+d+5,style:{textAnchor:"start",...f?.yAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",C?.yAxis?.labels),children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,et,at)},c)),t[8]=g.duration,t[9]=C?.graphObjectValues,t[10]=C?.yAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=b,t[16]=J,t[17]=dt,t[18]=Q,t[19]=K,t[20]=v,t[21]=h,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=st,t[30]=Y,t[31]=_,t[32]=ct,t[33]=et,t[34]=d,t[35]=B,t[36]=tt,t[37]=O,t[38]=f?.graphObjectValues,t[39]=f?.yAxis?.labels,t[40]=at,t[41]=x,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(ue).map(ce),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==C?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==f?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:f?.tooltip,className:C?.tooltip}):null,t[83]=C?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=f?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==C?.modal||t[91]!==b||t[92]!==M?(I=b&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:b,data:M,setData:jt,className:C?.modal}):null,t[90]=C?.modal,t[91]=b,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function ce(e){return e.layer}function ue(e){return e.position==="after"}function fe(e){return e.color}function pe(e){return e.color}function me(e){return e.color}function de(e){return e.color}function xe(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ye(e){return e.color}function ve(e){return e.color}function Oe(e){return e.color}function be(e){return e.color}function je(e){return e.color}function Ce(e){return e.layer}function we(e){return e.position==="before"}function Me(e){return e.position}function Ee(e){return!mt.checkIfNullOrUndefined(e.position)}function Ve(e){return e.position}function Re(e){return!mt.checkIfNullOrUndefined(e.position)}function ke(e){return e.position}function Ie(e){return!mt.checkIfNullOrUndefined(e.position)}function De(e){return e.position}function Ne(e){return!mt.checkIfNullOrUndefined(e.position)}function Se(e,t){return{...e,id:`${t}`}}function $e(e){const t=l.compilerRuntimeExports.c(98),{data:i,width:D,height:v,colors:n,colorDomain:s,radius:d,leftMargin:E,rightMargin:gt,topMargin:rt,bottomMargin:Mt,tooltip:lt,onSeriesMouseOver:_,highlightedDataPoints:r,selectedColor:tt,minValue:N,maxValue:S,onSeriesMouseClick:Y,prefix:st,suffix:et,stripType:at,highlightColor:O,dotOpacity:h,resetSelectionOnDoubleClick:dt,detailsOnClick:B,styles:b,classNames:f,valueColor:C,animate:x,noOfTicks:g,dimmedOpacity:J,precision:ct,customLayers:w}=e,yt=E===void 0?5:E,xt=gt===void 0?5:gt,vt=rt===void 0?10:rt,Ot=Mt===void 0?10:Mt,Vt=X.useRef(null);let ut;t[0]!==x.amount||t[1]!==x.once?(ut={once:x.once,amount:x.amount},t[0]=x.amount,t[1]=x.once,t[2]=ut):ut=t[2];const $=ee.useInView(Vt,ut),[ot,bt]=X.useState(void 0),[M,jt]=X.useState(void 0),[p,a]=X.useState(void 0),[ft,Ct]=X.useState(void 0);let pt;t[3]!==Ot||t[4]!==yt||t[5]!==xt||t[6]!==vt?(pt={top:vt,bottom:Ot,left:yt,right:xt},t[3]=Ot,t[4]=yt,t[5]=xt,t[6]=vt,t[7]=pt):pt=t[7];const m=pt,K=D-m.left-m.right,Q=v-m.top-m.bottom;let A,V,q,T,R,k,F,P,L,U,j;if(t[8]!==x.duration||t[9]!==f?.graphObjectValues||t[10]!==f?.xAxis?.labels||t[11]!==s||t[12]!==n||t[13]!==w||t[14]!==i||t[15]!==B||t[16]!==J||t[17]!==h||t[18]!==Q||t[19]!==K||t[20]!==v||t[21]!==O||t[22]!==r||t[23]!==$||t[24]!==m.left||t[25]!==m.top||t[26]!==S||t[27]!==N||t[28]!==M||t[29]!==g||t[30]!==Y||t[31]!==_||t[32]!==ct||t[33]!==st||t[34]!==d||t[35]!==dt||t[36]!==tt||t[37]!==at||t[38]!==b?.graphObjectValues||t[39]!==b?.xAxis?.labels||t[40]!==et||t[41]!==C||t[42]!==D){const Dt=i.map(ro);let Z;t[54]!==r?(Z=o=>{const c=(r||[]).indexOf(o.label);return c===-1?1/0:c},t[54]=r,t[55]=Z):Z=t[55];const Nt=Qt.orderBy(Dt,[Z],["desc"]);let nt;t[56]!==i||t[57]!==S?(nt=mt.checkIfNullOrUndefined(S)?Math.max(...i.filter(no).map(io))<0?0:Math.max(...i.filter(oo).map(eo)):S,t[56]=i,t[57]=S,t[58]=nt):nt=t[58];const Rt=nt;let ht;t[59]!==i||t[60]!==N?(ht=mt.checkIfNullOrUndefined(N)?Math.min(...i.filter(to).map(_e))>=0?0:Math.min(...i.filter(Ze).map(Qe)):N,t[59]=i,t[60]=N,t[61]=ht):ht=t[61];const kt=ht,Et=te.linear().domain([kt,Rt]).range([0,K]).nice(),It=ie(g,K);V=wt.motion.svg,q=`${D}px`,T=`${v}px`,R=`0 0 ${D} ${v}`,k="ltr",F=Vt,U=`translate(${m.left},${m.top})`,t[62]!==w?(j=w.filter(Ke).map(Je),t[62]=w,t[63]=j):j=t[63],A=oe.AnimatePresence,P=Nt.map(o=>l.jsxRuntimeExports.jsxs(wt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:Et(0),y:Q/2},whileInView:{x:Et(o.position),y:Q/2,opacity:tt?o.color&&n[s.indexOf(o.color)]===tt?.95:J:r.length!==0?r.indexOf(o.label)!==-1?.95:J:h,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},onMouseEnter:c=>{bt(o),Ct(c.clientY),a(c.clientX),_?.(o)},onClick:()=>{(Y||B)&&(Kt.isEqual(M,o)&&dt?(jt(void 0),Y?.(void 0)):(jt(o),Y?.(o)))},onMouseMove:c=>{bt(o),Ct(c.clientY),a(c.clientX)},onMouseLeave:()=>{bt(void 0),a(void 0),Ct(void 0),_?.(void 0)},children:[at==="dot"?l.jsxRuntimeExports.jsx(wt.motion.circle,{cy:0,cx:0,variants:{initial:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(ze).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Be).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(Ye).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Xe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},r:d}):l.jsxRuntimeExports.jsx(wt.motion.rect,{x:-1,width:2,variants:{initial:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(We).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ge).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray},whileInView:{y:0-d,height:d*2,fill:O&&r?r.indexOf(o.label)!==-1?O:i.filter(He).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Ue).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray,transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}}}),r.length!==0&&r.indexOf(o.label)!==-1?l.jsxRuntimeExports.jsx(wt.motion.text,{x:0,variants:{initial:{opacity:0,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Le).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Pe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray)},whileInView:{opacity:1,y:0-d-5,fill:C||(O&&r?r.indexOf(o.label)!==-1?O:i.filter(Fe).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray:i.filter(Te).length===0?n[0]:o.color?n[s.indexOf(o.color)]:u.Colors.gray),transition:{duration:x.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},style:{textAnchor:"middle",...b?.graphObjectValues||{}},className:l.mo("graph-value text-sm font-bold",f?.graphObjectValues),children:Ht.numberFormattingFunction(o.position,"NA",ct,st,et)}):null]},o.label)),L=It.map((o,c)=>l.jsxRuntimeExports.jsx("text",{x:o,y:Q/2+d,style:{textAnchor:c===0?"start":c===It.length-1?"end":"middle",...b?.xAxis?.labels||{}},className:l.mo("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",f?.xAxis?.labels),dy:"1em",children:Ht.numberFormattingFunction(Et.invert(o),"NA",ct,st,et)},c)),t[8]=x.duration,t[9]=f?.graphObjectValues,t[10]=f?.xAxis?.labels,t[11]=s,t[12]=n,t[13]=w,t[14]=i,t[15]=B,t[16]=J,t[17]=h,t[18]=Q,t[19]=K,t[20]=v,t[21]=O,t[22]=r,t[23]=$,t[24]=m.left,t[25]=m.top,t[26]=S,t[27]=N,t[28]=M,t[29]=g,t[30]=Y,t[31]=_,t[32]=ct,t[33]=st,t[34]=d,t[35]=dt,t[36]=tt,t[37]=at,t[38]=b?.graphObjectValues,t[39]=b?.xAxis?.labels,t[40]=et,t[41]=C,t[42]=D,t[43]=A,t[44]=V,t[45]=q,t[46]=T,t[47]=R,t[48]=k,t[49]=F,t[50]=P,t[51]=L,t[52]=U,t[53]=j}else A=t[43],V=t[44],q=t[45],T=t[46],R=t[47],k=t[48],F=t[49],P=t[50],L=t[51],U=t[52],j=t[53];let H;t[64]!==A||t[65]!==P||t[66]!==L?(H=l.jsxRuntimeExports.jsxs(A,{children:[P,L]}),t[64]=A,t[65]=P,t[66]=L,t[67]=H):H=t[67];let G;t[68]!==w?(G=w.filter(qe).map(Ae),t[68]=w,t[69]=G):G=t[69];let y;t[70]!==H||t[71]!==G||t[72]!==U||t[73]!==j?(y=l.jsxRuntimeExports.jsxs("g",{transform:U,children:[j,H,G]}),t[70]=H,t[71]=G,t[72]=U,t[73]=j,t[74]=y):y=t[74];let W;t[75]!==V||t[76]!==q||t[77]!==T||t[78]!==R||t[79]!==k||t[80]!==F||t[81]!==y?(W=l.jsxRuntimeExports.jsx(V,{width:q,height:T,viewBox:R,direction:k,ref:F,children:y}),t[75]=V,t[76]=q,t[77]=T,t[78]=R,t[79]=k,t[80]=F,t[81]=y,t[82]=W):W=t[82];let z;t[83]!==f?.tooltip||t[84]!==p||t[85]!==ft||t[86]!==ot||t[87]!==b?.tooltip||t[88]!==lt?(z=ot&&lt&&p&&ft?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:ot,body:lt,xPos:p,yPos:ft,backgroundStyle:b?.tooltip,className:f?.tooltip}):null,t[83]=f?.tooltip,t[84]=p,t[85]=ft,t[86]=ot,t[87]=b?.tooltip,t[88]=lt,t[89]=z):z=t[89];let I;t[90]!==f?.modal||t[91]!==B||t[92]!==M?(I=B&&M!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:B,data:M,setData:jt,className:f?.modal}):null,t[90]=f?.modal,t[91]=B,t[92]=M,t[93]=I):I=t[93];let it;return t[94]!==W||t[95]!==z||t[96]!==I?(it=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W,z,I]}),t[94]=W,t[95]=z,t[96]=I,t[97]=it):it=t[97],it}function Ae(e){return e.layer}function qe(e){return e.position==="after"}function Te(e){return e.color}function Fe(e){return e.color}function Pe(e){return e.color}function Le(e){return e.color}function Ue(e){return e.color}function He(e){return e.color}function Ge(e){return e.color}function We(e){return e.color}function Xe(e){return e.color}function Ye(e){return e.color}function Be(e){return e.color}function ze(e){return e.color}function Je(e){return e.layer}function Ke(e){return e.position==="before"}function Qe(e){return e.position}function Ze(e){return!mt.checkIfNullOrUndefined(e.position)}function _e(e){return e.position}function to(e){return!mt.checkIfNullOrUndefined(e.position)}function eo(e){return e.position}function oo(e){return!mt.checkIfNullOrUndefined(e.position)}function io(e){return e.position}function no(e){return!mt.checkIfNullOrUndefined(e.position)}function ro(e,t){return{...e,id:`${t}`}}function lo(e){const t=l.compilerRuntimeExports.c(92),{data:i,graphTitle:D,colors:v,sources:n,graphDescription:s,height:d,width:E,footNote:gt,colorDomain:rt,colorLegendTitle:Mt,radius:lt,padding:_,backgroundColor:r,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,relativeHeight:et,onSeriesMouseOver:at,showColorScale:O,highlightedDataPoints:h,graphID:dt,minValue:B,maxValue:b,onSeriesMouseClick:f,noOfTicks:C,graphDownload:x,dataDownload:g,prefix:J,suffix:ct,stripType:w,language:yt,highlightColor:xt,dotOpacity:vt,showNAColor:Ot,minHeight:Vt,theme:ut,ariaLabel:$,valueColor:ot,resetSelectionOnDoubleClick:bt,detailsOnClick:M,orientation:jt,styles:p,classNames:a,animate:ft,dimmedOpacity:Ct,precision:pt,customLayers:m}=e,K=lt===void 0?5:lt,Q=r===void 0?!1:r,A=O===void 0?!0:O;let V;t[0]!==h?(V=h===void 0?[]:h,t[0]=h,t[1]=V):V=t[1];const q=V,T=C===void 0?2:C,R=x===void 0?!1:x,k=g===void 0?!1:g,F=J===void 0?"":J,P=ct===void 0?"":ct,L=w===void 0?"dot":w,U=yt===void 0?"en":yt,j=vt===void 0?.3:vt,H=Ot===void 0?!0:Ot,G=Vt===void 0?0:Vt,y=ut===void 0?"light":ut,W=bt===void 0?!0:bt,z=jt===void 0?"vertical":jt,I=ft===void 0?!1:ft,it=Ct===void 0?.3:Ct,Dt=pt===void 0?2:pt;let Z;t[2]!==m?(Z=m===void 0?[]:m,t[2]=m,t[3]=Z):Z=t[3];const Nt=Z,nt=z==="horizontal"?$e:ae,[Rt,ht]=X.useState(0),[kt,Et]=X.useState(0),[It,o]=X.useState(void 0),c=X.useRef(null),Xt=X.useRef(null);let Pt,Lt;t[4]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>{const Yt=new ResizeObserver(Bt=>{ht(Bt[0].target.clientWidth||620),Et(Bt[0].target.clientHeight||480)});return c.current&&Yt.observe(c.current),()=>Yt.disconnect()},Lt=[],t[4]=Pt,t[5]=Lt):(Pt=t[4],Lt=t[5]),X.useEffect(Pt,Lt);const Gt=a?.graphContainer,Wt=p?.graphContainer;let St;t[6]!==a?.description||t[7]!==a?.title||t[8]!==i||t[9]!==k||t[10]!==s||t[11]!==R||t[12]!==D||t[13]!==p?.description||t[14]!==p?.title||t[15]!==E?(St=D||s||R||k?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:a?.title,description:a?.description},graphTitle:D,graphDescription:s,width:E,graphDownload:R?Xt:void 0,dataDownload:k?i.map(xo).filter(mo).length>0?i.map(po).filter(fo):i.filter(uo):null}):null,t[6]=a?.description,t[7]=a?.title,t[8]=i,t[9]=k,t[10]=s,t[11]=R,t[12]=D,t[13]=p?.description,t[14]=p?.title,t[15]=E,t[16]=St):St=t[16];let $t;t[17]!==a?.colorLegend||t[18]!==rt||t[19]!==Mt||t[20]!==v||t[21]!==i||t[22]!==A||t[23]!==H||t[24]!==y||t[25]!==E?($t=A!==!1&&i.filter(co).length!==0&&i.length>0?l.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:E,colorLegendTitle:Mt,colors:v||u.Colors[y].categoricalColors.colors,colorDomain:rt||zt.uniqBy(i,"color",!0),setSelectedColor:o,showNAColor:H,className:a?.colorLegend}):null,t[17]=a?.colorLegend,t[18]=rt,t[19]=Mt,t[20]=v,t[21]=i,t[22]=A,t[23]=H,t[24]=y,t[25]=E,t[26]=$t):$t=t[26];let At;t[27]!==i.length?(At=i.length===0&&l.jsxRuntimeExports.jsx(ne.EmptyState,{}),t[27]=i.length,t[28]=At):At=t[28];let qt;t[29]!==nt||t[30]!==I||t[31]!==Y||t[32]!==a||t[33]!==rt||t[34]!==v||t[35]!==Nt||t[36]!==i||t[37]!==M||t[38]!==it||t[39]!==j||t[40]!==xt||t[41]!==q||t[42]!==tt||t[43]!==b||t[44]!==B||t[45]!==T||t[46]!==f||t[47]!==at||t[48]!==Dt||t[49]!==F||t[50]!==K||t[51]!==W||t[52]!==N||t[53]!==It||t[54]!==L||t[55]!==p||t[56]!==P||t[57]!==kt||t[58]!==Rt||t[59]!==y||t[60]!==st||t[61]!==S||t[62]!==ot?(qt=Rt&&kt&&i.length>0?l.jsxRuntimeExports.jsx(nt,{data:i,width:Rt,height:kt,colorDomain:i.filter(ao).length===0?[]:rt||zt.uniqBy(i,"color",!0),colors:i.filter(so).length===0?v?[v]:[u.Colors.primaryColors["blue-600"]]:v||u.Colors[y].categoricalColors.colors,selectedColor:It,radius:K,leftMargin:tt,rightMargin:N,topMargin:S,bottomMargin:Y,tooltip:st,onSeriesMouseOver:at,highlightedDataPoints:q,minValue:B,maxValue:b,onSeriesMouseClick:f,prefix:F,suffix:P,stripType:L,highlightColor:xt,dotOpacity:j,resetSelectionOnDoubleClick:W,detailsOnClick:M,styles:p,classNames:a,valueColor:ot,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},noOfTicks:T,dimmedOpacity:it,precision:Dt,customLayers:Nt}):null,t[29]=nt,t[30]=I,t[31]=Y,t[32]=a,t[33]=rt,t[34]=v,t[35]=Nt,t[36]=i,t[37]=M,t[38]=it,t[39]=j,t[40]=xt,t[41]=q,t[42]=tt,t[43]=b,t[44]=B,t[45]=T,t[46]=f,t[47]=at,t[48]=Dt,t[49]=F,t[50]=K,t[51]=W,t[52]=N,t[53]=It,t[54]=L,t[55]=p,t[56]=P,t[57]=kt,t[58]=Rt,t[59]=y,t[60]=st,t[61]=S,t[62]=ot,t[63]=qt):qt=t[63];let Tt;t[64]!==At||t[65]!==qt?(Tt=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:c,children:[At,qt]}),t[64]=At,t[65]=qt,t[66]=Tt):Tt=t[66];let Ft;t[67]!==a?.footnote||t[68]!==a?.source||t[69]!==gt||t[70]!==n||t[71]!==p?.footnote||t[72]!==p?.source||t[73]!==E?(Ft=n||gt?l.jsxRuntimeExports.jsx(le.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:n,footNote:gt,width:E}):null,t[67]=a?.footnote,t[68]=a?.source,t[69]=gt,t[70]=n,t[71]=p?.footnote,t[72]=p?.source,t[73]=E,t[74]=Ft):Ft=t[74];let Ut;return t[75]!==$||t[76]!==Q||t[77]!==dt||t[78]!==d||t[79]!==U||t[80]!==G||t[81]!==_||t[82]!==et||t[83]!==Gt||t[84]!==Wt||t[85]!==St||t[86]!==$t||t[87]!==Tt||t[88]!==Ft||t[89]!==y||t[90]!==E?(Ut=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:Gt,style:Wt,id:dt,ref:Xt,"aria-label":$,backgroundColor:Q,theme:y,language:U,minHeight:G,width:E,height:d,relativeHeight:et,padding:_,children:[St,$t,Tt,Ft]}),t[75]=$,t[76]=Q,t[77]=dt,t[78]=d,t[79]=U,t[80]=G,t[81]=_,t[82]=et,t[83]=Gt,t[84]=Wt,t[85]=St,t[86]=$t,t[87]=Tt,t[88]=Ft,t[89]=y,t[90]=E,t[91]=Ut):Ut=t[91],Ut}function so(e){return e.color}function ao(e){return e.color}function co(e){return e.color}function uo(e){return e!==void 0}function fo(e){return e!==void 0}function po(e){return e.data}function mo(e){return e!==void 0}function xo(e){return e.data}exports.StripChart=lo;
2
2
  //# sourceMappingURL=StripChart.cjs.map
@@ -13,7 +13,7 @@ import { u as oe } from "./use-in-view-Dl5L8LtP.js";
13
13
  import { A as ne } from "./index-CtMBjvtq.js";
14
14
  import { u as Qt } from "./uniqBy-BHy4I8PK.js";
15
15
  import { a as ae, G as se } from "./GraphContainer-CF6ws3pd.js";
16
- import { E as ce } from "./EmptyState-Pj-emXt5.js";
16
+ import { E as ce } from "./EmptyState-dScPFkLy.js";
17
17
  import { ColorLegendWithMouseOver as ue } from "./ColorLegendWithMouseOver.js";
18
18
  import { GraphFooter as fe } from "./GraphFooter.js";
19
19
  import { GraphHeader as pe } from "./GraphHeader.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),h=require("react"),nt=require("./Spinner-jTMOLuw_.cjs"),lt=require("react-globe.gl"),ct=require("./index-DQA8q5sC.cjs"),dt=require("three"),Ke=require("./Typography-DrJ7IOdw.cjs"),ut=require("./_commonjsHelpers-BH3jXuIh.cjs"),pt=require("./Tooltip-BLa2EfMs.cjs"),ht=require("./numberFormattingFunction-02t-wJta.cjs"),mt=require("./index-sbKVyHS2.cjs"),gt=require("./getCentroidCoordinates-CtBGrNC8.cjs"),xt=require("./DetailsModal-DHttOA80.cjs"),ft=require("./ordinal-CrsysVE-.cjs"),vt=require("./threshold-DNsSUf8Q.cjs"),yt=require("./GraphHeader.cjs"),bt=require("./GraphFooter.cjs"),wt=require("./fetchAndParseData-QTF6tjij.cjs"),te=require("./Colors.cjs"),jt=require("./getUniqValue-NX8DgwND.cjs"),Ct=require("./getJenks-BzJvhy_H.cjs"),Qe=require("./GraphContainer-B1EDxJ0S.cjs");function Rt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const x=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,x.get?x:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _=Rt(dt);var Ye,et;function St(){if(et)return Ye;et=1;var t=function(o){return o.charAt(0)==="#"?o.slice(1):o},e=function(o){var l=o.length===3||o.length===4,v=l?"".concat(o.slice(0,1)).concat(o.slice(0,1)):o.slice(0,2),a=l?"".concat(o.slice(1,2)).concat(o.slice(1,2)):o.slice(2,4),j=l?"".concat(o.slice(2,3)).concat(o.slice(2,3)):o.slice(4,6),q=(l?"".concat(o.slice(3,4)).concat(o.slice(3,4)):o.slice(6,8))||"ff";return{r:v,g:a,b:j,a:q}},n=function(o){return parseInt(o,16)},x=function(o){var l=o.r,v=o.g,a=o.b,j=o.a;return{r:n(l),g:n(v),b:n(a),a:+(n(j)/255).toFixed(2)}},w=function(o){return!isNaN(parseFloat(o))&&isFinite(o)},R=function(o,l){var v=o.r,a=o.g,j=o.b,q=o.a,P=w(l)?l:q;return"rgba(".concat(v,", ").concat(a,", ").concat(j,", ").concat(P,")")},f=function(o,l){var v=t(o),a=e(v),j=x(a);return R(j,l)};return Ye=f,Ye}var Et=St();const tt=ut.getDefaultExportFromCjs(Et);function Dt(t){let e;switch(t.type){case"ambient":e=new _.AmbientLight(t.color,t.intensity);break;case"directional":e=new _.DirectionalLight(t.color,t.intensity),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z)),(t.target||t.position==="camera")&&e.target.position.set(t.target?.x||0,t.target?.y||0,t.target?.z===void 0?-1:t.target.z),t.castShadow&&(e.castShadow=!0,t.shadow&&(e.shadow.mapSize.width=t.shadow.mapSize.width,e.shadow.mapSize.height=t.shadow.mapSize.height,e.shadow.camera.near=t.shadow.camera.near,e.shadow.camera.far=t.shadow.camera.far));break;case"point":e=new _.PointLight(t.color,t.intensity,t.distance||0,t.decay||2),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z));break;case"spot":e=new _.SpotLight(t.color,t.intensity,t.distance||0,t.angle||Math.PI/3,t.penumbra||0,t.decay||2),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z)),(t.target||t.position==="camera")&&e.target.position.set(t.target?.x||0,t.target?.y||0,t.target?.z||0),t.castShadow&&(e.castShadow=!0,t.shadow&&(e.shadow.mapSize.width=t.shadow.mapSize.width,e.shadow.mapSize.height=t.shadow.mapSize.height,e.shadow.camera.near=t.shadow.camera.near,e.shadow.camera.far=t.shadow.camera.far));break;default:throw new Error("Unknown light type")}return e}function Nt(t){const{width:e,autoRotate:n,data:x,enableZoom:w,categorical:R,colorDomain:f,colors:c,globeMaterial:o,height:l,polygonData:v,mapProperty:a,mapBorderColor:j,atmosphereColor:q,tooltip:P,styles:fe,classNames:U,mapNoDataColor:oe,colorLegendTitle:C,showColorScale:re,hoverStrokeColor:se,detailsOnClick:$,onSeriesMouseClick:V,onSeriesMouseOver:ve,resetSelectionOnDoubleClick:ye,highlightedIds:T,scale:M,globeOffset:m,polygonAltitude:g,centerLng:W,centerLat:Z,atmosphereAltitude:ie,globeCurvatureResolution:J,fogSettings:L,lights:z,highlightedAltitude:ae,selectedId:y,collapseColorScaleByDefault:X,dimmedOpacity:A}=t,[B,be]=h.useState(!1),u=h.useRef(void 0),[H,N]=h.useState(void 0),[we,ne]=h.useState(X===void 0?!(e<680):!X),[le,ce]=h.useState({x:0,y:0}),[S,de]=h.useState(void 0),Y=R?ft.ordinal().domain(f).range(c):vt.threshold().domain(f).range(c);h.useEffect(()=>{u.current&&(u.current.controls().enableZoom=w)},[w]),h.useEffect(()=>{u.current&&(S||y?u.current.controls().autoRotate=!1:(u.current.controls().autoRotate=n!==0,u.current.controls().autoRotateSpeed=n))},[S,y,n]),h.useEffect(()=>{if(u.current&&y){const r=v.find(b=>b.properties[a]===y),[s,d]=gt.getCentroidCoordinates(r);u.current.pointOfView({lat:d,lng:s,altitude:M},1e3)}},[y,M,v,a]),h.useEffect(()=>{const r=u.current?.renderer().domElement;if(!r)return;const s=d=>{ce({x:d.clientX,y:d.clientY})};return r.addEventListener("mousemove",s),()=>r.removeEventListener("mousemove",s)},[]),h.useEffect(()=>{u.current&&u.current.pointOfView({lat:Z,lng:W,altitude:M},1e3)},[M,W,Z]);const E=o||new _.MeshBasicMaterial({color:"#FFF"}),G=h.useCallback(()=>{if(!u.current)return;const r=u.current.scene(),s=u.current.camera();let d=[];r.traverse(p=>{p instanceof _.Light&&d.push(p)}),d=[...d,...s.children],d.forEach(p=>p.parent?.remove(p)),z.map(p=>Dt(p)).forEach((p,D)=>{z[D].type!=="ambient"&&z[D].position==="camera"?(s.add(p),z[D].type!=="point"&&s.add(p.target)):r.add(p)}),L&&(r.fog=new _.Fog(L.color,L.near,L.far))},[z,L]),k=()=>{be(!0),G()};return h.useEffect(()=>{B&&G()},[B,G]),i.jsxRuntimeExports.jsxs("div",{className:"relative",children:[i.jsxRuntimeExports.jsx(lt,{ref:u,height:l,width:e,globeOffset:m,lineHoverPrecision:0,polygonsData:v,polygonAltitude:r=>T.includes(r?.properties?.[a])||r?.properties?.[a]===y||r?.properties?.[a]===S?.id||r?.properties?.[a]===H?.id?ae:g,polygonCapColor:r=>{const s=y?r?.properties?.[a]===y?1:A:T.length!==0?T.includes(r?.properties?.[a])?1:A:1,d=r?.properties?.[a],b=x.find(D=>D.id===d)?.x,p=b!=null?Y(b):oe;return tt(p,`${s}`)},polygonSideColor:r=>{const s=r?.properties?.[a],d=x.find(D=>D.id===s)?.x,b=y?r?.properties?.[a]===y?1:A:T.length!==0?T.includes(r?.properties?.[a])?1:A:1,p=d!=null?Y(d):oe;return tt(p,`${b}`)},polygonStrokeColor:r=>r?.properties?.[a]===S?.id?se:j,onGlobeClick:()=>{N(void 0)},onPolygonClick:r=>{const s=r?.properties?.[a]?x.find(d=>d.id===r?.properties?.[a]):void 0;(V||$)&&(ct.isEqual(H,s)&&ye&&s?(N(void 0),V?.(void 0)):(N(s),V?.(s)))},onPolygonHover:r=>{const s=r?.properties?.[a]?x.find(d=>d.id===r?.properties?.[a]):void 0;de(s),ve?.(s)},atmosphereColor:q,atmosphereAltitude:ie,globeCurvatureResolution:J,globeMaterial:E,backgroundColor:"rgba(0, 0, 0, 0)",polygonsTransitionDuration:100,onGlobeReady:()=>{if(u.current){u.current.pointOfView({lat:Z,lng:W});const r=u.current.scene();setTimeout(()=>{(r.children[3]?.children[0]?.children[4]?.children||[]).forEach(b=>{const p=b.children[1];p.renderOrder=2})},300);const s=u.current.camera();r.add(s),k()}}}),re===!1?null:i.jsxRuntimeExports.jsx("div",{className:i.mo("absolute left-4 bottom-4 map-color-legend",U?.colorLegend),children:we?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx("div",{className:"color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]",onClick:()=>{ne(!1)},children:i.jsxRuntimeExports.jsx(mt.X,{})}),i.jsxRuntimeExports.jsxs("div",{className:"color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",style:{width:R?void 0:"340px"},children:[C&&C!==""?i.jsxRuntimeExports.jsx(Ke._,{size:"xs",marginBottom:"xs",className:"p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300",style:{display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical"},children:C}):null,R?i.jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-3",children:f.map((r,s)=>i.jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center",children:[i.jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:c[s%c.length]}}),i.jsxRuntimeExports.jsx(Ke._,{size:"sm",marginBottom:"none",leading:"none",children:r})]},s))}):i.jsxRuntimeExports.jsx("svg",{width:"100%",viewBox:"0 0 320 30",direction:"ltr",children:i.jsxRuntimeExports.jsxs("g",{children:[f.map((r,s)=>i.jsxRuntimeExports.jsxs("g",{className:"cursor-pointer",children:[i.jsxRuntimeExports.jsx("rect",{x:s*320/c.length+1,y:1,width:320/c.length-2,height:8,style:{fill:c[s],stroke:c[s]}}),i.jsxRuntimeExports.jsx("text",{x:(s+1)*320/c.length,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",style:{textAnchor:"middle"},children:ht.numberFormattingFunction(r,"NA")})]},s)),i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("rect",{x:f.length*320/c.length+1,y:1,width:320/c.length-2,height:8,style:{fill:c[f.length],stroke:c[f.length]}})})]})})]})]}):i.jsxRuntimeExports.jsx("button",{type:"button",className:"mb-0 border-0 bg-transparent p-0 self-start",onClick:()=>{ne(!0)},children:i.jsxRuntimeExports.jsx("div",{className:"show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500",children:"Show Legend"})})}),S&&P?i.jsxRuntimeExports.jsx(pt.Tooltip,{data:S,body:P,xPos:le.x,yPos:le.y,backgroundStyle:fe?.tooltip,className:U?.tooltip}):null,$&&H!==void 0?i.jsxRuntimeExports.jsx(xt.DetailsModal,{body:$,data:H,setData:N,className:U?.modal}):null]})}function kt(t){const e=i.compilerRuntimeExports.c(97),{data:n,mapData:x,graphTitle:w,colors:R,sources:f,graphDescription:c,height:o,width:l,footNote:v,colorDomain:a,colorLegendTitle:j,scaleType:q,padding:P,mapNoDataColor:fe,backgroundColor:U,mapBorderColor:oe,relativeHeight:C,tooltip:re,graphID:se,mapProperty:$,dataDownload:V,language:ve,minHeight:ye,theme:T,ariaLabel:M,styles:m,classNames:g,autoRotate:W,enableZoom:Z,globeMaterial:ie,centerPoint:J,atmosphereColor:L,showColorScale:z,resetSelectionOnDoubleClick:ae,detailsOnClick:y,onSeriesMouseOver:X,onSeriesMouseClick:A,highlightedIds:B,highlightedAltitude:be,dimmedOpacity:u,scale:H,globeOffset:N,polygonAltitude:we,globeCurvatureResolution:ne,atmosphereAltitude:le,fogSettings:ce,lights:S,selectedId:de,collapseColorScaleByDefault:Y}=t,E=x===void 0?"https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json":x,G=v===void 0?"The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.":v,k=q===void 0?"threshold":q,r=fe===void 0?te.Colors.light.graphNoData:fe,s=U===void 0?!1:U,d=oe===void 0?te.Colors.light.grays["gray-500"]:oe,b=$===void 0?"ISO3":$,p=V===void 0?!1:V,D=ve===void 0?"en":ve,O=ye===void 0?0:ye,F=T===void 0?"light":T,ue=W===void 0?!0:W,Le=Z===void 0?!0:Z;let je;e[0]!==J?(je=J===void 0?[0,0]:J,e[0]=J,e[1]=je):je=e[1];const Ce=je,ze=L===void 0?"#999":L,Ae=z===void 0?!0:z,Ge=ae===void 0?!0:ae;let Re;e[2]!==B?(Re=B===void 0?[]:B,e[2]=B,e[3]=Re):Re=e[3];const Fe=Re,Be=be===void 0?.1:be,He=u===void 0?.3:u,Ie=H===void 0?1:H;let Se;e[4]!==N?(Se=N===void 0?[0,0]:N,e[4]=N,e[5]=Se):Se=e[5];const _e=Se,Ue=we===void 0?.01:we,$e=ne===void 0?4:ne,Ve=le===void 0?.15:le;let Ee;e[6]!==S?(Ee=S===void 0?[{type:"ambient",color:4210752,intensity:.4},{type:"directional",color:16777215,intensity:1,position:{x:5,y:10,z:5}}]:S,e[6]=S,e[7]=Ee):Ee=e[7];const We=Ee,[De,ot]=h.useState(void 0),[I,rt]=h.useState(0),[pe,st]=h.useState(0),Ze=h.useRef(null),it=h.useRef(null);let Ne,ke;e[8]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{const ge=new ResizeObserver(xe=>{rt(xe[0].target.clientWidth||620),st(xe[0].target.clientHeight||480)});return Ze.current&&ge.observe(Ze.current),()=>ge.disconnect()},ke=[],e[8]=Ne,e[9]=ke):(Ne=e[8],ke=e[9]),h.useEffect(Ne,ke);let Oe;e[10]===Symbol.for("react.memo_cache_sentinel")?(Oe=ge=>{ot(ge)},e[10]=Oe):Oe=e[10];const he=h.useEffectEvent(Oe);let qe;e[11]!==E||e[12]!==he?(qe=()=>{typeof E=="string"?wt.fetchAndParseJSON(E).then(xe=>{if(E==="https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json"){const at=xe.features.map(zt);he(at)}else he(xe.features)}):he(E.features)},e[11]=E,e[12]=he,e[13]=qe):qe=e[13];let Pe;e[14]!==E?(Pe=[E],e[14]=E,e[15]=Pe):Pe=e[15],h.useEffect(qe,Pe);let Te;e[16]!==a||e[17]!==R?.length||e[18]!==n||e[19]!==k?(Te=a||(k==="categorical"?jt.getUniqValue(n,"x"):Ct.getJenks(n.map(Lt),R?.length||4)),e[16]=a,e[17]=R?.length,e[18]=n,e[19]=k,e[20]=Te):Te=e[20];const me=Te,Je=g?.graphContainer,Xe=m?.graphContainer;let K;e[21]!==g?.description||e[22]!==g?.title||e[23]!==n||e[24]!==p||e[25]!==c||e[26]!==w||e[27]!==m?.description||e[28]!==m?.title||e[29]!==l?(K=w||c||p?i.jsxRuntimeExports.jsx(yt.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:g?.title,description:g?.description},graphTitle:w,graphDescription:c,width:l,graphDownload:void 0,dataDownload:p?n.map(Mt).filter(Tt).length>0?n.map(Pt).filter(qt):n.filter(Ot):null}):null,e[21]=g?.description,e[22]=g?.title,e[23]=n,e[24]=p,e[25]=c,e[26]=w,e[27]=m?.description,e[28]=m?.title,e[29]=l,e[30]=K):K=e[30];let Q;e[31]!==Ve||e[32]!==ze||e[33]!==ue||e[34]!==Ce||e[35]!==g||e[36]!==Y||e[37]!==j||e[38]!==R||e[39]!==n||e[40]!==y||e[41]!==He||e[42]!==me||e[43]!==Le||e[44]!==ce||e[45]!==$e||e[46]!==ie||e[47]!==_e||e[48]!==o||e[49]!==Be||e[50]!==Fe||e[51]!==We||e[52]!==d||e[53]!==r||e[54]!==b||e[55]!==De||e[56]!==O||e[57]!==A||e[58]!==X||e[59]!==Ue||e[60]!==C||e[61]!==Ge||e[62]!==Ie||e[63]!==k||e[64]!==de||e[65]!==Ae||e[66]!==m||e[67]!==pe||e[68]!==I||e[69]!==F||e[70]!==re||e[71]!==l?(Q=i.jsxRuntimeExports.jsx(Qe.GraphArea,{ref:Ze,children:I&&pe&&De?i.jsxRuntimeExports.jsx(Nt,{data:n,globeOffset:_e,polygonData:De,colorDomain:me,width:I,height:pe,colors:R||(k==="categorical"?te.Colors[F].sequentialColors[`neutralColorsx0${me.length}`]:te.Colors[F].sequentialColors[`neutralColorsx0${me.length+1}`]),mapNoDataColor:r,categorical:k==="categorical",mapBorderColor:d,tooltip:re,mapProperty:b,styles:m,classNames:g,autoRotate:ue===!0?1.5:ue===!1?0:ue,enableZoom:Le,globeMaterial:ie,atmosphereColor:ze,colorLegendTitle:j,showColorScale:Ae,hoverStrokeColor:F==="light"?te.Colors.light.grays["gray-700"]:te.Colors.light.grays["gray-300"],highlightedIds:Fe,resetSelectionOnDoubleClick:Ge,detailsOnClick:y,onSeriesMouseOver:X,onSeriesMouseClick:A,scale:Ie,polygonAltitude:Ue,centerLat:Ce[0],centerLng:Ce[1],atmosphereAltitude:Ve,globeCurvatureResolution:$e,fogSettings:ce,lights:We,highlightedAltitude:Be,selectedId:de,collapseColorScaleByDefault:Y,dimmedOpacity:He}):i.jsxRuntimeExports.jsx("div",{style:{height:`${Math.max(O,o||(C?O?(l||I)*C>O?(l||I)*C:O:(l||I)*C:pe))}px`},className:"flex items-center justify-center",children:i.jsxRuntimeExports.jsx(nt.w,{"aria-label":"Loading graph"})})}),e[31]=Ve,e[32]=ze,e[33]=ue,e[34]=Ce,e[35]=g,e[36]=Y,e[37]=j,e[38]=R,e[39]=n,e[40]=y,e[41]=He,e[42]=me,e[43]=Le,e[44]=ce,e[45]=$e,e[46]=ie,e[47]=_e,e[48]=o,e[49]=Be,e[50]=Fe,e[51]=We,e[52]=d,e[53]=r,e[54]=b,e[55]=De,e[56]=O,e[57]=A,e[58]=X,e[59]=Ue,e[60]=C,e[61]=Ge,e[62]=Ie,e[63]=k,e[64]=de,e[65]=Ae,e[66]=m,e[67]=pe,e[68]=I,e[69]=F,e[70]=re,e[71]=l,e[72]=Q):Q=e[72];let ee;e[73]!==g?.footnote||e[74]!==g?.source||e[75]!==G||e[76]!==f||e[77]!==m?.footnote||e[78]!==m?.source||e[79]!==l?(ee=f||G?i.jsxRuntimeExports.jsx(bt.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:g?.footnote,source:g?.source},sources:f,footNote:G,width:l}):null,e[73]=g?.footnote,e[74]=g?.source,e[75]=G,e[76]=f,e[77]=m?.footnote,e[78]=m?.source,e[79]=l,e[80]=ee):ee=e[80];let Me;return e[81]!==M||e[82]!==s||e[83]!==se||e[84]!==o||e[85]!==D||e[86]!==O||e[87]!==P||e[88]!==C||e[89]!==Je||e[90]!==Xe||e[91]!==K||e[92]!==Q||e[93]!==ee||e[94]!==F||e[95]!==l?(Me=i.jsxRuntimeExports.jsxs(Qe.GraphContainer,{className:Je,style:Xe,id:se,ref:it,"aria-label":M,backgroundColor:s,theme:F,language:D,minHeight:O,width:l,height:o,relativeHeight:C,padding:P,children:[K,Q,ee]}),e[81]=M,e[82]=s,e[83]=se,e[84]=o,e[85]=D,e[86]=O,e[87]=P,e[88]=C,e[89]=Je,e[90]=Xe,e[91]=K,e[92]=Q,e[93]=ee,e[94]=F,e[95]=l,e[96]=Me):Me=e[96],Me}function Ot(t){return t!==void 0}function qt(t){return t!==void 0}function Pt(t){return t.data}function Tt(t){return t!==void 0}function Mt(t){return t.data}function Lt(t){return t.x}function zt(t){if(t.geometry.type==="Polygon"){const x=[...t.geometry.coordinates[0]].reverse(),w={...t.geometry,coordinates:[x]};return{...t,geometry:w}}const e=[];t.geometry.coordinates.forEach(x=>{const w=[...x[0]].reverse();e.push([w])});const n={...t.geometry,coordinates:e};return{...t,geometry:n}}exports.ThreeDGlobe=kt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),h=require("react"),nt=require("./Spinner-jTMOLuw_.cjs"),lt=require("react-globe.gl"),ct=require("./index-DQA8q5sC.cjs"),dt=require("three"),Ke=require("./Typography-Cc_iHQB-.cjs"),ut=require("./_commonjsHelpers-BH3jXuIh.cjs"),pt=require("./Tooltip-BLa2EfMs.cjs"),ht=require("./numberFormattingFunction-02t-wJta.cjs"),mt=require("./index-sbKVyHS2.cjs"),gt=require("./getCentroidCoordinates-CtBGrNC8.cjs"),xt=require("./DetailsModal-DHttOA80.cjs"),ft=require("./ordinal-CrsysVE-.cjs"),vt=require("./threshold-DNsSUf8Q.cjs"),yt=require("./GraphHeader.cjs"),bt=require("./GraphFooter.cjs"),wt=require("./fetchAndParseData-QTF6tjij.cjs"),te=require("./Colors.cjs"),jt=require("./getUniqValue-NX8DgwND.cjs"),Ct=require("./getJenks-BzJvhy_H.cjs"),Qe=require("./GraphContainer-B1EDxJ0S.cjs");function Rt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const x=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,x.get?x:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _=Rt(dt);var Ye,et;function St(){if(et)return Ye;et=1;var t=function(o){return o.charAt(0)==="#"?o.slice(1):o},e=function(o){var l=o.length===3||o.length===4,v=l?"".concat(o.slice(0,1)).concat(o.slice(0,1)):o.slice(0,2),a=l?"".concat(o.slice(1,2)).concat(o.slice(1,2)):o.slice(2,4),j=l?"".concat(o.slice(2,3)).concat(o.slice(2,3)):o.slice(4,6),q=(l?"".concat(o.slice(3,4)).concat(o.slice(3,4)):o.slice(6,8))||"ff";return{r:v,g:a,b:j,a:q}},n=function(o){return parseInt(o,16)},x=function(o){var l=o.r,v=o.g,a=o.b,j=o.a;return{r:n(l),g:n(v),b:n(a),a:+(n(j)/255).toFixed(2)}},w=function(o){return!isNaN(parseFloat(o))&&isFinite(o)},R=function(o,l){var v=o.r,a=o.g,j=o.b,q=o.a,P=w(l)?l:q;return"rgba(".concat(v,", ").concat(a,", ").concat(j,", ").concat(P,")")},f=function(o,l){var v=t(o),a=e(v),j=x(a);return R(j,l)};return Ye=f,Ye}var Et=St();const tt=ut.getDefaultExportFromCjs(Et);function Dt(t){let e;switch(t.type){case"ambient":e=new _.AmbientLight(t.color,t.intensity);break;case"directional":e=new _.DirectionalLight(t.color,t.intensity),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z)),(t.target||t.position==="camera")&&e.target.position.set(t.target?.x||0,t.target?.y||0,t.target?.z===void 0?-1:t.target.z),t.castShadow&&(e.castShadow=!0,t.shadow&&(e.shadow.mapSize.width=t.shadow.mapSize.width,e.shadow.mapSize.height=t.shadow.mapSize.height,e.shadow.camera.near=t.shadow.camera.near,e.shadow.camera.far=t.shadow.camera.far));break;case"point":e=new _.PointLight(t.color,t.intensity,t.distance||0,t.decay||2),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z));break;case"spot":e=new _.SpotLight(t.color,t.intensity,t.distance||0,t.angle||Math.PI/3,t.penumbra||0,t.decay||2),t.position&&(t.position==="camera"?e.position.set(0,0,0):e.position.set(t.position.x,t.position.y,t.position.z)),(t.target||t.position==="camera")&&e.target.position.set(t.target?.x||0,t.target?.y||0,t.target?.z||0),t.castShadow&&(e.castShadow=!0,t.shadow&&(e.shadow.mapSize.width=t.shadow.mapSize.width,e.shadow.mapSize.height=t.shadow.mapSize.height,e.shadow.camera.near=t.shadow.camera.near,e.shadow.camera.far=t.shadow.camera.far));break;default:throw new Error("Unknown light type")}return e}function Nt(t){const{width:e,autoRotate:n,data:x,enableZoom:w,categorical:R,colorDomain:f,colors:c,globeMaterial:o,height:l,polygonData:v,mapProperty:a,mapBorderColor:j,atmosphereColor:q,tooltip:P,styles:fe,classNames:U,mapNoDataColor:oe,colorLegendTitle:C,showColorScale:re,hoverStrokeColor:se,detailsOnClick:$,onSeriesMouseClick:V,onSeriesMouseOver:ve,resetSelectionOnDoubleClick:ye,highlightedIds:T,scale:M,globeOffset:m,polygonAltitude:g,centerLng:W,centerLat:Z,atmosphereAltitude:ie,globeCurvatureResolution:J,fogSettings:L,lights:z,highlightedAltitude:ae,selectedId:y,collapseColorScaleByDefault:X,dimmedOpacity:A}=t,[B,be]=h.useState(!1),u=h.useRef(void 0),[H,N]=h.useState(void 0),[we,ne]=h.useState(X===void 0?!(e<680):!X),[le,ce]=h.useState({x:0,y:0}),[S,de]=h.useState(void 0),Y=R?ft.ordinal().domain(f).range(c):vt.threshold().domain(f).range(c);h.useEffect(()=>{u.current&&(u.current.controls().enableZoom=w)},[w]),h.useEffect(()=>{u.current&&(S||y?u.current.controls().autoRotate=!1:(u.current.controls().autoRotate=n!==0,u.current.controls().autoRotateSpeed=n))},[S,y,n]),h.useEffect(()=>{if(u.current&&y){const r=v.find(b=>b.properties[a]===y),[s,d]=gt.getCentroidCoordinates(r);u.current.pointOfView({lat:d,lng:s,altitude:M},1e3)}},[y,M,v,a]),h.useEffect(()=>{const r=u.current?.renderer().domElement;if(!r)return;const s=d=>{ce({x:d.clientX,y:d.clientY})};return r.addEventListener("mousemove",s),()=>r.removeEventListener("mousemove",s)},[]),h.useEffect(()=>{u.current&&u.current.pointOfView({lat:Z,lng:W,altitude:M},1e3)},[M,W,Z]);const E=o||new _.MeshBasicMaterial({color:"#FFF"}),G=h.useCallback(()=>{if(!u.current)return;const r=u.current.scene(),s=u.current.camera();let d=[];r.traverse(p=>{p instanceof _.Light&&d.push(p)}),d=[...d,...s.children],d.forEach(p=>p.parent?.remove(p)),z.map(p=>Dt(p)).forEach((p,D)=>{z[D].type!=="ambient"&&z[D].position==="camera"?(s.add(p),z[D].type!=="point"&&s.add(p.target)):r.add(p)}),L&&(r.fog=new _.Fog(L.color,L.near,L.far))},[z,L]),k=()=>{be(!0),G()};return h.useEffect(()=>{B&&G()},[B,G]),i.jsxRuntimeExports.jsxs("div",{className:"relative",children:[i.jsxRuntimeExports.jsx(lt,{ref:u,height:l,width:e,globeOffset:m,lineHoverPrecision:0,polygonsData:v,polygonAltitude:r=>T.includes(r?.properties?.[a])||r?.properties?.[a]===y||r?.properties?.[a]===S?.id||r?.properties?.[a]===H?.id?ae:g,polygonCapColor:r=>{const s=y?r?.properties?.[a]===y?1:A:T.length!==0?T.includes(r?.properties?.[a])?1:A:1,d=r?.properties?.[a],b=x.find(D=>D.id===d)?.x,p=b!=null?Y(b):oe;return tt(p,`${s}`)},polygonSideColor:r=>{const s=r?.properties?.[a],d=x.find(D=>D.id===s)?.x,b=y?r?.properties?.[a]===y?1:A:T.length!==0?T.includes(r?.properties?.[a])?1:A:1,p=d!=null?Y(d):oe;return tt(p,`${b}`)},polygonStrokeColor:r=>r?.properties?.[a]===S?.id?se:j,onGlobeClick:()=>{N(void 0)},onPolygonClick:r=>{const s=r?.properties?.[a]?x.find(d=>d.id===r?.properties?.[a]):void 0;(V||$)&&(ct.isEqual(H,s)&&ye&&s?(N(void 0),V?.(void 0)):(N(s),V?.(s)))},onPolygonHover:r=>{const s=r?.properties?.[a]?x.find(d=>d.id===r?.properties?.[a]):void 0;de(s),ve?.(s)},atmosphereColor:q,atmosphereAltitude:ie,globeCurvatureResolution:J,globeMaterial:E,backgroundColor:"rgba(0, 0, 0, 0)",polygonsTransitionDuration:100,onGlobeReady:()=>{if(u.current){u.current.pointOfView({lat:Z,lng:W});const r=u.current.scene();setTimeout(()=>{(r.children[3]?.children[0]?.children[4]?.children||[]).forEach(b=>{const p=b.children[1];p.renderOrder=2})},300);const s=u.current.camera();r.add(s),k()}}}),re===!1?null:i.jsxRuntimeExports.jsx("div",{className:i.mo("absolute left-4 bottom-4 map-color-legend",U?.colorLegend),children:we?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx("div",{className:"color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]",onClick:()=>{ne(!1)},children:i.jsxRuntimeExports.jsx(mt.X,{})}),i.jsxRuntimeExports.jsxs("div",{className:"color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",style:{width:R?void 0:"340px"},children:[C&&C!==""?i.jsxRuntimeExports.jsx(Ke._,{size:"xs",marginBottom:"xs",className:"p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300",style:{display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical"},children:C}):null,R?i.jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-3",children:f.map((r,s)=>i.jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center",children:[i.jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:c[s%c.length]}}),i.jsxRuntimeExports.jsx(Ke._,{size:"sm",marginBottom:"none",leading:"none",children:r})]},s))}):i.jsxRuntimeExports.jsx("svg",{width:"100%",viewBox:"0 0 320 30",direction:"ltr",children:i.jsxRuntimeExports.jsxs("g",{children:[f.map((r,s)=>i.jsxRuntimeExports.jsxs("g",{className:"cursor-pointer",children:[i.jsxRuntimeExports.jsx("rect",{x:s*320/c.length+1,y:1,width:320/c.length-2,height:8,style:{fill:c[s],stroke:c[s]}}),i.jsxRuntimeExports.jsx("text",{x:(s+1)*320/c.length,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",style:{textAnchor:"middle"},children:ht.numberFormattingFunction(r,"NA")})]},s)),i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("rect",{x:f.length*320/c.length+1,y:1,width:320/c.length-2,height:8,style:{fill:c[f.length],stroke:c[f.length]}})})]})})]})]}):i.jsxRuntimeExports.jsx("button",{type:"button",className:"mb-0 border-0 bg-transparent p-0 self-start",onClick:()=>{ne(!0)},children:i.jsxRuntimeExports.jsx("div",{className:"show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500",children:"Show Legend"})})}),S&&P?i.jsxRuntimeExports.jsx(pt.Tooltip,{data:S,body:P,xPos:le.x,yPos:le.y,backgroundStyle:fe?.tooltip,className:U?.tooltip}):null,$&&H!==void 0?i.jsxRuntimeExports.jsx(xt.DetailsModal,{body:$,data:H,setData:N,className:U?.modal}):null]})}function kt(t){const e=i.compilerRuntimeExports.c(97),{data:n,mapData:x,graphTitle:w,colors:R,sources:f,graphDescription:c,height:o,width:l,footNote:v,colorDomain:a,colorLegendTitle:j,scaleType:q,padding:P,mapNoDataColor:fe,backgroundColor:U,mapBorderColor:oe,relativeHeight:C,tooltip:re,graphID:se,mapProperty:$,dataDownload:V,language:ve,minHeight:ye,theme:T,ariaLabel:M,styles:m,classNames:g,autoRotate:W,enableZoom:Z,globeMaterial:ie,centerPoint:J,atmosphereColor:L,showColorScale:z,resetSelectionOnDoubleClick:ae,detailsOnClick:y,onSeriesMouseOver:X,onSeriesMouseClick:A,highlightedIds:B,highlightedAltitude:be,dimmedOpacity:u,scale:H,globeOffset:N,polygonAltitude:we,globeCurvatureResolution:ne,atmosphereAltitude:le,fogSettings:ce,lights:S,selectedId:de,collapseColorScaleByDefault:Y}=t,E=x===void 0?"https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json":x,G=v===void 0?"The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.":v,k=q===void 0?"threshold":q,r=fe===void 0?te.Colors.light.graphNoData:fe,s=U===void 0?!1:U,d=oe===void 0?te.Colors.light.grays["gray-500"]:oe,b=$===void 0?"ISO3":$,p=V===void 0?!1:V,D=ve===void 0?"en":ve,O=ye===void 0?0:ye,F=T===void 0?"light":T,ue=W===void 0?!0:W,Le=Z===void 0?!0:Z;let je;e[0]!==J?(je=J===void 0?[0,0]:J,e[0]=J,e[1]=je):je=e[1];const Ce=je,ze=L===void 0?"#999":L,Ae=z===void 0?!0:z,Ge=ae===void 0?!0:ae;let Re;e[2]!==B?(Re=B===void 0?[]:B,e[2]=B,e[3]=Re):Re=e[3];const Fe=Re,Be=be===void 0?.1:be,He=u===void 0?.3:u,Ie=H===void 0?1:H;let Se;e[4]!==N?(Se=N===void 0?[0,0]:N,e[4]=N,e[5]=Se):Se=e[5];const _e=Se,Ue=we===void 0?.01:we,$e=ne===void 0?4:ne,Ve=le===void 0?.15:le;let Ee;e[6]!==S?(Ee=S===void 0?[{type:"ambient",color:4210752,intensity:.4},{type:"directional",color:16777215,intensity:1,position:{x:5,y:10,z:5}}]:S,e[6]=S,e[7]=Ee):Ee=e[7];const We=Ee,[De,ot]=h.useState(void 0),[I,rt]=h.useState(0),[pe,st]=h.useState(0),Ze=h.useRef(null),it=h.useRef(null);let Ne,ke;e[8]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{const ge=new ResizeObserver(xe=>{rt(xe[0].target.clientWidth||620),st(xe[0].target.clientHeight||480)});return Ze.current&&ge.observe(Ze.current),()=>ge.disconnect()},ke=[],e[8]=Ne,e[9]=ke):(Ne=e[8],ke=e[9]),h.useEffect(Ne,ke);let Oe;e[10]===Symbol.for("react.memo_cache_sentinel")?(Oe=ge=>{ot(ge)},e[10]=Oe):Oe=e[10];const he=h.useEffectEvent(Oe);let qe;e[11]!==E||e[12]!==he?(qe=()=>{typeof E=="string"?wt.fetchAndParseJSON(E).then(xe=>{if(E==="https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json"){const at=xe.features.map(zt);he(at)}else he(xe.features)}):he(E.features)},e[11]=E,e[12]=he,e[13]=qe):qe=e[13];let Pe;e[14]!==E?(Pe=[E],e[14]=E,e[15]=Pe):Pe=e[15],h.useEffect(qe,Pe);let Te;e[16]!==a||e[17]!==R?.length||e[18]!==n||e[19]!==k?(Te=a||(k==="categorical"?jt.getUniqValue(n,"x"):Ct.getJenks(n.map(Lt),R?.length||4)),e[16]=a,e[17]=R?.length,e[18]=n,e[19]=k,e[20]=Te):Te=e[20];const me=Te,Je=g?.graphContainer,Xe=m?.graphContainer;let K;e[21]!==g?.description||e[22]!==g?.title||e[23]!==n||e[24]!==p||e[25]!==c||e[26]!==w||e[27]!==m?.description||e[28]!==m?.title||e[29]!==l?(K=w||c||p?i.jsxRuntimeExports.jsx(yt.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:g?.title,description:g?.description},graphTitle:w,graphDescription:c,width:l,graphDownload:void 0,dataDownload:p?n.map(Mt).filter(Tt).length>0?n.map(Pt).filter(qt):n.filter(Ot):null}):null,e[21]=g?.description,e[22]=g?.title,e[23]=n,e[24]=p,e[25]=c,e[26]=w,e[27]=m?.description,e[28]=m?.title,e[29]=l,e[30]=K):K=e[30];let Q;e[31]!==Ve||e[32]!==ze||e[33]!==ue||e[34]!==Ce||e[35]!==g||e[36]!==Y||e[37]!==j||e[38]!==R||e[39]!==n||e[40]!==y||e[41]!==He||e[42]!==me||e[43]!==Le||e[44]!==ce||e[45]!==$e||e[46]!==ie||e[47]!==_e||e[48]!==o||e[49]!==Be||e[50]!==Fe||e[51]!==We||e[52]!==d||e[53]!==r||e[54]!==b||e[55]!==De||e[56]!==O||e[57]!==A||e[58]!==X||e[59]!==Ue||e[60]!==C||e[61]!==Ge||e[62]!==Ie||e[63]!==k||e[64]!==de||e[65]!==Ae||e[66]!==m||e[67]!==pe||e[68]!==I||e[69]!==F||e[70]!==re||e[71]!==l?(Q=i.jsxRuntimeExports.jsx(Qe.GraphArea,{ref:Ze,children:I&&pe&&De?i.jsxRuntimeExports.jsx(Nt,{data:n,globeOffset:_e,polygonData:De,colorDomain:me,width:I,height:pe,colors:R||(k==="categorical"?te.Colors[F].sequentialColors[`neutralColorsx0${me.length}`]:te.Colors[F].sequentialColors[`neutralColorsx0${me.length+1}`]),mapNoDataColor:r,categorical:k==="categorical",mapBorderColor:d,tooltip:re,mapProperty:b,styles:m,classNames:g,autoRotate:ue===!0?1.5:ue===!1?0:ue,enableZoom:Le,globeMaterial:ie,atmosphereColor:ze,colorLegendTitle:j,showColorScale:Ae,hoverStrokeColor:F==="light"?te.Colors.light.grays["gray-700"]:te.Colors.light.grays["gray-300"],highlightedIds:Fe,resetSelectionOnDoubleClick:Ge,detailsOnClick:y,onSeriesMouseOver:X,onSeriesMouseClick:A,scale:Ie,polygonAltitude:Ue,centerLat:Ce[0],centerLng:Ce[1],atmosphereAltitude:Ve,globeCurvatureResolution:$e,fogSettings:ce,lights:We,highlightedAltitude:Be,selectedId:de,collapseColorScaleByDefault:Y,dimmedOpacity:He}):i.jsxRuntimeExports.jsx("div",{style:{height:`${Math.max(O,o||(C?O?(l||I)*C>O?(l||I)*C:O:(l||I)*C:pe))}px`},className:"flex items-center justify-center",children:i.jsxRuntimeExports.jsx(nt.w,{"aria-label":"Loading graph"})})}),e[31]=Ve,e[32]=ze,e[33]=ue,e[34]=Ce,e[35]=g,e[36]=Y,e[37]=j,e[38]=R,e[39]=n,e[40]=y,e[41]=He,e[42]=me,e[43]=Le,e[44]=ce,e[45]=$e,e[46]=ie,e[47]=_e,e[48]=o,e[49]=Be,e[50]=Fe,e[51]=We,e[52]=d,e[53]=r,e[54]=b,e[55]=De,e[56]=O,e[57]=A,e[58]=X,e[59]=Ue,e[60]=C,e[61]=Ge,e[62]=Ie,e[63]=k,e[64]=de,e[65]=Ae,e[66]=m,e[67]=pe,e[68]=I,e[69]=F,e[70]=re,e[71]=l,e[72]=Q):Q=e[72];let ee;e[73]!==g?.footnote||e[74]!==g?.source||e[75]!==G||e[76]!==f||e[77]!==m?.footnote||e[78]!==m?.source||e[79]!==l?(ee=f||G?i.jsxRuntimeExports.jsx(bt.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:g?.footnote,source:g?.source},sources:f,footNote:G,width:l}):null,e[73]=g?.footnote,e[74]=g?.source,e[75]=G,e[76]=f,e[77]=m?.footnote,e[78]=m?.source,e[79]=l,e[80]=ee):ee=e[80];let Me;return e[81]!==M||e[82]!==s||e[83]!==se||e[84]!==o||e[85]!==D||e[86]!==O||e[87]!==P||e[88]!==C||e[89]!==Je||e[90]!==Xe||e[91]!==K||e[92]!==Q||e[93]!==ee||e[94]!==F||e[95]!==l?(Me=i.jsxRuntimeExports.jsxs(Qe.GraphContainer,{className:Je,style:Xe,id:se,ref:it,"aria-label":M,backgroundColor:s,theme:F,language:D,minHeight:O,width:l,height:o,relativeHeight:C,padding:P,children:[K,Q,ee]}),e[81]=M,e[82]=s,e[83]=se,e[84]=o,e[85]=D,e[86]=O,e[87]=P,e[88]=C,e[89]=Je,e[90]=Xe,e[91]=K,e[92]=Q,e[93]=ee,e[94]=F,e[95]=l,e[96]=Me):Me=e[96],Me}function Ot(t){return t!==void 0}function qt(t){return t!==void 0}function Pt(t){return t.data}function Tt(t){return t!==void 0}function Mt(t){return t.data}function Lt(t){return t.x}function zt(t){if(t.geometry.type==="Polygon"){const x=[...t.geometry.coordinates[0]].reverse(),w={...t.geometry,coordinates:[x]};return{...t,geometry:w}}const e=[];t.geometry.coordinates.forEach(x=>{const w=[...x[0]].reverse();e.push([w])});const n={...t.geometry,coordinates:e};return{...t,geometry:n}}exports.ThreeDGlobe=kt;
2
2
  //# sourceMappingURL=ThreeDGlobe.cjs.map
@@ -4,7 +4,7 @@ import { w as ht } from "./Spinner--r2RrJV8.js";
4
4
  import mt from "react-globe.gl";
5
5
  import { i as ut } from "./index-Bwrro8-q.js";
6
6
  import * as $ from "three";
7
- import { _ as et } from "./Typography-iR8PEgdt.js";
7
+ import { _ as et } from "./Typography-CdMGooqp.js";
8
8
  import { g as gt } from "./_commonjsHelpers-ByX85dGu.js";
9
9
  import { T as ft } from "./Tooltip-BRnAz2Gv.js";
10
10
  import { n as vt } from "./numberFormattingFunction-14YCbkN2.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),T=require("react"),$=require("./Typography-DrJ7IOdw.cjs"),q=require("./numberFormattingFunction-02t-wJta.cjs");function F(A){const e=o.compilerRuntimeExports.c(52),{colorLegendTitle:k,colorDomain:r,colors:t,setSelectedColor:s,width:W,naColor:i,className:w,showNAColor:C}=A,[l,x]=T.useState(void 0),n=i?320:360;let c;e[0]!==w?(c=o.mo("flex flex-wrap gap-0 justify-center leading-0",w),e[0]=w,e[1]=c):c=e[1];const D=W?`${W}px`:"none";let m;e[2]!==D?(m={maxWidth:D},e[2]=D,e[3]=m):m=e[3];let h;e[4]!==k?(h=k&&k!==""?o.jsxRuntimeExports.jsx($._,{size:"sm",marginBottom:"2xs",className:"w-full text-center",children:k}):null,e[4]=k,e[5]=h):h=e[5];let E;e[6]===Symbol.for("react.memo_cache_sentinel")?(E={maxWidth:"360px"},e[6]=E):E=e[6];let d;if(e[7]!==r||e[8]!==t||e[9]!==l||e[10]!==n||e[11]!==s){let R;e[13]!==t||e[14]!==l||e[15]!==n||e[16]!==s?(R=(S,a)=>o.jsxRuntimeExports.jsxs("g",{onMouseOver:()=>{x(t[a]),s(t[a])},onMouseLeave:()=>{x(void 0),s(void 0)},className:"cursor-pointer",children:[o.jsxRuntimeExports.jsx("rect",{x:a*n/t.length+1,y:1,width:n/t.length-2,height:8,className:`stroke-1 ${l===t[a]?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,style:{fill:t[a],...l!==t[a]?{stroke:t[a]}:{}}}),o.jsxRuntimeExports.jsx("text",{x:(a+1)*n/t.length,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",style:{textAnchor:"middle"},children:q.numberFormattingFunction(S,"NA",2,"","")})]},a),e[13]=t,e[14]=l,e[15]=n,e[16]=s,e[17]=R):R=e[17],d=r.map(R),e[7]=r,e[8]=t,e[9]=l,e[10]=n,e[11]=s,e[12]=d}else d=e[12];let g;e[18]!==r.length||e[19]!==t||e[20]!==s?(g=()=>{x(t[r.length]),s(t[r.length])},e[18]=r.length,e[19]=t,e[20]=s,e[21]=g):g=e[21];let u;e[22]!==s?(u=()=>{x(void 0),s(void 0)},e[22]=s,e[23]=u):u=e[23];const M=r.length*n/t.length+1,b=n/t.length-2,L=`cursor-pointer stroke-1 ${l===t[r.length]?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,O=t[r.length];let y;e[24]!==r.length||e[25]!==t||e[26]!==l?(y=l!==t[r.length]?{stroke:t[r.length]}:{},e[24]=r.length,e[25]=t,e[26]=l,e[27]=y):y=e[27];let p;e[28]!==O||e[29]!==y?(p={fill:O,...y},e[28]=O,e[29]=y,e[30]=p):p=e[30];let f;e[31]!==L||e[32]!==p||e[33]!==g||e[34]!==u||e[35]!==M||e[36]!==b?(f=o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx("rect",{onMouseOver:g,onMouseLeave:u,x:M,y:1,width:b,height:8,className:L,style:p})}),e[31]=L,e[32]=p,e[33]=g,e[34]=u,e[35]=M,e[36]=b,e[37]=f):f=e[37];let j;e[38]!==l||e[39]!==i||e[40]!==s||e[41]!==C?(j=C?o.jsxRuntimeExports.jsxs("g",{onMouseOver:()=>{x(i||"#D4D6D8"),s(i||"#D4D6D8")},onMouseLeave:()=>{x(void 0),s(void 0)},className:"cursor-pointer",children:[o.jsxRuntimeExports.jsx("rect",{x:335,y:1,width:24,height:8,className:`stroke-1 ${l===i?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,style:{fill:i||"#D4D6D8",...l!==i?{stroke:i}:{},strokeWidth:1}}),o.jsxRuntimeExports.jsx("text",{x:337.5,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",style:{textAnchor:"start"},children:"NA"})]}):null,e[38]=l,e[39]=i,e[40]=s,e[41]=C,e[42]=j):j=e[42];let v;e[43]!==f||e[44]!==j||e[45]!==d?(v=o.jsxRuntimeExports.jsx("svg",{width:"100%",viewBox:"0 0 360 30",style:E,direction:"ltr",children:o.jsxRuntimeExports.jsxs("g",{children:[d,f,j]})}),e[43]=f,e[44]=j,e[45]=d,e[46]=v):v=e[46];let N;return e[47]!==c||e[48]!==v||e[49]!==m||e[50]!==h?(N=o.jsxRuntimeExports.jsxs("div",{className:c,style:m,"aria-label":"Color legend",children:[h,v]}),e[47]=c,e[48]=v,e[49]=m,e[50]=h,e[51]=N):N=e[51],N}exports.ThresholdColorLegendWithMouseOver=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),T=require("react"),$=require("./Typography-Cc_iHQB-.cjs"),q=require("./numberFormattingFunction-02t-wJta.cjs");function F(A){const e=o.compilerRuntimeExports.c(52),{colorLegendTitle:k,colorDomain:r,colors:t,setSelectedColor:s,width:W,naColor:i,className:w,showNAColor:C}=A,[l,x]=T.useState(void 0),n=i?320:360;let c;e[0]!==w?(c=o.mo("flex flex-wrap gap-0 justify-center leading-0",w),e[0]=w,e[1]=c):c=e[1];const D=W?`${W}px`:"none";let m;e[2]!==D?(m={maxWidth:D},e[2]=D,e[3]=m):m=e[3];let h;e[4]!==k?(h=k&&k!==""?o.jsxRuntimeExports.jsx($._,{size:"sm",marginBottom:"2xs",className:"w-full text-center",children:k}):null,e[4]=k,e[5]=h):h=e[5];let E;e[6]===Symbol.for("react.memo_cache_sentinel")?(E={maxWidth:"360px"},e[6]=E):E=e[6];let d;if(e[7]!==r||e[8]!==t||e[9]!==l||e[10]!==n||e[11]!==s){let R;e[13]!==t||e[14]!==l||e[15]!==n||e[16]!==s?(R=(S,a)=>o.jsxRuntimeExports.jsxs("g",{onMouseOver:()=>{x(t[a]),s(t[a])},onMouseLeave:()=>{x(void 0),s(void 0)},className:"cursor-pointer",children:[o.jsxRuntimeExports.jsx("rect",{x:a*n/t.length+1,y:1,width:n/t.length-2,height:8,className:`stroke-1 ${l===t[a]?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,style:{fill:t[a],...l!==t[a]?{stroke:t[a]}:{}}}),o.jsxRuntimeExports.jsx("text",{x:(a+1)*n/t.length,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",style:{textAnchor:"middle"},children:q.numberFormattingFunction(S,"NA",2,"","")})]},a),e[13]=t,e[14]=l,e[15]=n,e[16]=s,e[17]=R):R=e[17],d=r.map(R),e[7]=r,e[8]=t,e[9]=l,e[10]=n,e[11]=s,e[12]=d}else d=e[12];let g;e[18]!==r.length||e[19]!==t||e[20]!==s?(g=()=>{x(t[r.length]),s(t[r.length])},e[18]=r.length,e[19]=t,e[20]=s,e[21]=g):g=e[21];let u;e[22]!==s?(u=()=>{x(void 0),s(void 0)},e[22]=s,e[23]=u):u=e[23];const M=r.length*n/t.length+1,b=n/t.length-2,L=`cursor-pointer stroke-1 ${l===t[r.length]?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,O=t[r.length];let y;e[24]!==r.length||e[25]!==t||e[26]!==l?(y=l!==t[r.length]?{stroke:t[r.length]}:{},e[24]=r.length,e[25]=t,e[26]=l,e[27]=y):y=e[27];let p;e[28]!==O||e[29]!==y?(p={fill:O,...y},e[28]=O,e[29]=y,e[30]=p):p=e[30];let f;e[31]!==L||e[32]!==p||e[33]!==g||e[34]!==u||e[35]!==M||e[36]!==b?(f=o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx("rect",{onMouseOver:g,onMouseLeave:u,x:M,y:1,width:b,height:8,className:L,style:p})}),e[31]=L,e[32]=p,e[33]=g,e[34]=u,e[35]=M,e[36]=b,e[37]=f):f=e[37];let j;e[38]!==l||e[39]!==i||e[40]!==s||e[41]!==C?(j=C?o.jsxRuntimeExports.jsxs("g",{onMouseOver:()=>{x(i||"#D4D6D8"),s(i||"#D4D6D8")},onMouseLeave:()=>{x(void 0),s(void 0)},className:"cursor-pointer",children:[o.jsxRuntimeExports.jsx("rect",{x:335,y:1,width:24,height:8,className:`stroke-1 ${l===i?"stroke-primary-gray-700 dark:stroke-primary-gray-300":""}`,style:{fill:i||"#D4D6D8",...l!==i?{stroke:i}:{},strokeWidth:1}}),o.jsxRuntimeExports.jsx("text",{x:337.5,y:25,className:"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",style:{textAnchor:"start"},children:"NA"})]}):null,e[38]=l,e[39]=i,e[40]=s,e[41]=C,e[42]=j):j=e[42];let v;e[43]!==f||e[44]!==j||e[45]!==d?(v=o.jsxRuntimeExports.jsx("svg",{width:"100%",viewBox:"0 0 360 30",style:E,direction:"ltr",children:o.jsxRuntimeExports.jsxs("g",{children:[d,f,j]})}),e[43]=f,e[44]=j,e[45]=d,e[46]=v):v=e[46];let N;return e[47]!==c||e[48]!==v||e[49]!==m||e[50]!==h?(N=o.jsxRuntimeExports.jsxs("div",{className:c,style:m,"aria-label":"Color legend",children:[h,v]}),e[47]=c,e[48]=v,e[49]=m,e[50]=h,e[51]=N):N=e[51],N}exports.ThresholdColorLegendWithMouseOver=F;
2
2
  //# sourceMappingURL=ThresholdColorLegendWithMouseOver.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { c as B, m as E, j as o } from "./index-CHPV5EwG-DecW7_qr.js";
2
2
  import { useState as F } from "react";
3
- import { _ as R } from "./Typography-iR8PEgdt.js";
3
+ import { _ as R } from "./Typography-CdMGooqp.js";
4
4
  import { n as T } from "./numberFormattingFunction-14YCbkN2.js";
5
5
  function I(S) {
6
6
  const e = B.c(52), {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index-CHPV5EwG-6v2a2njQ.cjs"),$=require("react"),Pt=require("./Typography-DrJ7IOdw.cjs"),Jt=require("./Tooltip-BLa2EfMs.cjs"),Qt=require("./numberFormattingFunction-02t-wJta.cjs"),It=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),et=require("./Colors.cjs"),_t=require("./DetailsModal-DHttOA80.cjs"),Et=require("./proxy-C4-uo6nS.cjs"),te=require("./use-in-view-C3o_ntMv.cjs"),ee=require("./index-CoobIWNj.cjs"),ne=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ie=require("./GraphFooter.cjs"),oe=require("./GraphHeader.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),ae=require("./EmptyState-DX0t62iF.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Gt=require("./GraphContainer-B1EDxJ0S.cjs");function le(e){var t=0,n=e.children,i=n&&n.length;if(!i)t=1;else for(;--i>=0;)t+=n[i].value;e.value=t}function se(){return this.eachAfter(le)}function ue(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this}function ce(e,t){for(var n=this,i=[n],r,l,a=-1;n=i.pop();)if(e.call(t,n,++a,this),r=n.children)for(l=r.length-1;l>=0;--l)i.push(r[l]);return this}function de(e,t){for(var n=this,i=[n],r=[],l,a,d,g=-1;n=i.pop();)if(r.push(n),l=n.children)for(a=0,d=l.length;a<d;++a)i.push(l[a]);for(;n=r.pop();)e.call(t,n,++g,this);return this}function he(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i}function fe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n})}function pe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ge(e){for(var t=this,n=me(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i}function me(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;for(e=n.pop(),t=i.pop();e===t;)r=e,e=n.pop(),t=i.pop();return r}function ve(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xe(){return Array.from(this)}function ye(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function we(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*je(){var e=this,t,n=[e],i,r,l;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,i=e.children)for(r=0,l=i.length;r<l;++r)n.push(i[r]);while(n.length)}function Ft(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Oe)):t===void 0&&(t=be);for(var n=new wt(e),i,r=[n],l,a,d,g;i=r.pop();)if((a=t(i.data))&&(g=(a=Array.from(a)).length))for(i.children=a,d=g-1;d>=0;--d)r.push(l=a[d]=new wt(a[d])),l.parent=i,l.depth=i.depth+1;return n.eachBefore(Xt)}function Ce(){return Ft(this).eachBefore(Me)}function be(e){return e.children}function Oe(e){return Array.isArray(e)?e[1]:null}function Me(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Xt(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function wt(e){this.data=e,this.depth=this.height=0,this.parent=null}wt.prototype=Ft.prototype={constructor:wt,count:se,each:ue,eachAfter:de,eachBefore:ce,find:he,sum:fe,sort:pe,path:ge,ancestors:ve,descendants:xe,leaves:ye,links:we,copy:Ce,[Symbol.iterator]:je};function Vt(e){return e==null?null:Yt(e)}function Yt(e){if(typeof e!="function")throw new Error;return e}function xt(){return 0}function yt(e){return function(){return e}}function Ee(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Re(e,t,n,i,r){for(var l=e.children,a,d=-1,g=l.length,x=e.value&&(i-t)/e.value;++d<g;)a=l[d],a.y0=n,a.y1=r,a.x0=t,a.x1=t+=a.value*x}var De={depth:-1},Ht={},Nt={};function Se(e){return e.id}function ke(e){return e.parentId}function Be(){var e=Se,t=ke,n;function i(r){var l=Array.from(r),a=e,d=t,g,x,u,v,o,h,c,m,f=new Map;if(n!=null){const p=l.map((b,j)=>qe(n(b,j,r))),O=p.map(Wt),R=new Set(p).add("");for(const b of O)R.has(b)||(R.add(b),p.push(b),O.push(Wt(b)),l.push(Nt));a=(b,j)=>p[j],d=(b,j)=>O[j]}for(u=0,g=l.length;u<g;++u)x=l[u],h=l[u]=new wt(x),(c=a(x,u,r))!=null&&(c+="")&&(m=h.id=c,f.set(m,f.has(m)?Ht:h)),(c=d(x,u,r))!=null&&(c+="")&&(h.parent=c);for(u=0;u<g;++u)if(h=l[u],c=h.parent){if(o=f.get(c),!o)throw new Error("missing: "+c);if(o===Ht)throw new Error("ambiguous: "+c);o.children?o.children.push(h):o.children=[h],h.parent=o}else{if(v)throw new Error("multiple roots");v=h}if(!v)throw new Error("no root");if(n!=null){for(;v.data===Nt&&v.children.length===1;)v=v.children[0],--g;for(let p=l.length-1;p>=0&&(h=l[p],h.data===Nt);--p)h.data=null}if(v.parent=De,v.eachBefore(function(p){p.depth=p.parent.depth+1,--g}).eachBefore(Xt),v.parent=null,g>0)throw new Error("cycle");return v}return i.id=function(r){return arguments.length?(e=Vt(r),i):e},i.parentId=function(r){return arguments.length?(t=Vt(r),i):t},i.path=function(r){return arguments.length?(n=Vt(r),i):n},i}function qe(e){e=`${e}`;let t=e.length;return $t(e,t-1)&&!$t(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function Wt(e){let t=e.length;if(t<2)return"";for(;--t>1&&!$t(e,t););return e.slice(0,t)}function $t(e,t){if(e[t]==="/"){let n=0;for(;t>0&&e[--t]==="\\";)++n;if((n&1)===0)return!0}return!1}function Ie(e,t,n,i,r){for(var l=e.children,a,d=-1,g=l.length,x=e.value&&(r-n)/e.value;++d<g;)a=l[d],a.x0=t,a.x1=i,a.y0=n,a.y1=n+=a.value*x}var Ve=(1+Math.sqrt(5))/2;function Ne(e,t,n,i,r,l){for(var a=[],d=t.children,g,x,u=0,v=0,o=d.length,h,c,m=t.value,f,p,O,R,b,j,M;u<o;){h=r-n,c=l-i;do f=d[v++].value;while(!f&&v<o);for(p=O=f,j=Math.max(c/h,h/c)/(m*e),M=f*f*j,b=Math.max(O/M,M/p);v<o;++v){if(f+=x=d[v].value,x<p&&(p=x),x>O&&(O=x),M=f*f*j,R=Math.max(O/M,M/p),R>b){f-=x;break}b=R}a.push(g={value:f,dice:h<c,children:d.slice(u,v)}),g.dice?Re(g,n,i,r,m?i+=c*f/m:l):Ie(g,n,i,m?n+=h*f/m:r,l),m-=f,u=v}return a}const $e=(function e(t){function n(i,r,l,a,d){Ne(t,i,r,l,a,d)}return n.ratio=function(i){return e((i=+i)>1?i:1)},n})(Ve);function Te(){var e=$e,t=!1,n=1,i=1,r=[0],l=xt,a=xt,d=xt,g=xt,x=xt;function u(o){return o.x0=o.y0=0,o.x1=n,o.y1=i,o.eachBefore(v),r=[0],t&&o.eachBefore(Ee),o}function v(o){var h=r[o.depth],c=o.x0+h,m=o.y0+h,f=o.x1-h,p=o.y1-h;f<c&&(c=f=(c+f)/2),p<m&&(m=p=(m+p)/2),o.x0=c,o.y0=m,o.x1=f,o.y1=p,o.children&&(h=r[o.depth+1]=l(o)/2,c+=x(o)-h,m+=a(o)-h,f-=d(o)-h,p-=g(o)-h,f<c&&(c=f=(c+f)/2),p<m&&(m=p=(m+p)/2),e(o,c,m,f,p))}return u.round=function(o){return arguments.length?(t=!!o,u):t},u.size=function(o){return arguments.length?(n=+o[0],i=+o[1],u):[n,i]},u.tile=function(o){return arguments.length?(e=Yt(o),u):e},u.padding=function(o){return arguments.length?u.paddingInner(o).paddingOuter(o):u.paddingInner()},u.paddingInner=function(o){return arguments.length?(l=typeof o=="function"?o:yt(+o),u):l},u.paddingOuter=function(o){return arguments.length?u.paddingTop(o).paddingRight(o).paddingBottom(o).paddingLeft(o):u.paddingTop()},u.paddingTop=function(o){return arguments.length?(a=typeof o=="function"?o:yt(+o),u):a},u.paddingRight=function(o){return arguments.length?(d=typeof o=="function"?o:yt(+o),u):d},u.paddingBottom=function(o){return arguments.length?(g=typeof o=="function"?o:yt(+o),u):g},u.paddingLeft=function(o){return arguments.length?(x=typeof o=="function"?o:yt(+o),u):x},u}function Ae(e){const t=y.compilerRuntimeExports.c(73),{data:n,colors:i,leftMargin:r,width:l,height:a,colorDomain:d,rightMargin:g,topMargin:x,bottomMargin:u,showLabels:v,tooltip:o,onSeriesMouseOver:h,selectedColor:c,showValues:m,suffix:f,prefix:p,highlightedDataPoints:O,onSeriesMouseClick:R,resetSelectionOnDoubleClick:b,detailsOnClick:j,language:M,styles:k,classNames:D,animate:E,dimmedOpacity:Z,precision:J}=e,ot=$.useRef(null);let nt;t[0]!==E.amount||t[1]!==E.once?(nt={once:E.once,amount:E.amount},t[0]=E.amount,t[1]=E.once,t[2]=nt):nt=t[2];const Q=te.useInView(ot,nt),[it,rt]=$.useState(void 0),[T,at]=$.useState(void 0),[_,lt]=$.useState(void 0),[tt,C]=$.useState(void 0);let w;t[3]!==u||t[4]!==r||t[5]!==g||t[6]!==x?(w={top:x,bottom:u,left:r,right:g},t[3]=u,t[4]=r,t[5]=g,t[6]=x,t[7]=w):w=t[7];const S=w,st=l-S.left-S.right,ut=a-S.top-S.bottom;let A,L,P,z,G,H,W,F,X;if(t[8]!==E.duration||t[9]!==D?.graphObjectValues||t[10]!==d||t[11]!==i||t[12]!==n||t[13]!==j||t[14]!==Z||t[15]!==ut||t[16]!==st||t[17]!==a||t[18]!==O||t[19]!==Q||t[20]!==M||t[21]!==S.left||t[22]!==S.top||t[23]!==T||t[24]!==R||t[25]!==h||t[26]!==J||t[27]!==p||t[28]!==b||t[29]!==c||t[30]!==v||t[31]!==m||t[32]!==k?.graphObjectValues||t[33]!==f||t[34]!==l){const vt=[{id:"root",parent:void 0,value:void 0,data:void 0},...n.map(Ye)],ct=Be().id(Xe).parentId(Fe)(vt);ct.sum(We);const N=Te().size([st,ut]).padding(2)(ct);L=Et.motion.svg,G=`${l}px`,H=`${a}px`,W=`0 0 ${l} ${a}`,F="ltr",X=ot,z=`translate(${S.left},${S.top})`,A=ee.AnimatePresence,P=N.children?.map(s=>y.jsxRuntimeExports.jsxs(Et.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:s.x0,y:s.y0},whileInView:{opacity:c?s.data.data.color&&i[d.indexOf(s.data.data.color)]===c?1:Z:O.length!==0?O.indexOf(s.data.id)!==-1?.85:Z:.85,x:s.x0,y:s.y0,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial",exit:{opacity:0,transition:{duration:E.duration}},onMouseEnter:U=>{rt(s.data.data),C(U.clientY),lt(U.clientX),h?.(s.data.data)},onClick:()=>{(R||j)&&(T===s.data.id&&b?(at(void 0),R?.(void 0)):(at(s.data.id),R?.(s.data.data)))},onMouseMove:U=>{rt(s.data.data),C(U.clientY),lt(U.clientX)},onMouseLeave:()=>{rt(void 0),lt(void 0),C(void 0),h?.(void 0)},children:[y.jsxRuntimeExports.jsx(Et.motion.rect,{x:0,y:0,exit:{width:0,height:0,opacity:0,transition:{duration:E.duration}},variants:{initial:{width:0,height:0,fill:n.filter(He).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray},whileInView:{width:s.x1-s.x0,height:s.y1-s.y0,fill:n.filter(Ge).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial"}),s.x1-s.x0>50&&s.y1-s.y0>25&&(v||m)?y.jsxRuntimeExports.jsx(Et.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial",exit:{opacity:0,transition:{duration:E.duration}},children:y.jsxRuntimeExports.jsx("foreignObject",{y:0,x:0,width:s.x1-s.x0,height:s.y1-s.y0,children:y.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5 p-2 w-full",style:{color:It.getTextColorBasedOnBgColor(n.filter(ze).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray)},children:[v?y.jsxRuntimeExports.jsx(Pt._,{marginBottom:"none",size:"sm",leading:"none",className:y.mo("w-full treemap-label",M==="ar"||M==="he"?"text-right":"text-left",D?.graphObjectValues),style:{WebkitLineClamp:s.y1-s.y0>50?s.y1-s.y0>100?s.y1-s.y0>150?void 0:3:2:1,display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",color:It.getTextColorBasedOnBgColor(n.filter(Pe).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray),...k?.graphObjectValues||{}},children:s.data.id}):null,m?y.jsxRuntimeExports.jsx(Pt._,{marginBottom:"none",size:"sm",leading:"none",className:y.mo("w-full font-bold treemap-value",M==="ar"||M==="he"?"text-right":"text-left",D?.graphObjectValues),style:{color:It.getTextColorBasedOnBgColor(n.filter(Le).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray),...k?.graphObjectValues||{}},children:Qt.numberFormattingFunction(s.data.value,"NA",J,p,f)}):null]})})}):null]},s.data.id)),t[8]=E.duration,t[9]=D?.graphObjectValues,t[10]=d,t[11]=i,t[12]=n,t[13]=j,t[14]=Z,t[15]=ut,t[16]=st,t[17]=a,t[18]=O,t[19]=Q,t[20]=M,t[21]=S.left,t[22]=S.top,t[23]=T,t[24]=R,t[25]=h,t[26]=J,t[27]=p,t[28]=b,t[29]=c,t[30]=v,t[31]=m,t[32]=k?.graphObjectValues,t[33]=f,t[34]=l,t[35]=A,t[36]=L,t[37]=P,t[38]=z,t[39]=G,t[40]=H,t[41]=W,t[42]=F,t[43]=X}else A=t[35],L=t[36],P=t[37],z=t[38],G=t[39],H=t[40],W=t[41],F=t[42],X=t[43];let Y;t[44]!==A||t[45]!==P?(Y=y.jsxRuntimeExports.jsx(A,{children:P}),t[44]=A,t[45]=P,t[46]=Y):Y=t[46];let B;t[47]!==z||t[48]!==Y?(B=y.jsxRuntimeExports.jsx("g",{transform:z,children:Y}),t[47]=z,t[48]=Y,t[49]=B):B=t[49];let K;t[50]!==L||t[51]!==B||t[52]!==G||t[53]!==H||t[54]!==W||t[55]!==F||t[56]!==X?(K=y.jsxRuntimeExports.jsx(L,{width:G,height:H,viewBox:W,direction:F,ref:X,children:B}),t[50]=L,t[51]=B,t[52]=G,t[53]=H,t[54]=W,t[55]=F,t[56]=X,t[57]=K):K=t[57];let q;t[58]!==D?.tooltip||t[59]!==_||t[60]!==tt||t[61]!==it||t[62]!==k?.tooltip||t[63]!==o?(q=it&&o&&_&&tt?y.jsxRuntimeExports.jsx(Jt.Tooltip,{data:it,body:o,xPos:_,yPos:tt,backgroundStyle:k?.tooltip,className:D?.tooltip}):null,t[58]=D?.tooltip,t[59]=_,t[60]=tt,t[61]=it,t[62]=k?.tooltip,t[63]=o,t[64]=q):q=t[64];let I;t[65]!==D?.modal||t[66]!==j||t[67]!==T?(I=j&&T!==void 0?y.jsxRuntimeExports.jsx(_t.DetailsModal,{body:j,data:T,setData:at,className:D?.modal}):null,t[65]=D?.modal,t[66]=j,t[67]=T,t[68]=I):I=t[68];let V;return t[69]!==K||t[70]!==q||t[71]!==I?(V=y.jsxRuntimeExports.jsxs(y.jsxRuntimeExports.Fragment,{children:[K,q,I]}),t[69]=K,t[70]=q,t[71]=I,t[72]=V):V=t[72],V}function Le(e){return e.color}function Pe(e){return e.color}function ze(e){return e.color}function Ge(e){return e.color}function He(e){return e.color}function We(e){return e.value}function Fe(e){return e.parent}function Xe(e){return e.id}function Ye(e){return{id:e.label,value:e.size,parent:"root",data:e}}function Ke(e){const t=y.compilerRuntimeExports.c(83),{data:n,graphTitle:i,colors:r,suffix:l,sources:a,prefix:d,graphDescription:g,leftMargin:x,rightMargin:u,topMargin:v,bottomMargin:o,height:h,width:c,footNote:m,colorDomain:f,colorLegendTitle:p,padding:O,backgroundColor:R,showLabels:b,relativeHeight:j,tooltip:M,onSeriesMouseOver:k,showColorScale:D,showValues:E,graphID:Z,highlightedDataPoints:J,onSeriesMouseClick:ot,graphDownload:nt,dataDownload:Q,language:it,showNAColor:rt,minHeight:T,theme:at,ariaLabel:_,resetSelectionOnDoubleClick:lt,detailsOnClick:tt,styles:C,classNames:w,animate:S,dimmedOpacity:st,precision:ut}=e,A=l===void 0?"":l,L=d===void 0?"":d,P=x===void 0?0:x,z=u===void 0?0:u,G=v===void 0?0:v,H=o===void 0?0:o,W=R===void 0?!1:R,F=b===void 0?!0:b,X=D===void 0?!0:D,Y=E===void 0?!0:E;let B;t[0]!==J?(B=J===void 0?[]:J,t[0]=J,t[1]=B):B=t[1];const K=B,q=nt===void 0?!1:nt,I=Q===void 0?!1:Q,V=it===void 0?"en":it,vt=rt===void 0?!0:rt,ct=T===void 0?0:T,N=at===void 0?"light":at,s=lt===void 0?!0:lt,U=S===void 0?!1:S,Rt=st===void 0?.3:st,Dt=ut===void 0?2:ut,[jt,Kt]=$.useState(0),[Ct,Ut]=$.useState(0),[St,Zt]=$.useState(void 0),kt=$.useRef(null),Tt=$.useRef(null);let bt,Ot;t[2]===Symbol.for("react.memo_cache_sentinel")?(bt=()=>{const At=new ResizeObserver(Lt=>{Kt(Lt[0].target.clientWidth||620),Ut(Lt[0].target.clientHeight||480)});return kt.current&&At.observe(kt.current),()=>At.disconnect()},Ot=[],t[2]=bt,t[3]=Ot):(bt=t[2],Ot=t[3]),$.useEffect(bt,Ot);const Bt=w?.graphContainer,qt=C?.graphContainer;let dt;t[4]!==w?.description||t[5]!==w?.title||t[6]!==n||t[7]!==I||t[8]!==g||t[9]!==q||t[10]!==i||t[11]!==C?.description||t[12]!==C?.title||t[13]!==c?(dt=i||g||q||I?y.jsxRuntimeExports.jsx(oe.GraphHeader,{styles:{title:C?.title,description:C?.description},classNames:{title:w?.title,description:w?.description},graphTitle:i,graphDescription:g,width:c,graphDownload:q?Tt:void 0,dataDownload:I?n.map(on).filter(nn).length>0?n.map(en).filter(tn):n.filter(_e):null}):null,t[4]=w?.description,t[5]=w?.title,t[6]=n,t[7]=I,t[8]=g,t[9]=q,t[10]=i,t[11]=C?.description,t[12]=C?.title,t[13]=c,t[14]=dt):dt=t[14];let ht;t[15]!==w?.colorLegend||t[16]!==f||t[17]!==p||t[18]!==r||t[19]!==n||t[20]!==X||t[21]!==vt||t[22]!==N||t[23]!==c?(ht=X&&n.filter(Qe).length!==0&&n.length>0?y.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:c,colorLegendTitle:p,colors:r||et.Colors[N].categoricalColors.colors,colorDomain:f||zt.uniqBy(n,"color",!0),setSelectedColor:Zt,showNAColor:vt,className:w?.colorLegend}):null,t[15]=w?.colorLegend,t[16]=f,t[17]=p,t[18]=r,t[19]=n,t[20]=X,t[21]=vt,t[22]=N,t[23]=c,t[24]=ht):ht=t[24];let ft;t[25]!==n.length?(ft=n.length===0&&y.jsxRuntimeExports.jsx(ae.EmptyState,{}),t[25]=n.length,t[26]=ft):ft=t[26];let pt;t[27]!==U||t[28]!==H||t[29]!==w||t[30]!==f||t[31]!==r||t[32]!==n||t[33]!==tt||t[34]!==Rt||t[35]!==K||t[36]!==V||t[37]!==P||t[38]!==ot||t[39]!==k||t[40]!==Dt||t[41]!==L||t[42]!==s||t[43]!==z||t[44]!==St||t[45]!==F||t[46]!==Y||t[47]!==C||t[48]!==A||t[49]!==Ct||t[50]!==jt||t[51]!==N||t[52]!==M||t[53]!==G?(pt=jt&&Ct&&n.length>0?y.jsxRuntimeExports.jsx(Ae,{data:n.filter(Je),colors:n.filter(Ze).length===0?r?[r]:[et.Colors.primaryColors["blue-600"]]:r||et.Colors[N].categoricalColors.colors,colorDomain:n.filter(Ue).length===0?[]:f||zt.uniqBy(n,"color",!0),width:jt,height:Ct,leftMargin:P,rightMargin:z,topMargin:G,bottomMargin:H,showLabels:F,showValues:Y,suffix:A,prefix:L,selectedColor:St,tooltip:M,onSeriesMouseOver:k,onSeriesMouseClick:ot,highlightedDataPoints:K,resetSelectionOnDoubleClick:s,detailsOnClick:tt,styles:C,classNames:w,language:V,animate:U===!0?{duration:.5,once:!0,amount:.5}:U||{duration:0,once:!0,amount:0},dimmedOpacity:Rt,precision:Dt}):null,t[27]=U,t[28]=H,t[29]=w,t[30]=f,t[31]=r,t[32]=n,t[33]=tt,t[34]=Rt,t[35]=K,t[36]=V,t[37]=P,t[38]=ot,t[39]=k,t[40]=Dt,t[41]=L,t[42]=s,t[43]=z,t[44]=St,t[45]=F,t[46]=Y,t[47]=C,t[48]=A,t[49]=Ct,t[50]=jt,t[51]=N,t[52]=M,t[53]=G,t[54]=pt):pt=t[54];let gt;t[55]!==ft||t[56]!==pt?(gt=y.jsxRuntimeExports.jsxs(Gt.GraphArea,{ref:kt,children:[ft,pt]}),t[55]=ft,t[56]=pt,t[57]=gt):gt=t[57];let mt;t[58]!==w?.footnote||t[59]!==w?.source||t[60]!==m||t[61]!==a||t[62]!==C?.footnote||t[63]!==C?.source||t[64]!==c?(mt=a||m?y.jsxRuntimeExports.jsx(ie.GraphFooter,{styles:{footnote:C?.footnote,source:C?.source},classNames:{footnote:w?.footnote,source:w?.source},sources:a,footNote:m,width:c}):null,t[58]=w?.footnote,t[59]=w?.source,t[60]=m,t[61]=a,t[62]=C?.footnote,t[63]=C?.source,t[64]=c,t[65]=mt):mt=t[65];let Mt;return t[66]!==_||t[67]!==W||t[68]!==Z||t[69]!==h||t[70]!==V||t[71]!==ct||t[72]!==O||t[73]!==j||t[74]!==Bt||t[75]!==qt||t[76]!==dt||t[77]!==ht||t[78]!==gt||t[79]!==mt||t[80]!==N||t[81]!==c?(Mt=y.jsxRuntimeExports.jsxs(Gt.GraphContainer,{className:Bt,style:qt,id:Z,ref:Tt,"aria-label":_,backgroundColor:W,theme:N,language:V,minHeight:ct,width:c,height:h,relativeHeight:j,padding:O,children:[dt,ht,gt,mt]}),t[66]=_,t[67]=W,t[68]=Z,t[69]=h,t[70]=V,t[71]=ct,t[72]=O,t[73]=j,t[74]=Bt,t[75]=qt,t[76]=dt,t[77]=ht,t[78]=gt,t[79]=mt,t[80]=N,t[81]=c,t[82]=Mt):Mt=t[82],Mt}function Ue(e){return e.color}function Ze(e){return e.color}function Je(e){return!ne.checkIfNullOrUndefined(e.size)}function Qe(e){return e.color}function _e(e){return e!==void 0}function tn(e){return e!==void 0}function en(e){return e.data}function nn(e){return e!==void 0}function on(e){return e.data}exports.TreeMapGraph=Ke;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index-CHPV5EwG-6v2a2njQ.cjs"),$=require("react"),Pt=require("./Typography-Cc_iHQB-.cjs"),Jt=require("./Tooltip-BLa2EfMs.cjs"),Qt=require("./numberFormattingFunction-02t-wJta.cjs"),It=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),et=require("./Colors.cjs"),_t=require("./DetailsModal-DHttOA80.cjs"),Et=require("./proxy-C4-uo6nS.cjs"),te=require("./use-in-view-C3o_ntMv.cjs"),ee=require("./index-CoobIWNj.cjs"),ne=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ie=require("./GraphFooter.cjs"),oe=require("./GraphHeader.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),ae=require("./EmptyState-N1eHt3vq.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Gt=require("./GraphContainer-B1EDxJ0S.cjs");function le(e){var t=0,n=e.children,i=n&&n.length;if(!i)t=1;else for(;--i>=0;)t+=n[i].value;e.value=t}function se(){return this.eachAfter(le)}function ue(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this}function ce(e,t){for(var n=this,i=[n],r,l,a=-1;n=i.pop();)if(e.call(t,n,++a,this),r=n.children)for(l=r.length-1;l>=0;--l)i.push(r[l]);return this}function de(e,t){for(var n=this,i=[n],r=[],l,a,d,g=-1;n=i.pop();)if(r.push(n),l=n.children)for(a=0,d=l.length;a<d;++a)i.push(l[a]);for(;n=r.pop();)e.call(t,n,++g,this);return this}function he(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i}function fe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n})}function pe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ge(e){for(var t=this,n=me(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i}function me(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;for(e=n.pop(),t=i.pop();e===t;)r=e,e=n.pop(),t=i.pop();return r}function ve(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xe(){return Array.from(this)}function ye(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function we(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*je(){var e=this,t,n=[e],i,r,l;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,i=e.children)for(r=0,l=i.length;r<l;++r)n.push(i[r]);while(n.length)}function Ft(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Oe)):t===void 0&&(t=be);for(var n=new wt(e),i,r=[n],l,a,d,g;i=r.pop();)if((a=t(i.data))&&(g=(a=Array.from(a)).length))for(i.children=a,d=g-1;d>=0;--d)r.push(l=a[d]=new wt(a[d])),l.parent=i,l.depth=i.depth+1;return n.eachBefore(Xt)}function Ce(){return Ft(this).eachBefore(Me)}function be(e){return e.children}function Oe(e){return Array.isArray(e)?e[1]:null}function Me(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Xt(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function wt(e){this.data=e,this.depth=this.height=0,this.parent=null}wt.prototype=Ft.prototype={constructor:wt,count:se,each:ue,eachAfter:de,eachBefore:ce,find:he,sum:fe,sort:pe,path:ge,ancestors:ve,descendants:xe,leaves:ye,links:we,copy:Ce,[Symbol.iterator]:je};function Vt(e){return e==null?null:Yt(e)}function Yt(e){if(typeof e!="function")throw new Error;return e}function xt(){return 0}function yt(e){return function(){return e}}function Ee(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Re(e,t,n,i,r){for(var l=e.children,a,d=-1,g=l.length,x=e.value&&(i-t)/e.value;++d<g;)a=l[d],a.y0=n,a.y1=r,a.x0=t,a.x1=t+=a.value*x}var De={depth:-1},Ht={},Nt={};function Se(e){return e.id}function ke(e){return e.parentId}function Be(){var e=Se,t=ke,n;function i(r){var l=Array.from(r),a=e,d=t,g,x,u,v,o,h,c,m,f=new Map;if(n!=null){const p=l.map((b,j)=>qe(n(b,j,r))),O=p.map(Wt),R=new Set(p).add("");for(const b of O)R.has(b)||(R.add(b),p.push(b),O.push(Wt(b)),l.push(Nt));a=(b,j)=>p[j],d=(b,j)=>O[j]}for(u=0,g=l.length;u<g;++u)x=l[u],h=l[u]=new wt(x),(c=a(x,u,r))!=null&&(c+="")&&(m=h.id=c,f.set(m,f.has(m)?Ht:h)),(c=d(x,u,r))!=null&&(c+="")&&(h.parent=c);for(u=0;u<g;++u)if(h=l[u],c=h.parent){if(o=f.get(c),!o)throw new Error("missing: "+c);if(o===Ht)throw new Error("ambiguous: "+c);o.children?o.children.push(h):o.children=[h],h.parent=o}else{if(v)throw new Error("multiple roots");v=h}if(!v)throw new Error("no root");if(n!=null){for(;v.data===Nt&&v.children.length===1;)v=v.children[0],--g;for(let p=l.length-1;p>=0&&(h=l[p],h.data===Nt);--p)h.data=null}if(v.parent=De,v.eachBefore(function(p){p.depth=p.parent.depth+1,--g}).eachBefore(Xt),v.parent=null,g>0)throw new Error("cycle");return v}return i.id=function(r){return arguments.length?(e=Vt(r),i):e},i.parentId=function(r){return arguments.length?(t=Vt(r),i):t},i.path=function(r){return arguments.length?(n=Vt(r),i):n},i}function qe(e){e=`${e}`;let t=e.length;return $t(e,t-1)&&!$t(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function Wt(e){let t=e.length;if(t<2)return"";for(;--t>1&&!$t(e,t););return e.slice(0,t)}function $t(e,t){if(e[t]==="/"){let n=0;for(;t>0&&e[--t]==="\\";)++n;if((n&1)===0)return!0}return!1}function Ie(e,t,n,i,r){for(var l=e.children,a,d=-1,g=l.length,x=e.value&&(r-n)/e.value;++d<g;)a=l[d],a.x0=t,a.x1=i,a.y0=n,a.y1=n+=a.value*x}var Ve=(1+Math.sqrt(5))/2;function Ne(e,t,n,i,r,l){for(var a=[],d=t.children,g,x,u=0,v=0,o=d.length,h,c,m=t.value,f,p,O,R,b,j,M;u<o;){h=r-n,c=l-i;do f=d[v++].value;while(!f&&v<o);for(p=O=f,j=Math.max(c/h,h/c)/(m*e),M=f*f*j,b=Math.max(O/M,M/p);v<o;++v){if(f+=x=d[v].value,x<p&&(p=x),x>O&&(O=x),M=f*f*j,R=Math.max(O/M,M/p),R>b){f-=x;break}b=R}a.push(g={value:f,dice:h<c,children:d.slice(u,v)}),g.dice?Re(g,n,i,r,m?i+=c*f/m:l):Ie(g,n,i,m?n+=h*f/m:r,l),m-=f,u=v}return a}const $e=(function e(t){function n(i,r,l,a,d){Ne(t,i,r,l,a,d)}return n.ratio=function(i){return e((i=+i)>1?i:1)},n})(Ve);function Te(){var e=$e,t=!1,n=1,i=1,r=[0],l=xt,a=xt,d=xt,g=xt,x=xt;function u(o){return o.x0=o.y0=0,o.x1=n,o.y1=i,o.eachBefore(v),r=[0],t&&o.eachBefore(Ee),o}function v(o){var h=r[o.depth],c=o.x0+h,m=o.y0+h,f=o.x1-h,p=o.y1-h;f<c&&(c=f=(c+f)/2),p<m&&(m=p=(m+p)/2),o.x0=c,o.y0=m,o.x1=f,o.y1=p,o.children&&(h=r[o.depth+1]=l(o)/2,c+=x(o)-h,m+=a(o)-h,f-=d(o)-h,p-=g(o)-h,f<c&&(c=f=(c+f)/2),p<m&&(m=p=(m+p)/2),e(o,c,m,f,p))}return u.round=function(o){return arguments.length?(t=!!o,u):t},u.size=function(o){return arguments.length?(n=+o[0],i=+o[1],u):[n,i]},u.tile=function(o){return arguments.length?(e=Yt(o),u):e},u.padding=function(o){return arguments.length?u.paddingInner(o).paddingOuter(o):u.paddingInner()},u.paddingInner=function(o){return arguments.length?(l=typeof o=="function"?o:yt(+o),u):l},u.paddingOuter=function(o){return arguments.length?u.paddingTop(o).paddingRight(o).paddingBottom(o).paddingLeft(o):u.paddingTop()},u.paddingTop=function(o){return arguments.length?(a=typeof o=="function"?o:yt(+o),u):a},u.paddingRight=function(o){return arguments.length?(d=typeof o=="function"?o:yt(+o),u):d},u.paddingBottom=function(o){return arguments.length?(g=typeof o=="function"?o:yt(+o),u):g},u.paddingLeft=function(o){return arguments.length?(x=typeof o=="function"?o:yt(+o),u):x},u}function Ae(e){const t=y.compilerRuntimeExports.c(73),{data:n,colors:i,leftMargin:r,width:l,height:a,colorDomain:d,rightMargin:g,topMargin:x,bottomMargin:u,showLabels:v,tooltip:o,onSeriesMouseOver:h,selectedColor:c,showValues:m,suffix:f,prefix:p,highlightedDataPoints:O,onSeriesMouseClick:R,resetSelectionOnDoubleClick:b,detailsOnClick:j,language:M,styles:k,classNames:D,animate:E,dimmedOpacity:Z,precision:J}=e,ot=$.useRef(null);let nt;t[0]!==E.amount||t[1]!==E.once?(nt={once:E.once,amount:E.amount},t[0]=E.amount,t[1]=E.once,t[2]=nt):nt=t[2];const Q=te.useInView(ot,nt),[it,rt]=$.useState(void 0),[T,at]=$.useState(void 0),[_,lt]=$.useState(void 0),[tt,C]=$.useState(void 0);let w;t[3]!==u||t[4]!==r||t[5]!==g||t[6]!==x?(w={top:x,bottom:u,left:r,right:g},t[3]=u,t[4]=r,t[5]=g,t[6]=x,t[7]=w):w=t[7];const S=w,st=l-S.left-S.right,ut=a-S.top-S.bottom;let A,L,P,z,G,H,W,F,X;if(t[8]!==E.duration||t[9]!==D?.graphObjectValues||t[10]!==d||t[11]!==i||t[12]!==n||t[13]!==j||t[14]!==Z||t[15]!==ut||t[16]!==st||t[17]!==a||t[18]!==O||t[19]!==Q||t[20]!==M||t[21]!==S.left||t[22]!==S.top||t[23]!==T||t[24]!==R||t[25]!==h||t[26]!==J||t[27]!==p||t[28]!==b||t[29]!==c||t[30]!==v||t[31]!==m||t[32]!==k?.graphObjectValues||t[33]!==f||t[34]!==l){const vt=[{id:"root",parent:void 0,value:void 0,data:void 0},...n.map(Ye)],ct=Be().id(Xe).parentId(Fe)(vt);ct.sum(We);const N=Te().size([st,ut]).padding(2)(ct);L=Et.motion.svg,G=`${l}px`,H=`${a}px`,W=`0 0 ${l} ${a}`,F="ltr",X=ot,z=`translate(${S.left},${S.top})`,A=ee.AnimatePresence,P=N.children?.map(s=>y.jsxRuntimeExports.jsxs(Et.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:0,x:s.x0,y:s.y0},whileInView:{opacity:c?s.data.data.color&&i[d.indexOf(s.data.data.color)]===c?1:Z:O.length!==0?O.indexOf(s.data.id)!==-1?.85:Z:.85,x:s.x0,y:s.y0,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial",exit:{opacity:0,transition:{duration:E.duration}},onMouseEnter:U=>{rt(s.data.data),C(U.clientY),lt(U.clientX),h?.(s.data.data)},onClick:()=>{(R||j)&&(T===s.data.id&&b?(at(void 0),R?.(void 0)):(at(s.data.id),R?.(s.data.data)))},onMouseMove:U=>{rt(s.data.data),C(U.clientY),lt(U.clientX)},onMouseLeave:()=>{rt(void 0),lt(void 0),C(void 0),h?.(void 0)},children:[y.jsxRuntimeExports.jsx(Et.motion.rect,{x:0,y:0,exit:{width:0,height:0,opacity:0,transition:{duration:E.duration}},variants:{initial:{width:0,height:0,fill:n.filter(He).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray},whileInView:{width:s.x1-s.x0,height:s.y1-s.y0,fill:n.filter(Ge).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial"}),s.x1-s.x0>50&&s.y1-s.y0>25&&(v||m)?y.jsxRuntimeExports.jsx(Et.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:E.duration}}},initial:"initial",animate:Q?"whileInView":"initial",exit:{opacity:0,transition:{duration:E.duration}},children:y.jsxRuntimeExports.jsx("foreignObject",{y:0,x:0,width:s.x1-s.x0,height:s.y1-s.y0,children:y.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5 p-2 w-full",style:{color:It.getTextColorBasedOnBgColor(n.filter(ze).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray)},children:[v?y.jsxRuntimeExports.jsx(Pt._,{marginBottom:"none",size:"sm",leading:"none",className:y.mo("w-full treemap-label",M==="ar"||M==="he"?"text-right":"text-left",D?.graphObjectValues),style:{WebkitLineClamp:s.y1-s.y0>50?s.y1-s.y0>100?s.y1-s.y0>150?void 0:3:2:1,display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",color:It.getTextColorBasedOnBgColor(n.filter(Pe).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray),...k?.graphObjectValues||{}},children:s.data.id}):null,m?y.jsxRuntimeExports.jsx(Pt._,{marginBottom:"none",size:"sm",leading:"none",className:y.mo("w-full font-bold treemap-value",M==="ar"||M==="he"?"text-right":"text-left",D?.graphObjectValues),style:{color:It.getTextColorBasedOnBgColor(n.filter(Le).length===0?i[0]:s.data.data.color?i[d.indexOf(s.data.data.color)]:et.Colors.gray),...k?.graphObjectValues||{}},children:Qt.numberFormattingFunction(s.data.value,"NA",J,p,f)}):null]})})}):null]},s.data.id)),t[8]=E.duration,t[9]=D?.graphObjectValues,t[10]=d,t[11]=i,t[12]=n,t[13]=j,t[14]=Z,t[15]=ut,t[16]=st,t[17]=a,t[18]=O,t[19]=Q,t[20]=M,t[21]=S.left,t[22]=S.top,t[23]=T,t[24]=R,t[25]=h,t[26]=J,t[27]=p,t[28]=b,t[29]=c,t[30]=v,t[31]=m,t[32]=k?.graphObjectValues,t[33]=f,t[34]=l,t[35]=A,t[36]=L,t[37]=P,t[38]=z,t[39]=G,t[40]=H,t[41]=W,t[42]=F,t[43]=X}else A=t[35],L=t[36],P=t[37],z=t[38],G=t[39],H=t[40],W=t[41],F=t[42],X=t[43];let Y;t[44]!==A||t[45]!==P?(Y=y.jsxRuntimeExports.jsx(A,{children:P}),t[44]=A,t[45]=P,t[46]=Y):Y=t[46];let B;t[47]!==z||t[48]!==Y?(B=y.jsxRuntimeExports.jsx("g",{transform:z,children:Y}),t[47]=z,t[48]=Y,t[49]=B):B=t[49];let K;t[50]!==L||t[51]!==B||t[52]!==G||t[53]!==H||t[54]!==W||t[55]!==F||t[56]!==X?(K=y.jsxRuntimeExports.jsx(L,{width:G,height:H,viewBox:W,direction:F,ref:X,children:B}),t[50]=L,t[51]=B,t[52]=G,t[53]=H,t[54]=W,t[55]=F,t[56]=X,t[57]=K):K=t[57];let q;t[58]!==D?.tooltip||t[59]!==_||t[60]!==tt||t[61]!==it||t[62]!==k?.tooltip||t[63]!==o?(q=it&&o&&_&&tt?y.jsxRuntimeExports.jsx(Jt.Tooltip,{data:it,body:o,xPos:_,yPos:tt,backgroundStyle:k?.tooltip,className:D?.tooltip}):null,t[58]=D?.tooltip,t[59]=_,t[60]=tt,t[61]=it,t[62]=k?.tooltip,t[63]=o,t[64]=q):q=t[64];let I;t[65]!==D?.modal||t[66]!==j||t[67]!==T?(I=j&&T!==void 0?y.jsxRuntimeExports.jsx(_t.DetailsModal,{body:j,data:T,setData:at,className:D?.modal}):null,t[65]=D?.modal,t[66]=j,t[67]=T,t[68]=I):I=t[68];let V;return t[69]!==K||t[70]!==q||t[71]!==I?(V=y.jsxRuntimeExports.jsxs(y.jsxRuntimeExports.Fragment,{children:[K,q,I]}),t[69]=K,t[70]=q,t[71]=I,t[72]=V):V=t[72],V}function Le(e){return e.color}function Pe(e){return e.color}function ze(e){return e.color}function Ge(e){return e.color}function He(e){return e.color}function We(e){return e.value}function Fe(e){return e.parent}function Xe(e){return e.id}function Ye(e){return{id:e.label,value:e.size,parent:"root",data:e}}function Ke(e){const t=y.compilerRuntimeExports.c(83),{data:n,graphTitle:i,colors:r,suffix:l,sources:a,prefix:d,graphDescription:g,leftMargin:x,rightMargin:u,topMargin:v,bottomMargin:o,height:h,width:c,footNote:m,colorDomain:f,colorLegendTitle:p,padding:O,backgroundColor:R,showLabels:b,relativeHeight:j,tooltip:M,onSeriesMouseOver:k,showColorScale:D,showValues:E,graphID:Z,highlightedDataPoints:J,onSeriesMouseClick:ot,graphDownload:nt,dataDownload:Q,language:it,showNAColor:rt,minHeight:T,theme:at,ariaLabel:_,resetSelectionOnDoubleClick:lt,detailsOnClick:tt,styles:C,classNames:w,animate:S,dimmedOpacity:st,precision:ut}=e,A=l===void 0?"":l,L=d===void 0?"":d,P=x===void 0?0:x,z=u===void 0?0:u,G=v===void 0?0:v,H=o===void 0?0:o,W=R===void 0?!1:R,F=b===void 0?!0:b,X=D===void 0?!0:D,Y=E===void 0?!0:E;let B;t[0]!==J?(B=J===void 0?[]:J,t[0]=J,t[1]=B):B=t[1];const K=B,q=nt===void 0?!1:nt,I=Q===void 0?!1:Q,V=it===void 0?"en":it,vt=rt===void 0?!0:rt,ct=T===void 0?0:T,N=at===void 0?"light":at,s=lt===void 0?!0:lt,U=S===void 0?!1:S,Rt=st===void 0?.3:st,Dt=ut===void 0?2:ut,[jt,Kt]=$.useState(0),[Ct,Ut]=$.useState(0),[St,Zt]=$.useState(void 0),kt=$.useRef(null),Tt=$.useRef(null);let bt,Ot;t[2]===Symbol.for("react.memo_cache_sentinel")?(bt=()=>{const At=new ResizeObserver(Lt=>{Kt(Lt[0].target.clientWidth||620),Ut(Lt[0].target.clientHeight||480)});return kt.current&&At.observe(kt.current),()=>At.disconnect()},Ot=[],t[2]=bt,t[3]=Ot):(bt=t[2],Ot=t[3]),$.useEffect(bt,Ot);const Bt=w?.graphContainer,qt=C?.graphContainer;let dt;t[4]!==w?.description||t[5]!==w?.title||t[6]!==n||t[7]!==I||t[8]!==g||t[9]!==q||t[10]!==i||t[11]!==C?.description||t[12]!==C?.title||t[13]!==c?(dt=i||g||q||I?y.jsxRuntimeExports.jsx(oe.GraphHeader,{styles:{title:C?.title,description:C?.description},classNames:{title:w?.title,description:w?.description},graphTitle:i,graphDescription:g,width:c,graphDownload:q?Tt:void 0,dataDownload:I?n.map(on).filter(nn).length>0?n.map(en).filter(tn):n.filter(_e):null}):null,t[4]=w?.description,t[5]=w?.title,t[6]=n,t[7]=I,t[8]=g,t[9]=q,t[10]=i,t[11]=C?.description,t[12]=C?.title,t[13]=c,t[14]=dt):dt=t[14];let ht;t[15]!==w?.colorLegend||t[16]!==f||t[17]!==p||t[18]!==r||t[19]!==n||t[20]!==X||t[21]!==vt||t[22]!==N||t[23]!==c?(ht=X&&n.filter(Qe).length!==0&&n.length>0?y.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:c,colorLegendTitle:p,colors:r||et.Colors[N].categoricalColors.colors,colorDomain:f||zt.uniqBy(n,"color",!0),setSelectedColor:Zt,showNAColor:vt,className:w?.colorLegend}):null,t[15]=w?.colorLegend,t[16]=f,t[17]=p,t[18]=r,t[19]=n,t[20]=X,t[21]=vt,t[22]=N,t[23]=c,t[24]=ht):ht=t[24];let ft;t[25]!==n.length?(ft=n.length===0&&y.jsxRuntimeExports.jsx(ae.EmptyState,{}),t[25]=n.length,t[26]=ft):ft=t[26];let pt;t[27]!==U||t[28]!==H||t[29]!==w||t[30]!==f||t[31]!==r||t[32]!==n||t[33]!==tt||t[34]!==Rt||t[35]!==K||t[36]!==V||t[37]!==P||t[38]!==ot||t[39]!==k||t[40]!==Dt||t[41]!==L||t[42]!==s||t[43]!==z||t[44]!==St||t[45]!==F||t[46]!==Y||t[47]!==C||t[48]!==A||t[49]!==Ct||t[50]!==jt||t[51]!==N||t[52]!==M||t[53]!==G?(pt=jt&&Ct&&n.length>0?y.jsxRuntimeExports.jsx(Ae,{data:n.filter(Je),colors:n.filter(Ze).length===0?r?[r]:[et.Colors.primaryColors["blue-600"]]:r||et.Colors[N].categoricalColors.colors,colorDomain:n.filter(Ue).length===0?[]:f||zt.uniqBy(n,"color",!0),width:jt,height:Ct,leftMargin:P,rightMargin:z,topMargin:G,bottomMargin:H,showLabels:F,showValues:Y,suffix:A,prefix:L,selectedColor:St,tooltip:M,onSeriesMouseOver:k,onSeriesMouseClick:ot,highlightedDataPoints:K,resetSelectionOnDoubleClick:s,detailsOnClick:tt,styles:C,classNames:w,language:V,animate:U===!0?{duration:.5,once:!0,amount:.5}:U||{duration:0,once:!0,amount:0},dimmedOpacity:Rt,precision:Dt}):null,t[27]=U,t[28]=H,t[29]=w,t[30]=f,t[31]=r,t[32]=n,t[33]=tt,t[34]=Rt,t[35]=K,t[36]=V,t[37]=P,t[38]=ot,t[39]=k,t[40]=Dt,t[41]=L,t[42]=s,t[43]=z,t[44]=St,t[45]=F,t[46]=Y,t[47]=C,t[48]=A,t[49]=Ct,t[50]=jt,t[51]=N,t[52]=M,t[53]=G,t[54]=pt):pt=t[54];let gt;t[55]!==ft||t[56]!==pt?(gt=y.jsxRuntimeExports.jsxs(Gt.GraphArea,{ref:kt,children:[ft,pt]}),t[55]=ft,t[56]=pt,t[57]=gt):gt=t[57];let mt;t[58]!==w?.footnote||t[59]!==w?.source||t[60]!==m||t[61]!==a||t[62]!==C?.footnote||t[63]!==C?.source||t[64]!==c?(mt=a||m?y.jsxRuntimeExports.jsx(ie.GraphFooter,{styles:{footnote:C?.footnote,source:C?.source},classNames:{footnote:w?.footnote,source:w?.source},sources:a,footNote:m,width:c}):null,t[58]=w?.footnote,t[59]=w?.source,t[60]=m,t[61]=a,t[62]=C?.footnote,t[63]=C?.source,t[64]=c,t[65]=mt):mt=t[65];let Mt;return t[66]!==_||t[67]!==W||t[68]!==Z||t[69]!==h||t[70]!==V||t[71]!==ct||t[72]!==O||t[73]!==j||t[74]!==Bt||t[75]!==qt||t[76]!==dt||t[77]!==ht||t[78]!==gt||t[79]!==mt||t[80]!==N||t[81]!==c?(Mt=y.jsxRuntimeExports.jsxs(Gt.GraphContainer,{className:Bt,style:qt,id:Z,ref:Tt,"aria-label":_,backgroundColor:W,theme:N,language:V,minHeight:ct,width:c,height:h,relativeHeight:j,padding:O,children:[dt,ht,gt,mt]}),t[66]=_,t[67]=W,t[68]=Z,t[69]=h,t[70]=V,t[71]=ct,t[72]=O,t[73]=j,t[74]=Bt,t[75]=qt,t[76]=dt,t[77]=ht,t[78]=gt,t[79]=mt,t[80]=N,t[81]=c,t[82]=Mt):Mt=t[82],Mt}function Ue(e){return e.color}function Ze(e){return e.color}function Je(e){return!ne.checkIfNullOrUndefined(e.size)}function Qe(e){return e.color}function _e(e){return e!==void 0}function tn(e){return e!==void 0}function en(e){return e.data}function nn(e){return e!==void 0}function on(e){return e.data}exports.TreeMapGraph=Ke;
2
2
  //# sourceMappingURL=TreeMapGraph.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { c as Xt, j as b, m as Ht } from "./index-CHPV5EwG-DecW7_qr.js";
2
2
  import { useRef as Lt, useState as it, useEffect as _t } from "react";
3
- import { _ as Gt } from "./Typography-iR8PEgdt.js";
3
+ import { _ as Gt } from "./Typography-CdMGooqp.js";
4
4
  import { T as te } from "./Tooltip-BRnAz2Gv.js";
5
5
  import { n as ee } from "./numberFormattingFunction-14YCbkN2.js";
6
6
  import { g as $t } from "./getTextColorBasedOnBgColor-CDY808zi.js";
@@ -13,7 +13,7 @@ import { c as re } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
13
  import { GraphFooter as ae } from "./GraphFooter.js";
14
14
  import { GraphHeader as le } from "./GraphHeader.js";
15
15
  import { ColorLegendWithMouseOver as se } from "./ColorLegendWithMouseOver.js";
16
- import { E as ce } from "./EmptyState-Pj-emXt5.js";
16
+ import { E as ce } from "./EmptyState-dScPFkLy.js";
17
17
  import { u as Wt } from "./uniqBy-BHy4I8PK.js";
18
18
  import { a as ue, G as de } from "./GraphContainer-CF6ws3pd.js";
19
19
  function fe(e) {
package/dist/Types.d.ts CHANGED
@@ -672,6 +672,7 @@ export declare interface GraphSettingsDataType {
672
672
  hideAxisLine?: boolean;
673
673
  projectionRotate?: [number, number] | [number, number, number];
674
674
  rewindCoordinatesInMapData?: boolean;
675
+ circularBoundary?: boolean;
675
676
  }
676
677
 
677
678
  export declare type GraphType = GraphTypeForGriddedGraph;
@@ -0,0 +1,2 @@
1
+ "use strict";const g=require("./index-CHPV5EwG-6v2a2njQ.cjs"),c=g.j("mt-0 ml-0 mr-0",{variants:{size:{xs:"text-xs",sm:"text-sm",base:"text-base","base-responsive":"text-base md:text-xl",lg:"text-lg",xl:"text-xl"},leading:{none:"leading-none",xs:"leading-[1.25]",sm:"leading-[1.375]",base:"leading-[1.4]",lg:"leading-[1.625]",xl:"leading-[2]"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},decoration:{normal:"normal",italic:"italic",underline:"underline","line-through":"line-through"},marginBottom:{none:"mb-0","3xs":"mb-1","2xs":"mb-2",xs:"mb-3",sm:"mb-4",base:"mb-5",lg:"mb-6",xl:"mb-7"},alignment:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{size:"base-responsive",leading:"base",weight:"normal",decoration:"normal",marginBottom:"base",alignment:"left"}});function h(s){const t=g._.c(22);let e,n,m,i,a,l,o,r,b;t[0]!==s?({children:n,className:m,size:r,leading:a,marginBottom:l,weight:b,decoration:i,alignment:e,...o}=s,t[0]=s,t[1]=e,t[2]=n,t[3]=m,t[4]=i,t[5]=a,t[6]=l,t[7]=o,t[8]=r,t[9]=b):(e=t[1],n=t[2],m=t[3],i=t[4],a=t[5],l=t[6],o=t[7],r=t[8],b=t[9]);let d;t[10]!==e||t[11]!==m||t[12]!==i||t[13]!==a||t[14]!==l||t[15]!==r||t[16]!==b?(d=g.mo(c({size:r,leading:a,marginBottom:l,weight:b,decoration:i,alignment:e}),m),t[10]=e,t[11]=m,t[12]=i,t[13]=a,t[14]=l,t[15]=r,t[16]=b,t[17]=d):d=t[17];let x;return t[18]!==n||t[19]!==o||t[20]!==d?(x=g.ae.jsx("p",{...o,className:d,children:n}),t[18]=n,t[19]=o,t[20]=d,t[21]=x):x=t[21],x}const f=g.j("mt-0 ml-0 mr-0 p-0 text-[2.5rem] md:text-[2.813rem] lg:text-[3.438rem] leading-[1.1] font-sans",{variants:{marginBottom:{none:"mb-0","2xs":"mb-1",xs:"mb-2",sm:"mb-3","base-responsive":"mb-3 md:mb-4",base:"mb-4",lg:"mb-5",xl:"mb-6"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},alignment:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{marginBottom:"base-responsive",weight:"bold",alignment:"left"}});function u(s){const t=g._.c(16);let e,n,m,i,a,l;t[0]!==s?({children:n,className:m,marginBottom:i,weight:l,alignment:e,...a}=s,t[0]=s,t[1]=e,t[2]=n,t[3]=m,t[4]=i,t[5]=a,t[6]=l):(e=t[1],n=t[2],m=t[3],i=t[4],a=t[5],l=t[6]);let o;t[7]!==e||t[8]!==m||t[9]!==i||t[10]!==l?(o=g.mo(f({marginBottom:i,weight:l,alignment:e}),m),t[7]=e,t[8]=m,t[9]=i,t[10]=l,t[11]=o):o=t[11];let r;return t[12]!==n||t[13]!==a||t[14]!==o?(r=g.ae.jsx("h2",{...a,className:o,children:n}),t[12]=n,t[13]=a,t[14]=o,t[15]=r):r=t[15],r}const w=g.j("mt-0 ml-0 mr-0 p-0 text-[1.875rem] md:text-[2.188rem] leading-[1.15] font-sans",{variants:{marginBottom:{none:"mb-0","2xs":"mb-1",xs:"mb-2",sm:"mb-3","base-responsive":"mb-3 md:mb-4",base:"mb-4",lg:"mb-5",xl:"mb-6"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},alignment:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{marginBottom:"base-responsive",weight:"semibold",alignment:"left"}});function p(s){const t=g._.c(16);let e,n,m,i,a,l;t[0]!==s?({children:n,className:m,marginBottom:i,weight:l,alignment:e,...a}=s,t[0]=s,t[1]=e,t[2]=n,t[3]=m,t[4]=i,t[5]=a,t[6]=l):(e=t[1],n=t[2],m=t[3],i=t[4],a=t[5],l=t[6]);let o;t[7]!==e||t[8]!==m||t[9]!==i||t[10]!==l?(o=g.mo(w({marginBottom:i,weight:l,alignment:e}),m),t[7]=e,t[8]=m,t[9]=i,t[10]=l,t[11]=o):o=t[11];let r;return t[12]!==n||t[13]!==a||t[14]!==o?(r=g.ae.jsx("h3",{...a,className:o,children:n}),t[12]=n,t[13]=a,t[14]=o,t[15]=r):r=t[15],r}const B=g.j("mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15] font-sans",{variants:{marginBottom:{none:"mb-0","2xs":"mb-1",xs:"mb-2",sm:"mb-3","base-responsive":"mb-3 md:mb-4",base:"mb-4",lg:"mb-5",xl:"mb-6"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},alignment:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{marginBottom:"base-responsive",weight:"normal",alignment:"left"}});function v(s){const t=g._.c(16);let e,n,m,i,a,l;t[0]!==s?({children:n,className:m,marginBottom:i,weight:l,alignment:e,...a}=s,t[0]=s,t[1]=e,t[2]=n,t[3]=m,t[4]=i,t[5]=a,t[6]=l):(e=t[1],n=t[2],m=t[3],i=t[4],a=t[5],l=t[6]);let o;t[7]!==e||t[8]!==m||t[9]!==i||t[10]!==l?(o=g.mo(B({marginBottom:i,weight:l,alignment:e}),m),t[7]=e,t[8]=m,t[9]=i,t[10]=l,t[11]=o):o=t[11];let r;return t[12]!==n||t[13]!==a||t[14]!==o?(r=g.ae.jsx("h5",{...a,className:o,children:n}),t[12]=n,t[13]=a,t[14]=o,t[15]=r):r=t[15],r}function N(s){const t=g._.c(12);let e,n,m,i;t[0]!==s?({children:e,className:n,weight:i,...m}=s,t[0]=s,t[1]=e,t[2]=n,t[3]=m,t[4]=i):(e=t[1],n=t[2],m=t[3],i=t[4]);const a=i?`font-${i}`:"font-normal";let l;t[5]!==n||t[6]!==a?(l=g.mo("undp-link light text-primary-black dark:text-primary-white dark:text-primary-white bg-double-red dark:bg-double-white","cursor-pointer no-underline focus-visible:outline-hidden focus-visible:shadow-[0_0_0_#0468b1]",a,n),t[5]=n,t[6]=a,t[7]=l):l=t[7];let o;return t[8]!==e||t[9]!==m||t[10]!==l?(o=g.ae.jsx("a",{...m,className:l,children:e}),t[8]=e,t[9]=m,t[10]=l,t[11]=o):o=t[11],o}exports.E=u;exports.J=N;exports.P=v;exports.R=p;exports._=h;
2
+ //# sourceMappingURL=Typography-Cc_iHQB-.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography-Cc_iHQB-.cjs","sources":["../node_modules/@undp/design-system-react/dist/Typography.js"],"sourcesContent":["import { j as b } from \"./jsx-runtime-BzflLqGi.js\";\nimport { c as d } from \"./compiler-runtime-Cu50tn6L.js\";\nimport { c as f } from \"./index-CHPV5EwG.js\";\nimport { c as g } from \"./utils-D_Pof5Gy.js\";\nconst p = f(\"mt-0 ml-0 mr-0\", {\n variants: {\n size: {\n xs: \"text-xs\",\n sm: \"text-sm\",\n base: \"text-base\",\n \"base-responsive\": \"text-base md:text-xl\",\n lg: \"text-lg\",\n xl: \"text-xl\"\n },\n leading: {\n none: \"leading-none\",\n xs: \"leading-[1.25]\",\n sm: \"leading-[1.375]\",\n base: \"leading-[1.4]\",\n lg: \"leading-[1.625]\",\n xl: \"leading-[2]\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n decoration: {\n normal: \"normal\",\n italic: \"italic\",\n underline: \"underline\",\n \"line-through\": \"line-through\"\n },\n marginBottom: {\n none: \"mb-0\",\n \"3xs\": \"mb-1\",\n \"2xs\": \"mb-2\",\n xs: \"mb-3\",\n sm: \"mb-4\",\n base: \"mb-5\",\n lg: \"mb-6\",\n xl: \"mb-7\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n size: \"base-responsive\",\n leading: \"base\",\n weight: \"normal\",\n decoration: \"normal\",\n marginBottom: \"base\",\n alignment: \"left\"\n }\n});\nfunction _(s) {\n const e = d.c(22);\n let t, l, n, m, i, o, a, r, x;\n e[0] !== s ? ({\n children: l,\n className: n,\n size: r,\n leading: i,\n marginBottom: o,\n weight: x,\n decoration: m,\n alignment: t,\n ...a\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o, e[7] = a, e[8] = r, e[9] = x) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6], a = e[7], r = e[8], x = e[9]);\n let c;\n e[10] !== t || e[11] !== n || e[12] !== m || e[13] !== i || e[14] !== o || e[15] !== r || e[16] !== x ? (c = g(p({\n size: r,\n leading: i,\n marginBottom: o,\n weight: x,\n decoration: m,\n alignment: t\n }), n), e[10] = t, e[11] = n, e[12] = m, e[13] = i, e[14] = o, e[15] = r, e[16] = x, e[17] = c) : c = e[17];\n let h;\n return e[18] !== l || e[19] !== a || e[20] !== c ? (h = /* @__PURE__ */ b.jsx(\"p\", { ...a, className: c, children: l }), e[18] = l, e[19] = a, e[20] = c, e[21] = h) : h = e[21], h;\n}\nconst u = f(\"mt-0 ml-0 mr-0 p-0 uppercase font-heading\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n size: {\n base: \"text-[2.938rem] md:text-[5.125rem] lg:text-[6.25rem] tracking-[0.06rem] leading-[1.08]\",\n sm: \"text-[2.5rem] md:text-[2.813rem] lg:text-[3.438rem] leading-[1.1]\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n size: \"base\",\n weight: \"bold\",\n alignment: \"left\"\n }\n});\nfunction C(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n size: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(u({\n marginBottom: m,\n size: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h1\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst w = f(\"mt-0 ml-0 mr-0 p-0 text-[2.5rem] md:text-[2.813rem] lg:text-[3.438rem] leading-[1.1] font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"bold\",\n alignment: \"left\"\n }\n});\nfunction E(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(w({\n marginBottom: m,\n weight: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h2\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst v = f(\"mt-0 ml-0 mr-0 p-0 text-[1.875rem] md:text-[2.188rem] leading-[1.15] font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"semibold\",\n alignment: \"left\"\n }\n});\nfunction R(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(v({\n marginBottom: m,\n weight: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h3\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst B = f(\"mt-0 ml-0 mr-0 p-0 text-[1.563rem] md:text-[2.188rem] leading-[1.15] font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"normal\",\n alignment: \"left\"\n }\n});\nfunction A(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(B({\n marginBottom: m,\n weight: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h4\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst N = f(\"mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15] font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"normal\",\n alignment: \"left\"\n }\n});\nfunction P(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(N({\n marginBottom: m,\n weight: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h5\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst V = f(\"mt-0 ml-0 mr-0 p-0 text-base leading-[1.15] uppercase tracking-[0.48px] font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n },\n alignment: {\n left: \"text-left\",\n right: \"text-right\",\n center: \"text-center\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"bold\",\n alignment: \"left\"\n }\n});\nfunction D(s) {\n const e = d.c(16);\n let t, l, n, m, i, o;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: o,\n alignment: t,\n ...i\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i, e[6] = o) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6]);\n let a;\n e[7] !== t || e[8] !== n || e[9] !== m || e[10] !== o ? (a = g(V({\n marginBottom: m,\n weight: o,\n alignment: t\n }), n), e[7] = t, e[8] = n, e[9] = m, e[10] = o, e[11] = a) : a = e[11];\n let r;\n return e[12] !== l || e[13] !== i || e[14] !== a ? (r = /* @__PURE__ */ b.jsx(\"h6\", { ...i, className: a, children: l }), e[12] = l, e[13] = i, e[14] = a, e[15] = r) : r = e[15], r;\n}\nconst k = f(\"mt-0 ml-0 mr-0 p-0 text-xl md:text-2xl leading-[1.1] block font-sans\", {\n variants: {\n marginBottom: {\n none: \"mb-0\",\n \"2xs\": \"mb-1\",\n xs: \"mb-2\",\n sm: \"mb-3\",\n \"base-responsive\": \"mb-3 md:mb-4\",\n base: \"mb-4\",\n lg: \"mb-5\",\n xl: \"mb-6\"\n },\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n }\n },\n defaultVariants: {\n marginBottom: \"base-responsive\",\n weight: \"normal\"\n }\n});\nfunction F(s) {\n const e = d.c(14);\n let t, l, n, m, i;\n e[0] !== s ? ({\n children: t,\n className: l,\n marginBottom: n,\n weight: i,\n ...m\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m, e[5] = i) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5]);\n let o;\n e[6] !== l || e[7] !== n || e[8] !== i ? (o = g(k({\n marginBottom: n,\n weight: i\n }), l), e[6] = l, e[7] = n, e[8] = i, e[9] = o) : o = e[9];\n let a;\n return e[10] !== t || e[11] !== m || e[12] !== o ? (a = /* @__PURE__ */ b.jsx(\"cite\", { ...m, className: o, children: t }), e[10] = t, e[11] = m, e[12] = o, e[13] = a) : a = e[13], a;\n}\nconst j = f(\"mt-0 ml-0 mr-0 font-mono mt-0 text-base bg-primary-gray-200 dark:bg-primary-gray-600 px-2 pb-2 text-primary-black dark:text-primary-white\", {\n variants: {\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n }\n },\n defaultVariants: {\n weight: \"normal\"\n }\n});\nfunction G(s) {\n const e = d.c(12);\n let t, l, n, m;\n e[0] !== s ? ({\n children: t,\n className: l,\n weight: m,\n ...n\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m) : (t = e[1], l = e[2], n = e[3], m = e[4]);\n let i;\n e[5] !== l || e[6] !== m ? (i = g(j({\n weight: m\n }), l), e[5] = l, e[6] = m, e[7] = i) : i = e[7];\n let o;\n return e[8] !== t || e[9] !== n || e[10] !== i ? (o = /* @__PURE__ */ b.jsx(\"code\", { ...n, className: i, children: t }), e[8] = t, e[9] = n, e[10] = i, e[11] = o) : o = e[11], o;\n}\nconst $ = f(\"mt-0 ml-0 mr-0 text-[1.625rem] md:text-[2.188rem] leading-[1.1] md:leading-[1.25] font-sans\", {\n variants: {\n weight: {\n light: \"font-light\",\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n extrabold: \"font-extrabold\"\n }\n },\n defaultVariants: {\n weight: \"normal\"\n }\n});\nfunction I(s) {\n const e = d.c(12);\n let t, l, n, m;\n e[0] !== s ? ({\n children: t,\n className: l,\n weight: m,\n ...n\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m) : (t = e[1], l = e[2], n = e[3], m = e[4]);\n let i;\n e[5] !== l || e[6] !== m ? (i = g($({\n weight: m\n }), l), e[5] = l, e[6] = m, e[7] = i) : i = e[7];\n let o;\n return e[8] !== t || e[9] !== n || e[10] !== i ? (o = /* @__PURE__ */ b.jsx(\"blockquote\", { ...n, className: i, children: t }), e[8] = t, e[9] = n, e[10] = i, e[11] = o) : o = e[11], o;\n}\nfunction J(s) {\n const e = d.c(12);\n let t, l, n, m;\n e[0] !== s ? ({\n children: t,\n className: l,\n weight: m,\n ...n\n } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n, e[4] = m) : (t = e[1], l = e[2], n = e[3], m = e[4]);\n const i = m ? `font-${m}` : \"font-normal\";\n let o;\n e[5] !== l || e[6] !== i ? (o = g(\"undp-link light text-primary-black dark:text-primary-white dark:text-primary-white bg-double-red dark:bg-double-white\", \"cursor-pointer no-underline focus-visible:outline-hidden focus-visible:shadow-[0_0_0_#0468b1]\", i, l), e[5] = l, e[6] = i, e[7] = o) : o = e[7];\n let a;\n return e[8] !== t || e[9] !== n || e[10] !== o ? (a = /* @__PURE__ */ b.jsx(\"a\", { ...n, className: o, children: t }), e[8] = t, e[9] = n, e[10] = o, e[11] = a) : a = e[11], a;\n}\nexport {\n J as A,\n I as Blockquote,\n F as Cite,\n G as Code,\n C as H1,\n E as H2,\n R as H3,\n A as H4,\n P as H5,\n D as H6,\n _ as P\n};\n//# sourceMappingURL=Typography.js.map\n"],"names":["p","f","_","e","d","t","l","n","m","i","o","a","x","c","g","h","b","w","E","v","R","N","P","J"],"mappings":"8DAIMA,EAAIC,EAAAA,EAAE,iBAAkB,CAC5B,SAAU,CACR,KAAM,CACJ,GAAI,UACJ,GAAI,UACJ,KAAM,YACN,kBAAmB,uBACnB,GAAI,UACJ,GAAI,SACV,EACI,QAAS,CACP,KAAM,eACN,GAAI,iBACJ,GAAI,kBACJ,KAAM,gBACN,GAAI,kBACJ,GAAI,aACV,EACI,OAAQ,CACN,MAAO,aACP,OAAQ,cACR,OAAQ,cACR,SAAU,gBACV,KAAM,YACN,UAAW,gBACjB,EACI,WAAY,CACV,OAAQ,SACR,OAAQ,SACR,UAAW,YACX,eAAgB,cACtB,EACI,aAAc,CACZ,KAAM,OACN,MAAO,OACP,MAAO,OACP,GAAI,OACJ,GAAI,OACJ,KAAM,OACN,GAAI,OACJ,GAAI,MACV,EACI,UAAW,CACT,KAAM,YACN,MAAO,aACP,OAAQ,aACd,CACA,EACE,gBAAiB,CACf,KAAM,kBACN,QAAS,OACT,OAAQ,SACR,WAAY,SACZ,aAAc,OACd,UAAW,MACf,CACA,CAAC,EACD,SAASC,EAAE,EAAG,CACZ,MAAMC,EAAIC,EAAAA,EAAE,EAAE,EAAE,EAChB,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAG,EAAGC,EAC5BT,EAAE,CAAC,IAAM,GAAK,CACZ,SAAUG,EACV,UAAWC,EACX,KAAM,EACN,QAASE,EACT,aAAcC,EACd,OAAQE,EACR,WAAYJ,EACZ,UAAWH,EACX,GAAGM,CACP,EAAM,EAAGR,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,CAAC,EAAIM,EAAGN,EAAE,CAAC,EAAIO,EAAGP,EAAE,CAAC,EAAIQ,EAAGR,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIS,IAAMP,EAAIF,EAAE,CAAC,EAAGG,EAAIH,EAAE,CAAC,EAAGI,EAAIJ,EAAE,CAAC,EAAGK,EAAIL,EAAE,CAAC,EAAGM,EAAIN,EAAE,CAAC,EAAGO,EAAIP,EAAE,CAAC,EAAGQ,EAAIR,EAAE,CAAC,EAAG,EAAIA,EAAE,CAAC,EAAGS,EAAIT,EAAE,CAAC,GACrM,IAAIU,EACJV,EAAE,EAAE,IAAME,GAAKF,EAAE,EAAE,IAAMI,GAAKJ,EAAE,EAAE,IAAMK,GAAKL,EAAE,EAAE,IAAMM,GAAKN,EAAE,EAAE,IAAMO,GAAKP,EAAE,EAAE,IAAM,GAAKA,EAAE,EAAE,IAAMS,GAAKC,EAAIC,EAAAA,GAAEd,EAAE,CAC/G,KAAM,EACN,QAASS,EACT,aAAcC,EACd,OAAQE,EACR,WAAYJ,EACZ,UAAWH,CACf,CAAG,EAAGE,CAAC,EAAGJ,EAAE,EAAE,EAAIE,EAAGF,EAAE,EAAE,EAAII,EAAGJ,EAAE,EAAE,EAAIK,EAAGL,EAAE,EAAE,EAAIM,EAAGN,EAAE,EAAE,EAAIO,EAAGP,EAAE,EAAE,EAAI,EAAGA,EAAE,EAAE,EAAIS,EAAGT,EAAE,EAAE,EAAIU,GAAKA,EAAIV,EAAE,EAAE,EAC1G,IAAIY,EACJ,OAAOZ,EAAE,EAAE,IAAMG,GAAKH,EAAE,EAAE,IAAMQ,GAAKR,EAAE,EAAE,IAAMU,GAAKE,EAAoBC,EAAAA,GAAE,IAAI,IAAK,CAAE,GAAGL,EAAG,UAAWE,EAAG,SAAUP,EAAG,EAAGH,EAAE,EAAE,EAAIG,EAAGH,EAAE,EAAE,EAAIQ,EAAGR,EAAE,EAAE,EAAIU,EAAGV,EAAE,EAAE,EAAIY,GAAKA,EAAIZ,EAAE,EAAE,EAAGY,CACpL,CA0DA,MAAME,EAAIhB,EAAAA,EAAE,iGAAkG,CAC5G,SAAU,CACR,aAAc,CACZ,KAAM,OACN,MAAO,OACP,GAAI,OACJ,GAAI,OACJ,kBAAmB,eACnB,KAAM,OACN,GAAI,OACJ,GAAI,MACV,EACI,OAAQ,CACN,MAAO,aACP,OAAQ,cACR,OAAQ,cACR,SAAU,gBACV,KAAM,YACN,UAAW,gBACjB,EACI,UAAW,CACT,KAAM,YACN,MAAO,aACP,OAAQ,aACd,CACA,EACE,gBAAiB,CACf,aAAc,kBACd,OAAQ,OACR,UAAW,MACf,CACA,CAAC,EACD,SAASiB,EAAE,EAAG,CACZ,MAAMf,EAAIC,EAAAA,EAAE,EAAE,EAAE,EAChB,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EACnBP,EAAE,CAAC,IAAM,GAAK,CACZ,SAAUG,EACV,UAAWC,EACX,aAAcC,EACd,OAAQE,EACR,UAAWL,EACX,GAAGI,CACP,EAAM,EAAGN,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,CAAC,EAAIM,EAAGN,EAAE,CAAC,EAAIO,IAAML,EAAIF,EAAE,CAAC,EAAGG,EAAIH,EAAE,CAAC,EAAGI,EAAIJ,EAAE,CAAC,EAAGK,EAAIL,EAAE,CAAC,EAAGM,EAAIN,EAAE,CAAC,EAAGO,EAAIP,EAAE,CAAC,GACzI,IAAIQ,EACJR,EAAE,CAAC,IAAME,GAAKF,EAAE,CAAC,IAAMI,GAAKJ,EAAE,CAAC,IAAMK,GAAKL,EAAE,EAAE,IAAMO,GAAKC,EAAIG,EAAAA,GAAEG,EAAE,CAC/D,aAAcT,EACd,OAAQE,EACR,UAAWL,CACf,CAAG,EAAGE,CAAC,EAAGJ,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,EAAE,EAAIO,EAAGP,EAAE,EAAE,EAAIQ,GAAKA,EAAIR,EAAE,EAAE,EACtE,IAAI,EACJ,OAAOA,EAAE,EAAE,IAAMG,GAAKH,EAAE,EAAE,IAAMM,GAAKN,EAAE,EAAE,IAAMQ,GAAK,EAAoBK,EAAAA,GAAE,IAAI,KAAM,CAAE,GAAGP,EAAG,UAAWE,EAAG,SAAUL,EAAG,EAAGH,EAAE,EAAE,EAAIG,EAAGH,EAAE,EAAE,EAAIM,EAAGN,EAAE,EAAE,EAAIQ,EAAGR,EAAE,EAAE,EAAI,GAAK,EAAIA,EAAE,EAAE,EAAG,CACrL,CACA,MAAMgB,EAAIlB,EAAAA,EAAE,iFAAkF,CAC5F,SAAU,CACR,aAAc,CACZ,KAAM,OACN,MAAO,OACP,GAAI,OACJ,GAAI,OACJ,kBAAmB,eACnB,KAAM,OACN,GAAI,OACJ,GAAI,MACV,EACI,OAAQ,CACN,MAAO,aACP,OAAQ,cACR,OAAQ,cACR,SAAU,gBACV,KAAM,YACN,UAAW,gBACjB,EACI,UAAW,CACT,KAAM,YACN,MAAO,aACP,OAAQ,aACd,CACA,EACE,gBAAiB,CACf,aAAc,kBACd,OAAQ,WACR,UAAW,MACf,CACA,CAAC,EACD,SAASmB,EAAE,EAAG,CACZ,MAAMjB,EAAIC,EAAAA,EAAE,EAAE,EAAE,EAChB,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EACnBP,EAAE,CAAC,IAAM,GAAK,CACZ,SAAUG,EACV,UAAWC,EACX,aAAcC,EACd,OAAQE,EACR,UAAWL,EACX,GAAGI,CACP,EAAM,EAAGN,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,CAAC,EAAIM,EAAGN,EAAE,CAAC,EAAIO,IAAML,EAAIF,EAAE,CAAC,EAAGG,EAAIH,EAAE,CAAC,EAAGI,EAAIJ,EAAE,CAAC,EAAGK,EAAIL,EAAE,CAAC,EAAGM,EAAIN,EAAE,CAAC,EAAGO,EAAIP,EAAE,CAAC,GACzI,IAAIQ,EACJR,EAAE,CAAC,IAAME,GAAKF,EAAE,CAAC,IAAMI,GAAKJ,EAAE,CAAC,IAAMK,GAAKL,EAAE,EAAE,IAAMO,GAAKC,EAAIG,EAAAA,GAAEK,EAAE,CAC/D,aAAcX,EACd,OAAQE,EACR,UAAWL,CACf,CAAG,EAAGE,CAAC,EAAGJ,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,EAAE,EAAIO,EAAGP,EAAE,EAAE,EAAIQ,GAAKA,EAAIR,EAAE,EAAE,EACtE,IAAI,EACJ,OAAOA,EAAE,EAAE,IAAMG,GAAKH,EAAE,EAAE,IAAMM,GAAKN,EAAE,EAAE,IAAMQ,GAAK,EAAoBK,EAAAA,GAAE,IAAI,KAAM,CAAE,GAAGP,EAAG,UAAWE,EAAG,SAAUL,EAAG,EAAGH,EAAE,EAAE,EAAIG,EAAGH,EAAE,EAAE,EAAIM,EAAGN,EAAE,EAAE,EAAIQ,EAAGR,EAAE,EAAE,EAAI,GAAK,EAAIA,EAAE,EAAE,EAAG,CACrL,CAqDA,MAAMkB,EAAIpB,EAAAA,EAAE,gFAAiF,CAC3F,SAAU,CACR,aAAc,CACZ,KAAM,OACN,MAAO,OACP,GAAI,OACJ,GAAI,OACJ,kBAAmB,eACnB,KAAM,OACN,GAAI,OACJ,GAAI,MACV,EACI,OAAQ,CACN,MAAO,aACP,OAAQ,cACR,OAAQ,cACR,SAAU,gBACV,KAAM,YACN,UAAW,gBACjB,EACI,UAAW,CACT,KAAM,YACN,MAAO,aACP,OAAQ,aACd,CACA,EACE,gBAAiB,CACf,aAAc,kBACd,OAAQ,SACR,UAAW,MACf,CACA,CAAC,EACD,SAASqB,EAAE,EAAG,CACZ,MAAMnB,EAAIC,EAAAA,EAAE,EAAE,EAAE,EAChB,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EACnBP,EAAE,CAAC,IAAM,GAAK,CACZ,SAAUG,EACV,UAAWC,EACX,aAAcC,EACd,OAAQE,EACR,UAAWL,EACX,GAAGI,CACP,EAAM,EAAGN,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,CAAC,EAAIM,EAAGN,EAAE,CAAC,EAAIO,IAAML,EAAIF,EAAE,CAAC,EAAGG,EAAIH,EAAE,CAAC,EAAGI,EAAIJ,EAAE,CAAC,EAAGK,EAAIL,EAAE,CAAC,EAAGM,EAAIN,EAAE,CAAC,EAAGO,EAAIP,EAAE,CAAC,GACzI,IAAIQ,EACJR,EAAE,CAAC,IAAME,GAAKF,EAAE,CAAC,IAAMI,GAAKJ,EAAE,CAAC,IAAMK,GAAKL,EAAE,EAAE,IAAMO,GAAKC,EAAIG,EAAAA,GAAEO,EAAE,CAC/D,aAAcb,EACd,OAAQE,EACR,UAAWL,CACf,CAAG,EAAGE,CAAC,EAAGJ,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,EAAGL,EAAE,EAAE,EAAIO,EAAGP,EAAE,EAAE,EAAIQ,GAAKA,EAAIR,EAAE,EAAE,EACtE,IAAI,EACJ,OAAOA,EAAE,EAAE,IAAMG,GAAKH,EAAE,EAAE,IAAMM,GAAKN,EAAE,EAAE,IAAMQ,GAAK,EAAoBK,EAAAA,GAAE,IAAI,KAAM,CAAE,GAAGP,EAAG,UAAWE,EAAG,SAAUL,EAAG,EAAGH,EAAE,EAAE,EAAIG,EAAGH,EAAE,EAAE,EAAIM,EAAGN,EAAE,EAAE,EAAIQ,EAAGR,EAAE,EAAE,EAAI,GAAK,EAAIA,EAAE,EAAE,EAAG,CACrL,CA+JA,SAASoB,EAAE,EAAG,CACZ,MAAMpB,EAAIC,EAAAA,EAAE,EAAE,EAAE,EAChB,IAAIC,EAAGC,EAAGC,EAAGC,EACbL,EAAE,CAAC,IAAM,GAAK,CACZ,SAAUE,EACV,UAAWC,EACX,OAAQE,EACR,GAAGD,CACP,EAAM,EAAGJ,EAAE,CAAC,EAAI,EAAGA,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAII,EAAGJ,EAAE,CAAC,EAAIK,IAAMH,EAAIF,EAAE,CAAC,EAAGG,EAAIH,EAAE,CAAC,EAAGI,EAAIJ,EAAE,CAAC,EAAGK,EAAIL,EAAE,CAAC,GACjG,MAAMM,EAAID,EAAI,QAAQA,CAAC,GAAK,cAC5B,IAAIE,EACJP,EAAE,CAAC,IAAMG,GAAKH,EAAE,CAAC,IAAMM,GAAKC,EAAII,EAAAA,GAAE,wHAAyH,gGAAiGL,EAAGH,CAAC,EAAGH,EAAE,CAAC,EAAIG,EAAGH,EAAE,CAAC,EAAIM,EAAGN,EAAE,CAAC,EAAIO,GAAKA,EAAIP,EAAE,CAAC,EAC1S,IAAIQ,EACJ,OAAOR,EAAE,CAAC,IAAME,GAAKF,EAAE,CAAC,IAAMI,GAAKJ,EAAE,EAAE,IAAMO,GAAKC,EAAoBK,EAAAA,GAAE,IAAI,IAAK,CAAE,GAAGT,EAAG,UAAWG,EAAG,SAAUL,EAAG,EAAGF,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAII,EAAGJ,EAAE,EAAE,EAAIO,EAAGP,EAAE,EAAE,EAAIQ,GAAKA,EAAIR,EAAE,EAAE,EAAGQ,CAChL","x_google_ignoreList":[0]}
@@ -82,7 +82,7 @@ function N(s) {
82
82
  let h;
83
83
  return t[18] !== n || t[19] !== o || t[20] !== b ? (h = /* @__PURE__ */ c.jsx("p", { ...o, className: b, children: n }), t[18] = n, t[19] = o, t[20] = b, t[21] = h) : h = t[21], h;
84
84
  }
85
- const w = f("mt-0 ml-0 mr-0 p-0 text-[2.5rem] md:text-[2.813rem] lg:text-[3.438rem] leading-[1.1]", {
85
+ const w = f("mt-0 ml-0 mr-0 p-0 text-[2.5rem] md:text-[2.813rem] lg:text-[3.438rem] leading-[1.1] font-sans", {
86
86
  variants: {
87
87
  marginBottom: {
88
88
  none: "mb-0",
@@ -134,7 +134,7 @@ function j(s) {
134
134
  let r;
135
135
  return t[12] !== n || t[13] !== a || t[14] !== o ? (r = /* @__PURE__ */ c.jsx("h2", { ...a, className: o, children: n }), t[12] = n, t[13] = a, t[14] = o, t[15] = r) : r = t[15], r;
136
136
  }
137
- const p = f("mt-0 ml-0 mr-0 p-0 text-[1.875rem] md:text-[2.188rem] leading-[1.15]", {
137
+ const p = f("mt-0 ml-0 mr-0 p-0 text-[1.875rem] md:text-[2.188rem] leading-[1.15] font-sans", {
138
138
  variants: {
139
139
  marginBottom: {
140
140
  none: "mb-0",
@@ -186,7 +186,7 @@ function _(s) {
186
186
  let r;
187
187
  return t[12] !== n || t[13] !== a || t[14] !== o ? (r = /* @__PURE__ */ c.jsx("h3", { ...a, className: o, children: n }), t[12] = n, t[13] = a, t[14] = o, t[15] = r) : r = t[15], r;
188
188
  }
189
- const B = f("mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15]", {
189
+ const B = f("mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15] font-sans", {
190
190
  variants: {
191
191
  marginBottom: {
192
192
  none: "mb-0",
@@ -260,4 +260,4 @@ export {
260
260
  _ as R,
261
261
  N as _
262
262
  };
263
- //# sourceMappingURL=Typography-iR8PEgdt.js.map
263
+ //# sourceMappingURL=Typography-CdMGooqp.js.map