@astrato-io/visualizations 0.6.4 → 0.6.5

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 (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -1,10 +1,9 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Hr as r, Jr as i, Lo as a, Oa as o, Ro as s, Sa as c, Ta as l, Vc as u, Wc as d, Wn as f, Xa as p, Yr as m, Zr as h, aa as g, ds as ee, er as _, hc as v, ls as y, n as b, pc as te, qo as x, ra as S, tr as C, ui as w, ya as T, yn as E, zn as D } from "./interfaces-VUY4_yVO.js";
3
- import { $ as O, G as k, Ht as A, K as j, Ki as M, Kn as N, Nn as P, Qt as F, Ui as ne, Vt as I, X as L, Zt as re, an as ie, cn as ae, d as oe, dn as R, hn as se, in as ce, it as le, l as z, nn as B, nt as V, on as H, pn as U, rn as ue, rt as W, s as de, sn as fe, un as G, v as pe, wi as me, xn as he } from "./utils-Ba9T0TqC.js";
4
- import { f as ge, h as _e, m as ve, o as ye, p as be } from "./src-Cum_2NLV.js";
5
- import { G as K, J as xe, K as q, Q as J, W as Se, at as Ce, ct as we, dt as Y, ht as Te, it as Ee, lt as De, mt as Oe, pt as ke, rt as Ae, st as je, tt as Me } from "./_baseFlatten-DPXPOrea.js";
6
- import { m as Ne } from "./src-DvX5LU9T.js";
7
- import { _ as Pe, c as Fe, m as Ie } from "./coloring-C16AUZEi.js";
2
+ import { Bc as r, Bn as i, Fn as a, Gr as o, Io as s, Ja as c, Ko as l, Lo as u, Rr as d, Sa as f, Ta as p, Uc as m, Wr as h, Xn as g, Zn as ee, cs as _, ea as v, fc as y, ga as b, mc as x, mn as S, na as C, oi as w, qr as T, ya as E } from "./isEqual-BDxAhUo8.js";
3
+ import { $t as D, Cn as O, Ei as k, Fn as A, G as j, Gi as M, J as N, Jn as te, Q as ne, Ut as re, Wt as ie, Yi as P, Zi as F, _n as ae, an as oe, at as se, cn as I, d as ce, en as le, fn as L, hn as ue, in as R, it as z, l as B, ln as V, on as H, ot as de, pn as U, q as W, s as fe, sn as pe, tt as me, un as he, v as ge } from "./utils-Bg7K-t6K.js";
4
+ import { Cn as G, Sn as _e, _n as ve, dn as ye, fn as be, gn as xe, hn as Se, in as K, mn as Ce, nn as we, on as Te, pn as Ee, rn as q, un as J, vn as Y, xn as De, y as Oe } from "./ui-DQWtv2iM.js";
5
+ import { a as ke, c as Ae, o as je, r as Me, s as Ne } from "./builder-B6dWSIdD.js";
6
+ import { f as Pe, l as Fe, r as Ie } from "./coloring-B1XAfg6b.js";
8
7
  import { A as Le, D as Re, F as ze, I as Be, M as Ve, P as He, R as Ue, a as We, g as Ge, h as Ke, m as qe, t as Je, x as Ye } from "./src-D9XogOrc.js";
9
8
  var Xe = {
10
9
  border: 0,
@@ -16,13 +15,13 @@ var Xe = {
16
15
  position: "absolute",
17
16
  whiteSpace: "nowrap",
18
17
  width: "1px"
19
- }, X = /* @__PURE__ */ e(M());
20
- R(), A();
21
- var Ze = L();
18
+ }, X = /* @__PURE__ */ e(P());
19
+ U(), ie();
20
+ var Ze = ne();
22
21
  function Qe(e, t, n = (e, t) => e === t) {
23
22
  return e.length === t.length && e.every((e, r) => n(e, t[r]));
24
23
  }
25
- W();
24
+ se();
26
25
  var $e = 2;
27
26
  function et(e, t) {
28
27
  return e - t;
@@ -106,11 +105,11 @@ function pt() {
106
105
  return ft === void 0 && (ft = typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("touch-action", "none") : !0), ft;
107
106
  }
108
107
  function mt(e) {
109
- let { "aria-labelledby": t, defaultValue: n, disabled: r = !1, disableSwap: i = !1, isRtl: a = !1, marks: o = !1, max: s = 100, min: c = 0, name: l, onChange: u, onChangeCommitted: d, orientation: f = "horizontal", rootRef: p, scale: m = dt, step: h = 1, shiftStep: g = 10, tabIndex: ee, value: _ } = e, v = X.useRef(void 0), [y, b] = X.useState(-1), [te, x] = X.useState(-1), [S, C] = X.useState(!1), w = X.useRef(0), [T, E] = De({
108
+ let { "aria-labelledby": t, defaultValue: n, disabled: r = !1, disableSwap: i = !1, isRtl: a = !1, marks: o = !1, max: s = 100, min: c = 0, name: l, onChange: u, onChangeCommitted: d, orientation: f = "horizontal", rootRef: p, scale: m = dt, step: h = 1, shiftStep: g = 10, tabIndex: ee, value: _ } = e, v = X.useRef(void 0), [y, b] = X.useState(-1), [x, S] = X.useState(-1), [C, w] = X.useState(!1), T = X.useRef(0), [E, D] = ve({
110
109
  controlled: _,
111
110
  default: n ?? c,
112
111
  name: "Slider"
113
- }), D = u && ((e, t, n) => {
112
+ }), O = u && ((e, t, n) => {
114
113
  let r = e.nativeEvent || e, i = new r.constructor(r.type, r);
115
114
  Object.defineProperty(i, "target", {
116
115
  writable: !0,
@@ -119,84 +118,84 @@ function mt(e) {
119
118
  name: l
120
119
  }
121
120
  }), u(i, t, n);
122
- }), O = Array.isArray(T), k = O ? T.slice().sort(et) : [T];
123
- k = k.map((e) => e == null ? c : V(e, c, s));
124
- let A = o === !0 && h !== null ? [...Array(Math.floor((s - c) / h) + 1)].map((e, t) => ({ value: c + h * t })) : o || [], j = A.map((e) => e.value), { isFocusVisibleRef: M, onBlur: N, onFocus: P, ref: F } = Ce(), [ne, I] = X.useState(-1), L = X.useRef(null), re = je(p, je(F, L)), ie = (e) => (t) => {
121
+ }), k = Array.isArray(E), A = k ? E.slice().sort(et) : [E];
122
+ A = A.map((e) => e == null ? c : z(e, c, s));
123
+ let j = o === !0 && h !== null ? [...Array(Math.floor((s - c) / h) + 1)].map((e, t) => ({ value: c + h * t })) : o || [], M = j.map((e) => e.value), { isFocusVisibleRef: N, onBlur: te, onFocus: ne, ref: re } = Ce(), [ie, P] = X.useState(-1), F = X.useRef(null), ae = Se(p, Se(re, F)), oe = (e) => (t) => {
125
124
  var n;
126
125
  let r = Number(t.currentTarget.getAttribute("data-index"));
127
- P(t), M.current === !0 && I(r), x(r), e == null || (n = e.onFocus) == null || n.call(e, t);
128
- }, ae = (e) => (t) => {
126
+ ne(t), N.current === !0 && P(r), S(r), e == null || (n = e.onFocus) == null || n.call(e, t);
127
+ }, se = (e) => (t) => {
129
128
  var n;
130
- N(t), M.current === !1 && I(-1), x(-1), e == null || (n = e.onBlur) == null || n.call(e, t);
131
- }, oe = (e, t) => {
132
- let n = Number(e.currentTarget.getAttribute("data-index")), r = k[n], a = j.indexOf(r), o = t;
133
- if (A && h == null) {
134
- let e = j[j.length - 1];
135
- o = o > e ? e : o < j[0] ? j[0] : o < r ? j[a - 1] : j[a + 1];
129
+ te(t), N.current === !1 && P(-1), S(-1), e == null || (n = e.onBlur) == null || n.call(e, t);
130
+ }, I = (e, t) => {
131
+ let n = Number(e.currentTarget.getAttribute("data-index")), r = A[n], a = M.indexOf(r), o = t;
132
+ if (j && h == null) {
133
+ let e = M[M.length - 1];
134
+ o = o > e ? e : o < M[0] ? M[0] : o < r ? M[a - 1] : M[a + 1];
136
135
  }
137
- if (o = V(o, c, s), O) {
138
- i && (o = V(o, k[n - 1] || -Infinity, k[n + 1] || Infinity));
136
+ if (o = z(o, c, s), k) {
137
+ i && (o = z(o, A[n - 1] || -Infinity, A[n + 1] || Infinity));
139
138
  let e = o;
140
139
  o = st({
141
- values: k,
140
+ values: A,
142
141
  newValue: o,
143
142
  index: n
144
143
  });
145
144
  let t = n;
146
145
  i || (t = o.indexOf(e)), ct({
147
- sliderRef: L,
146
+ sliderRef: F,
148
147
  activeIndex: t
149
148
  });
150
149
  }
151
- E(o), I(n), D && !lt(o, T) && D(e, o, n), d && d(e, o);
152
- }, R = (e) => (t) => {
150
+ D(o), P(n), O && !lt(o, E) && O(e, o, n), d && d(e, o);
151
+ }, ce = (e) => (t) => {
153
152
  var n;
154
153
  if (h !== null) {
155
- let e = Number(t.currentTarget.getAttribute("data-index")), n = k[e], r = null;
156
- (t.key === "ArrowLeft" || t.key === "ArrowDown") && t.shiftKey || t.key === "PageDown" ? r = Math.max(n - g, c) : ((t.key === "ArrowRight" || t.key === "ArrowUp") && t.shiftKey || t.key === "PageUp") && (r = Math.min(n + g, s)), r !== null && (oe(t, r), t.preventDefault());
154
+ let e = Number(t.currentTarget.getAttribute("data-index")), n = A[e], r = null;
155
+ (t.key === "ArrowLeft" || t.key === "ArrowDown") && t.shiftKey || t.key === "PageDown" ? r = Math.max(n - g, c) : ((t.key === "ArrowRight" || t.key === "ArrowUp") && t.shiftKey || t.key === "PageUp") && (r = Math.min(n + g, s)), r !== null && (I(t, r), t.preventDefault());
157
156
  }
158
157
  e == null || (n = e.onKeyDown) == null || n.call(e, t);
159
158
  };
160
- le(() => {
161
- if (r && L.current.contains(document.activeElement)) {
159
+ de(() => {
160
+ if (r && F.current.contains(document.activeElement)) {
162
161
  var e;
163
162
  (e = document.activeElement) == null || e.blur();
164
163
  }
165
- }, [r]), r && y !== -1 && b(-1), r && ne !== -1 && I(-1);
166
- let se = (e) => (t) => {
164
+ }, [r]), r && y !== -1 && b(-1), r && ie !== -1 && P(-1);
165
+ let le = (e) => (t) => {
167
166
  var n;
168
- (n = e.onChange) == null || n.call(e, t), oe(t, t.target.valueAsNumber);
169
- }, ce = X.useRef(void 0), z = f;
170
- a && f === "horizontal" && (z += "-reverse");
167
+ (n = e.onChange) == null || n.call(e, t), I(t, t.target.valueAsNumber);
168
+ }, ue = X.useRef(void 0), R = f;
169
+ a && f === "horizontal" && (R += "-reverse");
171
170
  let B = ({ finger: e, move: t = !1 }) => {
172
- let { current: n } = L, { width: r, height: a, bottom: o, left: l } = n.getBoundingClientRect(), u;
173
- u = z.indexOf("vertical") === 0 ? (o - e.y) / a : (e.x - l) / r, z.indexOf("-reverse") !== -1 && (u = 1 - u);
171
+ let { current: n } = F, { width: r, height: a, bottom: o, left: l } = n.getBoundingClientRect(), u;
172
+ u = R.indexOf("vertical") === 0 ? (o - e.y) / a : (e.x - l) / r, R.indexOf("-reverse") !== -1 && (u = 1 - u);
174
173
  let d;
175
174
  if (d = it(u, c, s), h) d = ot(d, h, c);
176
175
  else {
177
- let e = tt(j, d);
178
- d = j[e];
176
+ let e = tt(M, d);
177
+ d = M[e];
179
178
  }
180
- d = V(d, c, s);
179
+ d = z(d, c, s);
181
180
  let f = 0;
182
- if (O) {
183
- f = t ? ce.current : tt(k, d), i && (d = V(d, k[f - 1] || -Infinity, k[f + 1] || Infinity));
181
+ if (k) {
182
+ f = t ? ue.current : tt(A, d), i && (d = z(d, A[f - 1] || -Infinity, A[f + 1] || Infinity));
184
183
  let e = d;
185
184
  d = st({
186
- values: k,
185
+ values: A,
187
186
  newValue: d,
188
187
  index: f
189
- }), i && t || (f = d.indexOf(e), ce.current = f);
188
+ }), i && t || (f = d.indexOf(e), ue.current = f);
190
189
  }
191
190
  return {
192
191
  newValue: d,
193
192
  activeIndex: f
194
193
  };
195
- }, H = we((e) => {
194
+ }, V = xe((e) => {
196
195
  let t = nt(e, v);
197
196
  if (!t) return;
198
- if (w.current += 1, e.type === "mousemove" && e.buttons === 0) {
199
- U(e);
197
+ if (T.current += 1, e.type === "mousemove" && e.buttons === 0) {
198
+ H(e);
200
199
  return;
201
200
  }
202
201
  let { newValue: n, activeIndex: r } = B({
@@ -204,19 +203,19 @@ function mt(e) {
204
203
  move: !0
205
204
  });
206
205
  ct({
207
- sliderRef: L,
206
+ sliderRef: F,
208
207
  activeIndex: r,
209
208
  setActive: b
210
- }), E(n), !S && w.current > $e && C(!0), D && !lt(n, T) && D(e, n, r);
211
- }), U = we((e) => {
209
+ }), D(n), !C && T.current > $e && w(!0), O && !lt(n, E) && O(e, n, r);
210
+ }), H = xe((e) => {
212
211
  let t = nt(e, v);
213
- if (C(!1), !t) return;
212
+ if (w(!1), !t) return;
214
213
  let { newValue: n } = B({
215
214
  finger: t,
216
215
  move: !0
217
216
  });
218
- b(-1), e.type === "touchend" && x(-1), d && d(e, n), v.current = void 0, W();
219
- }), ue = we((e) => {
217
+ b(-1), e.type === "touchend" && S(-1), d && d(e, n), v.current = void 0, W();
218
+ }), U = xe((e) => {
220
219
  if (r) return;
221
220
  pt() || e.preventDefault();
222
221
  let t = e.changedTouches[0];
@@ -225,27 +224,27 @@ function mt(e) {
225
224
  if (n !== !1) {
226
225
  let { newValue: t, activeIndex: r } = B({ finger: n });
227
226
  ct({
228
- sliderRef: L,
227
+ sliderRef: F,
229
228
  activeIndex: r,
230
229
  setActive: b
231
- }), E(t), D && !lt(t, T) && D(e, t, r);
230
+ }), D(t), O && !lt(t, E) && O(e, t, r);
232
231
  }
233
- w.current = 0;
234
- let i = Y(L.current);
235
- i.addEventListener("touchmove", H, { passive: !0 }), i.addEventListener("touchend", U, { passive: !0 });
232
+ T.current = 0;
233
+ let i = Y(F.current);
234
+ i.addEventListener("touchmove", V, { passive: !0 }), i.addEventListener("touchend", H, { passive: !0 });
236
235
  }), W = X.useCallback(() => {
237
- let e = Y(L.current);
238
- e.removeEventListener("mousemove", H), e.removeEventListener("mouseup", U), e.removeEventListener("touchmove", H), e.removeEventListener("touchend", U);
239
- }, [U, H]);
236
+ let e = Y(F.current);
237
+ e.removeEventListener("mousemove", V), e.removeEventListener("mouseup", H), e.removeEventListener("touchmove", V), e.removeEventListener("touchend", H);
238
+ }, [H, V]);
240
239
  X.useEffect(() => {
241
- let { current: e } = L;
242
- return e.addEventListener("touchstart", ue, { passive: pt() }), () => {
243
- e.removeEventListener("touchstart", ue), W();
240
+ let { current: e } = F;
241
+ return e.addEventListener("touchstart", U, { passive: pt() }), () => {
242
+ e.removeEventListener("touchstart", U), W();
244
243
  };
245
- }, [W, ue]), X.useEffect(() => {
244
+ }, [W, U]), X.useEffect(() => {
246
245
  r && W();
247
246
  }, [r, W]);
248
- let de = (e) => (t) => {
247
+ let fe = (e) => (t) => {
249
248
  var n;
250
249
  if ((n = e.onMouseDown) == null || n.call(e, t), r || t.defaultPrevented || t.button !== 0) return;
251
250
  t.preventDefault();
@@ -253,40 +252,40 @@ function mt(e) {
253
252
  if (i !== !1) {
254
253
  let { newValue: e, activeIndex: n } = B({ finger: i });
255
254
  ct({
256
- sliderRef: L,
255
+ sliderRef: F,
257
256
  activeIndex: n,
258
257
  setActive: b
259
- }), E(e), D && !lt(e, T) && D(t, e, n);
258
+ }), D(e), O && !lt(e, E) && O(t, e, n);
260
259
  }
261
- w.current = 0;
262
- let a = Y(L.current);
263
- a.addEventListener("mousemove", H, { passive: !0 }), a.addEventListener("mouseup", U);
264
- }, fe = rt(O ? k[0] : c, c, s), pe = rt(k[k.length - 1], c, s) - fe, me = (e = {}) => {
265
- let t = Me(e), n = G({}, t, { onMouseDown: de(t || {}) });
266
- return G({}, e, { ref: re }, n);
267
- }, he = (e) => (t) => {
260
+ T.current = 0;
261
+ let a = Y(F.current);
262
+ a.addEventListener("mousemove", V, { passive: !0 }), a.addEventListener("mouseup", H);
263
+ }, pe = rt(k ? A[0] : c, c, s), me = rt(A[A.length - 1], c, s) - pe, he = (e = {}) => {
264
+ let t = ye(e), n = L({}, t, { onMouseDown: fe(t || {}) });
265
+ return L({}, e, { ref: ae }, n);
266
+ }, ge = (e) => (t) => {
268
267
  var n;
269
268
  (n = e.onMouseOver) == null || n.call(e, t);
270
269
  let r = Number(t.currentTarget.getAttribute("data-index"));
271
- x(r);
272
- }, ge = (e) => (t) => {
270
+ S(r);
271
+ }, G = (e) => (t) => {
273
272
  var n;
274
- (n = e.onMouseLeave) == null || n.call(e, t), x(-1);
273
+ (n = e.onMouseLeave) == null || n.call(e, t), S(-1);
275
274
  };
276
275
  return {
277
276
  active: y,
278
- axis: z,
277
+ axis: R,
279
278
  axisProps: ut,
280
- dragging: S,
281
- focusedThumbIndex: ne,
279
+ dragging: C,
280
+ focusedThumbIndex: ie,
282
281
  getHiddenInputProps: (n = {}) => {
283
- let i = Me(n), o = G({}, i, {
284
- onChange: se(i || {}),
285
- onFocus: ie(i || {}),
286
- onBlur: ae(i || {}),
287
- onKeyDown: R(i || {})
282
+ let i = ye(n), o = L({}, i, {
283
+ onChange: le(i || {}),
284
+ onFocus: oe(i || {}),
285
+ onBlur: se(i || {}),
286
+ onKeyDown: ce(i || {})
288
287
  });
289
- return G({
288
+ return L({
290
289
  tabIndex: ee,
291
290
  "aria-labelledby": t,
292
291
  "aria-orientation": f,
@@ -298,46 +297,46 @@ function mt(e) {
298
297
  max: e.max,
299
298
  step: e.step === null && e.marks ? "any" : e.step ?? void 0,
300
299
  disabled: r
301
- }, n, o, { style: G({}, Xe, {
300
+ }, n, o, { style: L({}, Xe, {
302
301
  direction: a ? "rtl" : "ltr",
303
302
  width: "100%",
304
303
  height: "100%"
305
304
  }) });
306
305
  },
307
- getRootProps: me,
306
+ getRootProps: he,
308
307
  getThumbProps: (e = {}) => {
309
- let t = Me(e);
310
- return G({}, e, t, {
311
- onMouseOver: he(t || {}),
312
- onMouseLeave: ge(t || {})
308
+ let t = ye(e);
309
+ return L({}, e, t, {
310
+ onMouseOver: ge(t || {}),
311
+ onMouseLeave: G(t || {})
313
312
  });
314
313
  },
315
- marks: A,
316
- open: te,
317
- range: O,
318
- rootRef: re,
319
- trackLeap: pe,
320
- trackOffset: fe,
321
- values: k,
314
+ marks: j,
315
+ open: x,
316
+ range: k,
317
+ rootRef: ae,
318
+ trackLeap: me,
319
+ trackOffset: pe,
320
+ values: A,
322
321
  getThumbStyle: (e) => ({ pointerEvents: y !== -1 && y !== e ? "none" : void 0 })
323
322
  };
324
323
  }
325
- var ht = (e) => !e || !Ae(e);
324
+ var ht = (e) => !e || !be(e);
326
325
  function gt(e) {
327
- return Oe("MuiSlider", e);
326
+ return _e("MuiSlider", e);
328
327
  }
329
- var Z = ke("MuiSlider", /* @__PURE__ */ "root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.thumbColorPrimary.thumbColorSecondary.thumbColorError.thumbColorSuccess.thumbColorInfo.thumbColorWarning.track.trackInverted.trackFalse.thumbSizeSmall.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical".split(".")), Q = me(), _t = (e) => {
328
+ var Z = De("MuiSlider", /* @__PURE__ */ "root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.thumbColorPrimary.thumbColorSecondary.thumbColorError.thumbColorSuccess.thumbColorInfo.thumbColorWarning.track.trackInverted.trackFalse.thumbSizeSmall.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical".split(".")), Q = k(), _t = (e) => {
330
329
  let { open: t } = e;
331
330
  return {
332
- offset: Te(t && Z.valueLabelOpen),
331
+ offset: G(t && Z.valueLabelOpen),
333
332
  circle: Z.valueLabelCircle,
334
333
  label: Z.valueLabelLabel
335
334
  };
336
335
  };
337
336
  function vt(e) {
338
337
  let { children: t, className: n, value: r } = e, i = _t(e);
339
- return t ? /*#__PURE__*/ X.cloneElement(t, { className: Te(t.props.className) }, /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [t.props.children, /*#__PURE__*/ (0, Q.jsx)("span", {
340
- className: Te(i.offset, n),
338
+ return t ? /*#__PURE__*/ X.cloneElement(t, { className: G(t.props.className) }, /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [t.props.children, /*#__PURE__*/ (0, Q.jsx)("span", {
339
+ className: G(i.offset, n),
341
340
  "aria-hidden": !0,
342
341
  children: /*#__PURE__*/ (0, Q.jsx)("span", {
343
342
  className: i.circle,
@@ -348,20 +347,20 @@ function vt(e) {
348
347
  })
349
348
  })] })) : null;
350
349
  }
351
- R();
350
+ U();
352
351
  var yt = /* @__PURE__ */ "aria-label.aria-valuetext.aria-labelledby.component.components.componentsProps.color.classes.className.disableSwap.disabled.getAriaLabel.getAriaValueText.marks.max.min.name.onChange.onChangeCommitted.orientation.shiftStep.size.step.scale.slotProps.slots.tabIndex.track.value.valueLabelDisplay.valueLabelFormat".split(".");
353
352
  function bt(e) {
354
353
  return e;
355
354
  }
356
- var xt = q("span", {
355
+ var xt = K("span", {
357
356
  name: "MuiSlider",
358
357
  slot: "Root",
359
358
  overridesResolver: (e, t) => {
360
359
  let { ownerState: n } = e;
361
360
  return [
362
361
  t.root,
363
- t[`color${K(n.color)}`],
364
- n.size !== "medium" && t[`size${K(n.size)}`],
362
+ t[`color${q(n.color)}`],
363
+ n.size !== "medium" && t[`size${q(n.size)}`],
365
364
  n.marked && t.marked,
366
365
  n.orientation === "vertical" && t.vertical,
367
366
  n.track === "inverted" && t.trackInverted,
@@ -435,7 +434,7 @@ var xt = q("span", {
435
434
  style: { marginRight: 44 }
436
435
  }
437
436
  ]
438
- })), St = q("span", {
437
+ })), St = K("span", {
439
438
  name: "MuiSlider",
440
439
  slot: "Rail",
441
440
  overridesResolver: (e, t) => t.rail
@@ -469,7 +468,7 @@ var xt = q("span", {
469
468
  style: { opacity: 1 }
470
469
  }
471
470
  ]
472
- }), Ct = q("span", {
471
+ }), Ct = K("span", {
473
472
  name: "MuiSlider",
474
473
  slot: "Track",
475
474
  overridesResolver: (e, t) => t.track
@@ -515,24 +514,24 @@ var xt = q("span", {
515
514
  color: t,
516
515
  track: "inverted"
517
516
  },
518
- style: G({}, e.vars ? {
517
+ style: L({}, e.vars ? {
519
518
  backgroundColor: e.vars.palette.Slider[`${t}Track`],
520
519
  borderColor: e.vars.palette.Slider[`${t}Track`]
521
- } : G({
520
+ } : L({
522
521
  backgroundColor: (0, Ze.lighten)(e.palette[t].main, .62),
523
522
  borderColor: (0, Ze.lighten)(e.palette[t].main, .62)
524
523
  }, e.applyStyles("dark", { backgroundColor: (0, Ze.darken)(e.palette[t].main, .5) }), e.applyStyles("dark", { borderColor: (0, Ze.darken)(e.palette[t].main, .5) })))
525
524
  }))
526
525
  ]
527
- })), wt = q("span", {
526
+ })), wt = K("span", {
528
527
  name: "MuiSlider",
529
528
  slot: "Thumb",
530
529
  overridesResolver: (e, t) => {
531
530
  let { ownerState: n } = e;
532
531
  return [
533
532
  t.thumb,
534
- t[`thumbColor${K(n.color)}`],
535
- n.size !== "medium" && t[`thumbSize${K(n.size)}`]
533
+ t[`thumbColor${q(n.color)}`],
534
+ n.size !== "medium" && t[`thumbSize${q(n.size)}`]
536
535
  ];
537
536
  }
538
537
  })(({ theme: e }) => ({
@@ -596,16 +595,16 @@ var xt = q("span", {
596
595
  ...Object.keys((e.vars ?? e).palette).filter((t) => (e.vars ?? e).palette[t].main).map((t) => ({
597
596
  props: { color: t },
598
597
  style: {
599
- [`&:hover, &.${Z.focusVisible}`]: G({}, e.vars ? { boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 8px ${(0, Ze.alpha)(e.palette[t].main, .16)}` }, { "@media (hover: none)": { boxShadow: "none" } }),
600
- [`&.${Z.active}`]: G({}, e.vars ? { boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 14px ${(0, Ze.alpha)(e.palette[t].main, .16)}` })
598
+ [`&:hover, &.${Z.focusVisible}`]: L({}, e.vars ? { boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 8px ${(0, Ze.alpha)(e.palette[t].main, .16)}` }, { "@media (hover: none)": { boxShadow: "none" } }),
599
+ [`&.${Z.active}`]: L({}, e.vars ? { boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 14px ${(0, Ze.alpha)(e.palette[t].main, .16)}` })
601
600
  }
602
601
  }))
603
602
  ]
604
- })), Tt = q(vt, {
603
+ })), Tt = K(vt, {
605
604
  name: "MuiSlider",
606
605
  slot: "ValueLabel",
607
606
  overridesResolver: (e, t) => t.valueLabel
608
- })(({ theme: e }) => G({
607
+ })(({ theme: e }) => L({
609
608
  zIndex: 1,
610
609
  whiteSpace: "nowrap"
611
610
  }, e.typography.body2, {
@@ -674,10 +673,10 @@ var xt = q("span", {
674
673
  style: { right: "20px" }
675
674
  }
676
675
  ]
677
- })), Et = q("span", {
676
+ })), Et = K("span", {
678
677
  name: "MuiSlider",
679
678
  slot: "Mark",
680
- shouldForwardProp: (e) => xe(e) && e !== "markActive",
679
+ shouldForwardProp: (e) => Te(e) && e !== "markActive",
681
680
  overridesResolver: (e, t) => {
682
681
  let { markActive: n } = e;
683
682
  return [t.mark, n && t.markActive];
@@ -711,12 +710,12 @@ var xt = q("span", {
711
710
  }
712
711
  }
713
712
  ]
714
- })), Dt = q("span", {
713
+ })), Dt = K("span", {
715
714
  name: "MuiSlider",
716
715
  slot: "MarkLabel",
717
- shouldForwardProp: (e) => xe(e) && e !== "markLabelActive",
716
+ shouldForwardProp: (e) => Te(e) && e !== "markLabelActive",
718
717
  overridesResolver: (e, t) => t.markLabel
719
- })(({ theme: e }) => G({}, e.typography.body2, {
718
+ })(({ theme: e }) => L({}, e.typography.body2, {
720
719
  color: (e.vars || e).palette.text.secondary,
721
720
  position: "absolute",
722
721
  whiteSpace: "nowrap",
@@ -753,8 +752,8 @@ var xt = q("span", {
753
752
  i === "vertical" && "vertical",
754
753
  a === "inverted" && "trackInverted",
755
754
  a === !1 && "trackFalse",
756
- s && `color${K(s)}`,
757
- c && `size${K(c)}`
755
+ s && `color${q(s)}`,
756
+ c && `size${q(c)}`
758
757
  ],
759
758
  rail: ["rail"],
760
759
  track: ["track"],
@@ -766,18 +765,18 @@ var xt = q("span", {
766
765
  thumb: [
767
766
  "thumb",
768
767
  t && "disabled",
769
- c && `thumbSize${K(c)}`,
770
- s && `thumbColor${K(s)}`
768
+ c && `thumbSize${q(c)}`,
769
+ s && `thumbColor${q(s)}`
771
770
  ],
772
771
  active: ["active"],
773
772
  disabled: ["disabled"],
774
773
  focusVisible: ["focusVisible"]
775
774
  }, gt, o);
776
775
  }, kt = ({ children: e }) => e, At = /*#__PURE__*/ X.forwardRef(function(e, t) {
777
- let n = Se({
776
+ let n = we({
778
777
  props: e,
779
778
  name: "MuiSlider"
780
- }), r = O(), { "aria-label": i, "aria-valuetext": a, "aria-labelledby": o, component: s = "span", components: c = {}, componentsProps: l = {}, color: u = "primary", classes: d, className: f, disableSwap: p = !1, disabled: m = !1, getAriaLabel: h, getAriaValueText: g, marks: ee = !1, max: _ = 100, min: v = 0, orientation: y = "horizontal", shiftStep: b = 10, size: te = "medium", step: x = 1, scale: S = bt, slotProps: C, slots: w, track: T = "normal", valueLabelDisplay: E = "off", valueLabelFormat: D = bt } = n, k = I(n, yt), A = G({}, n, {
779
+ }), r = me(), { "aria-label": i, "aria-valuetext": a, "aria-labelledby": o, component: s = "span", components: c = {}, componentsProps: l = {}, color: u = "primary", classes: d, className: f, disableSwap: p = !1, disabled: m = !1, getAriaLabel: h, getAriaValueText: g, marks: ee = !1, max: _ = 100, min: v = 0, orientation: y = "horizontal", shiftStep: b = 10, size: x = "medium", step: S = 1, scale: C = bt, slotProps: w, slots: T, track: E = "normal", valueLabelDisplay: D = "off", valueLabelFormat: O = bt } = n, k = re(n, yt), A = L({}, n, {
781
780
  isRtl: r,
782
781
  max: _,
783
782
  min: v,
@@ -787,98 +786,98 @@ var xt = q("span", {
787
786
  orientation: y,
788
787
  marks: ee,
789
788
  color: u,
790
- size: te,
791
- step: x,
789
+ size: x,
790
+ step: S,
792
791
  shiftStep: b,
793
- scale: S,
794
- track: T,
795
- valueLabelDisplay: E,
796
- valueLabelFormat: D
797
- }), { axisProps: j, getRootProps: M, getHiddenInputProps: N, getThumbProps: P, open: F, active: ne, axis: L, focusedThumbIndex: re, range: ie, dragging: ae, marks: oe, values: R, trackOffset: se, trackLeap: ce, getThumbStyle: le } = mt(G({}, A, { rootRef: t }));
798
- A.marked = oe.length > 0 && oe.some((e) => e.label), A.dragging = ae, A.focusedThumbIndex = re;
799
- let z = Ot(A), B = w?.root ?? c.Root ?? xt, V = w?.rail ?? c.Rail ?? St, H = w?.track ?? c.Track ?? Ct, U = w?.thumb ?? c.Thumb ?? wt, ue = w?.valueLabel ?? c.ValueLabel ?? Tt, W = w?.mark ?? c.Mark ?? Et, de = w?.markLabel ?? c.MarkLabel ?? Dt, fe = w?.input ?? c.Input ?? "input", pe = C?.root ?? l.root, me = C?.rail ?? l.rail, he = C?.track ?? l.track, ge = C?.thumb ?? l.thumb, _e = C?.valueLabel ?? l.valueLabel, ve = C?.mark ?? l.mark, ye = C?.markLabel ?? l.markLabel, be = C?.input ?? l.input, K = J({
800
- elementType: B,
792
+ scale: C,
793
+ track: E,
794
+ valueLabelDisplay: D,
795
+ valueLabelFormat: O
796
+ }), { axisProps: j, getRootProps: M, getHiddenInputProps: N, getThumbProps: te, open: ne, active: ie, axis: P, focusedThumbIndex: F, range: ae, dragging: oe, marks: se, values: I, trackOffset: ce, trackLeap: le, getThumbStyle: ue } = mt(L({}, A, { rootRef: t }));
797
+ A.marked = se.length > 0 && se.some((e) => e.label), A.dragging = oe, A.focusedThumbIndex = F;
798
+ let R = Ot(A), z = T?.root ?? c.Root ?? xt, B = T?.rail ?? c.Rail ?? St, V = T?.track ?? c.Track ?? Ct, H = T?.thumb ?? c.Thumb ?? wt, de = T?.valueLabel ?? c.ValueLabel ?? Tt, U = T?.mark ?? c.Mark ?? Et, W = T?.markLabel ?? c.MarkLabel ?? Dt, fe = T?.input ?? c.Input ?? "input", pe = w?.root ?? l.root, he = w?.rail ?? l.rail, ge = w?.track ?? l.track, _e = w?.thumb ?? l.thumb, ve = w?.valueLabel ?? l.valueLabel, ye = w?.mark ?? l.mark, xe = w?.markLabel ?? l.markLabel, Se = w?.input ?? l.input, K = J({
799
+ elementType: z,
801
800
  getSlotProps: M,
802
801
  externalSlotProps: pe,
803
802
  externalForwardedProps: k,
804
- additionalProps: G({}, ht(B) && { as: s }),
805
- ownerState: G({}, A, pe?.ownerState),
806
- className: [z.root, f]
807
- }), xe = J({
808
- elementType: V,
809
- externalSlotProps: me,
810
- ownerState: A,
811
- className: z.rail
812
- }), q = J({
813
- elementType: H,
814
- externalSlotProps: he,
815
- additionalProps: { style: G({}, j[L].offset(se), j[L].leap(ce)) },
816
- ownerState: G({}, A, he?.ownerState),
817
- className: z.track
803
+ additionalProps: L({}, ht(z) && { as: s }),
804
+ ownerState: L({}, A, pe?.ownerState),
805
+ className: [R.root, f]
818
806
  }), Ce = J({
819
- elementType: U,
820
- getSlotProps: P,
821
- externalSlotProps: ge,
822
- ownerState: G({}, A, ge?.ownerState),
823
- className: z.thumb
824
- }), we = J({
825
- elementType: ue,
826
- externalSlotProps: _e,
827
- ownerState: G({}, A, _e?.ownerState),
828
- className: z.valueLabel
829
- }), Y = J({
830
- elementType: W,
831
- externalSlotProps: ve,
807
+ elementType: B,
808
+ externalSlotProps: he,
832
809
  ownerState: A,
833
- className: z.mark
810
+ className: R.rail
811
+ }), Te = J({
812
+ elementType: V,
813
+ externalSlotProps: ge,
814
+ additionalProps: { style: L({}, j[P].offset(ce), j[P].leap(le)) },
815
+ ownerState: L({}, A, ge?.ownerState),
816
+ className: R.track
834
817
  }), Ee = J({
818
+ elementType: H,
819
+ getSlotProps: te,
820
+ externalSlotProps: _e,
821
+ ownerState: L({}, A, _e?.ownerState),
822
+ className: R.thumb
823
+ }), q = J({
835
824
  elementType: de,
825
+ externalSlotProps: ve,
826
+ ownerState: L({}, A, ve?.ownerState),
827
+ className: R.valueLabel
828
+ }), Y = J({
829
+ elementType: U,
836
830
  externalSlotProps: ye,
837
831
  ownerState: A,
838
- className: z.markLabel
832
+ className: R.mark
839
833
  }), De = J({
834
+ elementType: W,
835
+ externalSlotProps: xe,
836
+ ownerState: A,
837
+ className: R.markLabel
838
+ }), Oe = J({
840
839
  elementType: fe,
841
840
  getSlotProps: N,
842
- externalSlotProps: be,
841
+ externalSlotProps: Se,
843
842
  ownerState: A
844
843
  });
845
- return /*#__PURE__*/ (0, Q.jsxs)(B, G({}, K, { children: [
846
- /*#__PURE__*/ (0, Q.jsx)(V, G({}, xe)),
847
- /*#__PURE__*/ (0, Q.jsx)(H, G({}, q)),
848
- oe.filter((e) => e.value >= v && e.value <= _).map((e, t) => {
849
- let n = rt(e.value, v, _), r = j[L].offset(n), i;
850
- return i = T === !1 ? R.indexOf(e.value) !== -1 : T === "normal" && (ie ? e.value >= R[0] && e.value <= R[R.length - 1] : e.value <= R[0]) || T === "inverted" && (ie ? e.value <= R[0] || e.value >= R[R.length - 1] : e.value >= R[0]), /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [/*#__PURE__*/ (0, Q.jsx)(W, G({ "data-index": t }, Y, !Ae(W) && { markActive: i }, {
851
- style: G({}, r, Y.style),
852
- className: Te(Y.className, i && z.markActive)
853
- })), e.label == null ? null : /*#__PURE__*/ (0, Q.jsx)(de, G({
844
+ return /*#__PURE__*/ (0, Q.jsxs)(z, L({}, K, { children: [
845
+ /*#__PURE__*/ (0, Q.jsx)(B, L({}, Ce)),
846
+ /*#__PURE__*/ (0, Q.jsx)(V, L({}, Te)),
847
+ se.filter((e) => e.value >= v && e.value <= _).map((e, t) => {
848
+ let n = rt(e.value, v, _), r = j[P].offset(n), i;
849
+ return i = E === !1 ? I.indexOf(e.value) !== -1 : E === "normal" && (ae ? e.value >= I[0] && e.value <= I[I.length - 1] : e.value <= I[0]) || E === "inverted" && (ae ? e.value <= I[0] || e.value >= I[I.length - 1] : e.value >= I[0]), /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [/*#__PURE__*/ (0, Q.jsx)(U, L({ "data-index": t }, Y, !be(U) && { markActive: i }, {
850
+ style: L({}, r, Y.style),
851
+ className: G(Y.className, i && R.markActive)
852
+ })), e.label == null ? null : /*#__PURE__*/ (0, Q.jsx)(W, L({
854
853
  "aria-hidden": !0,
855
854
  "data-index": t
856
- }, Ee, !Ae(de) && { markLabelActive: i }, {
857
- style: G({}, r, Ee.style),
858
- className: Te(z.markLabel, Ee.className, i && z.markLabelActive),
855
+ }, De, !be(W) && { markLabelActive: i }, {
856
+ style: L({}, r, De.style),
857
+ className: G(R.markLabel, De.className, i && R.markLabelActive),
859
858
  children: e.label
860
859
  }))] }, t);
861
860
  }),
862
- R.map((e, t) => {
863
- let n = rt(e, v, _), r = j[L].offset(n), s = E === "off" ? kt : ue;
864
- return /*#__PURE__*/ (0, Q.jsx)(s, G({}, !Ae(s) && {
865
- valueLabelFormat: D,
866
- valueLabelDisplay: E,
867
- value: typeof D == "function" ? D(S(e), t) : D,
861
+ I.map((e, t) => {
862
+ let n = rt(e, v, _), r = j[P].offset(n), s = D === "off" ? kt : de;
863
+ return /*#__PURE__*/ (0, Q.jsx)(s, L({}, !be(s) && {
864
+ valueLabelFormat: O,
865
+ valueLabelDisplay: D,
866
+ value: typeof O == "function" ? O(C(e), t) : O,
868
867
  index: t,
869
- open: F === t || ne === t || E === "on",
868
+ open: ne === t || ie === t || D === "on",
870
869
  disabled: m
871
- }, we, { children: /*#__PURE__*/ (0, Q.jsx)(U, G({ "data-index": t }, Ce, {
872
- className: Te(z.thumb, Ce.className, ne === t && z.active, re === t && z.focusVisible),
873
- style: G({}, r, le(t), Ce.style),
874
- children: /*#__PURE__*/ (0, Q.jsx)(fe, G({
870
+ }, q, { children: /*#__PURE__*/ (0, Q.jsx)(H, L({ "data-index": t }, Ee, {
871
+ className: G(R.thumb, Ee.className, ie === t && R.active, F === t && R.focusVisible),
872
+ style: L({}, r, ue(t), Ee.style),
873
+ children: /*#__PURE__*/ (0, Q.jsx)(fe, L({
875
874
  "data-index": t,
876
875
  "aria-label": h ? h(t) : i,
877
- "aria-valuenow": S(e),
876
+ "aria-valuenow": C(e),
878
877
  "aria-labelledby": o,
879
- "aria-valuetext": g ? g(S(e), t) : a,
880
- value: R[t]
881
- }, De))
878
+ "aria-valuetext": g ? g(C(e), t) : a,
879
+ value: I[t]
880
+ }, Oe))
882
881
  })) }), t);
883
882
  })
884
883
  ] }));
@@ -978,7 +977,7 @@ function zt(e, t) {
978
977
  var n = t - e;
979
978
  return n ? It(e, n) : Ft(isNaN(e) ? t : e);
980
979
  }
981
- Fe();
980
+ Ie();
982
981
  var Bt = (function e(t) {
983
982
  var n = Rt(t);
984
983
  function r(e, t) {
@@ -1050,10 +1049,10 @@ function Zt(e, t) {
1050
1049
  return s.join("");
1051
1050
  });
1052
1051
  }
1053
- Fe();
1052
+ Ie();
1054
1053
  function Qt(e, t) {
1055
1054
  var n = typeof t, r;
1056
- return t == null || n === "boolean" ? Ft(t) : (n === "number" ? Gt : n === "string" ? (r = Ie(t)) ? (t = r, Bt) : Zt : t instanceof Ie ? Bt : t instanceof Date ? Wt : Ht(t) ? Vt : Array.isArray(t) ? Ut : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Kt : Gt)(e, t);
1055
+ return t == null || n === "boolean" ? Ft(t) : (n === "number" ? Gt : n === "string" ? (r = Fe(t)) ? (t = r, Bt) : Zt : t instanceof Fe ? Bt : t instanceof Date ? Wt : Ht(t) ? Vt : Array.isArray(t) ? Ut : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Kt : Gt)(e, t);
1057
1056
  }
1058
1057
  function $t(e, t) {
1059
1058
  return e = +e, t = +t, function(n) {
@@ -1180,7 +1179,7 @@ function mn() {
1180
1179
  return ln(e, mn());
1181
1180
  }, jt.apply(e, arguments), pn(e);
1182
1181
  }
1183
- var hn = [1, 100], gn = k({
1182
+ var hn = [1, 100], gn = j({
1184
1183
  container: {
1185
1184
  width: "calc(100% - 20px)",
1186
1185
  height: 32,
@@ -1212,7 +1211,7 @@ var hn = [1, 100], gn = k({
1212
1211
  }
1213
1212
  }, `${t}-${e.from}-${e.to}`))
1214
1213
  });
1215
- }, $ = ee(), vn = k({
1214
+ }, $ = F(), vn = j({
1216
1215
  div: {
1217
1216
  alignItems: "flex-end",
1218
1217
  display: "flex",
@@ -1224,12 +1223,12 @@ var hn = [1, 100], gn = k({
1224
1223
  position: "relative"
1225
1224
  },
1226
1225
  input: {
1227
- ...b.normal13,
1228
- fontFamily: `var(--font-family, Roboto, ${T})`,
1229
- backgroundColor: o.white,
1230
- border: `1px solid ${o.grey3}`,
1226
+ ...W.normal13,
1227
+ fontFamily: `var(--font-family, Roboto, ${b})`,
1228
+ backgroundColor: p.white,
1229
+ border: `1px solid ${p.grey3}`,
1231
1230
  borderRadius: 4,
1232
- color: o.mainDarkNavy,
1231
+ color: p.mainDarkNavy,
1233
1232
  height: 24,
1234
1233
  padding: "2px 8px",
1235
1234
  "&:disabled": { cursor: "not-allowed" },
@@ -1264,16 +1263,16 @@ var hn = [1, 100], gn = k({
1264
1263
  currency: "",
1265
1264
  currencyIsPrefix: !0,
1266
1265
  formatString: "",
1267
- formatType: a.None,
1266
+ formatType: s.None,
1268
1267
  isDateTime: !1,
1269
- negativeType: s.Symbol
1268
+ negativeType: u.Symbol
1270
1269
  },
1271
1270
  type: "excel-format"
1272
1271
  }, Cn = [
1273
- ue,
1274
- ae,
1275
- B,
1276
- fe
1272
+ oe,
1273
+ he,
1274
+ R,
1275
+ V
1277
1276
  ], wn = w("[Slider] evaluateNumericValue", "lightred"), Tn = (e, t = Sn) => {
1278
1277
  if (!e) return null;
1279
1278
  let { value: n, error: r } = Cn.reduce(({ value: e, error: n }, r) => {
@@ -1294,41 +1293,41 @@ var hn = [1, 100], gn = k({
1294
1293
  error: null
1295
1294
  });
1296
1295
  if (r) return wn.warn(r), null;
1297
- let i = [], a = H(t);
1296
+ let i = [], a = I(t);
1298
1297
  a && i.push(a);
1299
- let o = ie(t);
1298
+ let o = pe(t);
1300
1299
  o && i.push(o);
1301
- let { evaluatedValue: s, error: c } = ce(n, i);
1300
+ let { evaluatedValue: s, error: c } = H(n, i);
1302
1301
  return c === "InvalidExpression" || typeof s != "number" ? (wn.warn(r), null) : `${s}`;
1303
1302
  };
1304
1303
  function En(e, t, n) {
1305
1304
  if (!e) return "";
1306
1305
  if (!n) return e || "";
1307
- let a = { ...n };
1308
- return r(a.format.formatType) && (a = _(a)), t && h(a) ? U({
1309
- ...a,
1306
+ let r = { ...n };
1307
+ return d(r.format.formatType) && (r = g(r)), t && T(r) ? ue({
1308
+ ...r,
1310
1309
  format: {
1311
- ...a.format,
1312
- formatType: i(e, n)
1310
+ ...r.format,
1311
+ formatType: h(e, n)
1313
1312
  }
1314
- }, e) : t ? m(e, n) : U(a, e);
1313
+ }, e) : t ? o(e, n) : ue(r, e);
1315
1314
  }
1316
1315
  function Dn(e) {
1317
1316
  return e?.applied?.operator === $.FilterOperator.NotBetween || e?.pending?.operator === $.FilterOperator.NotBetween;
1318
1317
  }
1319
1318
  function On(e, t, n) {
1320
1319
  let r = null, i = n, a = new Date(Math.min(e, t)), o = new Date(Math.max(e, t)), s = new Date(Math.min(e, t)), c = new Date(Math.max(e, t)), l = /* @__PURE__ */ new Date(+a), u = null;
1321
- if (n === g.day) l.setUTCHours(0, 0, 0, 0), c.setUTCHours(23, 59, 59, 0), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
1322
- else if (n === g.week) {
1320
+ if (n === C.day) l.setUTCHours(0, 0, 0, 0), c.setUTCHours(23, 59, 59, 0), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
1321
+ else if (n === C.week) {
1323
1322
  l.setUTCHours(0, 0, 0, 0);
1324
1323
  let e = l.getUTCDay(), t = e === 0 ? -6 : 1 - e;
1325
1324
  l.setUTCDate(l.getUTCDate() + t), c.setUTCHours(23, 59, 59, 0);
1326
1325
  let n = c.getUTCDay(), r = n === 0 ? 0 : 7 - n;
1327
1326
  c.setUTCDate(c.getUTCDate() + r), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
1328
- } else if (n === g.month) {
1327
+ } else if (n === C.month) {
1329
1328
  for (i = null, l.setUTCHours(0, 0, 0, 0), l.setUTCDate(1), u = []; +l <= +o;) u.push(/* @__PURE__ */ new Date(+l)), l.setUTCMonth(l.getUTCMonth() + 1);
1330
1329
  c.setUTCHours(23, 59, 59, 0), c.setUTCDate(new Date(Date.UTC(c.getUTCFullYear(), c.getUTCMonth() + 1, 0, 23, 59, 59, 0)).getUTCDate()), u.push(/* @__PURE__ */ new Date(+c));
1331
- } else if (n === g.year) {
1330
+ } else if (n === C.year) {
1332
1331
  for (i = null, l.setUTCHours(0, 0, 0, 0), l.setUTCDate(1), l.setUTCMonth(0), u = []; +l <= +o;) u.push(/* @__PURE__ */ new Date(+l)), l.setUTCFullYear(l.getUTCFullYear() + 1);
1333
1332
  c.setUTCHours(23, 59, 59, 0), c.setUTCMonth(11), c.setUTCDate(31), u.push(/* @__PURE__ */ new Date(+c));
1334
1333
  }
@@ -1343,86 +1342,86 @@ function kn(e, t) {
1343
1342
  let { step: n = 1, quickSelect: r = !1, manualMinMaxEnabled: i = !1 } = e?.sliderSettings ?? {}, a = e?.sliderSettings?.range ?? {
1344
1343
  min: 1,
1345
1344
  max: 100
1346
- }, s = e?.sliderSettings?.selectedColor ?? o.grey3, c = e?.sliderSettings?.nonSelectedColor ?? o.grey4;
1345
+ }, o = e?.sliderSettings?.selectedColor ?? p.grey3, s = e?.sliderSettings?.nonSelectedColor ?? p.grey4;
1347
1346
  return {
1348
1347
  step: n,
1349
1348
  quickSelect: r,
1350
1349
  manualMinMaxEnabled: i,
1351
1350
  range: a,
1352
- overrideStyles: yn(t ? c : s, t ? s : c),
1353
- selectedColor: s,
1354
- nonSelectedColor: c
1351
+ overrideStyles: yn(t ? s : o, t ? o : s),
1352
+ selectedColor: o,
1353
+ nonSelectedColor: s
1355
1354
  };
1356
1355
  }
1357
1356
  var An = (e, t, n) => {
1358
- let r = he(), [i, a] = (0, X.useState)({
1357
+ let i = O(), [a, o] = (0, X.useState)({
1359
1358
  min: null,
1360
1359
  max: null,
1361
1360
  barsValues: []
1362
1361
  });
1363
1362
  return (0, X.useEffect)(() => (e && (async () => {
1364
- let { manualMinMaxEnabled: i = !1 } = t ?? {}, { min: o, max: s } = i ? t?.range ?? {} : await Nn(r, e, n), c = [];
1365
- if (n?.measures?.[0] && u(n)) {
1366
- let e = n?.sliderSettings?.numberOfBars ?? 20, t = ye(r, {
1367
- ...C(n.type),
1363
+ let { manualMinMaxEnabled: a = !1 } = t ?? {}, { min: s, max: c } = a ? t?.range ?? {} : await Nn(i, e, n), l = [];
1364
+ if (n?.measures?.[0] && r(n)) {
1365
+ let e = n?.sliderSettings?.numberOfBars ?? 20, t = Me(i, {
1366
+ ...ee(n.type),
1368
1367
  ...n
1369
1368
  });
1370
1369
  t.dimensions.length && (t.dimensions[0].bucketing = {
1371
1370
  buckets: e,
1372
- maxValue: Math.ceil(s),
1373
- minValue: Math.floor(o)
1371
+ maxValue: Math.ceil(c),
1372
+ minValue: Math.floor(s)
1374
1373
  });
1375
- let { data: i } = await r.engine.getData(t);
1376
- Object.entries(i).forEach(([e, [t, n]]) => {
1377
- let r = Number(e);
1378
- if (r === 0) return;
1379
- let a = i[r + 1]?.[0] ?? s;
1380
- c.push({
1374
+ let { data: r } = await i.engine.getData(t);
1375
+ Object.entries(r).forEach(([e, [t, n]]) => {
1376
+ let i = Number(e);
1377
+ if (i === 0) return;
1378
+ let a = r[i + 1]?.[0] ?? c;
1379
+ l.push({
1381
1380
  from: t,
1382
1381
  to: a,
1383
1382
  value: n
1384
1383
  });
1385
1384
  });
1386
1385
  }
1387
- a({
1388
- min: o,
1389
- max: s,
1390
- barsValues: c
1386
+ o({
1387
+ min: s,
1388
+ max: c,
1389
+ barsValues: l
1391
1390
  });
1392
1391
  })(), () => {
1393
- a({
1392
+ o({
1394
1393
  min: 1,
1395
1394
  max: 100,
1396
1395
  barsValues: []
1397
1396
  });
1398
1397
  }), [
1399
1398
  e,
1400
- te(n?.measures?.[0]?.dataItem),
1399
+ y(n?.measures?.[0]?.dataItem),
1401
1400
  JSON.stringify(t),
1402
1401
  n?.sliderSettings?.numberOfBars ?? 20,
1403
1402
  JSON.stringify(n?.staticFilters?.filters),
1404
1403
  JSON.stringify(n?.staticFilters?.filterGroup)
1405
- ]), i;
1404
+ ]), a;
1406
1405
  };
1407
1406
  function jn(e) {
1408
- return pe()(e);
1407
+ return ge()(e);
1409
1408
  }
1410
1409
  async function Mn(e, t) {
1411
- let n = t.staticFilters.filterGroup, r = e.engine, i = ne(t, r);
1410
+ let n = t.staticFilters.filterGroup, r = e.engine, i = M(t, r);
1412
1411
  if (n) {
1413
- let e = be(n, i, t.referencedData), a = e && ve(e, t, r);
1412
+ let e = je(n, i, t.referencedData), a = e && Ne(e, t, r);
1414
1413
  return a ? {
1415
1414
  filters: [],
1416
1415
  filterGroup: a
1417
1416
  } : { filters: [] };
1418
1417
  }
1419
- return { filters: _e(ge(t.staticFilters.filters, i, t.referencedData), t, r) };
1418
+ return { filters: Ae(ke(t.staticFilters.filters, i, t.referencedData), t, r) };
1420
1419
  }
1421
1420
  async function Nn(e, t, n) {
1422
1421
  let r = {
1423
1422
  dimensions: [],
1424
1423
  ...await Mn(e, n),
1425
- limit: f(n),
1424
+ limit: i(n),
1426
1425
  measures: [{
1427
1426
  fieldKeys: [t],
1428
1427
  aggregation: "MIN",
@@ -1432,10 +1431,10 @@ async function Nn(e, t, n) {
1432
1431
  aggregation: "MAX",
1433
1432
  filters: []
1434
1433
  }]
1435
- }, { data: i } = await e.engine.getData(r);
1434
+ }, { data: a } = await e.engine.getData(r);
1436
1435
  return {
1437
- min: typeof i[0][0] == "number" ? i[0][0] : 1,
1438
- max: typeof i[0][1] == "number" ? i[0][1] : 100
1436
+ min: typeof a[0][0] == "number" ? a[0][0] : 1,
1437
+ max: typeof a[0][1] == "number" ? a[0][1] : 100
1439
1438
  };
1440
1439
  }
1441
1440
  var Pn = /* @__PURE__ */ n(((e, t) => {
@@ -1444,73 +1443,73 @@ var Pn = /* @__PURE__ */ n(((e, t) => {
1444
1443
  }
1445
1444
  t.exports = n;
1446
1445
  })), Fn = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
1447
- var n = Pn(), r = N();
1446
+ var n = Pn(), r = te();
1448
1447
  function i(e, t, i) {
1449
1448
  return i === void 0 && (i = t, t = void 0), i !== void 0 && (i = r(i), i = i === i ? i : 0), t !== void 0 && (t = r(t), t = t === t ? t : 0), n(r(e), t, i);
1450
1449
  }
1451
1450
  t.exports = i;
1452
- })))()), In = /* @__PURE__ */ e(E());
1451
+ })))()), In = /* @__PURE__ */ e(S());
1453
1452
  function Ln(e) {
1454
- let { min: t, max: n, data: r, type: i, vSpec: a, field: o, quickSelect: s, step: c } = e, [l, u] = (0, X.useState)(["1", "100"]), [d, f] = (0, X.useState)(1), [m, h] = (0, X.useState)(100), [g, ee] = (0, X.useState)({
1455
- step: c,
1453
+ let { min: t, max: n, data: r, type: i, vSpec: o, field: s, quickSelect: l, step: u } = e, [d, f] = (0, X.useState)(["1", "100"]), [p, m] = (0, X.useState)(1), [h, g] = (0, X.useState)(100), [ee, _] = (0, X.useState)({
1454
+ step: u,
1456
1455
  marks: null
1457
- }), [{ onRange: _ }] = de(Rn(r, i, o), {
1456
+ }), [{ onRange: v }] = fe(Rn(r, i, s), {
1458
1457
  disabled: !i,
1459
1458
  ignore: !0,
1460
- state: s ? $.SelectionState.APPLIED : $.SelectionState.PENDING,
1461
- commitHistory: s
1462
- }), v = D(i), y = p(a.sliderSettings.formatting) ? void 0 : a.sliderSettings.formatting, b = (0, X.useCallback)((e) => [(0, Fn.default)(Number(e[0]), t, n), (0, Fn.default)(Number(e[1]), t, n)], [t, n]), te = (0, X.useCallback)(([e, t]) => {
1463
- let n = Tn(e, y), r = Tn(t, y);
1464
- (0, In.default)(n) && (n = e), (0, In.default)(r) && (r = t), u([`${n}`, `${r}`]);
1465
- }, [u, y]), x = (0, X.useCallback)((e, t) => {
1466
- c !== 0 && u([`${t[0]}`, `${t[1]}`]);
1467
- }, [u, c]), S = (0, X.useCallback)((e) => {
1468
- let t = b(e);
1469
- _(t[0], t[1]);
1470
- }, [_, b]), C = (0, X.useCallback)((e) => {
1471
- let t = Tn(e[0], y), n = Tn(e[1], y), r = b([t, n]), i = [String(r[0]), String(r[1])];
1472
- S(r), u(i);
1459
+ state: l ? $.SelectionState.APPLIED : $.SelectionState.PENDING,
1460
+ commitHistory: l
1461
+ }), y = a(i), b = c(o.sliderSettings.formatting) ? void 0 : o.sliderSettings.formatting, x = (0, X.useCallback)((e) => [(0, Fn.default)(Number(e[0]), t, n), (0, Fn.default)(Number(e[1]), t, n)], [t, n]), S = (0, X.useCallback)(([e, t]) => {
1462
+ let n = Tn(e, b), r = Tn(t, b);
1463
+ (0, In.default)(n) && (n = e), (0, In.default)(r) && (r = t), f([`${n}`, `${r}`]);
1464
+ }, [f, b]), C = (0, X.useCallback)((e, t) => {
1465
+ u !== 0 && f([`${t[0]}`, `${t[1]}`]);
1466
+ }, [f, u]), w = (0, X.useCallback)((e) => {
1467
+ let t = x(e);
1468
+ v(t[0], t[1]);
1469
+ }, [v, x]), T = (0, X.useCallback)((e) => {
1470
+ let t = Tn(e[0], b), n = Tn(e[1], b), r = x([t, n]), i = [String(r[0]), String(r[1])];
1471
+ w(r), f(i);
1473
1472
  }, [
1474
- S,
1475
- u,
1476
- b,
1477
- y
1473
+ w,
1474
+ f,
1475
+ x,
1476
+ b
1478
1477
  ]);
1479
1478
  return (0, X.useEffect)(() => {
1480
1479
  if (t !== null && n !== null) {
1481
1480
  let e = t, i = n;
1482
- if (v) {
1483
- let { startValue: r, endValue: a, sliderStep: o, sliderMarks: s } = On(t, n, c);
1484
- e = r, i = a, ee({
1481
+ if (y) {
1482
+ let { startValue: r, endValue: a, sliderStep: o, sliderMarks: s } = On(t, n, u);
1483
+ e = r, i = a, _({
1485
1484
  step: o,
1486
1485
  marks: s
1487
1486
  });
1488
- } else ee({
1489
- step: c,
1487
+ } else _({
1488
+ step: u,
1490
1489
  marks: null
1491
1490
  });
1492
- f(e), h(i), u(bn(r, e, i));
1491
+ m(e), g(i), f(bn(r, e, i));
1493
1492
  }
1494
1493
  }, [
1495
1494
  t,
1496
1495
  n,
1497
- c,
1498
- v
1496
+ u,
1497
+ y
1499
1498
  ]), (0, X.useEffect)(() => {
1500
1499
  if (r) {
1501
- let e = r.pending.values[0] ?? d, t = r.pending.values[1] ?? m;
1502
- (e !== +l[0] || t !== +l[1]) && u(bn(r, d, m));
1500
+ let e = r.pending.values[0] ?? p, t = r.pending.values[1] ?? h;
1501
+ (e !== +d[0] || t !== +d[1]) && f(bn(r, p, h));
1503
1502
  }
1504
1503
  }, [JSON.stringify(r?.pending)]), {
1505
- values: l,
1506
- minValue: d,
1507
- maxValue: m,
1508
- sliderProps: g,
1509
- onRange: _,
1510
- selectRange: S,
1511
- handleChangedValues: C,
1512
- onValueChange: te,
1513
- handleSliderChange: x
1504
+ values: d,
1505
+ minValue: p,
1506
+ maxValue: h,
1507
+ sliderProps: ee,
1508
+ onRange: v,
1509
+ selectRange: w,
1510
+ handleChangedValues: T,
1511
+ onValueChange: S,
1512
+ handleSliderChange: C
1514
1513
  };
1515
1514
  }
1516
1515
  function Rn(e, t, n) {
@@ -1520,7 +1519,7 @@ function Rn(e, t, n) {
1520
1519
  ...n,
1521
1520
  dataType: t ?? $.FieldType.STRING,
1522
1521
  internalKey: "",
1523
- type: d.Dimension,
1522
+ type: m.Dimension,
1524
1523
  uniqueSignature: ""
1525
1524
  },
1526
1525
  dateLevel: e?.applied.dateLevel,
@@ -1529,72 +1528,72 @@ function Rn(e, t, n) {
1529
1528
  }];
1530
1529
  }
1531
1530
  var zn = ({ data: e, options: { type: t, vSpec: n } }) => {
1532
- let r = vn(), { field: i, fieldKey: o } = jn(e?.applied), { ref: s, isSmallView: c } = Vn(n?.sliderSettings?.layout), [l, u] = (0, X.useState)(!1), [d, f] = (0, X.useState)(!1), { step: p, quickSelect: m, manualMinMaxEnabled: h, range: g, overrideStyles: ee, selectedColor: _, nonSelectedColor: v } = kn(n, Dn(e)), { min: y, max: b, barsValues: te } = An(o, {
1533
- manualMinMaxEnabled: h,
1534
- range: g
1535
- }, n), { values: x, minValue: C, maxValue: w, sliderProps: T, onValueChange: E, handleChangedValues: O, handleSliderChange: k, onRange: A, selectRange: j } = Ln({
1536
- min: y,
1537
- max: b,
1531
+ let r = vn(), { field: i, fieldKey: o } = jn(e?.applied), { ref: c, isSmallView: l } = Vn(n?.sliderSettings?.layout), [u, d] = (0, X.useState)(!1), [f, p] = (0, X.useState)(!1), { step: m, quickSelect: h, manualMinMaxEnabled: g, range: ee, overrideStyles: _, selectedColor: y, nonSelectedColor: b } = kn(n, Dn(e)), { min: x, max: S, barsValues: C } = An(o, {
1532
+ manualMinMaxEnabled: g,
1533
+ range: ee
1534
+ }, n), { values: w, minValue: T, maxValue: E, sliderProps: D, onValueChange: O, handleChangedValues: k, handleSliderChange: j, onRange: M, selectRange: N } = Ln({
1535
+ min: x,
1536
+ max: S,
1538
1537
  data: e,
1539
1538
  type: t,
1540
1539
  vSpec: n,
1541
- quickSelect: m,
1540
+ quickSelect: h,
1542
1541
  field: i,
1543
- step: p
1544
- }), M = D(t), N = (n.sliderSettings.formatting?.format?.formatType ?? a.None) === a.None, F = {
1542
+ step: m
1543
+ }), te = a(t), ne = (n.sliderSettings.formatting?.format?.formatType ?? s.None) === s.None, re = {
1545
1544
  fontSize: "1em",
1546
- width: `${n?.sliderSettings.inputWidth ?? (M ? S.inputDateWidth : S.inputNumberWidth)}px`
1547
- }, { marks: ne, step: I } = T;
1545
+ width: `${n?.sliderSettings.inputWidth ?? (te ? v.inputDateWidth : v.inputNumberWidth)}px`
1546
+ }, { marks: ie, step: P } = D;
1548
1547
  return /* @__PURE__ */ (0, Q.jsxs)("div", {
1549
- className: P({
1548
+ className: A({
1550
1549
  [r.div]: !0,
1551
- [r.divBottom]: c
1550
+ [r.divBottom]: l
1552
1551
  }),
1553
- style: { fontSize: `${n?.sliderSettings.inputFontSize ?? S.inputFontSize}px` },
1554
- ref: s,
1552
+ style: { fontSize: `${n?.sliderSettings.inputFontSize ?? v.inputFontSize}px` },
1553
+ ref: c,
1555
1554
  children: [
1556
- M && (N || l) ? /* @__PURE__ */ (0, Q.jsx)(Ne, {
1557
- className: P({
1558
- [r.inputBottom]: c,
1559
- [r.inputLeft]: c
1555
+ te && (ne || u) ? /* @__PURE__ */ (0, Q.jsx)(Oe, {
1556
+ className: A({
1557
+ [r.inputBottom]: l,
1558
+ [r.inputLeft]: l
1560
1559
  }),
1561
- style: F,
1560
+ style: re,
1562
1561
  onBlur: (e) => {
1563
- e !== +x[0] && j([e, +x[1]]), u(!1);
1562
+ e !== +w[0] && N([e, +w[1]]), d(!1);
1564
1563
  },
1565
- onEnter: (e) => j([e, +x[1]]),
1566
- value: +x[0],
1564
+ onEnter: (e) => N([e, +w[1]]),
1565
+ value: +w[0],
1567
1566
  passOnBlur: !0,
1568
- autoFocus: !N
1567
+ autoFocus: !ne
1569
1568
  }) : /* @__PURE__ */ (0, Q.jsx)("input", {
1570
- className: P({
1569
+ className: A({
1571
1570
  [r.input]: !0,
1572
- [r.inputBottom]: c,
1573
- [r.inputLeft]: c
1571
+ [r.inputBottom]: l,
1572
+ [r.inputLeft]: l
1574
1573
  }),
1575
- style: F,
1576
- step: p,
1577
- min: C,
1578
- max: x[1],
1574
+ style: re,
1575
+ step: m,
1576
+ min: T,
1577
+ max: w[1],
1579
1578
  type: "text",
1580
- value: En(x[0], l, n.sliderSettings.formatting),
1579
+ value: En(w[0], u, n.sliderSettings.formatting),
1581
1580
  onBlur: (e) => {
1582
- u(!1), O([e.target.value, x[1]]);
1581
+ d(!1), k([e.target.value, w[1]]);
1583
1582
  },
1584
- onChange: (e) => E([e.target.value, x[1]]),
1583
+ onChange: (e) => O([e.target.value, w[1]]),
1585
1584
  onKeyDown: (e) => {
1586
- e.key === "Enter" && O([e.currentTarget.value, x[1]]);
1585
+ e.key === "Enter" && k([e.currentTarget.value, w[1]]);
1587
1586
  },
1588
- onFocus: () => u(!0),
1587
+ onFocus: () => d(!0),
1589
1588
  disabled: !t
1590
1589
  }),
1591
1590
  /* @__PURE__ */ (0, Q.jsxs)("div", {
1592
1591
  style: { flexGrow: 1 },
1593
1592
  children: [n?.measures?.[0] ? /* @__PURE__ */ (0, Q.jsx)(_n, {
1594
- values: te,
1595
- filteredValues: [+x[0], +x[1]],
1596
- selectedColor: _,
1597
- nonSelectedColor: v
1593
+ values: C,
1594
+ filteredValues: [+w[0], +w[1]],
1595
+ selectedColor: y,
1596
+ nonSelectedColor: b
1598
1597
  }) : null, /* @__PURE__ */ (0, Q.jsx)("div", {
1599
1598
  onMouseDown: (e) => e.stopPropagation(),
1600
1599
  style: {
@@ -1603,52 +1602,52 @@ var zn = ({ data: e, options: { type: t, vSpec: n } }) => {
1603
1602
  },
1604
1603
  children: /* @__PURE__ */ (0, Q.jsx)(At, {
1605
1604
  className: r.slider,
1606
- value: [+x[0], +x[1]],
1607
- onChange: k,
1608
- onChangeCommitted: (e, t) => A(t[0], t[1]),
1609
- min: C ?? +x[0],
1610
- max: w ?? +x[1],
1611
- step: xn(I),
1612
- marks: ne,
1605
+ value: [+w[0], +w[1]],
1606
+ onChange: j,
1607
+ onChangeCommitted: (e, t) => M(t[0], t[1]),
1608
+ min: T ?? +w[0],
1609
+ max: E ?? +w[1],
1610
+ step: xn(P),
1611
+ marks: ie,
1613
1612
  orientation: "horizontal",
1614
1613
  disabled: !t,
1615
- sx: ee
1614
+ sx: _
1616
1615
  })
1617
1616
  })]
1618
1617
  }),
1619
- M && (N || d) ? /* @__PURE__ */ (0, Q.jsx)(Ne, {
1620
- className: P({
1621
- [r.inputBottom]: c,
1622
- [r.inputRight]: c
1618
+ te && (ne || f) ? /* @__PURE__ */ (0, Q.jsx)(Oe, {
1619
+ className: A({
1620
+ [r.inputBottom]: l,
1621
+ [r.inputRight]: l
1623
1622
  }),
1624
- style: F,
1623
+ style: re,
1625
1624
  onBlur: (e) => {
1626
- e !== +x[1] && j([+x[0], e]), f(!1);
1625
+ e !== +w[1] && N([+w[0], e]), p(!1);
1627
1626
  },
1628
- onEnter: (e) => j([+x[0], e]),
1629
- value: +x[1],
1627
+ onEnter: (e) => N([+w[0], e]),
1628
+ value: +w[1],
1630
1629
  passOnBlur: !0,
1631
- autoFocus: !N
1630
+ autoFocus: !ne
1632
1631
  }) : /* @__PURE__ */ (0, Q.jsx)("input", {
1633
- className: P({
1632
+ className: A({
1634
1633
  [r.input]: !0,
1635
- [r.inputBottom]: c,
1636
- [r.inputRight]: c
1634
+ [r.inputBottom]: l,
1635
+ [r.inputRight]: l
1637
1636
  }),
1638
- style: F,
1639
- step: p,
1640
- min: x[0],
1641
- max: w,
1637
+ style: re,
1638
+ step: m,
1639
+ min: w[0],
1640
+ max: E,
1642
1641
  type: "text",
1643
- value: En(x[1], d, n.sliderSettings.formatting),
1642
+ value: En(w[1], f, n.sliderSettings.formatting),
1644
1643
  onBlur: (e) => {
1645
- f(!1), O([x[0], e.target.value]);
1644
+ p(!1), k([w[0], e.target.value]);
1646
1645
  },
1647
- onChange: (e) => E([x[0], e.target.value]),
1646
+ onChange: (e) => O([w[0], e.target.value]),
1648
1647
  onKeyDown: (e) => {
1649
- e.key === "Enter" && O([x[0], e.currentTarget.value]);
1648
+ e.key === "Enter" && k([w[0], e.currentTarget.value]);
1650
1649
  },
1651
- onFocus: () => f(!0),
1650
+ onFocus: () => p(!0),
1652
1651
  disabled: !t
1653
1652
  })
1654
1653
  ]
@@ -1659,7 +1658,7 @@ var zn = ({ data: e, options: { type: t, vSpec: n } }) => {
1659
1658
  refreshOptions: { trailing: !0 }
1660
1659
  };
1661
1660
  function Vn(e) {
1662
- let { width: t = 400, ref: n } = F(Bn), r;
1661
+ let { width: t = 400, ref: n } = le(Bn), r;
1663
1662
  switch (e) {
1664
1663
  case "single":
1665
1664
  r = !1;
@@ -1675,7 +1674,7 @@ function Vn(e) {
1675
1674
  };
1676
1675
  }
1677
1676
  var Hn = (e) => {
1678
- let t = z(), n = pe(), r = e.dimensions[0];
1677
+ let t = B(), n = ge(), r = e.dimensions[0];
1679
1678
  if (!r) return null;
1680
1679
  let { dateLevel: i, datePart: a } = r, { fieldKey: o } = n(r.dataItem), s = (e) => e.dateLevel === i && e.datePart === a && e.fieldKey === o && (e.operator === $.FilterOperator.Between || e.operator === $.FilterOperator.NotBetween), c = {
1681
1680
  dateLevel: i,
@@ -1695,7 +1694,7 @@ var Hn = (e) => {
1695
1694
  ...u
1696
1695
  }
1697
1696
  };
1698
- }, Un = k({
1697
+ }, Un = j({
1699
1698
  container: {
1700
1699
  padding: 12,
1701
1700
  width: "100%",
@@ -1710,39 +1709,39 @@ var Hn = (e) => {
1710
1709
  fontWeight: "normal",
1711
1710
  marginLeft: 8
1712
1711
  },
1713
- label: { ...b.overflowEllipsis }
1714
- }), Wn = (e) => e === x.Line ? "solid" : "dashed", Gn = (e = o.white, t) => {
1715
- let { borderColor: n, borderEnabled: r, borderRadius: i, borderStyle: a, borderWidth: s } = {
1716
- ...S.border,
1712
+ label: { ...W.overflowEllipsis }
1713
+ }), Wn = (e) => e === l.Line ? "solid" : "dashed", Gn = (e = p.white, t) => {
1714
+ let { borderColor: n, borderEnabled: r, borderRadius: i, borderStyle: a, borderWidth: o } = {
1715
+ ...v.border,
1717
1716
  ...t
1718
1717
  };
1719
1718
  return {
1720
1719
  backgroundColor: e ?? "transparent",
1721
- border: r ? `${s}px ${Wn(a)} ${n}` : "none",
1720
+ border: r ? `${o}px ${Wn(a)} ${n}` : "none",
1722
1721
  borderRadius: r ? `${i}px` : 0
1723
1722
  };
1724
1723
  }, Kn = (e, t) => ({
1725
1724
  fontSize: e?.fontSize || 13,
1726
- fontFamily: c(t || e?.fontFamily || "Roboto"),
1725
+ fontFamily: E(t || e?.fontFamily || "Roboto"),
1727
1726
  fontStyle: e?.italic ? "italic" : "normal",
1728
1727
  fontWeight: e?.bold ? "bold" : "normal",
1729
1728
  textDecoration: `${e?.underline ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
1730
- color: e?.fontColor || o.grey1
1731
- }), qn = (e, t) => e?.customLabel?.enabled && e?.customLabel?.value && !y(e.customLabel.value) ? e.customLabel.value : e?.label ? e.label : t, Jn = re(({ vSpec: e }) => {
1732
- let t = j()?.astrato ?? l, n = oe(), r = Un(), i = e?.sliderSettings?.fontStyle?.fontFamily || t?.fonts?.general?.fontFamily || "Roboto";
1729
+ color: e?.fontColor || p.grey1
1730
+ }), qn = (e, t) => e?.customLabel?.enabled && e?.customLabel?.value && !_(e.customLabel.value) ? e.customLabel.value : e?.label ? e.label : t, Jn = D(({ vSpec: e }) => {
1731
+ let t = N()?.astrato ?? f, n = ce(), r = Un(), i = e?.sliderSettings?.fontStyle?.fontFamily || t?.fonts?.general?.fontFamily || "Roboto";
1733
1732
  if ((0, X.useEffect)(() => {
1734
1733
  e?.dimensions && n();
1735
1734
  }, [e]), e?.dimensions === void 0) return null;
1736
- let a = e.dimensions[0], o = e.measures[0], s = Hn(e), u = {
1735
+ let a = e.dimensions[0], o = e.measures[0], s = Hn(e), c = {
1737
1736
  vSpec: e,
1738
- format: (e) => String(se(a?.formatter?.format, e)),
1739
- type: v(a?.dataItem)
1737
+ format: (e) => String(ae(a?.formatter?.format, e)),
1738
+ type: x(a?.dataItem)
1740
1739
  };
1741
1740
  return /* @__PURE__ */ (0, Q.jsxs)("div", {
1742
1741
  className: r.container,
1743
1742
  style: {
1744
1743
  ...Gn(e?.sliderSettings?.backgroundColor, e?.sliderSettings?.border),
1745
- "--font-family": c(i)
1744
+ "--font-family": E(i)
1746
1745
  },
1747
1746
  children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
1748
1747
  className: r.label,
@@ -1753,7 +1752,7 @@ var Hn = (e) => {
1753
1752
  }) : null]
1754
1753
  }), /* @__PURE__ */ (0, Q.jsx)(zn, {
1755
1754
  data: s,
1756
- options: u
1755
+ options: c
1757
1756
  })]
1758
1757
  });
1759
1758
  }), Yn = /* @__PURE__ */ t({