@undp/data-viz 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +2 -2
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +223 -223
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +2 -2
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +230 -264
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +1 -1
- package/dist/{GraphEl-YKUlz-37.cjs → GraphEl-BLMih7RN.cjs} +2 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-CRrAlbcr.js} +4 -2
- package/dist/GraphEl-CRrAlbcr.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +2 -2
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.map +0 -1
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
package/dist/ScatterPlot.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),_t=require("./parse-hMnG_lRV.cjs"),L=require("react"),ei=require("./getSliderMarks-BmADcPQt.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),_=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-CMF5g-C3.cjs"),oi=require("./Axis-DxRV2yMi.cjs"),si=require("./AxisTitle-sS5bLLR7.cjs"),hi=require("./XTicksAndGridLines-B6CELS7q.cjs"),ri=require("./ReferenceLine-BH0qdf4R.cjs"),gi=require("./RegressionLine-BOTTNSrr.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),vi=require("./index-B_sAFsEV.cjs"),bi=require("./DetailsModal-BN0HDFlV.cjs"),ji=require("./pow-DgrUorRi.cjs"),li=require("./linear-BwPAspcq.cjs"),Ai=require("./delaunay-rcy0HhZi.cjs"),Oi=require("./use-in-view-QcfiW0w3.cjs"),Xt=require("./proxy-BxvUI_9l.cjs"),ai=require("./index-DG2bgAva.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),Ei=require("./EmptyState-sAEZ_5rU.cjs"),ci=require("./index-DRXx7m-C.cjs"),wi=require("./ensureCompleteData-Oib-vGb0.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-d8A46BK2.cjs");function Si(i){const e=n.compilerRuntimeExports.c(216),{data:o,width:ee,height:I,showLabels:Ue,colors:x,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:U,leftMargin:te,rightMargin:lt,topMargin:jt,bottomMargin:Vt,tooltip:at,onSeriesMouseOver:ie,refXValues:At,refYValues:Ot,highlightAreaSettings:Ct,selectedColor:we,highlightedDataPoints:G,maxRadiusValue:ct,maxXValue:ut,minXValue:k,maxYValue:Ge,minYValue:A,onSeriesMouseClick:N,rtl:He,annotations:We,customHighlightAreaSettings:Se,regressionLine:ne,resetSelectionOnDoubleClick:Le,detailsOnClick:$,noOfXTicks:Be,noOfYTicks:ze,labelColor:Ne,xSuffix:$e,ySuffix:Me,xPrefix:Ve,yPrefix:oe,styles:s,classNames:r,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,xt=L.useRef(null);let ft;e[0]!==a.amount||e[1]!==a.once?(ft={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=ft):ft=e[2];const b=Oi.useInView(xt,ft),[w,qe]=L.useState(void 0),[P,Je]=L.useState(void 0),[mt,se]=L.useState(void 0),[p,f]=L.useState(void 0),Rt=g?Vt+50:Vt,kt=U?te+30:te;let dt;e[3]!==lt||e[4]!==Rt||e[5]!==kt||e[6]!==jt?(dt={top:jt,bottom:Rt,left:kt,right:lt},e[3]=lt,e[4]=Rt,e[5]=kt,e[6]=jt,e[7]=dt):dt=e[7];const d=dt;let H,re,le,ae,ce,ue,X,xe,fe,me,W,de,B,pe,z,he,Y,J;if(e[8]!==a||e[9]!==We||e[10]!==r?.graphObjectValues||e[11]!==r?.regLine||e[12]!==r?.xAxis?.axis||e[13]!==r?.xAxis?.gridLines||e[14]!==r?.xAxis?.labels||e[15]!==r?.xAxis?.title||e[16]!==r?.yAxis?.gridLines||e[17]!==r?.yAxis?.labels||e[18]!==r?.yAxis?.title||e[19]!==R||e[20]!==x||e[21]!==Se||e[22]!==q||e[23]!==o||e[24]!==$||e[25]!==M||e[26]!==I||e[27]!==Ct||e[28]!==G||e[29]!==b||e[30]!==Ne||e[31]!==te||e[32]!==d.bottom||e[33]!==d.left||e[34]!==d.right||e[35]!==d.top||e[36]!==ct||e[37]!==ut||e[38]!==Ge||e[39]!==k||e[40]!==A||e[41]!==P||e[42]!==w||e[43]!==Be||e[44]!==ze||e[45]!==N||e[46]!==ie||e[47]!==V||e[48]!==T||e[49]!==At||e[50]!==Ot||e[51]!==ne||e[52]!==Le||e[53]!==He||e[54]!==we||e[55]!==Ue||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ee||e[66]!==g||e[67]!==Ve||e[68]!==$e||e[69]!==U||e[70]!==oe||e[71]!==Me){const Q=o.map(_i),j=ee-d.left-d.right,y=I-d.top-d.bottom,E=o.filter(Zi).length!==o.length?ji.sqrt().domain([0,ct]).range([.25,T]).nice():void 0,Ke=Q.filter(Qi).length===0?Q:di.orderBy(Q.filter(Ki),"radius","desc"),c=li.linear().domain([k,ut]).range([0,j]).nice(),m=li.linear().domain([A,Ge]).range([y,0]).nice(),Ae=c.ticks(Be),Et=m.ticks(ze),qt=Ai.Delaunay.from(Ke.filter(Ji),t=>c(t.x),t=>m(t.y)).voronoi([0,0,j<0?0:j,y<0?0:y]),Dt=ii.linearRegression(o.filter(zi).map(t=>[c(t.x),m(t.y)])),wt=ii.linearRegressionLine(Dt);re=Xt.motion.svg,xe=`${ee}px`,fe=`${I}px`,me=`0 0 ${ee} ${I}`,W="ltr",de=xt,le=`translate(${d.left},${d.top})`;let Ie;e[90]!==a||e[91]!==Se||e[92]!==b||e[93]!==c||e[94]!==m?(Ie=n.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:Se,scaleX:c,scaleY:m,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=Se,e[92]=b,e[93]=c,e[94]=m,e[95]=Ie):Ie=e[95],ae=n.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:Ct,width:j,height:y,scaleX:c,scaleY:m,animate:a,isInView:b},"highlight-area"),Ie]});const pt=s?.yAxis?.gridLines,ht=s?.yAxis?.labels;let Te;e[96]!==pt||e[97]!==ht?(Te={gridLines:pt,labels:ht},e[96]=pt,e[97]=ht,e[98]=Te):Te=e[98];const gt=r?.yAxis?.gridLines,Qe=r?.yAxis?.labels;let l;e[99]!==gt||e[100]!==Qe?(l={gridLines:gt,labels:Qe},e[99]=gt,e[100]=Qe,e[101]=l):l=e[101];const Ze=m(A<0?0:A),It=m(A<0?0:A),_e=j+d.right,Tt=A<0?0:A;let O;e[102]!==V||e[103]!==Tt||e[104]!==oe||e[105]!==Me?(O=ni.numberFormattingFunction(Tt,"NA",V,oe,Me),e[102]=V,e[103]=Tt,e[104]=oe,e[105]=Me,e[106]=O):O=e[106];const Pt=m(A<0?0:A);let F;e[107]!==Pt?(F={x:0,y:Pt,dy:"0.33em",dx:-4},e[107]=Pt,e[108]=F):F=e[108];const u=r?.xAxis?.axis,D=r?.yAxis?.labels;let Oe;e[109]!==u||e[110]!==D?(Oe={axis:u,label:D},e[109]=u,e[110]=D,e[111]=Oe):Oe=e[111];const yt=s?.xAxis?.axis;let et;e[112]!==s?.yAxis?.labels?(et=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=et):et=e[113];let Ce;e[114]!==et?(Ce={textAnchor:"end",...et},e[114]=et,e[115]=Ce):Ce=e[115];let Pe;e[116]!==yt||e[117]!==Ce?(Pe={axis:yt,label:Ce},e[116]=yt,e[117]=Ce,e[118]=Pe):Pe=e[118];let Xe;e[119]!==Ze||e[120]!==It||e[121]!==_e||e[122]!==O||e[123]!==F||e[124]!==Oe||e[125]!==Pe?(Xe=n.jsxRuntimeExports.jsx(oi.Axis,{y1:Ze,y2:It,x1:0,x2:_e,label:O,labelPos:F,classNames:Oe,styles:Pe}),e[119]=Ze,e[120]=It,e[121]=_e,e[122]=O,e[123]=F,e[124]=Oe,e[125]=Pe,e[126]=Xe):Xe=e[126];const tt=0-te-15,it=y/2,nt=s?.yAxis?.title,vt=r?.yAxis?.title;let Ye;e[127]!==tt||e[128]!==it||e[129]!==nt||e[130]!==vt||e[131]!==U?(Ye=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:tt,y:it,style:nt,className:vt,text:U,rotate90:!0}),e[127]=tt,e[128]=it,e[129]=nt,e[130]=vt,e[131]=U,e[132]=Ye):Ye=e[132],ce=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Et.filter(Bi),y:Et.filter(Wi).map(t=>m(t)),x1:0,x2:j+d.right,styles:Te,classNames:l,suffix:Me,prefix:oe,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Xe,Ye]});const ot=s?.xAxis?.gridLines,bt=s?.xAxis?.labels;let st;e[133]!==ot||e[134]!==bt?(st={gridLines:ot,labels:bt},e[133]=ot,e[134]=bt,e[135]=st):st=e[135];const Re=r?.xAxis?.gridLines,ke=r?.xAxis?.labels;let Z;e[136]!==Re||e[137]!==ke?(Z={gridLines:Re,labels:ke},e[136]=Re,e[137]=ke,e[138]=Z):Z=e[138];const Ee=c(k<0?0:k),rt=c(k<0?0:k),h=k<0?0:k;let S;e[139]!==V||e[140]!==h||e[141]!==Ve||e[142]!==$e?(S=ni.numberFormattingFunction(h,"NA",V,Ve,$e),e[139]=V,e[140]=h,e[141]=Ve,e[142]=$e,e[143]=S):S=e[143];const Ut=c(k<0?0:k);let St;e[144]!==y||e[145]!==Ut?(St={x:Ut,y,dy:"1em",dx:0},e[144]=y,e[145]=Ut,e[146]=St):St=e[146];const Gt=r?.xAxis?.axis,Ht=r?.yAxis?.labels;let Lt;e[147]!==Gt||e[148]!==Ht?(Lt={axis:Gt,label:Ht},e[147]=Gt,e[148]=Ht,e[149]=Lt):Lt=e[149];const Wt=s?.xAxis?.axis;let Nt;e[150]!==s?.yAxis?.labels?(Nt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Nt):Nt=e[151];let $t;e[152]!==Nt?($t={textAnchor:"middle",...Nt},e[152]=Nt,e[153]=$t):$t=e[153];let Mt;e[154]!==Wt||e[155]!==$t?(Mt={axis:Wt,label:$t},e[154]=Wt,e[155]=$t,e[156]=Mt):Mt=e[156];let Yt;e[157]!==y||e[158]!==Ee||e[159]!==rt||e[160]!==S||e[161]!==St||e[162]!==Lt||e[163]!==Mt?(Yt=n.jsxRuntimeExports.jsx(oi.Axis,{x1:Ee,x2:rt,y1:0,y2:y,label:S,labelPos:St,classNames:Lt,styles:Mt}),e[157]=y,e[158]=Ee,e[159]=rt,e[160]=S,e[161]=St,e[162]=Lt,e[163]=Mt,e[164]=Yt):Yt=e[164];const Bt=j/2,zt=y+30,Jt=s?.xAxis?.title,Kt=r?.xAxis?.title;let Ft;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Ft=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Ft):Ft=e[170],ue=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:Ae.filter(Hi),x:Ae.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:st,classNames:Z,suffix:$e,prefix:Ve,labelType:"primary",showGridLines:!0,precision:V}),Yt,Ft]}),e[171]!==q?(X=q.filter(Ui).map(Fi),e[171]=q,e[172]=X):X=e[172],H=ai.AnimatePresence,B=Ke.filter(Yi).map((t,Fe)=>n.jsxRuntimeExports.jsx("path",{d:qt.renderCell(Ke.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))}},`tesselation_${t.label||Fe}`)),pe=Ke.filter(Xi).map((t,Fe)=>n.jsxRuntimeExports.jsxs(Xt.motion.g,{variants:{initial:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))},children:[n.jsxRuntimeExports.jsx(Xt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:o.filter(Pi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Ti).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray},whileInView:{r:E?E(t.radius||0):T,fill:o.filter(Ii).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Di).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),Ue&&!v.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(qi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter(Vi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):G.length!==0&&!v.checkIfNullOrUndefined(t.label)&&G.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(Mi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter($i).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Fe}`)),z=At.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>j*.75||He?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)),he=Ot.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineY,{text:t.text,color:t.color,y:m(t.value),x1:0,x2:j,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe));const Qt=We.map((t,Fe)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?m(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?m(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:He?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:He?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):j+d.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)});e[173]!==Qt?(Y=n.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=Y):Y=e[174],J=ne?n.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:j,y1:wt(0),y2:wt(j),graphHeight:y,graphWidth:j,className:r?.regLine,style:s?.regLine,color:typeof ne=="string"?ne:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=We,e[10]=r?.graphObjectValues,e[11]=r?.regLine,e[12]=r?.xAxis?.axis,e[13]=r?.xAxis?.gridLines,e[14]=r?.xAxis?.labels,e[15]=r?.xAxis?.title,e[16]=r?.yAxis?.gridLines,e[17]=r?.yAxis?.labels,e[18]=r?.yAxis?.title,e[19]=R,e[20]=x,e[21]=Se,e[22]=q,e[23]=o,e[24]=$,e[25]=M,e[26]=I,e[27]=Ct,e[28]=G,e[29]=b,e[30]=Ne,e[31]=te,e[32]=d.bottom,e[33]=d.left,e[34]=d.right,e[35]=d.top,e[36]=ct,e[37]=ut,e[38]=Ge,e[39]=k,e[40]=A,e[41]=P,e[42]=w,e[43]=Be,e[44]=ze,e[45]=N,e[46]=ie,e[47]=V,e[48]=T,e[49]=At,e[50]=Ot,e[51]=ne,e[52]=Le,e[53]=He,e[54]=we,e[55]=Ue,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ee,e[66]=g,e[67]=Ve,e[68]=$e,e[69]=U,e[70]=oe,e[71]=Me,e[72]=H,e[73]=re,e[74]=le,e[75]=ae,e[76]=ce,e[77]=ue,e[78]=X,e[79]=xe,e[80]=fe,e[81]=me,e[82]=W,e[83]=de,e[84]=B,e[85]=pe,e[86]=z,e[87]=he,e[88]=Y,e[89]=J}else H=e[72],re=e[73],le=e[74],ae=e[75],ce=e[76],ue=e[77],X=e[78],xe=e[79],fe=e[80],me=e[81],W=e[82],de=e[83],B=e[84],pe=e[85],z=e[86],he=e[87],Y=e[88],J=e[89];let ge;e[175]!==H||e[176]!==B||e[177]!==pe||e[178]!==z||e[179]!==he||e[180]!==Y||e[181]!==J?(ge=n.jsxRuntimeExports.jsxs(H,{children:[B,pe,z,he,Y,J]}),e[175]=H,e[176]=B,e[177]=pe,e[178]=z,e[179]=he,e[180]=Y,e[181]=J,e[182]=ge):ge=e[182];let ye;e[183]!==q?(ye=q.filter(Ni).map(Li),e[183]=q,e[184]=ye):ye=e[184];let ve;e[185]!==le||e[186]!==ae||e[187]!==ce||e[188]!==ue||e[189]!==X||e[190]!==ge||e[191]!==ye?(ve=n.jsxRuntimeExports.jsxs("g",{transform:le,children:[ae,ce,ue,X,ge,ye]}),e[185]=le,e[186]=ae,e[187]=ce,e[188]=ue,e[189]=X,e[190]=ge,e[191]=ye,e[192]=ve):ve=e[192];let be;e[193]!==re||e[194]!==xe||e[195]!==fe||e[196]!==me||e[197]!==W||e[198]!==de||e[199]!==ve?(be=n.jsxRuntimeExports.jsx(re,{width:xe,height:fe,viewBox:me,direction:W,ref:de,children:ve}),e[193]=re,e[194]=xe,e[195]=fe,e[196]=me,e[197]=W,e[198]=de,e[199]=ve,e[200]=be):be=e[200];let je;e[201]!==r?.tooltip||e[202]!==mt||e[203]!==p||e[204]!==w||e[205]!==s?.tooltip||e[206]!==at?(je=w&&at&&mt&&p?n.jsxRuntimeExports.jsx(pi.Tooltip,{data:w,body:at,xPos:mt,yPos:p,backgroundStyle:s?.tooltip,className:r?.tooltip}):null,e[201]=r?.tooltip,e[202]=mt,e[203]=p,e[204]=w,e[205]=s?.tooltip,e[206]=at,e[207]=je):je=e[207];let K;e[208]!==r?.modal||e[209]!==$||e[210]!==P?(K=$&&P!==void 0?n.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:P,setData:Je,className:r?.modal}):null,e[208]=r?.modal,e[209]=$,e[210]=P,e[211]=K):K=e[211];let De;return e[212]!==be||e[213]!==je||e[214]!==K?(De=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[be,je,K]}),e[212]=be,e[213]=je,e[214]=K,e[215]=De):De=e[215],De}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}function Di(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=n.compilerRuntimeExports.c(130),{data:o,graphTitle:ee,colors:I,sources:Ue,graphDescription:x,showLabels:R,height:T,width:g,footNote:U,colorDomain:te,colorLegendTitle:lt,radius:jt,xAxisTitle:Vt,yAxisTitle:at,padding:ie,backgroundColor:At,leftMargin:Ot,rightMargin:Ct,topMargin:we,bottomMargin:G,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:k,refXValues:Ge,refYValues:A,highlightAreaSettings:N,showColorScale:He,highlightedDataPoints:We,graphID:Se,maxRadiusValue:ne,maxXValue:Le,minXValue:$,maxYValue:Be,minYValue:ze,xSuffix:Ne,ySuffix:$e,xPrefix:Me,yPrefix:Ve,onSeriesMouseClick:oe,graphDownload:s,dataDownload:r,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:xt,theme:ft,regressionLine:b,ariaLabel:w,resetSelectionOnDoubleClick:qe,detailsOnClick:P,noOfXTicks:Je,noOfYTicks:mt,labelColor:se,styles:p,classNames:f,animate:Rt,dimmedOpacity:kt,precision:dt,customLayers:d,timeline:H}=i,re=R===void 0?!1:R,le=jt===void 0?5:jt,ae=Vt===void 0?"X Axis":Vt,ce=at===void 0?"Y Axis":at,ue=At===void 0?!1:At,X=Ot===void 0?0:Ot,xe=Ct===void 0?10:Ct,fe=we===void 0?20:we,me=G===void 0?50:G;let W;e[0]!==Ge?(W=Ge===void 0?[]:Ge,e[0]=Ge,e[1]=W):W=e[1];const de=W;let B;e[2]!==A?(B=A===void 0?[]:A,e[2]=A,e[3]=B):B=e[3];const pe=B;let z;e[4]!==N?(z=N===void 0?[]:N,e[4]=N,e[5]=z):z=e[5];const he=z,Y=He===void 0?!0:He;let J;e[6]!==We?(J=We===void 0?[]:We,e[6]=We,e[7]=J):J=e[7];const ge=J,ye=Ne===void 0?"":Ne,ve=$e===void 0?"":$e,be=Me===void 0?"":Me,je=Ve===void 0?"":Ve,K=s===void 0?!1:s,De=r===void 0?!1:r,Q=a===void 0?"en":a,j=M===void 0?!0:M,y=V===void 0?0:V;let E;e[8]!==q?(E=q===void 0?[]:q,e[8]=q,e[9]=E):E=e[9];const Ke=E;let c;e[10]!==xt?(c=xt===void 0?[]:xt,e[10]=xt,e[11]=c):c=e[11];const m=c,Ae=ft===void 0?"light":ft,Et=b===void 0?!1:b,qt=qe===void 0?!0:qe,Dt=Je===void 0?5:Je,wt=mt===void 0?5:mt,Ie=Rt===void 0?!1:Rt,pt=kt===void 0?.3:kt,ht=dt===void 0?2:dt;let Te;e[12]!==d?(Te=d===void 0?[]:d,e[12]=d,e[13]=Te):Te=e[13];const gt=Te;let Qe;e[14]!==H?(Qe=H===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:H,e[14]=H,e[15]=Qe):Qe=e[15];const l=Qe,[Ze,It]=L.useState(0),[_e,Tt]=L.useState(0),[O,Pt]=L.useState(l.autoplay);let F;if(e[16]!==o||e[17]!==l.dateFormat){let h;e[19]!==l.dateFormat?(h=S=>_t.parse(`${S.date}`,l.dateFormat||"yyyy",new Date).getTime(),e[19]=l.dateFormat,e[20]=h):h=e[20],F=[...new Set(o.filter(Ln).map(h))],F.sort(Sn),e[16]=o,e[17]=l.dateFormat,e[18]=F}else F=e[18];const u=F,[D,Oe]=L.useState(l.autoplay?0:u.length-1),[yt,et]=L.useState(void 0),Ce=L.useRef(null),Pe=L.useRef(null);let Xe,tt;e[21]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{const h=new ResizeObserver(S=>{It(S[0].target.clientWidth||620),Tt(S[0].target.clientHeight||480)});return Ce.current&&h.observe(Ce.current),()=>h.disconnect()},tt=[],e[21]=Xe,e[22]=tt):(Xe=e[21],tt=e[22]),L.useEffect(Xe,tt);let it,nt;e[23]!==O||e[24]!==l.speed||e[25]!==u?(it=()=>{const h=setInterval(()=>{Oe(S=>S<u.length-1?S+1:0)},(l.speed||2)*1e3);return O||clearInterval(h),()=>clearInterval(h)},nt=[u,O,l.speed],e[23]=O,e[24]=l.speed,e[25]=u,e[26]=it,e[27]=nt):(it=e[26],nt=e[27]),L.useEffect(it,nt);const vt=l.dateFormat||"yyyy";let Ye;e[28]!==D||e[29]!==vt||e[30]!==l.showOnlyActiveDate||e[31]!==u?(Ye=ei.getSliderMarks(u,D,l.showOnlyActiveDate,vt),e[28]=D,e[29]=vt,e[30]=l.showOnlyActiveDate,e[31]=u,e[32]=Ye):Ye=e[32];const ot=Ye,bt=f?.graphContainer,st=p?.graphContainer;let Re;e[33]!==f?.description||e[34]!==f?.title||e[35]!==o||e[36]!==De||e[37]!==x||e[38]!==K||e[39]!==ee||e[40]!==p?.description||e[41]!==p?.title||e[42]!==g?(Re=ee||x||K||De?n.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:f?.title,description:f?.description},graphTitle:ee,graphDescription:x,width:g,graphDownload:K?Pe:void 0,dataDownload:De?o.map(wn).filter(En).length>0?o.map(kn).filter(Rn):o.filter(Cn):null}):null,e[33]=f?.description,e[34]=f?.title,e[35]=o,e[36]=De,e[37]=x,e[38]=K,e[39]=ee,e[40]=p?.description,e[41]=p?.title,e[42]=g,e[43]=Re):Re=e[43];let ke;e[44]!==D||e[45]!==ot||e[46]!==O||e[47]!==l.enabled||e[48]!==u?(ke=l.enabled&&u.length>0&&ot?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Pt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?n.jsxRuntimeExports.jsx(ci.Pause,{}):n.jsxRuntimeExports.jsx(ci.Play,{})}),n.jsxRuntimeExports.jsx(ei.Nr,{min:u[0],max:u[u.length-1],marks:ot,step:null,defaultValue:u[u.length-1],value:u[D],onChangeComplete:h=>{Oe(u.indexOf(h))},onChange:h=>{Oe(u.indexOf(h))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=ot,e[46]=O,e[47]=l.enabled,e[48]=u,e[49]=ke):ke=e[49];let Z;e[50]!==Ie||e[51]!==Ke||e[52]!==me||e[53]!==f||e[54]!==te||e[55]!==lt||e[56]!==I||e[57]!==m||e[58]!==gt||e[59]!==o||e[60]!==P||e[61]!==pt||e[62]!==he||e[63]!==ge||e[64]!==D||e[65]!==se||e[66]!==Q||e[67]!==X||e[68]!==ne||e[69]!==Le||e[70]!==Be||e[71]!==$||e[72]!==ze||e[73]!==Dt||e[74]!==wt||e[75]!==oe||e[76]!==k||e[77]!==ht||e[78]!==le||e[79]!==de||e[80]!==pe||e[81]!==Et||e[82]!==qt||e[83]!==xe||e[84]!==yt||e[85]!==Y||e[86]!==re||e[87]!==j||e[88]!==p||e[89]!==_e||e[90]!==Ze||e[91]!==Ae||e[92]!==l.dateFormat||e[93]!==l.enabled||e[94]!==ct||e[95]!==fe||e[96]!==u||e[97]!==g||e[98]!==ae||e[99]!==be||e[100]!==ye||e[101]!==ce||e[102]!==je||e[103]!==ve?(Z=o.length===0?n.jsxRuntimeExports.jsx(Ei.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Y&&o.filter(On).length!==0?n.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:lt,colors:I||_.Colors[Ae].categoricalColors.colors,colorDomain:te||ui.uniqBy(o,"color",!0),setSelectedColor:et,showNAColor:j,className:f?.colorLegend}):null,n.jsxRuntimeExports.jsx(xi.GraphArea,{ref:Ce,children:Ze&&_e?n.jsxRuntimeExports.jsx(Si,{data:wi.ensureCompleteDataForScatterPlot(o,l.dateFormat||"yyyy").filter(h=>l.enabled?h.date===_t.format(new Date(u[D]),l.dateFormat||"yyyy"):h),width:Ze,height:_e,colorDomain:o.filter(An).length===0?[]:te||ui.uniqBy(o,"color",!0),colors:o.filter(jn).length===0?I?[I]:[_.Colors.primaryColors["blue-600"]]:I||_.Colors[Ae].categoricalColors.colors,xAxisTitle:ae,yAxisTitle:ce,refXValues:de,refYValues:pe,showLabels:re,radius:le,leftMargin:X,rightMargin:xe,topMargin:fe,bottomMargin:me,tooltip:ct,onSeriesMouseOver:k,highlightAreaSettings:he,highlightedDataPoints:o.filter(bn).length===0?[]:ge,selectedColor:yt,maxRadiusValue:v.checkIfNullOrUndefined(ne)?Math.max(...o.map(vn).filter(yn)):ne,maxXValue:v.checkIfNullOrUndefined(Le)?Math.max(...o.map(gn).filter(hn))>0?Math.max(...o.map(pn).filter(dn)):0:Le,minXValue:v.checkIfNullOrUndefined($)?Math.min(...o.map(mn).filter(fn))>0?0:Math.min(...o.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Be)?Math.max(...o.map(cn).filter(an))>0?Math.max(...o.map(ln).filter(rn)):0:Be,minYValue:v.checkIfNullOrUndefined(ze)?Math.min(...o.map(sn).filter(on))>0?0:Math.min(...o.map(nn).filter(tn)):ze,onSeriesMouseClick:oe,rtl:Q==="he"||Q==="ar",annotations:Ke,customHighlightAreaSettings:m,regressionLine:Et,resetSelectionOnDoubleClick:qt,detailsOnClick:P,noOfXTicks:Dt,noOfYTicks:wt,labelColor:se,xSuffix:ye,ySuffix:ve,xPrefix:be,yPrefix:je,styles:p,classNames:f,animate:Ie===!0?{duration:.5,once:!0,amount:.5}:Ie||{duration:0,once:!0,amount:0},dimmedOpacity:pt,precision:ht,customLayers:gt}):null})]}),e[50]=Ie,e[51]=Ke,e[52]=me,e[53]=f,e[54]=te,e[55]=lt,e[56]=I,e[57]=m,e[58]=gt,e[59]=o,e[60]=P,e[61]=pt,e[62]=he,e[63]=ge,e[64]=D,e[65]=se,e[66]=Q,e[67]=X,e[68]=ne,e[69]=Le,e[70]=Be,e[71]=$,e[72]=ze,e[73]=Dt,e[74]=wt,e[75]=oe,e[76]=k,e[77]=ht,e[78]=le,e[79]=de,e[80]=pe,e[81]=Et,e[82]=qt,e[83]=xe,e[84]=yt,e[85]=Y,e[86]=re,e[87]=j,e[88]=p,e[89]=_e,e[90]=Ze,e[91]=Ae,e[92]=l.dateFormat,e[93]=l.enabled,e[94]=ct,e[95]=fe,e[96]=u,e[97]=g,e[98]=ae,e[99]=be,e[100]=ye,e[101]=ce,e[102]=je,e[103]=ve,e[104]=Z):Z=e[104];let Ee;e[105]!==f?.footnote||e[106]!==f?.source||e[107]!==U||e[108]!==Ue||e[109]!==p?.footnote||e[110]!==p?.source||e[111]!==g?(Ee=Ue||U?n.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:Ue,footNote:U,width:g}):null,e[105]=f?.footnote,e[106]=f?.source,e[107]=U,e[108]=Ue,e[109]=p?.footnote,e[110]=p?.source,e[111]=g,e[112]=Ee):Ee=e[112];let rt;return e[113]!==w||e[114]!==ue||e[115]!==Se||e[116]!==T||e[117]!==Q||e[118]!==y||e[119]!==ie||e[120]!==ut||e[121]!==bt||e[122]!==st||e[123]!==Re||e[124]!==ke||e[125]!==Z||e[126]!==Ee||e[127]!==Ae||e[128]!==g?(rt=n.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:bt,style:st,id:Se,ref:Pe,"aria-label":w,backgroundColor:ue,theme:Ae,language:Q,minHeight:y,width:g,height:T,relativeHeight:ut,padding:ie,children:[Re,ke,Z,Ee]}),e[113]=w,e[114]=ue,e[115]=Se,e[116]=T,e[117]=Q,e[118]=y,e[119]=ie,e[120]=ut,e[121]=bt,e[122]=st,e[123]=Re,e[124]=ke,e[125]=Z,e[126]=Ee,e[127]=Ae,e[128]=g,e[129]=rt):rt=e[129],rt}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function rn(i){return i!=null}function ln(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function jn(i){return i.color}function An(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function En(i){return i!==void 0}function wn(i){return i.data}function Sn(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),_t=require("./parse-hMnG_lRV.cjs"),L=require("react"),ei=require("./getSliderMarks-BmADcPQt.cjs"),ti=require("./index-DQA8q5sC.cjs"),di=require("./index-Cno4Q0YE.cjs"),ii=require("./simple-statistics-xm8c0LQQ.cjs"),pi=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),_=require("./Colors.cjs"),ni=require("./numberFormattingFunction-02t-wJta.cjs"),Zt=require("./customArea-CMF5g-C3.cjs"),oi=require("./Axis-DxRV2yMi.cjs"),si=require("./AxisTitle-sS5bLLR7.cjs"),hi=require("./XTicksAndGridLines-B6CELS7q.cjs"),ri=require("./ReferenceLine-BH0qdf4R.cjs"),gi=require("./RegressionLine-BOTTNSrr.cjs"),yi=require("./YTicksAndGridLines-4pxTRlRK.cjs"),vi=require("./index-B_sAFsEV.cjs"),bi=require("./DetailsModal-BN0HDFlV.cjs"),ji=require("./pow-DgrUorRi.cjs"),li=require("./linear-BwPAspcq.cjs"),Ai=require("./delaunay-rcy0HhZi.cjs"),Oi=require("./use-in-view-QcfiW0w3.cjs"),Xt=require("./proxy-BxvUI_9l.cjs"),ai=require("./index-DG2bgAva.cjs"),Ci=require("./GraphFooter.cjs"),Ri=require("./GraphHeader.cjs"),ki=require("./ColorLegendWithMouseOver.cjs"),Ei=require("./EmptyState-sAEZ_5rU.cjs"),ci=require("./index-DRXx7m-C.cjs"),wi=require("./ensureCompleteData-pZ9QO6kB.cjs"),ui=require("./uniqBy-O05lp2S5.cjs"),xi=require("./GraphContainer-d8A46BK2.cjs");function Si(i){const e=n.compilerRuntimeExports.c(216),{data:o,width:ee,height:I,showLabels:Ue,colors:x,colorDomain:R,radius:T,xAxisTitle:g,yAxisTitle:U,leftMargin:te,rightMargin:lt,topMargin:jt,bottomMargin:Vt,tooltip:at,onSeriesMouseOver:ie,refXValues:At,refYValues:Ot,highlightAreaSettings:Ct,selectedColor:we,highlightedDataPoints:G,maxRadiusValue:ct,maxXValue:ut,minXValue:k,maxYValue:Ge,minYValue:A,onSeriesMouseClick:N,rtl:He,annotations:We,customHighlightAreaSettings:Se,regressionLine:ne,resetSelectionOnDoubleClick:Le,detailsOnClick:$,noOfXTicks:Be,noOfYTicks:ze,labelColor:Ne,xSuffix:$e,ySuffix:Me,xPrefix:Ve,yPrefix:oe,styles:s,classNames:r,animate:a,dimmedOpacity:M,precision:V,customLayers:q}=i,xt=L.useRef(null);let ft;e[0]!==a.amount||e[1]!==a.once?(ft={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=ft):ft=e[2];const b=Oi.useInView(xt,ft),[w,qe]=L.useState(void 0),[P,Je]=L.useState(void 0),[mt,se]=L.useState(void 0),[p,f]=L.useState(void 0),Rt=g?Vt+50:Vt,kt=U?te+30:te;let dt;e[3]!==lt||e[4]!==Rt||e[5]!==kt||e[6]!==jt?(dt={top:jt,bottom:Rt,left:kt,right:lt},e[3]=lt,e[4]=Rt,e[5]=kt,e[6]=jt,e[7]=dt):dt=e[7];const d=dt;let H,re,le,ae,ce,ue,X,xe,fe,me,W,de,B,pe,z,he,Y,J;if(e[8]!==a||e[9]!==We||e[10]!==r?.graphObjectValues||e[11]!==r?.regLine||e[12]!==r?.xAxis?.axis||e[13]!==r?.xAxis?.gridLines||e[14]!==r?.xAxis?.labels||e[15]!==r?.xAxis?.title||e[16]!==r?.yAxis?.gridLines||e[17]!==r?.yAxis?.labels||e[18]!==r?.yAxis?.title||e[19]!==R||e[20]!==x||e[21]!==Se||e[22]!==q||e[23]!==o||e[24]!==$||e[25]!==M||e[26]!==I||e[27]!==Ct||e[28]!==G||e[29]!==b||e[30]!==Ne||e[31]!==te||e[32]!==d.bottom||e[33]!==d.left||e[34]!==d.right||e[35]!==d.top||e[36]!==ct||e[37]!==ut||e[38]!==Ge||e[39]!==k||e[40]!==A||e[41]!==P||e[42]!==w||e[43]!==Be||e[44]!==ze||e[45]!==N||e[46]!==ie||e[47]!==V||e[48]!==T||e[49]!==At||e[50]!==Ot||e[51]!==ne||e[52]!==Le||e[53]!==He||e[54]!==we||e[55]!==Ue||e[56]!==s?.graphObjectValues||e[57]!==s?.regLine||e[58]!==s?.xAxis?.axis||e[59]!==s?.xAxis?.gridLines||e[60]!==s?.xAxis?.labels||e[61]!==s?.xAxis?.title||e[62]!==s?.yAxis?.gridLines||e[63]!==s?.yAxis?.labels||e[64]!==s?.yAxis?.title||e[65]!==ee||e[66]!==g||e[67]!==Ve||e[68]!==$e||e[69]!==U||e[70]!==oe||e[71]!==Me){const Q=o.map(_i),j=ee-d.left-d.right,y=I-d.top-d.bottom,E=o.filter(Zi).length!==o.length?ji.sqrt().domain([0,ct]).range([.25,T]).nice():void 0,Ke=Q.filter(Qi).length===0?Q:di.orderBy(Q.filter(Ki),"radius","desc"),c=li.linear().domain([k,ut]).range([0,j]).nice(),m=li.linear().domain([A,Ge]).range([y,0]).nice(),Ae=c.ticks(Be),Et=m.ticks(ze),qt=Ai.Delaunay.from(Ke.filter(Ji),t=>c(t.x),t=>m(t.y)).voronoi([0,0,j<0?0:j,y<0?0:y]),Dt=ii.linearRegression(o.filter(zi).map(t=>[c(t.x),m(t.y)])),wt=ii.linearRegressionLine(Dt);re=Xt.motion.svg,xe=`${ee}px`,fe=`${I}px`,me=`0 0 ${ee} ${I}`,W="ltr",de=xt,le=`translate(${d.left},${d.top})`;let Ie;e[90]!==a||e[91]!==Se||e[92]!==b||e[93]!==c||e[94]!==m?(Ie=n.jsxRuntimeExports.jsx(Zt.CustomArea,{areaSettings:Se,scaleX:c,scaleY:m,animate:a,isInView:b},"custom-area"),e[90]=a,e[91]=Se,e[92]=b,e[93]=c,e[94]=m,e[95]=Ie):Ie=e[95],ae=n.jsxRuntimeExports.jsxs(ai.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(vi.HighlightAreaForScatterPlot,{areaSettings:Ct,width:j,height:y,scaleX:c,scaleY:m,animate:a,isInView:b},"highlight-area"),Ie]});const pt=s?.yAxis?.gridLines,ht=s?.yAxis?.labels;let Te;e[96]!==pt||e[97]!==ht?(Te={gridLines:pt,labels:ht},e[96]=pt,e[97]=ht,e[98]=Te):Te=e[98];const gt=r?.yAxis?.gridLines,Qe=r?.yAxis?.labels;let l;e[99]!==gt||e[100]!==Qe?(l={gridLines:gt,labels:Qe},e[99]=gt,e[100]=Qe,e[101]=l):l=e[101];const Ze=m(A<0?0:A),It=m(A<0?0:A),_e=j+d.right,Tt=A<0?0:A;let O;e[102]!==V||e[103]!==Tt||e[104]!==oe||e[105]!==Me?(O=ni.numberFormattingFunction(Tt,"NA",V,oe,Me),e[102]=V,e[103]=Tt,e[104]=oe,e[105]=Me,e[106]=O):O=e[106];const Pt=m(A<0?0:A);let F;e[107]!==Pt?(F={x:0,y:Pt,dy:"0.33em",dx:-4},e[107]=Pt,e[108]=F):F=e[108];const u=r?.xAxis?.axis,D=r?.yAxis?.labels;let Oe;e[109]!==u||e[110]!==D?(Oe={axis:u,label:D},e[109]=u,e[110]=D,e[111]=Oe):Oe=e[111];const yt=s?.xAxis?.axis;let et;e[112]!==s?.yAxis?.labels?(et=s?.yAxis?.labels||{},e[112]=s?.yAxis?.labels,e[113]=et):et=e[113];let Ce;e[114]!==et?(Ce={textAnchor:"end",...et},e[114]=et,e[115]=Ce):Ce=e[115];let Pe;e[116]!==yt||e[117]!==Ce?(Pe={axis:yt,label:Ce},e[116]=yt,e[117]=Ce,e[118]=Pe):Pe=e[118];let Xe;e[119]!==Ze||e[120]!==It||e[121]!==_e||e[122]!==O||e[123]!==F||e[124]!==Oe||e[125]!==Pe?(Xe=n.jsxRuntimeExports.jsx(oi.Axis,{y1:Ze,y2:It,x1:0,x2:_e,label:O,labelPos:F,classNames:Oe,styles:Pe}),e[119]=Ze,e[120]=It,e[121]=_e,e[122]=O,e[123]=F,e[124]=Oe,e[125]=Pe,e[126]=Xe):Xe=e[126];const tt=0-te-15,it=y/2,nt=s?.yAxis?.title,vt=r?.yAxis?.title;let Ye;e[127]!==tt||e[128]!==it||e[129]!==nt||e[130]!==vt||e[131]!==U?(Ye=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:tt,y:it,style:nt,className:vt,text:U,rotate90:!0}),e[127]=tt,e[128]=it,e[129]=nt,e[130]=vt,e[131]=U,e[132]=Ye):Ye=e[132],ce=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(yi.YTicksAndGridLines,{values:Et.filter(Bi),y:Et.filter(Wi).map(t=>m(t)),x1:0,x2:j+d.right,styles:Te,classNames:l,suffix:Me,prefix:oe,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:V}),Xe,Ye]});const ot=s?.xAxis?.gridLines,bt=s?.xAxis?.labels;let st;e[133]!==ot||e[134]!==bt?(st={gridLines:ot,labels:bt},e[133]=ot,e[134]=bt,e[135]=st):st=e[135];const Re=r?.xAxis?.gridLines,ke=r?.xAxis?.labels;let Z;e[136]!==Re||e[137]!==ke?(Z={gridLines:Re,labels:ke},e[136]=Re,e[137]=ke,e[138]=Z):Z=e[138];const Ee=c(k<0?0:k),rt=c(k<0?0:k),h=k<0?0:k;let S;e[139]!==V||e[140]!==h||e[141]!==Ve||e[142]!==$e?(S=ni.numberFormattingFunction(h,"NA",V,Ve,$e),e[139]=V,e[140]=h,e[141]=Ve,e[142]=$e,e[143]=S):S=e[143];const Ut=c(k<0?0:k);let St;e[144]!==y||e[145]!==Ut?(St={x:Ut,y,dy:"1em",dx:0},e[144]=y,e[145]=Ut,e[146]=St):St=e[146];const Gt=r?.xAxis?.axis,Ht=r?.yAxis?.labels;let Lt;e[147]!==Gt||e[148]!==Ht?(Lt={axis:Gt,label:Ht},e[147]=Gt,e[148]=Ht,e[149]=Lt):Lt=e[149];const Wt=s?.xAxis?.axis;let Nt;e[150]!==s?.yAxis?.labels?(Nt=s?.yAxis?.labels||{},e[150]=s?.yAxis?.labels,e[151]=Nt):Nt=e[151];let $t;e[152]!==Nt?($t={textAnchor:"middle",...Nt},e[152]=Nt,e[153]=$t):$t=e[153];let Mt;e[154]!==Wt||e[155]!==$t?(Mt={axis:Wt,label:$t},e[154]=Wt,e[155]=$t,e[156]=Mt):Mt=e[156];let Yt;e[157]!==y||e[158]!==Ee||e[159]!==rt||e[160]!==S||e[161]!==St||e[162]!==Lt||e[163]!==Mt?(Yt=n.jsxRuntimeExports.jsx(oi.Axis,{x1:Ee,x2:rt,y1:0,y2:y,label:S,labelPos:St,classNames:Lt,styles:Mt}),e[157]=y,e[158]=Ee,e[159]=rt,e[160]=S,e[161]=St,e[162]=Lt,e[163]=Mt,e[164]=Yt):Yt=e[164];const Bt=j/2,zt=y+30,Jt=s?.xAxis?.title,Kt=r?.xAxis?.title;let Ft;e[165]!==Bt||e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==g?(Ft=n.jsxRuntimeExports.jsx(si.AxisTitle,{x:Bt,y:zt,style:Jt,className:Kt,text:g}),e[165]=Bt,e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=g,e[170]=Ft):Ft=e[170],ue=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(hi.XTicksAndGridLines,{values:Ae.filter(Hi),x:Ae.filter(Gi).map(t=>c(t)),y1:0,y2:y,styles:st,classNames:Z,suffix:$e,prefix:Ve,labelType:"primary",showGridLines:!0,precision:V}),Yt,Ft]}),e[171]!==q?(X=q.filter(Ui).map(Fi),e[171]=q,e[172]=X):X=e[172],H=ai.AnimatePresence,B=Ke.filter(Yi).map((t,Fe)=>n.jsxRuntimeExports.jsx("path",{d:qt.renderCell(Ke.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))}},`tesselation_${t.label||Fe}`)),pe=Ke.filter(Xi).map((t,Fe)=>n.jsxRuntimeExports.jsxs(Xt.motion.g,{variants:{initial:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:c(t.x),y:m(t.y),opacity:we?t.color&&x[R.indexOf(`${t.color}`)]===we?1:M:w?w.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{qe(t),f(C.clientY),se(C.clientX),ie?.(t)},onMouseMove:C=>{qe(t),f(C.clientY),se(C.clientX)},onMouseLeave:()=>{qe(void 0),se(void 0),f(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ti.isEqual(P,t)&&Le?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))},children:[n.jsxRuntimeExports.jsx(Xt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:o.filter(Pi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Ti).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray},whileInView:{r:E?E(t.radius||0):T,fill:o.filter(Ii).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,stroke:o.filter(Di).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),Ue&&!v.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(qi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter(Vi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):G.length!==0&&!v.checkIfNullOrUndefined(t.label)&&G.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Xt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",r?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:E?E(t.radius||0):T,opacity:0,fill:Ne||(o.filter(Mi).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray)},whileInView:{x:E?E(t.radius||0):T,opacity:1,fill:Ne||(o.filter($i).length===0?x[0]:t.color?x[R.indexOf(`${t.color}`)]:_.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Fe}`)),z=At.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineX,{text:t.text,color:t.color,x:c(t.value),y1:0,y2:y,textSide:c(t.value)>j*.75||He?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)),he=Ot.map((t,Fe)=>n.jsxRuntimeExports.jsx(ri.RefLineY,{text:t.text,color:t.color,y:m(t.value),x1:0,x2:j,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe));const Qt=We.map((t,Fe)=>{const C=Zt.getLineEndPoint({x:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?c(t.xCoordinate):0,y:t.yCoordinate?m(t.yCoordinate):0},v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),fi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?m(t.yCoordinate):0,cx:t.xCoordinate?c(t.xCoordinate):0,circleRadius:v.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,mi={y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:He?0:t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:He?t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):j+d.right-(t.xCoordinate?c(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(Zt.Annotation,{color:t.color,connectorsSettings:fi,labelSettings:mi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},Fe)});e[173]!==Qt?(Y=n.jsxRuntimeExports.jsx("g",{children:Qt}),e[173]=Qt,e[174]=Y):Y=e[174],J=ne?n.jsxRuntimeExports.jsx(gi.RegressionLine,{x1:0,x2:j,y1:wt(0),y2:wt(j),graphHeight:y,graphWidth:j,className:r?.regLine,style:s?.regLine,color:typeof ne=="string"?ne:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=We,e[10]=r?.graphObjectValues,e[11]=r?.regLine,e[12]=r?.xAxis?.axis,e[13]=r?.xAxis?.gridLines,e[14]=r?.xAxis?.labels,e[15]=r?.xAxis?.title,e[16]=r?.yAxis?.gridLines,e[17]=r?.yAxis?.labels,e[18]=r?.yAxis?.title,e[19]=R,e[20]=x,e[21]=Se,e[22]=q,e[23]=o,e[24]=$,e[25]=M,e[26]=I,e[27]=Ct,e[28]=G,e[29]=b,e[30]=Ne,e[31]=te,e[32]=d.bottom,e[33]=d.left,e[34]=d.right,e[35]=d.top,e[36]=ct,e[37]=ut,e[38]=Ge,e[39]=k,e[40]=A,e[41]=P,e[42]=w,e[43]=Be,e[44]=ze,e[45]=N,e[46]=ie,e[47]=V,e[48]=T,e[49]=At,e[50]=Ot,e[51]=ne,e[52]=Le,e[53]=He,e[54]=we,e[55]=Ue,e[56]=s?.graphObjectValues,e[57]=s?.regLine,e[58]=s?.xAxis?.axis,e[59]=s?.xAxis?.gridLines,e[60]=s?.xAxis?.labels,e[61]=s?.xAxis?.title,e[62]=s?.yAxis?.gridLines,e[63]=s?.yAxis?.labels,e[64]=s?.yAxis?.title,e[65]=ee,e[66]=g,e[67]=Ve,e[68]=$e,e[69]=U,e[70]=oe,e[71]=Me,e[72]=H,e[73]=re,e[74]=le,e[75]=ae,e[76]=ce,e[77]=ue,e[78]=X,e[79]=xe,e[80]=fe,e[81]=me,e[82]=W,e[83]=de,e[84]=B,e[85]=pe,e[86]=z,e[87]=he,e[88]=Y,e[89]=J}else H=e[72],re=e[73],le=e[74],ae=e[75],ce=e[76],ue=e[77],X=e[78],xe=e[79],fe=e[80],me=e[81],W=e[82],de=e[83],B=e[84],pe=e[85],z=e[86],he=e[87],Y=e[88],J=e[89];let ge;e[175]!==H||e[176]!==B||e[177]!==pe||e[178]!==z||e[179]!==he||e[180]!==Y||e[181]!==J?(ge=n.jsxRuntimeExports.jsxs(H,{children:[B,pe,z,he,Y,J]}),e[175]=H,e[176]=B,e[177]=pe,e[178]=z,e[179]=he,e[180]=Y,e[181]=J,e[182]=ge):ge=e[182];let ye;e[183]!==q?(ye=q.filter(Ni).map(Li),e[183]=q,e[184]=ye):ye=e[184];let ve;e[185]!==le||e[186]!==ae||e[187]!==ce||e[188]!==ue||e[189]!==X||e[190]!==ge||e[191]!==ye?(ve=n.jsxRuntimeExports.jsxs("g",{transform:le,children:[ae,ce,ue,X,ge,ye]}),e[185]=le,e[186]=ae,e[187]=ce,e[188]=ue,e[189]=X,e[190]=ge,e[191]=ye,e[192]=ve):ve=e[192];let be;e[193]!==re||e[194]!==xe||e[195]!==fe||e[196]!==me||e[197]!==W||e[198]!==de||e[199]!==ve?(be=n.jsxRuntimeExports.jsx(re,{width:xe,height:fe,viewBox:me,direction:W,ref:de,children:ve}),e[193]=re,e[194]=xe,e[195]=fe,e[196]=me,e[197]=W,e[198]=de,e[199]=ve,e[200]=be):be=e[200];let je;e[201]!==r?.tooltip||e[202]!==mt||e[203]!==p||e[204]!==w||e[205]!==s?.tooltip||e[206]!==at?(je=w&&at&&mt&&p?n.jsxRuntimeExports.jsx(pi.Tooltip,{data:w,body:at,xPos:mt,yPos:p,backgroundStyle:s?.tooltip,className:r?.tooltip}):null,e[201]=r?.tooltip,e[202]=mt,e[203]=p,e[204]=w,e[205]=s?.tooltip,e[206]=at,e[207]=je):je=e[207];let K;e[208]!==r?.modal||e[209]!==$||e[210]!==P?(K=$&&P!==void 0?n.jsxRuntimeExports.jsx(bi.DetailsModal,{body:$,data:P,setData:Je,className:r?.modal}):null,e[208]=r?.modal,e[209]=$,e[210]=P,e[211]=K):K=e[211];let De;return e[212]!==be||e[213]!==je||e[214]!==K?(De=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[be,je,K]}),e[212]=be,e[213]=je,e[214]=K,e[215]=De):De=e[215],De}function Li(i){return i.layer}function Ni(i){return i.position==="after"}function $i(i){return i.color}function Mi(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}function Di(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Yi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Fi(i){return i.layer}function Ui(i){return i.position==="before"}function Gi(i){return i!==0}function Hi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ji(i){return!v.checkIfNullOrUndefined(i.x)&&!v.checkIfNullOrUndefined(i.y)}function Ki(i){return!v.checkIfNullOrUndefined(i.radius)}function Qi(i){return!v.checkIfNullOrUndefined(i.radius)}function Zi(i){return i.radius===void 0||i.radius===null}function _i(i,e){return{...i,id:`${e}`}}function en(i){const e=n.compilerRuntimeExports.c(130),{data:o,graphTitle:ee,colors:I,sources:Ue,graphDescription:x,showLabels:R,height:T,width:g,footNote:U,colorDomain:te,colorLegendTitle:lt,radius:jt,xAxisTitle:Vt,yAxisTitle:at,padding:ie,backgroundColor:At,leftMargin:Ot,rightMargin:Ct,topMargin:we,bottomMargin:G,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:k,refXValues:Ge,refYValues:A,highlightAreaSettings:N,showColorScale:He,highlightedDataPoints:We,graphID:Se,maxRadiusValue:ne,maxXValue:Le,minXValue:$,maxYValue:Be,minYValue:ze,xSuffix:Ne,ySuffix:$e,xPrefix:Me,yPrefix:Ve,onSeriesMouseClick:oe,graphDownload:s,dataDownload:r,language:a,showNAColor:M,minHeight:V,annotations:q,customHighlightAreaSettings:xt,theme:ft,regressionLine:b,ariaLabel:w,resetSelectionOnDoubleClick:qe,detailsOnClick:P,noOfXTicks:Je,noOfYTicks:mt,labelColor:se,styles:p,classNames:f,animate:Rt,dimmedOpacity:kt,precision:dt,customLayers:d,timeline:H}=i,re=R===void 0?!1:R,le=jt===void 0?5:jt,ae=Vt===void 0?"X Axis":Vt,ce=at===void 0?"Y Axis":at,ue=At===void 0?!1:At,X=Ot===void 0?0:Ot,xe=Ct===void 0?10:Ct,fe=we===void 0?20:we,me=G===void 0?50:G;let W;e[0]!==Ge?(W=Ge===void 0?[]:Ge,e[0]=Ge,e[1]=W):W=e[1];const de=W;let B;e[2]!==A?(B=A===void 0?[]:A,e[2]=A,e[3]=B):B=e[3];const pe=B;let z;e[4]!==N?(z=N===void 0?[]:N,e[4]=N,e[5]=z):z=e[5];const he=z,Y=He===void 0?!0:He;let J;e[6]!==We?(J=We===void 0?[]:We,e[6]=We,e[7]=J):J=e[7];const ge=J,ye=Ne===void 0?"":Ne,ve=$e===void 0?"":$e,be=Me===void 0?"":Me,je=Ve===void 0?"":Ve,K=s===void 0?!1:s,De=r===void 0?!1:r,Q=a===void 0?"en":a,j=M===void 0?!0:M,y=V===void 0?0:V;let E;e[8]!==q?(E=q===void 0?[]:q,e[8]=q,e[9]=E):E=e[9];const Ke=E;let c;e[10]!==xt?(c=xt===void 0?[]:xt,e[10]=xt,e[11]=c):c=e[11];const m=c,Ae=ft===void 0?"light":ft,Et=b===void 0?!1:b,qt=qe===void 0?!0:qe,Dt=Je===void 0?5:Je,wt=mt===void 0?5:mt,Ie=Rt===void 0?!1:Rt,pt=kt===void 0?.3:kt,ht=dt===void 0?2:dt;let Te;e[12]!==d?(Te=d===void 0?[]:d,e[12]=d,e[13]=Te):Te=e[13];const gt=Te;let Qe;e[14]!==H?(Qe=H===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:H,e[14]=H,e[15]=Qe):Qe=e[15];const l=Qe,[Ze,It]=L.useState(0),[_e,Tt]=L.useState(0),[O,Pt]=L.useState(l.autoplay);let F;if(e[16]!==o||e[17]!==l.dateFormat){let h;e[19]!==l.dateFormat?(h=S=>_t.parse(`${S.date}`,l.dateFormat||"yyyy",new Date).getTime(),e[19]=l.dateFormat,e[20]=h):h=e[20],F=[...new Set(o.filter(Ln).map(h))],F.sort(Sn),e[16]=o,e[17]=l.dateFormat,e[18]=F}else F=e[18];const u=F,[D,Oe]=L.useState(l.autoplay?0:u.length-1),[yt,et]=L.useState(void 0),Ce=L.useRef(null),Pe=L.useRef(null);let Xe,tt;e[21]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{const h=new ResizeObserver(S=>{It(S[0].target.clientWidth||620),Tt(S[0].target.clientHeight||480)});return Ce.current&&h.observe(Ce.current),()=>h.disconnect()},tt=[],e[21]=Xe,e[22]=tt):(Xe=e[21],tt=e[22]),L.useEffect(Xe,tt);let it,nt;e[23]!==O||e[24]!==l.speed||e[25]!==u?(it=()=>{const h=setInterval(()=>{Oe(S=>S<u.length-1?S+1:0)},(l.speed||2)*1e3);return O||clearInterval(h),()=>clearInterval(h)},nt=[u,O,l.speed],e[23]=O,e[24]=l.speed,e[25]=u,e[26]=it,e[27]=nt):(it=e[26],nt=e[27]),L.useEffect(it,nt);const vt=l.dateFormat||"yyyy";let Ye;e[28]!==D||e[29]!==vt||e[30]!==l.showOnlyActiveDate||e[31]!==u?(Ye=ei.getSliderMarks(u,D,l.showOnlyActiveDate,vt),e[28]=D,e[29]=vt,e[30]=l.showOnlyActiveDate,e[31]=u,e[32]=Ye):Ye=e[32];const ot=Ye,bt=f?.graphContainer,st=p?.graphContainer;let Re;e[33]!==f?.description||e[34]!==f?.title||e[35]!==o||e[36]!==De||e[37]!==x||e[38]!==K||e[39]!==ee||e[40]!==p?.description||e[41]!==p?.title||e[42]!==g?(Re=ee||x||K||De?n.jsxRuntimeExports.jsx(Ri.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:f?.title,description:f?.description},graphTitle:ee,graphDescription:x,width:g,graphDownload:K?Pe:void 0,dataDownload:De?o.map(wn).filter(En).length>0?o.map(kn).filter(Rn):o.filter(Cn):null}):null,e[33]=f?.description,e[34]=f?.title,e[35]=o,e[36]=De,e[37]=x,e[38]=K,e[39]=ee,e[40]=p?.description,e[41]=p?.title,e[42]=g,e[43]=Re):Re=e[43];let ke;e[44]!==D||e[45]!==ot||e[46]!==O||e[47]!==l.enabled||e[48]!==u?(ke=l.enabled&&u.length>0&&ot?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Pt(!O)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":O?"Click to pause animation":"Click to play animation",children:O?n.jsxRuntimeExports.jsx(ci.Pause,{}):n.jsxRuntimeExports.jsx(ci.Play,{})}),n.jsxRuntimeExports.jsx(ei.Nr,{min:u[0],max:u[u.length-1],marks:ot,step:null,defaultValue:u[u.length-1],value:u[D],onChangeComplete:h=>{Oe(u.indexOf(h))},onChange:h=>{Oe(u.indexOf(h))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=D,e[45]=ot,e[46]=O,e[47]=l.enabled,e[48]=u,e[49]=ke):ke=e[49];let Z;e[50]!==Ie||e[51]!==Ke||e[52]!==me||e[53]!==f||e[54]!==te||e[55]!==lt||e[56]!==I||e[57]!==m||e[58]!==gt||e[59]!==o||e[60]!==P||e[61]!==pt||e[62]!==he||e[63]!==ge||e[64]!==D||e[65]!==se||e[66]!==Q||e[67]!==X||e[68]!==ne||e[69]!==Le||e[70]!==Be||e[71]!==$||e[72]!==ze||e[73]!==Dt||e[74]!==wt||e[75]!==oe||e[76]!==k||e[77]!==ht||e[78]!==le||e[79]!==de||e[80]!==pe||e[81]!==Et||e[82]!==qt||e[83]!==xe||e[84]!==yt||e[85]!==Y||e[86]!==re||e[87]!==j||e[88]!==p||e[89]!==_e||e[90]!==Ze||e[91]!==Ae||e[92]!==l.dateFormat||e[93]!==l.enabled||e[94]!==ct||e[95]!==fe||e[96]!==u||e[97]!==g||e[98]!==ae||e[99]!==be||e[100]!==ye||e[101]!==ce||e[102]!==je||e[103]!==ve?(Z=o.length===0?n.jsxRuntimeExports.jsx(Ei.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Y&&o.filter(On).length!==0?n.jsxRuntimeExports.jsx(ki.ColorLegendWithMouseOver,{width:g,colorLegendTitle:lt,colors:I||_.Colors[Ae].categoricalColors.colors,colorDomain:te||ui.uniqBy(o,"color",!0),setSelectedColor:et,showNAColor:j,className:f?.colorLegend}):null,n.jsxRuntimeExports.jsx(xi.GraphArea,{ref:Ce,children:Ze&&_e?n.jsxRuntimeExports.jsx(Si,{data:wi.ensureCompleteDataForScatterPlot(o,l.dateFormat||"yyyy").filter(h=>l.enabled?h.date===_t.format(new Date(u[D]),l.dateFormat||"yyyy"):h),width:Ze,height:_e,colorDomain:o.filter(An).length===0?[]:te||ui.uniqBy(o,"color",!0),colors:o.filter(jn).length===0?I?[I]:[_.Colors.primaryColors["blue-600"]]:I||_.Colors[Ae].categoricalColors.colors,xAxisTitle:ae,yAxisTitle:ce,refXValues:de,refYValues:pe,showLabels:re,radius:le,leftMargin:X,rightMargin:xe,topMargin:fe,bottomMargin:me,tooltip:ct,onSeriesMouseOver:k,highlightAreaSettings:he,highlightedDataPoints:o.filter(bn).length===0?[]:ge,selectedColor:yt,maxRadiusValue:v.checkIfNullOrUndefined(ne)?Math.max(...o.map(vn).filter(yn)):ne,maxXValue:v.checkIfNullOrUndefined(Le)?Math.max(...o.map(gn).filter(hn))>0?Math.max(...o.map(pn).filter(dn)):0:Le,minXValue:v.checkIfNullOrUndefined($)?Math.min(...o.map(mn).filter(fn))>0?0:Math.min(...o.map(xn).filter(un)):$,maxYValue:v.checkIfNullOrUndefined(Be)?Math.max(...o.map(cn).filter(an))>0?Math.max(...o.map(ln).filter(rn)):0:Be,minYValue:v.checkIfNullOrUndefined(ze)?Math.min(...o.map(sn).filter(on))>0?0:Math.min(...o.map(nn).filter(tn)):ze,onSeriesMouseClick:oe,rtl:Q==="he"||Q==="ar",annotations:Ke,customHighlightAreaSettings:m,regressionLine:Et,resetSelectionOnDoubleClick:qt,detailsOnClick:P,noOfXTicks:Dt,noOfYTicks:wt,labelColor:se,xSuffix:ye,ySuffix:ve,xPrefix:be,yPrefix:je,styles:p,classNames:f,animate:Ie===!0?{duration:.5,once:!0,amount:.5}:Ie||{duration:0,once:!0,amount:0},dimmedOpacity:pt,precision:ht,customLayers:gt}):null})]}),e[50]=Ie,e[51]=Ke,e[52]=me,e[53]=f,e[54]=te,e[55]=lt,e[56]=I,e[57]=m,e[58]=gt,e[59]=o,e[60]=P,e[61]=pt,e[62]=he,e[63]=ge,e[64]=D,e[65]=se,e[66]=Q,e[67]=X,e[68]=ne,e[69]=Le,e[70]=Be,e[71]=$,e[72]=ze,e[73]=Dt,e[74]=wt,e[75]=oe,e[76]=k,e[77]=ht,e[78]=le,e[79]=de,e[80]=pe,e[81]=Et,e[82]=qt,e[83]=xe,e[84]=yt,e[85]=Y,e[86]=re,e[87]=j,e[88]=p,e[89]=_e,e[90]=Ze,e[91]=Ae,e[92]=l.dateFormat,e[93]=l.enabled,e[94]=ct,e[95]=fe,e[96]=u,e[97]=g,e[98]=ae,e[99]=be,e[100]=ye,e[101]=ce,e[102]=je,e[103]=ve,e[104]=Z):Z=e[104];let Ee;e[105]!==f?.footnote||e[106]!==f?.source||e[107]!==U||e[108]!==Ue||e[109]!==p?.footnote||e[110]!==p?.source||e[111]!==g?(Ee=Ue||U?n.jsxRuntimeExports.jsx(Ci.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:Ue,footNote:U,width:g}):null,e[105]=f?.footnote,e[106]=f?.source,e[107]=U,e[108]=Ue,e[109]=p?.footnote,e[110]=p?.source,e[111]=g,e[112]=Ee):Ee=e[112];let rt;return e[113]!==w||e[114]!==ue||e[115]!==Se||e[116]!==T||e[117]!==Q||e[118]!==y||e[119]!==ie||e[120]!==ut||e[121]!==bt||e[122]!==st||e[123]!==Re||e[124]!==ke||e[125]!==Z||e[126]!==Ee||e[127]!==Ae||e[128]!==g?(rt=n.jsxRuntimeExports.jsxs(xi.GraphContainer,{className:bt,style:st,id:Se,ref:Pe,"aria-label":w,backgroundColor:ue,theme:Ae,language:Q,minHeight:y,width:g,height:T,relativeHeight:ut,padding:ie,children:[Re,ke,Z,Ee]}),e[113]=w,e[114]=ue,e[115]=Se,e[116]=T,e[117]=Q,e[118]=y,e[119]=ie,e[120]=ut,e[121]=bt,e[122]=st,e[123]=Re,e[124]=ke,e[125]=Z,e[126]=Ee,e[127]=Ae,e[128]=g,e[129]=rt):rt=e[129],rt}function tn(i){return i!=null}function nn(i){return i.y}function on(i){return i!=null}function sn(i){return i.y}function rn(i){return i!=null}function ln(i){return i.y}function an(i){return i!=null}function cn(i){return i.y}function un(i){return i!=null}function xn(i){return i.x}function fn(i){return i!=null}function mn(i){return i.x}function dn(i){return i!=null}function pn(i){return i.x}function hn(i){return i!=null}function gn(i){return i.x}function yn(i){return i!=null}function vn(i){return i.radius}function bn(i){return i.label}function jn(i){return i.color}function An(i){return i.color}function On(i){return i.color}function Cn(i){return i!==void 0}function Rn(i){return i!==void 0}function kn(i){return i.data}function En(i){return i!==void 0}function wn(i){return i.data}function Sn(i,e){return i-e}function Ln(i){return i.date}exports.ScatterPlot=en;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|
package/dist/ScatterPlot.js
CHANGED
|
@@ -29,7 +29,7 @@ import { GraphHeader as Ni } from "./GraphHeader.js";
|
|
|
29
29
|
import { ColorLegendWithMouseOver as Pi } from "./ColorLegendWithMouseOver.js";
|
|
30
30
|
import { E as Ti } from "./EmptyState-BZo1BbAn.js";
|
|
31
31
|
import { P as Xi, e as Yi } from "./index-D491FEn1.js";
|
|
32
|
-
import { a as Ri } from "./ensureCompleteData-
|
|
32
|
+
import { a as Ri } from "./ensureCompleteData-DH5c52Ub.js";
|
|
33
33
|
import { u as ri } from "./uniqBy-BHy4I8PK.js";
|
|
34
34
|
import { a as Ii, G as Fi } from "./GraphContainer-CRqzdKu2.js";
|
|
35
35
|
function Hi(i) {
|
package/dist/ScrollStory.d.ts
CHANGED
|
@@ -411,6 +411,7 @@ declare interface GraphSettingsDataType {
|
|
|
411
411
|
dotBorderColor?: string;
|
|
412
412
|
mapColorLegendTitle?: string;
|
|
413
413
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
414
|
+
trackColor?: string;
|
|
414
415
|
}
|
|
415
416
|
|
|
416
417
|
declare type GraphType = GraphTypeForGriddedGraph;
|
package/dist/SimpleLineChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),w=require("react"),v=require("./parse-hMnG_lRV.cjs"),Le=require("./simple-statistics-xm8c0LQQ.cjs"),Me=require("./index-Cno4Q0YE.cjs"),Se=require("./numberFormattingFunction-02t-wJta.cjs"),Ve=require("./Tooltip-uUdw6wJL.cjs"),Et=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ke=require("./customArea-CMF5g-C3.cjs"),Ie=require("./Axis-DxRV2yMi.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),He=require("./XTicksAndGridLines-B6CELS7q.cjs"),Ge=require("./ReferenceLine-BH0qdf4R.cjs"),Pe=require("./RegressionLine-BOTTNSrr.cjs"),We=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Ye=require("./index-B_sAFsEV.cjs"),Xe=require("./time-CZd5YLSP.cjs"),Ue=require("./linear-BwPAspcq.cjs"),De=require("./line-DHV4JwCR.cjs"),he=require("./step-BZ3C8QFW.cjs"),Be=require("./select-Bnfk0lJx.cjs"),ze=require("./init-DU0ybBc_.cjs"),Je=require("./pointer-Dkq5NV1q.cjs"),Ke=require("./use-in-view-QcfiW0w3.cjs"),_t=require("./proxy-BxvUI_9l.cjs"),Qe=require("./GraphFooter.cjs"),Ze=require("./GraphHeader.cjs"),_e=require("./Colors.cjs"),ti=require("./EmptyState-sAEZ_5rU.cjs"),qe=require("./GraphContainer-d8A46BK2.cjs"),ei=require("./getNoOfTicks-C_1CFXv_.cjs");function ii(i){const t=n.compilerRuntimeExports.c(110),{data:R,width:G,height:ot,lineColor:P,suffix:E,prefix:q,dateFormat:s,highlightAreaSettings:rt,showValues:O,noOfXTicks:Ot,rightMargin:bt,leftMargin:A,topMargin:At,bottomMargin:at,tooltip:lt,onSeriesMouseOver:Ct,refValues:Pt,minValue:Wt,maxValue:ct,animate:o,rtl:kt,strokeWidth:ut,showDots:Lt,annotations:Yt,customHighlightAreaSettings:xt,regressionLine:mt,yAxisTitle:W,noOfYTicks:Xt,maxDate:Ut,minDate:Bt,curveType:ft,styles:d,classNames:f,precision:N,customLayers:T}=i,zt=w.useRef(null);let $;t[0]!==o.amount||t[1]!==o.once?($={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=$):$=t[2];const x=Ke.useInView(zt,$),[b,Jt]=w.useState(!1);let pt,Y;t[3]!==o.duration||t[4]!==b||t[5]!==x?(pt=()=>{if(x&&!b){const e=setTimeout(()=>{Jt(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},Y=[x,b,o.duration],t[3]=o.duration,t[4]=b,t[5]=x,t[6]=pt,t[7]=Y):(pt=t[6],Y=t[7]),w.useEffect(pt,Y);const te=ft==="linear"?De.curveLinear:ft==="step"?he.curveStep:ft==="stepAfter"?he.stepAfter:ft==="stepBefore"?he.stepBefore:he.monotoneX,[C,m]=w.useState(void 0),[c,Kt]=w.useState(void 0),[M,St]=w.useState(void 0),dt=W?A+30:A;let X;t[8]!==at||t[9]!==bt||t[10]!==dt||t[11]!==At?(X={top:At,bottom:at,left:dt,right:bt},t[8]=at,t[9]=bt,t[10]=dt,t[11]=At,t[12]=X):X=t[12];const y=X,U=w.useRef(null);let B;t[13]!==s?(B=e=>({...e,date:v.parse(`${e.date}`,s,new Date)}),t[13]=s,t[14]=B):B=t[14];const a=Me.orderBy(R.map(B),["date"],["asc"]);let z;if(t[15]!==s||t[16]!==rt){let e;t[18]!==s?(e=g=>({...g,coordinates:[g.coordinates[0]===null?null:v.parse(`${g.coordinates[0]}`,s,new Date),g.coordinates[1]===null?null:v.parse(`${g.coordinates[1]}`,s,new Date)]}),t[18]=s,t[19]=e):e=t[19],z=rt.map(e),t[15]=s,t[16]=rt,t[17]=z}else z=t[17];const ht=z;let J;if(t[20]!==xt||t[21]!==s){let e;t[23]!==s?(e=g=>({...g,coordinates:g.coordinates.map((H,Gt)=>Gt%2===0?v.parse(`${H}`,s,new Date):H)}),t[23]=s,t[24]=e):e=t[24],J=xt.map(e),t[20]=xt,t[21]=s,t[22]=J}else J=t[22];const Dt=J,u=G-y.left-y.right,h=ot-y.top-y.bottom,qt=Bt?v.parse(`${Bt}`,s,new Date):a[0].date,Nt=Ut?v.parse(`${Ut}`,s,new Date):a[a.length-1].date,p=Et.checkIfNullOrUndefined(Wt)?Math.min(...a.map(ji).filter(vi))!==1/0?Math.min(...a.map(yi).filter(gi))>0?0:Math.min(...a.map(hi).filter(di)):0:Wt,k=Math.max(...a.map(pi).filter(fi))!==1/0?Math.max(...a.map(mi).filter(xi)):0,r=Xe.time().domain([qt,Nt]).range([0,u]);let K;t[25]!==k||t[26]!==ct?(K=Et.checkIfNullOrUndefined(ct)?k>0?k:0:ct,t[25]=k,t[26]=ct,t[27]=K):K=t[27];const l=Ue.linear().domain([p,K]).range([h,0]).nice(),Tt=De.line().x(e=>r(e.date)).y(e=>l(e.y)).curve(te),gt=l.ticks(Xt),$t=r.ticks(Ot);w.useEffect(()=>{const e=H=>{const Gt=a[ze.bisectCenter(a.map(ui),r.invert(Je.pointer(H)[0]),0)];m(Gt||a[a.length-1]),Ct?.(Gt||a[a.length-1]),St(H.clientY),Kt(H.clientX)},g=()=>{m(void 0),Kt(void 0),St(void 0),Ct?.(void 0)};Be.select(U.current).on("mousemove",e).on("mouseout",g)},[r,a,Ct]);const Mt=Le.linearRegression(a.filter(ci).map(e=>[r(e.date),l(e.y)])),Vt=Le.linearRegressionLine(Mt);let Q;t[28]!==o||t[29]!==h||t[30]!==u||t[31]!==ht||t[32]!==x||t[33]!==r?(Q=n.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:ht,width:u,height:h,scale:r,animate:o,isInView:x}),t[28]=o,t[29]=h,t[30]=u,t[31]=ht,t[32]=x,t[33]=r,t[34]=Q):Q=t[34];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let Z;t[35]!==yt||t[36]!==vt?(Z={gridLines:yt,labels:vt},t[35]=yt,t[36]=vt,t[37]=Z):Z=t[37];const jt=f?.yAxis?.gridLines,_=f?.yAxis?.labels;let tt;t[38]!==jt||t[39]!==_?(tt={gridLines:jt,labels:_},t[38]=jt,t[39]=_,t[40]=tt):tt=t[40];const V=l(p<0?0:p),Qt=l(p<0?0:p),et=0-A,Zt=u+y.right,wt=p<0?0:p;let I;t[41]!==N||t[42]!==q||t[43]!==E||t[44]!==wt?(I=Se.numberFormattingFunction(wt,"NA",N,q,E),t[41]=N,t[42]=q,t[43]=E,t[44]=wt,t[45]=I):I=t[45];const it=0-A,nt=l(p<0?0:p),Rt=k<0?"1em":-5;let L;t[46]!==it||t[47]!==nt||t[48]!==Rt?(L={x:it,y:nt,dx:0,dy:Rt},t[46]=it,t[47]=nt,t[48]=Rt,t[49]=L):L=t[49];const S=f?.xAxis?.axis,D=f?.yAxis?.labels;let j;t[50]!==S||t[51]!==D?(j={axis:S,label:D},t[50]=S,t[51]=D,t[52]=j):j=t[52];const st=d?.xAxis?.axis,It=d?.yAxis?.labels;let F;t[53]!==st||t[54]!==It?(F={axis:st,label:It},t[53]=st,t[54]=It,t[55]=F):F=t[55];let ee;t[56]!==V||t[57]!==Qt||t[58]!==et||t[59]!==Zt||t[60]!==I||t[61]!==L||t[62]!==j||t[63]!==F?(ee=n.jsxRuntimeExports.jsx(Ie.Axis,{y1:V,y2:Qt,x1:et,x2:Zt,label:I,labelPos:L,classNames:j,styles:F}),t[56]=V,t[57]=Qt,t[58]=et,t[59]=Zt,t[60]=I,t[61]=L,t[62]=j,t[63]=F,t[64]=ee):ee=t[64];const ge=0-A-15,ye=h/2,ve=d?.yAxis?.title,je=f?.yAxis?.title;let ie;t[65]!==ge||t[66]!==ye||t[67]!==ve||t[68]!==je||t[69]!==W?(ie=n.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:ge,y:ye,style:ve,className:je,text:W,rotate90:!0}),t[65]=ge,t[66]=ye,t[67]=ve,t[68]=je,t[69]=W,t[70]=ie):ie=t[70];let ne;t[71]!==s?(ne=e=>v.format(e,s),t[71]=s,t[72]=ne):ne=t[72];const Ne=$t.map(ne),Te=$t.map(e=>r(e)),we=d?.xAxis?.gridLines,Re=d?.xAxis?.labels;let se;t[73]!==we||t[74]!==Re?(se={gridLines:we,labels:Re},t[73]=we,t[74]=Re,t[75]=se):se=t[75];const Ee=f?.xAxis?.gridLines;let Ft;t[76]!==Ee?(Ft=n.mo("opacity-0",Ee),t[76]=Ee,t[77]=Ft):Ft=t[77];const Oe=f?.xAxis?.labels;let Ht;t[78]!==Oe?(Ht=n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Oe),t[78]=Oe,t[79]=Ht):Ht=t[79];let oe;t[80]!==Ft||t[81]!==Ht?(oe={gridLines:Ft,labels:Ht},t[80]=Ft,t[81]=Ht,t[82]=oe):oe=t[82];let re;t[83]!==T?(re=T.filter(ri).map(oi),t[83]=T,t[84]=re):re=t[84];let ae;t[85]!==P||t[86]!==ut?(ae={stroke:P,fill:"none",strokeWidth:ut},t[85]=P,t[86]=ut,t[87]=ae):ae=t[87];let le;t[88]!==o.duration?(le={opacity:0,transition:{duration:o.duration}},t[88]=o.duration,t[89]=le):le=t[89];const be=a.map((e,g)=>n.jsxRuntimeExports.jsx(_t.motion.g,{children:Et.checkIfNullOrUndefined(e.y)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Lt?n.jsxRuntimeExports.jsx(_t.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:r(e.date),cy:l(e.y),fill:P},whileInView:{opacity:1,fill:P,transition:{duration:b?o.duration:.5,delay:b?0:o.duration},cx:r(e.date),cy:l(e.y)}},initial:"initial",animate:x?"whileInView":"initial"}):null,O?n.jsxRuntimeExports.jsx(_t.motion.text,{dy:-8,style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:n.mo("graph-value text-xs font-bold",f?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,x:r(e.date),y:l(e.y)},whileInView:{opacity:1,x:r(e.date),y:l(e.y),transition:{duration:b?o.duration:.5,delay:b?0:o.duration}}},initial:"initial",animate:x?"whileInView":"initial",children:Se.numberFormattingFunction(e.y,"NA",N,q,E)}):null]})},g));let ce;t[90]!==be?(ce=n.jsxRuntimeExports.jsx("g",{children:be}),t[90]=be,t[91]=ce):ce=t[91];const Ae=Yt.map((e,g)=>{const H=ke.getLineEndPoint({x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Gt=e.showConnector?{y1:H.y,x1:H.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,circleRadius:Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,$e={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:kt?0:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:kt?e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+y.right-(e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return n.jsxRuntimeExports.jsx(ke.Annotation,{color:e.color,connectorsSettings:Gt,labelSettings:$e,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g)});let ue;t[92]!==Ae?(ue=n.jsxRuntimeExports.jsx("g",{children:Ae}),t[92]=Ae,t[93]=ue):ue=t[93];const Ce=mt?n.jsxRuntimeExports.jsx(Pe.RegressionLine,{x1:0,x2:u,y1:Vt(0),y2:Vt(u),graphHeight:h,graphWidth:u,className:f?.regLine,style:d?.regLine,color:typeof mt=="string"?mt:void 0,animate:o,isInView:x}):null;let xe;t[94]!==Ce?(xe=n.jsxRuntimeExports.jsx("g",{children:Ce}),t[94]=Ce,t[95]=xe):xe=t[95];let me;t[96]!==T?(me=T.filter(si).map(ni),t[96]=T,t[97]=me):me=t[97];let fe;t[98]===Symbol.for("react.memo_cache_sentinel")?(fe={fill:"none",pointerEvents:"all"},t[98]=fe):fe=t[98];let pe;t[99]!==U||t[100]!==h||t[101]!==u?(pe=n.jsxRuntimeExports.jsx("rect",{ref:U,style:fe,width:u,height:h}),t[99]=U,t[100]=h,t[101]=u,t[102]=pe):pe=t[102];let de;return t[103]!==f?.tooltip||t[104]!==c||t[105]!==M||t[106]!==C||t[107]!==d?.tooltip||t[108]!==lt?(de=C&<&&c&&M?n.jsxRuntimeExports.jsx(Ve.Tooltip,{data:C,body:lt,xPos:c,yPos:M,backgroundStyle:d?.tooltip,className:f?.tooltip}):null,t[103]=f?.tooltip,t[104]=c,t[105]=M,t[106]=C,t[107]=d?.tooltip,t[108]=lt,t[109]=de):de=t[109],n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(_t.motion.svg,{width:`${G}px`,height:`${ot}px`,viewBox:`0 0 ${G} ${ot}`,direction:"ltr",ref:zt,children:n.jsxRuntimeExports.jsxs("g",{transform:`translate(${y.left},${y.top})`,children:[Q,n.jsxRuntimeExports.jsx(ke.CustomArea,{areaSettings:Dt,scaleX:r,scaleY:l,animate:o,isInView:x}),n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(We.YTicksAndGridLines,{values:gt.filter(li),y:gt.filter(ai).map(e=>l(e)),x1:0-A,x2:u+y.right,styles:Z,classNames:tt,suffix:E,prefix:q,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:N}),ee,ie]}),n.jsxRuntimeExports.jsx(He.XTicksAndGridLines,{values:Ne,x:Te,y1:0,y2:h,styles:se,classNames:oe,suffix:E,prefix:q,labelType:"primary",showGridLines:!0,precision:N}),re,n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(_t.motion.path,{style:ae,exit:le,variants:{initial:{pathLength:0,d:Tt(a)||"",opacity:1},whileInView:{pathLength:1,d:Tt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:x?"whileInView":"initial"}),C?n.jsxRuntimeExports.jsx("line",{y1:0,y2:h,x1:r(C.date),x2:r(C.date),className:n.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",f?.mouseOverLine),style:d?.mouseOverLine}):null]}),ce,Pt?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Pt.map((e,g)=>n.jsxRuntimeExports.jsx(Ge.RefLineY,{text:e.text,color:e.color,y:l(e.value),x1:0-A,x2:u+y.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g))}):null,ue,xe,me,pe]})}),de]})}function ni(i){return i.layer}function si(i){return i.position==="after"}function oi(i){return i.layer}function ri(i){return i.position==="before"}function ai(i){return i!==0}function li(i){return i!==0}function ci(i){return!Et.checkIfNullOrUndefined(i.date)&&!Et.checkIfNullOrUndefined(i.y)}function ui(i){return i.date}function xi(i){return i!=null}function mi(i){return i.y}function fi(i){return i!=null}function pi(i){return i.y}function di(i){return i!=null}function hi(i){return i.y}function gi(i){return i!=null}function yi(i){return i.y}function vi(i){return i!=null}function ji(i){return i.y}function wi(i){const t=n.compilerRuntimeExports.c(83),{data:R,graphTitle:G,lineColor:ot,suffix:P,sources:E,prefix:q,graphDescription:s,height:rt,width:O,footNote:Ot,noOfXTicks:bt,dateFormat:A,showValues:At,padding:at,backgroundColor:lt,leftMargin:Ct,rightMargin:Pt,topMargin:Wt,bottomMargin:ct,relativeHeight:o,tooltip:kt,onSeriesMouseOver:ut,highlightAreaSettings:Lt,graphID:Yt,minValue:xt,maxValue:mt,maxDate:W,minDate:Xt,graphDownload:Ut,dataDownload:Bt,animate:ft,language:d,refValues:f,minHeight:N,strokeWidth:T,showDots:zt,annotations:$,customHighlightAreaSettings:x,theme:b,ariaLabel:Jt,regressionLine:pt,yAxisTitle:Y,noOfYTicks:te,curveType:C,styles:m,classNames:c,precision:Kt,customLayers:M}=i,St=P===void 0?"":P,dt=q===void 0?"":q,X=bt===void 0?10:bt,y=A===void 0?"yyyy":A,U=At===void 0?!1:At,B=lt===void 0?!1:lt,a=Ct===void 0?30:Ct,z=Pt===void 0?30:Pt,ht=Wt===void 0?20:Wt,J=ct===void 0?25:ct;let Dt;t[0]!==Lt?(Dt=Lt===void 0?[]:Lt,t[0]=Lt,t[1]=Dt):Dt=t[1];const u=Dt,h=Ut===void 0?!1:Ut,qt=Bt===void 0?!1:Bt,Nt=ft===void 0?!1:ft,p=d===void 0?"en":d;let k;t[2]!==f?(k=f===void 0?[]:f,t[2]=f,t[3]=k):k=t[3];const r=k,K=N===void 0?0:N,l=T===void 0?2:T,Tt=zt===void 0?!0:zt;let gt;t[4]!==$?(gt=$===void 0?[]:$,t[4]=$,t[5]=gt):gt=t[5];const $t=gt;let Mt;t[6]!==x?(Mt=x===void 0?[]:x,t[6]=x,t[7]=Mt):Mt=t[7];const Vt=Mt,Q=b===void 0?"light":b,yt=pt===void 0?!1:pt,vt=te===void 0?5:te,Z=C===void 0?"curve":C,jt=Kt===void 0?2:Kt;let _;t[8]!==M?(_=M===void 0?[]:M,t[8]=M,t[9]=_):_=t[9];const tt=_,[V,Qt]=w.useState(0),[et,Zt]=w.useState(0),wt=w.useRef(null),I=w.useRef(null);let it,nt;t[10]===Symbol.for("react.memo_cache_sentinel")?(it=()=>{const It=new ResizeObserver(F=>{Qt(F[0].target.clientWidth||620),Zt(F[0].target.clientHeight||480)});return wt.current&&It.observe(wt.current),()=>It.disconnect()},nt=[],t[10]=it,t[11]=nt):(it=t[10],nt=t[11]),w.useEffect(it,nt);const Rt=c?.graphContainer,L=m?.graphContainer;let S;t[12]!==c?.description||t[13]!==c?.title||t[14]!==R||t[15]!==qt||t[16]!==s||t[17]!==h||t[18]!==G||t[19]!==m?.description||t[20]!==m?.title||t[21]!==O?(S=G||s||h||qt?n.jsxRuntimeExports.jsx(Ze.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:c?.title,description:c?.description},graphTitle:G,graphDescription:s,width:O,graphDownload:h?I:void 0,dataDownload:qt?R.map(Ai).filter(bi).length>0?R.map(Oi).filter(Ei):R.filter(Ri):null}):null,t[12]=c?.description,t[13]=c?.title,t[14]=R,t[15]=qt,t[16]=s,t[17]=h,t[18]=G,t[19]=m?.description,t[20]=m?.title,t[21]=O,t[22]=S):S=t[22];let D;t[23]!==Nt||t[24]!==$t||t[25]!==J||t[26]!==c||t[27]!==Z||t[28]!==Vt||t[29]!==tt||t[30]!==R||t[31]!==y||t[32]!==u||t[33]!==p||t[34]!==a||t[35]!==ot||t[36]!==W||t[37]!==mt||t[38]!==Xt||t[39]!==xt||t[40]!==X||t[41]!==vt||t[42]!==ut||t[43]!==jt||t[44]!==dt||t[45]!==r||t[46]!==yt||t[47]!==z||t[48]!==Tt||t[49]!==U||t[50]!==l||t[51]!==m||t[52]!==St||t[53]!==et||t[54]!==V||t[55]!==kt||t[56]!==ht||t[57]!==Y?(D=R.length===0?n.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:n.jsxRuntimeExports.jsx(ti.EmptyState,{})}):n.jsxRuntimeExports.jsx(qe.GraphArea,{ref:wt,children:V&&et?n.jsxRuntimeExports.jsx(ii,{data:R,lineColor:ot||_e.Colors.primaryColors["blue-600"],width:V,height:et,suffix:St,prefix:dt,dateFormat:y,showValues:U,noOfXTicks:X??ei.getNoOfTicks(V),leftMargin:a,rightMargin:z,topMargin:ht,bottomMargin:J,tooltip:kt,highlightAreaSettings:u,onSeriesMouseOver:ut,refValues:r,minValue:xt,maxValue:mt,animate:Nt===!0?{duration:.5,once:!0,amount:.5}:Nt||{duration:0,once:!0,amount:0},rtl:p==="he"||p==="ar",strokeWidth:l,showDots:Tt,annotations:$t,customHighlightAreaSettings:Vt,regressionLine:yt,yAxisTitle:Y,noOfYTicks:vt,maxDate:W,minDate:Xt,curveType:Z,styles:m,classNames:c,precision:jt,customLayers:tt}):null}),t[23]=Nt,t[24]=$t,t[25]=J,t[26]=c,t[27]=Z,t[28]=Vt,t[29]=tt,t[30]=R,t[31]=y,t[32]=u,t[33]=p,t[34]=a,t[35]=ot,t[36]=W,t[37]=mt,t[38]=Xt,t[39]=xt,t[40]=X,t[41]=vt,t[42]=ut,t[43]=jt,t[44]=dt,t[45]=r,t[46]=yt,t[47]=z,t[48]=Tt,t[49]=U,t[50]=l,t[51]=m,t[52]=St,t[53]=et,t[54]=V,t[55]=kt,t[56]=ht,t[57]=Y,t[58]=D):D=t[58];let j;t[59]!==c?.footnote||t[60]!==c?.source||t[61]!==Ot||t[62]!==E||t[63]!==m?.footnote||t[64]!==m?.source||t[65]!==O?(j=E||Ot?n.jsxRuntimeExports.jsx(Qe.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:E,footNote:Ot,width:O}):null,t[59]=c?.footnote,t[60]=c?.source,t[61]=Ot,t[62]=E,t[63]=m?.footnote,t[64]=m?.source,t[65]=O,t[66]=j):j=t[66];let st;return t[67]!==Jt||t[68]!==B||t[69]!==Yt||t[70]!==rt||t[71]!==p||t[72]!==K||t[73]!==at||t[74]!==o||t[75]!==Rt||t[76]!==L||t[77]!==S||t[78]!==D||t[79]!==j||t[80]!==Q||t[81]!==O?(st=n.jsxRuntimeExports.jsxs(qe.GraphContainer,{className:Rt,style:L,id:Yt,ref:I,"aria-label":Jt,backgroundColor:B,theme:Q,language:p,minHeight:K,width:O,height:rt,relativeHeight:o,padding:at,children:[S,D,j]}),t[67]=Jt,t[68]=B,t[69]=Yt,t[70]=rt,t[71]=p,t[72]=K,t[73]=at,t[74]=o,t[75]=Rt,t[76]=L,t[77]=S,t[78]=D,t[79]=j,t[80]=Q,t[81]=O,t[82]=st):st=t[82],st}function Ri(i){return i!==void 0}function Ei(i){return i!==void 0}function Oi(i){return i.data}function bi(i){return i!==void 0}function Ai(i){return i.data}exports.SimpleLineChart=wi;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),w=require("react"),v=require("./parse-hMnG_lRV.cjs"),Le=require("./simple-statistics-xm8c0LQQ.cjs"),Me=require("./index-Cno4Q0YE.cjs"),Se=require("./numberFormattingFunction-02t-wJta.cjs"),Ve=require("./Tooltip-uUdw6wJL.cjs"),Et=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ke=require("./customArea-CMF5g-C3.cjs"),Ie=require("./Axis-DxRV2yMi.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),He=require("./XTicksAndGridLines-B6CELS7q.cjs"),Ge=require("./ReferenceLine-BH0qdf4R.cjs"),Pe=require("./RegressionLine-BOTTNSrr.cjs"),We=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Ye=require("./index-B_sAFsEV.cjs"),Xe=require("./time-CZd5YLSP.cjs"),Ue=require("./linear-BwPAspcq.cjs"),De=require("./line-DaEMhXmx.cjs"),he=require("./step-BZ3C8QFW.cjs"),Be=require("./select-Bnfk0lJx.cjs"),ze=require("./init-DU0ybBc_.cjs"),Je=require("./pointer-Dkq5NV1q.cjs"),Ke=require("./use-in-view-QcfiW0w3.cjs"),_t=require("./proxy-BxvUI_9l.cjs"),Qe=require("./GraphFooter.cjs"),Ze=require("./GraphHeader.cjs"),_e=require("./Colors.cjs"),ti=require("./EmptyState-sAEZ_5rU.cjs"),qe=require("./GraphContainer-d8A46BK2.cjs"),ei=require("./getNoOfTicks-C_1CFXv_.cjs");function ii(i){const t=n.compilerRuntimeExports.c(110),{data:R,width:G,height:ot,lineColor:P,suffix:E,prefix:q,dateFormat:s,highlightAreaSettings:rt,showValues:O,noOfXTicks:Ot,rightMargin:bt,leftMargin:A,topMargin:At,bottomMargin:at,tooltip:lt,onSeriesMouseOver:Ct,refValues:Pt,minValue:Wt,maxValue:ct,animate:o,rtl:kt,strokeWidth:ut,showDots:Lt,annotations:Yt,customHighlightAreaSettings:xt,regressionLine:mt,yAxisTitle:W,noOfYTicks:Xt,maxDate:Ut,minDate:Bt,curveType:ft,styles:d,classNames:f,precision:N,customLayers:T}=i,zt=w.useRef(null);let $;t[0]!==o.amount||t[1]!==o.once?($={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=$):$=t[2];const x=Ke.useInView(zt,$),[b,Jt]=w.useState(!1);let pt,Y;t[3]!==o.duration||t[4]!==b||t[5]!==x?(pt=()=>{if(x&&!b){const e=setTimeout(()=>{Jt(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},Y=[x,b,o.duration],t[3]=o.duration,t[4]=b,t[5]=x,t[6]=pt,t[7]=Y):(pt=t[6],Y=t[7]),w.useEffect(pt,Y);const te=ft==="linear"?De.curveLinear:ft==="step"?he.curveStep:ft==="stepAfter"?he.stepAfter:ft==="stepBefore"?he.stepBefore:he.monotoneX,[C,m]=w.useState(void 0),[c,Kt]=w.useState(void 0),[M,St]=w.useState(void 0),dt=W?A+30:A;let X;t[8]!==at||t[9]!==bt||t[10]!==dt||t[11]!==At?(X={top:At,bottom:at,left:dt,right:bt},t[8]=at,t[9]=bt,t[10]=dt,t[11]=At,t[12]=X):X=t[12];const y=X,U=w.useRef(null);let B;t[13]!==s?(B=e=>({...e,date:v.parse(`${e.date}`,s,new Date)}),t[13]=s,t[14]=B):B=t[14];const a=Me.orderBy(R.map(B),["date"],["asc"]);let z;if(t[15]!==s||t[16]!==rt){let e;t[18]!==s?(e=g=>({...g,coordinates:[g.coordinates[0]===null?null:v.parse(`${g.coordinates[0]}`,s,new Date),g.coordinates[1]===null?null:v.parse(`${g.coordinates[1]}`,s,new Date)]}),t[18]=s,t[19]=e):e=t[19],z=rt.map(e),t[15]=s,t[16]=rt,t[17]=z}else z=t[17];const ht=z;let J;if(t[20]!==xt||t[21]!==s){let e;t[23]!==s?(e=g=>({...g,coordinates:g.coordinates.map((H,Gt)=>Gt%2===0?v.parse(`${H}`,s,new Date):H)}),t[23]=s,t[24]=e):e=t[24],J=xt.map(e),t[20]=xt,t[21]=s,t[22]=J}else J=t[22];const Dt=J,u=G-y.left-y.right,h=ot-y.top-y.bottom,qt=Bt?v.parse(`${Bt}`,s,new Date):a[0].date,Nt=Ut?v.parse(`${Ut}`,s,new Date):a[a.length-1].date,p=Et.checkIfNullOrUndefined(Wt)?Math.min(...a.map(ji).filter(vi))!==1/0?Math.min(...a.map(yi).filter(gi))>0?0:Math.min(...a.map(hi).filter(di)):0:Wt,k=Math.max(...a.map(pi).filter(fi))!==1/0?Math.max(...a.map(mi).filter(xi)):0,r=Xe.time().domain([qt,Nt]).range([0,u]);let K;t[25]!==k||t[26]!==ct?(K=Et.checkIfNullOrUndefined(ct)?k>0?k:0:ct,t[25]=k,t[26]=ct,t[27]=K):K=t[27];const l=Ue.linear().domain([p,K]).range([h,0]).nice(),Tt=De.line().x(e=>r(e.date)).y(e=>l(e.y)).curve(te),gt=l.ticks(Xt),$t=r.ticks(Ot);w.useEffect(()=>{const e=H=>{const Gt=a[ze.bisectCenter(a.map(ui),r.invert(Je.pointer(H)[0]),0)];m(Gt||a[a.length-1]),Ct?.(Gt||a[a.length-1]),St(H.clientY),Kt(H.clientX)},g=()=>{m(void 0),Kt(void 0),St(void 0),Ct?.(void 0)};Be.select(U.current).on("mousemove",e).on("mouseout",g)},[r,a,Ct]);const Mt=Le.linearRegression(a.filter(ci).map(e=>[r(e.date),l(e.y)])),Vt=Le.linearRegressionLine(Mt);let Q;t[28]!==o||t[29]!==h||t[30]!==u||t[31]!==ht||t[32]!==x||t[33]!==r?(Q=n.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:ht,width:u,height:h,scale:r,animate:o,isInView:x}),t[28]=o,t[29]=h,t[30]=u,t[31]=ht,t[32]=x,t[33]=r,t[34]=Q):Q=t[34];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let Z;t[35]!==yt||t[36]!==vt?(Z={gridLines:yt,labels:vt},t[35]=yt,t[36]=vt,t[37]=Z):Z=t[37];const jt=f?.yAxis?.gridLines,_=f?.yAxis?.labels;let tt;t[38]!==jt||t[39]!==_?(tt={gridLines:jt,labels:_},t[38]=jt,t[39]=_,t[40]=tt):tt=t[40];const V=l(p<0?0:p),Qt=l(p<0?0:p),et=0-A,Zt=u+y.right,wt=p<0?0:p;let I;t[41]!==N||t[42]!==q||t[43]!==E||t[44]!==wt?(I=Se.numberFormattingFunction(wt,"NA",N,q,E),t[41]=N,t[42]=q,t[43]=E,t[44]=wt,t[45]=I):I=t[45];const it=0-A,nt=l(p<0?0:p),Rt=k<0?"1em":-5;let L;t[46]!==it||t[47]!==nt||t[48]!==Rt?(L={x:it,y:nt,dx:0,dy:Rt},t[46]=it,t[47]=nt,t[48]=Rt,t[49]=L):L=t[49];const S=f?.xAxis?.axis,D=f?.yAxis?.labels;let j;t[50]!==S||t[51]!==D?(j={axis:S,label:D},t[50]=S,t[51]=D,t[52]=j):j=t[52];const st=d?.xAxis?.axis,It=d?.yAxis?.labels;let F;t[53]!==st||t[54]!==It?(F={axis:st,label:It},t[53]=st,t[54]=It,t[55]=F):F=t[55];let ee;t[56]!==V||t[57]!==Qt||t[58]!==et||t[59]!==Zt||t[60]!==I||t[61]!==L||t[62]!==j||t[63]!==F?(ee=n.jsxRuntimeExports.jsx(Ie.Axis,{y1:V,y2:Qt,x1:et,x2:Zt,label:I,labelPos:L,classNames:j,styles:F}),t[56]=V,t[57]=Qt,t[58]=et,t[59]=Zt,t[60]=I,t[61]=L,t[62]=j,t[63]=F,t[64]=ee):ee=t[64];const ge=0-A-15,ye=h/2,ve=d?.yAxis?.title,je=f?.yAxis?.title;let ie;t[65]!==ge||t[66]!==ye||t[67]!==ve||t[68]!==je||t[69]!==W?(ie=n.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:ge,y:ye,style:ve,className:je,text:W,rotate90:!0}),t[65]=ge,t[66]=ye,t[67]=ve,t[68]=je,t[69]=W,t[70]=ie):ie=t[70];let ne;t[71]!==s?(ne=e=>v.format(e,s),t[71]=s,t[72]=ne):ne=t[72];const Ne=$t.map(ne),Te=$t.map(e=>r(e)),we=d?.xAxis?.gridLines,Re=d?.xAxis?.labels;let se;t[73]!==we||t[74]!==Re?(se={gridLines:we,labels:Re},t[73]=we,t[74]=Re,t[75]=se):se=t[75];const Ee=f?.xAxis?.gridLines;let Ft;t[76]!==Ee?(Ft=n.mo("opacity-0",Ee),t[76]=Ee,t[77]=Ft):Ft=t[77];const Oe=f?.xAxis?.labels;let Ht;t[78]!==Oe?(Ht=n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Oe),t[78]=Oe,t[79]=Ht):Ht=t[79];let oe;t[80]!==Ft||t[81]!==Ht?(oe={gridLines:Ft,labels:Ht},t[80]=Ft,t[81]=Ht,t[82]=oe):oe=t[82];let re;t[83]!==T?(re=T.filter(ri).map(oi),t[83]=T,t[84]=re):re=t[84];let ae;t[85]!==P||t[86]!==ut?(ae={stroke:P,fill:"none",strokeWidth:ut},t[85]=P,t[86]=ut,t[87]=ae):ae=t[87];let le;t[88]!==o.duration?(le={opacity:0,transition:{duration:o.duration}},t[88]=o.duration,t[89]=le):le=t[89];const be=a.map((e,g)=>n.jsxRuntimeExports.jsx(_t.motion.g,{children:Et.checkIfNullOrUndefined(e.y)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Lt?n.jsxRuntimeExports.jsx(_t.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:r(e.date),cy:l(e.y),fill:P},whileInView:{opacity:1,fill:P,transition:{duration:b?o.duration:.5,delay:b?0:o.duration},cx:r(e.date),cy:l(e.y)}},initial:"initial",animate:x?"whileInView":"initial"}):null,O?n.jsxRuntimeExports.jsx(_t.motion.text,{dy:-8,style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:n.mo("graph-value text-xs font-bold",f?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,x:r(e.date),y:l(e.y)},whileInView:{opacity:1,x:r(e.date),y:l(e.y),transition:{duration:b?o.duration:.5,delay:b?0:o.duration}}},initial:"initial",animate:x?"whileInView":"initial",children:Se.numberFormattingFunction(e.y,"NA",N,q,E)}):null]})},g));let ce;t[90]!==be?(ce=n.jsxRuntimeExports.jsx("g",{children:be}),t[90]=be,t[91]=ce):ce=t[91];const Ae=Yt.map((e,g)=>{const H=ke.getLineEndPoint({x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Gt=e.showConnector?{y1:H.y,x1:H.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,circleRadius:Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,$e={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:kt?0:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:kt?e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+y.right-(e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return n.jsxRuntimeExports.jsx(ke.Annotation,{color:e.color,connectorsSettings:Gt,labelSettings:$e,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g)});let ue;t[92]!==Ae?(ue=n.jsxRuntimeExports.jsx("g",{children:Ae}),t[92]=Ae,t[93]=ue):ue=t[93];const Ce=mt?n.jsxRuntimeExports.jsx(Pe.RegressionLine,{x1:0,x2:u,y1:Vt(0),y2:Vt(u),graphHeight:h,graphWidth:u,className:f?.regLine,style:d?.regLine,color:typeof mt=="string"?mt:void 0,animate:o,isInView:x}):null;let xe;t[94]!==Ce?(xe=n.jsxRuntimeExports.jsx("g",{children:Ce}),t[94]=Ce,t[95]=xe):xe=t[95];let me;t[96]!==T?(me=T.filter(si).map(ni),t[96]=T,t[97]=me):me=t[97];let fe;t[98]===Symbol.for("react.memo_cache_sentinel")?(fe={fill:"none",pointerEvents:"all"},t[98]=fe):fe=t[98];let pe;t[99]!==U||t[100]!==h||t[101]!==u?(pe=n.jsxRuntimeExports.jsx("rect",{ref:U,style:fe,width:u,height:h}),t[99]=U,t[100]=h,t[101]=u,t[102]=pe):pe=t[102];let de;return t[103]!==f?.tooltip||t[104]!==c||t[105]!==M||t[106]!==C||t[107]!==d?.tooltip||t[108]!==lt?(de=C&<&&c&&M?n.jsxRuntimeExports.jsx(Ve.Tooltip,{data:C,body:lt,xPos:c,yPos:M,backgroundStyle:d?.tooltip,className:f?.tooltip}):null,t[103]=f?.tooltip,t[104]=c,t[105]=M,t[106]=C,t[107]=d?.tooltip,t[108]=lt,t[109]=de):de=t[109],n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(_t.motion.svg,{width:`${G}px`,height:`${ot}px`,viewBox:`0 0 ${G} ${ot}`,direction:"ltr",ref:zt,children:n.jsxRuntimeExports.jsxs("g",{transform:`translate(${y.left},${y.top})`,children:[Q,n.jsxRuntimeExports.jsx(ke.CustomArea,{areaSettings:Dt,scaleX:r,scaleY:l,animate:o,isInView:x}),n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(We.YTicksAndGridLines,{values:gt.filter(li),y:gt.filter(ai).map(e=>l(e)),x1:0-A,x2:u+y.right,styles:Z,classNames:tt,suffix:E,prefix:q,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:N}),ee,ie]}),n.jsxRuntimeExports.jsx(He.XTicksAndGridLines,{values:Ne,x:Te,y1:0,y2:h,styles:se,classNames:oe,suffix:E,prefix:q,labelType:"primary",showGridLines:!0,precision:N}),re,n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(_t.motion.path,{style:ae,exit:le,variants:{initial:{pathLength:0,d:Tt(a)||"",opacity:1},whileInView:{pathLength:1,d:Tt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:x?"whileInView":"initial"}),C?n.jsxRuntimeExports.jsx("line",{y1:0,y2:h,x1:r(C.date),x2:r(C.date),className:n.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",f?.mouseOverLine),style:d?.mouseOverLine}):null]}),ce,Pt?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Pt.map((e,g)=>n.jsxRuntimeExports.jsx(Ge.RefLineY,{text:e.text,color:e.color,y:l(e.value),x1:0-A,x2:u+y.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g))}):null,ue,xe,me,pe]})}),de]})}function ni(i){return i.layer}function si(i){return i.position==="after"}function oi(i){return i.layer}function ri(i){return i.position==="before"}function ai(i){return i!==0}function li(i){return i!==0}function ci(i){return!Et.checkIfNullOrUndefined(i.date)&&!Et.checkIfNullOrUndefined(i.y)}function ui(i){return i.date}function xi(i){return i!=null}function mi(i){return i.y}function fi(i){return i!=null}function pi(i){return i.y}function di(i){return i!=null}function hi(i){return i.y}function gi(i){return i!=null}function yi(i){return i.y}function vi(i){return i!=null}function ji(i){return i.y}function wi(i){const t=n.compilerRuntimeExports.c(83),{data:R,graphTitle:G,lineColor:ot,suffix:P,sources:E,prefix:q,graphDescription:s,height:rt,width:O,footNote:Ot,noOfXTicks:bt,dateFormat:A,showValues:At,padding:at,backgroundColor:lt,leftMargin:Ct,rightMargin:Pt,topMargin:Wt,bottomMargin:ct,relativeHeight:o,tooltip:kt,onSeriesMouseOver:ut,highlightAreaSettings:Lt,graphID:Yt,minValue:xt,maxValue:mt,maxDate:W,minDate:Xt,graphDownload:Ut,dataDownload:Bt,animate:ft,language:d,refValues:f,minHeight:N,strokeWidth:T,showDots:zt,annotations:$,customHighlightAreaSettings:x,theme:b,ariaLabel:Jt,regressionLine:pt,yAxisTitle:Y,noOfYTicks:te,curveType:C,styles:m,classNames:c,precision:Kt,customLayers:M}=i,St=P===void 0?"":P,dt=q===void 0?"":q,X=bt===void 0?10:bt,y=A===void 0?"yyyy":A,U=At===void 0?!1:At,B=lt===void 0?!1:lt,a=Ct===void 0?30:Ct,z=Pt===void 0?30:Pt,ht=Wt===void 0?20:Wt,J=ct===void 0?25:ct;let Dt;t[0]!==Lt?(Dt=Lt===void 0?[]:Lt,t[0]=Lt,t[1]=Dt):Dt=t[1];const u=Dt,h=Ut===void 0?!1:Ut,qt=Bt===void 0?!1:Bt,Nt=ft===void 0?!1:ft,p=d===void 0?"en":d;let k;t[2]!==f?(k=f===void 0?[]:f,t[2]=f,t[3]=k):k=t[3];const r=k,K=N===void 0?0:N,l=T===void 0?2:T,Tt=zt===void 0?!0:zt;let gt;t[4]!==$?(gt=$===void 0?[]:$,t[4]=$,t[5]=gt):gt=t[5];const $t=gt;let Mt;t[6]!==x?(Mt=x===void 0?[]:x,t[6]=x,t[7]=Mt):Mt=t[7];const Vt=Mt,Q=b===void 0?"light":b,yt=pt===void 0?!1:pt,vt=te===void 0?5:te,Z=C===void 0?"curve":C,jt=Kt===void 0?2:Kt;let _;t[8]!==M?(_=M===void 0?[]:M,t[8]=M,t[9]=_):_=t[9];const tt=_,[V,Qt]=w.useState(0),[et,Zt]=w.useState(0),wt=w.useRef(null),I=w.useRef(null);let it,nt;t[10]===Symbol.for("react.memo_cache_sentinel")?(it=()=>{const It=new ResizeObserver(F=>{Qt(F[0].target.clientWidth||620),Zt(F[0].target.clientHeight||480)});return wt.current&&It.observe(wt.current),()=>It.disconnect()},nt=[],t[10]=it,t[11]=nt):(it=t[10],nt=t[11]),w.useEffect(it,nt);const Rt=c?.graphContainer,L=m?.graphContainer;let S;t[12]!==c?.description||t[13]!==c?.title||t[14]!==R||t[15]!==qt||t[16]!==s||t[17]!==h||t[18]!==G||t[19]!==m?.description||t[20]!==m?.title||t[21]!==O?(S=G||s||h||qt?n.jsxRuntimeExports.jsx(Ze.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:c?.title,description:c?.description},graphTitle:G,graphDescription:s,width:O,graphDownload:h?I:void 0,dataDownload:qt?R.map(Ai).filter(bi).length>0?R.map(Oi).filter(Ei):R.filter(Ri):null}):null,t[12]=c?.description,t[13]=c?.title,t[14]=R,t[15]=qt,t[16]=s,t[17]=h,t[18]=G,t[19]=m?.description,t[20]=m?.title,t[21]=O,t[22]=S):S=t[22];let D;t[23]!==Nt||t[24]!==$t||t[25]!==J||t[26]!==c||t[27]!==Z||t[28]!==Vt||t[29]!==tt||t[30]!==R||t[31]!==y||t[32]!==u||t[33]!==p||t[34]!==a||t[35]!==ot||t[36]!==W||t[37]!==mt||t[38]!==Xt||t[39]!==xt||t[40]!==X||t[41]!==vt||t[42]!==ut||t[43]!==jt||t[44]!==dt||t[45]!==r||t[46]!==yt||t[47]!==z||t[48]!==Tt||t[49]!==U||t[50]!==l||t[51]!==m||t[52]!==St||t[53]!==et||t[54]!==V||t[55]!==kt||t[56]!==ht||t[57]!==Y?(D=R.length===0?n.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:n.jsxRuntimeExports.jsx(ti.EmptyState,{})}):n.jsxRuntimeExports.jsx(qe.GraphArea,{ref:wt,children:V&&et?n.jsxRuntimeExports.jsx(ii,{data:R,lineColor:ot||_e.Colors.primaryColors["blue-600"],width:V,height:et,suffix:St,prefix:dt,dateFormat:y,showValues:U,noOfXTicks:X??ei.getNoOfTicks(V),leftMargin:a,rightMargin:z,topMargin:ht,bottomMargin:J,tooltip:kt,highlightAreaSettings:u,onSeriesMouseOver:ut,refValues:r,minValue:xt,maxValue:mt,animate:Nt===!0?{duration:.5,once:!0,amount:.5}:Nt||{duration:0,once:!0,amount:0},rtl:p==="he"||p==="ar",strokeWidth:l,showDots:Tt,annotations:$t,customHighlightAreaSettings:Vt,regressionLine:yt,yAxisTitle:Y,noOfYTicks:vt,maxDate:W,minDate:Xt,curveType:Z,styles:m,classNames:c,precision:jt,customLayers:tt}):null}),t[23]=Nt,t[24]=$t,t[25]=J,t[26]=c,t[27]=Z,t[28]=Vt,t[29]=tt,t[30]=R,t[31]=y,t[32]=u,t[33]=p,t[34]=a,t[35]=ot,t[36]=W,t[37]=mt,t[38]=Xt,t[39]=xt,t[40]=X,t[41]=vt,t[42]=ut,t[43]=jt,t[44]=dt,t[45]=r,t[46]=yt,t[47]=z,t[48]=Tt,t[49]=U,t[50]=l,t[51]=m,t[52]=St,t[53]=et,t[54]=V,t[55]=kt,t[56]=ht,t[57]=Y,t[58]=D):D=t[58];let j;t[59]!==c?.footnote||t[60]!==c?.source||t[61]!==Ot||t[62]!==E||t[63]!==m?.footnote||t[64]!==m?.source||t[65]!==O?(j=E||Ot?n.jsxRuntimeExports.jsx(Qe.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:E,footNote:Ot,width:O}):null,t[59]=c?.footnote,t[60]=c?.source,t[61]=Ot,t[62]=E,t[63]=m?.footnote,t[64]=m?.source,t[65]=O,t[66]=j):j=t[66];let st;return t[67]!==Jt||t[68]!==B||t[69]!==Yt||t[70]!==rt||t[71]!==p||t[72]!==K||t[73]!==at||t[74]!==o||t[75]!==Rt||t[76]!==L||t[77]!==S||t[78]!==D||t[79]!==j||t[80]!==Q||t[81]!==O?(st=n.jsxRuntimeExports.jsxs(qe.GraphContainer,{className:Rt,style:L,id:Yt,ref:I,"aria-label":Jt,backgroundColor:B,theme:Q,language:p,minHeight:K,width:O,height:rt,relativeHeight:o,padding:at,children:[S,D,j]}),t[67]=Jt,t[68]=B,t[69]=Yt,t[70]=rt,t[71]=p,t[72]=K,t[73]=at,t[74]=o,t[75]=Rt,t[76]=L,t[77]=S,t[78]=D,t[79]=j,t[80]=Q,t[81]=O,t[82]=st):st=t[82],st}function Ri(i){return i!==void 0}function Ei(i){return i!==void 0}function Oi(i){return i.data}function bi(i){return i!==void 0}function Ai(i){return i.data}exports.SimpleLineChart=wi;
|
|
2
2
|
//# sourceMappingURL=SimpleLineChart.cjs.map
|
package/dist/SimpleLineChart.js
CHANGED
|
@@ -16,7 +16,7 @@ import { Y as qe } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
|
16
16
|
import { H as Je } from "./index-SKgJALZg.js";
|
|
17
17
|
import { t as Ke } from "./time-BUL-dwnK.js";
|
|
18
18
|
import { a as Qe } from "./linear-BqltdMeF.js";
|
|
19
|
-
import { l as Ze, c as _e } from "./line-
|
|
19
|
+
import { l as Ze, c as _e } from "./line-DFlZsxI1.js";
|
|
20
20
|
import { c as ti, s as ei, a as ii, m as oi } from "./step-BrDul-H4.js";
|
|
21
21
|
import { s as ni } from "./select-DKy99ogv.js";
|
|
22
22
|
import { a as si } from "./init-BhZylTFx.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),o=require("react"),te=require("./index-CyZ1lmi_.cjs"),q=require("./index-BS2TADPj.cjs"),le=require("./index-DQA8q5sC.cjs"),C=require("./DropdownSelect-Doz3mCrM.cjs"),d=require("./checkIfMultiple-wg6hJLXy.cjs"),ne=require("./Spinner-DRMBUsX7.cjs"),ie=require("./GraphContainer-d8A46BK2.cjs"),re=require("./GraphEl-YKUlz-37.cjs"),$=require("./fetchAndParseData-l5HGMAEs.cjs"),U=require("./transformDataForAggregation-CYoB5Xsk.cjs"),z=require("./getUniqValue-NX8DgwND.cjs"),se=require("./GraphHeader.cjs"),W=require("./filterData-T5DQBE9b.cjs"),oe=require("./getGraphList-CA17dvFB.cjs"),J=require("./transformDataForSelect-YmStusCI.cjs"),ue=u=>{if(u.findIndex(n=>n.chartConfigId==="yMin")!==-1&&u.findIndex(n=>n.chartConfigId==="yMax")!==-1)return u;const i=[...u];return u.findIndex(n=>n.chartConfigId==="yMin")===-1&&i.push({chartConfigId:"yMin",columnId:`${u[u.findIndex(n=>n.chartConfigId==="y")].columnId}Min`}),u.findIndex(n=>n.chartConfigId==="yMax")===-1&&i.push({chartConfigId:"yMax",columnId:`${u[u.findIndex(n=>n.chartConfigId==="y")].columnId}Max`}),i},M=(u,i)=>{const n=i?.map(D=>{const b=u?.findIndex(s=>s.chartConfigId===D.chartConfigId);if(b===-1)return{};const w=u[b]?.allowedColumnIds?.findIndex(s=>s.value===D.columnId);return w===-1?{}:u[b].allowedColumnIds[w].graphSettings||{}})||[];return Object.assign({},...n)};function de(u){const{graphSettings:i,dataSettings:n,filters:D,graphType:b,dataTransform:w,graphDataConfiguration:s,dataFilters:A,debugMode:S,dataSelectionOptions:I,advancedDataSelectionOptions:N,readableHeader:B,noOfFiltersPerRow:p=4,updateFilters:K,uiMode:f="normal",highlightDataPointSettings:m}=u,[P,F]=o.useState(void 0),[c,Q]=o.useState(void 0),[v,j]=o.useState(s),[x,V]=o.useState({}),[E,X]=o.useState(void 0),[Y,Z]=o.useState([]),H=o.useRef(null),O=o.useRef(s),[R,k]=o.useState([]),G={ignoreCase:!0,ignoreAccents:!0,trim:!0},L=o.useEffectEvent(()=>{const e=(D||[]).map(r=>({filter:r.column,label:r.label||`Filter by ${r.column}`,singleSelect:r.singleSelect,clearable:r.clearable,ui:r.ui,defaultValue:J.transformDefaultValue(r.defaultValue),value:J.transformDefaultValue(r.defaultValue),availableValues:z.getUniqValue(c,r.column).filter(a=>!r.excludeValues?.includes(`${a}`)).map(a=>({value:a,label:a})),allowSelectAll:r.allowSelectAll,width:r.width}));k(e)});o.useEffect(()=>{(async()=>{try{const r=n.dataURL?typeof n.dataURL=="string"?n.fileType==="json"?await $.fetchAndParseJSON(n.dataURL,n.columnsToArray,n.dataTransformation,S):n.fileType==="api"?await $.fetchAndTransformDataFromAPI(n.dataURL,n.apiHeaders,n.columnsToArray,n.dataTransformation,S):await $.fetchAndParseCSV(n.dataURL,n.dataTransformation,n.columnsToArray,S,n.delimiter,!0):await $.fetchAndParseMultipleDataSources(n.dataURL,n.idColumnTitle):await $.transformColumnsToArray(n.data,n.columnsToArray);Q(r)}catch(r){console.error("Data fetching error:",r)}})(),L()},[n,S]),o.useEffect(()=>{L()},[D,c]);const _=o.useEffectEvent(()=>{if(!c||R.length===0)F(c);else{const e=c.filter(r=>R.every(a=>a.value&&q.flattenDeep([a.value]).length>0?te.intersection(q.flattenDeep([r[a.filter]]),q.flattenDeep([a.value]).map(t=>t.value)).length>0:!0));F(e)}});o.useEffect(()=>{_()},[R,c]),o.useEffect(()=>{I&&V(M(I,s))},[I,s]);const ee=o.useEffectEvent(()=>{m?.column&&P&&Z(z.getUniqValue(P,m.column).filter(e=>!m?.excludeValues?.includes(`${e}`)).map(e=>({value:e,label:e})))});o.useEffect(()=>{ee()},[m]),o.useEffect(()=>{le.isEqual(O.current,s)||(j(s),O.current=s)},[s]);const y=(e,r)=>{k(a=>a.map(t=>t.filter===e?{...t,value:r}:t))},ae=c?U.transformDataForGraph(w?U.transformDataForAggregation(W.filterData(c,A||[]),w.keyColumn,w.aggregationColumnsSetting):W.filterData(c,A||[]),b,b==="lineChartWithConfidenceInterval"&&v?ue(v):v):void 0;return l.jsxRuntimeExports.jsx(ie.GraphContainer,{className:i?.classNames?.graphContainer,style:i?.styles?.graphContainer,id:i?.graphID,ref:H,"aria-label":i?.ariaLabel,backgroundColor:i?.backgroundColor??!1,theme:i?.theme||"light",language:i?.language||"en",width:i?.width,height:i?.height,padding:i?.padding,minHeight:i?.minHeight,relativeHeight:i?.relativeHeight,children:c||oe.graphList.filter(e=>e.geoHubMapPresentation).map(e=>e.graphID).indexOf(b)!==-1?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[x?.graphTitle||x?.graphDescription||i?.graphTitle||i?.graphDescription||i?.graphDownload||i?.dataDownload?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:x?.styles?.title||i?.styles?.title,description:x?.styles?.description||i?.styles?.description},classNames:{title:x?.classNames?.title||i?.classNames?.title,description:x?.classNames?.description||i?.classNames?.description},graphTitle:x?.graphTitle||i?.graphTitle,graphDescription:x?.graphDescription||i?.graphDescription,width:x?.width||i?.width,graphDownload:i?.graphDownload?H:void 0,dataDownload:i?.dataDownload&&c&&c.length>0?c:null}):null,R.length!==0||(I||[]).length!==0||(N||[]).length!==0||m?l.jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-start gap-x-4 gap-y-0 w-full",children:[N?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:e.ui!=="radio"||e.width?0:1,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label||"Graph by"}),e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.options.map(a=>({...a,value:a.label})),size:"sm",isClearable:!1,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:e.defaultValue?{...e.defaultValue,value:e.defaultValue?.label}:{...e.options[0],value:e.options[0].label},onChange:a=>{V(a?.graphSettings||{}),j(a?.dataConfiguration)}}):l.jsxRuntimeExports.jsx(d.ye,{defaultValue:e.defaultValue?.label||e.options[0].label,variant:f,onValueChange:a=>{const t=e.options[e.options.findIndex(g=>g.label===a)];V(t.graphSettings||{}),j(t.dataConfiguration)},children:e.options.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:a.label,value:a.label},t))})]},r)),I?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:e.ui!=="radio"||e.width?0:1,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label||`Visualize ${e.chartConfigId} by`}),d.checkIfMultiple(e.chartConfigId,v||[])?e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.allowedColumnIds,size:"sm",isMulti:!0,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:s?s[s.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(t=>t.value===a)]):void 0,filterOption:C.Du(G),onChange:a=>{const t={columnId:(a||[]).map(h=>h.value),chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);j(g)}}):l.jsxRuntimeExports.jsx(d.$,{variant:f,defaultValue:s?s[s.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(t=>t.value===a)]).map(a=>a.value):[],onValueChange:a=>{const t={columnId:a||[],chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);j(g)},children:e.allowedColumnIds.map((a,t)=>l.jsxRuntimeExports.jsx(d.P,{label:a.label,value:a.label},t))}):e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.allowedColumnIds,size:"sm",isClearable:!1,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:s?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===s[s.findIndex(t=>t.chartConfigId===e.chartConfigId)].columnId)]:void 0,onChange:a=>{const t={columnId:a?.value,chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);V(M(I,g)),j(g)}}):l.jsxRuntimeExports.jsx(d.ye,{variant:f,defaultValue:s?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===s[s.findIndex(t=>t.chartConfigId===e.chartConfigId)].columnId)].label:"",onValueChange:a=>{const g={columnId:e.allowedColumnIds[e.allowedColumnIds.findIndex(T=>T.label===a)].value,chartConfigId:e.chartConfigId},h=v?.map(T=>T.chartConfigId===g.chartConfigId?g:T);V(M(I,h)),j(h)},children:e.allowedColumnIds.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:a.label,value:a.label},t))})]},r)),R?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:0,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label}),e.singleSelect?e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.availableValues,variant:f,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:a=>{y(e.filter,a)},value:e.value,defaultValue:e.defaultValue}):l.jsxRuntimeExports.jsx(d.ye,{variant:f,defaultValue:e.defaultValue.value,onValueChange:a=>{y(e.filter,e.availableValues.filter(t=>t.value===a))},children:e.availableValues.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:`${a.label}`,value:`${a.value}`},t))}):l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.availableValues,variant:f,size:"sm",isMulti:!0,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:a=>{y(e.filter,a)},value:e.value,defaultValue:e.defaultValue}):l.jsxRuntimeExports.jsx(d.$,{variant:f,defaultValue:e.defaultValue?e.defaultValue.map(a=>`${a.value}`):[],value:e.value?e.value.map(a=>`${a.value}`):void 0,onValueChange:a=>{y(e.filter,e.availableValues.filter(t=>a.indexOf(`${t.value}`)!==-1))},children:e.availableValues.map((a,t)=>l.jsxRuntimeExports.jsx(d.P,{label:`${a.label}`,value:`${a.value}`},t))}),e.allowSelectAll?l.jsxRuntimeExports.jsx("button",{type:"button",className:"bg-transparent border-0 p-0 mt-2 cursor-pointer text-primary-blue-600 dark:text-primary-blue-400",onClick:()=>{y(e.filter,e.availableValues)},children:"Select all options"}):null]})]},r)),m?l.jsxRuntimeExports.jsxs("div",{style:{width:m.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:m.width?0:1,flexShrink:0,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:m.label||"Highlight data"}),l.jsxRuntimeExports.jsx(C.ja,{options:Y,variant:f,size:"sm",isMulti:!0,isClearable:!0,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:e=>{X(e?.map(r=>r.value))},value:E?.map(e=>({label:e,value:e})),defaultValue:m.defaultValues?.map(e=>({label:e,value:e}))})]}):null]}):null,l.jsxRuntimeExports.jsx(re.GraphEl,{graph:b,graphData:ae,graphDataConfiguration:v,debugMode:S,readableHeader:B||[],updateFilters:K,settings:{...i||{},...x,graphTitle:void 0,graphDescription:void 0,graphDownload:!1,dataDownload:!1,backgroundColor:void 0,width:void 0,height:void 0,relativeHeight:void 0,minHeight:void 0,padding:"0",theme:i?.theme,...E?{highlightedDataPoints:E,highlightedIds:E?.map(e=>`${e}`),highlightedLines:E?.map(e=>e)}:{}}})]}):l.jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center p-4",children:l.jsxRuntimeExports.jsx(ne.w,{})})})}exports.SingleGraphDashboard=de;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-CTPQjnHt.cjs"),o=require("react"),te=require("./index-CyZ1lmi_.cjs"),q=require("./index-BS2TADPj.cjs"),le=require("./index-DQA8q5sC.cjs"),C=require("./DropdownSelect-Doz3mCrM.cjs"),d=require("./checkIfMultiple-wg6hJLXy.cjs"),ne=require("./Spinner-DRMBUsX7.cjs"),ie=require("./GraphContainer-d8A46BK2.cjs"),re=require("./GraphEl-BLMih7RN.cjs"),$=require("./fetchAndParseData-l5HGMAEs.cjs"),U=require("./transformDataForAggregation-CYoB5Xsk.cjs"),z=require("./getUniqValue-NX8DgwND.cjs"),se=require("./GraphHeader.cjs"),W=require("./filterData-T5DQBE9b.cjs"),oe=require("./getGraphList-CA17dvFB.cjs"),J=require("./transformDataForSelect-YmStusCI.cjs"),ue=u=>{if(u.findIndex(n=>n.chartConfigId==="yMin")!==-1&&u.findIndex(n=>n.chartConfigId==="yMax")!==-1)return u;const i=[...u];return u.findIndex(n=>n.chartConfigId==="yMin")===-1&&i.push({chartConfigId:"yMin",columnId:`${u[u.findIndex(n=>n.chartConfigId==="y")].columnId}Min`}),u.findIndex(n=>n.chartConfigId==="yMax")===-1&&i.push({chartConfigId:"yMax",columnId:`${u[u.findIndex(n=>n.chartConfigId==="y")].columnId}Max`}),i},M=(u,i)=>{const n=i?.map(D=>{const b=u?.findIndex(s=>s.chartConfigId===D.chartConfigId);if(b===-1)return{};const w=u[b]?.allowedColumnIds?.findIndex(s=>s.value===D.columnId);return w===-1?{}:u[b].allowedColumnIds[w].graphSettings||{}})||[];return Object.assign({},...n)};function de(u){const{graphSettings:i,dataSettings:n,filters:D,graphType:b,dataTransform:w,graphDataConfiguration:s,dataFilters:A,debugMode:S,dataSelectionOptions:I,advancedDataSelectionOptions:N,readableHeader:B,noOfFiltersPerRow:p=4,updateFilters:K,uiMode:f="normal",highlightDataPointSettings:m}=u,[P,F]=o.useState(void 0),[c,Q]=o.useState(void 0),[v,j]=o.useState(s),[x,V]=o.useState({}),[E,X]=o.useState(void 0),[Y,Z]=o.useState([]),H=o.useRef(null),O=o.useRef(s),[R,k]=o.useState([]),G={ignoreCase:!0,ignoreAccents:!0,trim:!0},L=o.useEffectEvent(()=>{const e=(D||[]).map(r=>({filter:r.column,label:r.label||`Filter by ${r.column}`,singleSelect:r.singleSelect,clearable:r.clearable,ui:r.ui,defaultValue:J.transformDefaultValue(r.defaultValue),value:J.transformDefaultValue(r.defaultValue),availableValues:z.getUniqValue(c,r.column).filter(a=>!r.excludeValues?.includes(`${a}`)).map(a=>({value:a,label:a})),allowSelectAll:r.allowSelectAll,width:r.width}));k(e)});o.useEffect(()=>{(async()=>{try{const r=n.dataURL?typeof n.dataURL=="string"?n.fileType==="json"?await $.fetchAndParseJSON(n.dataURL,n.columnsToArray,n.dataTransformation,S):n.fileType==="api"?await $.fetchAndTransformDataFromAPI(n.dataURL,n.apiHeaders,n.columnsToArray,n.dataTransformation,S):await $.fetchAndParseCSV(n.dataURL,n.dataTransformation,n.columnsToArray,S,n.delimiter,!0):await $.fetchAndParseMultipleDataSources(n.dataURL,n.idColumnTitle):await $.transformColumnsToArray(n.data,n.columnsToArray);Q(r)}catch(r){console.error("Data fetching error:",r)}})(),L()},[n,S]),o.useEffect(()=>{L()},[D,c]);const _=o.useEffectEvent(()=>{if(!c||R.length===0)F(c);else{const e=c.filter(r=>R.every(a=>a.value&&q.flattenDeep([a.value]).length>0?te.intersection(q.flattenDeep([r[a.filter]]),q.flattenDeep([a.value]).map(t=>t.value)).length>0:!0));F(e)}});o.useEffect(()=>{_()},[R,c]),o.useEffect(()=>{I&&V(M(I,s))},[I,s]);const ee=o.useEffectEvent(()=>{m?.column&&P&&Z(z.getUniqValue(P,m.column).filter(e=>!m?.excludeValues?.includes(`${e}`)).map(e=>({value:e,label:e})))});o.useEffect(()=>{ee()},[m]),o.useEffect(()=>{le.isEqual(O.current,s)||(j(s),O.current=s)},[s]);const y=(e,r)=>{k(a=>a.map(t=>t.filter===e?{...t,value:r}:t))},ae=c?U.transformDataForGraph(w?U.transformDataForAggregation(W.filterData(c,A||[]),w.keyColumn,w.aggregationColumnsSetting):W.filterData(c,A||[]),b,b==="lineChartWithConfidenceInterval"&&v?ue(v):v):void 0;return l.jsxRuntimeExports.jsx(ie.GraphContainer,{className:i?.classNames?.graphContainer,style:i?.styles?.graphContainer,id:i?.graphID,ref:H,"aria-label":i?.ariaLabel,backgroundColor:i?.backgroundColor??!1,theme:i?.theme||"light",language:i?.language||"en",width:i?.width,height:i?.height,padding:i?.padding,minHeight:i?.minHeight,relativeHeight:i?.relativeHeight,children:c||oe.graphList.filter(e=>e.geoHubMapPresentation).map(e=>e.graphID).indexOf(b)!==-1?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[x?.graphTitle||x?.graphDescription||i?.graphTitle||i?.graphDescription||i?.graphDownload||i?.dataDownload?l.jsxRuntimeExports.jsx(se.GraphHeader,{styles:{title:x?.styles?.title||i?.styles?.title,description:x?.styles?.description||i?.styles?.description},classNames:{title:x?.classNames?.title||i?.classNames?.title,description:x?.classNames?.description||i?.classNames?.description},graphTitle:x?.graphTitle||i?.graphTitle,graphDescription:x?.graphDescription||i?.graphDescription,width:x?.width||i?.width,graphDownload:i?.graphDownload?H:void 0,dataDownload:i?.dataDownload&&c&&c.length>0?c:null}):null,R.length!==0||(I||[]).length!==0||(N||[]).length!==0||m?l.jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-start gap-x-4 gap-y-0 w-full",children:[N?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:e.ui!=="radio"||e.width?0:1,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label||"Graph by"}),e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.options.map(a=>({...a,value:a.label})),size:"sm",isClearable:!1,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:e.defaultValue?{...e.defaultValue,value:e.defaultValue?.label}:{...e.options[0],value:e.options[0].label},onChange:a=>{V(a?.graphSettings||{}),j(a?.dataConfiguration)}}):l.jsxRuntimeExports.jsx(d.ye,{defaultValue:e.defaultValue?.label||e.options[0].label,variant:f,onValueChange:a=>{const t=e.options[e.options.findIndex(g=>g.label===a)];V(t.graphSettings||{}),j(t.dataConfiguration)},children:e.options.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:a.label,value:a.label},t))})]},r)),I?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:e.ui!=="radio"||e.width?0:1,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label||`Visualize ${e.chartConfigId} by`}),d.checkIfMultiple(e.chartConfigId,v||[])?e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.allowedColumnIds,size:"sm",isMulti:!0,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:s?s[s.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(t=>t.value===a)]):void 0,filterOption:C.Du(G),onChange:a=>{const t={columnId:(a||[]).map(h=>h.value),chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);j(g)}}):l.jsxRuntimeExports.jsx(d.$,{variant:f,defaultValue:s?s[s.findIndex(a=>a.chartConfigId===e.chartConfigId)].columnId.map(a=>e.allowedColumnIds[e.allowedColumnIds.findIndex(t=>t.value===a)]).map(a=>a.value):[],onValueChange:a=>{const t={columnId:a||[],chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);j(g)},children:e.allowedColumnIds.map((a,t)=>l.jsxRuntimeExports.jsx(d.P,{label:a.label,value:a.label},t))}):e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.allowedColumnIds,size:"sm",isClearable:!1,isSearchable:!0,variant:f,controlShouldRenderValue:!0,defaultValue:s?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===s[s.findIndex(t=>t.chartConfigId===e.chartConfigId)].columnId)]:void 0,onChange:a=>{const t={columnId:a?.value,chartConfigId:e.chartConfigId},g=v?.map(h=>h.chartConfigId===t.chartConfigId?t:h);V(M(I,g)),j(g)}}):l.jsxRuntimeExports.jsx(d.ye,{variant:f,defaultValue:s?e.allowedColumnIds[e.allowedColumnIds.findIndex(a=>a.value===s[s.findIndex(t=>t.chartConfigId===e.chartConfigId)].columnId)].label:"",onValueChange:a=>{const g={columnId:e.allowedColumnIds[e.allowedColumnIds.findIndex(T=>T.label===a)].value,chartConfigId:e.chartConfigId},h=v?.map(T=>T.chartConfigId===g.chartConfigId?g:T);V(M(I,h)),j(h)},children:e.allowedColumnIds.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:a.label,value:a.label},t))})]},r)),R?.map((e,r)=>l.jsxRuntimeExports.jsxs("div",{style:{width:e.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:e.width?0:1,flexShrink:0,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:e.label}),e.singleSelect?e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.availableValues,variant:f,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:a=>{y(e.filter,a)},value:e.value,defaultValue:e.defaultValue}):l.jsxRuntimeExports.jsx(d.ye,{variant:f,defaultValue:e.defaultValue.value,onValueChange:a=>{y(e.filter,e.availableValues.filter(t=>t.value===a))},children:e.availableValues.map((a,t)=>l.jsxRuntimeExports.jsx(d.he,{label:`${a.label}`,value:`${a.value}`},t))}):l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[e.ui!=="radio"?l.jsxRuntimeExports.jsx(C.ja,{options:e.availableValues,variant:f,size:"sm",isMulti:!0,isClearable:e.clearable===void 0?!0:e.clearable,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:a=>{y(e.filter,a)},value:e.value,defaultValue:e.defaultValue}):l.jsxRuntimeExports.jsx(d.$,{variant:f,defaultValue:e.defaultValue?e.defaultValue.map(a=>`${a.value}`):[],value:e.value?e.value.map(a=>`${a.value}`):void 0,onValueChange:a=>{y(e.filter,e.availableValues.filter(t=>a.indexOf(`${t.value}`)!==-1))},children:e.availableValues.map((a,t)=>l.jsxRuntimeExports.jsx(d.P,{label:`${a.label}`,value:`${a.value}`},t))}),e.allowSelectAll?l.jsxRuntimeExports.jsx("button",{type:"button",className:"bg-transparent border-0 p-0 mt-2 cursor-pointer text-primary-blue-600 dark:text-primary-blue-400",onClick:()=>{y(e.filter,e.availableValues)},children:"Select all options"}):null]})]},r)),m?l.jsxRuntimeExports.jsxs("div",{style:{width:m.width||`calc(${100/p}% - ${(p-1)/p}rem)`,flexGrow:m.width?0:1,flexShrink:0,minWidth:"240px"},className:"pb-4",children:[l.jsxRuntimeExports.jsx(d.b,{className:"mb-2",children:m.label||"Highlight data"}),l.jsxRuntimeExports.jsx(C.ja,{options:Y,variant:f,size:"sm",isMulti:!0,isClearable:!0,isSearchable:!0,controlShouldRenderValue:!0,filterOption:C.Du(G),onChange:e=>{X(e?.map(r=>r.value))},value:E?.map(e=>({label:e,value:e})),defaultValue:m.defaultValues?.map(e=>({label:e,value:e}))})]}):null]}):null,l.jsxRuntimeExports.jsx(re.GraphEl,{graph:b,graphData:ae,graphDataConfiguration:v,debugMode:S,readableHeader:B||[],updateFilters:K,settings:{...i||{},...x,graphTitle:void 0,graphDescription:void 0,graphDownload:!1,dataDownload:!1,backgroundColor:void 0,width:void 0,height:void 0,relativeHeight:void 0,minHeight:void 0,padding:"0",theme:i?.theme,...E?{highlightedDataPoints:E,highlightedIds:E?.map(e=>`${e}`),highlightedLines:E?.map(e=>e)}:{}}})]}):l.jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center p-4",children:l.jsxRuntimeExports.jsx(ne.w,{})})})}exports.SingleGraphDashboard=de;
|
|
2
2
|
//# sourceMappingURL=SingleGraphDashboard.cjs.map
|
|
@@ -460,6 +460,7 @@ declare interface GraphSettingsDataType {
|
|
|
460
460
|
dotBorderColor?: string;
|
|
461
461
|
mapColorLegendTitle?: string;
|
|
462
462
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
463
|
+
trackColor?: string;
|
|
463
464
|
}
|
|
464
465
|
|
|
465
466
|
declare type GraphType = GraphTypeForGriddedGraph;
|
|
@@ -7,7 +7,7 @@ import { j as V, D as M } from "./DropdownSelect-BbdPQa2k.js";
|
|
|
7
7
|
import { b as A, y as H, h as O, c as da, $ as K, P as Q } from "./checkIfMultiple-CIRtG0KE.js";
|
|
8
8
|
import { w as ha } from "./Spinner-D7rnnwnA.js";
|
|
9
9
|
import { G as ca } from "./GraphContainer-CRqzdKu2.js";
|
|
10
|
-
import { G as fa } from "./GraphEl-
|
|
10
|
+
import { G as fa } from "./GraphEl-CRrAlbcr.js";
|
|
11
11
|
import { f as ga, a as pa, b as ma, c as Ca, t as va } from "./fetchAndParseData-BpqkBPQL.js";
|
|
12
12
|
import { a as Ia, t as ba } from "./transformDataForAggregation-j34UL73s.js";
|
|
13
13
|
import { g as X } from "./getUniqValue-DsqSii6M.js";
|
|
@@ -483,6 +483,7 @@ declare interface GraphSettingsDataType {
|
|
|
483
483
|
dotBorderColor?: string;
|
|
484
484
|
mapColorLegendTitle?: string;
|
|
485
485
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
486
|
+
trackColor?: string;
|
|
486
487
|
}
|
|
487
488
|
|
|
488
489
|
declare type GraphType = GraphTypeForGriddedGraph;
|
package/dist/SparkLine.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CHPV5EwG-CTPQjnHt.cjs"),M=require("react"),Rt=require("./parse-hMnG_lRV.cjs"),_t=require("./index-Cno4Q0YE.cjs"),Ct=require("./Tooltip-uUdw6wJL.cjs"),bt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),wt=require("./time-CZd5YLSP.cjs"),$t=require("./linear-BwPAspcq.cjs"),Dt=require("./area-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CHPV5EwG-CTPQjnHt.cjs"),M=require("react"),Rt=require("./parse-hMnG_lRV.cjs"),_t=require("./index-Cno4Q0YE.cjs"),Ct=require("./Tooltip-uUdw6wJL.cjs"),bt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),wt=require("./time-CZd5YLSP.cjs"),$t=require("./linear-BwPAspcq.cjs"),Dt=require("./area-C1gxfNGD.cjs"),Mt=require("./line-DaEMhXmx.cjs"),vt=require("./step-BZ3C8QFW.cjs"),kt=require("./select-Bnfk0lJx.cjs"),Nt=require("./init-DU0ybBc_.cjs"),Ot=require("./pointer-Dkq5NV1q.cjs"),Gt=require("./GraphFooter.cjs"),At=require("./GraphHeader.cjs"),Ht=require("./Colors.cjs"),It=require("./generateRandomString-B5zBiJzS.cjs"),St=require("./GraphContainer-d8A46BK2.cjs");function Pt(e){const t=r.compilerRuntimeExports.c(71),{data:j,width:w,height:V,lineColor:a,dateFormat:l,areaId:S,leftMargin:c,rightMargin:$,topMargin:rt,bottomMargin:nt,tooltip:D,onSeriesMouseOver:W,minValue:Y,maxValue:B,curveType:X,styles:k,classNames:q,customLayers:R}=e,it=X==="linear"?Mt.curveLinear:X==="step"?vt.curveStep:X==="stepAfter"?vt.stepAfter:X==="stepBefore"?vt.stepBefore:vt.monotoneX,[f,st]=M.useState(void 0),[N,at]=M.useState(void 0),[U,ct]=M.useState(void 0);let z;t[0]!==nt||t[1]!==c||t[2]!==$||t[3]!==rt?(z={top:rt,bottom:nt,left:c,right:$},t[0]=nt,t[1]=c,t[2]=$,t[3]=rt,t[4]=z):z=t[4];const _=z,O=M.useRef(null);let J;t[5]!==l?(J=d=>({...d,date:Rt.parse(`${d.date}`,l,new Date)}),t[5]=l,t[6]=J):J=t[6];const o=_t.orderBy(j.map(J),["date"],["asc"]),n=w-_.left-_.right,i=V-_.top-_.bottom,ut=o[0].date,pt=o[o.length-1].date,K=Math.min(...o.map(te).filter(Zt))!==1/0?Math.min(...o.map(Qt).filter(Kt))>0?0:Math.min(...o.map(Jt).filter(zt)):0,G=Math.max(...o.map(Ut).filter(Xt))!==1/0?Math.max(...o.map(Bt).filter(Yt)):0,s=wt.time().domain([ut,pt]).range([0,n]);let A;t[7]!==K||t[8]!==Y?(A=bt.checkIfNullOrUndefined(Y)?K:Y,t[7]=K,t[8]=Y,t[9]=A):A=t[9];let H;t[10]!==G||t[11]!==B?(H=bt.checkIfNullOrUndefined(B)?G>0?G:0:B,t[10]=G,t[11]=B,t[12]=H):H=t[12];const I=$t.linear().domain([A,H]).range([i,0]).nice(),lt=Dt.area().x(d=>s(d.date)).y1(d=>I(d.y)).y0(i).curve(it),mt=Mt.line().x(d=>s(d.date)).y(d=>I(d.y)).curve(it);M.useEffect(()=>{const d=jt=>{const Et=o[Nt.bisectCenter(o.map(Wt),s.invert(Ot.pointer(jt)[0]),0)];st(Et||o[o.length-1]),W?.(Et||o[o.length-1]),ct(jt.clientY),at(jt.clientX)},qt=()=>{st(void 0),W?.(void 0),at(void 0),ct(void 0)};kt.select(O.current).on("mousemove",d).on("mouseout",qt),W?.(void 0)},[s,o,W]);let P;t[13]!==S||t[14]!==a?(P=S?r.jsxRuntimeExports.jsxs("linearGradient",{id:S,x1:"0",x2:"0",y1:"0",y2:"1",children:[r.jsxRuntimeExports.jsx("stop",{style:{stopColor:a},stopOpacity:"0.1",offset:"0%"}),r.jsxRuntimeExports.jsx("stop",{style:{stopColor:a},stopOpacity:"0",offset:"100%"})]}):null,t[13]=S,t[14]=a,t[15]=P):P=t[15];let F;t[16]!==R?(F=R.filter(Vt).map(Tt),t[16]=R,t[17]=F):F=t[17];const Q=q?.xAxis?.labels;let x;t[18]!==Q?(x=r.mo("xs:max-[360px]:hidden fill-primary-gray-700 dark:fill-primary-gray-300 text-[9px] md:text-[10px] lg:text-xs",Q),t[18]=Q,t[19]=x):x=t[19];const Z=o[o.length-1];let h;t[20]!==Z.date||t[21]!==s?(h=s(Z.date),t[20]=Z.date,t[21]=s,t[22]=h):h=t[22];const dt=k?.xAxis?.labels;let g;t[23]!==dt?(g={textAnchor:"end",...dt},t[23]=dt,t[24]=g):g=t[24];const ft=o[o.length-1];let E;t[25]!==l||t[26]!==ft.date?(E=Rt.format(ft.date,l),t[25]=l,t[26]=ft.date,t[27]=E):E=t[27];let C;t[28]!==i||t[29]!==g||t[30]!==E||t[31]!==x||t[32]!==h?(C=r.jsxRuntimeExports.jsx("text",{className:x,y:i,x:h,style:g,dy:"1em",children:E}),t[28]=i,t[29]=g,t[30]=E,t[31]=x,t[32]=h,t[33]=C):C=t[33];let y;t[34]!==o||t[35]!==s?(y=s(o[0].date),t[34]=o,t[35]=s,t[36]=y):y=t[36];const L=k?.xAxis?.labels;let b;t[37]!==L?(b={textAnchor:"start",...L},t[37]=L,t[38]=b):b=t[38];const tt=q?.xAxis?.labels;let u;t[39]!==tt?(u=r.mo("xs:max-[360px]:hidden fill-primary-gray-700 dark:fill-primary-gray-300 text-[9px] md:text-[10px] lg:text-xs",tt),t[39]=tt,t[40]=u):u=t[40];let p;t[41]!==o||t[42]!==l?(p=Rt.format(o[0].date,l),t[41]=o,t[42]=l,t[43]=p):p=t[43];let m;t[44]!==i||t[45]!==y||t[46]!==b||t[47]!==u||t[48]!==p?(m=r.jsxRuntimeExports.jsx("text",{y:i,x:y,style:b,className:u,dy:"1em",children:p}),t[44]=i,t[45]=y,t[46]=b,t[47]=u,t[48]=p,t[49]=m):m=t[49];let v;t[50]!==C||t[51]!==m?(v=r.jsxRuntimeExports.jsxs("g",{children:[C,m]}),t[50]=C,t[51]=m,t[52]=v):v=t[52];const T=`url(#${S})`;let et;t[53]!==T?(et={fill:T,clipPath:"url(#clip)"},t[53]=T,t[54]=et):et=t[54];let ot;t[55]!==a?(ot={stroke:a,fill:"none",strokeWidth:2},t[55]=a,t[56]=ot):ot=t[56];let xt;t[57]!==R?(xt=R.filter(Lt).map(Ft),t[57]=R,t[58]=xt):xt=t[58];let ht;t[59]===Symbol.for("react.memo_cache_sentinel")?(ht={fill:"none",pointerEvents:"all"},t[59]=ht):ht=t[59];let gt;t[60]!==O||t[61]!==i||t[62]!==n?(gt=r.jsxRuntimeExports.jsx("rect",{ref:O,style:ht,width:n,height:i}),t[60]=O,t[61]=i,t[62]=n,t[63]=gt):gt=t[63];let yt;return t[64]!==q?.tooltip||t[65]!==N||t[66]!==U||t[67]!==f||t[68]!==k?.tooltip||t[69]!==D?(yt=f&&D&&N&&U?r.jsxRuntimeExports.jsx(Ct.Tooltip,{data:f,body:D,xPos:N,yPos:U,backgroundStyle:k?.tooltip,className:q?.tooltip}):null,t[64]=q?.tooltip,t[65]=N,t[66]=U,t[67]=f,t[68]=k?.tooltip,t[69]=D,t[70]=yt):yt=t[70],r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsxs("svg",{width:`${w}px`,height:`${V}px`,viewBox:`0 0 ${w} ${V}`,direction:"ltr",children:[P,r.jsxRuntimeExports.jsxs("g",{transform:`translate(${_.left},${_.top})`,children:[F,v,r.jsxRuntimeExports.jsxs("g",{children:[r.jsxRuntimeExports.jsx("path",{d:lt(o)||"",style:et}),r.jsxRuntimeExports.jsx("path",{d:mt(o)||"",style:ot}),f?r.jsxRuntimeExports.jsx("circle",{y1:0,cy:I(f.y),cx:s(f.date),r:5,style:{fill:a}}):null]}),xt,gt]})]}),yt]})}function Ft(e){return e.layer}function Lt(e){return e.position==="after"}function Tt(e){return e.layer}function Vt(e){return e.position==="before"}function Wt(e){return e.date}function Yt(e){return e!=null}function Bt(e){return e.y}function Xt(e){return e!=null}function Ut(e){return e.y}function zt(e){return e!=null}function Jt(e){return e.y}function Kt(e){return e!=null}function Qt(e){return e.y}function Zt(e){return e!=null}function te(e){return e.y}function ee(e){const t=r.compilerRuntimeExports.c(60),{data:j,graphTitle:w,lineColor:V,sources:a,graphDescription:l,height:S,width:c,footNote:$,dateFormat:rt,area:nt,padding:D,backgroundColor:W,leftMargin:Y,rightMargin:B,topMargin:X,bottomMargin:k,tooltip:q,relativeHeight:R,onSeriesMouseOver:it,graphID:f,minValue:st,maxValue:N,graphDownload:at,dataDownload:U,language:ct,minHeight:z,theme:_,ariaLabel:O,curveType:J,styles:o,classNames:n,customLayers:i}=e,ut=rt===void 0?"yyyy":rt,pt=nt===void 0?!1:nt,K=W===void 0?!0:W,G=Y===void 0?5:Y,s=B===void 0?5:B,A=X===void 0?10:X,H=k===void 0?20:k,I=at===void 0?!1:at,lt=U===void 0?!1:U,mt=ct===void 0?"en":ct,P=z===void 0?0:z,F=_===void 0?"light":_,Q=J===void 0?"curve":J;let x;t[0]!==i?(x=i===void 0?[]:i,t[0]=i,t[1]=x):x=t[1];const Z=x,[h,dt]=M.useState(0),[g,ft]=M.useState(0),E=M.useRef(null),C=M.useRef(null);let y,L;t[2]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{const et=new ResizeObserver(ot=>{dt(ot[0].target.clientWidth||620),ft(ot[0].target.clientHeight||480)});return E.current&&et.observe(E.current),()=>et.disconnect()},L=[],t[2]=y,t[3]=L):(y=t[2],L=t[3]),M.useEffect(y,L);const b=n?.graphContainer,tt=o?.graphContainer;let u;t[4]!==n?.description||t[5]!==n?.title||t[6]!==j||t[7]!==lt||t[8]!==l||t[9]!==I||t[10]!==w||t[11]!==o?.description||t[12]!==o?.title||t[13]!==c?(u=w||l||I||lt?r.jsxRuntimeExports.jsx(At.GraphHeader,{styles:{title:o?.title,description:o?.description},classNames:{title:n?.title,description:n?.description},graphTitle:w,graphDescription:l,width:c,graphDownload:I?C:void 0,dataDownload:lt?j.map(se).filter(ie).length>0?j.map(ne).filter(re):j.filter(oe):null}):null,t[4]=n?.description,t[5]=n?.title,t[6]=j,t[7]=lt,t[8]=l,t[9]=I,t[10]=w,t[11]=o?.description,t[12]=o?.title,t[13]=c,t[14]=u):u=t[14];let p;t[15]!==pt||t[16]!==H||t[17]!==n||t[18]!==Q||t[19]!==Z||t[20]!==j||t[21]!==ut||t[22]!==G||t[23]!==V||t[24]!==N||t[25]!==st||t[26]!==it||t[27]!==s||t[28]!==o||t[29]!==g||t[30]!==h||t[31]!==q||t[32]!==A?(p=h&&g?r.jsxRuntimeExports.jsx(Pt,{data:j,lineColor:V||Ht.Colors.primaryColors["blue-600"],width:h,height:g,dateFormat:ut,areaId:pt?It.generateRandomString(8):void 0,leftMargin:G,rightMargin:s,topMargin:A,bottomMargin:H,tooltip:q,onSeriesMouseOver:it,minValue:st,maxValue:N,curveType:Q,styles:o,classNames:n,customLayers:Z}):null,t[15]=pt,t[16]=H,t[17]=n,t[18]=Q,t[19]=Z,t[20]=j,t[21]=ut,t[22]=G,t[23]=V,t[24]=N,t[25]=st,t[26]=it,t[27]=s,t[28]=o,t[29]=g,t[30]=h,t[31]=q,t[32]=A,t[33]=p):p=t[33];let m;t[34]!==p?(m=r.jsxRuntimeExports.jsx(St.GraphArea,{ref:E,children:p}),t[34]=p,t[35]=m):m=t[35];let v;t[36]!==n?.footnote||t[37]!==n?.source||t[38]!==$||t[39]!==a||t[40]!==o?.footnote||t[41]!==o?.source||t[42]!==c?(v=a||$?r.jsxRuntimeExports.jsx(Gt.GraphFooter,{styles:{footnote:o?.footnote,source:o?.source},classNames:{footnote:n?.footnote,source:n?.source},sources:a,footNote:$,width:c}):null,t[36]=n?.footnote,t[37]=n?.source,t[38]=$,t[39]=a,t[40]=o?.footnote,t[41]=o?.source,t[42]=c,t[43]=v):v=t[43];let T;return t[44]!==O||t[45]!==K||t[46]!==f||t[47]!==S||t[48]!==mt||t[49]!==P||t[50]!==D||t[51]!==R||t[52]!==b||t[53]!==tt||t[54]!==u||t[55]!==m||t[56]!==v||t[57]!==F||t[58]!==c?(T=r.jsxRuntimeExports.jsxs(St.GraphContainer,{className:b,style:tt,id:f,ref:C,"aria-label":O,backgroundColor:K,theme:F,language:mt,minHeight:P,width:c,height:S,relativeHeight:R,padding:D,children:[u,m,v]}),t[44]=O,t[45]=K,t[46]=f,t[47]=S,t[48]=mt,t[49]=P,t[50]=D,t[51]=R,t[52]=b,t[53]=tt,t[54]=u,t[55]=m,t[56]=v,t[57]=F,t[58]=c,t[59]=T):T=t[59],T}function oe(e){return e!==void 0}function re(e){return e!==void 0}function ne(e){return e.data}function ie(e){return e!==void 0}function se(e){return e.data}exports.SparkLine=ee;
|
|
2
2
|
//# sourceMappingURL=SparkLine.cjs.map
|
package/dist/SparkLine.js
CHANGED
|
@@ -6,8 +6,8 @@ import { T as Nt } from "./Tooltip-Dj5eVppQ.js";
|
|
|
6
6
|
import { c as $t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
7
|
import { t as kt } from "./time-BUL-dwnK.js";
|
|
8
8
|
import { a as Ot } from "./linear-BqltdMeF.js";
|
|
9
|
-
import { a as Gt } from "./area-
|
|
10
|
-
import { c as Ht, l as Rt } from "./line-
|
|
9
|
+
import { a as Gt } from "./area-B6r7cv2o.js";
|
|
10
|
+
import { c as Ht, l as Rt } from "./line-DFlZsxI1.js";
|
|
11
11
|
import { c as Et, s as Ft, a as It, m as Lt } from "./step-BrDul-H4.js";
|
|
12
12
|
import { s as Pt } from "./select-DKy99ogv.js";
|
|
13
13
|
import { a as Tt } from "./init-BhZylTFx.js";
|
package/dist/Types.d.ts
CHANGED
|
@@ -667,6 +667,7 @@ export declare interface GraphSettingsDataType {
|
|
|
667
667
|
dotBorderColor?: string;
|
|
668
668
|
mapColorLegendTitle?: string;
|
|
669
669
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
670
|
+
trackColor?: string;
|
|
670
671
|
}
|
|
671
672
|
|
|
672
673
|
export declare type GraphType = GraphTypeForGriddedGraph;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as X, x as Y, y as b, l as j } from "./line-
|
|
1
|
+
import { c as i, a as z } from "./array-USo-Szhp.js";
|
|
2
|
+
import { w as A, c as X, x as Y, y as b, l as j } from "./line-DFlZsxI1.js";
|
|
3
3
|
function P(r, f, l) {
|
|
4
|
-
var c = null, p = i(!0), o = null, a = X, u = null, x =
|
|
4
|
+
var c = null, p = i(!0), o = null, a = X, u = null, x = A(e);
|
|
5
5
|
r = typeof r == "function" ? r : r === void 0 ? Y : i(+r), f = typeof f == "function" ? f : f === void 0 ? i(0) : i(+f), l = typeof l == "function" ? l : l === void 0 ? b : i(+l);
|
|
6
6
|
function e(n) {
|
|
7
|
-
var t, S, g, h = (n =
|
|
7
|
+
var t, S, g, h = (n = z(n)).length, s, m = !1, v, w = new Array(h), E = new Array(h);
|
|
8
8
|
for (o == null && (u = a(v = x())), t = 0; t <= h; ++t) {
|
|
9
9
|
if (!(t < h && p(s = n[t], t, n)) === m)
|
|
10
10
|
if (m = !m)
|
|
@@ -50,4 +50,4 @@ function P(r, f, l) {
|
|
|
50
50
|
export {
|
|
51
51
|
P as a
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=area-
|
|
53
|
+
//# sourceMappingURL=area-B6r7cv2o.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area-
|
|
1
|
+
{"version":3,"file":"area-B6r7cv2o.js","sources":["../node_modules/d3-shape/src/area.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x0, y0, y1) {\n var x1 = null,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(area);\n\n x0 = typeof x0 === \"function\" ? x0 : (x0 === undefined) ? pointX : constant(+x0);\n y0 = typeof y0 === \"function\" ? y0 : (y0 === undefined) ? constant(0) : constant(+y0);\n y1 = typeof y1 === \"function\" ? y1 : (y1 === undefined) ? pointY : constant(+y1);\n\n function area(data) {\n var i,\n j,\n k,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n"],"names":["area","x0","y0","y1","x1","defined","constant","context","curve","curveLinear","output","path","withPath","pointX","pointY","data","i","j","k","n","array","d","defined0","buffer","x0z","y0z","arealine","line","_"],"mappings":";;AAOe,SAAAA,EAASC,GAAIC,GAAIC,GAAI;AAClC,MAAIC,IAAK,MACLC,IAAUC,EAAS,EAAI,GACvBC,IAAU,MACVC,IAAQC,GACRC,IAAS,MACTC,IAAOC,EAASZ,CAAI;AAExB,EAAAC,IAAK,OAAOA,KAAO,aAAaA,IAAMA,MAAO,SAAaY,IAASP,EAAS,CAACL,CAAE,GAC/EC,IAAK,OAAOA,KAAO,aAAaA,IAAMA,MAAO,SAAaI,EAAS,CAAC,IAAIA,EAAS,CAACJ,CAAE,GACpFC,IAAK,OAAOA,KAAO,aAAaA,IAAMA,MAAO,SAAaW,IAASR,EAAS,CAACH,CAAE;AAE/E,WAASH,EAAKe,GAAM;AAClB,QAAIC,GACAC,GACAC,GACAC,KAAKJ,IAAOK,EAAML,CAAI,GAAG,QACzBM,GACAC,IAAW,IACXC,GACAC,IAAM,IAAI,MAAML,CAAC,GACjBM,IAAM,IAAI,MAAMN,CAAC;AAIrB,SAFIZ,KAAW,SAAMG,IAASF,EAAMe,IAASZ,GAAM,IAE9CK,IAAI,GAAGA,KAAKG,GAAG,EAAEH,GAAG;AACvB,UAAI,EAAEA,IAAIG,KAAKd,EAAQgB,IAAIN,EAAKC,CAAC,GAAGA,GAAGD,CAAI,OAAOO;AAChD,YAAIA,IAAW,CAACA;AACd,UAAAL,IAAID,GACJN,EAAO,UAAS,GAChBA,EAAO,UAAS;AAAA,aACX;AAGL,eAFAA,EAAO,QAAO,GACdA,EAAO,UAAS,GACXQ,IAAIF,IAAI,GAAGE,KAAKD,GAAG,EAAEC;AACxB,YAAAR,EAAO,MAAMc,EAAIN,CAAC,GAAGO,EAAIP,CAAC,CAAC;AAE7B,UAAAR,EAAO,QAAO,GACdA,EAAO,QAAO;AAAA,QAChB;AAEF,MAAIY,MACFE,EAAIR,CAAC,IAAI,CAACf,EAAGoB,GAAGL,GAAGD,CAAI,GAAGU,EAAIT,CAAC,IAAI,CAACd,EAAGmB,GAAGL,GAAGD,CAAI,GACjDL,EAAO,MAAMN,IAAK,CAACA,EAAGiB,GAAGL,GAAGD,CAAI,IAAIS,EAAIR,CAAC,GAAGb,IAAK,CAACA,EAAGkB,GAAGL,GAAGD,CAAI,IAAIU,EAAIT,CAAC,CAAC;AAAA,IAE7E;AAEA,QAAIO,EAAQ,QAAOb,IAAS,MAAMa,IAAS,MAAM;AAAA,EACnD;AAEA,WAASG,IAAW;AAClB,WAAOC,EAAI,EAAG,QAAQtB,CAAO,EAAE,MAAMG,CAAK,EAAE,QAAQD,CAAO;AAAA,EAC7D;AAEA,SAAAP,EAAK,IAAI,SAAS4B,GAAG;AACnB,WAAO,UAAU,UAAU3B,IAAK,OAAO2B,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAGxB,IAAK,MAAMJ,KAAQC;AAAA,EACjG,GAEAD,EAAK,KAAK,SAAS4B,GAAG;AACpB,WAAO,UAAU,UAAU3B,IAAK,OAAO2B,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAG5B,KAAQC;AAAA,EACtF,GAEAD,EAAK,KAAK,SAAS4B,GAAG;AACpB,WAAO,UAAU,UAAUxB,IAAKwB,KAAK,OAAO,OAAO,OAAOA,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAG5B,KAAQI;AAAA,EACzG,GAEAJ,EAAK,IAAI,SAAS4B,GAAG;AACnB,WAAO,UAAU,UAAU1B,IAAK,OAAO0B,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAGzB,IAAK,MAAMH,KAAQE;AAAA,EACjG,GAEAF,EAAK,KAAK,SAAS4B,GAAG;AACpB,WAAO,UAAU,UAAU1B,IAAK,OAAO0B,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAG5B,KAAQE;AAAA,EACtF,GAEAF,EAAK,KAAK,SAAS4B,GAAG;AACpB,WAAO,UAAU,UAAUzB,IAAKyB,KAAK,OAAO,OAAO,OAAOA,KAAM,aAAaA,IAAItB,EAAS,CAACsB,CAAC,GAAG5B,KAAQG;AAAA,EACzG,GAEAH,EAAK,SACLA,EAAK,SAAS,WAAW;AACvB,WAAO0B,EAAQ,EAAG,EAAEzB,CAAE,EAAE,EAAEC,CAAE;AAAA,EAC9B,GAEAF,EAAK,SAAS,WAAW;AACvB,WAAO0B,EAAQ,EAAG,EAAEzB,CAAE,EAAE,EAAEE,CAAE;AAAA,EAC9B,GAEAH,EAAK,SAAS,WAAW;AACvB,WAAO0B,EAAQ,EAAG,EAAEtB,CAAE,EAAE,EAAEF,CAAE;AAAA,EAC9B,GAEAF,EAAK,UAAU,SAAS4B,GAAG;AACzB,WAAO,UAAU,UAAUvB,IAAU,OAAOuB,KAAM,aAAaA,IAAItB,EAAS,CAAC,CAACsB,CAAC,GAAG5B,KAAQK;AAAA,EAC5F,GAEAL,EAAK,QAAQ,SAAS4B,GAAG;AACvB,WAAO,UAAU,UAAUpB,IAAQoB,GAAGrB,KAAW,SAASG,IAASF,EAAMD,CAAO,IAAIP,KAAQQ;AAAA,EAC9F,GAEAR,EAAK,UAAU,SAAS4B,GAAG;AACzB,WAAO,UAAU,UAAUA,KAAK,OAAOrB,IAAUG,IAAS,OAAOA,IAASF,EAAMD,IAAUqB,CAAC,GAAG5B,KAAQO;AAAA,EACxG,GAEOP;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("./array-DMyR1sql.cjs"),p=require("./line-DaEMhXmx.cjs");function A(o,i,l){var c=null,h=r.constant(!0),f=null,a=p.curveLinear,u=null,z=p.withPath(t);o=typeof o=="function"?o:o===void 0?p.x:r.constant(+o),i=typeof i=="function"?i:i===void 0?r.constant(0):r.constant(+i),l=typeof l=="function"?l:l===void 0?p.y:r.constant(+l);function t(n){var e,q,s,d=(n=r.array(n)).length,g,m=!1,w,E=new Array(d),S=new Array(d);for(f==null&&(u=a(w=z())),e=0;e<=d;++e){if(!(e<d&&h(g=n[e],e,n))===m)if(m=!m)q=e,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),s=e-1;s>=q;--s)u.point(E[s],S[s]);u.lineEnd(),u.areaEnd()}m&&(E[e]=+o(g,e,n),S[e]=+i(g,e,n),u.point(c?+c(g,e,n):E[e],l?+l(g,e,n):S[e]))}if(w)return u=null,w+""||null}function v(){return p.line().defined(h).curve(a).context(f)}return t.x=function(n){return arguments.length?(o=typeof n=="function"?n:r.constant(+n),c=null,t):o},t.x0=function(n){return arguments.length?(o=typeof n=="function"?n:r.constant(+n),t):o},t.x1=function(n){return arguments.length?(c=n==null?null:typeof n=="function"?n:r.constant(+n),t):c},t.y=function(n){return arguments.length?(i=typeof n=="function"?n:r.constant(+n),l=null,t):i},t.y0=function(n){return arguments.length?(i=typeof n=="function"?n:r.constant(+n),t):i},t.y1=function(n){return arguments.length?(l=n==null?null:typeof n=="function"?n:r.constant(+n),t):l},t.lineX0=t.lineY0=function(){return v().x(o).y(i)},t.lineY1=function(){return v().x(o).y(l)},t.lineX1=function(){return v().x(c).y(i)},t.defined=function(n){return arguments.length?(h=typeof n=="function"?n:r.constant(!!n),t):h},t.curve=function(n){return arguments.length?(a=n,f!=null&&(u=a(f)),t):a},t.context=function(n){return arguments.length?(n==null?f=u=null:u=a(f=n),t):f},t}exports.area=A;
|
|
2
|
+
//# sourceMappingURL=area-C1gxfNGD.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area-
|
|
1
|
+
{"version":3,"file":"area-C1gxfNGD.cjs","sources":["../node_modules/d3-shape/src/area.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x0, y0, y1) {\n var x1 = null,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(area);\n\n x0 = typeof x0 === \"function\" ? x0 : (x0 === undefined) ? pointX : constant(+x0);\n y0 = typeof y0 === \"function\" ? y0 : (y0 === undefined) ? constant(0) : constant(+y0);\n y1 = typeof y1 === \"function\" ? y1 : (y1 === undefined) ? pointY : constant(+y1);\n\n function area(data) {\n var i,\n j,\n k,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n"],"names":["area","x0","y0","y1","x1","defined","constant","context","curve","curveLinear","output","path","withPath","pointX","pointY","data","i","j","k","n","array","d","defined0","buffer","x0z","y0z","arealine","line","_"],"mappings":"sFAOe,SAAAA,EAASC,EAAIC,EAAIC,EAAI,CAClC,IAAIC,EAAK,KACLC,EAAUC,EAAAA,SAAS,EAAI,EACvBC,EAAU,KACVC,EAAQC,EAAAA,YACRC,EAAS,KACTC,EAAOC,EAAAA,SAASZ,CAAI,EAExBC,EAAK,OAAOA,GAAO,WAAaA,EAAMA,IAAO,OAAaY,EAAAA,EAASP,WAAS,CAACL,CAAE,EAC/EC,EAAK,OAAOA,GAAO,WAAaA,EAAMA,IAAO,OAAaI,EAAAA,SAAS,CAAC,EAAIA,EAAAA,SAAS,CAACJ,CAAE,EACpFC,EAAK,OAAOA,GAAO,WAAaA,EAAMA,IAAO,OAAaW,EAAAA,EAASR,WAAS,CAACH,CAAE,EAE/E,SAASH,EAAKe,EAAM,CAClB,IAAIC,EACAC,EACAC,EACAC,GAAKJ,EAAOK,QAAML,CAAI,GAAG,OACzBM,EACAC,EAAW,GACXC,EACAC,EAAM,IAAI,MAAML,CAAC,EACjBM,EAAM,IAAI,MAAMN,CAAC,EAIrB,IAFIZ,GAAW,OAAMG,EAASF,EAAMe,EAASZ,GAAM,GAE9CK,EAAI,EAAGA,GAAKG,EAAG,EAAEH,EAAG,CACvB,GAAI,EAAEA,EAAIG,GAAKd,EAAQgB,EAAIN,EAAKC,CAAC,EAAGA,EAAGD,CAAI,KAAOO,EAChD,GAAIA,EAAW,CAACA,EACdL,EAAID,EACJN,EAAO,UAAS,EAChBA,EAAO,UAAS,MACX,CAGL,IAFAA,EAAO,QAAO,EACdA,EAAO,UAAS,EACXQ,EAAIF,EAAI,EAAGE,GAAKD,EAAG,EAAEC,EACxBR,EAAO,MAAMc,EAAIN,CAAC,EAAGO,EAAIP,CAAC,CAAC,EAE7BR,EAAO,QAAO,EACdA,EAAO,QAAO,CAChB,CAEEY,IACFE,EAAIR,CAAC,EAAI,CAACf,EAAGoB,EAAGL,EAAGD,CAAI,EAAGU,EAAIT,CAAC,EAAI,CAACd,EAAGmB,EAAGL,EAAGD,CAAI,EACjDL,EAAO,MAAMN,EAAK,CAACA,EAAGiB,EAAGL,EAAGD,CAAI,EAAIS,EAAIR,CAAC,EAAGb,EAAK,CAACA,EAAGkB,EAAGL,EAAGD,CAAI,EAAIU,EAAIT,CAAC,CAAC,EAE7E,CAEA,GAAIO,EAAQ,OAAOb,EAAS,KAAMa,EAAS,IAAM,IACnD,CAEA,SAASG,GAAW,CAClB,OAAOC,EAAAA,KAAI,EAAG,QAAQtB,CAAO,EAAE,MAAMG,CAAK,EAAE,QAAQD,CAAO,CAC7D,CAEA,OAAAP,EAAK,EAAI,SAAS4B,EAAG,CACnB,OAAO,UAAU,QAAU3B,EAAK,OAAO2B,GAAM,WAAaA,EAAItB,EAAAA,SAAS,CAACsB,CAAC,EAAGxB,EAAK,KAAMJ,GAAQC,CACjG,EAEAD,EAAK,GAAK,SAAS4B,EAAG,CACpB,OAAO,UAAU,QAAU3B,EAAK,OAAO2B,GAAM,WAAaA,EAAItB,WAAS,CAACsB,CAAC,EAAG5B,GAAQC,CACtF,EAEAD,EAAK,GAAK,SAAS4B,EAAG,CACpB,OAAO,UAAU,QAAUxB,EAAKwB,GAAK,KAAO,KAAO,OAAOA,GAAM,WAAaA,EAAItB,EAAAA,SAAS,CAACsB,CAAC,EAAG5B,GAAQI,CACzG,EAEAJ,EAAK,EAAI,SAAS4B,EAAG,CACnB,OAAO,UAAU,QAAU1B,EAAK,OAAO0B,GAAM,WAAaA,EAAItB,EAAAA,SAAS,CAACsB,CAAC,EAAGzB,EAAK,KAAMH,GAAQE,CACjG,EAEAF,EAAK,GAAK,SAAS4B,EAAG,CACpB,OAAO,UAAU,QAAU1B,EAAK,OAAO0B,GAAM,WAAaA,EAAItB,WAAS,CAACsB,CAAC,EAAG5B,GAAQE,CACtF,EAEAF,EAAK,GAAK,SAAS4B,EAAG,CACpB,OAAO,UAAU,QAAUzB,EAAKyB,GAAK,KAAO,KAAO,OAAOA,GAAM,WAAaA,EAAItB,EAAAA,SAAS,CAACsB,CAAC,EAAG5B,GAAQG,CACzG,EAEAH,EAAK,OACLA,EAAK,OAAS,UAAW,CACvB,OAAO0B,EAAQ,EAAG,EAAEzB,CAAE,EAAE,EAAEC,CAAE,CAC9B,EAEAF,EAAK,OAAS,UAAW,CACvB,OAAO0B,EAAQ,EAAG,EAAEzB,CAAE,EAAE,EAAEE,CAAE,CAC9B,EAEAH,EAAK,OAAS,UAAW,CACvB,OAAO0B,EAAQ,EAAG,EAAEtB,CAAE,EAAE,EAAEF,CAAE,CAC9B,EAEAF,EAAK,QAAU,SAAS4B,EAAG,CACzB,OAAO,UAAU,QAAUvB,EAAU,OAAOuB,GAAM,WAAaA,EAAItB,EAAAA,SAAS,CAAC,CAACsB,CAAC,EAAG5B,GAAQK,CAC5F,EAEAL,EAAK,MAAQ,SAAS4B,EAAG,CACvB,OAAO,UAAU,QAAUpB,EAAQoB,EAAGrB,GAAW,OAASG,EAASF,EAAMD,CAAO,GAAIP,GAAQQ,CAC9F,EAEAR,EAAK,QAAU,SAAS4B,EAAG,CACzB,OAAO,UAAU,QAAUA,GAAK,KAAOrB,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAUqB,CAAC,EAAG5B,GAAQO,CACxG,EAEOP,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-DMyR1sql.cjs","sources":["../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/array.js"],"sourcesContent":["export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["constant","x","array"],"mappings":"aAAe,SAAAA,EAASC,EAAG,CACzB,OAAO,UAAoB,CACzB,OAAOA,CACT,CACF,CCFe,SAAAC,EAASD,EAAG,CACzB,OAAO,OAAOA,GAAM,UAAY,WAAYA,EACxCA,EACA,MAAM,KAAKA,CAAC,CAClB","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-USo-Szhp.js","sources":["../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/array.js"],"sourcesContent":["export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["constant","x","array"],"mappings":"AAAe,SAAAA,EAASC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACT;AACF;ACFe,SAAAC,EAASD,GAAG;AACzB,SAAO,OAAOA,KAAM,YAAY,YAAYA,IACxCA,IACA,MAAM,KAAKA,CAAC;AAClB;","x_google_ignoreList":[0,1]}
|