@jetbrains/ring-ui-built 7.0.78 → 7.0.80

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 (60) hide show
  1. package/components/_helpers/theme.js +90 -94
  2. package/components/alert/alert.js +0 -13
  3. package/components/alert-service/alert-service.js +0 -12
  4. package/components/auth/auth-core.js +1 -13
  5. package/components/auth/auth.js +1 -13
  6. package/components/auth/down-notification.js +0 -12
  7. package/components/auth/iframe-flow.js +1 -0
  8. package/components/auth/storage.js +1 -13
  9. package/components/auth-dialog/auth-dialog.js +1 -0
  10. package/components/auth-dialog-service/auth-dialog-service.js +1 -0
  11. package/components/avatar/fallback-avatar.js +78 -79
  12. package/components/avatar-stack/avatar-stack.js +1 -0
  13. package/components/clipboard/clipboard.js +1 -13
  14. package/components/collapse/collapse-content.js +2 -2
  15. package/components/collapse/collapse-control.js +34 -50
  16. package/components/collapse/collapse.js +2 -2
  17. package/components/confirm/confirm.js +1 -0
  18. package/components/confirm-service/confirm-service.js +1 -0
  19. package/components/date-picker/date-picker.js +1 -0
  20. package/components/date-picker/months.js +86 -100
  21. package/components/dialog/dialog.js +1 -0
  22. package/components/dropdown-menu/dropdown-menu.js +154 -238
  23. package/components/editable-heading/editable-heading.js +11 -11
  24. package/components/error-bubble/error-bubble.js +1 -0
  25. package/components/global/theme.d.ts +1 -0
  26. package/components/global/theme.js +0 -17
  27. package/components/global/use-event-callback.js +3 -2
  28. package/components/header/header.js +17 -17
  29. package/components/header/profile.js +1 -0
  30. package/components/header/smart-profile.js +13 -13
  31. package/components/list/list.js +9 -4
  32. package/components/login-dialog/login-dialog.js +1 -0
  33. package/components/login-dialog/service.js +1 -0
  34. package/components/old-browsers-message/old-browsers-message.d.ts +3 -0
  35. package/components/old-browsers-message/old-browsers-message.js +3 -0
  36. package/components/old-browsers-message/white-list.js +2 -2
  37. package/components/pager/pager.js +1 -0
  38. package/components/popup/popup.js +49 -43
  39. package/components/popup-menu/popup-menu.js +1 -0
  40. package/components/query-assist/query-assist.js +1 -0
  41. package/components/select/select-popup.js +1 -0
  42. package/components/select/select.js +2 -1
  43. package/components/slider/slider.js +289 -366
  44. package/components/storage/storage-local.js +1 -13
  45. package/components/storage/storage.js +1 -13
  46. package/components/style.css +1 -1
  47. package/components/tabs/collapsible-more.js +12 -12
  48. package/components/tabs/collapsible-tabs.js +191 -205
  49. package/components/tabs/dumb-tabs.js +1 -0
  50. package/components/tabs/smart-tabs.js +1 -0
  51. package/components/tabs/tabs.js +1 -0
  52. package/components/tags-input/tags-input.js +1 -0
  53. package/components/upload/upload.js +31 -8
  54. package/components/user-agreement/service.js +11 -11
  55. package/components/user-agreement/user-agreement.js +1 -0
  56. package/components/user-card/card.js +5 -5
  57. package/components/user-card/smart-user-card-tooltip.js +1 -1
  58. package/components/user-card/tooltip.js +1 -1
  59. package/components/user-card/user-card.js +8 -8
  60. package/package.json +2 -2
@@ -5,6 +5,7 @@ import { isArray } from '../global/typescript-utils.js';
5
5
  import Shortcuts from '../shortcuts/shortcuts.js';
6
6
  import getUID from '../global/get-uid.js';
7
7
  import { toRange, HUNDRED, calculateMarks, toPercent, validateValue, calculateValue, adjustValues } from './slider.utils.js';
8
+ import useEventCallback from '../global/use-event-callback.js';
8
9
  import { jsx, jsxs } from 'react/jsx-runtime';
9
10
  import '../shortcuts/core.js';
10
11
  import 'combokeys';
@@ -14,12 +15,12 @@ import 'sniffr';
14
15
  var styles = {"slider":"ring-slider-slider","disabled":"ring-slider-disabled","marked":"ring-slider-marked","rail":"ring-slider-rail","rounded":"ring-slider-rounded","track":"ring-slider-track","thumb":"ring-slider-thumb ring-global-resetButton","dragged":"ring-slider-dragged","tick":"ring-slider-tick","active":"ring-slider-active","markValue":"ring-slider-markValue","tag":"ring-slider-tag"};
15
16
 
16
17
  const Slider = t0 => {
17
- const $ = c(154);
18
- if ($[0] !== "7c00c25355ca34476232faa4b0d729160f0b7ed5ed726089246ce3288d3c8d5e") {
19
- for (let $i = 0; $i < 154; $i += 1) {
18
+ const $ = c(122);
19
+ if ($[0] !== "8964b5418275bd38d0d46628f0c5c416a0eb127a555095f594f9e18fa28ba85a") {
20
+ for (let $i = 0; $i < 122; $i += 1) {
20
21
  $[$i] = Symbol.for("react.memo_cache_sentinel");
21
22
  }
22
- $[0] = "7c00c25355ca34476232faa4b0d729160f0b7ed5ed726089246ce3288d3c8d5e";
23
+ $[0] = "8964b5418275bd38d0d46628f0c5c416a0eb127a555095f594f9e18fa28ba85a";
23
24
  }
24
25
  const {
25
26
  defaultValue,
@@ -41,136 +42,80 @@ const Slider = t0 => {
41
42
  const ref = useRef(null);
42
43
  const previouslyDragged = useRef(false);
43
44
  const [values, setValues] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : min);
44
- const t4 = value !== null && value !== void 0 ? value : values;
45
- let t5;
46
- if ($[1] !== max || $[2] !== min || $[3] !== t4) {
47
- t5 = toRange(t4, min, max);
48
- $[1] = max;
49
- $[2] = min;
50
- $[3] = t4;
51
- $[4] = t5;
52
- } else {
53
- t5 = $[4];
54
- }
55
- const validValues = t5;
45
+ const validValues = toRange(value !== null && value !== void 0 ? value : values, min, max);
56
46
  const validStep = step < 0 ? 0 : step;
57
- const t6 = defaultValue !== null && defaultValue !== void 0 ? defaultValue : value;
58
- let t7;
59
- if ($[5] !== t6) {
60
- t7 = isArray(t6);
61
- $[5] = t6;
62
- $[6] = t7;
47
+ const t4 = defaultValue !== null && defaultValue !== void 0 ? defaultValue : value;
48
+ let t5;
49
+ if ($[1] !== t4) {
50
+ t5 = isArray(t4);
51
+ $[1] = t4;
52
+ $[2] = t5;
63
53
  } else {
64
- t7 = $[6];
54
+ t5 = $[2];
65
55
  }
66
- const isRange = t7;
56
+ const isRange = t5;
67
57
  const [isDragging, setIsDragging] = useState(false);
68
58
  const [draggedIndex, setDraggedIndex] = useState(-1);
69
- let t8;
70
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
71
- t8 = getUID("ring-slider-");
72
- $[7] = t8;
59
+ let t6;
60
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
61
+ t6 = getUID("ring-slider-");
62
+ $[3] = t6;
73
63
  } else {
74
- t8 = $[7];
64
+ t6 = $[3];
75
65
  }
76
- const [shortcutsScope] = useState(t8);
77
- let t9;
66
+ const [shortcutsScope] = useState(t6);
67
+ let t7;
78
68
  bb0: {
79
69
  if (isArray(marks)) {
80
- let t10;
81
- if ($[8] !== marks || $[9] !== max || $[10] !== min) {
82
- let t11;
83
- if ($[12] !== max || $[13] !== min) {
84
- t11 = mark => ({
85
- ...mark,
86
- value: validateValue(mark.value, min, max)
87
- });
88
- $[12] = max;
89
- $[13] = min;
90
- $[14] = t11;
91
- } else {
92
- t11 = $[14];
93
- }
94
- t10 = marks.map(t11);
95
- $[8] = marks;
96
- $[9] = max;
97
- $[10] = min;
98
- $[11] = t10;
70
+ let t8;
71
+ if ($[4] !== max || $[5] !== min) {
72
+ t8 = mark => ({
73
+ ...mark,
74
+ value: validateValue(mark.value, min, max)
75
+ });
76
+ $[4] = max;
77
+ $[5] = min;
78
+ $[6] = t8;
99
79
  } else {
100
- t10 = $[11];
80
+ t8 = $[6];
101
81
  }
102
- t9 = t10;
82
+ t7 = marks.map(t8);
103
83
  break bb0;
104
84
  }
105
85
  if (marks) {
106
- let t10;
107
- if ($[15] !== max || $[16] !== min || $[17] !== validStep) {
108
- t10 = calculateMarks(min, max, validStep);
109
- $[15] = max;
110
- $[16] = min;
111
- $[17] = validStep;
112
- $[18] = t10;
113
- } else {
114
- t10 = $[18];
115
- }
116
- t9 = t10;
86
+ t7 = calculateMarks(min, max, validStep);
117
87
  break bb0;
118
88
  }
119
- let t10;
120
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
121
- t10 = [];
122
- $[19] = t10;
123
- } else {
124
- t10 = $[19];
125
- }
126
- t9 = t10;
89
+ t7 = [];
127
90
  }
128
- const markValues = t9;
129
- let t10;
91
+ const markValues = t7;
92
+ let t8;
130
93
  bb1: {
131
94
  if (showTicks) {
132
- let t11;
133
- if ($[20] !== markValues || $[21] !== max || $[22] !== min || $[23] !== validStep) {
134
- t11 = markValues.length ? markValues : calculateMarks(min, max, validStep);
135
- $[20] = markValues;
136
- $[21] = max;
137
- $[22] = min;
138
- $[23] = validStep;
139
- $[24] = t11;
140
- } else {
141
- t11 = $[24];
142
- }
143
- t10 = t11;
95
+ t8 = markValues.length ? markValues : calculateMarks(min, max, validStep);
144
96
  break bb1;
145
97
  }
146
- let t11;
147
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
148
- t11 = [];
149
- $[25] = t11;
150
- } else {
151
- t11 = $[25];
152
- }
153
- t10 = t11;
98
+ t8 = [];
154
99
  }
155
- const tickMarks = t10;
100
+ const tickMarks = t8;
156
101
  const trackStart = toPercent(isRange ? Math.min(...validValues) : min, min, max);
157
102
  const trackLength = toPercent(Math.max(...validValues), min, max) - trackStart;
158
- let t11;
159
- if ($[26] !== isRange || $[27] !== onChange) {
160
- t11 = nextValues => {
103
+ let t9;
104
+ if ($[7] !== isRange || $[8] !== onChange) {
105
+ t9 = nextValues => {
161
106
  setValues(nextValues);
162
107
  onChange?.(isRange ? nextValues : nextValues[0]);
163
108
  };
164
- $[26] = isRange;
165
- $[27] = onChange;
166
- $[28] = t11;
109
+ $[7] = isRange;
110
+ $[8] = onChange;
111
+ $[9] = t9;
167
112
  } else {
168
- t11 = $[28];
113
+ t9 = $[9];
169
114
  }
170
- const handleValueChange = t11;
171
- let t12;
172
- if ($[29] !== handleValueChange || $[30] !== validValues) {
173
- t12 = (nextValue, index) => {
115
+ const handleValueChange = t9;
116
+ let t10;
117
+ if ($[10] !== handleValueChange || $[11] !== validValues) {
118
+ t10 = (nextValue, index) => {
174
119
  const nextValues_0 = [...validValues];
175
120
  nextValues_0[index] = nextValue;
176
121
  if (nextValues_0[0] > nextValues_0[1]) {
@@ -181,101 +126,100 @@ const Slider = t0 => {
181
126
  }
182
127
  handleValueChange(nextValues_0);
183
128
  };
184
- $[29] = handleValueChange;
185
- $[30] = validValues;
186
- $[31] = t12;
129
+ $[10] = handleValueChange;
130
+ $[11] = validValues;
131
+ $[12] = t10;
187
132
  } else {
188
- t12 = $[31];
133
+ t10 = $[12];
189
134
  }
190
- const setValueAndSwap = t12;
135
+ const setValueAndSwap = t10;
191
136
  const getIndex = _temp;
192
- let map;
193
- if ($[32] !== disabled || $[33] !== max || $[34] !== min || $[35] !== setValueAndSwap || $[36] !== validStep || $[37] !== validValues) {
194
- map = {};
137
+ let shortcutsMap;
138
+ if ($[13] !== disabled || $[14] !== max || $[15] !== min || $[16] !== setValueAndSwap || $[17] !== validStep || $[18] !== validValues) {
139
+ shortcutsMap = {};
195
140
  if (!disabled) {
196
- let t13;
197
- if ($[39] !== min || $[40] !== setValueAndSwap || $[41] !== validStep || $[42] !== validValues) {
198
- t13 = t14 => {
141
+ let t11;
142
+ if ($[20] !== min || $[21] !== setValueAndSwap || $[22] !== validStep || $[23] !== validValues) {
143
+ t11 = t12 => {
199
144
  const {
200
145
  target: target_0
201
- } = t14;
146
+ } = t12;
202
147
  const index_0 = getIndex(target_0);
203
148
  setValueAndSwap(Math.max(min, validValues[index_0] - validStep), index_0);
204
149
  };
205
- $[39] = min;
206
- $[40] = setValueAndSwap;
207
- $[41] = validStep;
208
- $[42] = validValues;
209
- $[43] = t13;
150
+ $[20] = min;
151
+ $[21] = setValueAndSwap;
152
+ $[22] = validStep;
153
+ $[23] = validValues;
154
+ $[24] = t11;
210
155
  } else {
211
- t13 = $[43];
156
+ t11 = $[24];
212
157
  }
213
- map.left = map.down = t13;
214
- let t14;
215
- if ($[44] !== max || $[45] !== setValueAndSwap || $[46] !== validStep || $[47] !== validValues) {
216
- t14 = t15 => {
158
+ shortcutsMap.left = shortcutsMap.down = t11;
159
+ let t12;
160
+ if ($[25] !== max || $[26] !== setValueAndSwap || $[27] !== validStep || $[28] !== validValues) {
161
+ t12 = t13 => {
217
162
  const {
218
163
  target: target_1
219
- } = t15;
164
+ } = t13;
220
165
  const index_1 = getIndex(target_1);
221
166
  setValueAndSwap(Math.min(max, validValues[index_1] + validStep), index_1);
222
167
  };
223
- $[44] = max;
224
- $[45] = setValueAndSwap;
225
- $[46] = validStep;
226
- $[47] = validValues;
227
- $[48] = t14;
168
+ $[25] = max;
169
+ $[26] = setValueAndSwap;
170
+ $[27] = validStep;
171
+ $[28] = validValues;
172
+ $[29] = t12;
228
173
  } else {
229
- t14 = $[48];
174
+ t12 = $[29];
230
175
  }
231
- map.right = map.up = t14;
232
- let t15;
233
- if ($[49] !== min || $[50] !== setValueAndSwap) {
234
- t15 = t16 => {
176
+ shortcutsMap.right = shortcutsMap.up = t12;
177
+ let t13;
178
+ if ($[30] !== min || $[31] !== setValueAndSwap) {
179
+ t13 = t14 => {
235
180
  const {
236
181
  target: target_2
237
- } = t16;
182
+ } = t14;
238
183
  const index_2 = getIndex(target_2);
239
184
  setValueAndSwap(min, index_2);
240
185
  };
241
- $[49] = min;
242
- $[50] = setValueAndSwap;
243
- $[51] = t15;
186
+ $[30] = min;
187
+ $[31] = setValueAndSwap;
188
+ $[32] = t13;
244
189
  } else {
245
- t15 = $[51];
190
+ t13 = $[32];
246
191
  }
247
- map.home = t15;
248
- let t16;
249
- if ($[52] !== max || $[53] !== setValueAndSwap) {
250
- t16 = t17 => {
192
+ shortcutsMap.home = t13;
193
+ let t14;
194
+ if ($[33] !== max || $[34] !== setValueAndSwap) {
195
+ t14 = t15 => {
251
196
  const {
252
197
  target: target_3
253
- } = t17;
198
+ } = t15;
254
199
  const index_3 = getIndex(target_3);
255
200
  setValueAndSwap(max, index_3);
256
201
  };
257
- $[52] = max;
258
- $[53] = setValueAndSwap;
259
- $[54] = t16;
202
+ $[33] = max;
203
+ $[34] = setValueAndSwap;
204
+ $[35] = t14;
260
205
  } else {
261
- t16 = $[54];
206
+ t14 = $[35];
262
207
  }
263
- map.end = t16;
208
+ shortcutsMap.end = t14;
264
209
  }
265
- $[32] = disabled;
266
- $[33] = max;
267
- $[34] = min;
268
- $[35] = setValueAndSwap;
269
- $[36] = validStep;
270
- $[37] = validValues;
271
- $[38] = map;
210
+ $[13] = disabled;
211
+ $[14] = max;
212
+ $[15] = min;
213
+ $[16] = setValueAndSwap;
214
+ $[17] = validStep;
215
+ $[18] = validValues;
216
+ $[19] = shortcutsMap;
272
217
  } else {
273
- map = $[38];
218
+ shortcutsMap = $[19];
274
219
  }
275
- const shortcutsMap = map;
276
- let t13;
277
- if ($[55] !== disabled || $[56] !== isRange || $[57] !== max || $[58] !== min || $[59] !== validStep || $[60] !== validValues[0] || $[61] !== validValues[1]) {
278
- t13 = e => {
220
+ let t11;
221
+ if ($[36] !== disabled || $[37] !== isRange || $[38] !== max || $[39] !== min || $[40] !== validStep || $[41] !== validValues) {
222
+ t11 = e => {
279
223
  e.stopPropagation();
280
224
  if (disabled) {
281
225
  return;
@@ -291,24 +235,23 @@ const Slider = t0 => {
291
235
  setIsDragging(true);
292
236
  previouslyDragged.current = false;
293
237
  };
294
- $[55] = disabled;
295
- $[56] = isRange;
296
- $[57] = max;
297
- $[58] = min;
298
- $[59] = validStep;
299
- $[60] = validValues[0];
300
- $[61] = validValues[1];
301
- $[62] = t13;
238
+ $[36] = disabled;
239
+ $[37] = isRange;
240
+ $[38] = max;
241
+ $[39] = min;
242
+ $[40] = validStep;
243
+ $[41] = validValues;
244
+ $[42] = t11;
302
245
  } else {
303
- t13 = $[62];
246
+ t11 = $[42];
304
247
  }
305
- const handleMouseDown = t13;
306
- let t14;
307
- if ($[63] !== draggedIndex || $[64] !== handleValueChange || $[65] !== max || $[66] !== min || $[67] !== validStep || $[68] !== validValues) {
308
- t14 = t15 => {
248
+ const handleMouseDown = t11;
249
+ let t12;
250
+ if ($[43] !== draggedIndex || $[44] !== handleValueChange || $[45] !== max || $[46] !== min || $[47] !== validStep || $[48] !== validValues) {
251
+ t12 = t13 => {
309
252
  const {
310
253
  pageX
311
- } = t15;
254
+ } = t13;
312
255
  const nextValues_1 = adjustValues(validValues, ref, draggedIndex, pageX, max, min, validStep);
313
256
  if (nextValues_1[0] > nextValues_1[1]) {
314
257
  nextValues_1.reverse();
@@ -318,23 +261,23 @@ const Slider = t0 => {
318
261
  setIsDragging(false);
319
262
  previouslyDragged.current = true;
320
263
  };
321
- $[63] = draggedIndex;
322
- $[64] = handleValueChange;
323
- $[65] = max;
324
- $[66] = min;
325
- $[67] = validStep;
326
- $[68] = validValues;
327
- $[69] = t14;
264
+ $[43] = draggedIndex;
265
+ $[44] = handleValueChange;
266
+ $[45] = max;
267
+ $[46] = min;
268
+ $[47] = validStep;
269
+ $[48] = validValues;
270
+ $[49] = t12;
328
271
  } else {
329
- t14 = $[69];
272
+ t12 = $[49];
330
273
  }
331
- const handleMouseUp = t14;
332
- let t15;
333
- if ($[70] !== draggedIndex || $[71] !== handleValueChange || $[72] !== max || $[73] !== min || $[74] !== validStep || $[75] !== validValues) {
334
- t15 = t16 => {
274
+ const handleMouseUp = useEventCallback(t12);
275
+ let t13;
276
+ if ($[50] !== draggedIndex || $[51] !== handleValueChange || $[52] !== max || $[53] !== min || $[54] !== validStep || $[55] !== validValues) {
277
+ t13 = t14 => {
335
278
  const {
336
279
  pageX: pageX_0
337
- } = t16;
280
+ } = t14;
338
281
  const nextValues_2 = adjustValues(validValues, ref, draggedIndex, pageX_0, max, min, validStep);
339
282
  if (nextValues_2[0] > nextValues_2[1]) {
340
283
  nextValues_2.reverse();
@@ -342,21 +285,21 @@ const Slider = t0 => {
342
285
  }
343
286
  handleValueChange(nextValues_2);
344
287
  };
345
- $[70] = draggedIndex;
346
- $[71] = handleValueChange;
347
- $[72] = max;
348
- $[73] = min;
349
- $[74] = validStep;
350
- $[75] = validValues;
351
- $[76] = t15;
288
+ $[50] = draggedIndex;
289
+ $[51] = handleValueChange;
290
+ $[52] = max;
291
+ $[53] = min;
292
+ $[54] = validStep;
293
+ $[55] = validValues;
294
+ $[56] = t13;
352
295
  } else {
353
- t15 = $[76];
296
+ t13 = $[56];
354
297
  }
355
- const handleMouseMove = t15;
356
- let t16;
357
- let t17;
358
- if ($[77] !== disabled || $[78] !== handleMouseMove || $[79] !== handleMouseUp || $[80] !== isDragging) {
359
- t16 = () => {
298
+ const handleMouseMove = useEventCallback(t13);
299
+ let t14;
300
+ let t15;
301
+ if ($[57] !== disabled || $[58] !== handleMouseMove || $[59] !== handleMouseUp || $[60] !== isDragging) {
302
+ t14 = () => {
360
303
  if (disabled) {
361
304
  return;
362
305
  }
@@ -374,110 +317,112 @@ const Slider = t0 => {
374
317
  window.removeEventListener("mouseup", handleMouseUp);
375
318
  };
376
319
  };
377
- t17 = [isDragging, handleMouseMove, handleMouseUp, disabled];
378
- $[77] = disabled;
379
- $[78] = handleMouseMove;
380
- $[79] = handleMouseUp;
381
- $[80] = isDragging;
382
- $[81] = t16;
383
- $[82] = t17;
320
+ t15 = [isDragging, disabled, handleMouseMove, handleMouseUp];
321
+ $[57] = disabled;
322
+ $[58] = handleMouseMove;
323
+ $[59] = handleMouseUp;
324
+ $[60] = isDragging;
325
+ $[61] = t14;
326
+ $[62] = t15;
384
327
  } else {
385
- t16 = $[81];
386
- t17 = $[82];
328
+ t14 = $[61];
329
+ t15 = $[62];
387
330
  }
388
- useEffect(t16, t17);
389
- const t18 = !!marks || showTag;
390
- let t19;
391
- if ($[83] !== className || $[84] !== disabled || $[85] !== t18) {
392
- t19 = classNames(styles.slider, className, {
331
+ useEffect(t14, t15);
332
+ const t16 = "presentation";
333
+ const t17 = !!marks || showTag;
334
+ let t18;
335
+ if ($[63] !== className || $[64] !== disabled || $[65] !== t17) {
336
+ t18 = classNames(styles.slider, className, {
393
337
  [styles.disabled]: disabled,
394
- [styles.marked]: t18
338
+ [styles.marked]: t17
395
339
  });
396
- $[83] = className;
397
- $[84] = disabled;
398
- $[85] = t18;
399
- $[86] = t19;
340
+ $[63] = className;
341
+ $[64] = disabled;
342
+ $[65] = t17;
343
+ $[66] = t18;
400
344
  } else {
401
- t19 = $[86];
345
+ t18 = $[66];
402
346
  }
347
+ const t19 = -1;
403
348
  let t20;
404
- if ($[87] !== shortcutsMap || $[88] !== shortcutsScope) {
349
+ if ($[67] !== shortcutsMap || $[68] !== shortcutsScope) {
405
350
  t20 = /*#__PURE__*/jsx(Shortcuts, {
406
351
  map: shortcutsMap,
407
352
  scope: shortcutsScope
408
353
  });
409
- $[87] = shortcutsMap;
410
- $[88] = shortcutsScope;
411
- $[89] = t20;
354
+ $[67] = shortcutsMap;
355
+ $[68] = shortcutsScope;
356
+ $[69] = t20;
412
357
  } else {
413
- t20 = $[89];
358
+ t20 = $[69];
414
359
  }
415
360
  const t21 = !showTicks;
416
361
  let t22;
417
- if ($[90] !== disabled || $[91] !== t21) {
362
+ if ($[70] !== disabled || $[71] !== t21) {
418
363
  t22 = classNames(styles.rail, {
419
364
  [styles.rounded]: t21,
420
365
  [styles.disabled]: disabled
421
366
  });
422
- $[90] = disabled;
423
- $[91] = t21;
424
- $[92] = t22;
367
+ $[70] = disabled;
368
+ $[71] = t21;
369
+ $[72] = t22;
425
370
  } else {
426
- t22 = $[92];
371
+ t22 = $[72];
427
372
  }
428
373
  let t23;
429
- if ($[93] !== t22) {
374
+ if ($[73] !== t22) {
430
375
  t23 = /*#__PURE__*/jsx("div", {
431
376
  className: t22
432
377
  });
433
- $[93] = t22;
434
- $[94] = t23;
378
+ $[73] = t22;
379
+ $[74] = t23;
435
380
  } else {
436
- t23 = $[94];
381
+ t23 = $[74];
437
382
  }
438
383
  const t24 = `${trackStart}%`;
439
384
  const t25 = `${trackLength}%`;
440
385
  let t26;
441
- if ($[95] !== t24 || $[96] !== t25) {
386
+ if ($[75] !== t24 || $[76] !== t25) {
442
387
  t26 = {
443
388
  left: t24,
444
389
  width: t25
445
390
  };
446
- $[95] = t24;
447
- $[96] = t25;
448
- $[97] = t26;
391
+ $[75] = t24;
392
+ $[76] = t25;
393
+ $[77] = t26;
449
394
  } else {
450
- t26 = $[97];
395
+ t26 = $[77];
451
396
  }
452
397
  const t27 = !showTicks;
453
398
  let t28;
454
- if ($[98] !== disabled || $[99] !== t27) {
399
+ if ($[78] !== disabled || $[79] !== t27) {
455
400
  t28 = classNames(styles.track, {
456
401
  [styles.rounded]: t27,
457
402
  [styles.disabled]: disabled
458
403
  });
459
- $[98] = disabled;
460
- $[99] = t27;
461
- $[100] = t28;
404
+ $[78] = disabled;
405
+ $[79] = t27;
406
+ $[80] = t28;
462
407
  } else {
463
- t28 = $[100];
408
+ t28 = $[80];
464
409
  }
465
410
  let t29;
466
- if ($[101] !== t26 || $[102] !== t28) {
411
+ if ($[81] !== t26 || $[82] !== t28) {
467
412
  t29 = /*#__PURE__*/jsx("div", {
468
413
  style: t26,
469
414
  className: t28
470
415
  });
471
- $[101] = t26;
472
- $[102] = t28;
473
- $[103] = t29;
416
+ $[81] = t26;
417
+ $[82] = t28;
418
+ $[83] = t29;
474
419
  } else {
475
- t29 = $[103];
420
+ t29 = $[83];
476
421
  }
477
422
  let t30;
478
- if ($[104] !== disabled || $[105] !== draggedIndex || $[106] !== handleMouseDown || $[107] !== isDragging || $[108] !== max || $[109] !== min || $[110] !== renderTag || $[111] !== showTag || $[112] !== validValues) {
423
+ if ($[84] !== disabled || $[85] !== draggedIndex || $[86] !== handleMouseDown || $[87] !== isDragging || $[88] !== max || $[89] !== min || $[90] !== renderTag || $[91] !== showTag || $[92] !== validValues) {
479
424
  let t31;
480
- if ($[114] !== disabled || $[115] !== draggedIndex || $[116] !== handleMouseDown || $[117] !== isDragging || $[118] !== max || $[119] !== min || $[120] !== renderTag || $[121] !== showTag) {
425
+ if ($[94] !== disabled || $[95] !== draggedIndex || $[96] !== handleMouseDown || $[97] !== isDragging || $[98] !== max || $[99] !== min || $[100] !== renderTag || $[101] !== showTag) {
481
426
  t31 = (numValue, index_5) => {
482
427
  const percent = toPercent(numValue, min, max);
483
428
  return /*#__PURE__*/jsxs(Fragment, {
@@ -509,131 +454,109 @@ const Slider = t0 => {
509
454
  })]
510
455
  }, index_5);
511
456
  };
512
- $[114] = disabled;
513
- $[115] = draggedIndex;
514
- $[116] = handleMouseDown;
515
- $[117] = isDragging;
516
- $[118] = max;
517
- $[119] = min;
518
- $[120] = renderTag;
519
- $[121] = showTag;
520
- $[122] = t31;
457
+ $[94] = disabled;
458
+ $[95] = draggedIndex;
459
+ $[96] = handleMouseDown;
460
+ $[97] = isDragging;
461
+ $[98] = max;
462
+ $[99] = min;
463
+ $[100] = renderTag;
464
+ $[101] = showTag;
465
+ $[102] = t31;
521
466
  } else {
522
- t31 = $[122];
467
+ t31 = $[102];
523
468
  }
524
469
  t30 = validValues.map(t31);
525
- $[104] = disabled;
526
- $[105] = draggedIndex;
527
- $[106] = handleMouseDown;
528
- $[107] = isDragging;
529
- $[108] = max;
530
- $[109] = min;
531
- $[110] = renderTag;
532
- $[111] = showTag;
533
- $[112] = validValues;
534
- $[113] = t30;
470
+ $[84] = disabled;
471
+ $[85] = draggedIndex;
472
+ $[86] = handleMouseDown;
473
+ $[87] = isDragging;
474
+ $[88] = max;
475
+ $[89] = min;
476
+ $[90] = renderTag;
477
+ $[91] = showTag;
478
+ $[92] = validValues;
479
+ $[93] = t30;
535
480
  } else {
536
- t30 = $[113];
481
+ t30 = $[93];
537
482
  }
538
483
  let t31;
539
- if ($[123] !== disabled || $[124] !== markValues || $[125] !== max || $[126] !== min) {
540
- let t32;
541
- if ($[128] !== disabled || $[129] !== max || $[130] !== min) {
542
- t32 = (t33, index_6) => {
543
- const {
544
- value: markValue,
545
- label
546
- } = t33;
547
- const percent_0 = toPercent(markValue, min, max);
548
- return /*#__PURE__*/jsx("div", {
549
- style: {
550
- left: `${percent_0}%`
551
- },
552
- className: classNames(styles.markValue, {
553
- [styles.disabled]: disabled
554
- }),
555
- children: label !== null && label !== void 0 ? label : markValue
556
- }, index_6);
557
- };
558
- $[128] = disabled;
559
- $[129] = max;
560
- $[130] = min;
561
- $[131] = t32;
562
- } else {
563
- t32 = $[131];
564
- }
565
- t31 = markValues.map(t32);
566
- $[123] = disabled;
567
- $[124] = markValues;
568
- $[125] = max;
569
- $[126] = min;
570
- $[127] = t31;
484
+ if ($[103] !== disabled || $[104] !== max || $[105] !== min) {
485
+ t31 = (t32, index_6) => {
486
+ const {
487
+ value: markValue,
488
+ label
489
+ } = t32;
490
+ const percent_0 = toPercent(markValue, min, max);
491
+ return /*#__PURE__*/jsx("div", {
492
+ style: {
493
+ left: `${percent_0}%`
494
+ },
495
+ className: classNames(styles.markValue, {
496
+ [styles.disabled]: disabled
497
+ }),
498
+ children: label !== null && label !== void 0 ? label : markValue
499
+ }, index_6);
500
+ };
501
+ $[103] = disabled;
502
+ $[104] = max;
503
+ $[105] = min;
504
+ $[106] = t31;
571
505
  } else {
572
- t31 = $[127];
506
+ t31 = $[106];
573
507
  }
574
- let t32;
575
- if ($[132] !== disabled || $[133] !== isRange || $[134] !== max || $[135] !== min || $[136] !== tickMarks || $[137] !== validValues) {
576
- let t33;
577
- if ($[139] !== disabled || $[140] !== isRange || $[141] !== max || $[142] !== min || $[143] !== validValues) {
578
- t33 = (t34, index_7) => {
579
- const {
580
- value: tickValue
581
- } = t34;
582
- const percent_1 = toPercent(tickValue, min, max);
583
- const isActive = isRange ? tickValue >= validValues[0] && tickValue <= validValues[validValues.length - 1] : tickValue <= validValues[0];
584
- return /*#__PURE__*/jsx("div", {
585
- className: classNames(styles.tick, {
586
- [styles.active]: isActive,
587
- [styles.disabled]: disabled
588
- }),
589
- style: {
590
- left: `${percent_1}%`
591
- }
592
- }, index_7);
593
- };
594
- $[139] = disabled;
595
- $[140] = isRange;
596
- $[141] = max;
597
- $[142] = min;
598
- $[143] = validValues;
599
- $[144] = t33;
600
- } else {
601
- t33 = $[144];
602
- }
603
- t32 = tickMarks.map(t33);
604
- $[132] = disabled;
605
- $[133] = isRange;
606
- $[134] = max;
607
- $[135] = min;
608
- $[136] = tickMarks;
609
- $[137] = validValues;
610
- $[138] = t32;
508
+ const t32 = markValues.map(t31);
509
+ let t33;
510
+ if ($[107] !== disabled || $[108] !== isRange || $[109] !== max || $[110] !== min || $[111] !== validValues) {
511
+ t33 = (t34, index_7) => {
512
+ const {
513
+ value: tickValue
514
+ } = t34;
515
+ const percent_1 = toPercent(tickValue, min, max);
516
+ const isActive = isRange ? tickValue >= validValues[0] && tickValue <= validValues[validValues.length - 1] : tickValue <= validValues[0];
517
+ return /*#__PURE__*/jsx("div", {
518
+ className: classNames(styles.tick, {
519
+ [styles.active]: isActive,
520
+ [styles.disabled]: disabled
521
+ }),
522
+ style: {
523
+ left: `${percent_1}%`
524
+ }
525
+ }, index_7);
526
+ };
527
+ $[107] = disabled;
528
+ $[108] = isRange;
529
+ $[109] = max;
530
+ $[110] = min;
531
+ $[111] = validValues;
532
+ $[112] = t33;
611
533
  } else {
612
- t32 = $[138];
534
+ t33 = $[112];
613
535
  }
614
- let t33;
615
- if ($[145] !== handleMouseDown || $[146] !== t19 || $[147] !== t20 || $[148] !== t23 || $[149] !== t29 || $[150] !== t30 || $[151] !== t31 || $[152] !== t32) {
616
- t33 = /*#__PURE__*/jsxs("div", {
536
+ const t34 = tickMarks.map(t33);
537
+ let t35;
538
+ if ($[113] !== handleMouseDown || $[114] !== t18 || $[115] !== t20 || $[116] !== t23 || $[117] !== t29 || $[118] !== t30 || $[119] !== t32 || $[120] !== t34) {
539
+ t35 = /*#__PURE__*/jsxs("div", {
617
540
  ref: ref,
618
- role: "presentation",
619
- className: t19,
620
- tabIndex: -1,
541
+ role: t16,
542
+ className: t18,
543
+ tabIndex: t19,
621
544
  onMouseDown: handleMouseDown,
622
- children: [t20, t23, t29, t30, t31, t32]
545
+ children: [t20, t23, t29, t30, t32, t34]
623
546
  });
624
- $[145] = handleMouseDown;
625
- $[146] = t19;
626
- $[147] = t20;
627
- $[148] = t23;
628
- $[149] = t29;
629
- $[150] = t30;
630
- $[151] = t31;
631
- $[152] = t32;
632
- $[153] = t33;
547
+ $[113] = handleMouseDown;
548
+ $[114] = t18;
549
+ $[115] = t20;
550
+ $[116] = t23;
551
+ $[117] = t29;
552
+ $[118] = t30;
553
+ $[119] = t32;
554
+ $[120] = t34;
555
+ $[121] = t35;
633
556
  } else {
634
- t33 = $[153];
557
+ t35 = $[121];
635
558
  }
636
- return t33;
559
+ return t35;
637
560
  };
638
561
  function _temp(target) {
639
562
  return Number(target?.getAttribute("data-index"));