@undp/data-viz 2.3.11 → 2.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +4 -4
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +1 -1
- 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 +2 -2
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +2 -2
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +39 -39
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +2 -2
- 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 +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +3 -3
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +19 -19
- 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.cjs.map +1 -1
- package/dist/DumbbellChart.js +2 -2
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-D807L58h.js → EmptyState-B3fPoH6L.js} +2 -2
- package/dist/{EmptyState-D807L58h.js.map → EmptyState-B3fPoH6L.js.map} +1 -1
- package/dist/{EmptyState-N1eHt3vq.cjs → EmptyState-B4c-CrXs.cjs} +2 -2
- package/dist/{EmptyState-N1eHt3vq.cjs.map → EmptyState-B4c-CrXs.cjs.map} +1 -1
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-DvwOOhF1.cjs → GraphEl-Bgf8w82K.cjs} +2 -2
- package/dist/{GraphEl-DvwOOhF1.cjs.map → GraphEl-Bgf8w82K.cjs.map} +1 -1
- package/dist/{GraphEl-CT3xPv2P.js → GraphEl-CXK-LPsj.js} +3 -3
- package/dist/{GraphEl-CT3xPv2P.js.map → GraphEl-CXK-LPsj.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 +29 -29
- package/dist/HybridMap.js.map +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.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +393 -391
- package/dist/MultiLineAltChart.js.map +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/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +2 -2
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +439 -437
- package/dist/ScatterPlot.js.map +1 -1
- 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 +1 -1
- 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-24M277ZQ.cjs → Source-BOSAl3UX.cjs} +2 -2
- package/dist/{Source-24M277ZQ.cjs.map → Source-BOSAl3UX.cjs.map} +1 -1
- package/dist/{Source-eILIr4Ov.js → Source-Djkz-7jX.js} +2 -2
- package/dist/{Source-eILIr4Ov.js.map → Source-Djkz-7jX.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 +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +2 -2
- package/dist/Typography-CZZxlj1W.cjs +2 -0
- package/dist/Typography-CZZxlj1W.cjs.map +1 -0
- package/dist/{Typography-HicNIA61.js → Typography-DMVW6JnV.js} +67 -60
- package/dist/Typography-DMVW6JnV.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/{index-B5ggV1vg.js → index-C6VwVS8W.js} +3 -3
- package/dist/{index-B5ggV1vg.js.map → index-C6VwVS8W.js.map} +1 -1
- package/dist/{index-BDR7MlMo.cjs → index-_TlgeI_i.cjs} +2 -2
- package/dist/{index-BDR7MlMo.cjs.map → index-_TlgeI_i.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Typography-Cc_iHQB-.cjs +0 -2
- package/dist/Typography-Cc_iHQB-.cjs.map +0 -1
- package/dist/Typography-HicNIA61.js.map +0 -1
package/dist/ThreeDGlobe.cjs
CHANGED
|
@@ -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-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-DIRTulvr.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-CZZxlj1W.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-DIRTulvr.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
|
package/dist/ThreeDGlobe.js
CHANGED
|
@@ -4,7 +4,7 @@ import { w as ht } from "./Spinner-CtJETd5V.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-
|
|
7
|
+
import { _ as et } from "./Typography-DMVW6JnV.js";
|
|
8
8
|
import { g as gt } from "./_commonjsHelpers-ByX85dGu.js";
|
|
9
9
|
import { T as ft } from "./Tooltip-CohiIbLZ.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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),T=require("react"),$=require("./Typography-CZZxlj1W.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-BCLAYDCV.js";
|
|
2
2
|
import { useState as F } from "react";
|
|
3
|
-
import { _ as R } from "./Typography-
|
|
3
|
+
import { _ as R } from "./Typography-DMVW6JnV.js";
|
|
4
4
|
import { n as T } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
5
|
function I(S) {
|
|
6
6
|
const e = B.c(52), {
|
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-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-DIRTulvr.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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index-CHPV5EwG-6v2a2njQ.cjs"),$=require("react"),Pt=require("./Typography-CZZxlj1W.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-DIRTulvr.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-B4c-CrXs.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-BCLAYDCV.js";
|
|
2
2
|
import { useRef as Lt, useState as it, useEffect as _t } from "react";
|
|
3
|
-
import { _ as Gt } from "./Typography-
|
|
3
|
+
import { _ as Gt } from "./Typography-DMVW6JnV.js";
|
|
4
4
|
import { T as te } from "./Tooltip-CohiIbLZ.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-B3fPoH6L.js";
|
|
17
17
|
import { u as Wt } from "./uniqBy-BHy4I8PK.js";
|
|
18
18
|
import { a as ue, G as de } from "./GraphContainer-DwMxWRCi.js";
|
|
19
19
|
function fe(e) {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const b=require("./index-CHPV5EwG-6v2a2njQ.cjs"),c=b.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 e=b._.c(22);let t,n,m,l,a,i,o,r,g;e[0]!==s?({children:n,className:m,size:r,leading:a,marginBottom:i,weight:g,decoration:l,alignment:t,...o}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=m,e[4]=l,e[5]=a,e[6]=i,e[7]=o,e[8]=r,e[9]=g):(t=e[1],n=e[2],m=e[3],l=e[4],a=e[5],i=e[6],o=e[7],r=e[8],g=e[9]);let d;e[10]!==t||e[11]!==m||e[12]!==l||e[13]!==a||e[14]!==i||e[15]!==r||e[16]!==g?(d=b.mo(c({size:r,leading:a,marginBottom:i,weight:g,decoration:l,alignment:t}),m),e[10]=t,e[11]=m,e[12]=l,e[13]=a,e[14]=i,e[15]=r,e[16]=g,e[17]=d):d=e[17];let x;return e[18]!==n||e[19]!==o||e[20]!==d?(x=b.ae.jsx("p",{...o,className:d,children:n}),e[18]=n,e[19]=o,e[20]=d,e[21]=x):x=e[21],x}const f=b.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 e=b._.c(16);let t,n,m,l,a,i;e[0]!==s?({children:n,className:m,marginBottom:l,weight:i,alignment:t,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=m,e[4]=l,e[5]=a,e[6]=i):(t=e[1],n=e[2],m=e[3],l=e[4],a=e[5],i=e[6]);let o;e[7]!==t||e[8]!==m||e[9]!==l||e[10]!==i?(o=b.mo(f({marginBottom:l,weight:i,alignment:t}),m),e[7]=t,e[8]=m,e[9]=l,e[10]=i,e[11]=o):o=e[11];let r;return e[12]!==n||e[13]!==a||e[14]!==o?(r=b.ae.jsx("h2",{...a,className:o,children:n}),e[12]=n,e[13]=a,e[14]=o,e[15]=r):r=e[15],r}const w=b.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 e=b._.c(16);let t,n,m,l,a,i;e[0]!==s?({children:n,className:m,marginBottom:l,weight:i,alignment:t,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=m,e[4]=l,e[5]=a,e[6]=i):(t=e[1],n=e[2],m=e[3],l=e[4],a=e[5],i=e[6]);let o;e[7]!==t||e[8]!==m||e[9]!==l||e[10]!==i?(o=b.mo(w({marginBottom:l,weight:i,alignment:t}),m),e[7]=t,e[8]=m,e[9]=l,e[10]=i,e[11]=o):o=e[11];let r;return e[12]!==n||e[13]!==a||e[14]!==o?(r=b.ae.jsx("h3",{...a,className:o,children:n}),e[12]=n,e[13]=a,e[14]=o,e[15]=r):r=e[15],r}const v=b.j("mt-0 ml-0 mr-0 p-0 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"},size:{"base-responsive":"text-[1.25rem] md:text-[1.563rem]",base:"text-[1.25rem]"},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",size:"base-responsive"}});function B(s){const e=b._.c(18);let t,n,m,l,a,i,o;e[0]!==s?({children:n,className:m,marginBottom:l,weight:o,alignment:t,size:i,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=m,e[4]=l,e[5]=a,e[6]=i,e[7]=o):(t=e[1],n=e[2],m=e[3],l=e[4],a=e[5],i=e[6],o=e[7]);let r;e[8]!==t||e[9]!==m||e[10]!==l||e[11]!==i||e[12]!==o?(r=b.mo(v({marginBottom:l,weight:o,alignment:t,size:i}),m),e[8]=t,e[9]=m,e[10]=l,e[11]=i,e[12]=o,e[13]=r):r=e[13];let g;return e[14]!==n||e[15]!==a||e[16]!==r?(g=b.ae.jsx("h5",{...a,className:r,children:n}),e[14]=n,e[15]=a,e[16]=r,e[17]=g):g=e[17],g}function N(s){const e=b._.c(12);let t,n,m,l;e[0]!==s?({children:t,className:n,weight:l,...m}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=m,e[4]=l):(t=e[1],n=e[2],m=e[3],l=e[4]);const a=l?`font-${l}`:"font-normal";let i;e[5]!==n||e[6]!==a?(i=b.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),e[5]=n,e[6]=a,e[7]=i):i=e[7];let o;return e[8]!==t||e[9]!==m||e[10]!==i?(o=b.ae.jsx("a",{...m,className:i,children:t}),e[8]=t,e[9]=m,e[10]=i,e[11]=o):o=e[11],o}exports.E=u;exports.J=N;exports.P=B;exports.R=p;exports._=h;
|
|
2
|
+
//# sourceMappingURL=Typography-CZZxlj1W.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography-CZZxlj1W.cjs","sources":["../node_modules/@undp/design-system-react/dist/Typography.js"],"sourcesContent":["import { j as d } from \"./jsx-runtime-BzflLqGi.js\";\nimport { c as g } from \"./compiler-runtime-Cu50tn6L.js\";\nimport { c as x } from \"./index-CHPV5EwG.js\";\nimport { c as f } from \"./utils-D_Pof5Gy.js\";\nconst p = x(\"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 = g.c(22);\n let t, l, n, m, i, o, a, r, b;\n e[0] !== s ? ({\n children: l,\n className: n,\n size: r,\n leading: i,\n marginBottom: o,\n weight: b,\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] = b) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6], a = e[7], r = e[8], b = 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] !== b ? (c = f(p({\n size: r,\n leading: i,\n marginBottom: o,\n weight: b,\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] = b, e[17] = c) : c = e[17];\n let h;\n return e[18] !== l || e[19] !== a || e[20] !== c ? (h = /* @__PURE__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"mt-0 ml-0 mr-0 p-0 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 size: {\n \"base-responsive\": \"text-[1.25rem] md:text-[1.563rem]\",\n base: \"text-[1.25rem]\"\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 size: \"base-responsive\"\n }\n});\nfunction P(s) {\n const e = g.c(18);\n let t, l, n, m, i, o, a;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: a,\n alignment: t,\n size: o,\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, e[7] = a) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6], a = e[7]);\n let r;\n e[8] !== t || e[9] !== n || e[10] !== m || e[11] !== o || e[12] !== a ? (r = f(N({\n marginBottom: m,\n weight: a,\n alignment: t,\n size: o\n }), n), e[8] = t, e[9] = n, e[10] = m, e[11] = o, e[12] = a, e[13] = r) : r = e[13];\n let b;\n return e[14] !== l || e[15] !== i || e[16] !== r ? (b = /* @__PURE__ */ d.jsx(\"h5\", { ...i, className: r, children: l }), e[14] = l, e[15] = i, e[16] = r, e[17] = b) : b = e[17], b;\n}\nconst V = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 $ = x(\"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 = g.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 = f($({\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__ */ d.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 = g.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 = f(\"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__ */ d.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","x","_","g","l","n","m","i","o","a","b","c","f","h","d","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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AIG,EAAG,EAAE,CAAC,EAAIC,GAAKA,EAAI,EAAE,CAAC,EAC1S,IAAIC,EACJ,OAAO,EAAE,CAAC,IAAM,GAAK,EAAE,CAAC,IAAMJ,GAAK,EAAE,EAAE,IAAMG,GAAKC,EAAoBK,EAAAA,GAAE,IAAI,IAAK,CAAE,GAAGT,EAAG,UAAWG,EAAG,SAAU,EAAG,EAAG,EAAE,CAAC,EAAI,EAAG,EAAE,CAAC,EAAIH,EAAG,EAAE,EAAE,EAAIG,EAAG,EAAE,EAAE,EAAIC,GAAKA,EAAI,EAAE,EAAE,EAAGA,CAChL","x_google_ignoreList":[0]}
|
|
@@ -58,31 +58,31 @@ const u = f("mt-0 ml-0 mr-0", {
|
|
|
58
58
|
});
|
|
59
59
|
function N(s) {
|
|
60
60
|
const t = d.c(22);
|
|
61
|
-
let e, n, m,
|
|
61
|
+
let e, n, m, l, a, i, o, r, b;
|
|
62
62
|
t[0] !== s ? ({
|
|
63
63
|
children: n,
|
|
64
64
|
className: m,
|
|
65
65
|
size: r,
|
|
66
66
|
leading: a,
|
|
67
|
-
marginBottom:
|
|
68
|
-
weight:
|
|
69
|
-
decoration:
|
|
67
|
+
marginBottom: i,
|
|
68
|
+
weight: b,
|
|
69
|
+
decoration: l,
|
|
70
70
|
alignment: e,
|
|
71
71
|
...o
|
|
72
|
-
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] =
|
|
73
|
-
let
|
|
74
|
-
t[10] !== e || t[11] !== m || t[12] !==
|
|
72
|
+
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] = l, t[5] = a, t[6] = i, t[7] = o, t[8] = r, t[9] = b) : (e = t[1], n = t[2], m = t[3], l = t[4], a = t[5], i = t[6], o = t[7], r = t[8], b = t[9]);
|
|
73
|
+
let g;
|
|
74
|
+
t[10] !== e || t[11] !== m || t[12] !== l || t[13] !== a || t[14] !== i || t[15] !== r || t[16] !== b ? (g = x(u({
|
|
75
75
|
size: r,
|
|
76
76
|
leading: a,
|
|
77
|
-
marginBottom:
|
|
78
|
-
weight:
|
|
79
|
-
decoration:
|
|
77
|
+
marginBottom: i,
|
|
78
|
+
weight: b,
|
|
79
|
+
decoration: l,
|
|
80
80
|
alignment: e
|
|
81
|
-
}), m), t[10] = e, t[11] = m, t[12] =
|
|
81
|
+
}), m), t[10] = e, t[11] = m, t[12] = l, t[13] = a, t[14] = i, t[15] = r, t[16] = b, t[17] = g) : g = t[17];
|
|
82
82
|
let h;
|
|
83
|
-
return t[18] !== n || t[19] !== o || t[20] !==
|
|
83
|
+
return t[18] !== n || t[19] !== o || t[20] !== g ? (h = /* @__PURE__ */ c.jsx("p", { ...o, className: g, children: n }), t[18] = n, t[19] = o, t[20] = g, t[21] = h) : h = t[21], h;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const p = 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",
|
|
@@ -114,27 +114,27 @@ const w = f("mt-0 ml-0 mr-0 p-0 text-[2.5rem] md:text-[2.813rem] lg:text-[3.438r
|
|
|
114
114
|
alignment: "left"
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
function
|
|
117
|
+
function z(s) {
|
|
118
118
|
const t = d.c(16);
|
|
119
|
-
let e, n, m,
|
|
119
|
+
let e, n, m, l, a, i;
|
|
120
120
|
t[0] !== s ? ({
|
|
121
121
|
children: n,
|
|
122
122
|
className: m,
|
|
123
|
-
marginBottom:
|
|
124
|
-
weight:
|
|
123
|
+
marginBottom: l,
|
|
124
|
+
weight: i,
|
|
125
125
|
alignment: e,
|
|
126
126
|
...a
|
|
127
|
-
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] =
|
|
127
|
+
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] = l, t[5] = a, t[6] = i) : (e = t[1], n = t[2], m = t[3], l = t[4], a = t[5], i = t[6]);
|
|
128
128
|
let o;
|
|
129
|
-
t[7] !== e || t[8] !== m || t[9] !==
|
|
130
|
-
marginBottom:
|
|
131
|
-
weight:
|
|
129
|
+
t[7] !== e || t[8] !== m || t[9] !== l || t[10] !== i ? (o = x(p({
|
|
130
|
+
marginBottom: l,
|
|
131
|
+
weight: i,
|
|
132
132
|
alignment: e
|
|
133
|
-
}), m), t[7] = e, t[8] = m, t[9] =
|
|
133
|
+
}), m), t[7] = e, t[8] = m, t[9] = l, t[10] = i, t[11] = o) : o = t[11];
|
|
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
|
|
137
|
+
const w = 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",
|
|
@@ -166,27 +166,27 @@ const p = f("mt-0 ml-0 mr-0 p-0 text-[1.875rem] md:text-[2.188rem] leading-[1.15
|
|
|
166
166
|
alignment: "left"
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
function
|
|
169
|
+
function j(s) {
|
|
170
170
|
const t = d.c(16);
|
|
171
|
-
let e, n, m,
|
|
171
|
+
let e, n, m, l, a, i;
|
|
172
172
|
t[0] !== s ? ({
|
|
173
173
|
children: n,
|
|
174
174
|
className: m,
|
|
175
|
-
marginBottom:
|
|
176
|
-
weight:
|
|
175
|
+
marginBottom: l,
|
|
176
|
+
weight: i,
|
|
177
177
|
alignment: e,
|
|
178
178
|
...a
|
|
179
|
-
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] =
|
|
179
|
+
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] = l, t[5] = a, t[6] = i) : (e = t[1], n = t[2], m = t[3], l = t[4], a = t[5], i = t[6]);
|
|
180
180
|
let o;
|
|
181
|
-
t[7] !== e || t[8] !== m || t[9] !==
|
|
182
|
-
marginBottom:
|
|
183
|
-
weight:
|
|
181
|
+
t[7] !== e || t[8] !== m || t[9] !== l || t[10] !== i ? (o = x(w({
|
|
182
|
+
marginBottom: l,
|
|
183
|
+
weight: i,
|
|
184
184
|
alignment: e
|
|
185
|
-
}), m), t[7] = e, t[8] = m, t[9] =
|
|
185
|
+
}), m), t[7] = e, t[8] = m, t[9] = l, t[10] = i, t[11] = o) : o = t[11];
|
|
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
|
|
189
|
+
const v = f("mt-0 ml-0 mr-0 p-0 leading-[1.15] font-sans", {
|
|
190
190
|
variants: {
|
|
191
191
|
marginBottom: {
|
|
192
192
|
none: "mb-0",
|
|
@@ -198,6 +198,10 @@ const B = f("mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15]
|
|
|
198
198
|
lg: "mb-5",
|
|
199
199
|
xl: "mb-6"
|
|
200
200
|
},
|
|
201
|
+
size: {
|
|
202
|
+
"base-responsive": "text-[1.25rem] md:text-[1.563rem]",
|
|
203
|
+
base: "text-[1.25rem]"
|
|
204
|
+
},
|
|
201
205
|
weight: {
|
|
202
206
|
light: "font-light",
|
|
203
207
|
normal: "font-normal",
|
|
@@ -215,49 +219,52 @@ const B = f("mt-0 ml-0 mr-0 p-0 text-[1.25rem] md:text-[1.563rem] leading-[1.15]
|
|
|
215
219
|
defaultVariants: {
|
|
216
220
|
marginBottom: "base-responsive",
|
|
217
221
|
weight: "normal",
|
|
218
|
-
alignment: "left"
|
|
222
|
+
alignment: "left",
|
|
223
|
+
size: "base-responsive"
|
|
219
224
|
}
|
|
220
225
|
});
|
|
221
|
-
function
|
|
222
|
-
const t = d.c(
|
|
223
|
-
let e, n, m,
|
|
226
|
+
function _(s) {
|
|
227
|
+
const t = d.c(18);
|
|
228
|
+
let e, n, m, l, a, i, o;
|
|
224
229
|
t[0] !== s ? ({
|
|
225
230
|
children: n,
|
|
226
231
|
className: m,
|
|
227
|
-
marginBottom:
|
|
228
|
-
weight:
|
|
232
|
+
marginBottom: l,
|
|
233
|
+
weight: o,
|
|
229
234
|
alignment: e,
|
|
235
|
+
size: i,
|
|
230
236
|
...a
|
|
231
|
-
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] =
|
|
232
|
-
let o;
|
|
233
|
-
t[7] !== e || t[8] !== m || t[9] !== i || t[10] !== l ? (o = x(B({
|
|
234
|
-
marginBottom: i,
|
|
235
|
-
weight: l,
|
|
236
|
-
alignment: e
|
|
237
|
-
}), m), t[7] = e, t[8] = m, t[9] = i, t[10] = l, t[11] = o) : o = t[11];
|
|
237
|
+
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] = l, t[5] = a, t[6] = i, t[7] = o) : (e = t[1], n = t[2], m = t[3], l = t[4], a = t[5], i = t[6], o = t[7]);
|
|
238
238
|
let r;
|
|
239
|
-
|
|
239
|
+
t[8] !== e || t[9] !== m || t[10] !== l || t[11] !== i || t[12] !== o ? (r = x(v({
|
|
240
|
+
marginBottom: l,
|
|
241
|
+
weight: o,
|
|
242
|
+
alignment: e,
|
|
243
|
+
size: i
|
|
244
|
+
}), m), t[8] = e, t[9] = m, t[10] = l, t[11] = i, t[12] = o, t[13] = r) : r = t[13];
|
|
245
|
+
let b;
|
|
246
|
+
return t[14] !== n || t[15] !== a || t[16] !== r ? (b = /* @__PURE__ */ c.jsx("h5", { ...a, className: r, children: n }), t[14] = n, t[15] = a, t[16] = r, t[17] = b) : b = t[17], b;
|
|
240
247
|
}
|
|
241
|
-
function
|
|
248
|
+
function k(s) {
|
|
242
249
|
const t = d.c(12);
|
|
243
|
-
let e, n, m,
|
|
250
|
+
let e, n, m, l;
|
|
244
251
|
t[0] !== s ? ({
|
|
245
252
|
children: e,
|
|
246
253
|
className: n,
|
|
247
|
-
weight:
|
|
254
|
+
weight: l,
|
|
248
255
|
...m
|
|
249
|
-
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] =
|
|
250
|
-
const a =
|
|
251
|
-
let
|
|
252
|
-
t[5] !== n || t[6] !== a ? (
|
|
256
|
+
} = s, t[0] = s, t[1] = e, t[2] = n, t[3] = m, t[4] = l) : (e = t[1], n = t[2], m = t[3], l = t[4]);
|
|
257
|
+
const a = l ? `font-${l}` : "font-normal";
|
|
258
|
+
let i;
|
|
259
|
+
t[5] !== n || t[6] !== a ? (i = x("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] = i) : i = t[7];
|
|
253
260
|
let o;
|
|
254
|
-
return t[8] !== e || t[9] !== m || t[10] !==
|
|
261
|
+
return t[8] !== e || t[9] !== m || t[10] !== i ? (o = /* @__PURE__ */ c.jsx("a", { ...m, className: i, children: e }), t[8] = e, t[9] = m, t[10] = i, t[11] = o) : o = t[11], o;
|
|
255
262
|
}
|
|
256
263
|
export {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
264
|
+
z as E,
|
|
265
|
+
k as J,
|
|
266
|
+
_ as P,
|
|
267
|
+
j as R,
|
|
261
268
|
N as _
|
|
262
269
|
};
|
|
263
|
-
//# sourceMappingURL=Typography-
|
|
270
|
+
//# sourceMappingURL=Typography-DMVW6JnV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography-DMVW6JnV.js","sources":["../node_modules/@undp/design-system-react/dist/Typography.js"],"sourcesContent":["import { j as d } from \"./jsx-runtime-BzflLqGi.js\";\nimport { c as g } from \"./compiler-runtime-Cu50tn6L.js\";\nimport { c as x } from \"./index-CHPV5EwG.js\";\nimport { c as f } from \"./utils-D_Pof5Gy.js\";\nconst p = x(\"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 = g.c(22);\n let t, l, n, m, i, o, a, r, b;\n e[0] !== s ? ({\n children: l,\n className: n,\n size: r,\n leading: i,\n marginBottom: o,\n weight: b,\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] = b) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6], a = e[7], r = e[8], b = 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] !== b ? (c = f(p({\n size: r,\n leading: i,\n marginBottom: o,\n weight: b,\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] = b, e[17] = c) : c = e[17];\n let h;\n return e[18] !== l || e[19] !== a || e[20] !== c ? (h = /* @__PURE__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"mt-0 ml-0 mr-0 p-0 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 size: {\n \"base-responsive\": \"text-[1.25rem] md:text-[1.563rem]\",\n base: \"text-[1.25rem]\"\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 size: \"base-responsive\"\n }\n});\nfunction P(s) {\n const e = g.c(18);\n let t, l, n, m, i, o, a;\n e[0] !== s ? ({\n children: l,\n className: n,\n marginBottom: m,\n weight: a,\n alignment: t,\n size: o,\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, e[7] = a) : (t = e[1], l = e[2], n = e[3], m = e[4], i = e[5], o = e[6], a = e[7]);\n let r;\n e[8] !== t || e[9] !== n || e[10] !== m || e[11] !== o || e[12] !== a ? (r = f(N({\n marginBottom: m,\n weight: a,\n alignment: t,\n size: o\n }), n), e[8] = t, e[9] = n, e[10] = m, e[11] = o, e[12] = a, e[13] = r) : r = e[13];\n let b;\n return e[14] !== l || e[15] !== i || e[16] !== r ? (b = /* @__PURE__ */ d.jsx(\"h5\", { ...i, className: r, children: l }), e[14] = l, e[15] = i, e[16] = r, e[17] = b) : b = e[17], b;\n}\nconst V = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 = x(\"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 = g.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 = f(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__ */ d.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 $ = x(\"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 = g.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 = f($({\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__ */ d.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 = g.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 = f(\"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__ */ d.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","x","_","e","g","t","l","n","m","i","o","a","c","f","d","w","E","v","R","N","P","J"],"mappings":";AAIA,MAAMA,IAAIC,EAAE,kBAAkB;AAAA,EAC5B,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,mBAAmB;AAAA,MACnB,IAAI;AAAA,MACJ,IAAI;AAAA,IACV;AAAA,IACI,SAAS;AAAA,MACP,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,IACV;AAAA,IACI,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,MAAM;AAAA,MACN,WAAW;AAAA,IACjB;AAAA,IACI,YAAY;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,gBAAgB;AAAA,IACtB;AAAA,IACI,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,OAAO;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