@hortiview/shared-components 2.8.6 → 2.8.7

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 (132) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
  3. package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
  4. package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
  5. package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
  6. package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
  7. package/dist/_Map-BmafU0dj.js +113 -0
  8. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  9. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  10. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  11. package/dist/components/BaseView/BaseView.js +2 -2
  12. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  13. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  14. package/dist/components/BlockView/BlockView.js +1 -1
  15. package/dist/components/ChipCard/ChipCard.js +499 -390
  16. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  17. package/dist/components/DeleteModal/DeleteModal.js +5 -5
  18. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  19. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  20. package/dist/components/EmptyView/EmptyView.js +161 -125
  21. package/dist/components/Filter/Filter.js +11 -11
  22. package/dist/components/Filter/Filter.test.js +51 -35
  23. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  24. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
  25. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  26. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  27. package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
  28. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  29. package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
  30. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  31. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  32. package/dist/components/GenericTable/GenericTable.js +8246 -7153
  33. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  34. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  35. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  36. package/dist/components/HashTabView/HashTabView.js +552 -541
  37. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  38. package/dist/components/Iconify/Iconify.js +2 -2
  39. package/dist/components/InfoCard/InfoCard.js +4 -4
  40. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  41. package/dist/components/ListArea/ListArea.js +16 -16
  42. package/dist/components/ListArea/ListArea.test.js +20 -20
  43. package/dist/components/ListArea/ListAreaService.js +6 -6
  44. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  45. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  46. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
  47. package/dist/components/Modal/Modal.js +305 -312
  48. package/dist/components/ModulePadding/ModulePadding.js +8 -8
  49. package/dist/components/OfflineView/OfflineView.js +4 -4
  50. package/dist/components/OfflineView/OfflineView.test.js +1 -1
  51. package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
  52. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  53. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  54. package/dist/components/SearchBar/SearchBar.js +2 -2
  55. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  56. package/dist/components/Select/Select.js +2 -2
  57. package/dist/components/Stepper/Stepper.js +1 -1
  58. package/dist/components/Stepper/components/StepperButton.js +1 -1
  59. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  60. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  61. package/dist/defineProperty-CmuOyxyf.js +318 -0
  62. package/dist/es.string.iterator-DrqCBub-.js +581 -0
  63. package/dist/find-B-dm7n_F.js +88 -0
  64. package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
  65. package/dist/get-u1nFMLdT.js +377 -0
  66. package/dist/hooks/useHelperText.js +1 -1
  67. package/dist/identity-BIZAN_pL.js +213 -0
  68. package/dist/includes-Bt-Stz_B.js +110 -0
  69. package/dist/index-Cpb-8cAN.js +2465 -0
  70. package/dist/index.es-0QJC9VS2.js +325 -0
  71. package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
  72. package/dist/index.es-B6ZgiW2s.js +3790 -0
  73. package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
  74. package/dist/index.es-BRtk0Q33.js +42 -0
  75. package/dist/index.es-BXj90wb_.js +402 -0
  76. package/dist/index.es-Bg8hxXM8.js +912 -0
  77. package/dist/index.es-Bgjh6euR.js +292 -0
  78. package/dist/index.es-Bo1Rhtyb.js +80 -0
  79. package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
  80. package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
  81. package/dist/index.es-CmF6xAUJ.js +48 -0
  82. package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
  83. package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
  84. package/dist/index.es-DDYCugj-.js +166 -0
  85. package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
  86. package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
  87. package/dist/index.es-DeF-y7fd.js +122 -0
  88. package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
  89. package/dist/index.es-DqSY-ePE.js +4923 -0
  90. package/dist/index.es-DwzB1d7_.js +1061 -0
  91. package/dist/index.es-IXyb5F6n.js +457 -0
  92. package/dist/index.es-t7hFwQSs.js +67 -0
  93. package/dist/isArray-DN9s620O.js +83 -0
  94. package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
  95. package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
  96. package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
  97. package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
  98. package/dist/keyboard-B-WUULl-.js +173 -0
  99. package/dist/main.js +2 -2
  100. package/dist/map-Dbvlv_6y.js +707 -0
  101. package/dist/omit-uTAyrUTm.js +645 -0
  102. package/dist/orderBy-BXxEvUw6.js +571 -0
  103. package/dist/parse-int-qVAoFbOL.js +75 -0
  104. package/dist/services/UtilService.js +7 -7
  105. package/dist/slicedToArray-BWk2gTCn.js +436 -0
  106. package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
  107. package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
  108. package/package.json +3 -3
  109. package/dist/_baseIsEqual-Df2URKWm.js +0 -240
  110. package/dist/_getAllKeys-BQWmkEw5.js +0 -86
  111. package/dist/_getTag-BkGSRa18.js +0 -79
  112. package/dist/_setToString-B6E13pDg.js +0 -580
  113. package/dist/get-DQr2KQKm.js +0 -113
  114. package/dist/index-D5m--65X.js +0 -1491
  115. package/dist/index.es-8MVlRCi4.js +0 -1066
  116. package/dist/index.es-BbaCXS9-.js +0 -45
  117. package/dist/index.es-BikIx4uw.js +0 -3242
  118. package/dist/index.es-CDMu_yu0.js +0 -954
  119. package/dist/index.es-ChSlnpSq.js +0 -309
  120. package/dist/index.es-D66OkZJH.js +0 -4853
  121. package/dist/index.es-DFFyENnI.js +0 -63
  122. package/dist/index.es-DTMwaJ6B.js +0 -56
  123. package/dist/index.es-DgTJmbgD.js +0 -268
  124. package/dist/index.es-DmsyeHLO.js +0 -306
  125. package/dist/index.es-Dw1eih7R.js +0 -159
  126. package/dist/index.es-eKuwB1ll.js +0 -54
  127. package/dist/index.es-qxTN-Bb2.js +0 -107
  128. package/dist/index.es-xnSvM9b9.js +0 -444
  129. package/dist/isArray-DDZrq40X.js +0 -456
  130. package/dist/keyboard-Bpt0aBqQ.js +0 -107
  131. package/dist/omit-BN3qeeaj.js +0 -364
  132. package/dist/orderBy-D4LvP9Az.js +0 -316
@@ -1,15 +1,17 @@
1
- import { jsx as Y } from "react/jsx-runtime";
2
- import { _ as O, c as F, P as l } from "../../../index-D5m--65X.js";
3
- import c, { forwardRef as ft, useRef as tt, useImperativeHandle as et, useCallback as B, useEffect as k, useMemo as rt } from "react";
4
- import { I as nt } from "../../../index.es-8MVlRCi4.js";
5
- import { T as it } from "../../../index.es-jFaPNuBO.js";
6
- import { c as at } from "../../../index.es-ChSlnpSq.js";
7
- import { b as dt, c as K } from "../../../tslib.es6-BDCynO9F.js";
8
- import { M as gt, a as Et } from "../../../component-neHBNHRu.js";
9
- import { M as st, a as bt, m as It, b as St } from "../../../component-DsB0poTj.js";
10
- import { A as yt } from "../../../animationframe-EMBh6XeO.js";
11
- import { a as ut } from "../../../util-DA21pZXj.js";
12
- import { useFormContext as At, Controller as Ct } from "react-hook-form";
1
+ import { jsx as ye } from "react/jsx-runtime";
2
+ import { _ as Ze, a as W, c as X, b as Ae, d as Je, P as d } from "../../../index-Cpb-8cAN.js";
3
+ import { _ as Qe, a as Ce, b as Ye, c as et, d as Oe, e as _e, f as tt } from "../../../defineProperty-CmuOyxyf.js";
4
+ import { _ as Re } from "../../../parse-int-qVAoFbOL.js";
5
+ import p, { forwardRef as rt, useRef as De, useImperativeHandle as Ne, useCallback as x, useEffect as V, useMemo as ke } from "react";
6
+ import { I as Be } from "../../../index.es-DwzB1d7_.js";
7
+ import { T as Pe } from "../../../index.es-DENZVv7_.js";
8
+ import { c as Me } from "../../../index.es-BXj90wb_.js";
9
+ import { b as Fe, c as j } from "../../../tslib.es6-BDCynO9F.js";
10
+ import { M as nt, a as it } from "../../../component-neHBNHRu.js";
11
+ import { M as Le, a as at, m as st, b as ut } from "../../../component-DsB0poTj.js";
12
+ import { A as ot } from "../../../animationframe-EMBh6XeO.js";
13
+ import { a as Ve } from "../../../util-DA21pZXj.js";
14
+ import { useFormContext as lt, Controller as dt } from "react-hook-form";
13
15
  /**
14
16
  * @license
15
17
  * Copyright 2020 Google Inc.
@@ -32,7 +34,7 @@ import { useFormContext as At, Controller as Ct } from "react-hook-form";
32
34
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
35
  * THE SOFTWARE.
34
36
  */
35
- var o = {
37
+ var l = {
36
38
  DISABLED: "mdc-slider--disabled",
37
39
  DISCRETE: "mdc-slider--discrete",
38
40
  INPUT: "mdc-slider__input",
@@ -52,7 +54,7 @@ var o = {
52
54
  // The active track fill element that will be scaled as the value changes.
53
55
  TRACK_ACTIVE: "mdc-slider__track--active_fill",
54
56
  VALUE_INDICATOR_TEXT: "mdc-slider__value-indicator-text"
55
- }, ot = {
57
+ }, we = {
56
58
  // Default step size.
57
59
  STEP_SIZE: 1,
58
60
  // Minimum absolute difference between clientX of move event / down event
@@ -67,7 +69,7 @@ var o = {
67
69
  INPUT_MAX: "max",
68
70
  INPUT_VALUE: "value",
69
71
  INPUT_STEP: "step"
70
- }, lt = {
72
+ }, Ue = {
71
73
  CHANGE: "MDCSlider:change",
72
74
  INPUT: "MDCSlider:input"
73
75
  };
@@ -93,13 +95,13 @@ var o = {
93
95
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
94
96
  * THE SOFTWARE.
95
97
  */
96
- var L;
97
- (function(v) {
98
- v[v.ACTIVE = 0] = "ACTIVE", v[v.INACTIVE = 1] = "INACTIVE";
99
- })(L || (L = {}));
98
+ var w;
99
+ (function(s) {
100
+ s[s.ACTIVE = 0] = "ACTIVE", s[s.INACTIVE = 1] = "INACTIVE";
101
+ })(w || (w = {}));
100
102
  var i;
101
- (function(v) {
102
- v[v.START = 1] = "START", v[v.END = 2] = "END";
103
+ (function(s) {
104
+ s[s.START = 1] = "START", s[s.END = 2] = "END";
103
105
  })(i || (i = {}));
104
106
  /**
105
107
  * @license
@@ -123,17 +125,17 @@ var i;
123
125
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
124
126
  * THE SOFTWARE.
125
127
  */
126
- var W;
127
- (function(v) {
128
- v.SLIDER_UPDATE = "slider_update";
129
- })(W || (W = {}));
130
- var Z = typeof window < "u", Rt = (
128
+ var q;
129
+ (function(s) {
130
+ s.SLIDER_UPDATE = "slider_update";
131
+ })(q || (q = {}));
132
+ var ee = typeof window < "u", ct = (
131
133
  /** @class */
132
- function(v) {
133
- dt(a, v);
134
- function a(t) {
135
- var r = v.call(this, K(K({}, a.defaultAdapter), t)) || this;
136
- return r.initialStylesRemoved = !1, r.isDisabled = !1, r.isDiscrete = !1, r.step = ot.STEP_SIZE, r.hasTickMarks = !1, r.isRange = !1, r.thumb = null, r.downEventClientX = null, r.startThumbKnobWidth = 0, r.endThumbKnobWidth = 0, r.animFrame = new yt(), r;
134
+ function(s) {
135
+ Fe(a, s);
136
+ function a(e) {
137
+ var r = s.call(this, j(j({}, a.defaultAdapter), e)) || this;
138
+ return r.initialStylesRemoved = !1, r.isDisabled = !1, r.isDiscrete = !1, r.step = we.STEP_SIZE, r.hasTickMarks = !1, r.isRange = !1, r.thumb = null, r.downEventClientX = null, r.startThumbKnobWidth = 0, r.endThumbKnobWidth = 0, r.animFrame = new ot(), r;
137
139
  }
138
140
  return Object.defineProperty(a, "defaultAdapter", {
139
141
  get: function() {
@@ -233,21 +235,21 @@ var Z = typeof window < "u", Rt = (
233
235
  enumerable: !1,
234
236
  configurable: !0
235
237
  }), a.prototype.init = function() {
236
- var t = this;
237
- this.isDisabled = this.adapter.hasClass(o.DISABLED), this.isDiscrete = this.adapter.hasClass(o.DISCRETE), this.hasTickMarks = this.adapter.hasClass(o.TICK_MARKS), this.isRange = this.adapter.hasClass(o.RANGE);
238
- var r = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_MIN, this.isRange ? i.START : i.END), g.INPUT_MIN), e = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_MAX, i.END), g.INPUT_MAX), n = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_VALUE, i.END), g.INPUT_VALUE), s = this.isRange ? this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_VALUE, i.START), g.INPUT_VALUE) : r, h = this.adapter.getInputAttribute(g.INPUT_STEP, i.END), d = h ? this.convertAttributeValueToNumber(h, g.INPUT_STEP) : this.step;
239
- this.validateProperties({ min: r, max: e, value: n, valueStart: s, step: d }), this.min = r, this.max = e, this.value = n, this.valueStart = s, this.step = d, this.numDecimalPlaces = _t(this.step), this.valueBeforeDownEvent = n, this.valueStartBeforeDownEvent = s, this.mousedownOrTouchstartListener = this.handleMousedownOrTouchstart.bind(this), this.moveListener = this.handleMove.bind(this), this.pointerdownListener = this.handlePointerdown.bind(this), this.pointerupListener = this.handlePointerup.bind(this), this.thumbMouseenterListener = this.handleThumbMouseenter.bind(this), this.thumbMouseleaveListener = this.handleThumbMouseleave.bind(this), this.inputStartChangeListener = function() {
240
- t.handleInputChange(i.START);
238
+ var e = this;
239
+ this.isDisabled = this.adapter.hasClass(l.DISABLED), this.isDiscrete = this.adapter.hasClass(l.DISCRETE), this.hasTickMarks = this.adapter.hasClass(l.TICK_MARKS), this.isRange = this.adapter.hasClass(l.RANGE);
240
+ var r = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_MIN, this.isRange ? i.START : i.END), g.INPUT_MIN), t = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_MAX, i.END), g.INPUT_MAX), n = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_VALUE, i.END), g.INPUT_VALUE), u = this.isRange ? this.convertAttributeValueToNumber(this.adapter.getInputAttribute(g.INPUT_VALUE, i.START), g.INPUT_VALUE) : r, c = this.adapter.getInputAttribute(g.INPUT_STEP, i.END), v = c ? this.convertAttributeValueToNumber(c, g.INPUT_STEP) : this.step;
241
+ this.validateProperties({ min: r, max: t, value: n, valueStart: u, step: v }), this.min = r, this.max = t, this.value = n, this.valueStart = u, this.step = v, this.numDecimalPlaces = pt(this.step), this.valueBeforeDownEvent = n, this.valueStartBeforeDownEvent = u, this.mousedownOrTouchstartListener = this.handleMousedownOrTouchstart.bind(this), this.moveListener = this.handleMove.bind(this), this.pointerdownListener = this.handlePointerdown.bind(this), this.pointerupListener = this.handlePointerup.bind(this), this.thumbMouseenterListener = this.handleThumbMouseenter.bind(this), this.thumbMouseleaveListener = this.handleThumbMouseleave.bind(this), this.inputStartChangeListener = function() {
242
+ e.handleInputChange(i.START);
241
243
  }, this.inputEndChangeListener = function() {
242
- t.handleInputChange(i.END);
244
+ e.handleInputChange(i.END);
243
245
  }, this.inputStartFocusListener = function() {
244
- t.handleInputFocus(i.START);
246
+ e.handleInputFocus(i.START);
245
247
  }, this.inputEndFocusListener = function() {
246
- t.handleInputFocus(i.END);
248
+ e.handleInputFocus(i.END);
247
249
  }, this.inputStartBlurListener = function() {
248
- t.handleInputBlur(i.START);
250
+ e.handleInputBlur(i.START);
249
251
  }, this.inputEndBlurListener = function() {
250
- t.handleInputBlur(i.END);
252
+ e.handleInputBlur(i.END);
251
253
  }, this.resizeListener = this.handleResize.bind(this), this.registerEventHandlers();
252
254
  }, a.prototype.destroy = function() {
253
255
  this.deregisterEventHandlers();
@@ -257,213 +259,213 @@ var Z = typeof window < "u", Rt = (
257
259
  return this.max;
258
260
  }, a.prototype.getValue = function() {
259
261
  return this.value;
260
- }, a.prototype.setValue = function(t) {
261
- if (this.isRange && t < this.valueStart)
262
- throw new Error("end thumb value (" + t + ") must be >= start thumb " + ("value (" + this.valueStart + ")"));
263
- this.updateValue(t, i.END);
262
+ }, a.prototype.setValue = function(e) {
263
+ if (this.isRange && e < this.valueStart)
264
+ throw new Error("end thumb value (" + e + ") must be >= start thumb " + ("value (" + this.valueStart + ")"));
265
+ this.updateValue(e, i.END);
264
266
  }, a.prototype.getValueStart = function() {
265
267
  if (!this.isRange)
266
268
  throw new Error("`valueStart` is only applicable for range sliders.");
267
269
  return this.valueStart;
268
- }, a.prototype.setValueStart = function(t) {
270
+ }, a.prototype.setValueStart = function(e) {
269
271
  if (!this.isRange)
270
272
  throw new Error("`valueStart` is only applicable for range sliders.");
271
- if (this.isRange && t > this.value)
272
- throw new Error("start thumb value (" + t + ") must be <= end thumb " + ("value (" + this.value + ")"));
273
- this.updateValue(t, i.START);
273
+ if (this.isRange && e > this.value)
274
+ throw new Error("start thumb value (" + e + ") must be <= end thumb " + ("value (" + this.value + ")"));
275
+ this.updateValue(e, i.START);
274
276
  }, a.prototype.getStep = function() {
275
277
  return this.step;
276
278
  }, a.prototype.getDisabled = function() {
277
279
  return this.isDisabled;
278
- }, a.prototype.setDisabled = function(t) {
279
- this.isDisabled = t, t ? (this.adapter.addClass(o.DISABLED), this.isRange && this.adapter.setInputAttribute(g.INPUT_DISABLED, "", i.START), this.adapter.setInputAttribute(g.INPUT_DISABLED, "", i.END)) : (this.adapter.removeClass(o.DISABLED), this.isRange && this.adapter.removeInputAttribute(g.INPUT_DISABLED, i.START), this.adapter.removeInputAttribute(g.INPUT_DISABLED, i.END));
280
+ }, a.prototype.setDisabled = function(e) {
281
+ this.isDisabled = e, e ? (this.adapter.addClass(l.DISABLED), this.isRange && this.adapter.setInputAttribute(g.INPUT_DISABLED, "", i.START), this.adapter.setInputAttribute(g.INPUT_DISABLED, "", i.END)) : (this.adapter.removeClass(l.DISABLED), this.isRange && this.adapter.removeInputAttribute(g.INPUT_DISABLED, i.START), this.adapter.removeInputAttribute(g.INPUT_DISABLED, i.END));
280
282
  }, a.prototype.getIsRange = function() {
281
283
  return this.isRange;
282
- }, a.prototype.layout = function(t) {
283
- var r = t === void 0 ? {} : t, e = r.skipUpdateUI;
284
- this.rect = this.adapter.getBoundingClientRect(), this.isRange && (this.startThumbKnobWidth = this.adapter.getThumbKnobWidth(i.START), this.endThumbKnobWidth = this.adapter.getThumbKnobWidth(i.END)), e || this.updateUI();
284
+ }, a.prototype.layout = function(e) {
285
+ var r = e === void 0 ? {} : e, t = r.skipUpdateUI;
286
+ this.rect = this.adapter.getBoundingClientRect(), this.isRange && (this.startThumbKnobWidth = this.adapter.getThumbKnobWidth(i.START), this.endThumbKnobWidth = this.adapter.getThumbKnobWidth(i.END)), t || this.updateUI();
285
287
  }, a.prototype.handleResize = function() {
286
288
  this.layout();
287
- }, a.prototype.handleDown = function(t) {
289
+ }, a.prototype.handleDown = function(e) {
288
290
  if (!this.isDisabled) {
289
291
  this.valueStartBeforeDownEvent = this.valueStart, this.valueBeforeDownEvent = this.value;
290
- var r = t.clientX != null ? t.clientX : t.targetTouches[0].clientX;
292
+ var r = e.clientX != null ? e.clientX : e.targetTouches[0].clientX;
291
293
  this.downEventClientX = r;
292
- var e = this.mapClientXOnSliderScale(r);
293
- this.thumb = this.getThumbFromDownEvent(r, e), this.thumb !== null && (this.handleDragStart(t, e, this.thumb), this.updateValue(e, this.thumb, { emitInputEvent: !0 }));
294
+ var t = this.mapClientXOnSliderScale(r);
295
+ this.thumb = this.getThumbFromDownEvent(r, t), this.thumb !== null && (this.handleDragStart(e, t, this.thumb), this.updateValue(t, this.thumb, { emitInputEvent: !0 }));
294
296
  }
295
- }, a.prototype.handleMove = function(t) {
297
+ }, a.prototype.handleMove = function(e) {
296
298
  if (!this.isDisabled) {
297
- t.preventDefault();
298
- var r = t.clientX != null ? t.clientX : t.targetTouches[0].clientX, e = this.thumb != null;
299
+ e.preventDefault();
300
+ var r = e.clientX != null ? e.clientX : e.targetTouches[0].clientX, t = this.thumb != null;
299
301
  if (this.thumb = this.getThumbFromMoveEvent(r), this.thumb !== null) {
300
302
  var n = this.mapClientXOnSliderScale(r);
301
- e || (this.handleDragStart(t, n, this.thumb), this.adapter.emitDragStartEvent(n, this.thumb)), this.updateValue(n, this.thumb, { emitInputEvent: !0 });
303
+ t || (this.handleDragStart(e, n, this.thumb), this.adapter.emitDragStartEvent(n, this.thumb)), this.updateValue(n, this.thumb, { emitInputEvent: !0 });
302
304
  }
303
305
  }
304
306
  }, a.prototype.handleUp = function() {
305
307
  if (!(this.isDisabled || this.thumb === null)) {
306
- var t = this.thumb === i.START ? this.valueStartBeforeDownEvent : this.valueBeforeDownEvent, r = this.thumb === i.START ? this.valueStart : this.value;
307
- t !== r && this.adapter.emitChangeEvent(r, this.thumb), this.adapter.emitDragEndEvent(r, this.thumb), this.thumb = null;
308
+ var e = this.thumb === i.START ? this.valueStartBeforeDownEvent : this.valueBeforeDownEvent, r = this.thumb === i.START ? this.valueStart : this.value;
309
+ e !== r && this.adapter.emitChangeEvent(r, this.thumb), this.adapter.emitDragEndEvent(r, this.thumb), this.thumb = null;
308
310
  }
309
311
  }, a.prototype.handleThumbMouseenter = function() {
310
- !this.isDiscrete || !this.isRange || (this.adapter.addThumbClass(o.THUMB_WITH_INDICATOR, i.START), this.adapter.addThumbClass(o.THUMB_WITH_INDICATOR, i.END));
312
+ !this.isDiscrete || !this.isRange || (this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR, i.START), this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR, i.END));
311
313
  }, a.prototype.handleThumbMouseleave = function() {
312
- !this.isDiscrete || !this.isRange || this.adapter.isInputFocused(i.START) || this.adapter.isInputFocused(i.END) || (this.adapter.removeThumbClass(o.THUMB_WITH_INDICATOR, i.START), this.adapter.removeThumbClass(o.THUMB_WITH_INDICATOR, i.END));
313
- }, a.prototype.handleMousedownOrTouchstart = function(t) {
314
- var r = this, e = t.type === "mousedown" ? "mousemove" : "touchmove";
315
- this.adapter.registerBodyEventHandler(e, this.moveListener);
314
+ !this.isDiscrete || !this.isRange || this.adapter.isInputFocused(i.START) || this.adapter.isInputFocused(i.END) || (this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR, i.START), this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR, i.END));
315
+ }, a.prototype.handleMousedownOrTouchstart = function(e) {
316
+ var r = this, t = e.type === "mousedown" ? "mousemove" : "touchmove";
317
+ this.adapter.registerBodyEventHandler(t, this.moveListener);
316
318
  var n = function() {
317
- r.handleUp(), r.adapter.deregisterBodyEventHandler(e, r.moveListener), r.adapter.deregisterEventHandler("mouseup", n), r.adapter.deregisterEventHandler("touchend", n);
319
+ r.handleUp(), r.adapter.deregisterBodyEventHandler(t, r.moveListener), r.adapter.deregisterEventHandler("mouseup", n), r.adapter.deregisterEventHandler("touchend", n);
318
320
  };
319
- this.adapter.registerBodyEventHandler("mouseup", n), this.adapter.registerBodyEventHandler("touchend", n), this.handleDown(t);
320
- }, a.prototype.handlePointerdown = function(t) {
321
- this.adapter.setPointerCapture(t.pointerId), this.adapter.registerEventHandler("pointermove", this.moveListener), this.handleDown(t);
322
- }, a.prototype.handleInputChange = function(t) {
323
- var r = Number(this.adapter.getInputValue(t));
324
- t === i.START ? this.setValueStart(r) : this.setValue(r), this.adapter.emitChangeEvent(t === i.START ? this.valueStart : this.value, t), this.adapter.emitInputEvent(t === i.START ? this.valueStart : this.value, t);
325
- }, a.prototype.handleInputFocus = function(t) {
326
- if (this.adapter.addThumbClass(o.THUMB_FOCUSED, t), !!this.isDiscrete && (this.adapter.addThumbClass(o.THUMB_WITH_INDICATOR, t), this.isRange)) {
327
- var r = t === i.START ? i.END : i.START;
328
- this.adapter.addThumbClass(o.THUMB_WITH_INDICATOR, r);
321
+ this.adapter.registerBodyEventHandler("mouseup", n), this.adapter.registerBodyEventHandler("touchend", n), this.handleDown(e);
322
+ }, a.prototype.handlePointerdown = function(e) {
323
+ this.adapter.setPointerCapture(e.pointerId), this.adapter.registerEventHandler("pointermove", this.moveListener), this.handleDown(e);
324
+ }, a.prototype.handleInputChange = function(e) {
325
+ var r = Number(this.adapter.getInputValue(e));
326
+ e === i.START ? this.setValueStart(r) : this.setValue(r), this.adapter.emitChangeEvent(e === i.START ? this.valueStart : this.value, e), this.adapter.emitInputEvent(e === i.START ? this.valueStart : this.value, e);
327
+ }, a.prototype.handleInputFocus = function(e) {
328
+ if (this.adapter.addThumbClass(l.THUMB_FOCUSED, e), !!this.isDiscrete && (this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR, e), this.isRange)) {
329
+ var r = e === i.START ? i.END : i.START;
330
+ this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR, r);
329
331
  }
330
- }, a.prototype.handleInputBlur = function(t) {
331
- if (this.adapter.removeThumbClass(o.THUMB_FOCUSED, t), !!this.isDiscrete && (this.adapter.removeThumbClass(o.THUMB_WITH_INDICATOR, t), this.isRange)) {
332
- var r = t === i.START ? i.END : i.START;
333
- this.adapter.removeThumbClass(o.THUMB_WITH_INDICATOR, r);
332
+ }, a.prototype.handleInputBlur = function(e) {
333
+ if (this.adapter.removeThumbClass(l.THUMB_FOCUSED, e), !!this.isDiscrete && (this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR, e), this.isRange)) {
334
+ var r = e === i.START ? i.END : i.START;
335
+ this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR, r);
334
336
  }
335
- }, a.prototype.handleDragStart = function(t, r, e) {
336
- this.adapter.focusInput(e), t.preventDefault(), this.adapter.emitDragStartEvent(r, e);
337
- }, a.prototype.getThumbFromDownEvent = function(t, r) {
337
+ }, a.prototype.handleDragStart = function(e, r, t) {
338
+ this.adapter.focusInput(t), e.preventDefault(), this.adapter.emitDragStartEvent(r, t);
339
+ }, a.prototype.getThumbFromDownEvent = function(e, r) {
338
340
  if (!this.isRange)
339
341
  return i.END;
340
- var e = this.adapter.getThumbBoundingClientRect(i.START), n = this.adapter.getThumbBoundingClientRect(i.END), s = t >= e.left && t <= e.right, h = t >= n.left && t <= n.right;
341
- return s && h ? null : s ? i.START : h ? i.END : r < this.valueStart ? i.START : r > this.value ? i.END : r - this.valueStart <= this.value - r ? i.START : i.END;
342
- }, a.prototype.getThumbFromMoveEvent = function(t) {
342
+ var t = this.adapter.getThumbBoundingClientRect(i.START), n = this.adapter.getThumbBoundingClientRect(i.END), u = e >= t.left && e <= t.right, c = e >= n.left && e <= n.right;
343
+ return u && c ? null : u ? i.START : c ? i.END : r < this.valueStart ? i.START : r > this.value ? i.END : r - this.valueStart <= this.value - r ? i.START : i.END;
344
+ }, a.prototype.getThumbFromMoveEvent = function(e) {
343
345
  if (this.thumb !== null)
344
346
  return this.thumb;
345
347
  if (this.downEventClientX === null)
346
348
  throw new Error("`downEventClientX` is null after move event.");
347
- var r = Math.abs(this.downEventClientX - t) < ot.THUMB_UPDATE_MIN_PX;
349
+ var r = Math.abs(this.downEventClientX - e) < we.THUMB_UPDATE_MIN_PX;
348
350
  if (r)
349
351
  return this.thumb;
350
- var e = t < this.downEventClientX;
351
- return e ? this.adapter.isRTL() ? i.END : i.START : this.adapter.isRTL() ? i.START : i.END;
352
- }, a.prototype.updateUI = function(t) {
353
- this.updateThumbAndInputAttributes(t), this.updateThumbAndTrackUI(t), this.updateValueIndicatorUI(t), this.updateTickMarksUI();
354
- }, a.prototype.updateThumbAndInputAttributes = function(t) {
355
- if (t) {
356
- var r = this.isRange && t === i.START ? this.valueStart : this.value, e = String(r);
357
- this.adapter.setInputAttribute(g.INPUT_VALUE, e, t), this.isRange && t === i.START ? this.adapter.setInputAttribute(g.INPUT_MIN, e, i.END) : this.isRange && t === i.END && this.adapter.setInputAttribute(g.INPUT_MAX, e, i.START), this.adapter.getInputValue(t) !== e && this.adapter.setInputValue(e, t);
352
+ var t = e < this.downEventClientX;
353
+ return t ? this.adapter.isRTL() ? i.END : i.START : this.adapter.isRTL() ? i.START : i.END;
354
+ }, a.prototype.updateUI = function(e) {
355
+ this.updateThumbAndInputAttributes(e), this.updateThumbAndTrackUI(e), this.updateValueIndicatorUI(e), this.updateTickMarksUI();
356
+ }, a.prototype.updateThumbAndInputAttributes = function(e) {
357
+ if (e) {
358
+ var r = this.isRange && e === i.START ? this.valueStart : this.value, t = String(r);
359
+ this.adapter.setInputAttribute(g.INPUT_VALUE, t, e), this.isRange && e === i.START ? this.adapter.setInputAttribute(g.INPUT_MIN, t, i.END) : this.isRange && e === i.END && this.adapter.setInputAttribute(g.INPUT_MAX, t, i.START), this.adapter.getInputValue(e) !== t && this.adapter.setInputValue(t, e);
358
360
  var n = this.adapter.getValueToAriaValueTextFn();
359
- n && this.adapter.setInputAttribute(g.ARIA_VALUETEXT, n(r), t);
361
+ n && this.adapter.setInputAttribute(g.ARIA_VALUETEXT, n(r), e);
360
362
  }
361
- }, a.prototype.updateValueIndicatorUI = function(t) {
363
+ }, a.prototype.updateValueIndicatorUI = function(e) {
362
364
  if (this.isDiscrete) {
363
- var r = this.isRange && t === i.START ? this.valueStart : this.value;
364
- this.adapter.setValueIndicatorText(r, t === i.START ? i.START : i.END), !t && this.isRange && this.adapter.setValueIndicatorText(this.valueStart, i.START);
365
+ var r = this.isRange && e === i.START ? this.valueStart : this.value;
366
+ this.adapter.setValueIndicatorText(r, e === i.START ? i.START : i.END), !e && this.isRange && this.adapter.setValueIndicatorText(this.valueStart, i.START);
365
367
  }
366
368
  }, a.prototype.updateTickMarksUI = function() {
367
369
  if (!(!this.isDiscrete || !this.hasTickMarks)) {
368
- var t = (this.valueStart - this.min) / this.step, r = (this.value - this.valueStart) / this.step + 1, e = (this.max - this.value) / this.step, n = Array.from({ length: t }).fill(L.INACTIVE), s = Array.from({ length: r }).fill(L.ACTIVE), h = Array.from({ length: e }).fill(L.INACTIVE);
369
- this.adapter.updateTickMarks(n.concat(s).concat(h));
370
+ var e = (this.valueStart - this.min) / this.step, r = (this.value - this.valueStart) / this.step + 1, t = (this.max - this.value) / this.step, n = Array.from({ length: e }).fill(w.INACTIVE), u = Array.from({ length: r }).fill(w.ACTIVE), c = Array.from({ length: t }).fill(w.INACTIVE);
371
+ this.adapter.updateTickMarks(n.concat(u).concat(c));
370
372
  }
371
- }, a.prototype.mapClientXOnSliderScale = function(t) {
372
- var r = t - this.rect.left, e = r / this.rect.width;
373
- this.adapter.isRTL() && (e = 1 - e);
374
- var n = this.min + e * (this.max - this.min);
373
+ }, a.prototype.mapClientXOnSliderScale = function(e) {
374
+ var r = e - this.rect.left, t = r / this.rect.width;
375
+ this.adapter.isRTL() && (t = 1 - t);
376
+ var n = this.min + t * (this.max - this.min);
375
377
  return n === this.max || n === this.min ? n : Number(this.quantize(n).toFixed(this.numDecimalPlaces));
376
- }, a.prototype.quantize = function(t) {
377
- var r = Math.round((t - this.min) / this.step);
378
+ }, a.prototype.quantize = function(e) {
379
+ var r = Math.round((e - this.min) / this.step);
378
380
  return this.min + r * this.step;
379
- }, a.prototype.updateValue = function(t, r, e) {
380
- var n = e === void 0 ? {} : e, s = n.emitInputEvent;
381
- if (t = this.clampValue(t, r), this.isRange && r === i.START) {
382
- if (this.valueStart === t)
381
+ }, a.prototype.updateValue = function(e, r, t) {
382
+ var n = t === void 0 ? {} : t, u = n.emitInputEvent;
383
+ if (e = this.clampValue(e, r), this.isRange && r === i.START) {
384
+ if (this.valueStart === e)
383
385
  return;
384
- this.valueStart = t;
386
+ this.valueStart = e;
385
387
  } else {
386
- if (this.value === t)
388
+ if (this.value === e)
387
389
  return;
388
- this.value = t;
390
+ this.value = e;
389
391
  }
390
- this.updateUI(r), s && this.adapter.emitInputEvent(r === i.START ? this.valueStart : this.value, r);
391
- }, a.prototype.clampValue = function(t, r) {
392
- t = Math.min(Math.max(t, this.min), this.max);
393
- var e = this.isRange && r === i.START && t > this.value;
394
- if (e)
392
+ this.updateUI(r), u && this.adapter.emitInputEvent(r === i.START ? this.valueStart : this.value, r);
393
+ }, a.prototype.clampValue = function(e, r) {
394
+ e = Math.min(Math.max(e, this.min), this.max);
395
+ var t = this.isRange && r === i.START && e > this.value;
396
+ if (t)
395
397
  return this.value;
396
- var n = this.isRange && r === i.END && t < this.valueStart;
397
- return n ? this.valueStart : t;
398
- }, a.prototype.updateThumbAndTrackUI = function(t) {
399
- var r = this, e = this, n = e.max, s = e.min, h = (this.value - this.valueStart) / (n - s), d = h * this.rect.width, m = this.adapter.isRTL(), y = Z ? ut(window, "transform") : "transform";
398
+ var n = this.isRange && r === i.END && e < this.valueStart;
399
+ return n ? this.valueStart : e;
400
+ }, a.prototype.updateThumbAndTrackUI = function(e) {
401
+ var r = this, t = this, n = t.max, u = t.min, c = (this.value - this.valueStart) / (n - u), v = c * this.rect.width, f = this.adapter.isRTL(), R = ee ? Ve(window, "transform") : "transform";
400
402
  if (this.isRange) {
401
- var D = this.adapter.isRTL() ? (n - this.value) / (n - s) * this.rect.width : (this.valueStart - s) / (n - s) * this.rect.width, T = D + d;
402
- this.animFrame.request(W.SLIDER_UPDATE, function() {
403
- var f = !m && t === i.START || m && t !== i.START;
404
- f ? (r.adapter.setTrackActiveStyleProperty("transform-origin", "right"), r.adapter.setTrackActiveStyleProperty("left", "unset"), r.adapter.setTrackActiveStyleProperty("right", r.rect.width - T + "px")) : (r.adapter.setTrackActiveStyleProperty("transform-origin", "left"), r.adapter.setTrackActiveStyleProperty("right", "unset"), r.adapter.setTrackActiveStyleProperty("left", D + "px")), r.adapter.setTrackActiveStyleProperty(y, "scaleX(" + h + ")");
405
- var V = m ? T : D, _ = r.adapter.isRTL() ? D : T;
406
- (t === i.START || !t || !r.initialStylesRemoved) && r.adapter.setThumbStyleProperty(y, "translateX(" + V + "px)", i.START), (t === i.END || !t || !r.initialStylesRemoved) && r.adapter.setThumbStyleProperty(y, "translateX(" + _ + "px)", i.END), r.removeInitialStyles(m), r.updateOverlappingThumbsUI(V, _, t);
403
+ var N = this.adapter.isRTL() ? (n - this.value) / (n - u) * this.rect.width : (this.valueStart - u) / (n - u) * this.rect.width, b = N + v;
404
+ this.animFrame.request(q.SLIDER_UPDATE, function() {
405
+ var T = !f && e === i.START || f && e !== i.START;
406
+ T ? (r.adapter.setTrackActiveStyleProperty("transform-origin", "right"), r.adapter.setTrackActiveStyleProperty("left", "unset"), r.adapter.setTrackActiveStyleProperty("right", r.rect.width - b + "px")) : (r.adapter.setTrackActiveStyleProperty("transform-origin", "left"), r.adapter.setTrackActiveStyleProperty("right", "unset"), r.adapter.setTrackActiveStyleProperty("left", N + "px")), r.adapter.setTrackActiveStyleProperty(R, "scaleX(" + c + ")");
407
+ var O = f ? b : N, k = r.adapter.isRTL() ? N : b;
408
+ (e === i.START || !e || !r.initialStylesRemoved) && r.adapter.setThumbStyleProperty(R, "translateX(" + O + "px)", i.START), (e === i.END || !e || !r.initialStylesRemoved) && r.adapter.setThumbStyleProperty(R, "translateX(" + k + "px)", i.END), r.removeInitialStyles(f), r.updateOverlappingThumbsUI(O, k, e);
407
409
  });
408
410
  } else
409
- this.animFrame.request(W.SLIDER_UPDATE, function() {
410
- var f = m ? r.rect.width - d : d;
411
- r.adapter.setThumbStyleProperty(y, "translateX(" + f + "px)", i.END), r.adapter.setTrackActiveStyleProperty(y, "scaleX(" + h + ")"), r.removeInitialStyles(m);
411
+ this.animFrame.request(q.SLIDER_UPDATE, function() {
412
+ var T = f ? r.rect.width - v : v;
413
+ r.adapter.setThumbStyleProperty(R, "translateX(" + T + "px)", i.END), r.adapter.setTrackActiveStyleProperty(R, "scaleX(" + c + ")"), r.removeInitialStyles(f);
412
414
  });
413
- }, a.prototype.removeInitialStyles = function(t) {
415
+ }, a.prototype.removeInitialStyles = function(e) {
414
416
  if (!this.initialStylesRemoved) {
415
- var r = t ? "right" : "left";
417
+ var r = e ? "right" : "left";
416
418
  this.adapter.removeThumbStyleProperty(r, i.END), this.isRange && this.adapter.removeThumbStyleProperty(r, i.START), this.initialStylesRemoved = !0, this.resetTrackAndThumbAnimation();
417
419
  }
418
420
  }, a.prototype.resetTrackAndThumbAnimation = function() {
419
- var t = this;
421
+ var e = this;
420
422
  if (this.isDiscrete) {
421
- var r = Z ? ut(window, "transition") : "transition", e = "all 0s ease 0s";
422
- this.adapter.setThumbStyleProperty(r, e, i.END), this.isRange && this.adapter.setThumbStyleProperty(r, e, i.START), this.adapter.setTrackActiveStyleProperty(r, e), requestAnimationFrame(function() {
423
- t.adapter.removeThumbStyleProperty(r, i.END), t.adapter.removeTrackActiveStyleProperty(r), t.isRange && t.adapter.removeThumbStyleProperty(r, i.START);
423
+ var r = ee ? Ve(window, "transition") : "transition", t = "all 0s ease 0s";
424
+ this.adapter.setThumbStyleProperty(r, t, i.END), this.isRange && this.adapter.setThumbStyleProperty(r, t, i.START), this.adapter.setTrackActiveStyleProperty(r, t), requestAnimationFrame(function() {
425
+ e.adapter.removeThumbStyleProperty(r, i.END), e.adapter.removeTrackActiveStyleProperty(r), e.isRange && e.adapter.removeThumbStyleProperty(r, i.START);
424
426
  });
425
427
  }
426
- }, a.prototype.updateOverlappingThumbsUI = function(t, r, e) {
428
+ }, a.prototype.updateOverlappingThumbsUI = function(e, r, t) {
427
429
  var n = !1;
428
430
  if (this.adapter.isRTL()) {
429
- var s = t - this.startThumbKnobWidth / 2, h = r + this.endThumbKnobWidth / 2;
430
- n = h >= s;
431
+ var u = e - this.startThumbKnobWidth / 2, c = r + this.endThumbKnobWidth / 2;
432
+ n = c >= u;
431
433
  } else {
432
- var d = t + this.startThumbKnobWidth / 2, m = r - this.endThumbKnobWidth / 2;
433
- n = d >= m;
434
+ var v = e + this.startThumbKnobWidth / 2, f = r - this.endThumbKnobWidth / 2;
435
+ n = v >= f;
434
436
  }
435
437
  n ? (this.adapter.addThumbClass(
436
- o.THUMB_TOP,
438
+ l.THUMB_TOP,
437
439
  // If no thumb was dragged (in the case of initial layout), end
438
440
  // thumb is on top by default.
439
- e || i.END
440
- ), this.adapter.removeThumbClass(o.THUMB_TOP, e === i.START ? i.END : i.START)) : (this.adapter.removeThumbClass(o.THUMB_TOP, i.START), this.adapter.removeThumbClass(o.THUMB_TOP, i.END));
441
- }, a.prototype.convertAttributeValueToNumber = function(t, r) {
442
- if (t === null)
441
+ t || i.END
442
+ ), this.adapter.removeThumbClass(l.THUMB_TOP, t === i.START ? i.END : i.START)) : (this.adapter.removeThumbClass(l.THUMB_TOP, i.START), this.adapter.removeThumbClass(l.THUMB_TOP, i.END));
443
+ }, a.prototype.convertAttributeValueToNumber = function(e, r) {
444
+ if (e === null)
443
445
  throw new Error("MDCSliderFoundation: `" + r + "` must be non-null.");
444
- var e = Number(t);
445
- if (isNaN(e))
446
- throw new Error("MDCSliderFoundation: `" + r + "` value is " + ("`" + t + "`, but must be a number."));
447
- return e;
448
- }, a.prototype.validateProperties = function(t) {
449
- var r = t.min, e = t.max, n = t.value, s = t.valueStart, h = t.step;
450
- if (r >= e)
451
- throw new Error("MDCSliderFoundation: min must be strictly less than max. " + ("Current: [min: " + r + ", max: " + e + "]"));
452
- if (h <= 0)
446
+ var t = Number(e);
447
+ if (isNaN(t))
448
+ throw new Error("MDCSliderFoundation: `" + r + "` value is " + ("`" + e + "`, but must be a number."));
449
+ return t;
450
+ }, a.prototype.validateProperties = function(e) {
451
+ var r = e.min, t = e.max, n = e.value, u = e.valueStart, c = e.step;
452
+ if (r >= t)
453
+ throw new Error("MDCSliderFoundation: min must be strictly less than max. " + ("Current: [min: " + r + ", max: " + t + "]"));
454
+ if (c <= 0)
453
455
  throw new Error("MDCSliderFoundation: step must be a positive number. " + ("Current step: " + this.step));
454
456
  if (this.isRange) {
455
- if (n < r || n > e || s < r || s > e)
456
- throw new Error("MDCSliderFoundation: values must be in [min, max] range. " + ("Current values: [start value: " + s + ", end value: " + n + "]"));
457
- if (s > n)
458
- throw new Error("MDCSliderFoundation: start value must be <= end value. " + ("Current values: [start value: " + s + ", end value: " + n + "]"));
459
- var d = (s - r) / h, m = (n - r) / h;
460
- if (d % 1 !== 0 || m % 1 !== 0)
461
- throw new Error("MDCSliderFoundation: Slider values must be valid based on the " + ("step value. Current values: [start value: " + s + ", ") + ("end value: " + n + "]"));
457
+ if (n < r || n > t || u < r || u > t)
458
+ throw new Error("MDCSliderFoundation: values must be in [min, max] range. " + ("Current values: [start value: " + u + ", end value: " + n + "]"));
459
+ if (u > n)
460
+ throw new Error("MDCSliderFoundation: start value must be <= end value. " + ("Current values: [start value: " + u + ", end value: " + n + "]"));
461
+ var v = (u - r) / c, f = (n - r) / c;
462
+ if (v % 1 !== 0 || f % 1 !== 0)
463
+ throw new Error("MDCSliderFoundation: Slider values must be valid based on the " + ("step value. Current values: [start value: " + u + ", ") + ("end value: " + n + "]"));
462
464
  } else {
463
- if (n < r || n > e)
465
+ if (n < r || n > t)
464
466
  throw new Error("MDCSliderFoundation: value must be in [min, max] range. " + ("Current value: " + n));
465
- var m = (n - r) / h;
466
- if (m % 1 !== 0)
467
+ var f = (n - r) / c;
468
+ if (f % 1 !== 0)
467
469
  throw new Error("MDCSliderFoundation: Slider value must be valid based on the " + ("step value. Current value: " + n));
468
470
  }
469
471
  }, a.prototype.registerEventHandlers = function() {
@@ -472,13 +474,13 @@ var Z = typeof window < "u", Rt = (
472
474
  this.adapter.deregisterWindowEventHandler("resize", this.resizeListener), a.SUPPORTS_POINTER_EVENTS ? (this.adapter.deregisterEventHandler("pointerdown", this.pointerdownListener), this.adapter.deregisterEventHandler("pointerup", this.pointerupListener)) : (this.adapter.deregisterEventHandler("mousedown", this.mousedownOrTouchstartListener), this.adapter.deregisterEventHandler("touchstart", this.mousedownOrTouchstartListener)), this.isRange && (this.adapter.deregisterThumbEventHandler(i.START, "mouseenter", this.thumbMouseenterListener), this.adapter.deregisterThumbEventHandler(i.START, "mouseleave", this.thumbMouseleaveListener), this.adapter.deregisterInputEventHandler(i.START, "change", this.inputStartChangeListener), this.adapter.deregisterInputEventHandler(i.START, "focus", this.inputStartFocusListener), this.adapter.deregisterInputEventHandler(i.START, "blur", this.inputStartBlurListener)), this.adapter.deregisterThumbEventHandler(i.END, "mouseenter", this.thumbMouseenterListener), this.adapter.deregisterThumbEventHandler(i.END, "mouseleave", this.thumbMouseleaveListener), this.adapter.deregisterInputEventHandler(i.END, "change", this.inputEndChangeListener), this.adapter.deregisterInputEventHandler(i.END, "focus", this.inputEndFocusListener), this.adapter.deregisterInputEventHandler(i.END, "blur", this.inputEndBlurListener);
473
475
  }, a.prototype.handlePointerup = function() {
474
476
  this.handleUp(), this.adapter.deregisterEventHandler("pointermove", this.moveListener);
475
- }, a.SUPPORTS_POINTER_EVENTS = Z && !!window.PointerEvent && // #setPointerCapture is buggy on iOS, so we can't use pointer events
477
+ }, a.SUPPORTS_POINTER_EVENTS = ee && !!window.PointerEvent && // #setPointerCapture is buggy on iOS, so we can't use pointer events
476
478
  // until the following bug is fixed:
477
479
  // https://bugs.webkit.org/show_bug.cgi?id=220196
478
- !Dt(), a;
479
- }(gt)
480
+ !ht(), a;
481
+ }(nt)
480
482
  );
481
- function Dt() {
483
+ function ht() {
482
484
  return [
483
485
  "iPad Simulator",
484
486
  "iPhone Simulator",
@@ -488,15 +490,15 @@ function Dt() {
488
490
  "iPod"
489
491
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
490
492
  }
491
- function _t(v) {
492
- var a = /(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(v));
493
+ function pt(s) {
494
+ var a = /(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(s));
493
495
  if (!a)
494
496
  return 0;
495
- var t = a[1] || "", r = a[2] || 0;
497
+ var e = a[1] || "", r = a[2] || 0;
496
498
  return Math.max(
497
499
  0,
498
500
  // lower limit
499
- (t === "0" ? 0 : t.length) - Number(r)
501
+ (e === "0" ? 0 : e.length) - Number(r)
500
502
  );
501
503
  }
502
504
  /**
@@ -521,359 +523,358 @@ function _t(v) {
521
523
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
522
524
  * THE SOFTWARE.
523
525
  */
524
- var Nt = (
526
+ var mt = (
525
527
  /** @class */
526
- function(v) {
527
- dt(a, v);
528
+ function(s) {
529
+ Fe(a, s);
528
530
  function a() {
529
- var t = v !== null && v.apply(this, arguments) || this;
530
- return t.skipInitialUIUpdate = !1, t.valueToAriaValueTextFn = null, t;
531
+ var e = s !== null && s.apply(this, arguments) || this;
532
+ return e.skipInitialUIUpdate = !1, e.valueToAriaValueTextFn = null, e;
531
533
  }
532
- return a.attachTo = function(t, r) {
533
- return r === void 0 && (r = {}), new a(t, void 0, r);
534
+ return a.attachTo = function(e, r) {
535
+ return r === void 0 && (r = {}), new a(e, void 0, r);
534
536
  }, a.prototype.getDefaultFoundation = function() {
535
- var t = this, r = {
536
- hasClass: function(e) {
537
- return t.root.classList.contains(e);
537
+ var e = this, r = {
538
+ hasClass: function(t) {
539
+ return e.root.classList.contains(t);
538
540
  },
539
- addClass: function(e) {
540
- t.root.classList.add(e);
541
+ addClass: function(t) {
542
+ e.root.classList.add(t);
541
543
  },
542
- removeClass: function(e) {
543
- t.root.classList.remove(e);
544
+ removeClass: function(t) {
545
+ e.root.classList.remove(t);
544
546
  },
545
- addThumbClass: function(e, n) {
546
- t.getThumbEl(n).classList.add(e);
547
+ addThumbClass: function(t, n) {
548
+ e.getThumbEl(n).classList.add(t);
547
549
  },
548
- removeThumbClass: function(e, n) {
549
- t.getThumbEl(n).classList.remove(e);
550
+ removeThumbClass: function(t, n) {
551
+ e.getThumbEl(n).classList.remove(t);
550
552
  },
551
- getAttribute: function(e) {
552
- return t.root.getAttribute(e);
553
+ getAttribute: function(t) {
554
+ return e.root.getAttribute(t);
553
555
  },
554
- getInputValue: function(e) {
555
- return t.getInput(e).value;
556
+ getInputValue: function(t) {
557
+ return e.getInput(t).value;
556
558
  },
557
- setInputValue: function(e, n) {
558
- t.getInput(n).value = e;
559
+ setInputValue: function(t, n) {
560
+ e.getInput(n).value = t;
559
561
  },
560
- getInputAttribute: function(e, n) {
561
- return t.getInput(n).getAttribute(e);
562
+ getInputAttribute: function(t, n) {
563
+ return e.getInput(n).getAttribute(t);
562
564
  },
563
- setInputAttribute: function(e, n, s) {
564
- t.getInput(s).setAttribute(e, n);
565
+ setInputAttribute: function(t, n, u) {
566
+ e.getInput(u).setAttribute(t, n);
565
567
  },
566
- removeInputAttribute: function(e, n) {
567
- t.getInput(n).removeAttribute(e);
568
+ removeInputAttribute: function(t, n) {
569
+ e.getInput(n).removeAttribute(t);
568
570
  },
569
- focusInput: function(e) {
570
- t.getInput(e).focus();
571
+ focusInput: function(t) {
572
+ e.getInput(t).focus();
571
573
  },
572
- isInputFocused: function(e) {
573
- return t.getInput(e) === document.activeElement;
574
+ isInputFocused: function(t) {
575
+ return e.getInput(t) === document.activeElement;
574
576
  },
575
- getThumbKnobWidth: function(e) {
576
- return t.getThumbEl(e).querySelector("." + o.THUMB_KNOB).getBoundingClientRect().width;
577
+ getThumbKnobWidth: function(t) {
578
+ return e.getThumbEl(t).querySelector("." + l.THUMB_KNOB).getBoundingClientRect().width;
577
579
  },
578
- getThumbBoundingClientRect: function(e) {
579
- return t.getThumbEl(e).getBoundingClientRect();
580
+ getThumbBoundingClientRect: function(t) {
581
+ return e.getThumbEl(t).getBoundingClientRect();
580
582
  },
581
583
  getBoundingClientRect: function() {
582
- return t.root.getBoundingClientRect();
584
+ return e.root.getBoundingClientRect();
583
585
  },
584
586
  isRTL: function() {
585
- return getComputedStyle(t.root).direction === "rtl";
587
+ return getComputedStyle(e.root).direction === "rtl";
586
588
  },
587
- setThumbStyleProperty: function(e, n, s) {
588
- t.getThumbEl(s).style.setProperty(e, n);
589
+ setThumbStyleProperty: function(t, n, u) {
590
+ e.getThumbEl(u).style.setProperty(t, n);
589
591
  },
590
- removeThumbStyleProperty: function(e, n) {
591
- t.getThumbEl(n).style.removeProperty(e);
592
+ removeThumbStyleProperty: function(t, n) {
593
+ e.getThumbEl(n).style.removeProperty(t);
592
594
  },
593
- setTrackActiveStyleProperty: function(e, n) {
594
- t.trackActive.style.setProperty(e, n);
595
+ setTrackActiveStyleProperty: function(t, n) {
596
+ e.trackActive.style.setProperty(t, n);
595
597
  },
596
- removeTrackActiveStyleProperty: function(e) {
597
- t.trackActive.style.removeProperty(e);
598
+ removeTrackActiveStyleProperty: function(t) {
599
+ e.trackActive.style.removeProperty(t);
598
600
  },
599
- setValueIndicatorText: function(e, n) {
600
- var s = t.getThumbEl(n).querySelector("." + o.VALUE_INDICATOR_TEXT);
601
- s.textContent = String(e);
601
+ setValueIndicatorText: function(t, n) {
602
+ var u = e.getThumbEl(n).querySelector("." + l.VALUE_INDICATOR_TEXT);
603
+ u.textContent = String(t);
602
604
  },
603
605
  getValueToAriaValueTextFn: function() {
604
- return t.valueToAriaValueTextFn;
606
+ return e.valueToAriaValueTextFn;
605
607
  },
606
- updateTickMarks: function(e) {
607
- var n = t.root.querySelector("." + o.TICK_MARKS_CONTAINER);
608
+ updateTickMarks: function(t) {
609
+ var n = e.root.querySelector("." + l.TICK_MARKS_CONTAINER);
608
610
  if (!n) {
609
- n = document.createElement("div"), n.classList.add(o.TICK_MARKS_CONTAINER);
610
- var s = t.root.querySelector("." + o.TRACK);
611
- s.appendChild(n);
611
+ n = document.createElement("div"), n.classList.add(l.TICK_MARKS_CONTAINER);
612
+ var u = e.root.querySelector("." + l.TRACK);
613
+ u.appendChild(n);
612
614
  }
613
- e.length !== n.children.length ? (n.innerHTML = "", t.addTickMarks(n, e)) : t.updateTickMarks(n, e);
615
+ t.length !== n.children.length ? (n.innerHTML = "", e.addTickMarks(n, t)) : e.updateTickMarks(n, t);
614
616
  },
615
- setPointerCapture: function(e) {
616
- t.root.setPointerCapture(e);
617
+ setPointerCapture: function(t) {
618
+ e.root.setPointerCapture(t);
617
619
  },
618
- emitChangeEvent: function(e, n) {
619
- t.emit(lt.CHANGE, { value: e, thumb: n });
620
+ emitChangeEvent: function(t, n) {
621
+ e.emit(Ue.CHANGE, { value: t, thumb: n });
620
622
  },
621
- emitInputEvent: function(e, n) {
622
- t.emit(lt.INPUT, { value: e, thumb: n });
623
+ emitInputEvent: function(t, n) {
624
+ e.emit(Ue.INPUT, { value: t, thumb: n });
623
625
  },
624
- emitDragStartEvent: function(e, n) {
625
- t.getRipple(n).activate();
626
+ emitDragStartEvent: function(t, n) {
627
+ e.getRipple(n).activate();
626
628
  },
627
- emitDragEndEvent: function(e, n) {
628
- t.getRipple(n).deactivate();
629
+ emitDragEndEvent: function(t, n) {
630
+ e.getRipple(n).deactivate();
629
631
  },
630
- registerEventHandler: function(e, n) {
631
- t.listen(e, n);
632
+ registerEventHandler: function(t, n) {
633
+ e.listen(t, n);
632
634
  },
633
- deregisterEventHandler: function(e, n) {
634
- t.unlisten(e, n);
635
+ deregisterEventHandler: function(t, n) {
636
+ e.unlisten(t, n);
635
637
  },
636
- registerThumbEventHandler: function(e, n, s) {
637
- t.getThumbEl(e).addEventListener(n, s);
638
+ registerThumbEventHandler: function(t, n, u) {
639
+ e.getThumbEl(t).addEventListener(n, u);
638
640
  },
639
- deregisterThumbEventHandler: function(e, n, s) {
640
- t.getThumbEl(e).removeEventListener(n, s);
641
+ deregisterThumbEventHandler: function(t, n, u) {
642
+ e.getThumbEl(t).removeEventListener(n, u);
641
643
  },
642
- registerInputEventHandler: function(e, n, s) {
643
- t.getInput(e).addEventListener(n, s);
644
+ registerInputEventHandler: function(t, n, u) {
645
+ e.getInput(t).addEventListener(n, u);
644
646
  },
645
- deregisterInputEventHandler: function(e, n, s) {
646
- t.getInput(e).removeEventListener(n, s);
647
+ deregisterInputEventHandler: function(t, n, u) {
648
+ e.getInput(t).removeEventListener(n, u);
647
649
  },
648
- registerBodyEventHandler: function(e, n) {
649
- document.body.addEventListener(e, n);
650
+ registerBodyEventHandler: function(t, n) {
651
+ document.body.addEventListener(t, n);
650
652
  },
651
- deregisterBodyEventHandler: function(e, n) {
652
- document.body.removeEventListener(e, n);
653
+ deregisterBodyEventHandler: function(t, n) {
654
+ document.body.removeEventListener(t, n);
653
655
  },
654
- registerWindowEventHandler: function(e, n) {
655
- window.addEventListener(e, n);
656
+ registerWindowEventHandler: function(t, n) {
657
+ window.addEventListener(t, n);
656
658
  },
657
- deregisterWindowEventHandler: function(e, n) {
658
- window.removeEventListener(e, n);
659
+ deregisterWindowEventHandler: function(t, n) {
660
+ window.removeEventListener(t, n);
659
661
  }
660
662
  // tslint:enable:object-literal-sort-keys
661
663
  };
662
- return new Rt(r);
663
- }, a.prototype.initialize = function(t) {
664
- var r = t === void 0 ? {} : t, e = r.skipInitialUIUpdate;
665
- this.inputs = [].slice.call(this.root.querySelectorAll("." + o.INPUT)), this.thumbs = [].slice.call(this.root.querySelectorAll("." + o.THUMB)), this.trackActive = this.root.querySelector("." + o.TRACK_ACTIVE), this.ripples = this.createRipples(), e && (this.skipInitialUIUpdate = !0);
664
+ return new ct(r);
665
+ }, a.prototype.initialize = function(e) {
666
+ var r = e === void 0 ? {} : e, t = r.skipInitialUIUpdate;
667
+ this.inputs = [].slice.call(this.root.querySelectorAll("." + l.INPUT)), this.thumbs = [].slice.call(this.root.querySelectorAll("." + l.THUMB)), this.trackActive = this.root.querySelector("." + l.TRACK_ACTIVE), this.ripples = this.createRipples(), t && (this.skipInitialUIUpdate = !0);
666
668
  }, a.prototype.initialSyncWithDOM = function() {
667
669
  this.foundation.layout({ skipUpdateUI: this.skipInitialUIUpdate });
668
670
  }, a.prototype.layout = function() {
669
671
  this.foundation.layout();
670
672
  }, a.prototype.getValueStart = function() {
671
673
  return this.foundation.getValueStart();
672
- }, a.prototype.setValueStart = function(t) {
673
- this.foundation.setValueStart(t);
674
+ }, a.prototype.setValueStart = function(e) {
675
+ this.foundation.setValueStart(e);
674
676
  }, a.prototype.getValue = function() {
675
677
  return this.foundation.getValue();
676
- }, a.prototype.setValue = function(t) {
677
- this.foundation.setValue(t);
678
+ }, a.prototype.setValue = function(e) {
679
+ this.foundation.setValue(e);
678
680
  }, a.prototype.getDisabled = function() {
679
681
  return this.foundation.getDisabled();
680
- }, a.prototype.setDisabled = function(t) {
681
- this.foundation.setDisabled(t);
682
- }, a.prototype.setValueToAriaValueTextFn = function(t) {
683
- this.valueToAriaValueTextFn = t;
684
- }, a.prototype.getThumbEl = function(t) {
685
- return t === i.END ? this.thumbs[this.thumbs.length - 1] : this.thumbs[0];
686
- }, a.prototype.getInput = function(t) {
687
- return t === i.END ? this.inputs[this.inputs.length - 1] : this.inputs[0];
688
- }, a.prototype.getRipple = function(t) {
689
- return t === i.END ? this.ripples[this.ripples.length - 1] : this.ripples[0];
690
- }, a.prototype.addTickMarks = function(t, r) {
691
- for (var e = document.createDocumentFragment(), n = 0; n < r.length; n++) {
692
- var s = document.createElement("div"), h = r[n] === L.ACTIVE ? o.TICK_MARK_ACTIVE : o.TICK_MARK_INACTIVE;
693
- s.classList.add(h), e.appendChild(s);
682
+ }, a.prototype.setDisabled = function(e) {
683
+ this.foundation.setDisabled(e);
684
+ }, a.prototype.setValueToAriaValueTextFn = function(e) {
685
+ this.valueToAriaValueTextFn = e;
686
+ }, a.prototype.getThumbEl = function(e) {
687
+ return e === i.END ? this.thumbs[this.thumbs.length - 1] : this.thumbs[0];
688
+ }, a.prototype.getInput = function(e) {
689
+ return e === i.END ? this.inputs[this.inputs.length - 1] : this.inputs[0];
690
+ }, a.prototype.getRipple = function(e) {
691
+ return e === i.END ? this.ripples[this.ripples.length - 1] : this.ripples[0];
692
+ }, a.prototype.addTickMarks = function(e, r) {
693
+ for (var t = document.createDocumentFragment(), n = 0; n < r.length; n++) {
694
+ var u = document.createElement("div"), c = r[n] === w.ACTIVE ? l.TICK_MARK_ACTIVE : l.TICK_MARK_INACTIVE;
695
+ u.classList.add(c), t.appendChild(u);
694
696
  }
695
- t.appendChild(e);
696
- }, a.prototype.updateTickMarks = function(t, r) {
697
- for (var e = Array.from(t.children), n = 0; n < e.length; n++)
698
- r[n] === L.ACTIVE ? (e[n].classList.add(o.TICK_MARK_ACTIVE), e[n].classList.remove(o.TICK_MARK_INACTIVE)) : (e[n].classList.add(o.TICK_MARK_INACTIVE), e[n].classList.remove(o.TICK_MARK_ACTIVE));
697
+ e.appendChild(t);
698
+ }, a.prototype.updateTickMarks = function(e, r) {
699
+ for (var t = Array.from(e.children), n = 0; n < t.length; n++)
700
+ r[n] === w.ACTIVE ? (t[n].classList.add(l.TICK_MARK_ACTIVE), t[n].classList.remove(l.TICK_MARK_INACTIVE)) : (t[n].classList.add(l.TICK_MARK_INACTIVE), t[n].classList.remove(l.TICK_MARK_ACTIVE));
699
701
  }, a.prototype.createRipples = function() {
700
- for (var t = [], r = [].slice.call(this.root.querySelectorAll("." + o.THUMB)), e = function(h) {
701
- var d = r[h], m = n.inputs[h], y = K(K({}, st.createAdapter(n)), { addClass: function(T) {
702
- d.classList.add(T);
702
+ for (var e = [], r = [].slice.call(this.root.querySelectorAll("." + l.THUMB)), t = function(c) {
703
+ var v = r[c], f = n.inputs[c], R = j(j({}, Le.createAdapter(n)), { addClass: function(b) {
704
+ v.classList.add(b);
703
705
  }, computeBoundingRect: function() {
704
- return d.getBoundingClientRect();
705
- }, deregisterInteractionHandler: function(T, f) {
706
- m.removeEventListener(T, f);
706
+ return v.getBoundingClientRect();
707
+ }, deregisterInteractionHandler: function(b, T) {
708
+ f.removeEventListener(b, T);
707
709
  }, isSurfaceActive: function() {
708
- return It(m, ":active");
710
+ return st(f, ":active");
709
711
  }, isUnbounded: function() {
710
712
  return !0;
711
- }, registerInteractionHandler: function(T, f) {
712
- m.addEventListener(T, f, bt());
713
- }, removeClass: function(T) {
714
- d.classList.remove(T);
715
- }, updateCssVariable: function(T, f) {
716
- d.style.setProperty(T, f);
717
- } }), D = new st(d, new St(y));
718
- D.unbounded = !0, t.push(D);
719
- }, n = this, s = 0; s < r.length; s++)
720
- e(s);
721
- return t;
713
+ }, registerInteractionHandler: function(b, T) {
714
+ f.addEventListener(b, T, at());
715
+ }, removeClass: function(b) {
716
+ v.classList.remove(b);
717
+ }, updateCssVariable: function(b, T) {
718
+ v.style.setProperty(b, T);
719
+ } }), N = new Le(v, new ut(R));
720
+ N.unbounded = !0, e.push(N);
721
+ }, n = this, u = 0; u < r.length; u++)
722
+ t(u);
723
+ return e;
722
724
  }, a;
723
- }(Et)
724
- );
725
- const Mt = {
725
+ }(it)
726
+ ), vt = {
726
727
  /**
727
728
  * Accessibility label for assistive technologies.
728
729
  *
729
730
  * Defaults to **null**.
730
731
  */
731
- ariaLabel: l.string,
732
+ ariaLabel: d.string,
732
733
  /**
733
734
  * Id of the component being labeled for assistive technologies.
734
735
  *
735
736
  * Defaults to **null**.
736
737
  */
737
- ariaLabelledBy: l.string,
738
+ ariaLabelledBy: d.string,
738
739
  /**
739
740
  * Set this input attribute to a string that makes the slider value understandable, e.g. 'Monday'.
740
741
  *
741
742
  * Defaults to **null**.
742
743
  */
743
- ariaValuetext: l.string,
744
+ ariaValuetext: d.string,
744
745
  /**
745
746
  * The css class name to be passed through to the component markup.
746
747
  *
747
748
  * Defaults to **undefined**.
748
749
  */
749
- className: l.string,
750
+ className: d.string,
750
751
  /**
751
752
  * Prevent user interaction.
752
753
  *
753
754
  * Defaults to **false**.
754
755
  */
755
- disabled: l.bool,
756
+ disabled: d.bool,
756
757
  /**
757
758
  * Discrete sliders display a numeric value label when the slider control is focused, which allows a user to input an exact value.
758
759
  *
759
760
  * Defaults to **false**.
760
761
  */
761
- discrete: l.bool,
762
+ discrete: d.bool,
762
763
  /**
763
764
  * Display tracker markers with discrete slider only.
764
765
  *
765
766
  * Defaults to **false**.
766
767
  */
767
- displayMarkers: l.bool,
768
+ displayMarkers: d.bool,
768
769
  /**
769
770
  * ID for html input. May be overwritten.
770
771
  *
771
772
  * Defaults to **null**.
772
773
  */
773
- id: l.string,
774
+ id: d.string,
774
775
  /**
775
776
  * Custom content to be displayed in the leading block container. See leadingBlockType for types supported. If a string is sent for a icon an Element Icon will be rendered
776
777
  *
777
778
  * Defaults to **null**.
778
779
  */
779
- leadingBlock: l.node,
780
+ leadingBlock: d.node,
780
781
  /**
781
782
  * Props to be added to the leading block node. For example, if an input is chosen, this is where you should send the input value and you can send in variant: 'filled' to use a filled textfield.
782
783
  *
783
784
  * Defaults to **null**.
784
785
  */
785
- leadingBlockProps: l.object,
786
+ leadingBlockProps: d.object,
786
787
  /**
787
788
  * Styles to be added to leading block div.
788
789
  *
789
790
  * Defaults to **null**.
790
791
  */
791
- leadingBlockStyle: l.object,
792
+ leadingBlockStyle: d.object,
792
793
  /**
793
794
  * The type of media that will render in the leading block.
794
795
  *
795
796
  * Defaults to **null**.
796
797
  */
797
- leadingBlockType: l.oneOf(["", "icon", "input", "text"]),
798
+ leadingBlockType: d.oneOf(["", "icon", "input", "text"]),
798
799
  /**
799
800
  * The maximum value a slider can have.
800
801
  *
801
802
  * Defaults to **100**.
802
803
  */
803
- max: l.number,
804
+ max: d.number,
804
805
  /**
805
806
  * The minimum value a slider can have.
806
807
  *
807
808
  * Defaults to **0**.
808
809
  */
809
- min: l.number,
810
+ min: d.number,
810
811
  /**
811
812
  * When using the range slider, this is the value of the minimum knob of the slider. The maximum value will use the standard value prop.
812
813
  *
813
814
  * Defaults to **'0'**.
814
815
  */
815
- minValue: l.oneOfType([l.number, l.string, l.object]),
816
+ minValue: d.oneOfType([d.number, d.string, d.object]),
816
817
  /**
817
818
  * Fired when the slider is blurred after the value of slider changes.
818
819
  *
819
820
  * Defaults to **null**.
820
821
  */
821
- onChange: l.func,
822
+ onChange: d.func,
822
823
  /**
823
824
  * Fired whenever the value of slider changes.
824
825
  *
825
826
  * Defaults to **null**.
826
827
  */
827
- onInput: l.func,
828
+ onInput: d.func,
828
829
  /**
829
830
  * Allows the slider to have two knobs to select a range value.
830
831
  *
831
832
  * Defaults to **false**.
832
833
  */
833
- range: l.bool,
834
+ range: d.bool,
834
835
  /**
835
836
  * Specifies the increments at which a slider value can be set. Can be any positive number.
836
837
  *
837
838
  * Defaults to **1**.
838
839
  */
839
- step: l.number,
840
+ step: d.number,
840
841
  /**
841
842
  * Slider color theme.
842
843
  *
843
844
  * Defaults to **'primary'**.
844
845
  */
845
- themeColor: l.oneOf(["primary", "secondary"]),
846
+ themeColor: d.oneOf(["primary", "secondary"]),
846
847
  /**
847
848
  * Custom content to be displayed in the trailing block container. See trailingBlockType for types supported. If a string is sent for icon an Element Icon will be rendered.
848
849
  *
849
850
  * Defaults to **null**.
850
851
  */
851
- trailingBlock: l.node,
852
+ trailingBlock: d.node,
852
853
  /**
853
854
  * Props to be added to the trailing block node. For example, if an input is chosen, this is where you should send the input value and you can send in variant: 'filled' to use a filled textfield.
854
855
  *
855
856
  * Defaults to **null**.
856
857
  */
857
- trailingBlockProps: l.object,
858
+ trailingBlockProps: d.object,
858
859
  /**
859
860
  * Styles to be added to trailing block div.
860
861
  *
861
862
  * Defaults to **null**.
862
863
  */
863
- trailingBlockStyle: l.object,
864
+ trailingBlockStyle: d.object,
864
865
  /**
865
866
  * The type of media that will render in the trailing block.
866
867
  *
867
868
  * Defaults to **null**.
868
869
  */
869
- trailingBlockType: l.oneOf(["", "icon", "input", "text"]),
870
+ trailingBlockType: d.oneOf(["", "icon", "input", "text"]),
870
871
  /**
871
872
  * The current value of the slider. If the slider is a range slider, it will be the max value of the slider.
872
873
  *
873
- * Defaults to **null**.
874
+ * Defaults to **'0'**.
874
875
  */
875
- value: l.oneOfType([l.number, l.string, l.object])
876
- }, Pt = {
876
+ value: d.oneOfType([d.number, d.string, d.object])
877
+ }, ft = {
877
878
  ariaLabel: null,
878
879
  ariaLabelledBy: null,
879
880
  ariaValuetext: null,
@@ -889,6 +890,8 @@ const Mt = {
889
890
  max: 100,
890
891
  min: 0,
891
892
  minValue: "0",
893
+ onChange: null,
894
+ onInput: null,
892
895
  range: !1,
893
896
  step: 1,
894
897
  themeColor: "primary",
@@ -896,273 +899,275 @@ const Mt = {
896
899
  trailingBlockProps: null,
897
900
  trailingBlockStyle: null,
898
901
  trailingBlockType: null,
899
- value: null
900
- }, X = /* @__PURE__ */ ft((v, a) => {
901
- var t, r;
902
- const {
903
- ariaLabel: e,
904
- ariaLabelledBy: n,
905
- ariaValuetext: s,
906
- className: h,
907
- disabled: d,
908
- discrete: m,
909
- displayMarkers: y,
910
- id: D,
911
- leadingBlock: T,
912
- leadingBlockProps: f,
913
- leadingBlockStyle: V,
914
- leadingBlockType: _,
915
- max: I,
916
- min: S,
917
- minValue: P,
918
- onChange: q,
919
- onInput: z,
920
- range: b,
921
- step: R,
922
- themeColor: U,
923
- trailingBlock: N,
924
- trailingBlockProps: A,
925
- trailingBlockStyle: ht,
926
- trailingBlockType: C,
927
- value: M,
928
- ...pt
929
- } = v, x = tt(), p = tt();
930
- et(a, () => x.current, []), et(a, () => ({
931
- ...x.current,
932
- layout: () => {
933
- p.current && p.current.foundation.layout();
934
- }
935
- }), [p]);
936
- const w = B((u) => b ? u >= S && u <= M : u >= S && u <= I, [S, M, I, b]), H = B((u) => b ? u <= I && u >= P : u <= I && u >= S, [I, P, S, b]);
937
- k(() => (p.current = Nt.attachTo(x.current), () => {
938
- var u;
939
- (u = p.current) === null || u === void 0 || u.destroy();
940
- }), [p]), k(() => {
941
- p.current.foundation.min = S, p.current.foundation.max = I, p.current.foundation.step = R, p.current.foundation.layout();
942
- }, [p, m, y, I, S, R]), k(() => {
943
- p.current.foundation.layout();
944
- }, [p, _, C]);
945
- const j = B((u) => {
946
- q && q(u.detail, u);
947
- }, [q]), J = B((u) => {
948
- const E = u.target.value;
949
- f.onChange && f.onChange({
950
- value: E && parseInt(E, 10),
951
- thumb: 1
902
+ value: "0"
903
+ }, Tt = ["ariaLabel", "ariaLabelledBy", "ariaValuetext", "className", "disabled", "discrete", "displayMarkers", "id", "leadingBlock", "leadingBlockProps", "leadingBlockStyle", "leadingBlockType", "max", "min", "minValue", "onChange", "onInput", "range", "step", "themeColor", "trailingBlock", "trailingBlockProps", "trailingBlockStyle", "trailingBlockType", "value"];
904
+ function He(s, a) {
905
+ var e = Je(s);
906
+ if (_e) {
907
+ var r = _e(s);
908
+ a && (r = tt(r).call(r, function(t) {
909
+ return Oe(s, t).enumerable;
910
+ })), e.push.apply(e, r);
911
+ }
912
+ return e;
913
+ }
914
+ function xe(s) {
915
+ for (var a = 1; a < arguments.length; a++) {
916
+ var e, r, t = arguments[a] != null ? arguments[a] : {};
917
+ a % 2 ? Ae(e = He(Object(t), !0)).call(e, function(n) {
918
+ Qe(s, n, t[n]);
919
+ }) : Ce ? Ye(s, Ce(t)) : Ae(r = He(Object(t))).call(r, function(n) {
920
+ et(s, n, Oe(t, n));
921
+ });
922
+ }
923
+ return s;
924
+ }
925
+ var m = ft, te = /* @__PURE__ */ rt(function(s, a) {
926
+ var e, r, t = s.ariaLabel, n = t === void 0 ? m.ariaLabel : t, u = s.ariaLabelledBy, c = u === void 0 ? m.ariaLabelledBy : u, v = s.ariaValuetext, f = v === void 0 ? m.ariaValuetext : v, R = s.className, N = R === void 0 ? m.className : R, b = s.disabled, T = b === void 0 ? m.disabled : b, O = s.discrete, k = O === void 0 ? m.discrete : O, re = s.displayMarkers, z = re === void 0 ? m.displayMarkers : re, ne = s.id, Ke = ne === void 0 ? m.id : ne, ie = s.leadingBlock, M = ie === void 0 ? m.leadingBlock : ie, ae = s.leadingBlockProps, A = ae === void 0 ? m.leadingBlockProps : ae, se = s.leadingBlockStyle, $e = se === void 0 ? m.leadingBlockStyle : se, ue = s.leadingBlockType, U = ue === void 0 ? m.leadingBlockType : ue, oe = s.max, S = oe === void 0 ? m.max : oe, le = s.min, y = le === void 0 ? m.min : le, de = s.minValue, L = de === void 0 ? m.minValue : de, ce = s.onChange, G = ce === void 0 ? m.onChange : ce, he = s.onInput, Z = he === void 0 ? m.onInput : he, pe = s.range, I = pe === void 0 ? m.range : pe, me = s.step, D = me === void 0 ? m.step : me, ve = s.themeColor, H = ve === void 0 ? m.themeColor : ve, fe = s.trailingBlock, B = fe === void 0 ? m.trailingBlock : fe, Te = s.trailingBlockProps, C = Te === void 0 ? m.trailingBlockProps : Te, ge = s.trailingBlockStyle, We = ge === void 0 ? m.trailingBlockStyle : ge, Ee = s.trailingBlockType, _ = Ee === void 0 ? m.trailingBlockType : Ee, be = s.value, P = be === void 0 ? m.value : be, Xe = Ze(s, Tt), $ = De(), h = De();
927
+ Ne(a, function() {
928
+ return $.current;
929
+ }, []), Ne(a, function() {
930
+ return xe(xe({}, $.current), {}, {
931
+ layout: function() {
932
+ h.current && h.current.foundation.layout();
933
+ }
952
934
  });
953
- }, [f]), Q = B((u) => {
954
- const E = u.target.value;
935
+ }, [h]);
936
+ var F = x(function(o) {
937
+ return I ? o >= y && o <= P : o >= y && o <= S;
938
+ }, [y, P, S, I]), K = x(function(o) {
939
+ return I ? o <= S && o >= L : o <= S && o >= y;
940
+ }, [S, L, y, I]);
941
+ V(function() {
942
+ return h.current = mt.attachTo($.current), function() {
943
+ var o;
944
+ (o = h.current) === null || o === void 0 || o.destroy();
945
+ };
946
+ }, [h]), V(function() {
947
+ h.current.foundation.min = y, h.current.foundation.max = S, h.current.foundation.step = D, h.current.foundation.layout();
948
+ }, [h, k, z, S, y, D]), V(function() {
949
+ h.current.foundation.layout();
950
+ }, [h, U, _]);
951
+ var J = x(function(o) {
952
+ G && G(o.detail, o);
953
+ }, [G]), Ie = x(function(o) {
954
+ var E = o.target.value;
955
955
  A.onChange && A.onChange({
956
- value: E && parseInt(E, 10),
956
+ value: E && Re(E, 10),
957
+ thumb: 1
958
+ });
959
+ }, [A]), Se = x(function(o) {
960
+ var E = o.target.value;
961
+ C.onChange && C.onChange({
962
+ value: E && Re(E, 10),
957
963
  thumb: 2
958
964
  });
959
- }, [A]);
960
- k(() => {
961
- var u;
962
- return (u = p.current) === null || u === void 0 || u.listen("MDCSlider:change", j), () => {
965
+ }, [C]);
966
+ V(function() {
967
+ var o;
968
+ return (o = h.current) === null || o === void 0 || o.listen("MDCSlider:change", J), function() {
963
969
  var E;
964
- (E = p.current) === null || E === void 0 || E.unlisten("MDCSlider:change", j);
970
+ (E = h.current) === null || E === void 0 || E.unlisten("MDCSlider:change", J);
965
971
  };
966
- }, [p, j]);
967
- const G = B((u) => {
968
- z && z(u.detail, u);
969
- }, [z]);
970
- k(() => {
971
- var u;
972
- return (u = p.current) === null || u === void 0 || u.listen("MDCSlider:input", G), () => {
972
+ }, [h, J]);
973
+ var Q = x(function(o) {
974
+ Z && Z(o.detail, o);
975
+ }, [Z]);
976
+ V(function() {
977
+ var o;
978
+ return (o = h.current) === null || o === void 0 || o.listen("MDCSlider:input", Q), function() {
973
979
  var E;
974
- (E = p.current) === null || E === void 0 || E.unlisten("MDCSlider:input", G);
980
+ (E = h.current) === null || E === void 0 || E.unlisten("MDCSlider:input", Q);
975
981
  };
976
- }, [p, G]), k(() => {
977
- if (b) {
978
- if (H(M)) {
982
+ }, [h, Q]), V(function() {
983
+ if (I) {
984
+ if (K(P)) {
979
985
  var E;
980
- (E = p.current) === null || E === void 0 || E.setValue(M);
986
+ (E = h.current) === null || E === void 0 || E.setValue(P);
981
987
  }
982
- if (w(P)) {
983
- var $;
984
- ($ = p.current) === null || $ === void 0 || $.setValueStart(P);
988
+ if (F(L)) {
989
+ var Y;
990
+ (Y = h.current) === null || Y === void 0 || Y.setValueStart(L);
985
991
  }
986
992
  } else {
987
- var u;
988
- (u = p.current) === null || u === void 0 || u.setValue(M);
993
+ var o;
994
+ (o = h.current) === null || o === void 0 || o.setValue(P);
989
995
  }
990
- }, [p, M, P, b, w, H]), k(() => {
991
- var u;
992
- (u = p.current) === null || u === void 0 || u.setDisabled(d);
993
- }, [p, d]);
994
- const ct = rt(() => {
995
- const u = b ? M - 1 : I;
996
- switch (_) {
996
+ }, [h, P, L, I, F, K]), V(function() {
997
+ var o;
998
+ (o = h.current) === null || o === void 0 || o.setDisabled(T);
999
+ }, [h, T]);
1000
+ var je = ke(function() {
1001
+ var o = I ? P - 1 : S;
1002
+ switch (U) {
997
1003
  case "icon":
998
- return T && typeof T == "string" ? /* @__PURE__ */ c.createElement(nt, O({
999
- icon: T
1000
- }, f)) : T;
1004
+ return M && typeof M == "string" ? /* @__PURE__ */ p.createElement(Be, W({
1005
+ icon: M
1006
+ }, A)) : M;
1001
1007
  case "input":
1002
- return T ? (b || C !== "input") && at(T, {
1003
- min: S,
1004
- max: u,
1005
- step: R,
1008
+ return M ? (I || _ !== "input") && Me(M, {
1009
+ min: y,
1010
+ max: o,
1011
+ step: D,
1006
1012
  type: "number",
1007
- valid: w(f?.value)
1008
- }) : (b || C !== "input") && /* @__PURE__ */ c.createElement(it, O({
1013
+ valid: F(A?.value)
1014
+ }) : (I || _ !== "input") && /* @__PURE__ */ p.createElement(Pe, W({
1009
1015
  variant: "outlined"
1010
- }, f, {
1016
+ }, A, {
1011
1017
  dense: !0,
1012
1018
  type: "number",
1013
- min: S,
1014
- max: u,
1015
- step: R,
1016
- onChange: J,
1017
- valid: w(f?.value)
1019
+ min: y,
1020
+ max: o,
1021
+ step: D,
1022
+ onChange: Ie,
1023
+ valid: F(A?.value)
1018
1024
  }));
1019
1025
  default:
1020
- return T;
1026
+ return M;
1021
1027
  }
1022
- }, [_, T, C, S, M, R, f, b, J, w, I]), mt = rt(() => {
1023
- const u = b ? P : S;
1024
- switch (C) {
1028
+ }, [U, M, _, y, P, D, A, I, Ie, F, S]), qe = ke(function() {
1029
+ var o = I ? L : y;
1030
+ switch (_) {
1025
1031
  case "icon":
1026
- return C && typeof N == "string" ? /* @__PURE__ */ c.createElement(nt, {
1027
- icon: N
1028
- }) : N;
1032
+ return _ && typeof B == "string" ? /* @__PURE__ */ p.createElement(Be, {
1033
+ icon: B
1034
+ }) : B;
1029
1035
  case "input":
1030
- return N ? C && at(N, {
1031
- min: u,
1032
- max: I,
1033
- step: R,
1036
+ return B ? _ && Me(B, {
1037
+ min: o,
1038
+ max: S,
1039
+ step: D,
1034
1040
  type: "number",
1035
- valid: H(A?.value)
1036
- }) : /* @__PURE__ */ c.createElement(it, O({
1041
+ valid: K(C?.value)
1042
+ }) : /* @__PURE__ */ p.createElement(Pe, W({
1037
1043
  variant: "outlined"
1038
- }, A, {
1044
+ }, C, {
1039
1045
  dense: !0,
1040
1046
  type: "number",
1041
- min: u,
1042
- max: I,
1043
- step: R,
1044
- onChange: Q,
1045
- valid: H(A?.value)
1047
+ min: o,
1048
+ max: S,
1049
+ step: D,
1050
+ onChange: Se,
1051
+ valid: K(C?.value)
1046
1052
  }));
1047
1053
  default:
1048
- return N;
1054
+ return B;
1049
1055
  }
1050
- }, [C, N, A, P, S, I, R, Q, b, H]), vt = _ !== "input" || (b || C !== "input") && _ === "input", Tt = C || N !== null || N !== void 0;
1051
- return /* @__PURE__ */ c.createElement("div", {
1052
- className: F("lmnt", "lmnt-slider-container", d && "lmnt-slider--disabled")
1053
- }, vt && /* @__PURE__ */ c.createElement("div", {
1054
- className: F("lmnt-slider-info", "lmnt-slider-info-leading", _ === "input" && "lmnt-slider-info-with-input", U === "primary" && "lmnt-slider-info--primary", U === "secondary" && "lmnt-slider-info--secondary"),
1055
- style: V
1056
- }, ct), /* @__PURE__ */ c.createElement("div", {
1056
+ }, [_, B, C, L, y, S, D, Se, I, K]), ze = U !== "input" || (I || _ !== "input") && U === "input", Ge = _ || B !== null || B !== void 0;
1057
+ return /* @__PURE__ */ p.createElement("div", {
1058
+ className: X("lmnt", "lmnt-slider-container", T && "lmnt-slider--disabled")
1059
+ }, ze && /* @__PURE__ */ p.createElement("div", {
1060
+ className: X("lmnt-slider-info", "lmnt-slider-info-leading", U === "input" && "lmnt-slider-info-with-input", H === "primary" && "lmnt-slider-info--primary", H === "secondary" && "lmnt-slider-info--secondary"),
1061
+ style: $e
1062
+ }, je), /* @__PURE__ */ p.createElement("div", {
1057
1063
  className: "lmnt lmnt-slider-inner"
1058
- }, /* @__PURE__ */ c.createElement("div", O({
1059
- className: F("lmnt", "mdc-slider", b && "mdc-slider--range", m && "mdc-slider--discrete", m && y && "mdc-slider--tick-marks", U === "primary" && "mdc-slider--primary", U === "secondary" && "mdc-slider--secondary", h),
1060
- id: D,
1061
- ref: x
1062
- }, pt), b && /* @__PURE__ */ c.createElement("input", {
1064
+ }, /* @__PURE__ */ p.createElement("div", W({
1065
+ className: X("lmnt", "mdc-slider", I && "mdc-slider--range", k && "mdc-slider--discrete", k && z && "mdc-slider--tick-marks", H === "primary" && "mdc-slider--primary", H === "secondary" && "mdc-slider--secondary", N),
1066
+ id: Ke,
1067
+ ref: $
1068
+ }, Xe), I && /* @__PURE__ */ p.createElement("input", {
1063
1069
  className: "mdc-slider__input",
1064
1070
  name: "rangeStart",
1065
1071
  type: "range",
1066
- step: R,
1067
- min: S,
1068
- max: I,
1069
- defaultValue: P,
1070
- "aria-label": e,
1071
- "aria-labelledby": n,
1072
- "aria-valuetext": s,
1073
- "aria-disabled": d,
1074
- disabled: d,
1075
- tabIndex: d ? -1 : "0",
1072
+ step: D,
1073
+ min: y,
1074
+ max: S,
1075
+ defaultValue: L,
1076
+ "aria-label": n,
1077
+ "aria-labelledby": c,
1078
+ "aria-valuetext": f,
1079
+ "aria-disabled": T,
1080
+ disabled: T,
1081
+ tabIndex: T ? -1 : "0",
1076
1082
  readOnly: !0
1077
- }), /* @__PURE__ */ c.createElement("input", {
1083
+ }), /* @__PURE__ */ p.createElement("input", {
1078
1084
  className: "mdc-slider__input",
1079
1085
  type: "range",
1080
1086
  name: "rangeEnd",
1081
- step: R,
1082
- min: S,
1083
- max: I,
1084
- defaultValue: M,
1085
- "aria-label": e,
1086
- "aria-labelledby": n,
1087
- "aria-valuetext": s,
1088
- "aria-disabled": d,
1089
- disabled: d,
1090
- tabIndex: d ? -1 : "0",
1087
+ step: D,
1088
+ min: y,
1089
+ max: S,
1090
+ defaultValue: P,
1091
+ "aria-label": n,
1092
+ "aria-labelledby": c,
1093
+ "aria-valuetext": f,
1094
+ "aria-disabled": T,
1095
+ disabled: T,
1096
+ tabIndex: T ? -1 : "0",
1091
1097
  readOnly: !0
1092
- }), /* @__PURE__ */ c.createElement("div", {
1098
+ }), /* @__PURE__ */ p.createElement("div", {
1093
1099
  className: "mdc-slider__track"
1094
- }, /* @__PURE__ */ c.createElement("div", {
1100
+ }, /* @__PURE__ */ p.createElement("div", {
1095
1101
  className: "mdc-slider__track--inactive"
1096
- }), /* @__PURE__ */ c.createElement("div", {
1102
+ }), /* @__PURE__ */ p.createElement("div", {
1097
1103
  className: "mdc-slider__track--active"
1098
- }, /* @__PURE__ */ c.createElement("div", {
1104
+ }, /* @__PURE__ */ p.createElement("div", {
1099
1105
  className: "mdc-slider__track--active_fill"
1100
- })), m && y && /* @__PURE__ */ c.createElement("div", {
1106
+ })), k && z && /* @__PURE__ */ p.createElement("div", {
1101
1107
  className: "mdc-slider__tick-marks"
1102
- })), b && /* @__PURE__ */ c.createElement("div", {
1108
+ })), I && /* @__PURE__ */ p.createElement("div", {
1103
1109
  className: "mdc-slider__thumb"
1104
- }, m && /* @__PURE__ */ c.createElement("div", {
1110
+ }, k && /* @__PURE__ */ p.createElement("div", {
1105
1111
  className: "mdc-slider__value-indicator-container",
1106
1112
  "aria-hidden": "true"
1107
- }, /* @__PURE__ */ c.createElement("div", {
1113
+ }, /* @__PURE__ */ p.createElement("div", {
1108
1114
  className: "mdc-slider__value-indicator"
1109
- }, /* @__PURE__ */ c.createElement("span", {
1115
+ }, /* @__PURE__ */ p.createElement("span", {
1110
1116
  className: "mdc-slider__value-indicator-text"
1111
- }, (t = p.current) === null || t === void 0 ? void 0 : t.getValueStart()))), /* @__PURE__ */ c.createElement("div", {
1117
+ }, (e = h.current) === null || e === void 0 ? void 0 : e.getValueStart()))), /* @__PURE__ */ p.createElement("div", {
1112
1118
  className: "mdc-slider__thumb-knob"
1113
- })), /* @__PURE__ */ c.createElement("div", {
1119
+ })), /* @__PURE__ */ p.createElement("div", {
1114
1120
  className: "mdc-slider__thumb"
1115
- }, m && /* @__PURE__ */ c.createElement("div", {
1121
+ }, k && /* @__PURE__ */ p.createElement("div", {
1116
1122
  className: "mdc-slider__value-indicator-container",
1117
1123
  "aria-hidden": "true"
1118
- }, /* @__PURE__ */ c.createElement("div", {
1124
+ }, /* @__PURE__ */ p.createElement("div", {
1119
1125
  className: "mdc-slider__value-indicator"
1120
- }, /* @__PURE__ */ c.createElement("span", {
1126
+ }, /* @__PURE__ */ p.createElement("span", {
1121
1127
  className: "mdc-slider__value-indicator-text"
1122
- }, (r = p.current) === null || r === void 0 ? void 0 : r.getValue()))), /* @__PURE__ */ c.createElement("div", {
1128
+ }, (r = h.current) === null || r === void 0 ? void 0 : r.getValue()))), /* @__PURE__ */ p.createElement("div", {
1123
1129
  className: "mdc-slider__thumb-knob"
1124
- })))), Tt && /* @__PURE__ */ c.createElement("div", {
1125
- className: F("lmnt-slider-info", "lmnt-slider-info-trailing", C === "input" && "lmnt-slider-info-with-input", U === "primary" && "lmnt-slider-info--primary", U === "secondary" && "lmnt-slider-info--secondary"),
1126
- style: ht
1127
- }, mt));
1130
+ })))), Ge && /* @__PURE__ */ p.createElement("div", {
1131
+ className: X("lmnt-slider-info", "lmnt-slider-info-trailing", _ === "input" && "lmnt-slider-info-with-input", H === "primary" && "lmnt-slider-info--primary", H === "secondary" && "lmnt-slider-info--secondary"),
1132
+ style: We
1133
+ }, qe));
1128
1134
  });
1129
- X.displayName = "Slider";
1130
- X.propTypes = Mt;
1131
- X.defaultProps = Pt;
1132
- const Xt = ({
1133
- propertyName: v,
1135
+ te.displayName = "Slider";
1136
+ te.propTypes = vt;
1137
+ const Pt = ({
1138
+ propertyName: s,
1134
1139
  label: a,
1135
- minValue: t,
1140
+ minValue: e,
1136
1141
  maxValue: r,
1137
- step: e,
1142
+ step: t,
1138
1143
  disabled: n,
1139
- ...s
1144
+ ...u
1140
1145
  }) => {
1141
- const { control: h } = At();
1142
- return /* @__PURE__ */ Y(
1143
- Ct,
1146
+ const { control: c } = lt();
1147
+ return /* @__PURE__ */ ye(
1148
+ dt,
1144
1149
  {
1145
- name: v,
1146
- control: h,
1147
- render: ({ field: d }) => /* @__PURE__ */ Y(
1148
- X,
1150
+ name: s,
1151
+ control: c,
1152
+ render: ({ field: v }) => /* @__PURE__ */ ye(
1153
+ te,
1149
1154
  {
1150
1155
  "data-testid": "slider",
1151
- ...d,
1152
- onChange: (m) => {
1153
- d.onChange(m.value);
1156
+ ...v,
1157
+ onChange: (f) => {
1158
+ v.onChange(f.value);
1154
1159
  },
1155
1160
  label: a,
1156
- min: t,
1161
+ min: e,
1157
1162
  max: r,
1158
- step: e,
1163
+ step: t,
1159
1164
  disabled: n,
1160
- ...s
1165
+ ...u
1161
1166
  }
1162
1167
  )
1163
1168
  }
1164
1169
  );
1165
1170
  };
1166
1171
  export {
1167
- Xt as FormSlider
1172
+ Pt as FormSlider
1168
1173
  };