@arcgis/charts-components 5.2.0-next.41 → 5.2.0-next.43

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 (50) hide show
  1. package/dist/cdn/{ZQDCFKNT.js → 33NDNTD4.js} +1 -1
  2. package/dist/cdn/{PTQOX5OZ.js → 5XXP2NRJ.js} +1 -1
  3. package/dist/cdn/{5SIHKT2T.js → 6TA7HFV2.js} +1 -1
  4. package/dist/cdn/76HEBLTU.js +2 -0
  5. package/dist/cdn/{TTTGMEZ7.js → D4WXMS4I.js} +1 -1
  6. package/dist/cdn/{3QI7A32R.js → DWOP2HE4.js} +1 -1
  7. package/dist/cdn/EIXU5GSK.js +2 -0
  8. package/dist/cdn/{FK7GEP3O.js → ESAVCU5M.js} +1 -1
  9. package/dist/cdn/{LN3IK232.js → HP47BFLZ.js} +1 -1
  10. package/dist/cdn/{7T5P3U5A.js → I2CZFSEB.js} +1 -1
  11. package/dist/cdn/{3MRL3AI7.js → ISYGPFXM.js} +1 -1
  12. package/dist/cdn/{D7D3TANP.js → KRBNJLUR.js} +1 -1
  13. package/dist/cdn/{JTYCEFWF.js → LMIDBRIM.js} +1 -1
  14. package/dist/cdn/{FBHIZNWF.js → NFJXS4T6.js} +1 -1
  15. package/dist/cdn/{DZP63RLO.js → OGRUONHM.js} +1 -1
  16. package/dist/cdn/{KS72POQC.js → PLEZNRQC.js} +1 -1
  17. package/dist/cdn/{CAOUA6TM.js → R32CA4NB.js} +1 -1
  18. package/dist/cdn/{O324BBM7.js → SG3NAFAX.js} +1 -1
  19. package/dist/cdn/{6BZMGEWV.js → T3ZESENF.js} +1 -1
  20. package/dist/cdn/{YLMCVYAS.js → YE6DMUZG.js} +1 -1
  21. package/dist/cdn/ZSATO43B.js +2 -0
  22. package/dist/cdn/index.js +1 -1
  23. package/dist/cdn/model/shared/setup-utils.js +1 -1
  24. package/dist/chunks/bar-chart-model.js +1 -1
  25. package/dist/chunks/box-plot-data.js +1 -1
  26. package/dist/chunks/box-plot-model.js +5 -5
  27. package/dist/chunks/chart-model.js +1 -1
  28. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  29. package/dist/chunks/gauge-model.js +1 -1
  30. package/dist/chunks/heat-chart-model.js +66 -57
  31. package/dist/chunks/histogram-model.js +1 -1
  32. package/dist/chunks/line-chart-model.js +1 -1
  33. package/dist/chunks/model-with-x-guides.js +5 -5
  34. package/dist/chunks/model-with-y-guides.js +8 -8
  35. package/dist/chunks/pie-chart-model.js +9 -9
  36. package/dist/chunks/radar-chart-model.js +1 -1
  37. package/dist/chunks/scatterplot-model.js +11 -11
  38. package/dist/chunks/serial-chart-data.js +785 -702
  39. package/dist/chunks/serial-chart-model.js +1 -1
  40. package/dist/chunks/utils.js +11 -11
  41. package/dist/chunks/x-bounds.js +1 -1
  42. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
  43. package/dist/docs/api.json +1 -1
  44. package/dist/docs/docs.json +1 -1
  45. package/dist/docs/web-types.json +1 -1
  46. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
  47. package/package.json +3 -3
  48. package/dist/cdn/6IKWZMBE.js +0 -2
  49. package/dist/cdn/I6CEN2WV.js +0 -2
  50. package/dist/cdn/MWARLTCH.js +0 -2
@@ -1,207 +1,207 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as w } from "@arcgis/core/intl.js";
3
- import { cloneDeep as Z, isEmpty as qe, memoize as Re } from "lodash-es";
4
- import { S as se } from "./common.js";
5
- import { s as R, u as E, g as le, a as Fe, b as ke, c as Oe, d as ce } from "./utils.js";
6
- import { w as k, i as De, cU as M, b_ as Pe, bm as we, x as Ee, Y as _, cs as Me, cr as $e, p as We, aH as oe, c4 as Ye, d as Xe, aG as je, I as Ue, a7 as He, bk as Ke, W as Ze, e as _e, bo as Qe, c$ as ze, v as Ge, d6 as de, bN as Je, d7 as et, bJ as tt, B as st, d3 as it, an as U, a6 as he, b9 as at, k as ie, bq as rt, bu as ye, bb as K, bh as me } from "./index2.js";
7
- import { a as Y, s as Te, g as Q, b as pe, c as nt } from "./data.js";
8
- import { u as B, r as L, k as lt, n as q, m as $, p as ot, t as ut, s as ae } from "./chart-object-literals.js";
9
- import { i as ct, R as dt } from "./rest-js-object-literals.js";
10
- import { i as z } from "./index4.js";
11
- import { aA as yt, u as mt, Z as pt, aa as gt, am as ft, y as St, D as ge, I as fe, a0 as Ft } from "./index.js";
12
- import { C as P, F as W, d as D } from "./index3.js";
13
- import { h as xe, i as O, j as ht, n as Tt, g as A, m as v, e as Se } from "./index5.js";
14
- import { convertChartSpec as xt } from "../utils/chart-config/converter/index.js";
15
- import { d as re, f as Bt } from "./type-guards.js";
16
- import { g as Be } from "./series-types.js";
17
- import { C as Ct, m as bt } from "./model-setter.js";
18
- import { g as ue } from "./utils2.js";
19
- import { a as At, b as vt } from "./series-length.js";
20
- const gs = (t) => {
2
+ import { substitute as M } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, isEmpty as He, memoize as Xe } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as k, u as E, a as Le, g as pe, b as Ve, c as Ue, d as je, e as fe } from "./utils.js";
6
+ import { w as D, i as Ke, cU as Y, b_ as Ze, bm as _e, x as Qe, Y as ee, cs as ze, cr as Ge, p as Je, aH as ge, c4 as et, d as tt, aG as it, I as st, a7 as at, bk as rt, W as nt, e as lt, bo as ot, c$ as ut, v as ct, d6 as Se, bN as dt, d7 as yt, bJ as mt, B as pt, N as Fe, bq as _, d3 as gt, bb as W, bu as Q, an as K, a6 as Ne, b9 as ft, k as ue, bh as xe } from "./index2.js";
7
+ import { a as X, s as Oe, g as te, b as he, c as St } from "./data.js";
8
+ import { u as h, r as L, k as Ft, d as R, n as O, m as $, p as xt, t as ht, s as ce } from "./chart-object-literals.js";
9
+ import { i as Tt, R as Bt } from "./rest-js-object-literals.js";
10
+ import { i as ie } from "./index4.js";
11
+ import { aA as Ct, I as z, D as de, u as bt, Z as At, aa as vt, am as It, y as Lt, a0 as Vt } from "./index.js";
12
+ import { C as w, F as H, d as P } from "./index3.js";
13
+ import { h as ke, i as q, j as Nt, n as Ot, g as A, m as v, e as Te } from "./index5.js";
14
+ import { convertChartSpec as kt } from "../utils/chart-config/converter/index.js";
15
+ import { d as ye, f as Dt } from "./type-guards.js";
16
+ import { g as De } from "./series-types.js";
17
+ import { C as qt, m as Rt } from "./model-setter.js";
18
+ import { g as se } from "./utils2.js";
19
+ import { a as Pt, b as wt } from "./series-length.js";
20
+ const Oi = (t) => {
21
21
  let e;
22
- const s = t.series[0];
23
- return k(s) && (e = s.temporalBinning?.size), e;
24
- }, It = (t) => {
22
+ const i = t.series[0];
23
+ return D(i) && (e = i.temporalBinning?.size), e;
24
+ }, Mt = (t) => {
25
25
  let e;
26
- const s = t.series[0];
27
- return k(s) && (e = s.temporalBinning?.unit), e;
28
- }, fs = (t) => {
26
+ const i = t.series[0];
27
+ return D(i) && (e = i.temporalBinning?.unit), e;
28
+ }, ki = (t) => {
29
29
  let e;
30
- const s = t.series[0];
31
- return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
32
- }, Ss = (t) => {
30
+ const i = t.series[0];
31
+ return D(i) && (e = i.temporalBinning?.timeAggregationType), e;
32
+ }, Di = (t) => {
33
33
  let e;
34
- const s = t.series[0];
35
- return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
36
- }, Fs = (t) => {
34
+ const i = t.series[0];
35
+ return D(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
36
+ }, qi = (t) => {
37
37
  let e;
38
- const s = t.series[0];
39
- return k(s) && (e = s.temporalBinning?.nullPolicy), e;
40
- }, Lt = (t, e) => {
41
- e?.series?.forEach((s) => {
42
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
43
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
- }, Vt = (t, e) => {
45
- e?.series?.forEach((s) => {
46
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
47
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
- }, hs = (t, e) => {
49
- e.series?.forEach((s) => {
50
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
51
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
- }, Ts = (t, e) => {
53
- e.series?.forEach((s) => {
54
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
55
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
- }, xs = (t, e) => {
57
- e.series?.forEach((s) => {
58
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
59
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
- }, Nt = (t) => {
61
- Lt(0, t);
38
+ const i = t.series[0];
39
+ return D(i) && (e = i.temporalBinning?.nullPolicy), e;
40
+ }, Et = (t, e) => {
41
+ e?.series?.forEach((i) => {
42
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
43
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
+ }, Wt = (t, e) => {
45
+ e?.series?.forEach((i) => {
46
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
47
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
+ }, Ri = (t, e) => {
49
+ e.series?.forEach((i) => {
50
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
51
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
+ }, Pi = (t, e) => {
53
+ e.series?.forEach((i) => {
54
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
55
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
+ }, wi = (t, e) => {
57
+ e.series?.forEach((i) => {
58
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
59
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
+ }, Yt = (t) => {
61
+ Et(0, t);
62
62
  };
63
- var qt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, kt = (t, e, s, r) => {
64
- for (var a = Rt(e, s), i = t.length - 1, n; i >= 0; i--)
65
- (n = t[i]) && (a = n(e, s, a) || a);
66
- return a && qt(e, s, a), a;
63
+ var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Xt = (t, e, i, a) => {
64
+ for (var r = Ht(e, i), s = t.length - 1, n; s >= 0; s--)
65
+ (n = t[s]) && (r = n(e, i, r) || r);
66
+ return r && $t(e, i, r), r;
67
67
  };
68
- const Ot = (t) => {
68
+ const Ut = (t) => {
69
69
  let e;
70
- return M(t) ? e = t.outTimeZone : t?.series.forEach((s) => {
71
- (s.type === B.BarSeries || s.type === B.RadarSeries || s.type === B.LineSeries) && s.temporalBinning && (e = s.temporalBinning.outTimeZone);
72
- }), e || (e = t?.axes?.[0]?.valueFormat.type === B.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
- }, Ce = (t, e) => {
74
- const s = De(t);
75
- M(e) ? t ? e.outTimeZone = s : delete e.outTimeZone : e?.series.forEach((r) => {
76
- (r.type === B.BarSeries || r.type === B.RadarSeries || r.type === B.LineSeries) && (t ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = s) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
77
- }), e?.axes?.[0]?.valueFormat.type === B.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = s : delete e.axes[0].valueFormat.intlOptions.timeZone);
70
+ return Y(t) ? e = t.outTimeZone : t?.series.forEach((i) => {
71
+ (i.type === h.BarSeries || i.type === h.RadarSeries || i.type === h.LineSeries) && i.temporalBinning && (e = i.temporalBinning.outTimeZone);
72
+ }), e || (e = t?.axes?.[0]?.valueFormat.type === h.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
+ }, qe = (t, e) => {
74
+ const i = Ke(t);
75
+ Y(e) ? t ? e.outTimeZone = i : delete e.outTimeZone : e?.series.forEach((a) => {
76
+ (a.type === h.BarSeries || a.type === h.RadarSeries || a.type === h.LineSeries) && (t ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = i) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
77
+ }), e?.axes?.[0]?.valueFormat.type === h.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = i : delete e.axes[0].valueFormat.intlOptions.timeZone);
78
78
  };
79
- class Dt extends Ct {
79
+ class jt extends qt {
80
80
  /**
81
81
  * Gets the time zone for the chart.
82
82
  */
83
83
  get timeZone() {
84
- return Ot(this._config);
84
+ return Ut(this._config);
85
85
  }
86
86
  set timeZone(e) {
87
- Ce(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ qe(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
88
88
  }
89
89
  }
90
- kt([
91
- bt
92
- ], Dt.prototype, "timeZone");
93
- function Bs(t, e) {
94
- let s;
95
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
90
+ Xt([
91
+ Rt
92
+ ], jt.prototype, "timeZone");
93
+ function Mi(t, e) {
94
+ let i;
95
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
96
96
  }
97
- function Cs(t, e) {
98
- let s;
99
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
97
+ function Ei(t, e) {
98
+ let i;
99
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
100
100
  }
101
- function bs(t, e) {
102
- let s;
103
- return e !== void 0 && (s = { ...e, rotated: t }), s;
101
+ function Wi(t, e) {
102
+ let i;
103
+ return e !== void 0 && (i = { ...e, rotated: t }), i;
104
104
  }
105
- function Pt(t) {
105
+ function Kt(t) {
106
106
  let e;
107
107
  return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
108
108
  }
109
- function As(t, e) {
110
- return e != null || xe(t);
109
+ function Yi(t, e) {
110
+ return e != null || ke(t);
111
111
  }
112
- async function vs(t) {
113
- const { config: e, layer: s, abortSignal: r } = t;
114
- let a = !1;
115
- return re(s) || Bt(e) ? e && re(s) && (a = await we({ config: e, layer: s, abortSignal: r })) : a = !0, a;
112
+ async function $i(t) {
113
+ const { config: e, layer: i, abortSignal: a } = t;
114
+ let r = !1;
115
+ return ye(i) || Dt(e) ? e && ye(i) && (r = await _e({ config: e, layer: i, abortSignal: a })) : r = !0, r;
116
116
  }
117
- async function wt(t) {
117
+ async function Zt(t) {
118
118
  const {
119
119
  queryObject: e,
120
- chartConfig: s,
121
- splitByField: r,
122
- errorStrings: a,
123
- abortSignal: i,
120
+ chartConfig: i,
121
+ splitByField: a,
122
+ errorStrings: r,
123
+ abortSignal: s,
124
124
  runtimeDataFilters: n,
125
- ignoreViewExtent: o,
125
+ ignoreViewExtent: l,
126
126
  setTimeBinningInfoWhenNotProvided: c,
127
- returnFeaturesExtent: m,
127
+ returnFeaturesExtent: d,
128
128
  chartLimits: p
129
129
  } = t;
130
- let u = [], d;
131
- const y = Z(s), g = y.series[0], l = _e({
130
+ let u = [], y;
131
+ const m = J(i), g = m.series[0], o = lt({
132
132
  queryObject: e,
133
- chartConfig: y,
133
+ chartConfig: m,
134
134
  runtimeDataFilters: n,
135
- ignoreViewExtent: o
135
+ ignoreViewExtent: l
136
136
  });
137
- if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = yt.outStatistics.outStatisticFieldName), k(g) && Qe({
138
- xAxisValueFormatType: ze(y),
137
+ if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = Ct.outStatistics.outStatisticFieldName), D(g) && ot({
138
+ xAxisValueFormatType: ut(m),
139
139
  setTimeBinningInfoWhenNotProvided: c,
140
140
  seriesConfig: g,
141
141
  queryObject: e
142
- }) && Ge(r, e)) {
143
- const { temporalBinning: f, x } = g, { uniqueQuery: b } = de({
144
- chartConfig: y,
145
- queryConfig: l,
142
+ }) && ct(a, e)) {
143
+ const { temporalBinning: f, x: B } = g, { uniqueQuery: b } = Se({
144
+ chartConfig: m,
145
+ queryConfig: o,
146
146
  queryObject: e,
147
147
  setTimeBinningInfoWhenNotProvided: c,
148
- returnFeaturesExtent: m,
148
+ returnFeaturesExtent: d,
149
149
  chartLimits: p
150
- }), F = s.axes?.[0].valueFormat.type === B.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
- d = await Je({
150
+ }), F = i.axes?.[0].valueFormat.type === h.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ y = await dt({
152
152
  queryObject: e,
153
- dateField: x,
154
- splitByField: r,
153
+ dateField: B,
154
+ splitByField: a,
155
155
  queryConfig: b,
156
156
  axisTimeZone: F,
157
157
  temporalBinning: f,
158
- errorStrings: a,
159
- abortSignal: i
158
+ errorStrings: r,
159
+ abortSignal: s
160
160
  }), u = Array.from(
161
161
  new Set(
162
- d.flatMap((S) => {
162
+ y.flatMap((S) => {
163
163
  const { stackedAttributes: I } = S;
164
164
  let T = [];
165
- return I && (T = I.map((h) => h[r]).filter((h) => h !== void 0)), T;
165
+ return I && (T = I.map((x) => x[a]).filter((x) => x !== void 0)), T;
166
166
  })
167
167
  ).values()
168
168
  );
169
169
  } else {
170
- const { uniqueQuery: f } = de({
171
- chartConfig: y,
170
+ const { uniqueQuery: f } = Se({
171
+ chartConfig: m,
172
172
  queryObject: e,
173
- queryConfig: l,
173
+ queryConfig: o,
174
174
  setTimeBinningInfoWhenNotProvided: c,
175
- returnFeaturesExtent: m,
175
+ returnFeaturesExtent: d,
176
176
  chartLimits: p
177
- }), { elementCount: x } = await et({
178
- chartConfig: y,
177
+ }), { elementCount: B } = await yt({
178
+ chartConfig: m,
179
179
  queryObject: e,
180
- queryConfig: l,
180
+ queryConfig: o,
181
181
  behaviorAfterLimit: p?.behaviorAfterLimit,
182
182
  numberMaxOfFeaturesToFetch: f.num,
183
- abortSignal: i
183
+ abortSignal: s
184
184
  });
185
- d = await tt({
185
+ y = await mt({
186
186
  queryObject: e,
187
187
  queryConfig: f,
188
- featureCount: x,
188
+ featureCount: B,
189
189
  returnStatisticsAggregatedIds: !0,
190
- errorStrings: a,
191
- abortSignal: i
190
+ errorStrings: r,
191
+ abortSignal: s
192
192
  }), u = Array.from(
193
193
  new Set(
194
- d.map((b) => b.attributes[r]).filter((b) => b !== void 0)
194
+ y.map((b) => b.attributes[a]).filter((b) => b !== void 0)
195
195
  ).values()
196
196
  );
197
197
  }
198
- return { allValues: u, preFetchedQueryResponse: d };
198
+ return { allValues: u, preFetchedQueryResponse: y };
199
199
  }
200
- function Et(t, e) {
201
- const s = /* @__PURE__ */ new Map();
202
- return t.series.forEach((r) => {
203
- let a = oe({
204
- where: r.query?.where,
200
+ function _t(t, e) {
201
+ const i = /* @__PURE__ */ new Map();
202
+ return t.series.forEach((a) => {
203
+ let r = ge({
204
+ where: a.query?.where,
205
205
  // normalize the value so it matches what we get from getAllValues()
206
206
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
207
207
  normalize: !0,
@@ -209,231 +209,236 @@ function Et(t, e) {
209
209
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
210
210
  escape: !1
211
211
  });
212
- e && a !== null && (a = Number(a));
213
- const i = Be([r]);
214
- i !== void 0 && s.set(i, [
215
- ...s.get(i) ?? [],
216
- a
212
+ e && r !== null && (r = Number(r));
213
+ const s = De([a]);
214
+ s !== void 0 && i.set(s, [
215
+ ...i.get(s) ?? [],
216
+ r
217
217
  ]);
218
- }), s;
218
+ }), i;
219
219
  }
220
- function Mt(t) {
221
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
222
- return Array.from(s.keys()).forEach((i) => {
223
- const n = s.get(i) ?? [];
224
- let o = [];
225
- r ? o = e : e.forEach((c) => {
226
- n.includes(c) || o.push(c);
227
- }), a.set(i, o);
228
- }), a;
220
+ function Qt(t) {
221
+ const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, r = /* @__PURE__ */ new Map();
222
+ return Array.from(i.keys()).forEach((s) => {
223
+ const n = i.get(s) ?? [];
224
+ let l = [];
225
+ a ? l = e : e.forEach((c) => {
226
+ n.includes(c) || l.push(c);
227
+ }), r.set(s, l);
228
+ }), r;
229
229
  }
230
- function $t(t) {
231
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
230
+ function zt(t) {
231
+ const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: r } = t, s = JSON.parse(
232
232
  JSON.stringify({
233
233
  ...e.series[0],
234
- ...a
234
+ ...r
235
235
  })
236
236
  );
237
- if (i.query) {
238
- if (s === null ? i.id = W.nullValue : s === "" ? i.id = W.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
239
- const o = i.id;
240
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
237
+ if (s.query) {
238
+ if (i === null ? s.id = H.nullValue : i === "" ? s.id = H.emptyStringValue : s.id = `${i}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
239
+ const l = s.id;
240
+ s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
241
241
  }
242
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
243
- i.query.where = `${r}=${n}`;
242
+ const n = typeof i == "number" || i === null ? i : `'${i}'`;
243
+ s.query.where = `${a}=${n}`;
244
244
  }
245
- return i;
245
+ return s;
246
246
  }
247
- async function Wt(t) {
247
+ async function Gt(t) {
248
248
  const {
249
249
  updateSplitBySeries: e,
250
- config: s,
251
- queryObject: r,
252
- errorStrings: a,
253
- abortSignal: i,
250
+ config: i,
251
+ queryObject: a,
252
+ errorStrings: r,
253
+ abortSignal: s,
254
254
  runtimeDataFilters: n,
255
- ignoreViewExtent: o,
255
+ ignoreViewExtent: l,
256
256
  setTimeBinningInfoWhenNotProvided: c,
257
- returnFeaturesExtent: m,
257
+ returnFeaturesExtent: d,
258
258
  chartLimits: p
259
259
  } = t, { seriesTemplate: u } = e ?? {};
260
- let d;
261
- if (r && !re(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || u !== void 0) && e.addMissingSeries) {
262
- const y = s.series.length === 0;
263
- s.series.length === 0 && u !== void 0 && s.series.push(u);
264
- const g = _(s.series);
265
- if (g === P.BoxPlotMonoFieldAndSplitBy || g === P.BoxPlotMultiFieldsAndSplitBy || g === P.BoxPlotMonoFieldAndCategoryAndSplitBy || g === P.BarAndLineSplitBy || g === P.BarAndLineSplitByNoAggregation) {
266
- const l = je(s.series[0]?.query?.where), f = Ue(r), x = He(l, f), b = x ? Ke(x) : !1, F = await wt({
267
- queryObject: r,
268
- chartConfig: s,
269
- splitByField: l,
270
- abortSignal: i,
260
+ let y;
261
+ if (a && !ye(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || u !== void 0) && e.addMissingSeries) {
262
+ const m = i.series.length === 0;
263
+ i.series.length === 0 && u !== void 0 && i.series.push(u);
264
+ const g = ee(i.series);
265
+ if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
266
+ const o = it(i.series[0]?.query?.where), f = st(a), B = at(o, f), b = B ? rt(B) : !1, F = await Zt({
267
+ queryObject: a,
268
+ chartConfig: i,
269
+ splitByField: o,
270
+ abortSignal: s,
271
271
  runtimeDataFilters: n,
272
- ignoreViewExtent: o,
272
+ ignoreViewExtent: l,
273
273
  setTimeBinningInfoWhenNotProvided: c,
274
- returnFeaturesExtent: m,
274
+ returnFeaturesExtent: d,
275
275
  chartLimits: p,
276
- errorStrings: a
276
+ errorStrings: r
277
277
  }), { allValues: S } = F;
278
- if ({ preFetchedQueryResponse: d } = F, S.length > 0) {
279
- const I = Et(s, b), T = Mt({
278
+ if ({ preFetchedQueryResponse: y } = F, S.length > 0) {
279
+ const I = _t(i, b), T = Qt({
280
280
  allValues: S,
281
281
  configUniqueValuesPerSeriesType: I,
282
- initialConfigWasEmpty: y
282
+ initialConfigWasEmpty: m
283
283
  });
284
- Array.from(T.keys()).forEach((h) => {
285
- (T.get(h) ?? []).forEach((N) => {
286
- s.series.push(
287
- $t({
288
- chartConfig: s,
284
+ Array.from(T.keys()).forEach((x) => {
285
+ (T.get(x) ?? []).forEach((N) => {
286
+ i.series.push(
287
+ zt({
288
+ chartConfig: i,
289
289
  seriesTemplate: u,
290
290
  missingValue: N,
291
- splitByField: l
291
+ splitByField: o
292
292
  })
293
293
  );
294
- }), y && s.series.shift();
294
+ }), m && i.series.shift();
295
295
  });
296
296
  }
297
297
  }
298
298
  }
299
- return d;
299
+ return y;
300
300
  }
301
- function Yt(t, e) {
302
- e && !xe(e) && (e = Xe({ chartConfig: e, queryObject: t }));
301
+ function Jt(t, e) {
302
+ e && !ke(e) && (e = tt({ chartConfig: e, queryObject: t }));
303
303
  }
304
- async function Is(t) {
304
+ async function Hi(t) {
305
305
  const {
306
306
  configToAlter: e,
307
- layer: s,
308
- addMissingSeries: r,
309
- updateSplitBySeries: a,
310
- chartContainer: i,
307
+ layer: i,
308
+ addMissingSeries: a,
309
+ updateSplitBySeries: r,
310
+ chartContainer: s,
311
311
  queryObject: n,
312
- abortSignal: o,
312
+ abortSignal: l,
313
313
  runtimeDataFilters: c,
314
- ignoreViewExtent: m,
314
+ ignoreViewExtent: d,
315
315
  setTimeBinningInfoWhenNotProvided: p,
316
316
  returnFeaturesExtent: u,
317
- chartLimits: d,
318
- timeZone: y,
317
+ chartLimits: y,
318
+ timeZone: m,
319
319
  errorStrings: g
320
320
  } = t;
321
- let l = e, f;
322
- return l && (Yt(s, l), l = await xt(l, s, void 0, o), r && n && (f = await Wt({
323
- updateSplitBySeries: a,
324
- config: l,
321
+ let o = e, f;
322
+ return o && (Jt(i, o), o = await kt(o, i, void 0, l), a && n && (f = await Gt({
323
+ updateSplitBySeries: r,
324
+ config: o,
325
325
  queryObject: n,
326
326
  errorStrings: g,
327
- abortSignal: o,
327
+ abortSignal: l,
328
328
  runtimeDataFilters: c,
329
- ignoreViewExtent: m,
329
+ ignoreViewExtent: d,
330
330
  setTimeBinningInfoWhenNotProvided: p,
331
331
  returnFeaturesExtent: u,
332
- chartLimits: d
333
- })), l = Pe(l, i), Ce(y, l)), { alteredConfig: l, preFetchedQueryResponse: f };
332
+ chartLimits: y
333
+ })), o = Ze(o, s), qe(m, o)), { alteredConfig: o, preFetchedQueryResponse: f };
334
334
  }
335
- function Xt(t, e) {
336
- let s = !1;
335
+ function ei(t, e) {
336
+ let i = !1;
337
337
  if (e !== void 0) {
338
- const r = Ze({ key: st.Average, splitBy: e });
339
- s = Number.isFinite(t[r]);
338
+ const a = nt({ key: pt.Average, splitBy: e });
339
+ i = Number.isFinite(t[a]);
340
340
  }
341
- return s;
341
+ return i;
342
342
  }
343
- function Ls(t) {
344
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = Z(s);
343
+ function Xi(t) {
344
+ const { data: e, config: i, showEmptySeries: a } = t, r = i.series.length, s = J(i);
345
345
  let n = !1;
346
- if (!r && a > 1 && e) {
347
- const o = Ee(e), c = Be(s?.series), m = _(s?.series), p = /* @__PURE__ */ new Set();
346
+ if (!a && r > 1 && e) {
347
+ const l = Qe(e), c = De(i?.series), d = ee(i?.series), p = /* @__PURE__ */ new Set();
348
348
  switch (c) {
349
- case B.ComboLineAndBarSeries:
350
- case B.BarSeries:
351
- case B.RadarSeries:
352
- case B.LineSeries: {
353
- i.series.forEach((d) => {
354
- if (Array.isArray(o)) {
355
- let y = "";
356
- "y" in d && (y = Array.isArray(d.y) ? d.y[0] : d.y, m === P.BarAndLineSplitByNoAggregation && (y = `${y}_${oe({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
357
- (l) => Ye({
358
- dataItem: l,
359
- x: d.x,
360
- y,
361
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
349
+ case h.ComboLineAndBarSeries:
350
+ case h.BarSeries:
351
+ case h.RadarSeries:
352
+ case h.LineSeries: {
353
+ s.series.forEach((y) => {
354
+ if (Array.isArray(l)) {
355
+ let m = "";
356
+ "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ge({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
357
+ (o) => et({
358
+ dataItem: o,
359
+ x: y.x,
360
+ y: m,
361
+ aggregationType: i.series[0].query?.outStatistics?.[0]?.statisticType
362
362
  })
363
- ) && p.add(d));
363
+ ) && p.add(y));
364
364
  }
365
365
  });
366
366
  break;
367
367
  }
368
- case B.BoxPlotSeries: {
369
- if (Me(s)) {
370
- const d = $e(s);
371
- s.series.forEach((y) => {
372
- let g, l;
373
- y.type === B.BoxPlotSeries ? (g = e.dataItems, l = g?.some(
374
- (f) => We({
368
+ case h.BoxPlotSeries: {
369
+ if (ze(i)) {
370
+ const y = Ge(i);
371
+ i.series.forEach((m) => {
372
+ let g, o;
373
+ m.type === h.BoxPlotSeries ? (g = e.dataItems, o = g?.some(
374
+ (f) => Je({
375
375
  dataItem: f,
376
- splitBy: y.query?.where,
377
- showOutliers: d
376
+ splitBy: m.query?.where,
377
+ showOutliers: y
378
378
  })
379
- )) : y.type === B.LineSeries && (g = e.meanLines, l = g?.some(
380
- (f) => Xt(f, y.query?.where)
381
- )), l && p.add(y);
379
+ )) : m.type === h.LineSeries && (g = e.meanLines, o = g?.some(
380
+ (f) => ei(f, m.query?.where)
381
+ )), o && p.add(m);
382
382
  });
383
383
  }
384
384
  break;
385
385
  }
386
386
  }
387
387
  const u = Array.from(p.values());
388
- n = u.length > 0 && u.length < a, n && (i.series = u);
388
+ n = u.length > 0 && u.length < r, n && (s.series = u);
389
389
  }
390
- return { seriesFilteredOut: n, filteredConfig: i };
390
+ return { seriesFilteredOut: n, filteredConfig: s };
391
391
  }
392
- const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
392
+ const Ui = (t) => t.hideEmptyRowsAndColumns, ji = (t, e) => {
393
393
  t.hideEmptyRowsAndColumns = e;
394
- }, qs = (t, e) => {
395
- const s = t.series[0];
396
- s.heatRulesType = e;
397
- }, Rs = (t) => t.series[0].heatRulesType, ks = (t, e) => {
398
- const s = t.series[0];
399
- s.gradientRules = e;
400
- }, Os = (t) => t.series[0].gradientRules, Ds = (t) => {
401
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = jt(s), o = z(s), c = s.series[0];
402
- if (typeof e == "string" && n !== e && c && (c.y = e, Pt(s), n === i || o)) {
403
- const m = D(a, e);
404
- E(s, 1, m);
394
+ }, Ki = (t, e) => {
395
+ const i = t.series[0];
396
+ i.heatRulesType = e;
397
+ }, Zi = (t) => t.series[0].heatRulesType, _i = (t, e) => {
398
+ const i = t.series[0];
399
+ i.gradientRules = e;
400
+ }, Qi = (t) => t.series[0].gradientRules, zi = (t) => {
401
+ const { yField: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s } = a, n = se(1, i), l = ti(i), c = ie(i), d = i.series[0];
402
+ if (typeof e == "string" && l !== e && d) {
403
+ if (d.y = e, Kt(i), l === n || c) {
404
+ const p = P(s, e);
405
+ E(i, 1, p);
406
+ }
407
+ Re({ commonStrings: r, config: i, layerInfo: a });
405
408
  }
406
- }, jt = (t) => t.series[0].y ?? "", Ps = (t) => {
407
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
408
- if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
409
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
410
- E(s, 0, i);
409
+ }, ti = (t) => t.series[0].y ?? "", Gi = (t) => {
410
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
411
+ if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
412
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
413
+ E(i, 0, s);
411
414
  }
412
- }, ws = (t) => t.series[0].xTemporalBinning, Es = (t) => {
413
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
414
- if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
415
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
416
- E(s, 1, i);
415
+ G({ axisIndex: 0, commonStrings: a, config: i });
416
+ }, ii = (t) => t.series[0].xTemporalBinning, Ji = (t) => {
417
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
418
+ if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
419
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
420
+ E(i, 1, s);
417
421
  }
418
- }, Ms = (t) => t.series[0].yTemporalBinning, Ut = (t, e) => {
422
+ G({ axisIndex: 1, commonStrings: a, config: i });
423
+ }, si = (t) => t.series[0].yTemporalBinning, ai = (t, e) => {
419
424
  e.orderOptions ??= {};
420
- const s = e.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, r = ne(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = ne(e)[1], n = {
425
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, a = me(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = me(e)[1], n = {
421
426
  ...e.orderOptions.data ?? {},
422
- orderType: q.MultiAxes
427
+ orderType: O.MultiAxes
423
428
  };
424
- r === se.customSort && s === q.Category && (n.orderByX = [...t]), i === se.customSort && a === q.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
425
- }, $s = (t, e) => {
426
- const s = e.series[0];
427
- s.gridLine && (s.gridLine.width = t);
428
- }, Ws = (t) => t.series[0].gridLine?.width, Ys = (t, e) => {
429
- const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
430
- s.gridLine && r && (s.gridLine.color = t);
431
- }, Xs = (t) => t.series[0].gridLine?.color, js = (t, e) => {
432
- const s = e.legend;
433
- s && (s.position = t);
434
- }, Us = (t) => t.legend?.position ?? lt.Bottom, Hs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ks = (t) => {
435
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = ee(s, r, a);
436
- i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
429
+ a === oe.customSort && i === O.Category && (n.orderByX = [...t]), s === oe.customSort && r === O.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
430
+ }, es = (t, e) => {
431
+ const i = e.series[0];
432
+ i.gridLine && (i.gridLine.width = t);
433
+ }, ts = (t) => t.series[0].gridLine?.width, is = (t, e) => {
434
+ const i = e.series[0], a = t?.length === 4 && t.every((r) => typeof r == "number");
435
+ i.gridLine && a && (i.gridLine.color = t);
436
+ }, ss = (t) => t.series[0].gridLine?.color, as = (t, e) => {
437
+ const i = e.legend;
438
+ i && (i.position = t);
439
+ }, rs = (t) => t.legend?.position ?? Ft.Bottom, ns = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ls = (t) => {
440
+ const { field: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0].query?.outStatistics?.[0], n = ne(i, a, r);
441
+ s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
437
442
  outStatistics: [
438
443
  {
439
444
  onStatisticField: e,
@@ -441,53 +446,53 @@ const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
441
446
  statisticType: L.Count
442
447
  }
443
448
  ]
444
- }, n && s.title && (s.title.content.text = H(s, r, a));
445
- }, Zs = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, _s = (t) => {
446
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = ee(s, r, a);
447
- i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Ht($.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
448
- }, Qs = (t) => t.nullPolicy, Ht = (t, e) => {
449
+ }, n && i.title && (i.title.content.text = Z(i, a, r));
450
+ }, os = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, us = (t) => {
451
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0]?.query?.outStatistics?.[0], n = ne(i, a, r);
452
+ s && e !== L.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === L.Count || e === L.Sum) && ri($.Zero, i), n && i.title && (i.title.content.text = Z(i, a, r));
453
+ }, cs = (t) => t.nullPolicy, ri = (t, e) => {
449
454
  e.nullPolicy = t;
450
- }, zs = (t) => t.series[0].emptyCells, Gs = (t, e) => {
455
+ }, ds = (t) => t.series[0].emptyCells, ys = (t, e) => {
451
456
  e.series[0].emptyCells = t;
452
- }, Js = (t) => t.series[0].emptyCells?.text, ei = (t, e) => {
457
+ }, ms = (t) => t.series[0].emptyCells?.text, ps = (t, e) => {
453
458
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
454
- }, ti = (t) => t.includeLeapDay, si = (t, e) => {
459
+ }, gs = (t) => t.includeLeapDay, fs = (t, e) => {
455
460
  e.includeLeapDay = t;
456
- }, ii = (t) => t.series[0].emptyCells?.symbol, ai = (t, e) => {
461
+ }, Ss = (t) => t.series[0].emptyCells?.symbol, Fs = (t, e) => {
457
462
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
458
463
  };
459
- function ri(t) {
464
+ function xs(t) {
460
465
  return t.viewType;
461
466
  }
462
- function ni(t, e) {
463
- it(e) || (e.viewType = t);
467
+ function hs(t, e) {
468
+ gt(e) || (e.viewType = t);
464
469
  }
465
- function li(t) {
466
- return t.series[0].classBreaksRules?.breaksCount ?? W.classBreaks.breaksCount;
470
+ function Ts(t) {
471
+ return t.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
467
472
  }
468
- function oi(t, e) {
469
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? W.classBreaks.breaksCount : e.series[0].classBreaksRules = {
470
- breaksCount: t ?? W.classBreaks.breaksCount
473
+ function Bs(t, e) {
474
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
475
+ breaksCount: t ?? H.classBreaks.breaksCount
471
476
  };
472
477
  }
473
- function ui(t) {
478
+ function Cs(t) {
474
479
  return t.series[0].classBreaksRules?.classificationMethod;
475
480
  }
476
- function ci(t, e) {
481
+ function bs(t, e) {
477
482
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
478
483
  classificationMethod: t
479
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? W.classBreaks.breaksCount;
484
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
480
485
  }
481
- function di(t, e) {
486
+ function As(t, e) {
482
487
  e.firstDayOfWeek = t;
483
488
  }
484
- function yi(t) {
489
+ function vs(t) {
485
490
  return t.firstDayOfWeek;
486
491
  }
487
- function mi(t) {
492
+ function Is(t) {
488
493
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
489
494
  }
490
- function pi(t, e) {
495
+ function Ls(t, e) {
491
496
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
492
497
  ...e.series[0].classBreaksRules.colorRampInfo,
493
498
  name: t
@@ -498,10 +503,10 @@ function pi(t, e) {
498
503
  }
499
504
  };
500
505
  }
501
- function gi(t) {
506
+ function Vs(t) {
502
507
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
503
508
  }
504
- function fi(t, e) {
509
+ function Ns(t, e) {
505
510
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
506
511
  ...e.series[0].classBreaksRules.colorRampInfo,
507
512
  flipped: t
@@ -511,613 +516,691 @@ function fi(t, e) {
511
516
  }
512
517
  };
513
518
  }
514
- function X(t) {
515
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = U(i?.layer).idField;
519
+ const ni = [
520
+ R.DayOfMonth,
521
+ R.MonthOfYear
522
+ ], Be = (t) => {
523
+ let e;
524
+ return _(t) ? e = de() : (W(t) || Q(t)) && (e = z()), e;
525
+ }, Ce = (t) => W(t) || Q(t), be = (t) => {
526
+ const { axisIndex: e, commonStrings: i, config: a, valueFormat: r } = t, s = a.axes?.[e]?.valueFormat;
527
+ r !== void 0 && s?.type !== r.type && Le({ config: a, commonStrings: i, valueFormat: r, axisIndex: e });
528
+ }, li = (t, e) => {
529
+ let i;
530
+ return e === 0 ? i = t.series[0]?.xTemporalBinning : e === 1 && (i = t.series[0]?.yTemporalBinning), i;
531
+ }, Ae = (t, e) => t.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", ve = (t, e) => {
532
+ let i = ni[t];
533
+ return t === 0 && e?.unit === R.DayOfWeek ? i = R.HourOfDay : t === 1 && e?.unit === R.HourOfDay && (i = R.DayOfWeek), {
534
+ type: h.CalendarDateParts,
535
+ unit: i
536
+ };
537
+ }, oi = (t) => {
538
+ let e = {};
539
+ switch (t.unit) {
540
+ case R.DayOfMonth:
541
+ e = { day: "2-digit" };
542
+ break;
543
+ case R.DayOfWeek:
544
+ e = { weekday: "short" };
545
+ break;
546
+ case R.HourOfDay:
547
+ e = { hour: "numeric", hour12: !1 };
548
+ break;
549
+ case R.MonthOfYear:
550
+ e = { month: "short" };
551
+ break;
552
+ default:
553
+ e = z().intlOptions;
554
+ break;
555
+ }
556
+ return {
557
+ type: h.DateAxisFormat,
558
+ intlOptions: e
559
+ };
560
+ }, Ie = (t) => {
561
+ const { axisIndex: e, binning: i, commonStrings: a, config: r, fieldName: s, layerInfo: n } = t, l = r.series[0], c = se(e, r), d = P(n.layerFieldsInfo, s);
562
+ e === 0 ? l.xTemporalBinning = i : e === 1 && (l.yTemporalBinning = i), i !== void 0 && (c === "" || c === d || c === Ae(a, i.unit)) && E(r, e, Ae(a, i.unit));
563
+ }, G = (t) => {
564
+ const { axisIndex: e, commonStrings: i, config: a } = t, r = li(a, e), s = r ? oi(r) : void 0;
565
+ Le({ config: a, commonStrings: i, valueFormat: s, axisIndex: e });
566
+ }, Re = (t) => {
567
+ const { commonStrings: e, config: i, layerInfo: a } = t, r = i.series[0]?.x ?? "", s = i.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, r), l = Fe(a.layerFieldsInfo, s), c = Be(n), d = Be(l), p = Ce(n) && Ce(l), u = _(n) && _(l);
568
+ if (be({ axisIndex: 0, commonStrings: e, config: i, valueFormat: c }), be({ axisIndex: 1, commonStrings: e, config: i, valueFormat: d }), p) {
569
+ const y = ii(i) === void 0, m = si(i) === void 0;
570
+ y && (Ie({
571
+ axisIndex: 0,
572
+ binning: ve(0, i.series[0].yTemporalBinning),
573
+ commonStrings: e,
574
+ config: i,
575
+ fieldName: r,
576
+ layerInfo: a
577
+ }), G({
578
+ axisIndex: 0,
579
+ commonStrings: e,
580
+ config: i
581
+ })), m && (Ie({
582
+ axisIndex: 1,
583
+ binning: ve(1, i.series[0].xTemporalBinning),
584
+ commonStrings: e,
585
+ config: i,
586
+ fieldName: s,
587
+ layerInfo: a
588
+ }), G({
589
+ axisIndex: 1,
590
+ commonStrings: e,
591
+ config: i
592
+ }));
593
+ }
594
+ u && (i.series[0].xTemporalBinning = void 0, i.series[0].yTemporalBinning = void 0);
595
+ };
596
+ function U(t) {
597
+ const { seriesIndex: e, xAxisField: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
516
598
  let c;
517
- const m = a.series[e ?? 0];
518
- let p = !1, u = !1, d = !1;
519
- if (m === void 0) {
520
- const l = a.series;
521
- p = l.slice(0, e).every((f) => A(f)), u = l.slice(0, e).every((f) => v(f)), d = l.slice(0, e).every((f) => Se(f));
599
+ const d = r.series[e ?? 0];
600
+ let p = !1, u = !1, y = !1;
601
+ if (d === void 0) {
602
+ const o = r.series;
603
+ p = o.slice(0, e).every((f) => A(f)), u = o.slice(0, e).every((f) => v(f)), y = o.slice(0, e).every((f) => Te(f));
522
604
  } else
523
- p = A(m), u = v(m), d = Se(m);
524
- p ? c = pt({
605
+ p = A(d), u = v(d), y = Te(d);
606
+ p ? c = At({
525
607
  commonStrings: n,
526
608
  seriesIndex: e,
527
- objectIDField: o
528
- }) : u ? c = gt({
609
+ objectIDField: l
610
+ }) : u ? c = vt({
529
611
  commonStrings: n,
530
612
  seriesIndex: e,
531
- objectIDField: o
532
- }) : d ? c = ft(n, o) : c = St({
613
+ objectIDField: l
614
+ }) : y ? c = It(n, l) : c = Lt({
533
615
  seriesIndex: e,
534
- objectIDField: o,
616
+ objectIDField: l,
535
617
  commonStrings: n
536
618
  });
537
- const y = a.series[0]?.dataLabels, g = {
619
+ const m = r.series[0]?.dataLabels, g = {
538
620
  ...c,
539
- x: s,
621
+ x: i,
540
622
  y: "",
541
623
  dataLabels: {
542
624
  ...c.dataLabels,
543
- type: c.dataLabels?.type ?? B.Text,
544
- content: { ...c.dataLabels?.content, ...y?.content, type: ct.TS },
545
- visible: y?.visible ?? !1
625
+ type: c.dataLabels?.type ?? h.Text,
626
+ content: { ...c.dataLabels?.content, ...m?.content, type: Tt.TS },
627
+ visible: m?.visible ?? !1
546
628
  }
547
629
  };
548
630
  if (g.query = {
549
- groupByFieldsForStatistics: [s]
550
- }, r !== L.NoAggregation && o !== void 0) {
551
- const l = `${r}_${o}_0`.toUpperCase();
552
- g.y = l, g.query.outStatistics = [
631
+ groupByFieldsForStatistics: [i]
632
+ }, a !== L.NoAggregation && l !== void 0) {
633
+ const o = `${a}_${l}_0`.toUpperCase();
634
+ g.y = o, g.query.outStatistics = [
553
635
  {
554
- statisticType: r,
555
- onStatisticField: o,
556
- outStatisticFieldName: l
636
+ statisticType: a,
637
+ onStatisticField: l,
638
+ outStatisticFieldName: o
557
639
  }
558
640
  ];
559
641
  }
560
- if (k(a.series[0]) && k(g)) {
561
- let l = It(a);
562
- l === ae.Quarter && (l = ae.Month), g.temporalBinning = {
563
- ...a.series[0]?.temporalBinning,
564
- unit: l
642
+ if (D(r.series[0]) && D(g)) {
643
+ let o = Mt(r);
644
+ o === ce.Quarter && (o = ce.Month), g.temporalBinning = {
645
+ ...r.series[0]?.temporalBinning,
646
+ unit: o
565
647
  };
566
648
  }
567
- return Z(g);
649
+ return J(g);
568
650
  }
569
- function H(t, e, s) {
570
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = U(e.layer), n = Y(t), o = J(t), c = Ae(t), m = G(t), p = i && (o.length === 0 || o.includes(a)), u = mt(c, s), d = p ? "" : o.map((F) => D(r ?? [], F)).join(", "), y = D(r ?? [], n), g = D(r ?? [], m), l = t.series.some((F) => O(F)), f = l ? "category" : "xAxisField", x = y;
651
+ function Z(t, e, i) {
652
+ const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = K(e.layer), n = X(t), l = re(t), c = we(t), d = ae(t), p = s && (l.length === 0 || l.includes(r)), u = bt(c, i), y = p ? "" : l.map((F) => P(a ?? [], F)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), o = t.series.some((F) => q(F)), f = o ? "category" : "xAxisField", B = m;
571
653
  let b = "";
572
- if (Te({
654
+ if (Oe({
573
655
  fieldName: n,
574
- numericFields: o,
575
- fieldList: r
656
+ numericFields: l,
657
+ fieldList: a
576
658
  }))
577
- b = w(s.titleLabels.aggrTypeOfAggrFields, {
659
+ b = M(i.titleLabels.aggrTypeOfAggrFields, {
578
660
  aggregationType: u,
579
- aggregationFields: d
661
+ aggregationFields: y
580
662
  });
581
663
  else if (c === L.NoAggregation) {
582
- const F = p ? a : d;
583
- if (m === "") {
584
- const S = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
585
- b = w(s.titleLabels[S], {
664
+ const F = p ? r : y;
665
+ if (d === "") {
666
+ const S = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
667
+ b = M(i.titleLabels[S], {
586
668
  aggregationType: F,
587
- [f]: x
669
+ [f]: B
588
670
  });
589
671
  } else {
590
- const S = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
591
- b = w(s.titleLabels[S], {
672
+ const S = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
673
+ b = M(i.titleLabels[S], {
592
674
  aggregationType: F,
593
- [f]: x,
675
+ [f]: B,
594
676
  splitByField: g
595
677
  });
596
678
  }
597
679
  } else if (c === L.Count)
598
- if (m === "") {
599
- const F = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
600
- b = w(s.titleLabels[F], {
680
+ if (d === "") {
681
+ const F = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
682
+ b = M(i.titleLabels[F], {
601
683
  aggregationType: u,
602
- [f]: x
684
+ [f]: B
603
685
  });
604
686
  } else {
605
- const F = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
606
- b = w(s.titleLabels[F], {
687
+ const F = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
688
+ b = M(i.titleLabels[F], {
607
689
  aggregationType: u,
608
- [f]: x,
690
+ [f]: B,
609
691
  splitByField: g
610
692
  });
611
693
  }
612
- else if (m !== "") {
613
- const F = l ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
614
- b = w(s.titleLabels[F], {
694
+ else if (d !== "") {
695
+ const F = o ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
696
+ b = M(i.titleLabels[F], {
615
697
  aggregationType: u,
616
- aggregationField: d,
617
- [f]: x,
698
+ aggregationField: y,
699
+ [f]: B,
618
700
  splitByField: g
619
701
  });
620
- } else if (o.length > 0) {
621
- const F = l ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
622
- b = w(s.titleLabels[F], {
702
+ } else if (l.length > 0) {
703
+ const F = o ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
704
+ b = M(i.titleLabels[F], {
623
705
  aggregationType: u,
624
- aggregationFields: d,
625
- [f]: x
706
+ aggregationFields: y,
707
+ [f]: B
626
708
  });
627
709
  }
628
710
  return b;
629
711
  }
630
- const be = (t) => oe({
712
+ const Pe = (t) => ge({
631
713
  where: t.query?.where,
632
714
  normalize: !1,
633
715
  escape: !1
634
- }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, G = Re(
716
+ }) ?? "", we = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ae = Xe(
635
717
  (t) => {
636
718
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
637
- return at(t?.series?.[0]?.query?.where) ? "" : e;
719
+ return ft(t?.series?.[0]?.query?.where) ? "" : e;
638
720
  },
639
721
  (t) => t?.series?.[0]?.query?.where
640
- ), J = (t) => {
722
+ ), re = (t) => {
641
723
  let e = [];
642
- if (G(t) === "")
643
- e = t?.series.map((s) => {
644
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
645
- return r?.length > 0 ? r : s.y;
724
+ if (ae(t) === "")
725
+ e = t?.series.map((i) => {
726
+ const a = i.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
727
+ return a?.length > 0 ? a : i.y;
646
728
  }).flat() ?? [];
647
729
  else {
648
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
649
- e = r !== void 0 ? [r] : [];
730
+ const i = t?.series?.[0], a = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
731
+ e = a !== void 0 ? [a] : [];
650
732
  }
651
- return e.filter((s) => s !== "");
733
+ return e.filter((i) => i !== "");
652
734
  };
653
- function ve(t) {
654
- const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = U(r).idField ?? "";
655
- return e === "" ? s[a] ?? i : s[0] ?? i;
735
+ function Me(t) {
736
+ const { splitByField: e, numericFields: i, layer: a, seriesIndex: r } = t, s = K(a).idField ?? "";
737
+ return e === "" ? i[r] ?? s : i[0] ?? s;
656
738
  }
657
- function Kt(t) {
658
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
659
- let i = !1;
660
- s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
661
- const m = a.layerFieldsInfo.find((p) => p.name === c);
662
- return m !== void 0 ? me(m) : !1;
663
- })), ce(r, 1, i);
664
- const n = r.series.some((c) => A(c)), o = r.series.some((c) => v(c));
665
- if (n || o) {
666
- const c = Y(r), m = a.layerFieldsInfo.find((u) => u.name === c), p = m !== void 0 && me(m);
667
- ce(r, 0, p);
739
+ function ui(t) {
740
+ const { numericFields: e, aggregationType: i, config: a, layerInfo: r } = t;
741
+ let s = !1;
742
+ i === L.Count ? s = !0 : i === L.NoAggregation && (s = e.every((c) => {
743
+ const d = r.layerFieldsInfo.find((p) => p.name === c);
744
+ return d !== void 0 ? xe(d) : !1;
745
+ })), fe(a, 1, s);
746
+ const n = a.series.some((c) => A(c)), l = a.series.some((c) => v(c));
747
+ if (n || l) {
748
+ const c = X(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && xe(d);
749
+ fe(a, 0, p);
668
750
  }
669
751
  }
670
- const ne = (t) => {
752
+ const me = (t) => {
671
753
  let e;
672
- if (M(t)) {
673
- const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue;
674
- e = [pe(s, a), pe(r, i)];
754
+ if (Y(t)) {
755
+ const i = t.orderOptions?.data?.orderByX ?? [""], a = t.orderOptions?.data?.orderByY ?? [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue;
756
+ e = [he(i, r), he(a, s)];
675
757
  } else {
676
- const s = t.orderOptions?.data?.orderType ?? q.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : ot.Ascending;
677
- e = [nt(r, s)];
758
+ const i = t.orderOptions?.data?.orderType ?? O.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : xt.Ascending;
759
+ e = [St(a, i)];
678
760
  }
679
761
  return e;
680
762
  };
681
- function Zt(t) {
682
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
763
+ function ci(t) {
764
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
683
765
  let c = !1;
684
- const m = X({
685
- config: a,
766
+ const d = U({
767
+ config: r,
686
768
  xAxisField: e,
687
- aggregationType: r,
688
- layerInfo: i,
769
+ aggregationType: a,
770
+ layerInfo: s,
689
771
  seriesIndex: 0,
690
772
  commonStrings: n
691
- }), p = Q({
692
- config: a,
773
+ }), p = te({
774
+ config: r,
693
775
  xAxisField: e,
694
- numericFields: s,
695
- aggregationType: r,
696
- layer: i.layer,
697
- fieldList: o
776
+ numericFields: i,
777
+ aggregationType: a,
778
+ layer: s.layer,
779
+ fieldList: l
698
780
  }).name, u = {
699
- ...m,
781
+ ...d,
700
782
  id: `series_${Date.now()}`,
701
783
  name: n.axisLabels.values,
702
- x: ie,
784
+ x: ue,
703
785
  y: p
704
- }, d = [];
705
- for (const g of s)
706
- d.push({
786
+ }, y = [];
787
+ for (const g of i)
788
+ y.push({
707
789
  onStatisticField: g,
708
790
  outStatisticFieldName: `${g}_0`.toUpperCase(),
709
- statisticType: r
791
+ statisticType: a
710
792
  });
711
- u.query = { outStatistics: d };
712
- const y = a.series[0];
713
- return y !== void 0 && (u.id = y.id, (A(u) && A(y) || v(u) && v(y)) && j(u, y), a.colorMatch || (O(y) && O(u) ? u.fillSymbol = y.fillSymbol : (A(u) && A(y) || v(u) && v(y)) && (u.lineSymbol = y.lineSymbol, u.markerSymbol = y.markerSymbol), c = !0), u.id = y.id, y.name !== m.name && (u.name = y.name)), a.series.length === 1 && ((A(u) || v(u)) && j(u, a.series[0]), a.colorMatch || (O(u) ? u.fillSymbol = a.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = a.series[0].lineSymbol, u.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [u];
793
+ u.query = { outStatistics: y };
794
+ const m = r.series[0];
795
+ return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && j(u, m), r.colorMatch || (q(m) && q(u) ? u.fillSymbol = m.fillSymbol : (A(u) && A(m) || v(u) && v(m)) && (u.lineSymbol = m.lineSymbol, u.markerSymbol = m.markerSymbol), c = !0), u.id = m.id, m.name !== d.name && (u.name = m.name)), r.series.length === 1 && ((A(u) || v(u)) && j(u, r.series[0]), r.colorMatch || (q(u) ? u.fillSymbol = r.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = r.series[0].lineSymbol, u.markerSymbol = r.series[0].markerSymbol), c = !0)), r.colorMatch = !c, [u];
714
796
  }
715
- function Ie(t) {
716
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = U(i.layer).idField, m = [];
797
+ function Ee(t) {
798
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, c = K(s.layer).idField, d = [];
717
799
  let p = !1;
718
- for (let l = 0; l < s.length; l += 1) {
719
- const f = X({
720
- config: a,
800
+ for (let o = 0; o < i.length; o += 1) {
801
+ const f = U({
802
+ config: r,
721
803
  xAxisField: e,
722
- aggregationType: r,
723
- layerInfo: i,
724
- seriesIndex: l,
804
+ aggregationType: a,
805
+ layerInfo: s,
806
+ seriesIndex: o,
725
807
  commonStrings: n
726
- }), x = a.series[l]?.y, b = typeof x == "string" && x.trim() !== "" && !o.find((h) => h.name === x) ? x : Q({
727
- config: a,
808
+ }), B = r.series[o]?.y, b = typeof B == "string" && B.trim() !== "" && !l.find((x) => x.name === B) ? B : te({
809
+ config: r,
728
810
  xAxisField: e,
729
- numericFields: s,
730
- aggregationType: r,
731
- layer: i.layer,
732
- numericFieldIndex: l,
733
- fieldList: o
734
- }).name, F = s[l];
811
+ numericFields: i,
812
+ aggregationType: a,
813
+ layer: s.layer,
814
+ numericFieldIndex: o,
815
+ fieldList: l
816
+ }).name, F = i[o];
735
817
  let S = {
736
818
  ...f,
737
819
  query: {
738
820
  ...f.query
739
821
  }
740
822
  };
741
- s && F !== c && (S = {
823
+ i && F !== c && (S = {
742
824
  ...S,
743
825
  id: F,
744
- name: D(o, F)
826
+ name: P(l, F)
745
827
  });
746
828
  let I = F;
747
- S.query !== void 0 && (r !== L.NoAggregation ? (I = b, S.query.outStatistics = [
829
+ S.query !== void 0 && (a !== L.NoAggregation ? (I = b, S.query.outStatistics = [
748
830
  {
749
831
  ...f.query?.outStatistics?.[0] ?? {},
750
832
  onStatisticField: F,
751
833
  outStatisticFieldName: b,
752
- statisticType: r
834
+ statisticType: a
753
835
  }
754
836
  ]) : delete S.query.outStatistics), S.y = I;
755
- const T = a.series.find(
756
- (h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
837
+ const T = r.series.find(
838
+ (x) => x.query?.outStatistics?.[0]?.onStatisticField === F && x.query.where === void 0 || x.query?.outStatistics === void 0 && (x.y === F || x.x === F)
757
839
  );
758
840
  if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
759
- (A(S) && A(T) || v(S) && v(T)) && j(S, T), a.colorMatch || (O(S) && O(T) ? S.fillSymbol = T.fillSymbol : (A(S) && A(T) || v(S) && v(T)) && (S.lineSymbol = T.lineSymbol, S.markerSymbol = T.markerSymbol), p = !0);
760
- const h = X({
761
- config: a,
841
+ (A(S) && A(T) || v(S) && v(T)) && j(S, T), r.colorMatch || (q(S) && q(T) ? S.fillSymbol = T.fillSymbol : (A(S) && A(T) || v(S) && v(T)) && (S.lineSymbol = T.lineSymbol, S.markerSymbol = T.markerSymbol), p = !0);
842
+ const x = U({
843
+ config: r,
762
844
  xAxisField: e,
763
- aggregationType: r,
764
- layerInfo: i,
765
- seriesIndex: l,
845
+ aggregationType: a,
846
+ layerInfo: s,
847
+ seriesIndex: o,
766
848
  commonStrings: n
767
849
  });
768
- S.id = T.id, T.id !== h.id && T.name !== h.name && (S.id = T.id, S.name = T.name), S.assignToSecondValueAxis = T.assignToSecondValueAxis, S.type === B.HeatSeries && T.type === B.HeatSeries && (S.y = T.y, S.heatRulesType = T.heatRulesType);
850
+ S.id = T.id, T.id !== x.id && T.name !== x.name && (S.id = T.id, S.name = T.name), S.assignToSecondValueAxis = T.assignToSecondValueAxis, S.type === h.HeatSeries && T.type === h.HeatSeries && (S.y = T.y, S.heatRulesType = T.heatRulesType);
769
851
  }
770
- m.push(S);
852
+ d.push(S);
771
853
  }
772
- const u = m.filter((l) => O(l)), d = m.filter(
773
- (l) => A(l) || v(l)
774
- ), y = a.series.filter((l) => O(l)), g = a.series.filter(
775
- (l) => A(l) || v(l)
854
+ const u = d.filter((o) => q(o)), y = d.filter(
855
+ (o) => A(o) || v(o)
856
+ ), m = r.series.filter((o) => q(o)), g = r.series.filter(
857
+ (o) => A(o) || v(o)
776
858
  );
777
- return y.length === 1 && u.length === 1 && !a.colorMatch && (O(y[0]) && O(u[0]) && (u[0].fillSymbol = y[0].fillSymbol), p = !0), g.length === 1 && d.length === 1 && ((A(g[0]) && A(d[0]) || v(g[0]) && v(d[0])) && j(d[0], g[0]), a.colorMatch || ((A(g[0]) && A(d[0]) || v(g[0]) && v(d[0])) && (d[0].lineSymbol = g[0].lineSymbol, d[0].markerSymbol = g[0].markerSymbol), p = !0)), a.colorMatch = !p, m;
859
+ return m.length === 1 && u.length === 1 && !r.colorMatch && (q(m[0]) && q(u[0]) && (u[0].fillSymbol = m[0].fillSymbol), p = !0), g.length === 1 && y.length === 1 && ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && j(y[0], g[0]), r.colorMatch || ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), p = !0)), r.colorMatch = !p, d;
778
860
  }
779
- function Si(t) {
780
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = Y(s), c = J(s), m = G(s), p = ee(s, r, a), u = Le(s, r, a);
781
- if (s.series.forEach((d, y) => {
782
- const g = Q({
783
- config: s,
784
- xAxisField: o,
861
+ function Os(t) {
862
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s, layer: n } = a, l = X(i), c = re(i), d = ae(i), p = ne(i, a, r), u = We(i, a, r);
863
+ if (i.series.forEach((y, m) => {
864
+ const g = te({
865
+ config: i,
866
+ xAxisField: l,
785
867
  numericFields: c,
786
868
  aggregationType: e,
787
- splitByField: m,
869
+ splitByField: d,
788
870
  layer: n,
789
- seriesIndex: y,
790
- numericFieldIndex: y,
791
- fieldList: i
871
+ seriesIndex: m,
872
+ numericFieldIndex: m,
873
+ fieldList: s
792
874
  }).name;
793
- d.y = g;
794
- const l = ve({
795
- splitByField: m,
875
+ y.y = g;
876
+ const o = Me({
877
+ splitByField: d,
796
878
  numericFields: c,
797
879
  layer: n,
798
- seriesIndex: y
799
- }), f = d.query?.outStatistics?.[0]?.onStatisticField ?? l;
800
- d.query = {
801
- ...d.query,
880
+ seriesIndex: m
881
+ }), f = y.query?.outStatistics?.[0]?.onStatisticField ?? o;
882
+ y.query = {
883
+ ...y.query,
802
884
  outStatistics: e === L.NoAggregation ? void 0 : [
803
885
  {
804
- ...d.query?.outStatistics?.[0],
886
+ ...y.query?.outStatistics?.[0],
805
887
  outStatisticFieldName: g,
806
888
  statisticType: e,
807
889
  onStatisticField: f
808
890
  }
809
891
  ]
810
- }, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === L.NoAggregation ? $.Interpolate : $.Null), e === L.NoAggregation && Nt(s);
811
- }), p && s.title && (s.title.content.text = H(s, r, a)), u && s.series[0].type !== B.HeatSeries) {
812
- const d = le({
813
- config: s,
814
- layerInfo: r,
815
- commonStrings: a,
892
+ }, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === L.NoAggregation ? $.Interpolate : $.Null), e === L.NoAggregation && Yt(i);
893
+ }), p && i.title && (i.title.content.text = Z(i, a, r)), u && i.series[0].type !== h.HeatSeries) {
894
+ const y = pe({
895
+ config: i,
896
+ layerInfo: a,
897
+ commonStrings: r,
816
898
  numericFields: c,
817
899
  aggregationType: e
818
900
  });
819
- E(s, 1, d);
901
+ E(i, 1, y);
820
902
  }
821
903
  }
822
- function _t(t) {
904
+ function di(t) {
823
905
  const {
824
906
  splitByField: e,
825
- xAxisField: s,
826
- numericFields: r,
827
- aggregationType: a,
828
- config: i,
907
+ xAxisField: i,
908
+ numericFields: a,
909
+ aggregationType: r,
910
+ config: s,
829
911
  layerInfo: n,
830
- commonStrings: o,
912
+ commonStrings: l,
831
913
  splitByFieldInfos: c
832
- } = t, { layer: m, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: d } = c, y = ve({
914
+ } = t, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = Me({
833
915
  splitByField: e,
834
- numericFields: r,
835
- layer: m,
916
+ numericFields: a,
917
+ layer: d,
836
918
  seriesIndex: 0
837
919
  });
838
- let g = [], l = !1;
920
+ let g = [], o = !1;
839
921
  if (u.length === 0) {
840
- g = Ie({
841
- xAxisField: s,
842
- numericFields: r,
843
- aggregationType: a,
844
- config: i,
922
+ g = Ee({
923
+ xAxisField: i,
924
+ numericFields: a,
925
+ aggregationType: r,
926
+ config: s,
845
927
  layerInfo: n,
846
- commonStrings: o
928
+ commonStrings: l
847
929
  });
848
930
  for (const f of g)
849
931
  f.query && (f.query.where = `${e}=''`);
850
932
  } else
851
933
  for (let f = 0; f < u.length; f += 1) {
852
- const x = u[f], b = Q({
853
- config: i,
854
- xAxisField: s,
855
- numericFields: r,
856
- aggregationType: a,
934
+ const B = u[f], b = te({
935
+ config: s,
936
+ xAxisField: i,
937
+ numericFields: a,
938
+ aggregationType: r,
857
939
  layer: n.layer,
858
940
  seriesIndex: f,
859
941
  splitByField: e,
860
942
  fieldList: p
861
- }).name, F = X({
862
- config: i,
863
- xAxisField: s,
864
- aggregationType: a,
943
+ }).name, F = U({
944
+ config: s,
945
+ xAxisField: i,
946
+ aggregationType: r,
865
947
  layerInfo: n,
866
948
  seriesIndex: f,
867
- commonStrings: o
868
- }), S = he({
949
+ commonStrings: l
950
+ }), S = Ne({
869
951
  queryObject: n.layer,
870
952
  fieldName: e,
871
- fieldValue: x ?? ""
872
- }), I = `${x}`, h = {
953
+ fieldValue: B ?? ""
954
+ }), I = `${B}`, x = {
873
955
  ...F,
874
956
  id: I,
875
957
  name: S ?? I,
876
958
  y: b,
877
959
  query: {
878
960
  ...F.query,
879
- where: `${e}=${d === dt.String && x !== null ? `'${x}'` : x}`,
880
- outStatistics: a !== L.NoAggregation ? [
961
+ where: `${e}=${y === Bt.String && B !== null ? `'${B}'` : B}`,
962
+ outStatistics: r !== L.NoAggregation ? [
881
963
  {
882
964
  ...F.query?.outStatistics?.[0] ?? {},
883
- onStatisticField: y,
965
+ onStatisticField: m,
884
966
  outStatisticFieldName: b,
885
- statisticType: a
967
+ statisticType: r
886
968
  }
887
969
  ] : void 0
888
970
  }
889
- }, V = i.series.find(
890
- (N) => String(be(N)).trim().replace(/'/gu, "") === I
971
+ }, V = s.series.find(
972
+ (N) => String(Pe(N)).trim().replace(/'/gu, "") === I
891
973
  );
892
- V !== void 0 && ((A(h) && A(V) || v(h) && v(V)) && j(h, V), i.colorMatch || (O(h) && O(V) ? h.fillSymbol = V.fillSymbol : (A(h) && A(V) || v(h) && v(V)) && (h.lineSymbol = V.lineSymbol, h.markerSymbol = V.markerSymbol), l = !0), h.id = V.id, h.name = V.name, h.assignToSecondValueAxis = V.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = i.series.some((N) => N.query?.fetchNullValues)), g.push(h);
974
+ V !== void 0 && ((A(x) && A(V) || v(x) && v(V)) && j(x, V), s.colorMatch || (q(x) && q(V) ? x.fillSymbol = V.fillSymbol : (A(x) && A(V) || v(x) && v(V)) && (x.lineSymbol = V.lineSymbol, x.markerSymbol = V.markerSymbol), o = !0), x.id = V.id, x.name = V.name, x.assignToSecondValueAxis = V.assignToSecondValueAxis), x.query && (x.query.fetchNullValues = s.series.some((N) => N.query?.fetchNullValues)), g.push(x);
893
975
  }
894
- return i.colorMatch = !l, g;
976
+ return s.colorMatch = !o, g;
895
977
  }
896
- const Fi = (t) => {
978
+ const ks = (t) => {
897
979
  const {
898
980
  xAxisFieldName: e,
899
- splitByField: s,
900
- numericFields: r,
901
- aggregationType: a,
902
- config: i,
981
+ splitByField: i,
982
+ numericFields: a,
983
+ aggregationType: r,
984
+ config: s,
903
985
  layerInfo: n,
904
- commonStrings: o,
986
+ commonStrings: l,
905
987
  splitByFieldInfos: c
906
- } = t, { layerFieldsInfo: m } = n ?? {}, p = Z(i), u = At(i), d = Y(p), y = m.find((C) => C.name === d), g = p.series[0].query?.fetchNullValues, l = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, x = m.find((C) => C.name === e), b = ee(p, n, o), F = Le(p, n, o), S = Qt(p, n);
907
- let I = Fe(i);
908
- const T = p.series.some((C) => O(C)), h = ht(p.series), V = Tt(p.series), N = {};
909
- M(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
910
- let te = !1;
911
- if (rt(x) ? I = ge() : !ye(y) && ye(x) ? I = fe() : !K(y) && K(x) ? (I = fe(), te = !0) : K(y) && !K(x) && (T ? I = ge() : I = Ft(), te = !0), I !== void 0 && Oe(i, o, I), u === 0 && (i.series = [
912
- X({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
913
- ]), i.series.forEach((C) => {
988
+ } = t, { layerFieldsInfo: d } = n ?? {}, p = J(s), u = Pt(s), y = X(p), m = d.find((C) => C.name === y), g = p.series[0].query?.fetchNullValues, o = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, B = d.find((C) => C.name === e), b = ne(p, n, l), F = We(p, n, l), S = yi(p, n);
989
+ let I = Ve(s);
990
+ const T = p.series.some((C) => q(C)), x = Nt(p.series), V = Ot(p.series), N = {};
991
+ Y(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
992
+ let le = !1;
993
+ if (_(B) ? I = de() : !Q(m) && Q(B) ? I = z() : !W(m) && W(B) ? (I = z(), le = !0) : W(m) && !W(B) && (T ? I = de() : I = Vt(), le = !0), I !== void 0 && je(s, l, I), u === 0 && (s.series = [
994
+ U({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: l })
995
+ ]), s.series.forEach((C) => {
914
996
  C.x = e, C.query !== void 0 && (C.query.groupByFieldsForStatistics = [e]);
915
- }), s === "" || r.length > 1 ? Te({
997
+ }), i === "" || a.length > 1 ? Oe({
916
998
  fieldName: e,
917
- numericFields: r,
918
- fieldList: m
919
- }) ? i.series = Zt({
920
- config: i,
999
+ numericFields: a,
1000
+ fieldList: d
1001
+ }) ? s.series = ci({
1002
+ config: s,
921
1003
  layerInfo: n,
922
1004
  xAxisField: e,
923
- numericFields: r,
924
- aggregationType: a,
925
- commonStrings: o
926
- }) : i.series = Ie({
927
- config: i,
1005
+ numericFields: a,
1006
+ aggregationType: r,
1007
+ commonStrings: l
1008
+ }) : s.series = Ee({
1009
+ config: s,
928
1010
  layerInfo: n,
929
1011
  xAxisField: e,
930
- numericFields: r,
931
- aggregationType: a,
932
- commonStrings: o
933
- }) : c && (i.series = _t({
934
- config: i,
1012
+ numericFields: a,
1013
+ aggregationType: r,
1014
+ commonStrings: l
1015
+ }) : c && (s.series = di({
1016
+ config: s,
935
1017
  layerInfo: n,
936
- splitByField: s,
1018
+ splitByField: i,
937
1019
  xAxisField: e,
938
- numericFields: r,
939
- aggregationType: a,
940
- commonStrings: o,
1020
+ numericFields: a,
1021
+ aggregationType: r,
1022
+ commonStrings: l,
941
1023
  splitByFieldInfos: c
942
- })), S && i.series[0].type !== B.HeatSeries) {
943
- const C = D(m, e);
944
- E(i, 0, C);
1024
+ })), S && s.series[0].type !== h.HeatSeries) {
1025
+ const C = P(d, e);
1026
+ E(s, 0, C);
945
1027
  }
946
- if (F && i.series[0].type !== B.HeatSeries) {
947
- const C = le({
948
- config: i,
1028
+ if (F && s.series[0].type !== h.HeatSeries) {
1029
+ const C = pe({
1030
+ config: s,
949
1031
  layerInfo: n,
950
- commonStrings: o,
951
- numericFields: r,
952
- aggregationType: a
1032
+ commonStrings: l,
1033
+ numericFields: a,
1034
+ aggregationType: r
953
1035
  });
954
- E(i, 1, C);
1036
+ E(s, 1, C);
955
1037
  }
956
- if (b && i.title && (i.title.content.text = H(i, n, o)), R({ config: i, value: null, axisIndex: 1, isMax: !1 }), R({ config: i, value: null, axisIndex: 1, isMax: !0 }), Kt({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (h || V) && (R({ config: i, value: null, axisIndex: 0, isMax: !1 }), R({ config: i, value: null, axisIndex: 0, isMax: !0 }), te && a !== L.NoAggregation)) {
957
- const C = I?.type === B.DateAxisFormat ? $.Null : $.Interpolate;
958
- Vt(C, i);
1038
+ if (b && s.title && (s.title.content.text = Z(s, n, l)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), ui({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (x || V) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), le && r !== L.NoAggregation)) {
1039
+ const C = I?.type === h.DateAxisFormat ? $.Null : $.Interpolate;
1040
+ Wt(C, s);
959
1041
  }
960
- M(i) && (i.series[0].classBreaksRules = N.classBreaksRules, i.series[0].xTemporalBinning = N.xTemporalBinning, i.series[0].yTemporalBinning = N.yTemporalBinning, i.series[0].emptyCells = N.emptyCells, i.nullPolicy = N.nullPolicy), f ? i.series.forEach((C) => {
1042
+ Y(s) && (s.series[0].classBreaksRules = N.classBreaksRules, s.series[0].xTemporalBinning = N.xTemporalBinning, s.series[0].yTemporalBinning = N.yTemporalBinning, s.series[0].emptyCells = N.emptyCells, s.nullPolicy = N.nullPolicy, Re({ commonStrings: l, config: s, layerInfo: n })), f ? s.series.forEach((C) => {
961
1043
  delete C.query;
962
- }) : g && i.series.forEach((C) => {
1044
+ }) : g && s.series.forEach((C) => {
963
1045
  C.query && (C.query.fetchNullValues = g);
964
- }), l && i.series.forEach((C) => {
965
- (C.type === B.BarSeries || C.type === B.LineSeries || C.type === B.RadarSeries) && (C.nullCategory = l);
966
- }), i.series.forEach((C) => {
967
- const Ve = p.series.find((Ne) => Ne.id === C.id)?.visible;
968
- C.visible = Ve;
1046
+ }), o && s.series.forEach((C) => {
1047
+ (C.type === h.BarSeries || C.type === h.LineSeries || C.type === h.RadarSeries) && (C.nullCategory = o);
1048
+ }), s.series.forEach((C) => {
1049
+ const Ye = p.series.find(($e) => $e.id === C.id)?.visible;
1050
+ C.visible = Ye;
969
1051
  });
970
1052
  }, j = (t, e) => {
971
1053
  t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
972
1054
  ...e.markerSymbol,
973
1055
  color: t.markerSymbol?.color
974
1056
  });
975
- }, hi = (t) => {
976
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = G(e);
977
- let o;
978
- if (_(e.series) === P.BarAndLineFromFields)
979
- o = a.axisLabels.values;
980
- else if (qe(n)) {
981
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
982
- m !== void 0 && m !== U(r.layer).idField && (o = D(r.layerFieldsInfo, m));
1057
+ }, Ds = (t) => {
1058
+ const { config: e, seriesIndex: i, layerInfo: a, commonStrings: r } = t, s = e.series?.[i], n = ae(e);
1059
+ let l;
1060
+ if (ee(e.series) === w.BarAndLineFromFields)
1061
+ l = r.axisLabels.values;
1062
+ else if (He(n)) {
1063
+ const d = s.query?.outStatistics?.[0]?.onStatisticField;
1064
+ d !== void 0 && d !== K(a.layer).idField && (l = P(a.layerFieldsInfo, d));
983
1065
  } else {
984
- const m = String(be(i)).trim().replace(/'/gu, "");
985
- o = he({
986
- queryObject: r.layer,
1066
+ const d = String(Pe(s)).trim().replace(/'/gu, "");
1067
+ l = Ne({
1068
+ queryObject: a.layer,
987
1069
  fieldName: n,
988
- fieldValue: m ?? ""
989
- }) ?? m;
1070
+ fieldValue: d ?? ""
1071
+ }) ?? d;
990
1072
  }
991
- return o ?? i.id;
992
- }, Ti = (t, e) => {
993
- if (M(e))
994
- Ut(t, e);
1073
+ return l ?? s.id;
1074
+ }, qs = (t, e) => {
1075
+ if (Y(e))
1076
+ ai(t, e);
995
1077
  else {
996
1078
  e.orderOptions ??= {};
997
- const s = e.orderOptions?.data?.orderType;
998
- ne(e)[0] === se.customSort && s === q.Category && (e.orderOptions.data = {
999
- orderType: q.Category,
1079
+ const i = e.orderOptions?.data?.orderType;
1080
+ me(e)[0] === oe.customSort && i === O.Category && (e.orderOptions.data = {
1081
+ orderType: O.Category,
1000
1082
  orderBy: [...t]
1001
1083
  });
1002
1084
  }
1003
- }, xi = async (t) => {
1004
- const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, n = J(e), o = _(e.series);
1085
+ }, Rs = async (t) => {
1086
+ const { config: e, layerInfo: i, errorStrings: a } = t, r = X(e), s = Ve(e)?.type, n = re(e), l = ee(e.series);
1005
1087
  let c = [];
1006
- return i === B.CategoryAxisFormat && (o === P.BarAndLineFromFields || a === ie ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ie && s !== void 0 && (c = await ke({
1007
- layerInfo: s,
1088
+ return s === h.CategoryAxisFormat && (l === w.BarAndLineFromFields || r === ue ? c = n.map((d) => P(i?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ue && i !== void 0 && (c = await Ue({
1089
+ layerInfo: i,
1008
1090
  config: e,
1009
- category: a,
1010
- errorStrings: r
1091
+ category: r,
1092
+ errorStrings: a
1011
1093
  }))), c;
1012
1094
  };
1013
- function ee(t, e, s) {
1014
- const r = H(t, e, s), a = vt(t), i = z(t);
1015
- return r === a || i;
1095
+ function ne(t, e, i) {
1096
+ const a = Z(t, e, i), r = wt(t), s = ie(t);
1097
+ return a === r || s;
1016
1098
  }
1017
- function Le(t, e, s) {
1018
- const r = le({
1099
+ function We(t, e, i) {
1100
+ const a = pe({
1019
1101
  config: t,
1020
1102
  layerInfo: e,
1021
- commonStrings: s,
1022
- numericFields: J(t),
1023
- aggregationType: Ae(t)
1024
- }), a = ue(1, t), i = z(t);
1025
- return r === a || i;
1103
+ commonStrings: i,
1104
+ numericFields: re(t),
1105
+ aggregationType: we(t)
1106
+ }), r = se(1, t), s = ie(t);
1107
+ return a === r || s;
1026
1108
  }
1027
- function Qt(t, e) {
1028
- const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
1029
- return s === r || a;
1109
+ function yi(t, e) {
1110
+ const i = P(e.layerFieldsInfo, X(t)), a = se(0, t), r = ie(t);
1111
+ return i === a || r;
1030
1112
  }
1031
- function Bi(t) {
1032
- return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1113
+ function Ps(t) {
1114
+ return D(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1033
1115
  }
1034
- function Ci(t, e) {
1035
- e?.series.forEach((s) => {
1036
- (s?.type === B.BarSeries || s?.type === B.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1037
- unit: ae.Day,
1116
+ function ws(t, e) {
1117
+ e?.series.forEach((i) => {
1118
+ (i?.type === h.BarSeries || i?.type === h.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
1119
+ unit: ce.Day,
1038
1120
  size: 0,
1039
- timeAggregationType: ut.Start,
1121
+ timeAggregationType: ht.Start,
1040
1122
  trimIncompleteTimeInterval: !0,
1041
1123
  nullPolicy: $.Null
1042
- } : delete s.temporalBinning);
1124
+ } : delete i.temporalBinning);
1043
1125
  });
1044
1126
  }
1045
1127
  export {
1046
- Xs as $,
1047
- xi as A,
1048
- Ti as B,
1049
- Fi as C,
1050
- Bi as D,
1051
- Ci as E,
1052
- H as F,
1053
- jt as G,
1054
- Ds as H,
1055
- ri as I,
1056
- ni as J,
1057
- ws as K,
1058
- Ps as L,
1059
- Ms as M,
1060
- Es as N,
1061
- li as O,
1062
- oi as P,
1063
- ui as Q,
1064
- ci as R,
1065
- mi as S,
1066
- pi as T,
1067
- gi as U,
1068
- fi as V,
1069
- Dt as W,
1070
- Vs as X,
1071
- Ns as Y,
1072
- Ws as Z,
1073
- $s as _,
1074
- As as a,
1075
- Ys as a0,
1076
- Rs as a1,
1077
- qs as a2,
1078
- Os as a3,
1079
- ks as a4,
1080
- Hs as a5,
1081
- Ks as a6,
1082
- Zs as a7,
1083
- _s as a8,
1084
- Us as a9,
1085
- js as aa,
1086
- Qs as ab,
1087
- Ht as ac,
1088
- zs as ad,
1089
- Gs as ae,
1090
- Js as af,
1091
- ei as ag,
1092
- ti as ah,
1093
- si as ai,
1094
- yi as aj,
1095
- di as ak,
1096
- ii as al,
1097
- ai as am,
1098
- Bs as b,
1099
- Cs as c,
1100
- J as d,
1101
- G as e,
1102
- Ls as f,
1103
- Ae as g,
1104
- hi as h,
1105
- vs as i,
1106
- gs as j,
1107
- Lt as k,
1108
- It as l,
1109
- hs as m,
1110
- fs as n,
1111
- Ts as o,
1112
- Is as p,
1113
- Ss as q,
1114
- Pt as r,
1115
- Ce as s,
1116
- xs as t,
1117
- bs as u,
1118
- Fs as v,
1119
- Vt as w,
1120
- Nt as x,
1121
- Si as y,
1122
- ne as z
1128
+ es as $,
1129
+ Rs as A,
1130
+ qs as B,
1131
+ ks as C,
1132
+ Ps as D,
1133
+ ws as E,
1134
+ Z as F,
1135
+ Re as G,
1136
+ ti as H,
1137
+ zi as I,
1138
+ xs as J,
1139
+ hs as K,
1140
+ ii as L,
1141
+ Gi as M,
1142
+ si as N,
1143
+ Ji as O,
1144
+ Ts as P,
1145
+ Bs as Q,
1146
+ Cs as R,
1147
+ bs as S,
1148
+ Is as T,
1149
+ Ls as U,
1150
+ Vs as V,
1151
+ jt as W,
1152
+ Ns as X,
1153
+ Ui as Y,
1154
+ ji as Z,
1155
+ ts as _,
1156
+ Yi as a,
1157
+ ss as a0,
1158
+ is as a1,
1159
+ Zi as a2,
1160
+ Ki as a3,
1161
+ Qi as a4,
1162
+ _i as a5,
1163
+ ns as a6,
1164
+ ls as a7,
1165
+ os as a8,
1166
+ us as a9,
1167
+ rs as aa,
1168
+ as as ab,
1169
+ cs as ac,
1170
+ ri as ad,
1171
+ ds as ae,
1172
+ ys as af,
1173
+ ms as ag,
1174
+ ps as ah,
1175
+ gs as ai,
1176
+ fs as aj,
1177
+ vs as ak,
1178
+ As as al,
1179
+ Ss as am,
1180
+ Fs as an,
1181
+ Mi as b,
1182
+ Ei as c,
1183
+ re as d,
1184
+ ae as e,
1185
+ Xi as f,
1186
+ we as g,
1187
+ Ds as h,
1188
+ $i as i,
1189
+ Oi as j,
1190
+ Et as k,
1191
+ Mt as l,
1192
+ Ri as m,
1193
+ ki as n,
1194
+ Pi as o,
1195
+ Hi as p,
1196
+ Di as q,
1197
+ Kt as r,
1198
+ qe as s,
1199
+ wi as t,
1200
+ Wi as u,
1201
+ qi as v,
1202
+ Wt as w,
1203
+ Yt as x,
1204
+ Os as y,
1205
+ me as z
1123
1206
  };