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

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