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

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