@undp/data-viz 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +2 -2
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +15 -15
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +2 -2
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +202 -202
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +2 -2
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +2 -2
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +33 -33
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +7 -7
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.js +1 -1
- package/dist/CsvDownloadButton.cjs +2 -2
- package/dist/CsvDownloadButton.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +3 -3
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +46 -46
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +2 -2
- package/dist/{EmptyState-CGeBqbmR.cjs → EmptyState-DX0t62iF.cjs} +2 -2
- package/dist/{EmptyState-CGeBqbmR.cjs.map → EmptyState-DX0t62iF.cjs.map} +1 -1
- package/dist/{EmptyState-tZBErBKF.js → EmptyState-Pj-emXt5.js} +3 -3
- package/dist/{EmptyState-tZBErBKF.js.map → EmptyState-Pj-emXt5.js.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +7 -7
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +2 -2
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-ic8C5Ksc.cjs → GraphEl-CWjTuiYd.cjs} +2 -2
- package/dist/{GraphEl-ic8C5Ksc.cjs.map → GraphEl-CWjTuiYd.cjs.map} +1 -1
- package/dist/{GraphEl-L5hNe7wJ.js → GraphEl-DDXkYObU.js} +7 -7
- package/dist/{GraphEl-L5hNe7wJ.js.map → GraphEl-DDXkYObU.js.map} +1 -1
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +42 -42
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +8 -8
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +80 -80
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +2 -2
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +10 -10
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/{Source-B5AoSlsi.cjs → Source-B3i0Bx2R.cjs} +2 -2
- package/dist/{Source-B5AoSlsi.cjs.map → Source-B3i0Bx2R.cjs.map} +1 -1
- package/dist/{Source-F8EYCYkV.js → Source-_STIejqs.js} +14 -14
- package/dist/{Source-F8EYCYkV.js.map → Source-_STIejqs.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +12 -12
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +2 -2
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +10 -10
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +29 -29
- package/dist/Typography-DrJ7IOdw.cjs +2 -0
- package/dist/Typography-DrJ7IOdw.cjs.map +1 -0
- package/dist/Typography-iR8PEgdt.js +263 -0
- package/dist/Typography-iR8PEgdt.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +25 -25
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/{index-BQYOuXdl.js → index-B-4y_iGB.js} +19 -17
- package/dist/index-B-4y_iGB.js.map +1 -0
- package/dist/{index-D5ihtaJJ.js → index-BE-lvE4c.js} +3 -3
- package/dist/{index-D5ihtaJJ.js.map → index-BE-lvE4c.js.map} +1 -1
- package/dist/{index-Dgjq6aZ2.cjs → index-DlrGwLQA.cjs} +2 -2
- package/dist/{index-Dgjq6aZ2.cjs.map → index-DlrGwLQA.cjs.map} +1 -1
- package/dist/index-sbKVyHS2.cjs +2 -0
- package/dist/index-sbKVyHS2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/Typography-hWfh3H0J.js +0 -142
- package/dist/Typography-hWfh3H0J.js.map +0 -1
- package/dist/Typography-sa1UE0oF.cjs +0 -2
- package/dist/Typography-sa1UE0oF.cjs.map +0 -1
- package/dist/index-BQYOuXdl.js.map +0 -1
- package/dist/index-C6er0ety.cjs +0 -2
- package/dist/index-C6er0ety.cjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
1
|
+
import { c as B, m as E, j as o } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
+
import { useState as F } from "react";
|
|
3
|
+
import { _ as R } from "./Typography-iR8PEgdt.js";
|
|
4
|
+
import { n as T } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
5
|
function I(S) {
|
|
6
|
-
const e =
|
|
6
|
+
const e = B.c(52), {
|
|
7
7
|
colorLegendTitle: j,
|
|
8
8
|
colorDomain: r,
|
|
9
9
|
colors: t,
|
|
@@ -12,16 +12,16 @@ function I(S) {
|
|
|
12
12
|
naColor: i,
|
|
13
13
|
className: C,
|
|
14
14
|
showNAColor: M
|
|
15
|
-
} = S, [s, c] =
|
|
15
|
+
} = S, [s, c] = F(void 0), n = i ? 320 : 360;
|
|
16
16
|
let m;
|
|
17
|
-
e[0] !== C ? (m =
|
|
17
|
+
e[0] !== C ? (m = E("flex flex-wrap gap-0 justify-center leading-0", C), e[0] = C, e[1] = m) : m = e[1];
|
|
18
18
|
const A = b ? `${b}px` : "none";
|
|
19
19
|
let h;
|
|
20
20
|
e[2] !== A ? (h = {
|
|
21
21
|
maxWidth: A
|
|
22
22
|
}, e[2] = A, e[3] = h) : h = e[3];
|
|
23
23
|
let d;
|
|
24
|
-
e[4] !== j ? (d = j && j !== "" ? /* @__PURE__ */ o.jsx(
|
|
24
|
+
e[4] !== j ? (d = j && j !== "" ? /* @__PURE__ */ o.jsx(R, { size: "sm", marginBottom: "2xs", className: "w-full text-center", children: j }) : null, e[4] = j, e[5] = d) : d = e[5];
|
|
25
25
|
let N;
|
|
26
26
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
|
|
27
27
|
maxWidth: "360px"
|
|
@@ -29,7 +29,7 @@ function I(S) {
|
|
|
29
29
|
let g;
|
|
30
30
|
if (e[7] !== r || e[8] !== t || e[9] !== s || e[10] !== n || e[11] !== l) {
|
|
31
31
|
let w;
|
|
32
|
-
e[13] !== t || e[14] !== s || e[15] !== n || e[16] !== l ? (w = (
|
|
32
|
+
e[13] !== t || e[14] !== s || e[15] !== n || e[16] !== l ? (w = (_, a) => /* @__PURE__ */ o.jsxs("g", { onMouseOver: () => {
|
|
33
33
|
c(t[a]), l(t[a]);
|
|
34
34
|
}, onMouseLeave: () => {
|
|
35
35
|
c(void 0), l(void 0);
|
|
@@ -42,7 +42,7 @@ function I(S) {
|
|
|
42
42
|
} }),
|
|
43
43
|
/* @__PURE__ */ o.jsx("text", { x: (a + 1) * n / t.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", style: {
|
|
44
44
|
textAnchor: "middle"
|
|
45
|
-
}, children: _
|
|
45
|
+
}, children: T(_, "NA", 2, "", "") })
|
|
46
46
|
] }, a), e[13] = t, e[14] = s, e[15] = n, e[16] = l, e[17] = w) : w = e[17], g = r.map(w), e[7] = r, e[8] = t, e[9] = s, e[10] = n, e[11] = l, e[12] = g;
|
|
47
47
|
} else
|
|
48
48
|
g = e[12];
|
package/dist/TreeMapGraph.cjs
CHANGED
|
@@ -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-sa1UE0oF.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-CGeBqbmR.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.j,{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.j,{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-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;
|
|
2
2
|
//# sourceMappingURL=TreeMapGraph.cjs.map
|
package/dist/TreeMapGraph.js
CHANGED
|
@@ -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 {
|
|
3
|
+
import { _ as Gt } from "./Typography-iR8PEgdt.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-
|
|
16
|
+
import { E as ce } from "./EmptyState-Pj-emXt5.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) {
|
|
@@ -86,13 +86,13 @@ function Me() {
|
|
|
86
86
|
function Oe() {
|
|
87
87
|
return Array.from(this);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ce() {
|
|
90
90
|
var e = [];
|
|
91
91
|
return this.eachBefore(function(t) {
|
|
92
92
|
t.children || e.push(t);
|
|
93
93
|
}), e;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function je() {
|
|
96
96
|
var e = this, t = [];
|
|
97
97
|
return e.each(function(n) {
|
|
98
98
|
n !== e && t.push({ source: n.parent, target: n });
|
|
@@ -148,8 +148,8 @@ xt.prototype = Yt.prototype = {
|
|
|
148
148
|
path: xe,
|
|
149
149
|
ancestors: Me,
|
|
150
150
|
descendants: Oe,
|
|
151
|
-
leaves:
|
|
152
|
-
links:
|
|
151
|
+
leaves: Ce,
|
|
152
|
+
links: je,
|
|
153
153
|
copy: ke,
|
|
154
154
|
[Symbol.iterator]: De
|
|
155
155
|
};
|
|
@@ -187,10 +187,10 @@ function Le() {
|
|
|
187
187
|
function i(r) {
|
|
188
188
|
var l = Array.from(r), a = e, d = t, g, y, c, v, o, f, u, m, h = /* @__PURE__ */ new Map();
|
|
189
189
|
if (n != null) {
|
|
190
|
-
const p = l.map((O, x) => Te(n(O, x, r))),
|
|
191
|
-
for (const O of
|
|
192
|
-
k.has(O) || (k.add(O), p.push(O),
|
|
193
|
-
a = (O, x) => p[x], d = (O, x) =>
|
|
190
|
+
const p = l.map((O, x) => Te(n(O, x, r))), C = p.map(Ft), k = new Set(p).add("");
|
|
191
|
+
for (const O of C)
|
|
192
|
+
k.has(O) || (k.add(O), p.push(O), C.push(Ft(O)), l.push(Et));
|
|
193
|
+
a = (O, x) => p[x], d = (O, x) => C[x];
|
|
194
194
|
}
|
|
195
195
|
for (c = 0, g = l.length; c < g; ++c)
|
|
196
196
|
y = l[c], f = l[c] = new xt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? qt : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
|
|
@@ -248,13 +248,13 @@ function ze(e, t, n, i, r) {
|
|
|
248
248
|
}
|
|
249
249
|
var Re = (1 + Math.sqrt(5)) / 2;
|
|
250
250
|
function Pe(e, t, n, i, r, l) {
|
|
251
|
-
for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p,
|
|
251
|
+
for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, C, k, O, x, j; c < o; ) {
|
|
252
252
|
f = r - n, u = l - i;
|
|
253
253
|
do
|
|
254
254
|
h = d[v++].value;
|
|
255
255
|
while (!h && v < o);
|
|
256
|
-
for (p =
|
|
257
|
-
if (h += y = d[v].value, y < p && (p = y), y >
|
|
256
|
+
for (p = C = h, x = Math.max(u / f, f / u) / (m * e), j = h * h * x, O = Math.max(C / j, j / p); v < o; ++v) {
|
|
257
|
+
if (h += y = d[v].value, y < p && (p = y), y > C && (C = y), j = h * h * x, k = Math.max(C / j, j / p), k > O) {
|
|
258
258
|
h -= y;
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
@@ -321,11 +321,11 @@ function We(e) {
|
|
|
321
321
|
showValues: m,
|
|
322
322
|
suffix: h,
|
|
323
323
|
prefix: p,
|
|
324
|
-
highlightedDataPoints:
|
|
324
|
+
highlightedDataPoints: C,
|
|
325
325
|
onSeriesMouseClick: k,
|
|
326
326
|
resetSelectionOnDoubleClick: O,
|
|
327
327
|
detailsOnClick: x,
|
|
328
|
-
language:
|
|
328
|
+
language: j,
|
|
329
329
|
styles: N,
|
|
330
330
|
classNames: I,
|
|
331
331
|
animate: D,
|
|
@@ -347,7 +347,7 @@ function We(e) {
|
|
|
347
347
|
}, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] = w) : w = t[7];
|
|
348
348
|
const V = w, st = l - V.left - V.right, ct = a - V.top - V.bottom;
|
|
349
349
|
let T, z, R, P, H, G, W, q, F;
|
|
350
|
-
if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== x || t[14] !== U || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !==
|
|
350
|
+
if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== x || t[14] !== U || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== C || t[19] !== J || t[20] !== j || t[21] !== V.left || t[22] !== V.top || t[23] !== L || t[24] !== k || t[25] !== f || t[26] !== Z || t[27] !== p || t[28] !== O || t[29] !== u || t[30] !== v || t[31] !== m || t[32] !== N?.graphObjectValues || t[33] !== h || t[34] !== l) {
|
|
351
351
|
const vt = [{
|
|
352
352
|
id: "root",
|
|
353
353
|
parent: void 0,
|
|
@@ -363,7 +363,7 @@ function We(e) {
|
|
|
363
363
|
y: s.y0
|
|
364
364
|
},
|
|
365
365
|
whileInView: {
|
|
366
|
-
opacity: u ? s.data.data.color && i[d.indexOf(s.data.data.color)] === u ? 1 : U :
|
|
366
|
+
opacity: u ? s.data.data.color && i[d.indexOf(s.data.data.color)] === u ? 1 : U : C.length !== 0 ? C.indexOf(s.data.id) !== -1 ? 0.85 : U : 0.85,
|
|
367
367
|
x: s.x0,
|
|
368
368
|
y: s.y0,
|
|
369
369
|
transition: {
|
|
@@ -424,7 +424,7 @@ function We(e) {
|
|
|
424
424
|
}, children: /* @__PURE__ */ b.jsx("foreignObject", { y: 0, x: 0, width: s.x1 - s.x0, height: s.y1 - s.y0, children: /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-0.5 p-2 w-full", style: {
|
|
425
425
|
color: $t(n.filter(Xe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray)
|
|
426
426
|
}, children: [
|
|
427
|
-
v ? /* @__PURE__ */ b.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Ht("w-full treemap-label",
|
|
427
|
+
v ? /* @__PURE__ */ b.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Ht("w-full treemap-label", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
|
|
428
428
|
WebkitLineClamp: s.y1 - s.y0 > 50 ? s.y1 - s.y0 > 100 ? s.y1 - s.y0 > 150 ? void 0 : 3 : 2 : 1,
|
|
429
429
|
display: "-webkit-box",
|
|
430
430
|
WebkitBoxOrient: "vertical",
|
|
@@ -432,12 +432,12 @@ function We(e) {
|
|
|
432
432
|
color: $t(n.filter(Fe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
|
|
433
433
|
...N?.graphObjectValues || {}
|
|
434
434
|
}, children: s.data.id }) : null,
|
|
435
|
-
m ? /* @__PURE__ */ b.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Ht("w-full font-bold treemap-value",
|
|
435
|
+
m ? /* @__PURE__ */ b.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Ht("w-full font-bold treemap-value", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
|
|
436
436
|
color: $t(n.filter(qe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
|
|
437
437
|
...N?.graphObjectValues || {}
|
|
438
438
|
}, children: ee(s.data.value, "NA", Z, p, h) }) : null
|
|
439
439
|
] }) }) }) : null
|
|
440
|
-
] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = x, t[14] = U, t[15] = ct, t[16] = st, t[17] = a, t[18] =
|
|
440
|
+
] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = x, t[14] = U, t[15] = ct, t[16] = st, t[17] = a, t[18] = C, t[19] = J, t[20] = j, t[21] = V.left, t[22] = V.top, t[23] = L, t[24] = k, t[25] = f, t[26] = Z, t[27] = p, t[28] = O, t[29] = u, t[30] = v, t[31] = m, t[32] = N?.graphObjectValues, t[33] = h, t[34] = l, t[35] = T, t[36] = z, t[37] = R, t[38] = P, t[39] = H, t[40] = G, t[41] = W, t[42] = q, t[43] = F;
|
|
441
441
|
} else
|
|
442
442
|
T = t[35], z = t[36], R = t[37], P = t[38], H = t[39], G = t[40], W = t[41], q = t[42], F = t[43];
|
|
443
443
|
let X;
|
|
@@ -507,11 +507,11 @@ function kn(e) {
|
|
|
507
507
|
footNote: m,
|
|
508
508
|
colorDomain: h,
|
|
509
509
|
colorLegendTitle: p,
|
|
510
|
-
padding:
|
|
510
|
+
padding: C,
|
|
511
511
|
backgroundColor: k,
|
|
512
512
|
showLabels: O,
|
|
513
513
|
relativeHeight: x,
|
|
514
|
-
tooltip:
|
|
514
|
+
tooltip: j,
|
|
515
515
|
onSeriesMouseOver: N,
|
|
516
516
|
showColorScale: I,
|
|
517
517
|
showValues: D,
|
|
@@ -536,13 +536,13 @@ function kn(e) {
|
|
|
536
536
|
let B;
|
|
537
537
|
t[0] !== Z ? (B = Z === void 0 ? [] : Z, t[0] = Z, t[1] = B) : B = t[1];
|
|
538
538
|
const Y = B, S = et === void 0 ? !1 : et, $ = J === void 0 ? !1 : J, A = nt === void 0 ? "en" : nt, vt = rt === void 0 ? !0 : rt, ut = L === void 0 ? 0 : L, E = at === void 0 ? "light" : at, s = lt === void 0 ? !0 : lt, K = V === void 0 ? !1 : V, kt = st === void 0 ? 0.3 : st, It = ct === void 0 ? 2 : ct, [bt, Zt] = it(0), [Mt, Jt] = it(0), [Vt, Qt] = it(void 0), Nt = Lt(null), zt = Lt(null);
|
|
539
|
-
let Ot,
|
|
539
|
+
let Ot, Ct;
|
|
540
540
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ot = () => {
|
|
541
541
|
const Rt = new ResizeObserver((Pt) => {
|
|
542
542
|
Zt(Pt[0].target.clientWidth || 620), Jt(Pt[0].target.clientHeight || 480);
|
|
543
543
|
});
|
|
544
544
|
return Nt.current && Rt.observe(Nt.current), () => Rt.disconnect();
|
|
545
|
-
},
|
|
545
|
+
}, Ct = [], t[2] = Ot, t[3] = Ct) : (Ot = t[2], Ct = t[3]), _t(Ot, Ct);
|
|
546
546
|
const Bt = w?.graphContainer, St = M?.graphContainer;
|
|
547
547
|
let dt;
|
|
548
548
|
t[4] !== w?.description || t[5] !== w?.title || t[6] !== n || t[7] !== $ || t[8] !== g || t[9] !== S || t[10] !== i || t[11] !== M?.description || t[12] !== M?.title || t[13] !== u ? (dt = i || g || S || $ ? /* @__PURE__ */ b.jsx(le, { styles: {
|
|
@@ -557,7 +557,7 @@ function kn(e) {
|
|
|
557
557
|
let ht;
|
|
558
558
|
t[25] !== n.length ? (ht = n.length === 0 && /* @__PURE__ */ b.jsx(ce, {}), t[25] = n.length, t[26] = ht) : ht = t[26];
|
|
559
559
|
let pt;
|
|
560
|
-
t[27] !== K || t[28] !== G || t[29] !== w || t[30] !== h || t[31] !== r || t[32] !== n || t[33] !== _ || t[34] !== kt || t[35] !== Y || t[36] !== A || t[37] !== R || t[38] !== ot || t[39] !== N || t[40] !== It || t[41] !== z || t[42] !== s || t[43] !== P || t[44] !== Vt || t[45] !== q || t[46] !== X || t[47] !== M || t[48] !== T || t[49] !== Mt || t[50] !== bt || t[51] !== E || t[52] !==
|
|
560
|
+
t[27] !== K || t[28] !== G || t[29] !== w || t[30] !== h || t[31] !== r || t[32] !== n || t[33] !== _ || t[34] !== kt || t[35] !== Y || t[36] !== A || t[37] !== R || t[38] !== ot || t[39] !== N || t[40] !== It || t[41] !== z || t[42] !== s || t[43] !== P || t[44] !== Vt || t[45] !== q || t[46] !== X || t[47] !== M || t[48] !== T || t[49] !== Mt || t[50] !== bt || t[51] !== E || t[52] !== j || t[53] !== H ? (pt = bt && Mt && n.length > 0 ? /* @__PURE__ */ b.jsx(We, { data: n.filter(en), colors: n.filter(tn).length === 0 ? r ? [r] : [tt.primaryColors["blue-600"]] : r || tt[E].categoricalColors.colors, colorDomain: n.filter(_e).length === 0 ? [] : h || Wt(n, "color", !0), width: bt, height: Mt, leftMargin: R, rightMargin: P, topMargin: H, bottomMargin: G, showLabels: q, showValues: X, suffix: T, prefix: z, selectedColor: Vt, tooltip: j, onSeriesMouseOver: N, onSeriesMouseClick: ot, highlightedDataPoints: Y, resetSelectionOnDoubleClick: s, detailsOnClick: _, styles: M, classNames: w, language: A, animate: K === !0 ? {
|
|
561
561
|
duration: 0.5,
|
|
562
562
|
once: !0,
|
|
563
563
|
amount: 0.5
|
|
@@ -565,7 +565,7 @@ function kn(e) {
|
|
|
565
565
|
duration: 0,
|
|
566
566
|
once: !0,
|
|
567
567
|
amount: 0
|
|
568
|
-
}, dimmedOpacity: kt, precision: It }) : null, t[27] = K, t[28] = G, t[29] = w, t[30] = h, t[31] = r, t[32] = n, t[33] = _, t[34] = kt, t[35] = Y, t[36] = A, t[37] = R, t[38] = ot, t[39] = N, t[40] = It, t[41] = z, t[42] = s, t[43] = P, t[44] = Vt, t[45] = q, t[46] = X, t[47] = M, t[48] = T, t[49] = Mt, t[50] = bt, t[51] = E, t[52] =
|
|
568
|
+
}, dimmedOpacity: kt, precision: It }) : null, t[27] = K, t[28] = G, t[29] = w, t[30] = h, t[31] = r, t[32] = n, t[33] = _, t[34] = kt, t[35] = Y, t[36] = A, t[37] = R, t[38] = ot, t[39] = N, t[40] = It, t[41] = z, t[42] = s, t[43] = P, t[44] = Vt, t[45] = q, t[46] = X, t[47] = M, t[48] = T, t[49] = Mt, t[50] = bt, t[51] = E, t[52] = j, t[53] = H, t[54] = pt) : pt = t[54];
|
|
569
569
|
let gt;
|
|
570
570
|
t[55] !== ht || t[56] !== pt ? (gt = /* @__PURE__ */ b.jsxs(ue, { ref: Nt, children: [
|
|
571
571
|
ht,
|
|
@@ -579,13 +579,13 @@ function kn(e) {
|
|
|
579
579
|
footnote: w?.footnote,
|
|
580
580
|
source: w?.source
|
|
581
581
|
}, sources: a, footNote: m, width: u }) : null, t[58] = w?.footnote, t[59] = w?.source, t[60] = m, t[61] = a, t[62] = M?.footnote, t[63] = M?.source, t[64] = u, t[65] = mt) : mt = t[65];
|
|
582
|
-
let
|
|
583
|
-
return t[66] !== Q || t[67] !== W || t[68] !== U || t[69] !== f || t[70] !== A || t[71] !== ut || t[72] !==
|
|
582
|
+
let jt;
|
|
583
|
+
return t[66] !== Q || t[67] !== W || t[68] !== U || t[69] !== f || t[70] !== A || t[71] !== ut || t[72] !== C || t[73] !== x || t[74] !== Bt || t[75] !== St || t[76] !== dt || t[77] !== ft || t[78] !== gt || t[79] !== mt || t[80] !== E || t[81] !== u ? (jt = /* @__PURE__ */ b.jsxs(de, { className: Bt, style: St, id: U, ref: zt, "aria-label": Q, backgroundColor: W, theme: E, language: A, minHeight: ut, width: u, height: f, relativeHeight: x, padding: C, children: [
|
|
584
584
|
dt,
|
|
585
585
|
ft,
|
|
586
586
|
gt,
|
|
587
587
|
mt
|
|
588
|
-
] }), t[66] = Q, t[67] = W, t[68] = U, t[69] = f, t[70] = A, t[71] = ut, t[72] =
|
|
588
|
+
] }), t[66] = Q, t[67] = W, t[68] = U, t[69] = f, t[70] = A, t[71] = ut, t[72] = C, t[73] = x, t[74] = Bt, t[75] = St, t[76] = dt, t[77] = ft, t[78] = gt, t[79] = mt, t[80] = E, t[81] = u, t[82] = jt) : jt = t[82], jt;
|
|
589
589
|
}
|
|
590
590
|
function _e(e) {
|
|
591
591
|
return e.color;
|
|
@@ -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]",{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]",{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]",{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-DrJ7IOdw.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography-DrJ7IOdw.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\", {\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]\", {\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]\", {\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]\", {\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]\", {\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]\", {\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\", {\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]\", {\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,E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