@astrato-io/visualizations 0.6.4 → 0.7.0

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 (220) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/README.md +32 -2
  3. package/THIRD_PARTY_NOTICES.md +68 -205
  4. package/VISUALIZATION_DEFINITIONS.md +68 -114
  5. package/chunks/Button-BrGKp9Nm.js +110 -0
  6. package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
  7. package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
  8. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-VtfFx2vJ.js} +51 -51
  9. package/chunks/MenuOption-ByRqhRdX.js +3934 -0
  10. package/chunks/Title-CO5dP1ma.js +1691 -0
  11. package/chunks/ToggleButton-KOBAimC1.js +112 -0
  12. package/chunks/app-filter-bar.compiler-TwVTeoj5.js +64 -0
  13. package/chunks/bar.compiler-DuQg8EUb.js +374 -0
  14. package/chunks/builder-DEDvNq1k.js +201 -0
  15. package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
  16. package/chunks/color-settings-3VRlf_Vw.js +6 -0
  17. package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
  18. package/chunks/coloring-CncX_JRX.js +278 -0
  19. package/chunks/{src-BC7cGcJ-.js → definitions-BPJQTx16.js} +650 -464
  20. package/chunks/{escobar-BGqT1EsE.js → escobar-DRhRMYRE.js} +6282 -4931
  21. package/chunks/event-bus-CrLB-Y8z.js +3 -0
  22. package/chunks/extend-preset-CUFNpmPe.js +4398 -0
  23. package/chunks/filter.compiler-w27dlv0C.js +70 -0
  24. package/chunks/filtering-cc7WqWpg.js +1153 -0
  25. package/chunks/handlers-TOT-7INo.js +12871 -0
  26. package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
  27. package/chunks/isEqual-B8loyPsC.js +12 -0
  28. package/chunks/label-format-type-weq1XfcX.js +8 -0
  29. package/chunks/line.compiler-Ct1WhN2p.js +198 -0
  30. package/chunks/logger-DpQtYQnX.js +1163 -0
  31. package/chunks/lookup-BWllin0q.js +36 -0
  32. package/chunks/{metadata-CPXdYoln.js → metadata-WABZrt7Y.js} +1 -1
  33. package/chunks/number.compiler-D8TPly-4.js +53 -0
  34. package/chunks/{src-C0LgoUWY.js → operations-Dh4v1Ovt.js} +7716 -7541
  35. package/chunks/{range-DrzdfBX4.js → range-Bi-7zT0k.js} +2 -2
  36. package/chunks/registry-KervaxqJ.js +31 -0
  37. package/chunks/render-wrappers-OEmtaM8g.js +2 -0
  38. package/chunks/{registry-CExpGJ1N.js → requirements-PAoRaJyb.js} +294 -326
  39. package/chunks/responsive.styles-DSiOGD7u.js +82 -0
  40. package/chunks/shared-Bn4N5QcZ.js +1218 -0
  41. package/chunks/src-77e3mC7i.js +391 -0
  42. package/chunks/standalone-B55oyW6c.js +689 -0
  43. package/chunks/{standalone-CY57qwZ-.js → standalone-BDhPQtzQ.js} +386 -352
  44. package/chunks/{standalone-BDCwI6Hn.js → standalone-BGkmozIb.js} +1108 -953
  45. package/chunks/standalone-BMTCb10X.js +179 -0
  46. package/chunks/standalone-BXKRE_Se.js +468 -0
  47. package/chunks/standalone-Bes8srx1.js +354 -0
  48. package/chunks/standalone-BjZp0QMe.js +2 -0
  49. package/chunks/{standalone-BH5NqDwp.js → standalone-BlMIwpEe.js} +687 -573
  50. package/chunks/{standalone-CCNtaJ7s.js → standalone-C8ZAEutO.js} +44 -43
  51. package/chunks/standalone-C8qAelL4.js +2 -0
  52. package/chunks/standalone-CJvIXsQE.js +743 -0
  53. package/chunks/standalone-CLmGb7nn2.js +355 -0
  54. package/chunks/{ui-D1HQNIBy.js → standalone-CM5XcAN5.js} +15946 -17658
  55. package/chunks/standalone-CXNP6-xD.js +420 -0
  56. package/chunks/{standalone-BYm1UjLr.js → standalone-D5Q5ngsD.js} +59 -57
  57. package/chunks/standalone-DLlyRIE6.js +287 -0
  58. package/chunks/standalone-DMcI1afI.js +396 -0
  59. package/chunks/{standalone-jiz0L2Dg.js → standalone-DN4S1MjT.js} +1113 -1094
  60. package/chunks/{standalone-QJ1kKMnO.js → standalone-DT0wKji7.js} +2 -2
  61. package/chunks/{standalone-D5vnf-9y.js → standalone-DVTJwsTY.js} +1110 -1035
  62. package/chunks/standalone-DW6NT205.js +518 -0
  63. package/chunks/standalone-DYQIQH4c.js +2095 -0
  64. package/chunks/standalone-D__XCp-h.js +1003 -0
  65. package/chunks/standalone-XTgSsTAa.js +354 -0
  66. package/chunks/standalone-XuGksArp.js +68 -0
  67. package/chunks/{standalone-CNyNHKVx.js → standalone-we5D5MIn.js} +176 -172
  68. package/chunks/table.compiler-DMeeHxb6.js +222 -0
  69. package/chunks/useFieldName-Cjn9KCVp.js +7 -0
  70. package/chunks/useSlotProps-DLbQp4lc.js +166 -0
  71. package/chunks/{utils-Ba9T0TqC.js → utils-vdmi_2PK.js} +6266 -6517
  72. package/chunks/{src-DvX5LU9T.js → view-BuwQugKb.js} +2893 -5956
  73. package/chunks/visualization-filters-Cc4KU-l-.js +7455 -0
  74. package/chunks/web-components-DqClFkgO.js +1185 -0
  75. package/chunks/with-html-element-D0uY2zjI.js +7328 -0
  76. package/definitions.js +3 -3
  77. package/docs/operations/astrato-app-filter-bar.md +17 -17
  78. package/docs/operations/bar.md +1006 -1071
  79. package/docs/operations/combo.md +717 -738
  80. package/docs/operations/date-picker.md +27 -27
  81. package/docs/operations/distribution-gauge.md +471 -607
  82. package/docs/operations/dot.md +787 -879
  83. package/docs/operations/filter.md +139 -163
  84. package/docs/operations/gauge.md +491 -627
  85. package/docs/operations/heatMap.md +834 -916
  86. package/docs/operations/histogram.md +166 -180
  87. package/docs/operations/iframe.md +5 -5
  88. package/docs/operations/image.md +16 -16
  89. package/docs/operations/index.md +12 -12
  90. package/docs/operations/line.md +811 -888
  91. package/docs/operations/number.md +470 -536
  92. package/docs/operations/pie.md +825 -958
  93. package/docs/operations/radar.md +599 -679
  94. package/docs/operations/sankey.md +462 -584
  95. package/docs/operations/scatter.md +823 -929
  96. package/docs/operations/shape.md +34 -34
  97. package/docs/operations/simpleTextObject.md +18 -25
  98. package/docs/operations/slider.md +33 -43
  99. package/docs/operations/table.md +1177 -1150
  100. package/docs/operations/tree.md +404 -397
  101. package/docs/operations/treemap.md +595 -673
  102. package/docs/operations/waterfall.md +369 -379
  103. package/docs/operations/word-cloud.md +512 -583
  104. package/getters.js +7 -7
  105. package/index.js +3 -1183
  106. package/metadata.js +18 -18
  107. package/operations.js +13 -13
  108. package/package.json +133 -88
  109. package/render.js +10 -0
  110. package/src/charts/bar.d.ts +1 -0
  111. package/src/charts/combo.d.ts +1 -0
  112. package/src/charts/dot.d.ts +1 -0
  113. package/src/charts/gauge-distribution.d.ts +1 -0
  114. package/src/charts/gauge.d.ts +1 -0
  115. package/src/charts/heat-map.d.ts +1 -0
  116. package/src/charts/histogram.d.ts +1 -0
  117. package/src/charts/line.d.ts +1 -0
  118. package/src/charts/pie.d.ts +1 -0
  119. package/src/charts/radar.d.ts +1 -0
  120. package/src/charts/sankey.d.ts +1 -0
  121. package/src/charts/scatter.d.ts +1 -0
  122. package/src/charts/table.d.ts +1 -0
  123. package/src/charts/tree.d.ts +1 -0
  124. package/src/charts/treemap.d.ts +1 -0
  125. package/src/charts/waterfall.d.ts +1 -0
  126. package/src/charts/word-cloud.d.ts +1 -0
  127. package/src/definitions/index.d.ts +2 -2
  128. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  129. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  130. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  131. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1364 -0
  132. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  133. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  134. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  135. package/src/definitions/model/definitions/index.d.ts +23 -0
  136. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  137. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  138. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  139. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  140. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  141. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +8 -8
  143. package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +10 -0
  144. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  145. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  146. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  147. package/src/getters/index.d.ts +3 -3
  148. package/src/index.d.ts +1 -1
  149. package/src/objects/app-filter-bar.d.ts +1 -0
  150. package/src/objects/date-picker.d.ts +1 -0
  151. package/src/objects/filter.d.ts +1 -0
  152. package/src/objects/iframe.d.ts +1 -0
  153. package/src/objects/image.d.ts +1 -0
  154. package/src/objects/number.d.ts +1 -0
  155. package/src/objects/shape.d.ts +1 -0
  156. package/src/objects/slider.d.ts +1 -0
  157. package/src/objects/text.d.ts +1 -0
  158. package/src/operations/index.d.ts +3 -3
  159. package/src/registry/create-visualization-registry.d.ts +5 -0
  160. package/src/render/index.d.ts +34 -0
  161. package/src/runtime/index.d.ts +2 -2
  162. package/src/types.d.ts +9 -4
  163. package/src/web-components/index.d.ts +3 -3
  164. package/chunks/Radio-Ciu-F4CU.js +0 -957
  165. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  166. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  167. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  168. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  169. package/chunks/coloring-C16AUZEi.js +0 -663
  170. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  171. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  172. package/chunks/events-WZut5Ow6.js +0 -4
  173. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  174. package/chunks/filtering-Yq4DEa0t.js +0 -953
  175. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  176. package/chunks/grouping-type-BX_9Ix5q.js +0 -3
  177. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  178. package/chunks/line-settings-DfYTUyPz.js +0 -4
  179. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  180. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  181. package/chunks/pie-uv42Eqal.js +0 -10
  182. package/chunks/requirements-DNhuShLS.js +0 -6
  183. package/chunks/shared-CKDL4hx9.js +0 -1171
  184. package/chunks/src-Cum_2NLV.js +0 -12145
  185. package/chunks/src-Dun_jXtz.js +0 -10295
  186. package/chunks/standalone-87YV_m9n.js +0 -687
  187. package/chunks/standalone-BLVAWLNJ.js +0 -385
  188. package/chunks/standalone-BPomtAVs.js +0 -2
  189. package/chunks/standalone-BXyBcUOQ.js +0 -2
  190. package/chunks/standalone-BllF4rDp.js +0 -383
  191. package/chunks/standalone-BmfMt74U.js +0 -726
  192. package/chunks/standalone-BqWyrnZI.js +0 -281
  193. package/chunks/standalone-C85u7U6I.js +0 -340
  194. package/chunks/standalone-CDQnr6qT.js +0 -345
  195. package/chunks/standalone-CZynjFG7.js +0 -12979
  196. package/chunks/standalone-DFPva_ku.js +0 -299
  197. package/chunks/standalone-DQxxNwF8.js +0 -675
  198. package/chunks/standalone-DS9T0FZ-.js +0 -830
  199. package/chunks/standalone-Dx3MLlrO.js +0 -512
  200. package/chunks/standalone-DzixzZAL.js +0 -411
  201. package/chunks/standalone-lBm9hQ-q.js +0 -179
  202. package/chunks/standalone-rJ45Zfl1.js +0 -68
  203. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  204. package/chunks/toInteger-DVZr-D1j.js +0 -11
  205. package/chunks/treemap-x_zmJoG7.js +0 -23
  206. package/chunks/types-dVVCsDWD.js +0 -4
  207. package/chunks/useFieldName-oqQ3bvnO.js +0 -7
  208. package/chunks/view-CLqWMV7Z.js +0 -156
  209. package/src/definitions/shared/index.d.ts +0 -5
  210. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  211. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  212. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  213. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  214. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  215. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  216. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  217. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  218. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  219. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  220. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -1,12 +1,14 @@
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";
8
- 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
- var Xe = {
2
+ import { Cr as r, Eo as i, Gs as a, Hi as o, Ii as s, Ni as c, Us as l, _c as u, _i as d, an as f, bn as p, eo as m, fa as h, ir as g, mc as ee, nr as _, or as v, rr as y, to as b, un as x, uo as S, vs as C, xn as w, yi as T, zi as E, zt as D } from "./visualization-filters-Cc4KU-l-.js";
3
+ import { An as O, Bt as k, Ei as A, G as j, Q as M, Ti as N, Vn as te, Vt as P, W as F, Xt as I, Y as L, Zt as R, _ as ne, an as re, bn as ie, d as ae, fn as z, in as oe, l as se, ln as B, nn as ce, nt as V, on as H, ri as U, rn as le, rt as ue, s as W, sn as de, tn as fe, tt as G, un as pe, xi as me } from "./utils-vdmi_2PK.js";
4
+ import { s as he } from "./logger-DpQtYQnX.js";
5
+ import { b as K, d as ge, f as _e, l as ve, s as ye, u as be, x as xe } from "./with-html-element-D0uY2zjI.js";
6
+ import { a as Se, c as Ce, d as we, l as Te, n as q, r as J, t as Ee, u as De } from "./DefaultPropsProvider-BsfB7QTn.js";
7
+ import { a as Oe, c as ke, f as Ae, i as je, l as Me, n as Ne, t as Y, u as Pe } from "./useSlotProps-DLbQp4lc.js";
8
+ import { s as Fe, t as Ie, u as Le } from "./src-77e3mC7i.js";
9
+ import { A as Re, D as ze, F as Be, I as Ve, M as He, P as Ue, R as We, a as Ge, g as Ke, h as qe, m as Je, t as Ye, x as Xe } from "./src-D9XogOrc.js";
10
+ import "./builder-DEDvNq1k.js";
11
+ var Ze = {
10
12
  border: 0,
11
13
  clip: "rect(0 0 0 0)",
12
14
  height: "1px",
@@ -16,18 +18,18 @@ var Xe = {
16
18
  position: "absolute",
17
19
  whiteSpace: "nowrap",
18
20
  width: "1px"
19
- }, X = /* @__PURE__ */ e(M());
20
- R(), A();
21
- var Ze = L();
22
- function Qe(e, t, n = (e, t) => e === t) {
21
+ }, X = /* @__PURE__ */ e(A());
22
+ pe(), P();
23
+ var Qe = L();
24
+ function $e(e, t, n = (e, t) => e === t) {
23
25
  return e.length === t.length && e.every((e, r) => n(e, t[r]));
24
26
  }
25
- W();
26
- var $e = 2;
27
- function et(e, t) {
27
+ V();
28
+ var et = 2;
29
+ function tt(e, t) {
28
30
  return e - t;
29
31
  }
30
- function tt(e, t) {
32
+ function nt(e, t) {
31
33
  let { index: n } = e.reduce((e, n, r) => {
32
34
  let i = Math.abs(t - n);
33
35
  return e === null || i < e.distance || i === e.distance ? {
@@ -37,7 +39,7 @@ function tt(e, t) {
37
39
  }, null) ?? {};
38
40
  return n;
39
41
  }
40
- function nt(e, t) {
42
+ function rt(e, t) {
41
43
  if (t.current !== void 0 && e.changedTouches) {
42
44
  let n = e;
43
45
  for (let e = 0; e < n.changedTouches.length; e += 1) {
@@ -54,13 +56,13 @@ function nt(e, t) {
54
56
  y: e.clientY
55
57
  };
56
58
  }
57
- function rt(e, t, n) {
59
+ function it(e, t, n) {
58
60
  return (e - t) * 100 / (n - t);
59
61
  }
60
- function it(e, t, n) {
62
+ function at(e, t, n) {
61
63
  return (n - t) * e + t;
62
64
  }
63
- function at(e) {
65
+ function ot(e) {
64
66
  if (Math.abs(e) < 1) {
65
67
  let t = e.toExponential().split("e-"), n = t[0].split(".")[1];
66
68
  return (n ? n.length : 0) + parseInt(t[1], 10);
@@ -68,27 +70,27 @@ function at(e) {
68
70
  let t = e.toString().split(".")[1];
69
71
  return t ? t.length : 0;
70
72
  }
71
- function ot(e, t, n) {
73
+ function st(e, t, n) {
72
74
  let r = Math.round((e - n) / t) * t + n;
73
- return Number(r.toFixed(at(t)));
75
+ return Number(r.toFixed(ot(t)));
74
76
  }
75
- function st({ values: e, newValue: t, index: n }) {
77
+ function ct({ values: e, newValue: t, index: n }) {
76
78
  let r = e.slice();
77
- return r[n] = t, r.sort(et);
79
+ return r[n] = t, r.sort(tt);
78
80
  }
79
- function ct({ sliderRef: e, activeIndex: t, setActive: n }) {
81
+ function lt({ sliderRef: e, activeIndex: t, setActive: n }) {
80
82
  var r, i;
81
- let a = Y(e.current);
83
+ let a = Ae(e.current);
82
84
  if (!((r = e.current) != null && r.contains(a.activeElement)) || Number(a == null || (i = a.activeElement) == null ? void 0 : i.getAttribute("data-index")) !== t) {
83
85
  var o;
84
86
  (o = e.current) == null || o.querySelector(`[type="range"][data-index="${t}"]`).focus();
85
87
  }
86
88
  n && n(t);
87
89
  }
88
- function lt(e, t) {
89
- return typeof e == "number" && typeof t == "number" ? e === t : typeof e == "object" && typeof t == "object" && Qe(e, t);
90
+ function ut(e, t) {
91
+ return typeof e == "number" && typeof t == "number" ? e === t : typeof e == "object" && typeof t == "object" && $e(e, t);
90
92
  }
91
- var ut = {
93
+ var dt = {
92
94
  horizontal: {
93
95
  offset: (e) => ({ left: `${e}%` }),
94
96
  leap: (e) => ({ width: `${e}%` })
@@ -101,16 +103,16 @@ var ut = {
101
103
  offset: (e) => ({ bottom: `${e}%` }),
102
104
  leap: (e) => ({ height: `${e}%` })
103
105
  }
104
- }, dt = (e) => e, ft;
105
- function pt() {
106
- return ft === void 0 && (ft = typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("touch-action", "none") : !0), ft;
106
+ }, ft = (e) => e, pt;
107
+ function mt() {
108
+ return pt === void 0 && (pt = typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("touch-action", "none") : !0), pt;
107
109
  }
108
- 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({
110
+ function ht(e) {
111
+ 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 = ft, 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] = Pe({
110
112
  controlled: _,
111
113
  default: n ?? c,
112
114
  name: "Slider"
113
- }), D = u && ((e, t, n) => {
115
+ }), O = u && ((e, t, n) => {
114
116
  let r = e.nativeEvent || e, i = new r.constructor(r.type, r);
115
117
  Object.defineProperty(i, "target", {
116
118
  writable: !0,
@@ -119,174 +121,174 @@ function mt(e) {
119
121
  name: l
120
122
  }
121
123
  }), 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) => {
124
+ }), k = Array.isArray(E), A = k ? E.slice().sort(tt) : [E];
125
+ A = A.map((e) => e == null ? c : G(e, c, s));
126
+ 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: P, ref: F } = Oe(), [I, L] = X.useState(-1), R = X.useRef(null), ne = ke(p, ke(F, R)), re = (e) => (t) => {
125
127
  var n;
126
128
  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) => {
129
+ P(t), N.current === !0 && L(r), S(r), e == null || (n = e.onFocus) == null || n.call(e, t);
130
+ }, ie = (e) => (t) => {
129
131
  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];
132
+ te(t), N.current === !1 && L(-1), S(-1), e == null || (n = e.onBlur) == null || n.call(e, t);
133
+ }, ae = (e, t) => {
134
+ let n = Number(e.currentTarget.getAttribute("data-index")), r = A[n], a = M.indexOf(r), o = t;
135
+ if (j && h == null) {
136
+ let e = M[M.length - 1];
137
+ o = o > e ? e : o < M[0] ? M[0] : o < r ? M[a - 1] : M[a + 1];
136
138
  }
137
- if (o = V(o, c, s), O) {
138
- i && (o = V(o, k[n - 1] || -Infinity, k[n + 1] || Infinity));
139
+ if (o = G(o, c, s), k) {
140
+ i && (o = G(o, A[n - 1] || -Infinity, A[n + 1] || Infinity));
139
141
  let e = o;
140
- o = st({
141
- values: k,
142
+ o = ct({
143
+ values: A,
142
144
  newValue: o,
143
145
  index: n
144
146
  });
145
147
  let t = n;
146
- i || (t = o.indexOf(e)), ct({
147
- sliderRef: L,
148
+ i || (t = o.indexOf(e)), lt({
149
+ sliderRef: R,
148
150
  activeIndex: t
149
151
  });
150
152
  }
151
- E(o), I(n), D && !lt(o, T) && D(e, o, n), d && d(e, o);
152
- }, R = (e) => (t) => {
153
+ D(o), L(n), O && !ut(o, E) && O(e, o, n), d && d(e, o);
154
+ }, z = (e) => (t) => {
153
155
  var n;
154
156
  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());
157
+ let e = Number(t.currentTarget.getAttribute("data-index")), n = A[e], r = null;
158
+ (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 && (ae(t, r), t.preventDefault());
157
159
  }
158
160
  e == null || (n = e.onKeyDown) == null || n.call(e, t);
159
161
  };
160
- le(() => {
161
- if (r && L.current.contains(document.activeElement)) {
162
+ ue(() => {
163
+ if (r && R.current.contains(document.activeElement)) {
162
164
  var e;
163
165
  (e = document.activeElement) == null || e.blur();
164
166
  }
165
- }, [r]), r && y !== -1 && b(-1), r && ne !== -1 && I(-1);
166
- let se = (e) => (t) => {
167
+ }, [r]), r && y !== -1 && b(-1), r && I !== -1 && L(-1);
168
+ let oe = (e) => (t) => {
167
169
  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");
171
- 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);
170
+ (n = e.onChange) == null || n.call(e, t), ae(t, t.target.valueAsNumber);
171
+ }, se = X.useRef(void 0), ce = f;
172
+ a && f === "horizontal" && (ce += "-reverse");
173
+ let V = ({ finger: e, move: t = !1 }) => {
174
+ let { current: n } = R, { width: r, height: a, bottom: o, left: l } = n.getBoundingClientRect(), u;
175
+ u = ce.indexOf("vertical") === 0 ? (o - e.y) / a : (e.x - l) / r, ce.indexOf("-reverse") !== -1 && (u = 1 - u);
174
176
  let d;
175
- if (d = it(u, c, s), h) d = ot(d, h, c);
177
+ if (d = at(u, c, s), h) d = st(d, h, c);
176
178
  else {
177
- let e = tt(j, d);
178
- d = j[e];
179
+ let e = nt(M, d);
180
+ d = M[e];
179
181
  }
180
- d = V(d, c, s);
182
+ d = G(d, c, s);
181
183
  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));
184
+ if (k) {
185
+ f = t ? se.current : nt(A, d), i && (d = G(d, A[f - 1] || -Infinity, A[f + 1] || Infinity));
184
186
  let e = d;
185
- d = st({
186
- values: k,
187
+ d = ct({
188
+ values: A,
187
189
  newValue: d,
188
190
  index: f
189
- }), i && t || (f = d.indexOf(e), ce.current = f);
191
+ }), i && t || (f = d.indexOf(e), se.current = f);
190
192
  }
191
193
  return {
192
194
  newValue: d,
193
195
  activeIndex: f
194
196
  };
195
- }, H = we((e) => {
196
- let t = nt(e, v);
197
+ }, H = Me((e) => {
198
+ let t = rt(e, v);
197
199
  if (!t) return;
198
- if (w.current += 1, e.type === "mousemove" && e.buttons === 0) {
200
+ if (T.current += 1, e.type === "mousemove" && e.buttons === 0) {
199
201
  U(e);
200
202
  return;
201
203
  }
202
- let { newValue: n, activeIndex: r } = B({
204
+ let { newValue: n, activeIndex: r } = V({
203
205
  finger: t,
204
206
  move: !0
205
207
  });
206
- ct({
207
- sliderRef: L,
208
+ lt({
209
+ sliderRef: R,
208
210
  activeIndex: r,
209
211
  setActive: b
210
- }), E(n), !S && w.current > $e && C(!0), D && !lt(n, T) && D(e, n, r);
211
- }), U = we((e) => {
212
- let t = nt(e, v);
213
- if (C(!1), !t) return;
214
- let { newValue: n } = B({
212
+ }), D(n), !C && T.current > et && w(!0), O && !ut(n, E) && O(e, n, r);
213
+ }), U = Me((e) => {
214
+ let t = rt(e, v);
215
+ if (w(!1), !t) return;
216
+ let { newValue: n } = V({
215
217
  finger: t,
216
218
  move: !0
217
219
  });
218
- b(-1), e.type === "touchend" && x(-1), d && d(e, n), v.current = void 0, W();
219
- }), ue = we((e) => {
220
+ b(-1), e.type === "touchend" && S(-1), d && d(e, n), v.current = void 0, W();
221
+ }), le = Me((e) => {
220
222
  if (r) return;
221
- pt() || e.preventDefault();
223
+ mt() || e.preventDefault();
222
224
  let t = e.changedTouches[0];
223
225
  t != null && (v.current = t.identifier);
224
- let n = nt(e, v);
226
+ let n = rt(e, v);
225
227
  if (n !== !1) {
226
- let { newValue: t, activeIndex: r } = B({ finger: n });
227
- ct({
228
- sliderRef: L,
228
+ let { newValue: t, activeIndex: r } = V({ finger: n });
229
+ lt({
230
+ sliderRef: R,
229
231
  activeIndex: r,
230
232
  setActive: b
231
- }), E(t), D && !lt(t, T) && D(e, t, r);
233
+ }), D(t), O && !ut(t, E) && O(e, t, r);
232
234
  }
233
- w.current = 0;
234
- let i = Y(L.current);
235
+ T.current = 0;
236
+ let i = Ae(R.current);
235
237
  i.addEventListener("touchmove", H, { passive: !0 }), i.addEventListener("touchend", U, { passive: !0 });
236
238
  }), W = X.useCallback(() => {
237
- let e = Y(L.current);
239
+ let e = Ae(R.current);
238
240
  e.removeEventListener("mousemove", H), e.removeEventListener("mouseup", U), e.removeEventListener("touchmove", H), e.removeEventListener("touchend", U);
239
241
  }, [U, H]);
240
242
  X.useEffect(() => {
241
- let { current: e } = L;
242
- return e.addEventListener("touchstart", ue, { passive: pt() }), () => {
243
- e.removeEventListener("touchstart", ue), W();
243
+ let { current: e } = R;
244
+ return e.addEventListener("touchstart", le, { passive: mt() }), () => {
245
+ e.removeEventListener("touchstart", le), W();
244
246
  };
245
- }, [W, ue]), X.useEffect(() => {
247
+ }, [W, le]), X.useEffect(() => {
246
248
  r && W();
247
249
  }, [r, W]);
248
250
  let de = (e) => (t) => {
249
251
  var n;
250
252
  if ((n = e.onMouseDown) == null || n.call(e, t), r || t.defaultPrevented || t.button !== 0) return;
251
253
  t.preventDefault();
252
- let i = nt(t, v);
254
+ let i = rt(t, v);
253
255
  if (i !== !1) {
254
- let { newValue: e, activeIndex: n } = B({ finger: i });
255
- ct({
256
- sliderRef: L,
256
+ let { newValue: e, activeIndex: n } = V({ finger: i });
257
+ lt({
258
+ sliderRef: R,
257
259
  activeIndex: n,
258
260
  setActive: b
259
- }), E(e), D && !lt(e, T) && D(t, e, n);
261
+ }), D(e), O && !ut(e, E) && O(t, e, n);
260
262
  }
261
- w.current = 0;
262
- let a = Y(L.current);
263
+ T.current = 0;
264
+ let a = Ae(R.current);
263
265
  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);
266
+ }, fe = it(k ? A[0] : c, c, s), pe = it(A[A.length - 1], c, s) - fe, me = (e = {}) => {
267
+ let t = Ne(e), n = B({}, t, { onMouseDown: de(t || {}) });
268
+ return B({}, e, { ref: ne }, n);
267
269
  }, he = (e) => (t) => {
268
270
  var n;
269
271
  (n = e.onMouseOver) == null || n.call(e, t);
270
272
  let r = Number(t.currentTarget.getAttribute("data-index"));
271
- x(r);
272
- }, ge = (e) => (t) => {
273
+ S(r);
274
+ }, K = (e) => (t) => {
273
275
  var n;
274
- (n = e.onMouseLeave) == null || n.call(e, t), x(-1);
276
+ (n = e.onMouseLeave) == null || n.call(e, t), S(-1);
275
277
  };
276
278
  return {
277
279
  active: y,
278
- axis: z,
279
- axisProps: ut,
280
- dragging: S,
281
- focusedThumbIndex: ne,
280
+ axis: ce,
281
+ axisProps: dt,
282
+ dragging: C,
283
+ focusedThumbIndex: I,
282
284
  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 || {})
285
+ let i = Ne(n), o = B({}, i, {
286
+ onChange: oe(i || {}),
287
+ onFocus: re(i || {}),
288
+ onBlur: ie(i || {}),
289
+ onKeyDown: z(i || {})
288
290
  });
289
- return G({
291
+ return B({
290
292
  tabIndex: ee,
291
293
  "aria-labelledby": t,
292
294
  "aria-orientation": f,
@@ -298,7 +300,7 @@ function mt(e) {
298
300
  max: e.max,
299
301
  step: e.step === null && e.marks ? "any" : e.step ?? void 0,
300
302
  disabled: r
301
- }, n, o, { style: G({}, Xe, {
303
+ }, n, o, { style: B({}, Ze, {
302
304
  direction: a ? "rtl" : "ltr",
303
305
  width: "100%",
304
306
  height: "100%"
@@ -306,38 +308,38 @@ function mt(e) {
306
308
  },
307
309
  getRootProps: me,
308
310
  getThumbProps: (e = {}) => {
309
- let t = Me(e);
310
- return G({}, e, t, {
311
+ let t = Ne(e);
312
+ return B({}, e, t, {
311
313
  onMouseOver: he(t || {}),
312
- onMouseLeave: ge(t || {})
314
+ onMouseLeave: K(t || {})
313
315
  });
314
316
  },
315
- marks: A,
316
- open: te,
317
- range: O,
318
- rootRef: re,
317
+ marks: j,
318
+ open: x,
319
+ range: k,
320
+ rootRef: ne,
319
321
  trackLeap: pe,
320
322
  trackOffset: fe,
321
- values: k,
323
+ values: A,
322
324
  getThumbStyle: (e) => ({ pointerEvents: y !== -1 && y !== e ? "none" : void 0 })
323
325
  };
324
326
  }
325
- var ht = (e) => !e || !Ae(e);
326
- function gt(e) {
327
- return Oe("MuiSlider", e);
327
+ var gt = (e) => !e || !je(e);
328
+ function _t(e) {
329
+ return De("MuiSlider", e);
328
330
  }
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) => {
331
+ var Z = Te("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 = U(), vt = (e) => {
330
332
  let { open: t } = e;
331
333
  return {
332
- offset: Te(t && Z.valueLabelOpen),
334
+ offset: we(t && Z.valueLabelOpen),
333
335
  circle: Z.valueLabelCircle,
334
336
  label: Z.valueLabelLabel
335
337
  };
336
338
  };
337
- function vt(e) {
338
- 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),
339
+ function yt(e) {
340
+ let { children: t, className: n, value: r } = e, i = vt(e);
341
+ return t ? /*#__PURE__*/ X.cloneElement(t, { className: we(t.props.className) }, /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [t.props.children, /*#__PURE__*/ (0, Q.jsx)("span", {
342
+ className: we(i.offset, n),
341
343
  "aria-hidden": !0,
342
344
  children: /*#__PURE__*/ (0, Q.jsx)("span", {
343
345
  className: i.circle,
@@ -348,20 +350,20 @@ function vt(e) {
348
350
  })
349
351
  })] })) : null;
350
352
  }
351
- R();
352
- 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
- function bt(e) {
353
+ pe();
354
+ var bt = /* @__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(".");
355
+ function xt(e) {
354
356
  return e;
355
357
  }
356
- var xt = q("span", {
358
+ var St = J("span", {
357
359
  name: "MuiSlider",
358
360
  slot: "Root",
359
361
  overridesResolver: (e, t) => {
360
362
  let { ownerState: n } = e;
361
363
  return [
362
364
  t.root,
363
- t[`color${K(n.color)}`],
364
- n.size !== "medium" && t[`size${K(n.size)}`],
365
+ t[`color${q(n.color)}`],
366
+ n.size !== "medium" && t[`size${q(n.size)}`],
365
367
  n.marked && t.marked,
366
368
  n.orientation === "vertical" && t.vertical,
367
369
  n.track === "inverted" && t.trackInverted,
@@ -435,7 +437,7 @@ var xt = q("span", {
435
437
  style: { marginRight: 44 }
436
438
  }
437
439
  ]
438
- })), St = q("span", {
440
+ })), Ct = J("span", {
439
441
  name: "MuiSlider",
440
442
  slot: "Rail",
441
443
  overridesResolver: (e, t) => t.rail
@@ -469,7 +471,7 @@ var xt = q("span", {
469
471
  style: { opacity: 1 }
470
472
  }
471
473
  ]
472
- }), Ct = q("span", {
474
+ }), wt = J("span", {
473
475
  name: "MuiSlider",
474
476
  slot: "Track",
475
477
  overridesResolver: (e, t) => t.track
@@ -515,24 +517,24 @@ var xt = q("span", {
515
517
  color: t,
516
518
  track: "inverted"
517
519
  },
518
- style: G({}, e.vars ? {
520
+ style: B({}, e.vars ? {
519
521
  backgroundColor: e.vars.palette.Slider[`${t}Track`],
520
522
  borderColor: e.vars.palette.Slider[`${t}Track`]
521
- } : G({
522
- backgroundColor: (0, Ze.lighten)(e.palette[t].main, .62),
523
- borderColor: (0, Ze.lighten)(e.palette[t].main, .62)
524
- }, e.applyStyles("dark", { backgroundColor: (0, Ze.darken)(e.palette[t].main, .5) }), e.applyStyles("dark", { borderColor: (0, Ze.darken)(e.palette[t].main, .5) })))
523
+ } : B({
524
+ backgroundColor: (0, Qe.lighten)(e.palette[t].main, .62),
525
+ borderColor: (0, Qe.lighten)(e.palette[t].main, .62)
526
+ }, e.applyStyles("dark", { backgroundColor: (0, Qe.darken)(e.palette[t].main, .5) }), e.applyStyles("dark", { borderColor: (0, Qe.darken)(e.palette[t].main, .5) })))
525
527
  }))
526
528
  ]
527
- })), wt = q("span", {
529
+ })), Tt = J("span", {
528
530
  name: "MuiSlider",
529
531
  slot: "Thumb",
530
532
  overridesResolver: (e, t) => {
531
533
  let { ownerState: n } = e;
532
534
  return [
533
535
  t.thumb,
534
- t[`thumbColor${K(n.color)}`],
535
- n.size !== "medium" && t[`thumbSize${K(n.size)}`]
536
+ t[`thumbColor${q(n.color)}`],
537
+ n.size !== "medium" && t[`thumbSize${q(n.size)}`]
536
538
  ];
537
539
  }
538
540
  })(({ theme: e }) => ({
@@ -596,16 +598,16 @@ var xt = q("span", {
596
598
  ...Object.keys((e.vars ?? e).palette).filter((t) => (e.vars ?? e).palette[t].main).map((t) => ({
597
599
  props: { color: t },
598
600
  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)}` })
601
+ [`&:hover, &.${Z.focusVisible}`]: B({}, e.vars ? { boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 8px ${(0, Qe.alpha)(e.palette[t].main, .16)}` }, { "@media (hover: none)": { boxShadow: "none" } }),
602
+ [`&.${Z.active}`]: B({}, e.vars ? { boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)` } : { boxShadow: `0px 0px 0px 14px ${(0, Qe.alpha)(e.palette[t].main, .16)}` })
601
603
  }
602
604
  }))
603
605
  ]
604
- })), Tt = q(vt, {
606
+ })), Et = J(yt, {
605
607
  name: "MuiSlider",
606
608
  slot: "ValueLabel",
607
609
  overridesResolver: (e, t) => t.valueLabel
608
- })(({ theme: e }) => G({
610
+ })(({ theme: e }) => B({
609
611
  zIndex: 1,
610
612
  whiteSpace: "nowrap"
611
613
  }, e.typography.body2, {
@@ -674,10 +676,10 @@ var xt = q("span", {
674
676
  style: { right: "20px" }
675
677
  }
676
678
  ]
677
- })), Et = q("span", {
679
+ })), Dt = J("span", {
678
680
  name: "MuiSlider",
679
681
  slot: "Mark",
680
- shouldForwardProp: (e) => xe(e) && e !== "markActive",
682
+ shouldForwardProp: (e) => Se(e) && e !== "markActive",
681
683
  overridesResolver: (e, t) => {
682
684
  let { markActive: n } = e;
683
685
  return [t.mark, n && t.markActive];
@@ -711,12 +713,12 @@ var xt = q("span", {
711
713
  }
712
714
  }
713
715
  ]
714
- })), Dt = q("span", {
716
+ })), Ot = J("span", {
715
717
  name: "MuiSlider",
716
718
  slot: "MarkLabel",
717
- shouldForwardProp: (e) => xe(e) && e !== "markLabelActive",
719
+ shouldForwardProp: (e) => Se(e) && e !== "markLabelActive",
718
720
  overridesResolver: (e, t) => t.markLabel
719
- })(({ theme: e }) => G({}, e.typography.body2, {
721
+ })(({ theme: e }) => B({}, e.typography.body2, {
720
722
  color: (e.vars || e).palette.text.secondary,
721
723
  position: "absolute",
722
724
  whiteSpace: "nowrap",
@@ -742,9 +744,9 @@ var xt = q("span", {
742
744
  style: { color: (e.vars || e).palette.text.primary }
743
745
  }
744
746
  ]
745
- })), Ot = (e) => {
747
+ })), kt = (e) => {
746
748
  let { disabled: t, dragging: n, marked: r, orientation: i, track: a, classes: o, color: s, size: c } = e;
747
- return Ee({
749
+ return Ce({
748
750
  root: [
749
751
  "root",
750
752
  t && "disabled",
@@ -753,8 +755,8 @@ var xt = q("span", {
753
755
  i === "vertical" && "vertical",
754
756
  a === "inverted" && "trackInverted",
755
757
  a === !1 && "trackFalse",
756
- s && `color${K(s)}`,
757
- c && `size${K(c)}`
758
+ s && `color${q(s)}`,
759
+ c && `size${q(c)}`
758
760
  ],
759
761
  rail: ["rail"],
760
762
  track: ["track"],
@@ -766,18 +768,18 @@ var xt = q("span", {
766
768
  thumb: [
767
769
  "thumb",
768
770
  t && "disabled",
769
- c && `thumbSize${K(c)}`,
770
- s && `thumbColor${K(s)}`
771
+ c && `thumbSize${q(c)}`,
772
+ s && `thumbColor${q(s)}`
771
773
  ],
772
774
  active: ["active"],
773
775
  disabled: ["disabled"],
774
776
  focusVisible: ["focusVisible"]
775
- }, gt, o);
776
- }, kt = ({ children: e }) => e, At = /*#__PURE__*/ X.forwardRef(function(e, t) {
777
- let n = Se({
777
+ }, _t, o);
778
+ }, At = ({ children: e }) => e, jt = /*#__PURE__*/ X.forwardRef(function(e, t) {
779
+ let n = Ee({
778
780
  props: e,
779
781
  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, {
782
+ }), r = M(), { "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 = xt, slotProps: w, slots: T, track: E = "normal", valueLabelDisplay: D = "off", valueLabelFormat: O = xt } = n, A = k(n, bt), j = B({}, n, {
781
783
  isRtl: r,
782
784
  max: _,
783
785
  min: v,
@@ -787,104 +789,195 @@ var xt = q("span", {
787
789
  orientation: y,
788
790
  marks: ee,
789
791
  color: u,
790
- size: te,
791
- step: x,
792
+ size: x,
793
+ step: S,
792
794
  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,
801
- getSlotProps: M,
795
+ scale: C,
796
+ track: E,
797
+ valueLabelDisplay: D,
798
+ valueLabelFormat: O
799
+ }), { axisProps: N, getRootProps: te, getHiddenInputProps: P, getThumbProps: F, open: I, active: L, axis: R, focusedThumbIndex: ne, range: re, dragging: ie, marks: ae, values: z, trackOffset: oe, trackLeap: se, getThumbStyle: ce } = ht(B({}, j, { rootRef: t }));
800
+ j.marked = ae.length > 0 && ae.some((e) => e.label), j.dragging = ie, j.focusedThumbIndex = ne;
801
+ let V = kt(j), H = T?.root ?? c.Root ?? St, U = T?.rail ?? c.Rail ?? Ct, le = T?.track ?? c.Track ?? wt, ue = T?.thumb ?? c.Thumb ?? Tt, W = T?.valueLabel ?? c.ValueLabel ?? Et, de = T?.mark ?? c.Mark ?? Dt, fe = T?.markLabel ?? c.MarkLabel ?? Ot, G = T?.input ?? c.Input ?? "input", pe = w?.root ?? l.root, me = w?.rail ?? l.rail, he = w?.track ?? l.track, K = w?.thumb ?? l.thumb, ge = w?.valueLabel ?? l.valueLabel, _e = w?.mark ?? l.mark, ve = w?.markLabel ?? l.markLabel, ye = w?.input ?? l.input, be = Y({
802
+ elementType: H,
803
+ getSlotProps: te,
802
804
  externalSlotProps: pe,
803
- 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,
805
+ externalForwardedProps: A,
806
+ additionalProps: B({}, gt(H) && { as: s }),
807
+ ownerState: B({}, j, pe?.ownerState),
808
+ className: [V.root, f]
809
+ }), xe = Y({
810
+ elementType: U,
809
811
  externalSlotProps: me,
810
- ownerState: A,
811
- className: z.rail
812
- }), q = J({
813
- elementType: H,
812
+ ownerState: j,
813
+ className: V.rail
814
+ }), Se = Y({
815
+ elementType: le,
814
816
  externalSlotProps: he,
815
- additionalProps: { style: G({}, j[L].offset(se), j[L].leap(ce)) },
816
- ownerState: G({}, A, he?.ownerState),
817
- className: z.track
818
- }), Ce = J({
819
- elementType: U,
820
- getSlotProps: P,
821
- externalSlotProps: ge,
822
- ownerState: G({}, A, ge?.ownerState),
823
- className: z.thumb
824
- }), we = J({
817
+ additionalProps: { style: B({}, N[R].offset(oe), N[R].leap(se)) },
818
+ ownerState: B({}, j, he?.ownerState),
819
+ className: V.track
820
+ }), Ce = Y({
825
821
  elementType: ue,
826
- externalSlotProps: _e,
827
- ownerState: G({}, A, _e?.ownerState),
828
- className: z.valueLabel
829
- }), Y = J({
822
+ getSlotProps: F,
823
+ externalSlotProps: K,
824
+ ownerState: B({}, j, K?.ownerState),
825
+ className: V.thumb
826
+ }), Te = Y({
830
827
  elementType: W,
831
- externalSlotProps: ve,
832
- ownerState: A,
833
- className: z.mark
834
- }), Ee = J({
828
+ externalSlotProps: ge,
829
+ ownerState: B({}, j, ge?.ownerState),
830
+ className: V.valueLabel
831
+ }), q = Y({
835
832
  elementType: de,
836
- externalSlotProps: ye,
837
- ownerState: A,
838
- className: z.markLabel
839
- }), De = J({
833
+ externalSlotProps: _e,
834
+ ownerState: j,
835
+ className: V.mark
836
+ }), J = Y({
840
837
  elementType: fe,
841
- getSlotProps: N,
842
- externalSlotProps: be,
843
- ownerState: A
838
+ externalSlotProps: ve,
839
+ ownerState: j,
840
+ className: V.markLabel
841
+ }), De = Y({
842
+ elementType: G,
843
+ getSlotProps: P,
844
+ externalSlotProps: ye,
845
+ ownerState: j
844
846
  });
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({
847
+ return /*#__PURE__*/ (0, Q.jsxs)(H, B({}, be, { children: [
848
+ /*#__PURE__*/ (0, Q.jsx)(U, B({}, xe)),
849
+ /*#__PURE__*/ (0, Q.jsx)(le, B({}, Se)),
850
+ ae.filter((e) => e.value >= v && e.value <= _).map((e, t) => {
851
+ let n = it(e.value, v, _), r = N[R].offset(n), i;
852
+ return i = E === !1 ? z.indexOf(e.value) !== -1 : E === "normal" && (re ? e.value >= z[0] && e.value <= z[z.length - 1] : e.value <= z[0]) || E === "inverted" && (re ? e.value <= z[0] || e.value >= z[z.length - 1] : e.value >= z[0]), /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [/*#__PURE__*/ (0, Q.jsx)(de, B({ "data-index": t }, q, !je(de) && { markActive: i }, {
853
+ style: B({}, r, q.style),
854
+ className: we(q.className, i && V.markActive)
855
+ })), e.label == null ? null : /*#__PURE__*/ (0, Q.jsx)(fe, B({
854
856
  "aria-hidden": !0,
855
857
  "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),
858
+ }, J, !je(fe) && { markLabelActive: i }, {
859
+ style: B({}, r, J.style),
860
+ className: we(V.markLabel, J.className, i && V.markLabelActive),
859
861
  children: e.label
860
862
  }))] }, t);
861
863
  }),
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,
864
+ z.map((e, t) => {
865
+ let n = it(e, v, _), r = N[R].offset(n), s = D === "off" ? At : W;
866
+ return /*#__PURE__*/ (0, Q.jsx)(s, B({}, !je(s) && {
867
+ valueLabelFormat: O,
868
+ valueLabelDisplay: D,
869
+ value: typeof O == "function" ? O(C(e), t) : O,
868
870
  index: t,
869
- open: F === t || ne === t || E === "on",
871
+ open: I === t || L === t || D === "on",
870
872
  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({
873
+ }, Te, { children: /*#__PURE__*/ (0, Q.jsx)(ue, B({ "data-index": t }, Ce, {
874
+ className: we(V.thumb, Ce.className, L === t && V.active, ne === t && V.focusVisible),
875
+ style: B({}, r, ce(t), Ce.style),
876
+ children: /*#__PURE__*/ (0, Q.jsx)(G, B({
875
877
  "data-index": t,
876
878
  "aria-label": h ? h(t) : i,
877
- "aria-valuenow": S(e),
879
+ "aria-valuenow": C(e),
878
880
  "aria-labelledby": o,
879
- "aria-valuetext": g ? g(S(e), t) : a,
880
- value: R[t]
881
+ "aria-valuetext": g ? g(C(e), t) : a,
882
+ value: z[t]
881
883
  }, De))
882
884
  })) }), t);
883
885
  })
884
886
  ] }));
885
- });
886
- Je();
887
- function jt(e, t) {
887
+ }), Mt = F({
888
+ container: {
889
+ marginTop: 4,
890
+ marginBottom: 4,
891
+ display: "inline-block",
892
+ position: "relative",
893
+ height: 24,
894
+ minWidth: 50,
895
+ width: "100%",
896
+ ...N.normal13,
897
+ fontFamily: "var(--font-family, Roboto)"
898
+ },
899
+ input: {
900
+ height: 24,
901
+ width: "100%",
902
+ padding: "2px 8px",
903
+ appearance: "textfield",
904
+ textAlign: "left",
905
+ ...N.normal13,
906
+ fontFamily: "var(--font-family, Roboto)",
907
+ color: o.mainDarkNavy,
908
+ backgroundColor: o.white,
909
+ border: `1px solid ${o.grey3}`,
910
+ boxShadow: `0px 0.5px 1px ${o.alphaBlack(.1)}`,
911
+ borderRadius: 4,
912
+ "&::-webkit-inner-spin-button, &::-webkit-outer-spin-button": { appearance: "none" },
913
+ "&:disabled": { color: o.grey2 },
914
+ "&.inputWithValuePicker": { paddingLeft: 35 }
915
+ },
916
+ inputSuffixVariant: { paddingRight: 28 },
917
+ inputPrefixVariant: { paddingLeft: 24 },
918
+ suffixLabel: {
919
+ pointerEvents: "none",
920
+ position: "absolute",
921
+ padding: "0 8px",
922
+ height: 16,
923
+ width: 28,
924
+ right: 0,
925
+ top: 4,
926
+ ...N.normal12,
927
+ fontFamily: "var(--font-family, Roboto)",
928
+ color: o.grey2,
929
+ borderLeft: `1px solid ${o.grey5}`
930
+ },
931
+ prefixImageContainer: {
932
+ width: 16,
933
+ height: 16,
934
+ top: 4,
935
+ left: 4,
936
+ position: "absolute"
937
+ }
938
+ }), Nt = ({ className: e, placeholder: t, testId: n, disabled: r, value: i, clickToGetValuesEnabled: a, passOnBlur: o = !1, autoFocus: s = !1, style: c, onBlur: l, onChange: u, onEnter: d }) => {
939
+ let f = Mt(), [p, m] = (0, X.useState)(xe(i));
940
+ (0, X.useEffect)(() => {
941
+ m(xe(i));
942
+ }, [i]);
943
+ let h = (e) => {
944
+ K(e) === null ? m(xe(i)) : m(e);
945
+ }, g = (e) => {
946
+ let t = K(e) ?? i;
947
+ t !== void 0 && (t !== i || o) && l?.(t), h(e);
948
+ }, ee = (e) => {
949
+ let t = K(e);
950
+ t != null && t !== i && u?.(t), m(e);
951
+ }, _ = (e) => {
952
+ let t = K(e) ?? i;
953
+ t != null && t !== i && d?.(t), h(e);
954
+ };
955
+ return /* @__PURE__ */ (0, Q.jsx)("input", {
956
+ disabled: r,
957
+ placeholder: t,
958
+ onChange: (e) => {
959
+ m(e.target.value), ee(e.target.value);
960
+ },
961
+ onBlur: (e) => {
962
+ g(e.target.value);
963
+ },
964
+ onKeyDown: (e) => {
965
+ e.key === "Enter" && _(e.currentTarget.value);
966
+ },
967
+ value: p,
968
+ autoFocus: s,
969
+ className: O({
970
+ [f.input]: !0,
971
+ inputWithValuePicker: a,
972
+ [e ?? ""]: !!e
973
+ }),
974
+ "data-testid": n,
975
+ type: "text",
976
+ style: c
977
+ });
978
+ };
979
+ Ye();
980
+ function Pt(e, t) {
888
981
  switch (arguments.length) {
889
982
  case 0: break;
890
983
  case 1:
@@ -896,13 +989,13 @@ function jt(e, t) {
896
989
  }
897
990
  return this;
898
991
  }
899
- var Mt = Symbol("implicit");
900
- function Nt() {
901
- var e = /* @__PURE__ */ new Map(), t = [], n = [], r = Mt;
992
+ var Ft = Symbol("implicit");
993
+ function It() {
994
+ var e = /* @__PURE__ */ new Map(), t = [], n = [], r = Ft;
902
995
  function i(i) {
903
996
  var a = i + "", o = e.get(a);
904
997
  if (!o) {
905
- if (r !== Mt) return r;
998
+ if (r !== Ft) return r;
906
999
  e.set(a, o = t.push(i));
907
1000
  }
908
1001
  return n[(o - 1) % n.length];
@@ -920,16 +1013,16 @@ function Nt() {
920
1013
  }, i.unknown = function(e) {
921
1014
  return arguments.length ? (r = e, i) : r;
922
1015
  }, i.copy = function() {
923
- return Nt(t, n).unknown(r);
924
- }, jt.apply(i, arguments), i;
1016
+ return It(t, n).unknown(r);
1017
+ }, Pt.apply(i, arguments), i;
925
1018
  }
926
- function Pt() {
927
- var e = Nt().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
1019
+ function Lt() {
1020
+ var e = It().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
928
1021
  delete e.unknown;
929
1022
  function d() {
930
1023
  var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
931
1024
  a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
932
- var m = We(e).map(function(e) {
1025
+ var m = Ge(e).map(function(e) {
933
1026
  return f + a * e;
934
1027
  });
935
1028
  return n(d ? m.reverse() : m);
@@ -955,41 +1048,41 @@ function Pt() {
955
1048
  }, e.align = function(e) {
956
1049
  return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
957
1050
  }, e.copy = function() {
958
- return Pt(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
959
- }, jt.apply(d(), arguments);
1051
+ return Lt(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
1052
+ }, Pt.apply(d(), arguments);
960
1053
  }
961
- var Ft = (e) => () => e;
962
- function It(e, t) {
1054
+ var Rt = (e) => () => e;
1055
+ function zt(e, t) {
963
1056
  return function(n) {
964
1057
  return e + n * t;
965
1058
  };
966
1059
  }
967
- function Lt(e, t, n) {
1060
+ function Bt(e, t, n) {
968
1061
  return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
969
1062
  return (e + r * t) ** +n;
970
1063
  };
971
1064
  }
972
- function Rt(e) {
973
- return (e = +e) == 1 ? zt : function(t, n) {
974
- return n - t ? Lt(t, n, e) : Ft(isNaN(t) ? n : t);
1065
+ function Vt(e) {
1066
+ return (e = +e) == 1 ? Ht : function(t, n) {
1067
+ return n - t ? Bt(t, n, e) : Rt(isNaN(t) ? n : t);
975
1068
  };
976
1069
  }
977
- function zt(e, t) {
1070
+ function Ht(e, t) {
978
1071
  var n = t - e;
979
- return n ? It(e, n) : Ft(isNaN(e) ? t : e);
1072
+ return n ? zt(e, n) : Rt(isNaN(e) ? t : e);
980
1073
  }
981
- Fe();
982
- var Bt = (function e(t) {
983
- var n = Rt(t);
1074
+ Ie();
1075
+ var Ut = (function e(t) {
1076
+ var n = Vt(t);
984
1077
  function r(e, t) {
985
- var r = n((e = Pe(e)).r, (t = Pe(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = zt(e.opacity, t.opacity);
1078
+ var r = n((e = Le(e)).r, (t = Le(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = Ht(e.opacity, t.opacity);
986
1079
  return function(t) {
987
1080
  return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
988
1081
  };
989
1082
  }
990
1083
  return r.gamma = e, r;
991
1084
  })(1);
992
- function Vt(e, t) {
1085
+ function Wt(e, t) {
993
1086
  t ||= [];
994
1087
  var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
995
1088
  return function(a) {
@@ -997,129 +1090,129 @@ function Vt(e, t) {
997
1090
  return r;
998
1091
  };
999
1092
  }
1000
- function Ht(e) {
1093
+ function Gt(e) {
1001
1094
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
1002
1095
  }
1003
- function Ut(e, t) {
1096
+ function Kt(e, t) {
1004
1097
  var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
1005
- for (o = 0; o < r; ++o) i[o] = Qt(e[o], t[o]);
1098
+ for (o = 0; o < r; ++o) i[o] = tn(e[o], t[o]);
1006
1099
  for (; o < n; ++o) a[o] = t[o];
1007
1100
  return function(e) {
1008
1101
  for (o = 0; o < r; ++o) a[o] = i[o](e);
1009
1102
  return a;
1010
1103
  };
1011
1104
  }
1012
- function Wt(e, t) {
1105
+ function qt(e, t) {
1013
1106
  var n = /* @__PURE__ */ new Date();
1014
1107
  return e = +e, t = +t, function(r) {
1015
1108
  return n.setTime(e * (1 - r) + t * r), n;
1016
1109
  };
1017
1110
  }
1018
- function Gt(e, t) {
1111
+ function Jt(e, t) {
1019
1112
  return e = +e, t = +t, function(n) {
1020
1113
  return e * (1 - n) + t * n;
1021
1114
  };
1022
1115
  }
1023
- function Kt(e, t) {
1116
+ function Yt(e, t) {
1024
1117
  var n = {}, r = {}, i;
1025
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = Qt(e[i], t[i]) : r[i] = t[i];
1118
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = tn(e[i], t[i]) : r[i] = t[i];
1026
1119
  return function(e) {
1027
1120
  for (i in n) r[i] = n[i](e);
1028
1121
  return r;
1029
1122
  };
1030
1123
  }
1031
- var qt = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Jt = new RegExp(qt.source, "g");
1032
- function Yt(e) {
1124
+ var Xt = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Zt = new RegExp(Xt.source, "g");
1125
+ function Qt(e) {
1033
1126
  return function() {
1034
1127
  return e;
1035
1128
  };
1036
1129
  }
1037
- function Xt(e) {
1130
+ function $t(e) {
1038
1131
  return function(t) {
1039
1132
  return e(t) + "";
1040
1133
  };
1041
1134
  }
1042
- function Zt(e, t) {
1043
- var n = qt.lastIndex = Jt.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1044
- for (e += "", t += ""; (r = qt.exec(e)) && (i = Jt.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1135
+ function en(e, t) {
1136
+ var n = Xt.lastIndex = Zt.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1137
+ for (e += "", t += ""; (r = Xt.exec(e)) && (i = Zt.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1045
1138
  i: o,
1046
- x: Gt(r, i)
1047
- })), n = Jt.lastIndex;
1048
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Xt(c[0].x) : Yt(t) : (t = c.length, function(e) {
1139
+ x: Jt(r, i)
1140
+ })), n = Zt.lastIndex;
1141
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? $t(c[0].x) : Qt(t) : (t = c.length, function(e) {
1049
1142
  for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
1050
1143
  return s.join("");
1051
1144
  });
1052
1145
  }
1053
- Fe();
1054
- function Qt(e, t) {
1146
+ Ie();
1147
+ function tn(e, t) {
1055
1148
  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);
1149
+ return t == null || n === "boolean" ? Rt(t) : (n === "number" ? Jt : n === "string" ? (r = Fe(t)) ? (t = r, Ut) : en : t instanceof Fe ? Ut : t instanceof Date ? qt : Gt(t) ? Wt : Array.isArray(t) ? Kt : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Yt : Jt)(e, t);
1057
1150
  }
1058
- function $t(e, t) {
1151
+ function nn(e, t) {
1059
1152
  return e = +e, t = +t, function(n) {
1060
1153
  return Math.round(e * (1 - n) + t * n);
1061
1154
  };
1062
1155
  }
1063
- function en(e) {
1156
+ function rn(e) {
1064
1157
  return function() {
1065
1158
  return e;
1066
1159
  };
1067
1160
  }
1068
- function tn(e) {
1161
+ function an(e) {
1069
1162
  return +e;
1070
1163
  }
1071
- Je();
1072
- var nn = [0, 1];
1073
- function rn(e) {
1164
+ Ye();
1165
+ var on = [0, 1];
1166
+ function sn(e) {
1074
1167
  return e;
1075
1168
  }
1076
- function an(e, t) {
1169
+ function cn(e, t) {
1077
1170
  return (t -= e = +e) ? function(n) {
1078
1171
  return (n - e) / t;
1079
- } : en(isNaN(t) ? NaN : .5);
1172
+ } : rn(isNaN(t) ? NaN : .5);
1080
1173
  }
1081
- function on(e, t) {
1174
+ function ln(e, t) {
1082
1175
  var n;
1083
1176
  return e > t && (n = e, e = t, t = n), function(n) {
1084
1177
  return Math.max(e, Math.min(t, n));
1085
1178
  };
1086
1179
  }
1087
- function sn(e, t, n) {
1180
+ function un(e, t, n) {
1088
1181
  var r = e[0], i = e[1], a = t[0], o = t[1];
1089
- return i < r ? (r = an(i, r), a = n(o, a)) : (r = an(r, i), a = n(a, o)), function(e) {
1182
+ return i < r ? (r = cn(i, r), a = n(o, a)) : (r = cn(r, i), a = n(a, o)), function(e) {
1090
1183
  return a(r(e));
1091
1184
  };
1092
1185
  }
1093
- function cn(e, t, n) {
1186
+ function dn(e, t, n) {
1094
1187
  var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
1095
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = an(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
1188
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = cn(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
1096
1189
  return function(t) {
1097
- var n = Ye(e, t, 1, r) - 1;
1190
+ var n = Xe(e, t, 1, r) - 1;
1098
1191
  return a[n](i[n](t));
1099
1192
  };
1100
1193
  }
1101
- function ln(e, t) {
1194
+ function fn(e, t) {
1102
1195
  return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
1103
1196
  }
1104
- function un() {
1105
- var e = nn, t = nn, n = Qt, r, i, a, o = rn, s, c, l;
1197
+ function pn() {
1198
+ var e = on, t = on, n = tn, r, i, a, o = sn, s, c, l;
1106
1199
  function u() {
1107
1200
  var n = Math.min(e.length, t.length);
1108
- return o !== rn && (o = on(e[0], e[n - 1])), s = n > 2 ? cn : sn, c = l = null, d;
1201
+ return o !== sn && (o = ln(e[0], e[n - 1])), s = n > 2 ? dn : un, c = l = null, d;
1109
1202
  }
1110
1203
  function d(i) {
1111
1204
  return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
1112
1205
  }
1113
1206
  return d.invert = function(n) {
1114
- return o(i((l ||= s(t, e.map(r), Gt))(n)));
1207
+ return o(i((l ||= s(t, e.map(r), Jt))(n)));
1115
1208
  }, d.domain = function(t) {
1116
- return arguments.length ? (e = Array.from(t, tn), u()) : e.slice();
1209
+ return arguments.length ? (e = Array.from(t, an), u()) : e.slice();
1117
1210
  }, d.range = function(e) {
1118
1211
  return arguments.length ? (t = Array.from(e), u()) : t.slice();
1119
1212
  }, d.rangeRound = function(e) {
1120
- return t = Array.from(e), n = $t, u();
1213
+ return t = Array.from(e), n = nn, u();
1121
1214
  }, d.clamp = function(e) {
1122
- return arguments.length ? (o = e ? !0 : rn, u()) : o !== rn;
1215
+ return arguments.length ? (o = e ? !0 : sn, u()) : o !== sn;
1123
1216
  }, d.interpolate = function(e) {
1124
1217
  return arguments.length ? (n = e, u()) : n;
1125
1218
  }, d.unknown = function(e) {
@@ -1128,44 +1221,44 @@ function un() {
1128
1221
  return r = e, i = t, u();
1129
1222
  };
1130
1223
  }
1131
- function dn() {
1132
- return un()(rn, rn);
1224
+ function mn() {
1225
+ return pn()(sn, sn);
1133
1226
  }
1134
- Je(), Re();
1135
- function fn(e, t, n, r) {
1136
- var i = Ke(e, t, n), a;
1137
- switch (r = Ue(r ?? ",f"), r.type) {
1227
+ Ye(), ze();
1228
+ function hn(e, t, n, r) {
1229
+ var i = qe(e, t, n), a;
1230
+ switch (r = We(r ?? ",f"), r.type) {
1138
1231
  case "s":
1139
1232
  var o = Math.max(Math.abs(e), Math.abs(t));
1140
- return r.precision == null && !isNaN(a = Ve(i, o)) && (r.precision = a), Be(r, o);
1233
+ return r.precision == null && !isNaN(a = He(i, o)) && (r.precision = a), Ve(r, o);
1141
1234
  case "":
1142
1235
  case "e":
1143
1236
  case "g":
1144
1237
  case "p":
1145
1238
  case "r":
1146
- r.precision == null && !isNaN(a = Le(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
1239
+ r.precision == null && !isNaN(a = Re(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
1147
1240
  break;
1148
1241
  case "f":
1149
1242
  case "%":
1150
- r.precision == null && !isNaN(a = He(i)) && (r.precision = a - (r.type === "%") * 2);
1243
+ r.precision == null && !isNaN(a = Ue(i)) && (r.precision = a - (r.type === "%") * 2);
1151
1244
  break;
1152
1245
  }
1153
- return ze(r);
1246
+ return Be(r);
1154
1247
  }
1155
- Je();
1156
- function pn(e) {
1248
+ Ye();
1249
+ function gn(e) {
1157
1250
  var t = e.domain;
1158
1251
  return e.ticks = function(e) {
1159
1252
  var n = t();
1160
- return Ge(n[0], n[n.length - 1], e ?? 10);
1253
+ return Ke(n[0], n[n.length - 1], e ?? 10);
1161
1254
  }, e.tickFormat = function(e, n) {
1162
1255
  var r = t();
1163
- return fn(r[0], r[r.length - 1], e ?? 10, n);
1256
+ return hn(r[0], r[r.length - 1], e ?? 10, n);
1164
1257
  }, e.nice = function(n) {
1165
1258
  n ??= 10;
1166
1259
  var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
1167
1260
  for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
1168
- if (l = qe(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
1261
+ if (l = Je(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
1169
1262
  if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
1170
1263
  else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
1171
1264
  else break;
@@ -1174,13 +1267,13 @@ function pn(e) {
1174
1267
  return e;
1175
1268
  }, e;
1176
1269
  }
1177
- function mn() {
1178
- var e = dn();
1270
+ function _n() {
1271
+ var e = mn();
1179
1272
  return e.copy = function() {
1180
- return ln(e, mn());
1181
- }, jt.apply(e, arguments), pn(e);
1273
+ return fn(e, _n());
1274
+ }, Pt.apply(e, arguments), gn(e);
1182
1275
  }
1183
- var hn = [1, 100], gn = k({
1276
+ var vn = [1, 100], yn = F({
1184
1277
  container: {
1185
1278
  width: "calc(100% - 20px)",
1186
1279
  height: 32,
@@ -1194,11 +1287,11 @@ var hn = [1, 100], gn = k({
1194
1287
  borderTopLeftRadius: 2,
1195
1288
  borderTopRightRadius: 2
1196
1289
  }
1197
- }), _n = ({ values: e, selectedColor: t, nonSelectedColor: n, filteredValues: r }) => {
1198
- let i = Pt(e.map((e, t) => t), [0, 100]), a = mn([0, Math.max(...e.map((e) => e.value))], [0, 100]), o = 100 / Object.keys(e).length, [s, c] = r ?? hn, l = ({ from: e, to: r }) => {
1290
+ }), bn = ({ values: e, selectedColor: t, nonSelectedColor: n, filteredValues: r }) => {
1291
+ let i = Lt(e.map((e, t) => t), [0, 100]), a = _n([0, Math.max(...e.map((e) => e.value))], [0, 100]), o = 100 / Object.keys(e).length, [s, c] = r ?? vn, l = ({ from: e, to: r }) => {
1199
1292
  let i = r - e, a = Math.max(0, (s - e) / i * 100), o = Math.min(100, (c - e) / i * 100);
1200
1293
  return `linear-gradient(90deg, ${n} 0%, ${n} ${a}%, ${t} ${a}%, ${t} ${o}%, ${n} ${o}%, ${n} 100%)`;
1201
- }, u = gn();
1294
+ }, u = yn();
1202
1295
  return /* @__PURE__ */ (0, Q.jsx)("div", {
1203
1296
  className: u.container,
1204
1297
  children: e.map((e, t) => /* @__PURE__ */ (0, Q.jsx)("div", {
@@ -1212,7 +1305,7 @@ var hn = [1, 100], gn = k({
1212
1305
  }
1213
1306
  }, `${t}-${e.from}-${e.to}`))
1214
1307
  });
1215
- }, $ = ee(), vn = k({
1308
+ }, $ = he(), xn = F({
1216
1309
  div: {
1217
1310
  alignItems: "flex-end",
1218
1311
  display: "flex",
@@ -1224,8 +1317,8 @@ var hn = [1, 100], gn = k({
1224
1317
  position: "relative"
1225
1318
  },
1226
1319
  input: {
1227
- ...b.normal13,
1228
- fontFamily: `var(--font-family, Roboto, ${T})`,
1320
+ ...N.normal13,
1321
+ fontFamily: `var(--font-family, Roboto, ${c})`,
1229
1322
  backgroundColor: o.white,
1230
1323
  border: `1px solid ${o.grey3}`,
1231
1324
  borderRadius: 4,
@@ -1248,36 +1341,36 @@ var hn = [1, 100], gn = k({
1248
1341
  "& .MuiSlider-mark": { display: "none !important" },
1249
1342
  "& .MuiSlider-markLabel": { display: "none !important" }
1250
1343
  }
1251
- }), yn = (e, t) => ({
1252
- "&:hover": { "& .MuiSlider-thumb": { borderColor: e } },
1253
- "& .MuiSlider-rail": { background: t },
1344
+ }), Sn = (e, t) => ({
1345
+ "&:hover": { "& .MuiSlider-thumb": { borderColor: e ?? void 0 } },
1346
+ "& .MuiSlider-rail": { background: t ?? void 0 },
1254
1347
  "& .MuiSlider-thumb": {
1255
- borderColor: e,
1256
- "&.Mui-active": { borderColor: e }
1348
+ borderColor: e ?? void 0,
1349
+ "&.Mui-active": { borderColor: e ?? void 0 }
1257
1350
  },
1258
- "& .MuiSlider-track": { background: e }
1259
- }), bn = (e, t, n) => {
1260
- let { values: r = [] } = e?.pending ?? {}, i = isFinite(r[0]) ? r[0] : t, a = isFinite(r[1]) ? r[1] : n;
1351
+ "& .MuiSlider-track": { background: e ?? void 0 }
1352
+ }), Cn = (e, t, n) => {
1353
+ let r = e?.pending?.values ?? [], i = isFinite(r[0]) ? r[0] : t, a = isFinite(r[1]) ? r[1] : n;
1261
1354
  return [`${i}`, `${a}`];
1262
- }, xn = (e) => typeof e == "string" ? parseFloat(e) || 1 : e, Sn = {
1355
+ }, wn = (e) => typeof e == "string" ? parseFloat(e) || 1 : e, Tn = {
1263
1356
  format: {
1264
1357
  currency: "",
1265
1358
  currencyIsPrefix: !0,
1266
1359
  formatString: "",
1267
- formatType: a.None,
1360
+ formatType: m.None,
1268
1361
  isDateTime: !1,
1269
- negativeType: s.Symbol
1362
+ negativeType: b.Symbol
1270
1363
  },
1271
1364
  type: "excel-format"
1272
- }, Cn = [
1273
- ue,
1274
- ae,
1275
- B,
1276
- fe
1277
- ], wn = w("[Slider] evaluateNumericValue", "lightred"), Tn = (e, t = Sn) => {
1365
+ }, En = [
1366
+ ce,
1367
+ de,
1368
+ fe,
1369
+ H
1370
+ ], Dn = r("[Slider] evaluateNumericValue", "lightred"), On = (e, t = Tn) => {
1278
1371
  if (!e) return null;
1279
- let { value: n, error: r } = Cn.reduce(({ value: e, error: n }, r) => {
1280
- if (n) return {
1372
+ let { value: n, error: r } = En.reduce(({ value: e, error: n }, r) => {
1373
+ if (n || e === null) return {
1281
1374
  value: null,
1282
1375
  error: n
1283
1376
  };
@@ -1286,60 +1379,61 @@ var hn = [1, 100], gn = k({
1286
1379
  value: null,
1287
1380
  error: a
1288
1381
  } : {
1289
- value: i,
1382
+ value: i ?? null,
1290
1383
  error: null
1291
1384
  };
1292
1385
  }, {
1293
1386
  value: e,
1294
1387
  error: null
1295
1388
  });
1296
- if (r) return wn.warn(r), null;
1297
- let i = [], a = H(t);
1389
+ if (r) return Dn.warn(r), null;
1390
+ if (n === null) return null;
1391
+ let i = [], a = re(t);
1298
1392
  a && i.push(a);
1299
- let o = ie(t);
1393
+ let o = oe(t);
1300
1394
  o && i.push(o);
1301
- let { evaluatedValue: s, error: c } = ce(n, i);
1302
- return c === "InvalidExpression" || typeof s != "number" ? (wn.warn(r), null) : `${s}`;
1395
+ let { evaluatedValue: s, error: c } = le(n, i);
1396
+ return c === "InvalidExpression" || typeof s != "number" ? (Dn.warn(r), null) : `${s}`;
1303
1397
  };
1304
- function En(e, t, n) {
1398
+ function kn(e, t, n) {
1305
1399
  if (!e) return "";
1306
1400
  if (!n) return e || "";
1307
- let a = { ...n };
1308
- return r(a.format.formatType) && (a = _(a)), t && h(a) ? U({
1309
- ...a,
1401
+ let r = { ...n };
1402
+ return _(r.format.formatType) && (r = p(r)), t && v(r) ? z({
1403
+ ...r,
1310
1404
  format: {
1311
- ...a.format,
1312
- formatType: i(e, n)
1405
+ ...r.format,
1406
+ formatType: y(e, n)
1313
1407
  }
1314
- }, e) : t ? m(e, n) : U(a, e);
1408
+ }, e) : t ? g(e, n) : z(r, e);
1315
1409
  }
1316
- function Dn(e) {
1410
+ function An(e) {
1317
1411
  return e?.applied?.operator === $.FilterOperator.NotBetween || e?.pending?.operator === $.FilterOperator.NotBetween;
1318
1412
  }
1319
- function On(e, t, n) {
1413
+ function jn(e, t, n) {
1320
1414
  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) {
1415
+ if (n === T.day) l.setUTCHours(0, 0, 0, 0), c.setUTCHours(23, 59, 59, 0), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
1416
+ else if (n === T.week) {
1323
1417
  l.setUTCHours(0, 0, 0, 0);
1324
1418
  let e = l.getUTCDay(), t = e === 0 ? -6 : 1 - e;
1325
1419
  l.setUTCDate(l.getUTCDate() + t), c.setUTCHours(23, 59, 59, 0);
1326
1420
  let n = c.getUTCDay(), r = n === 0 ? 0 : 7 - n;
1327
1421
  c.setUTCDate(c.getUTCDate() + r), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
1328
- } else if (n === g.month) {
1422
+ } else if (n === T.month) {
1329
1423
  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
1424
  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) {
1425
+ } else if (n === T.year) {
1332
1426
  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
1427
  c.setUTCHours(23, 59, 59, 0), c.setUTCMonth(11), c.setUTCDate(31), u.push(/* @__PURE__ */ new Date(+c));
1334
1428
  }
1335
- return u?.length >= 2 && (s = u[0], c = u[u.length - 1], i === null && (r = u.map((e) => ({ value: e.getTime() })))), {
1429
+ return u && u.length >= 2 && (s = u[0], c = u[u.length - 1], i === null && (r = u.map((e) => ({ value: e.getTime() })))), {
1336
1430
  sliderMarks: r,
1337
1431
  sliderStep: i,
1338
1432
  startValue: +s,
1339
1433
  endValue: +c
1340
1434
  };
1341
1435
  }
1342
- function kn(e, t) {
1436
+ function Mn(e, t) {
1343
1437
  let { step: n = 1, quickSelect: r = !1, manualMinMaxEnabled: i = !1 } = e?.sliderSettings ?? {}, a = e?.sliderSettings?.range ?? {
1344
1438
  min: 1,
1345
1439
  max: 100
@@ -1349,80 +1443,85 @@ function kn(e, t) {
1349
1443
  quickSelect: r,
1350
1444
  manualMinMaxEnabled: i,
1351
1445
  range: a,
1352
- overrideStyles: yn(t ? c : s, t ? s : c),
1446
+ overrideStyles: Sn(t ? c : s, t ? s : c),
1353
1447
  selectedColor: s,
1354
1448
  nonSelectedColor: c
1355
1449
  };
1356
1450
  }
1357
- var An = (e, t, n) => {
1358
- let r = he(), [i, a] = (0, X.useState)({
1451
+ var Nn = (e, t, n) => {
1452
+ let r = ie(), i = r.engine, [a, o] = (0, X.useState)({
1359
1453
  min: null,
1360
1454
  max: null,
1361
1455
  barsValues: []
1362
1456
  });
1363
1457
  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)) {
1458
+ if (!e || !i || !n) return;
1459
+ let { manualMinMaxEnabled: a = !1 } = t ?? {}, { min: s, max: c } = a ? t?.range ?? {} : await In(i, e, n), l = [];
1460
+ if (n?.measures?.[0] && ee(n)) {
1366
1461
  let e = n?.sliderSettings?.numberOfBars ?? 20, t = ye(r, {
1367
- ...C(n.type),
1462
+ ...w(n.type),
1368
1463
  ...n
1369
1464
  });
1370
- t.dimensions.length && (t.dimensions[0].bucketing = {
1371
- buckets: e,
1372
- maxValue: Math.ceil(s),
1373
- minValue: Math.floor(o)
1374
- });
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({
1381
- from: t,
1382
- to: a,
1383
- value: n
1465
+ if (t) {
1466
+ t.dimensions?.length && (t.dimensions[0].bucketing = {
1467
+ buckets: e,
1468
+ maxValue: Math.ceil(c),
1469
+ minValue: Math.floor(s)
1384
1470
  });
1385
- });
1471
+ let { data: n } = await i.getData(t);
1472
+ Object.entries(n).forEach(([e, [t, r]]) => {
1473
+ let i = Number(e);
1474
+ if (i === 0) return;
1475
+ let a = Number(n[i + 1]?.[0] ?? c);
1476
+ l.push({
1477
+ from: t,
1478
+ to: a,
1479
+ value: r
1480
+ });
1481
+ });
1482
+ }
1386
1483
  }
1387
- a({
1388
- min: o,
1389
- max: s,
1390
- barsValues: c
1484
+ o({
1485
+ min: s,
1486
+ max: c,
1487
+ barsValues: l
1391
1488
  });
1392
1489
  })(), () => {
1393
- a({
1490
+ o({
1394
1491
  min: 1,
1395
1492
  max: 100,
1396
1493
  barsValues: []
1397
1494
  });
1398
1495
  }), [
1496
+ i,
1399
1497
  e,
1400
- te(n?.measures?.[0]?.dataItem),
1498
+ n?.type,
1499
+ l(n?.measures?.[0]?.dataItem),
1401
1500
  JSON.stringify(t),
1402
1501
  n?.sliderSettings?.numberOfBars ?? 20,
1403
1502
  JSON.stringify(n?.staticFilters?.filters),
1404
1503
  JSON.stringify(n?.staticFilters?.filterGroup)
1405
- ]), i;
1504
+ ]), a;
1406
1505
  };
1407
- function jn(e) {
1408
- return pe()(e);
1506
+ function Pn(e) {
1507
+ return ne()(e);
1409
1508
  }
1410
- async function Mn(e, t) {
1411
- let n = t.staticFilters.filterGroup, r = e.engine, i = ne(t, r);
1509
+ async function Fn(e, t) {
1510
+ let n = t.staticFilters.filterGroup, r = me(t, e);
1412
1511
  if (n) {
1413
- let e = be(n, i, t.referencedData), a = e && ve(e, t, r);
1512
+ let i = be(n, r, t.referencedData), a = i && ge(i, t, e);
1414
1513
  return a ? {
1415
1514
  filters: [],
1416
1515
  filterGroup: a
1417
1516
  } : { filters: [] };
1418
1517
  }
1419
- return { filters: _e(ge(t.staticFilters.filters, i, t.referencedData), t, r) };
1518
+ return { filters: _e(ve(t.staticFilters.filters, r, t.referencedData), t, e) };
1420
1519
  }
1421
- async function Nn(e, t, n) {
1520
+ async function In(e, t, n) {
1422
1521
  let r = {
1423
1522
  dimensions: [],
1424
- ...await Mn(e, n),
1425
- limit: f(n),
1523
+ ...await Fn(e, n),
1524
+ limit: x(n),
1426
1525
  measures: [{
1427
1526
  fieldKeys: [t],
1428
1527
  aggregation: "MIN",
@@ -1432,95 +1531,95 @@ async function Nn(e, t, n) {
1432
1531
  aggregation: "MAX",
1433
1532
  filters: []
1434
1533
  }]
1435
- }, { data: i } = await e.engine.getData(r);
1534
+ }, { data: i } = await e.getData(r);
1436
1535
  return {
1437
1536
  min: typeof i[0][0] == "number" ? i[0][0] : 1,
1438
1537
  max: typeof i[0][1] == "number" ? i[0][1] : 100
1439
1538
  };
1440
1539
  }
1441
- var Pn = /* @__PURE__ */ n(((e, t) => {
1540
+ var Ln = /* @__PURE__ */ n(((e, t) => {
1442
1541
  function n(e, t, n) {
1443
1542
  return e === e && (n !== void 0 && (e = e <= n ? e : n), t !== void 0 && (e = e >= t ? e : t)), e;
1444
1543
  }
1445
1544
  t.exports = n;
1446
- })), Fn = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
1447
- var n = Pn(), r = N();
1545
+ })), Rn = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
1546
+ var n = Ln(), r = te();
1448
1547
  function i(e, t, i) {
1449
1548
  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
1549
  }
1451
1550
  t.exports = i;
1452
- })))()), In = /* @__PURE__ */ e(E());
1453
- 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)({
1551
+ })))()), zn = /* @__PURE__ */ e(D());
1552
+ function Bn(e) {
1553
+ 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, p] = (0, X.useState)(1), [m, g] = (0, X.useState)(100), [ee, _] = (0, X.useState)({
1455
1554
  step: c,
1456
1555
  marks: null
1457
- }), [{ onRange: _ }] = de(Rn(r, i, o), {
1556
+ }), [{ onRange: v }] = W(Vn(r, i, o), {
1458
1557
  disabled: !i,
1459
1558
  ignore: !0,
1460
1559
  state: s ? $.SelectionState.APPLIED : $.SelectionState.PENDING,
1461
1560
  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) => {
1561
+ }), y = f(i), b = h(a.sliderSettings.formatting) ? void 0 : a.sliderSettings.formatting ?? void 0, x = (0, X.useCallback)((e) => [(0, Rn.default)(Number(e[0]), Number(t), Number(n)), (0, Rn.default)(Number(e[1]), Number(t), Number(n))], [t, n]), S = (0, X.useCallback)(([e, t]) => {
1562
+ let n = On(e, b), r = On(t, b);
1563
+ (0, zn.default)(n) && (n = e), (0, zn.default)(r) && (r = t), u([`${n}`, `${r}`]);
1564
+ }, [u, b]), C = (0, X.useCallback)((e, t) => {
1466
1565
  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);
1566
+ }, [u, c]), w = (0, X.useCallback)((e) => {
1567
+ let t = x(e);
1568
+ v(t[0], t[1]);
1569
+ }, [v, x]), T = (0, X.useCallback)((e) => {
1570
+ let t = On(e[0], b), n = On(e[1], b), r = x([t, n]), i = [String(r[0]), String(r[1])];
1571
+ w(r), u(i);
1473
1572
  }, [
1474
- S,
1573
+ w,
1475
1574
  u,
1476
- b,
1477
- y
1575
+ x,
1576
+ b
1478
1577
  ]);
1479
1578
  return (0, X.useEffect)(() => {
1480
1579
  if (t !== null && n !== null) {
1481
1580
  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({
1581
+ if (y) {
1582
+ let { startValue: r, endValue: a, sliderStep: o, sliderMarks: s } = jn(t, n, c);
1583
+ e = r, i = a, _({
1485
1584
  step: o,
1486
1585
  marks: s
1487
1586
  });
1488
- } else ee({
1587
+ } else _({
1489
1588
  step: c,
1490
1589
  marks: null
1491
1590
  });
1492
- f(e), h(i), u(bn(r, e, i));
1591
+ p(e), g(i), u(Cn(r, e, i));
1493
1592
  }
1494
1593
  }, [
1495
1594
  t,
1496
1595
  n,
1497
1596
  c,
1498
- v
1597
+ y
1499
1598
  ]), (0, X.useEffect)(() => {
1500
1599
  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));
1600
+ let e = r.pending.values?.[0] ?? d, t = r.pending.values?.[1] ?? m;
1601
+ (e !== +l[0] || t !== +l[1]) && u(Cn(r, d, m));
1503
1602
  }
1504
1603
  }, [JSON.stringify(r?.pending)]), {
1505
1604
  values: l,
1506
1605
  minValue: d,
1507
1606
  maxValue: m,
1508
- sliderProps: g,
1509
- onRange: _,
1510
- selectRange: S,
1511
- handleChangedValues: C,
1512
- onValueChange: te,
1513
- handleSliderChange: x
1607
+ sliderProps: ee,
1608
+ onRange: v,
1609
+ selectRange: w,
1610
+ handleChangedValues: T,
1611
+ onValueChange: S,
1612
+ handleSliderChange: C
1514
1613
  };
1515
1614
  }
1516
- function Rn(e, t, n) {
1517
- let r = Dn(e);
1615
+ function Vn(e, t, n) {
1616
+ let r = An(e);
1518
1617
  return [{
1519
1618
  dataItem: {
1520
1619
  ...n,
1521
1620
  dataType: t ?? $.FieldType.STRING,
1522
1621
  internalKey: "",
1523
- type: d.Dimension,
1622
+ type: u.Dimension,
1524
1623
  uniqueSignature: ""
1525
1624
  },
1526
1625
  dateLevel: e?.applied.dateLevel,
@@ -1528,138 +1627,151 @@ function Rn(e, t, n) {
1528
1627
  operator: r ? $.FilterOperator.NotBetween : $.FilterOperator.Between
1529
1628
  }];
1530
1629
  }
1531
- 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,
1630
+ var Hn = ({ data: e, options: { type: t, vSpec: n } }) => {
1631
+ let { field: r, fieldKey: i } = Pn(e?.applied);
1632
+ return !n || t === void 0 || !r ? null : /* @__PURE__ */ (0, Q.jsx)(Un, {
1633
+ data: e,
1634
+ type: t,
1635
+ vSpec: n,
1636
+ field: r,
1637
+ fieldKey: i
1638
+ });
1639
+ }, Un = ({ data: e, type: t, vSpec: n, field: r, fieldKey: i }) => {
1640
+ let a = xn(), { ref: o, isSmallView: s } = Gn(n?.sliderSettings?.layout), [c, l] = (0, X.useState)(!1), [u, p] = (0, X.useState)(!1), { step: h, quickSelect: g, manualMinMaxEnabled: ee, range: _, overrideStyles: v, selectedColor: y, nonSelectedColor: b } = Mn(n, An(e)), { min: x, max: S, barsValues: C } = Nn(i, {
1641
+ manualMinMaxEnabled: ee,
1642
+ range: _
1643
+ }, n), { values: w, minValue: T, maxValue: E, sliderProps: D, onValueChange: k, handleChangedValues: A, handleSliderChange: j, onRange: M, selectRange: N } = Bn({
1644
+ min: x,
1645
+ max: S,
1538
1646
  data: e,
1539
1647
  type: t,
1540
1648
  vSpec: n,
1541
- quickSelect: m,
1542
- field: i,
1543
- step: p
1544
- }), M = D(t), N = (n.sliderSettings.formatting?.format?.formatType ?? a.None) === a.None, F = {
1649
+ quickSelect: g,
1650
+ field: r,
1651
+ step: h
1652
+ }), te = f(t), P = n.sliderSettings.formatting, F = (n.sliderSettings.formatting?.format?.formatType ?? m.None) === m.None, I = {
1545
1653
  fontSize: "1em",
1546
- width: `${n?.sliderSettings.inputWidth ?? (M ? S.inputDateWidth : S.inputNumberWidth)}px`
1547
- }, { marks: ne, step: I } = T;
1654
+ width: `${n?.sliderSettings.inputWidth ?? (te ? d.inputDateWidth : d.inputNumberWidth)}px`
1655
+ }, { marks: L, step: R } = D;
1548
1656
  return /* @__PURE__ */ (0, Q.jsxs)("div", {
1549
- className: P({
1550
- [r.div]: !0,
1551
- [r.divBottom]: c
1657
+ className: O({
1658
+ [a.div]: !0,
1659
+ [a.divBottom]: s
1552
1660
  }),
1553
- style: { fontSize: `${n?.sliderSettings.inputFontSize ?? S.inputFontSize}px` },
1554
- ref: s,
1661
+ style: { fontSize: `${n?.sliderSettings.inputFontSize ?? d.inputFontSize}px` },
1662
+ ref: o,
1555
1663
  children: [
1556
- M && (N || l) ? /* @__PURE__ */ (0, Q.jsx)(Ne, {
1557
- className: P({
1558
- [r.inputBottom]: c,
1559
- [r.inputLeft]: c
1664
+ te && (F || c) ? /* @__PURE__ */ (0, Q.jsx)(Nt, {
1665
+ className: O({
1666
+ [a.inputBottom]: s,
1667
+ [a.inputLeft]: s
1560
1668
  }),
1561
- style: F,
1669
+ style: I,
1562
1670
  onBlur: (e) => {
1563
- e !== +x[0] && j([e, +x[1]]), u(!1);
1671
+ e !== +w[0] && N([e, +w[1]]), l(!1);
1564
1672
  },
1565
- onEnter: (e) => j([e, +x[1]]),
1566
- value: +x[0],
1673
+ onEnter: (e) => N([e, +w[1]]),
1674
+ value: +w[0],
1567
1675
  passOnBlur: !0,
1568
- autoFocus: !N
1676
+ autoFocus: !F
1569
1677
  }) : /* @__PURE__ */ (0, Q.jsx)("input", {
1570
- className: P({
1571
- [r.input]: !0,
1572
- [r.inputBottom]: c,
1573
- [r.inputLeft]: c
1678
+ className: O({
1679
+ [a.input]: !0,
1680
+ [a.inputBottom]: s,
1681
+ [a.inputLeft]: s
1574
1682
  }),
1575
- style: F,
1576
- step: p,
1577
- min: C,
1578
- max: x[1],
1683
+ style: I,
1684
+ step: h,
1685
+ min: T,
1686
+ max: w[1],
1579
1687
  type: "text",
1580
- value: En(x[0], l, n.sliderSettings.formatting),
1688
+ value: P ? kn(w[0], c, P) : w[0],
1581
1689
  onBlur: (e) => {
1582
- u(!1), O([e.target.value, x[1]]);
1690
+ l(!1), A([e.target.value, w[1]]);
1583
1691
  },
1584
- onChange: (e) => E([e.target.value, x[1]]),
1692
+ onChange: (e) => k([e.target.value, w[1]]),
1585
1693
  onKeyDown: (e) => {
1586
- e.key === "Enter" && O([e.currentTarget.value, x[1]]);
1694
+ e.key === "Enter" && A([e.currentTarget.value, w[1]]);
1587
1695
  },
1588
- onFocus: () => u(!0),
1696
+ onFocus: () => l(!0),
1589
1697
  disabled: !t
1590
1698
  }),
1591
1699
  /* @__PURE__ */ (0, Q.jsxs)("div", {
1592
1700
  style: { flexGrow: 1 },
1593
- children: [n?.measures?.[0] ? /* @__PURE__ */ (0, Q.jsx)(_n, {
1594
- values: te,
1595
- filteredValues: [+x[0], +x[1]],
1596
- selectedColor: _,
1597
- nonSelectedColor: v
1701
+ children: [n?.measures?.[0] ? /* @__PURE__ */ (0, Q.jsx)(bn, {
1702
+ values: C,
1703
+ filteredValues: [+w[0], +w[1]],
1704
+ selectedColor: y,
1705
+ nonSelectedColor: b
1598
1706
  }) : null, /* @__PURE__ */ (0, Q.jsx)("div", {
1599
1707
  onMouseDown: (e) => e.stopPropagation(),
1600
1708
  style: {
1601
1709
  display: "flex",
1602
1710
  paddingBottom: 2
1603
1711
  },
1604
- children: /* @__PURE__ */ (0, Q.jsx)(At, {
1605
- 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,
1712
+ children: /* @__PURE__ */ (0, Q.jsx)(jt, {
1713
+ className: a.slider,
1714
+ value: [+w[0], +w[1]],
1715
+ onChange: (e, t) => {
1716
+ Array.isArray(t) && t.length === 2 && j(e, [t[0], t[1]]);
1717
+ },
1718
+ onChangeCommitted: (e, t) => {
1719
+ Array.isArray(t) && t.length === 2 && M(t[0], t[1]);
1720
+ },
1721
+ min: T ?? +w[0],
1722
+ max: E ?? +w[1],
1723
+ step: R === null ? null : wn(R),
1724
+ marks: L ?? !1,
1613
1725
  orientation: "horizontal",
1614
1726
  disabled: !t,
1615
- sx: ee
1727
+ sx: v
1616
1728
  })
1617
1729
  })]
1618
1730
  }),
1619
- M && (N || d) ? /* @__PURE__ */ (0, Q.jsx)(Ne, {
1620
- className: P({
1621
- [r.inputBottom]: c,
1622
- [r.inputRight]: c
1731
+ te && (F || u) ? /* @__PURE__ */ (0, Q.jsx)(Nt, {
1732
+ className: O({
1733
+ [a.inputBottom]: s,
1734
+ [a.inputRight]: s
1623
1735
  }),
1624
- style: F,
1736
+ style: I,
1625
1737
  onBlur: (e) => {
1626
- e !== +x[1] && j([+x[0], e]), f(!1);
1738
+ e !== +w[1] && N([+w[0], e]), p(!1);
1627
1739
  },
1628
- onEnter: (e) => j([+x[0], e]),
1629
- value: +x[1],
1740
+ onEnter: (e) => N([+w[0], e]),
1741
+ value: +w[1],
1630
1742
  passOnBlur: !0,
1631
- autoFocus: !N
1743
+ autoFocus: !F
1632
1744
  }) : /* @__PURE__ */ (0, Q.jsx)("input", {
1633
- className: P({
1634
- [r.input]: !0,
1635
- [r.inputBottom]: c,
1636
- [r.inputRight]: c
1745
+ className: O({
1746
+ [a.input]: !0,
1747
+ [a.inputBottom]: s,
1748
+ [a.inputRight]: s
1637
1749
  }),
1638
- style: F,
1639
- step: p,
1640
- min: x[0],
1641
- max: w,
1750
+ style: I,
1751
+ step: h,
1752
+ min: w[0],
1753
+ max: E,
1642
1754
  type: "text",
1643
- value: En(x[1], d, n.sliderSettings.formatting),
1755
+ value: P ? kn(w[1], u, P) : w[1],
1644
1756
  onBlur: (e) => {
1645
- f(!1), O([x[0], e.target.value]);
1757
+ p(!1), A([w[0], e.target.value]);
1646
1758
  },
1647
- onChange: (e) => E([x[0], e.target.value]),
1759
+ onChange: (e) => k([w[0], e.target.value]),
1648
1760
  onKeyDown: (e) => {
1649
- e.key === "Enter" && O([x[0], e.currentTarget.value]);
1761
+ e.key === "Enter" && A([w[0], e.currentTarget.value]);
1650
1762
  },
1651
- onFocus: () => f(!0),
1763
+ onFocus: () => p(!0),
1652
1764
  disabled: !t
1653
1765
  })
1654
1766
  ]
1655
1767
  });
1656
- }, Bn = {
1768
+ }, Wn = {
1657
1769
  refreshMode: "throttle",
1658
1770
  refreshRate: 20,
1659
1771
  refreshOptions: { trailing: !0 }
1660
1772
  };
1661
- function Vn(e) {
1662
- let { width: t = 400, ref: n } = F(Bn), r;
1773
+ function Gn(e) {
1774
+ let { width: t = 400, ref: n } = R(Wn), r;
1663
1775
  switch (e) {
1664
1776
  case "single":
1665
1777
  r = !1;
@@ -1674,12 +1786,14 @@ function Vn(e) {
1674
1786
  isSmallView: r
1675
1787
  };
1676
1788
  }
1677
- var Hn = (e) => {
1678
- let t = z(), n = pe(), r = e.dimensions[0];
1789
+ var Kn = (e) => {
1790
+ let t = se(), n = ne(), r = e.dimensions[0];
1679
1791
  if (!r) return null;
1680
- 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
- dateLevel: i,
1682
- datePart: a,
1792
+ let { dateLevel: i, datePart: a } = r, { fieldKey: o } = n(r.dataItem);
1793
+ if (o === null) return null;
1794
+ let s = (e) => e.dateLevel === i && e.datePart === a && "fieldKey" in e && e.fieldKey === o && (e.operator === $.FilterOperator.Between || e.operator === $.FilterOperator.NotBetween), c = {
1795
+ dateLevel: i ?? void 0,
1796
+ datePart: a ?? void 0,
1683
1797
  fieldKey: o,
1684
1798
  operator: $.FilterOperator.Between,
1685
1799
  values: []
@@ -1695,7 +1809,7 @@ var Hn = (e) => {
1695
1809
  ...u
1696
1810
  }
1697
1811
  };
1698
- }, Un = k({
1812
+ }, qn = F({
1699
1813
  container: {
1700
1814
  padding: 12,
1701
1815
  width: "100%",
@@ -1710,54 +1824,54 @@ var Hn = (e) => {
1710
1824
  fontWeight: "normal",
1711
1825
  marginLeft: 8
1712
1826
  },
1713
- label: { ...b.overflowEllipsis }
1714
- }), Wn = (e) => e === x.Line ? "solid" : "dashed", Gn = (e = o.white, t) => {
1827
+ label: { ...N.overflowEllipsis }
1828
+ }), Jn = (e) => e === S.Line ? "solid" : "dashed", Yn = (e = o.white, t) => {
1715
1829
  let { borderColor: n, borderEnabled: r, borderRadius: i, borderStyle: a, borderWidth: s } = {
1716
- ...S.border,
1830
+ ...d.border,
1717
1831
  ...t
1718
1832
  };
1719
1833
  return {
1720
1834
  backgroundColor: e ?? "transparent",
1721
- border: r ? `${s}px ${Wn(a)} ${n}` : "none",
1835
+ border: r ? `${s}px ${Jn(a)} ${n}` : "none",
1722
1836
  borderRadius: r ? `${i}px` : 0
1723
1837
  };
1724
- }, Kn = (e, t) => ({
1838
+ }, Xn = (e, t) => ({
1725
1839
  fontSize: e?.fontSize || 13,
1726
- fontFamily: c(t || e?.fontFamily || "Roboto"),
1840
+ fontFamily: s(t || e?.fontFamily || "Roboto"),
1727
1841
  fontStyle: e?.italic ? "italic" : "normal",
1728
1842
  fontWeight: e?.bold ? "bold" : "normal",
1729
1843
  textDecoration: `${e?.underline ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
1730
1844
  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";
1733
- if ((0, X.useEffect)(() => {
1734
- e?.dimensions && n();
1735
- }, [e]), e?.dimensions === void 0) return null;
1736
- let a = e.dimensions[0], o = e.measures[0], s = Hn(e), u = {
1845
+ }), Zn = (e, t) => e?.customLabel?.enabled && e?.customLabel?.value && !i(e.customLabel.value) ? e.customLabel.value : e?.label ? e.label : t, Qn = ({ vSpec: e }) => {
1846
+ let t = ae();
1847
+ return (0, X.useEffect)(() => {
1848
+ e && C(e) && t();
1849
+ }, [e]), !e || !C(e) ? null : /* @__PURE__ */ (0, Q.jsx)($n, { vSpec: e });
1850
+ }, $n = ({ vSpec: e }) => {
1851
+ let t = j()?.astrato ?? E, n = qn(), { backgroundColor: r, border: i, fontStyle: o } = e.sliderSettings, c = o?.fontFamily || t?.fonts?.general?.fontFamily || "Roboto", l = e.dimensions[0], u = e.measures[0], f = Kn(e), p = {
1737
1852
  vSpec: e,
1738
- format: (e) => String(se(a?.formatter?.format, e)),
1739
- type: v(a?.dataItem)
1853
+ type: a(l?.dataItem) ?? void 0
1740
1854
  };
1741
1855
  return /* @__PURE__ */ (0, Q.jsxs)("div", {
1742
- className: r.container,
1856
+ className: n.container,
1743
1857
  style: {
1744
- ...Gn(e?.sliderSettings?.backgroundColor, e?.sliderSettings?.border),
1745
- "--font-family": c(i)
1858
+ ...Yn(r === null ? "transparent" : r, i ?? d.border),
1859
+ "--font-family": s(c)
1746
1860
  },
1747
1861
  children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
1748
- className: r.label,
1749
- style: Kn(e?.sliderSettings?.fontStyle, i),
1750
- children: [/* @__PURE__ */ (0, Q.jsx)("span", { children: qn(a, "Dimension") }), e?.sliderSettings?.showMeasureLabel ? /* @__PURE__ */ (0, Q.jsx)("span", {
1751
- className: r.measureLabel,
1752
- children: qn(o, "Measure")
1862
+ className: n.label,
1863
+ style: Xn(o ?? {}, c),
1864
+ children: [/* @__PURE__ */ (0, Q.jsx)("span", { children: Zn(l, "Dimension") }), e?.sliderSettings?.showMeasureLabel ? /* @__PURE__ */ (0, Q.jsx)("span", {
1865
+ className: n.measureLabel,
1866
+ children: Zn(u, "Measure")
1753
1867
  }) : null]
1754
- }), /* @__PURE__ */ (0, Q.jsx)(zn, {
1755
- data: s,
1756
- options: u
1868
+ }), f && /* @__PURE__ */ (0, Q.jsx)(Hn, {
1869
+ data: f,
1870
+ options: p
1757
1871
  })]
1758
1872
  });
1759
- }), Yn = /* @__PURE__ */ t({
1760
- Slider: () => Jn,
1761
- SliderComponent: () => zn
1873
+ }, er = I(Qn), tr = /* @__PURE__ */ t({
1874
+ Slider: () => er,
1875
+ SliderComponent: () => Hn
1762
1876
  });
1763
- export { zn as n, mn as r, Yn as t };
1877
+ export { Hn as n, _n as r, tr as t };