@arcgis/charts-components 5.2.0-next.61 → 5.2.0-next.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/cdn/{OT7PLFBK.js → 3IUZSUBJ.js} +1 -1
  2. package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
  3. package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
  4. package/dist/cdn/{MU6ZYADT.js → 4HNA5BEL.js} +1 -1
  5. package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
  6. package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
  7. package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
  8. package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
  9. package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
  10. package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
  11. package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
  12. package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
  13. package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
  14. package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
  15. package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
  16. package/dist/cdn/{46PXO7ZC.js → BIABAOQA.js} +1 -1
  17. package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
  18. package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
  19. package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
  20. package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
  21. package/dist/cdn/DA4QOTYN.js +2 -0
  22. package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
  23. package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
  24. package/dist/cdn/{ONKEO3Z2.js → ELRXL4GL.js} +1 -1
  25. package/dist/cdn/{Q5OFF4FE.js → FLA3PJ5I.js} +18 -18
  26. package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
  27. package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
  28. package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
  29. package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
  30. package/dist/cdn/{TU3LYEK3.js → GRIVRWCF.js} +1 -1
  31. package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
  32. package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
  33. package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
  34. package/dist/cdn/{JUON3AJY.js → IP7NR32G.js} +1 -1
  35. package/dist/cdn/{XV4LD73L.js → IPMFDZBI.js} +1 -1
  36. package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
  37. package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
  38. package/dist/cdn/JT2CHRVO.js +2 -0
  39. package/dist/cdn/{WSL76GA5.js → JYS5HVHP.js} +1 -1
  40. package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
  41. package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
  42. package/dist/cdn/{TVG7KD3H.js → LK7Y2TPS.js} +1 -1
  43. package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
  44. package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
  45. package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
  46. package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
  47. package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
  48. package/dist/cdn/{TQYJM66E.js → MRA3XRKD.js} +1 -1
  49. package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
  50. package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
  51. package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
  52. package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
  53. package/dist/cdn/{X3S4M6JL.js → P7VFYZRI.js} +1 -1
  54. package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
  55. package/dist/cdn/PZUVU7CC.js +3 -0
  56. package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
  57. package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
  58. package/dist/cdn/{LIBE4XVH.js → QS6QHTAG.js} +1 -1
  59. package/dist/cdn/{VM4XLVMS.js → QSFEGKYQ.js} +1 -1
  60. package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
  61. package/dist/cdn/{5JXEO4VE.js → R7VPFCG2.js} +1 -1
  62. package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
  63. package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
  64. package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
  65. package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
  66. package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
  67. package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
  68. package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
  69. package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
  70. package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
  71. package/dist/cdn/{VPYL3RVN.js → WOE4UHYG.js} +1 -1
  72. package/dist/cdn/{FHBCVW5T.js → WUUBA4AY.js} +1 -1
  73. package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
  74. package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
  75. package/dist/cdn/{4ITNOJXC.js → X7BEP5KL.js} +1 -1
  76. package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
  77. package/dist/cdn/{MPGHOXLW.js → XS5G7ML2.js} +1 -1
  78. package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
  79. package/dist/cdn/{MI6AKTXQ.js → YQJBJRP7.js} +1 -1
  80. package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
  81. package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
  82. package/dist/cdn/index.js +1 -1
  83. package/dist/cdn/model/shared/setup-utils.js +1 -1
  84. package/dist/chunks/class-breaks.js +66 -66
  85. package/dist/chunks/data.js +1 -1
  86. package/dist/chunks/index2.js +2026 -2088
  87. package/dist/chunks/index4.js +1 -1
  88. package/dist/chunks/serial-chart-data.js +1 -2
  89. package/dist/chunks/utils.js +30 -32
  90. package/dist/chunks/web-component-utils.js +38 -38
  91. package/dist/components/arcgis-chart/customElement.js +2226 -2210
  92. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  93. package/dist/docs/api.json +1 -1
  94. package/dist/docs/docs.json +1 -1
  95. package/dist/docs/web-types.json +1 -1
  96. package/dist/index.js +171 -172
  97. package/dist/utils/chart-config/converter/index.js +26 -26
  98. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  99. package/dist/utils/data/index.d.ts +1 -2
  100. package/dist/utils/layer/query-features/index.d.ts +2 -18
  101. package/dist/utils/layer/query-parser/index.d.ts +1 -2
  102. package/package.json +3 -3
  103. package/dist/cdn/54W4C75M.js +0 -2
  104. package/dist/cdn/PBO5VH6A.js +0 -2
  105. package/dist/cdn/V6LKZUEZ.js +0 -3
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import W from "@arcgis/core/Color.js";
3
3
  import { createClassBreaksRenderer as q } from "@arcgis/core/smartMapping/renderers/color.js";
4
- import { a3 as G, cm as _ } from "./index2.js";
4
+ import { a3 as G, cl as _ } from "./index2.js";
5
5
  import { cloneDeep as J, memoize as Y, isEqual as T, sortBy as Q, flatMap as U } from "lodash-es";
6
6
  import { getSchemes as X } from "@arcgis/core/smartMapping/symbology/color.js";
7
7
  import { k as L } from "./index.js";
@@ -70,8 +70,8 @@ function v(e) {
70
70
  }
71
71
  function te(e) {
72
72
  const { categoryField: o, numericFields: t, configFields: s, inlineData: c } = e;
73
- let n = {};
74
- return s && Object.keys(s).length > 0 && "dataItems" in c && (n = {
73
+ let l = {};
74
+ return s && Object.keys(s).length > 0 && "dataItems" in c && (l = {
75
75
  type: "uniqueValue",
76
76
  field1: o,
77
77
  uniqueValueInfos: []
@@ -79,8 +79,8 @@ function te(e) {
79
79
  const a = r[o];
80
80
  if (a != null) {
81
81
  let i = { value: a };
82
- t.forEach((l) => {
83
- const f = x(r[`${s.fillColor}_${l}`]), u = r[`${s.fillOpacity}_${l}`], p = r[`${s.fillStyle}_${l}`], m = r[`${s.markerSize}_${l}`], d = x(r[`${s.outlineColor}_${l}`]), R = r[`${s.outlineOpacity}_${l}`], g = r[`${s.outlineWidth}_${l}`], N = r[`${s.outlineStyle}_${l}`], $ = x(r[`${s.lineColor}_${l}`]), B = r[`${s.lineOpacity}_${l}`], S = r[`${s.lineWidth}_${l}`], O = r[`${s.lineStyle}_${l}`], A = r[`${s.displayLabel}_${l}`];
82
+ t.forEach((n) => {
83
+ const f = x(r[`${s.fillColor}_${n}`]), u = r[`${s.fillOpacity}_${n}`], p = r[`${s.fillStyle}_${n}`], m = r[`${s.markerSize}_${n}`], d = x(r[`${s.outlineColor}_${n}`]), R = r[`${s.outlineOpacity}_${n}`], g = r[`${s.outlineWidth}_${n}`], N = r[`${s.outlineStyle}_${n}`], $ = x(r[`${s.lineColor}_${n}`]), B = r[`${s.lineOpacity}_${n}`], S = r[`${s.lineWidth}_${n}`], O = r[`${s.lineStyle}_${n}`], A = r[`${s.displayLabel}_${n}`];
84
84
  if (typeof A == "string" && (i = {
85
85
  ...i,
86
86
  label: A
@@ -100,28 +100,28 @@ function te(e) {
100
100
  const h = { type: k.SLS };
101
101
  $ && (B && typeof B == "number" && ($[3] = B), h.color = $), v(O) && (h.style = O), S != null && typeof S == "number" && (h.width = S), i.symbol = h;
102
102
  }
103
- }), (i.label || i.symbol) && n.uniqueValueInfos.push(i);
103
+ }), (i.label || i.symbol) && l.uniqueValueInfos.push(i);
104
104
  }
105
- })), n;
105
+ })), l;
106
106
  }
107
107
  function j(e) {
108
108
  const { numericFields: o, configFields: t, inlineData: s } = e, c = s;
109
- return "dataItems" in s && Object.entries(t).forEach(([n, r]) => {
109
+ return "dataItems" in s && Object.entries(t).forEach(([l, r]) => {
110
110
  o.forEach((a) => {
111
111
  const i = `${r}_${a}`;
112
- s.dataItems.forEach((l) => {
113
- i in l && delete l[i];
112
+ s.dataItems.forEach((n) => {
113
+ i in n && delete n[i];
114
114
  });
115
115
  });
116
116
  }), c;
117
117
  }
118
118
  function oe(e) {
119
119
  const { categoryField: o, categoryType: t, numericFields: s, inlineData: c } = e;
120
- let n;
120
+ let l;
121
121
  if ("dataItems" in c) {
122
122
  const { dataItems: r } = c, a = [];
123
123
  let i = "OBJECTID";
124
- const l = r.map((u, p) => {
124
+ const n = r.map((u, p) => {
125
125
  const m = { ...u };
126
126
  return "FID" in u ? i = "FID" : "ObjectId" in u && (i = "ObjectId"), m[i] || (m[i] = p), { attributes: m };
127
127
  });
@@ -146,19 +146,19 @@ function oe(e) {
146
146
  }
147
147
  a.push({ type: f, name: o }), s.forEach((u) => {
148
148
  a.push({ type: F.Double, name: u });
149
- }), n = {
149
+ }), l = {
150
150
  id: "",
151
151
  layerType: "ArcGISFeatureLayer",
152
152
  featureCollection: {
153
- layers: [{ layerDefinition: { fields: a }, featureSet: { features: l } }]
153
+ layers: [{ layerDefinition: { fields: a }, featureSet: { features: n } }]
154
154
  }
155
155
  };
156
156
  }
157
- return n;
157
+ return l;
158
158
  }
159
159
  async function se(e) {
160
- const { categoryField: o, categoryType: t, numericFields: s, configFields: c, inlineData: n } = e;
161
- let r, a, i = J(n);
160
+ const { categoryField: o, categoryType: t, numericFields: s, configFields: c, inlineData: l } = e;
161
+ let r, a, i = J(l);
162
162
  c && (r = te({
163
163
  categoryField: o,
164
164
  numericFields: s,
@@ -169,13 +169,13 @@ async function se(e) {
169
169
  configFields: c,
170
170
  inlineData: i
171
171
  }));
172
- const l = oe({
172
+ const n = oe({
173
173
  categoryField: o,
174
174
  categoryType: t,
175
175
  numericFields: s,
176
176
  inlineData: i
177
177
  });
178
- return l && (a = await G(l)), { chartRenderer: r, iLayer: l, layer: a };
178
+ return n && (a = await G(n)), { chartRenderer: r, iLayer: n, layer: a };
179
179
  }
180
180
  const $e = {
181
181
  hexToRGB: z,
@@ -194,46 +194,46 @@ function H(e, o, t) {
194
194
  function ae(e, o) {
195
195
  return o?.length === e ? o : [];
196
196
  }
197
- function ne(e) {
197
+ function le(e) {
198
198
  const {
199
199
  numberOfClassBreaks: o,
200
200
  baseColors: t,
201
201
  fallbackStartColor: s = [237, 248, 251, 255],
202
202
  fallbackEndColor: c = [136, 65, 157, 255]
203
203
  } = e;
204
- let n = [];
204
+ let l = [];
205
205
  if (o > 0) {
206
206
  const r = t?.[0] ?? s, a = t && t.length > 1 ? t[t.length - 1] : c;
207
207
  if (o === 1)
208
- n = [r];
208
+ l = [r];
209
209
  else
210
210
  for (let i = 0; i < o; i++) {
211
- const l = i / (o - 1);
212
- n.push(H(r, a, l));
211
+ const n = i / (o - 1);
212
+ l.push(H(r, a, n));
213
213
  }
214
214
  }
215
- return n;
215
+ return l;
216
216
  }
217
- function le(e) {
217
+ function ne(e) {
218
218
  const { colorRamp: o, numberOfClassBreaks: t, isFlipped: s } = e;
219
- let c = [], n = !1;
219
+ let c = [], l = !1;
220
220
  if (o.colorsForClassBreaks && o.colorsForClassBreaks.length > 0) {
221
221
  const r = o.colorsForClassBreaks.find(
222
222
  (a) => a.numClasses === t
223
223
  );
224
224
  if (r?.colors?.length === t) {
225
- const a = r.colors.map((l) => M(l));
226
- a.every((l) => l !== void 0) && (c = s ? a.reverse() : a, n = !0);
225
+ const a = r.colors.map((n) => M(n));
226
+ a.every((n) => n !== void 0) && (c = s ? a.reverse() : a, l = !0);
227
227
  }
228
228
  }
229
- if (!n) {
229
+ if (!l) {
230
230
  const r = o.colors || [];
231
231
  if (r.length > 0) {
232
- let a = r.map(M).filter((l) => l !== void 0);
232
+ let a = r.map(M).filter((n) => n !== void 0);
233
233
  s && (a = a.reverse());
234
234
  const i = [];
235
- for (let l = 0; l < t; l++) {
236
- const f = t > 1 ? l / (t - 1) : 0, u = Math.floor(f * (a.length - 1)), p = Math.min(u + 1, a.length - 1), m = a[u], d = a[p];
235
+ for (let n = 0; n < t; n++) {
236
+ const f = t > 1 ? n / (t - 1) : 0, u = Math.floor(f * (a.length - 1)), p = Math.min(u + 1, a.length - 1), m = a[u], d = a[p];
237
237
  if (!m || !d) {
238
238
  c = [];
239
239
  break;
@@ -248,12 +248,12 @@ function le(e) {
248
248
  }
249
249
  function K(e) {
250
250
  const { numberOfClassBreaks: o, selectedColorRamp: t, colorRamp: s, isFlipped: c = !1 } = e;
251
- let n = ae(o, s);
252
- const r = t ? le({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
253
- return n.length !== o && (n = r), n.length !== o && (n = ne({
251
+ let l = ae(o, s);
252
+ const r = t ? ne({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
253
+ return l.length !== o && (l = r), l.length !== o && (l = le({
254
254
  numberOfClassBreaks: o,
255
255
  baseColors: r.length > 0 ? r : s
256
- })), n;
256
+ })), l;
257
257
  }
258
258
  function ie(e, o = 2) {
259
259
  return `≤ ${((s) => {
@@ -264,8 +264,8 @@ function ie(e, o = 2) {
264
264
  function De(e) {
265
265
  let o = "#000000";
266
266
  if (e && Array.isArray(e) && e.length >= 3) {
267
- const t = y(e[0] || 0), s = y(e[1] || 0), c = y(e[2] || 0), n = t.toString(16).padStart(2, "0"), r = s.toString(16).padStart(2, "0"), a = c.toString(16).padStart(2, "0");
268
- o = `#${n}${r}${a}`;
267
+ const t = y(e[0] || 0), s = y(e[1] || 0), c = y(e[2] || 0), l = t.toString(16).padStart(2, "0"), r = s.toString(16).padStart(2, "0"), a = c.toString(16).padStart(2, "0");
268
+ o = `#${l}${r}${a}`;
269
269
  }
270
270
  return o;
271
271
  }
@@ -286,13 +286,13 @@ const ve = {
286
286
  all: "all"
287
287
  }, ce = (e) => {
288
288
  let o = 0;
289
- const t = (n) => {
289
+ const t = (l) => {
290
290
  let r = 0;
291
- return n.forEach((a) => {
291
+ return l.forEach((a) => {
292
292
  const i = a.toString().split(".")[1];
293
293
  i && (r = Math.max(r, i.length));
294
294
  }), r;
295
- }, s = [...e].sort((n, r) => n - r), c = t(s);
295
+ }, s = [...e].sort((l, r) => l - r), c = t(s);
296
296
  for (; o <= c && s.some(
297
297
  (r, a) => a > 0 && _(r, o) <= _(s[a - 1], o)
298
298
  ); )
@@ -324,8 +324,8 @@ function I(e) {
324
324
  function E(e, o) {
325
325
  let t = 0;
326
326
  const s = e.size <= o.size ? e : o, c = s === e ? o : e;
327
- for (const n of s)
328
- c.has(n) && t++;
327
+ for (const l of s)
328
+ c.has(l) && t++;
329
329
  return t;
330
330
  }
331
331
  function fe(e) {
@@ -335,11 +335,11 @@ function fe(e) {
335
335
  ];
336
336
  }
337
337
  function ue(e) {
338
- const { ramp: o, breakKeys: t, breakCount: s, weights: c } = e, n = (d) => d.join(","), r = o.colorsForClassBreaks?.find((d) => d.numClasses === s)?.colors ?? [], a = new Set(I(r).map(n)), i = E(t, a), l = new Set(
338
+ const { ramp: o, breakKeys: t, breakCount: s, weights: c } = e, l = (d) => d.join(","), r = o.colorsForClassBreaks?.find((d) => d.numClasses === s)?.colors ?? [], a = new Set(I(r).map(l)), i = E(t, a), n = new Set(
339
339
  I(K({ numberOfClassBreaks: s, selectedColorRamp: o })).map(
340
- n
340
+ l
341
341
  )
342
- ), f = E(t, l), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(n)), m = E(t, p);
342
+ ), f = E(t, n), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(l)), m = E(t, p);
343
343
  return i * c.exactN + f * c.generated + m * c.anyOverlap;
344
344
  }
345
345
  function Ie(e, o) {
@@ -347,10 +347,10 @@ function Ie(e, o) {
347
347
  exactN: 100,
348
348
  generated: 10,
349
349
  anyOverlap: 1
350
- }, s = (n) => n.join(",");
350
+ }, s = (l) => l.join(",");
351
351
  let c;
352
352
  if (e?.length) {
353
- const n = I(e.map((f) => f.symbol?.color)), r = new Set(n.map(s)), a = n.length, i = o.map((f) => {
353
+ const l = I(e.map((f) => f.symbol?.color)), r = new Set(l.map(s)), a = l.length, i = o.map((f) => {
354
354
  const u = ue({
355
355
  ramp: f,
356
356
  breakKeys: r,
@@ -358,13 +358,13 @@ function Ie(e, o) {
358
358
  weights: t
359
359
  });
360
360
  return { ramp: f, score: u };
361
- }), l = Q(i, [
361
+ }), n = Q(i, [
362
362
  (f) => -f.score,
363
363
  // descending score
364
364
  (f) => f.ramp.name
365
365
  // ascending name
366
366
  ]);
367
- l[0]?.score > 0 && (c = l[0].ramp);
367
+ n[0]?.score > 0 && (c = n[0].ramp);
368
368
  }
369
369
  return c;
370
370
  }
@@ -373,14 +373,14 @@ function Me(e, o) {
373
373
  if (!e?.length || o.length < 2)
374
374
  t = !1;
375
375
  else {
376
- const s = e.map(M), c = o.map((n) => n.symbol.color);
376
+ const s = e.map(M), c = o.map((l) => l.symbol.color);
377
377
  if (s.length !== c.length)
378
378
  t = !1;
379
379
  else {
380
- const n = (i, l) => !!i && !!l && i.length === l.length && i.every((f, u) => f === l[u]);
380
+ const l = (i, n) => !!i && !!n && i.length === n.length && i.every((f, u) => f === n[u]);
381
381
  let r = 0, a = c.length - 1;
382
382
  for (; r < s.length && a >= 0; ) {
383
- if (!n(s[r], c[a])) {
383
+ if (!l(s[r], c[a])) {
384
384
  t = !1;
385
385
  break;
386
386
  }
@@ -391,7 +391,7 @@ function Me(e, o) {
391
391
  return t;
392
392
  }
393
393
  async function me(e) {
394
- const { data: o, breaksCount: t, classificationMethod: s, xAxisField: c, colorsForClassBreaks: n } = e;
394
+ const { data: o, breaksCount: t, classificationMethod: s, xAxisField: c, colorsForClassBreaks: l } = e;
395
395
  let r = [];
396
396
  const a = await se({
397
397
  categoryField: c ?? "",
@@ -400,25 +400,25 @@ async function me(e) {
400
400
  inlineData: o
401
401
  });
402
402
  if (a.layer) {
403
- const i = re?.primaryScheme, l = await q({
403
+ const i = re?.primaryScheme, n = await q({
404
404
  layer: a.layer,
405
405
  field: L.valueField,
406
406
  classificationMethod: s,
407
407
  numClasses: t,
408
408
  colorScheme: i
409
409
  });
410
- if (l?.classBreaksResult?.classBreakInfos?.length) {
410
+ if (n?.classBreaksResult?.classBreakInfos?.length) {
411
411
  const f = ce(
412
- l.classBreaksResult.classBreakInfos.map((u) => u.maxValue)
412
+ n.classBreaksResult.classBreakInfos.map((u) => u.maxValue)
413
413
  );
414
- r = l.classBreaksResult.classBreakInfos.map((u, p) => ({
414
+ r = n.classBreaksResult.classBreakInfos.map((u, p) => ({
415
415
  classMinValue: u.minValue,
416
416
  classMaxValue: u.maxValue,
417
417
  label: ie(u.maxValue, f),
418
418
  symbol: {
419
419
  type: k.SFS,
420
420
  style: b.Solid,
421
- color: n?.[p] || [0, 0, 0, 255],
421
+ color: l?.[p] || [0, 0, 0, 255],
422
422
  outline: {
423
423
  style: C.Solid,
424
424
  width: 0.5,
@@ -447,15 +447,15 @@ const Ne = Y(
447
447
  breaksCount: t,
448
448
  classificationMethod: s,
449
449
  xAxisField: c,
450
- colorRampName: n,
450
+ colorRampName: l,
451
451
  availableColorRamps: r,
452
452
  existingClassBreakInfos: a,
453
453
  useExistingColors: i,
454
- isColorRampFlipped: l
454
+ isColorRampFlipped: n
455
455
  } = e, f = he({
456
- colorRampName: n,
456
+ colorRampName: l,
457
457
  availableColorRamps: r
458
- }), u = l ?? !1, p = K({
458
+ }), u = n ?? !1, p = K({
459
459
  numberOfClassBreaks: t,
460
460
  selectedColorRamp: f,
461
461
  colorRamp: i ? a?.map((m) => m.symbol?.color) : void 0,
@@ -481,9 +481,9 @@ function Be({
481
481
  }) {
482
482
  let s = !0;
483
483
  if (Array.isArray(e) && Array.isArray(o)) {
484
- const c = (n) => n.map(({ symbol: r, ...a }) => a);
484
+ const c = (l) => l.map(({ symbol: r, ...a }) => a);
485
485
  if (T(c(e), c(o))) {
486
- const n = e.map((l) => l.symbol?.color), r = o.map((l) => l.symbol?.color), a = T(n, r), i = T(n, [...r].reverse());
486
+ const l = e.map((n) => n.symbol?.color), r = o.map((n) => n.symbol?.color), a = T(l, r), i = T(l, [...r].reverse());
487
487
  s = t ? !(a || i) : !a;
488
488
  }
489
489
  }
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { capitalize as u } from "lodash-es";
3
- import { N as h, k as B, m as L, dg as $, Y as N, ap as I, af as H, az as P, l as _, n as v } from "./index2.js";
3
+ import { N as h, k as B, m as L, dh as $, Y as N, ap as I, af as H, az as P, l as _, n as v } from "./index2.js";
4
4
  import { g as F } from "./series-types.js";
5
5
  import { H as A, S as o, P as M } from "./common.js";
6
6
  import { p as l, n, u as d, r as g } from "./chart-object-literals.js";