@wandelbots/wandelbots-js-react-components 3.2.0-pr.feat-improve-exports.414.40b4b4e → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +2 -79
  2. package/dist/components/jogging/JoggingStore.d.ts +1 -1
  3. package/dist/index.cjs +155 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.js +30530 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +3 -24
  8. package/dist/3d.cjs.js +0 -2
  9. package/dist/3d.cjs.js.map +0 -1
  10. package/dist/3d.d.ts +0 -11
  11. package/dist/3d.d.ts.map +0 -1
  12. package/dist/3d.es.js +0 -16
  13. package/dist/3d.es.js.map +0 -1
  14. package/dist/PoseJointValues-C3bsJdfd.js +0 -5446
  15. package/dist/PoseJointValues-C3bsJdfd.js.map +0 -1
  16. package/dist/PoseJointValues-wLOjcYDe.cjs +0 -21
  17. package/dist/PoseJointValues-wLOjcYDe.cjs.map +0 -1
  18. package/dist/ProgramStateIndicator-CTT-CAcJ.js +0 -268
  19. package/dist/ProgramStateIndicator-CTT-CAcJ.js.map +0 -1
  20. package/dist/ProgramStateIndicator-DYKBcj1s.cjs +0 -2
  21. package/dist/ProgramStateIndicator-DYKBcj1s.cjs.map +0 -1
  22. package/dist/VelocitySlider-2Zme2MN7.cjs +0 -5
  23. package/dist/VelocitySlider-2Zme2MN7.cjs.map +0 -1
  24. package/dist/VelocitySlider-QSg_8eb1.js +0 -1906
  25. package/dist/VelocitySlider-QSg_8eb1.js.map +0 -1
  26. package/dist/core.cjs.js +0 -2
  27. package/dist/core.cjs.js.map +0 -1
  28. package/dist/core.d.ts +0 -23
  29. package/dist/core.d.ts.map +0 -1
  30. package/dist/core.es.js +0 -46
  31. package/dist/core.es.js.map +0 -1
  32. package/dist/createSvgIcon-BG4_bQuX.cjs +0 -56
  33. package/dist/createSvgIcon-BG4_bQuX.cjs.map +0 -1
  34. package/dist/createSvgIcon-D3GRPlVu.js +0 -3072
  35. package/dist/createSvgIcon-D3GRPlVu.js.map +0 -1
  36. package/dist/data.cjs.js +0 -2
  37. package/dist/data.cjs.js.map +0 -1
  38. package/dist/data.d.ts +0 -4
  39. package/dist/data.d.ts.map +0 -1
  40. package/dist/data.es.js +0 -7
  41. package/dist/data.es.js.map +0 -1
  42. package/dist/externalizeComponent-C12Qf79R.cjs +0 -24
  43. package/dist/externalizeComponent-C12Qf79R.cjs.map +0 -1
  44. package/dist/externalizeComponent-RpcZ_G17.js +0 -491
  45. package/dist/externalizeComponent-RpcZ_G17.js.map +0 -1
  46. package/dist/index-8UEqiXug.cjs +0 -7
  47. package/dist/index-8UEqiXug.cjs.map +0 -1
  48. package/dist/index-CQDi5W62.cjs +0 -2
  49. package/dist/index-CQDi5W62.cjs.map +0 -1
  50. package/dist/index-DSz82V23.js +0 -1801
  51. package/dist/index-DSz82V23.js.map +0 -1
  52. package/dist/index-DZubFUuo.js +0 -4909
  53. package/dist/index-DZubFUuo.js.map +0 -1
  54. package/dist/index-MyU3fVEK.cjs +0 -50
  55. package/dist/index-MyU3fVEK.cjs.map +0 -1
  56. package/dist/index-VURe0U2S.js +0 -9443
  57. package/dist/index-VURe0U2S.js.map +0 -1
  58. package/dist/index.cjs.js +0 -2
  59. package/dist/index.cjs.js.map +0 -1
  60. package/dist/index.es.js +0 -72
  61. package/dist/index.es.js.map +0 -1
  62. package/dist/interpolation-CVSmVNjc.cjs +0 -2
  63. package/dist/interpolation-CVSmVNjc.cjs.map +0 -1
  64. package/dist/interpolation-DjBX_Si-.js +0 -138
  65. package/dist/interpolation-DjBX_Si-.js.map +0 -1
  66. package/dist/jogging.cjs.js +0 -2
  67. package/dist/jogging.cjs.js.map +0 -1
  68. package/dist/jogging.d.ts +0 -9
  69. package/dist/jogging.d.ts.map +0 -1
  70. package/dist/jogging.es.js +0 -12
  71. package/dist/jogging.es.js.map +0 -1
  72. package/dist/manufacturerHomePositions-DHqcbFON.js +0 -979
  73. package/dist/manufacturerHomePositions-DHqcbFON.js.map +0 -1
  74. package/dist/manufacturerHomePositions-zd-CKEiQ.cjs +0 -2
  75. package/dist/manufacturerHomePositions-zd-CKEiQ.cjs.map +0 -1
  76. package/dist/theming-BO8z_Hpa.js +0 -2198
  77. package/dist/theming-BO8z_Hpa.js.map +0 -1
  78. package/dist/theming-D5DvGuxX.cjs +0 -4
  79. package/dist/theming-D5DvGuxX.cjs.map +0 -1
  80. package/dist/useThemeProps-P648Ox74.cjs +0 -2
  81. package/dist/useThemeProps-P648Ox74.cjs.map +0 -1
  82. package/dist/useThemeProps-jE_Qg6SI.js +0 -40
  83. package/dist/useThemeProps-jE_Qg6SI.js.map +0 -1
  84. package/src/3d.ts +0 -15
  85. package/src/core.ts +0 -23
  86. package/src/data.ts +0 -4
  87. package/src/jogging.ts +0 -9
@@ -1,1906 +0,0 @@
1
- import { Vector3 as Ze } from "three";
2
- import { j as y } from "./externalizeComponent-RpcZ_G17.js";
3
- import { useTheme as Pe, Stack as ge, CircularProgress as kt, capitalize as St, Typography as ut } from "@mui/material";
4
- import { lowerFirst as wt } from "lodash-es";
5
- import * as k from "react";
6
- import { useState as Lt, useEffect as Tt } from "react";
7
- import { A as Qe } from "./index-DSz82V23.js";
8
- import { observer as Ot } from "mobx-react-lite";
9
- import { useTranslation as Ct } from "react-i18next";
10
- import n from "prop-types";
11
- import { d as Q, u as ft, e as me, f as jt, g as Xe, o as Re, h as Et, i as Nt, j as At, s as H, k as W, l as Mt, m as ce, n as He, p as et, q as tt, t as dt } from "./createSvgIcon-D3GRPlVu.js";
12
- const Rt = /* @__PURE__ */ k.createContext();
13
- process.env.NODE_ENV !== "production" && (n.node, n.bool);
14
- const It = () => k.useContext(Rt) ?? !1;
15
- function Vt(e) {
16
- const {
17
- controlled: t,
18
- default: r,
19
- name: o,
20
- state: s = "value"
21
- } = e, {
22
- current: f
23
- } = k.useRef(t !== void 0), [b, d] = k.useState(r), u = f ? t : b;
24
- if (process.env.NODE_ENV !== "production") {
25
- k.useEffect(() => {
26
- f !== (t !== void 0) && console.error([`MUI: A component is changing the ${f ? "" : "un"}controlled ${s} state of ${o} to be ${f ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
27
- `));
28
- }, [s, o, t]);
29
- const {
30
- current: T
31
- } = k.useRef(r);
32
- k.useEffect(() => {
33
- !f && !Object.is(T, r) && console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
34
- `));
35
- }, [JSON.stringify(r)]);
36
- }
37
- const g = k.useCallback((T) => {
38
- f || d(T);
39
- }, []);
40
- return [u, g];
41
- }
42
- var $t = typeof global == "object" && global && global.Object === Object && global, zt = typeof self == "object" && self && self.Object === Object && self, Pt = $t || zt || Function("return this")(), $e = Pt.Symbol, pt = Object.prototype, Dt = pt.hasOwnProperty, Ut = pt.toString, be = $e ? $e.toStringTag : void 0;
43
- function Ft(e) {
44
- var t = Dt.call(e, be), r = e[be];
45
- try {
46
- e[be] = void 0;
47
- var o = !0;
48
- } catch {
49
- }
50
- var s = Ut.call(e);
51
- return o && (t ? e[be] = r : delete e[be]), s;
52
- }
53
- var _t = Object.prototype, qt = _t.toString;
54
- function Wt(e) {
55
- return qt.call(e);
56
- }
57
- var Yt = "[object Null]", Bt = "[object Undefined]", nt = $e ? $e.toStringTag : void 0;
58
- function Kt(e) {
59
- return e == null ? e === void 0 ? Bt : Yt : nt && nt in Object(e) ? Ft(e) : Wt(e);
60
- }
61
- function Xt(e) {
62
- return e != null && typeof e == "object";
63
- }
64
- function Dn(e, t, r) {
65
- if (t.length !== e.length)
66
- return !0;
67
- for (let o = 0; o < t.length; o++)
68
- if (
69
- // biome-ignore lint/style/noNonNullAssertion: legacy code
70
- Math.abs(t[o] - e[o]) > r
71
- )
72
- return !1;
73
- return !0;
74
- }
75
- function Jt(e, t, r) {
76
- if (e === void 0 && t || e && t === void 0 || (e == null ? void 0 : e.orientation) === void 0 || (t == null ? void 0 : t.orientation) === void 0 || (e == null ? void 0 : e.position) === void 0 || (t == null ? void 0 : t.position) === void 0)
77
- return !1;
78
- if (e === void 0 || t === void 0)
79
- return !0;
80
- let o = 0;
81
- return o += Math.abs(e.orientation[0] - t.orientation[0]), o += Math.abs(e.orientation[1] - t.orientation[1]), o += Math.abs(e.orientation[2] - t.orientation[2]), o += Math.abs(e.position[0] - t.position[0]), o += Math.abs(e.position[1] - t.position[1]), o += Math.abs(e.position[2] - t.position[2]), o <= r;
82
- }
83
- function Un(e, t, r) {
84
- return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && Jt(
85
- e.tcp_pose,
86
- t.tcp_pose,
87
- r
88
- );
89
- }
90
- function Fn(e, t) {
91
- const r = new Ze(
92
- t[0],
93
- t[1],
94
- t[2]
95
- ), o = new Ze(
96
- e[0],
97
- e[1],
98
- e[2]
99
- ), s = r.length(), f = r.normalize();
100
- let b = o.length(), d = o.normalize();
101
- d.dot(f) < 0 && (b = -b, d = d.multiplyScalar(-1));
102
- let u = b - s;
103
- return u -= 2 * Math.PI * Math.floor((u + Math.PI) / (2 * Math.PI)), b = s + u, [...d.multiplyScalar(b)];
104
- }
105
- function Gt(e) {
106
- try {
107
- return JSON.stringify(e);
108
- } catch {
109
- return;
110
- }
111
- }
112
- function _n(e, t) {
113
- throw new Error(t + ` ${JSON.stringify(e)}`);
114
- }
115
- function Zt(e) {
116
- var t, r, o, s;
117
- return e instanceof Qe && e.code === "ERR_NETWORK" ? "Failed to connect to the server. Please check your internet connection." : e instanceof Qe && e.response ? `${(t = e.response) == null ? void 0 : t.status} ${(r = e.response) == null ? void 0 : r.statusText} from ${(o = e.response) == null ? void 0 : o.config.url}: ${JSON.stringify((s = e.response) == null ? void 0 : s.data)}` : e instanceof Error ? e.message : `Unexpected error: ${Gt(e) || e}`;
118
- }
119
- const qn = (e) => {
120
- const t = e.softTimeout || 3e3, [r, o] = Lt(!1), s = Pe();
121
- return Tt(() => {
122
- const f = setTimeout(() => {
123
- o(!0);
124
- }, t);
125
- return () => clearTimeout(f);
126
- }), /* @__PURE__ */ y.jsx(
127
- ge,
128
- {
129
- width: "100%",
130
- height: "100%",
131
- alignItems: "center",
132
- justifyContent: "center",
133
- sx: { color: s.palette.text.primary },
134
- children: e.error ? /* @__PURE__ */ y.jsx(
135
- Qt,
136
- {
137
- loadingMessage: e.message,
138
- error: e.error
139
- }
140
- ) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
141
- /* @__PURE__ */ y.jsx(kt, { sx: { marginBottom: "24px" } }),
142
- !!e.message && /* @__PURE__ */ y.jsx("div", { children: e.message }),
143
- /* @__PURE__ */ y.jsx(
144
- ge,
145
- {
146
- sx: {
147
- visibility: r ? "visible" : "hidden",
148
- marginTop: "1rem",
149
- color: s.palette.text.secondary
150
- },
151
- children: "This is taking longer than expected..."
152
- }
153
- )
154
- ] })
155
- }
156
- );
157
- }, Qt = (e) => {
158
- const t = Zt(e.error), r = e.error instanceof Error ? e.error.stack : null, o = Pe();
159
- return /* @__PURE__ */ y.jsxs(
160
- ge,
161
- {
162
- sx: {
163
- maxHeight: "100%",
164
- maxWidth: "min(100%, 800px)",
165
- padding: 2,
166
- overflow: "auto",
167
- color: o.palette.error.main,
168
- "& pre": {
169
- whiteSpace: "pre-wrap",
170
- wordBreak: "break-word",
171
- paddingBottom: "3rem"
172
- }
173
- },
174
- children: [
175
- (e.loadingMessage ? `Error while ${wt(St(e.loadingMessage))} - ` : "") + t,
176
- /* @__PURE__ */ y.jsx("br", {}),
177
- r && /* @__PURE__ */ y.jsx("pre", { children: r })
178
- ]
179
- }
180
- );
181
- };
182
- function rt(e, t) {
183
- return process.env.NODE_ENV === "production" ? () => null : function(...o) {
184
- return e(...o) || t(...o);
185
- };
186
- }
187
- function Ht(e) {
188
- return typeof e == "string";
189
- }
190
- function en(e, t, r) {
191
- return e === void 0 || Ht(e) ? t : {
192
- ...t,
193
- ownerState: {
194
- ...t.ownerState,
195
- ...r
196
- }
197
- };
198
- }
199
- function Ie(e, t = []) {
200
- if (e === void 0)
201
- return {};
202
- const r = {};
203
- return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !t.includes(o)).forEach((o) => {
204
- r[o] = e[o];
205
- }), r;
206
- }
207
- function ot(e) {
208
- if (e === void 0)
209
- return {};
210
- const t = {};
211
- return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => {
212
- t[r] = e[r];
213
- }), t;
214
- }
215
- function tn(e) {
216
- const {
217
- getSlotProps: t,
218
- additionalProps: r,
219
- externalSlotProps: o,
220
- externalForwardedProps: s,
221
- className: f
222
- } = e;
223
- if (!t) {
224
- const ee = Q(r == null ? void 0 : r.className, f, s == null ? void 0 : s.className, o == null ? void 0 : o.className), Y = {
225
- ...r == null ? void 0 : r.style,
226
- ...s == null ? void 0 : s.style,
227
- ...o == null ? void 0 : o.style
228
- }, E = {
229
- ...r,
230
- ...s,
231
- ...o
232
- };
233
- return ee.length > 0 && (E.className = ee), Object.keys(Y).length > 0 && (E.style = Y), {
234
- props: E,
235
- internalRef: void 0
236
- };
237
- }
238
- const b = Ie({
239
- ...s,
240
- ...o
241
- }), d = ot(o), u = ot(s), g = t(b), T = Q(g == null ? void 0 : g.className, r == null ? void 0 : r.className, f, s == null ? void 0 : s.className, o == null ? void 0 : o.className), R = {
242
- ...g == null ? void 0 : g.style,
243
- ...r == null ? void 0 : r.style,
244
- ...s == null ? void 0 : s.style,
245
- ...o == null ? void 0 : o.style
246
- }, P = {
247
- ...g,
248
- ...r,
249
- ...u,
250
- ...d
251
- };
252
- return T.length > 0 && (P.className = T), Object.keys(R).length > 0 && (P.style = R), {
253
- props: P,
254
- internalRef: g.ref
255
- };
256
- }
257
- function nn(e, t, r) {
258
- return typeof e == "function" ? e(t, r) : e;
259
- }
260
- function q(e) {
261
- var R;
262
- const {
263
- elementType: t,
264
- externalSlotProps: r,
265
- ownerState: o,
266
- skipResolvingSlotProps: s = !1,
267
- ...f
268
- } = e, b = s ? {} : nn(r, o), {
269
- props: d,
270
- internalRef: u
271
- } = tn({
272
- ...f,
273
- externalSlotProps: b
274
- }), g = ft(u, b == null ? void 0 : b.ref, (R = e.additionalProps) == null ? void 0 : R.ref);
275
- return en(t, {
276
- ...d,
277
- ref: g
278
- }, o);
279
- }
280
- function at(e) {
281
- try {
282
- return e.matches(":focus-visible");
283
- } catch {
284
- process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
285
- `));
286
- }
287
- return !1;
288
- }
289
- const rn = {
290
- border: 0,
291
- clip: "rect(0 0 0 0)",
292
- height: "1px",
293
- margin: "-1px",
294
- overflow: "hidden",
295
- padding: 0,
296
- position: "absolute",
297
- whiteSpace: "nowrap",
298
- width: "1px"
299
- };
300
- function on(e, t, r = (o, s) => o === s) {
301
- return e.length === t.length && e.every((o, s) => r(o, t[s]));
302
- }
303
- const an = 2;
304
- function le(e, t, r, o, s) {
305
- return r === 1 ? Math.min(e + t, s) : Math.max(e - t, o);
306
- }
307
- function mt(e, t) {
308
- return e - t;
309
- }
310
- function it(e, t) {
311
- const {
312
- index: r
313
- } = e.reduce((o, s, f) => {
314
- const b = Math.abs(t - s);
315
- return o === null || b < o.distance || b === o.distance ? {
316
- distance: b,
317
- index: f
318
- } : o;
319
- }, null) ?? {};
320
- return r;
321
- }
322
- function Ee(e, t) {
323
- if (t.current !== void 0 && e.changedTouches) {
324
- const r = e;
325
- for (let o = 0; o < r.changedTouches.length; o += 1) {
326
- const s = r.changedTouches[o];
327
- if (s.identifier === t.current)
328
- return {
329
- x: s.clientX,
330
- y: s.clientY
331
- };
332
- }
333
- return !1;
334
- }
335
- return {
336
- x: e.clientX,
337
- y: e.clientY
338
- };
339
- }
340
- function ze(e, t, r) {
341
- return (e - t) * 100 / (r - t);
342
- }
343
- function sn(e, t, r) {
344
- return (r - t) * e + t;
345
- }
346
- function ln(e) {
347
- if (Math.abs(e) < 1) {
348
- const r = e.toExponential().split("e-"), o = r[0].split(".")[1];
349
- return (o ? o.length : 0) + parseInt(r[1], 10);
350
- }
351
- const t = e.toString().split(".")[1];
352
- return t ? t.length : 0;
353
- }
354
- function cn(e, t, r) {
355
- const o = Math.round((e - r) / t) * t + r;
356
- return Number(o.toFixed(ln(t)));
357
- }
358
- function st({
359
- values: e,
360
- newValue: t,
361
- index: r
362
- }) {
363
- const o = e.slice();
364
- return o[r] = t, o.sort(mt);
365
- }
366
- function Ne({
367
- sliderRef: e,
368
- activeIndex: t,
369
- setActive: r
370
- }) {
371
- var s, f, b;
372
- const o = Re(e.current);
373
- (!((s = e.current) != null && s.contains(o.activeElement)) || Number((f = o == null ? void 0 : o.activeElement) == null ? void 0 : f.getAttribute("data-index")) !== t) && ((b = e.current) == null || b.querySelector(`[type="range"][data-index="${t}"]`).focus()), r && r(t);
374
- }
375
- function Ae(e, t) {
376
- return typeof e == "number" && typeof t == "number" ? e === t : typeof e == "object" && typeof t == "object" ? on(e, t) : !1;
377
- }
378
- const un = {
379
- horizontal: {
380
- offset: (e) => ({
381
- left: `${e}%`
382
- }),
383
- leap: (e) => ({
384
- width: `${e}%`
385
- })
386
- },
387
- "horizontal-reverse": {
388
- offset: (e) => ({
389
- right: `${e}%`
390
- }),
391
- leap: (e) => ({
392
- width: `${e}%`
393
- })
394
- },
395
- vertical: {
396
- offset: (e) => ({
397
- bottom: `${e}%`
398
- }),
399
- leap: (e) => ({
400
- height: `${e}%`
401
- })
402
- }
403
- }, fn = (e) => e;
404
- let Me;
405
- function lt() {
406
- return Me === void 0 && (typeof CSS < "u" && typeof CSS.supports == "function" ? Me = CSS.supports("touch-action", "none") : Me = !0), Me;
407
- }
408
- function dn(e) {
409
- const {
410
- "aria-labelledby": t,
411
- defaultValue: r,
412
- disabled: o = !1,
413
- disableSwap: s = !1,
414
- isRtl: f = !1,
415
- marks: b = !1,
416
- max: d = 100,
417
- min: u = 0,
418
- name: g,
419
- onChange: T,
420
- onChangeCommitted: R,
421
- orientation: P = "horizontal",
422
- rootRef: ee,
423
- scale: Y = fn,
424
- step: E = 1,
425
- shiftStep: te = 10,
426
- tabIndex: he,
427
- value: De
428
- } = e, z = k.useRef(void 0), [U, ne] = k.useState(-1), [Ge, re] = k.useState(-1), [ye, ve] = k.useState(!1), oe = k.useRef(0), ue = k.useRef(null), [I, h] = Vt({
429
- controlled: De,
430
- default: r ?? u,
431
- name: "Slider"
432
- }), m = T && ((a, i, l) => {
433
- const p = a.nativeEvent || a, v = new p.constructor(p.type, p);
434
- Object.defineProperty(v, "target", {
435
- writable: !0,
436
- value: {
437
- value: i,
438
- name: g
439
- }
440
- }), ue.current = i, T(v, i, l);
441
- }), ae = Array.isArray(I);
442
- let w = ae ? I.slice().sort(mt) : [I];
443
- w = w.map((a) => a == null ? u : me(a, u, d));
444
- const fe = b === !0 && E !== null ? [...Array(Math.floor((d - u) / E) + 1)].map((a, i) => ({
445
- value: u + E * i
446
- })) : b || [], S = fe.map((a) => a.value), [_, ie] = k.useState(-1), x = k.useRef(null), B = ft(ee, x), Ue = (a) => (i) => {
447
- var p;
448
- const l = Number(i.currentTarget.getAttribute("data-index"));
449
- at(i.target) && ie(l), re(l), (p = a == null ? void 0 : a.onFocus) == null || p.call(a, i);
450
- }, Fe = (a) => (i) => {
451
- var l;
452
- at(i.target) || ie(-1), re(-1), (l = a == null ? void 0 : a.onBlur) == null || l.call(a, i);
453
- }, xe = (a, i) => {
454
- const l = Number(a.currentTarget.getAttribute("data-index")), p = w[l], v = S.indexOf(p);
455
- let c = i;
456
- if (fe && E == null) {
457
- const C = S[S.length - 1];
458
- c >= C ? c = C : c <= S[0] ? c = S[0] : c = c < p ? S[v - 1] : S[v + 1];
459
- }
460
- if (c = me(c, u, d), ae) {
461
- s && (c = me(c, w[l - 1] || -1 / 0, w[l + 1] || 1 / 0));
462
- const C = c;
463
- c = st({
464
- values: w,
465
- newValue: c,
466
- index: l
467
- });
468
- let M = l;
469
- s || (M = c.indexOf(C)), Ne({
470
- sliderRef: x,
471
- activeIndex: M
472
- });
473
- }
474
- h(c), ie(l), m && !Ae(c, I) && m(a, c, l), R && R(a, ue.current ?? c);
475
- }, _e = (a) => (i) => {
476
- var l;
477
- if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(i.key)) {
478
- i.preventDefault();
479
- const p = Number(i.currentTarget.getAttribute("data-index")), v = w[p];
480
- let c = null;
481
- if (E != null) {
482
- const C = i.shiftKey ? te : E;
483
- switch (i.key) {
484
- case "ArrowUp":
485
- c = le(v, C, 1, u, d);
486
- break;
487
- case "ArrowRight":
488
- c = le(v, C, f ? -1 : 1, u, d);
489
- break;
490
- case "ArrowDown":
491
- c = le(v, C, -1, u, d);
492
- break;
493
- case "ArrowLeft":
494
- c = le(v, C, f ? 1 : -1, u, d);
495
- break;
496
- case "PageUp":
497
- c = le(v, te, 1, u, d);
498
- break;
499
- case "PageDown":
500
- c = le(v, te, -1, u, d);
501
- break;
502
- case "Home":
503
- c = u;
504
- break;
505
- case "End":
506
- c = d;
507
- break;
508
- }
509
- } else if (fe) {
510
- const C = S[S.length - 1], M = S.indexOf(v), O = [f ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], V = [f ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
511
- O.includes(i.key) ? M === 0 ? c = S[0] : c = S[M - 1] : V.includes(i.key) && (M === S.length - 1 ? c = C : c = S[M + 1]);
512
- }
513
- c != null && xe(i, c);
514
- }
515
- (l = a == null ? void 0 : a.onKeyDown) == null || l.call(a, i);
516
- };
517
- jt(() => {
518
- var a;
519
- o && x.current.contains(document.activeElement) && ((a = document.activeElement) == null || a.blur());
520
- }, [o]), o && U !== -1 && ne(-1), o && _ !== -1 && ie(-1);
521
- const ke = (a) => (i) => {
522
- var l;
523
- (l = a.onChange) == null || l.call(a, i), xe(i, i.target.valueAsNumber);
524
- }, K = k.useRef(void 0);
525
- let X = P;
526
- f && P === "horizontal" && (X += "-reverse");
527
- const J = ({
528
- finger: a,
529
- move: i = !1
530
- }) => {
531
- const {
532
- current: l
533
- } = x, {
534
- width: p,
535
- height: v,
536
- bottom: c,
537
- left: C
538
- } = l.getBoundingClientRect();
539
- let M;
540
- X.startsWith("vertical") ? M = (c - a.y) / v : M = (a.x - C) / p, X.includes("-reverse") && (M = 1 - M);
541
- let O;
542
- if (O = sn(M, u, d), E)
543
- O = cn(O, E, u);
544
- else {
545
- const pe = it(S, O);
546
- O = S[pe];
547
- }
548
- O = me(O, u, d);
549
- let V = 0;
550
- if (ae) {
551
- i ? V = K.current : V = it(w, O), s && (O = me(O, w[V - 1] || -1 / 0, w[V + 1] || 1 / 0));
552
- const pe = O;
553
- O = st({
554
- values: w,
555
- newValue: O,
556
- index: V
557
- }), s && i || (V = O.indexOf(pe), K.current = V);
558
- }
559
- return {
560
- newValue: O,
561
- activeIndex: V
562
- };
563
- }, G = Xe((a) => {
564
- const i = Ee(a, z);
565
- if (!i)
566
- return;
567
- if (oe.current += 1, a.type === "mousemove" && a.buttons === 0) {
568
- D(a);
569
- return;
570
- }
571
- const {
572
- newValue: l,
573
- activeIndex: p
574
- } = J({
575
- finger: i,
576
- move: !0
577
- });
578
- Ne({
579
- sliderRef: x,
580
- activeIndex: p,
581
- setActive: ne
582
- }), h(l), !ye && oe.current > an && ve(!0), m && !Ae(l, I) && m(a, l, p);
583
- }), D = Xe((a) => {
584
- const i = Ee(a, z);
585
- if (ve(!1), !i)
586
- return;
587
- const {
588
- newValue: l
589
- } = J({
590
- finger: i,
591
- move: !0
592
- });
593
- ne(-1), a.type === "touchend" && re(-1), R && R(a, ue.current ?? l), z.current = void 0, Z();
594
- }), N = Xe((a) => {
595
- if (o)
596
- return;
597
- lt() || a.preventDefault();
598
- const i = a.changedTouches[0];
599
- i != null && (z.current = i.identifier);
600
- const l = Ee(a, z);
601
- if (l !== !1) {
602
- const {
603
- newValue: v,
604
- activeIndex: c
605
- } = J({
606
- finger: l
607
- });
608
- Ne({
609
- sliderRef: x,
610
- activeIndex: c,
611
- setActive: ne
612
- }), h(v), m && !Ae(v, I) && m(a, v, c);
613
- }
614
- oe.current = 0;
615
- const p = Re(x.current);
616
- p.addEventListener("touchmove", G, {
617
- passive: !0
618
- }), p.addEventListener("touchend", D, {
619
- passive: !0
620
- });
621
- }), Z = k.useCallback(() => {
622
- const a = Re(x.current);
623
- a.removeEventListener("mousemove", G), a.removeEventListener("mouseup", D), a.removeEventListener("touchmove", G), a.removeEventListener("touchend", D);
624
- }, [D, G]);
625
- k.useEffect(() => {
626
- const {
627
- current: a
628
- } = x;
629
- return a.addEventListener("touchstart", N, {
630
- passive: lt()
631
- }), () => {
632
- a.removeEventListener("touchstart", N), Z();
633
- };
634
- }, [Z, N]), k.useEffect(() => {
635
- o && Z();
636
- }, [o, Z]);
637
- const qe = (a) => (i) => {
638
- var v;
639
- if ((v = a.onMouseDown) == null || v.call(a, i), o || i.defaultPrevented || i.button !== 0)
640
- return;
641
- i.preventDefault();
642
- const l = Ee(i, z);
643
- if (l !== !1) {
644
- const {
645
- newValue: c,
646
- activeIndex: C
647
- } = J({
648
- finger: l
649
- });
650
- Ne({
651
- sliderRef: x,
652
- activeIndex: C,
653
- setActive: ne
654
- }), h(c), m && !Ae(c, I) && m(i, c, C);
655
- }
656
- oe.current = 0;
657
- const p = Re(x.current);
658
- p.addEventListener("mousemove", G, {
659
- passive: !0
660
- }), p.addEventListener("mouseup", D);
661
- }, Se = ze(ae ? w[0] : u, u, d), A = ze(w[w.length - 1], u, d) - Se, de = (a = {}) => {
662
- const i = Ie(a), l = {
663
- onMouseDown: qe(i || {})
664
- }, p = {
665
- ...i,
666
- ...l
667
- };
668
- return {
669
- ...a,
670
- ref: B,
671
- ...p
672
- };
673
- }, we = (a) => (i) => {
674
- var p;
675
- (p = a.onMouseOver) == null || p.call(a, i);
676
- const l = Number(i.currentTarget.getAttribute("data-index"));
677
- re(l);
678
- }, Le = (a) => (i) => {
679
- var l;
680
- (l = a.onMouseLeave) == null || l.call(a, i), re(-1);
681
- }, Te = (a = {}) => {
682
- const i = Ie(a), l = {
683
- onMouseOver: we(i || {}),
684
- onMouseLeave: Le(i || {})
685
- };
686
- return {
687
- ...a,
688
- ...i,
689
- ...l
690
- };
691
- }, Oe = (a) => ({
692
- // So the non active thumb doesn't show its label on hover.
693
- pointerEvents: U !== -1 && U !== a ? "none" : void 0
694
- });
695
- let se;
696
- return P === "vertical" && (se = f ? "vertical-rl" : "vertical-lr"), {
697
- active: U,
698
- axis: X,
699
- axisProps: un,
700
- dragging: ye,
701
- focusedThumbIndex: _,
702
- getHiddenInputProps: (a = {}) => {
703
- const i = Ie(a), l = {
704
- onChange: ke(i || {}),
705
- onFocus: Ue(i || {}),
706
- onBlur: Fe(i || {}),
707
- onKeyDown: _e(i || {})
708
- }, p = {
709
- ...i,
710
- ...l
711
- };
712
- return {
713
- tabIndex: he,
714
- "aria-labelledby": t,
715
- "aria-orientation": P,
716
- "aria-valuemax": Y(d),
717
- "aria-valuemin": Y(u),
718
- name: g,
719
- type: "range",
720
- min: e.min,
721
- max: e.max,
722
- step: e.step === null && e.marks ? "any" : e.step ?? void 0,
723
- disabled: o,
724
- ...a,
725
- ...p,
726
- style: {
727
- ...rn,
728
- direction: f ? "rtl" : "ltr",
729
- // So that VoiceOver's focus indicator matches the thumb's dimensions
730
- width: "100%",
731
- height: "100%",
732
- writingMode: se
733
- }
734
- };
735
- },
736
- getRootProps: de,
737
- getThumbProps: Te,
738
- marks: fe,
739
- open: Ge,
740
- range: ae,
741
- rootRef: B,
742
- trackLeap: A,
743
- trackOffset: Se,
744
- values: w,
745
- getThumbStyle: Oe
746
- };
747
- }
748
- function Ve(e) {
749
- return typeof e == "string";
750
- }
751
- const pn = (e) => !e || !Ve(e);
752
- function mn(e) {
753
- return typeof e.main == "string";
754
- }
755
- function bn(e, t = []) {
756
- if (!mn(e))
757
- return !1;
758
- for (const r of t)
759
- if (!e.hasOwnProperty(r) || typeof e[r] != "string")
760
- return !1;
761
- return !0;
762
- }
763
- function Je(e = []) {
764
- return ([, t]) => t && bn(t, e);
765
- }
766
- function gn(e) {
767
- return Nt("MuiSlider", e);
768
- }
769
- const $ = Et("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "thumbColorError", "thumbColorSuccess", "thumbColorInfo", "thumbColorWarning", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), hn = (e) => {
770
- const {
771
- open: t
772
- } = e;
773
- return {
774
- offset: Q(t && $.valueLabelOpen),
775
- circle: $.valueLabelCircle,
776
- label: $.valueLabelLabel
777
- };
778
- };
779
- function bt(e) {
780
- const {
781
- children: t,
782
- className: r,
783
- value: o
784
- } = e, s = hn(e);
785
- return t ? /* @__PURE__ */ k.cloneElement(t, {
786
- className: t.props.className
787
- }, /* @__PURE__ */ y.jsxs(k.Fragment, {
788
- children: [t.props.children, /* @__PURE__ */ y.jsx("span", {
789
- className: Q(s.offset, r),
790
- "aria-hidden": !0,
791
- children: /* @__PURE__ */ y.jsx("span", {
792
- className: s.circle,
793
- children: /* @__PURE__ */ y.jsx("span", {
794
- className: s.label,
795
- children: o
796
- })
797
- })
798
- })]
799
- })) : null;
800
- }
801
- process.env.NODE_ENV !== "production" && (bt.propTypes = {
802
- children: n.element.isRequired,
803
- className: n.string,
804
- value: n.node
805
- });
806
- function ct(e) {
807
- return e;
808
- }
809
- const yn = H("span", {
810
- name: "MuiSlider",
811
- slot: "Root",
812
- overridesResolver: (e, t) => {
813
- const {
814
- ownerState: r
815
- } = e;
816
- return [t.root, t[`color${W(r.color)}`], r.size !== "medium" && t[`size${W(r.size)}`], r.marked && t.marked, r.orientation === "vertical" && t.vertical, r.track === "inverted" && t.trackInverted, r.track === !1 && t.trackFalse];
817
- }
818
- })(ce(({
819
- theme: e
820
- }) => ({
821
- borderRadius: 12,
822
- boxSizing: "content-box",
823
- display: "inline-block",
824
- position: "relative",
825
- cursor: "pointer",
826
- touchAction: "none",
827
- WebkitTapHighlightColor: "transparent",
828
- "@media print": {
829
- colorAdjust: "exact"
830
- },
831
- [`&.${$.disabled}`]: {
832
- pointerEvents: "none",
833
- cursor: "default",
834
- color: (e.vars || e).palette.grey[400]
835
- },
836
- [`&.${$.dragging}`]: {
837
- [`& .${$.thumb}, & .${$.track}`]: {
838
- transition: "none"
839
- }
840
- },
841
- variants: [...Object.entries(e.palette).filter(Je()).map(([t]) => ({
842
- props: {
843
- color: t
844
- },
845
- style: {
846
- color: (e.vars || e).palette[t].main
847
- }
848
- })), {
849
- props: {
850
- orientation: "horizontal"
851
- },
852
- style: {
853
- height: 4,
854
- width: "100%",
855
- padding: "13px 0",
856
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
857
- "@media (pointer: coarse)": {
858
- // Reach 42px touch target, about ~8mm on screen.
859
- padding: "20px 0"
860
- }
861
- }
862
- }, {
863
- props: {
864
- orientation: "horizontal",
865
- size: "small"
866
- },
867
- style: {
868
- height: 2
869
- }
870
- }, {
871
- props: {
872
- orientation: "horizontal",
873
- marked: !0
874
- },
875
- style: {
876
- marginBottom: 20
877
- }
878
- }, {
879
- props: {
880
- orientation: "vertical"
881
- },
882
- style: {
883
- height: "100%",
884
- width: 4,
885
- padding: "0 13px",
886
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
887
- "@media (pointer: coarse)": {
888
- // Reach 42px touch target, about ~8mm on screen.
889
- padding: "0 20px"
890
- }
891
- }
892
- }, {
893
- props: {
894
- orientation: "vertical",
895
- size: "small"
896
- },
897
- style: {
898
- width: 2
899
- }
900
- }, {
901
- props: {
902
- orientation: "vertical",
903
- marked: !0
904
- },
905
- style: {
906
- marginRight: 44
907
- }
908
- }]
909
- }))), vn = H("span", {
910
- name: "MuiSlider",
911
- slot: "Rail"
912
- })({
913
- display: "block",
914
- position: "absolute",
915
- borderRadius: "inherit",
916
- backgroundColor: "currentColor",
917
- opacity: 0.38,
918
- variants: [{
919
- props: {
920
- orientation: "horizontal"
921
- },
922
- style: {
923
- width: "100%",
924
- height: "inherit",
925
- top: "50%",
926
- transform: "translateY(-50%)"
927
- }
928
- }, {
929
- props: {
930
- orientation: "vertical"
931
- },
932
- style: {
933
- height: "100%",
934
- width: "inherit",
935
- left: "50%",
936
- transform: "translateX(-50%)"
937
- }
938
- }, {
939
- props: {
940
- track: "inverted"
941
- },
942
- style: {
943
- opacity: 1
944
- }
945
- }]
946
- }), xn = H("span", {
947
- name: "MuiSlider",
948
- slot: "Track"
949
- })(ce(({
950
- theme: e
951
- }) => ({
952
- display: "block",
953
- position: "absolute",
954
- borderRadius: "inherit",
955
- border: "1px solid currentColor",
956
- backgroundColor: "currentColor",
957
- transition: e.transitions.create(["left", "width", "bottom", "height"], {
958
- duration: e.transitions.duration.shortest
959
- }),
960
- variants: [{
961
- props: {
962
- size: "small"
963
- },
964
- style: {
965
- border: "none"
966
- }
967
- }, {
968
- props: {
969
- orientation: "horizontal"
970
- },
971
- style: {
972
- height: "inherit",
973
- top: "50%",
974
- transform: "translateY(-50%)"
975
- }
976
- }, {
977
- props: {
978
- orientation: "vertical"
979
- },
980
- style: {
981
- width: "inherit",
982
- left: "50%",
983
- transform: "translateX(-50%)"
984
- }
985
- }, {
986
- props: {
987
- track: !1
988
- },
989
- style: {
990
- display: "none"
991
- }
992
- }, ...Object.entries(e.palette).filter(Je()).map(([t]) => ({
993
- props: {
994
- color: t,
995
- track: "inverted"
996
- },
997
- style: {
998
- ...e.vars ? {
999
- backgroundColor: e.vars.palette.Slider[`${t}Track`],
1000
- borderColor: e.vars.palette.Slider[`${t}Track`]
1001
- } : {
1002
- backgroundColor: He(e.palette[t].main, 0.62),
1003
- borderColor: He(e.palette[t].main, 0.62),
1004
- ...e.applyStyles("dark", {
1005
- backgroundColor: et(e.palette[t].main, 0.5)
1006
- }),
1007
- ...e.applyStyles("dark", {
1008
- borderColor: et(e.palette[t].main, 0.5)
1009
- })
1010
- }
1011
- }
1012
- }))]
1013
- }))), kn = H("span", {
1014
- name: "MuiSlider",
1015
- slot: "Thumb",
1016
- overridesResolver: (e, t) => {
1017
- const {
1018
- ownerState: r
1019
- } = e;
1020
- return [t.thumb, t[`thumbColor${W(r.color)}`], r.size !== "medium" && t[`thumbSize${W(r.size)}`]];
1021
- }
1022
- })(ce(({
1023
- theme: e
1024
- }) => ({
1025
- position: "absolute",
1026
- width: 20,
1027
- height: 20,
1028
- boxSizing: "border-box",
1029
- borderRadius: "50%",
1030
- outline: 0,
1031
- backgroundColor: "currentColor",
1032
- display: "flex",
1033
- alignItems: "center",
1034
- justifyContent: "center",
1035
- transition: e.transitions.create(["box-shadow", "left", "bottom"], {
1036
- duration: e.transitions.duration.shortest
1037
- }),
1038
- "&::before": {
1039
- position: "absolute",
1040
- content: '""',
1041
- borderRadius: "inherit",
1042
- width: "100%",
1043
- height: "100%",
1044
- boxShadow: (e.vars || e).shadows[2]
1045
- },
1046
- "&::after": {
1047
- position: "absolute",
1048
- content: '""',
1049
- borderRadius: "50%",
1050
- // 42px is the hit target
1051
- width: 42,
1052
- height: 42,
1053
- top: "50%",
1054
- left: "50%",
1055
- transform: "translate(-50%, -50%)"
1056
- },
1057
- [`&.${$.disabled}`]: {
1058
- "&:hover": {
1059
- boxShadow: "none"
1060
- }
1061
- },
1062
- variants: [{
1063
- props: {
1064
- size: "small"
1065
- },
1066
- style: {
1067
- width: 12,
1068
- height: 12,
1069
- "&::before": {
1070
- boxShadow: "none"
1071
- }
1072
- }
1073
- }, {
1074
- props: {
1075
- orientation: "horizontal"
1076
- },
1077
- style: {
1078
- top: "50%",
1079
- transform: "translate(-50%, -50%)"
1080
- }
1081
- }, {
1082
- props: {
1083
- orientation: "vertical"
1084
- },
1085
- style: {
1086
- left: "50%",
1087
- transform: "translate(-50%, 50%)"
1088
- }
1089
- }, ...Object.entries(e.palette).filter(Je()).map(([t]) => ({
1090
- props: {
1091
- color: t
1092
- },
1093
- style: {
1094
- [`&:hover, &.${$.focusVisible}`]: {
1095
- ...e.vars ? {
1096
- boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`
1097
- } : {
1098
- boxShadow: `0px 0px 0px 8px ${tt(e.palette[t].main, 0.16)}`
1099
- },
1100
- "@media (hover: none)": {
1101
- boxShadow: "none"
1102
- }
1103
- },
1104
- [`&.${$.active}`]: {
1105
- ...e.vars ? {
1106
- boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`
1107
- } : {
1108
- boxShadow: `0px 0px 0px 14px ${tt(e.palette[t].main, 0.16)}`
1109
- }
1110
- }
1111
- }
1112
- }))]
1113
- }))), gt = H(bt, {
1114
- name: "MuiSlider",
1115
- slot: "ValueLabel"
1116
- })(ce(({
1117
- theme: e
1118
- }) => ({
1119
- zIndex: 1,
1120
- whiteSpace: "nowrap",
1121
- ...e.typography.body2,
1122
- fontWeight: 500,
1123
- transition: e.transitions.create(["transform"], {
1124
- duration: e.transitions.duration.shortest
1125
- }),
1126
- position: "absolute",
1127
- backgroundColor: (e.vars || e).palette.grey[600],
1128
- borderRadius: 2,
1129
- color: (e.vars || e).palette.common.white,
1130
- display: "flex",
1131
- alignItems: "center",
1132
- justifyContent: "center",
1133
- padding: "0.25rem 0.75rem",
1134
- variants: [{
1135
- props: {
1136
- orientation: "horizontal"
1137
- },
1138
- style: {
1139
- transform: "translateY(-100%) scale(0)",
1140
- top: "-10px",
1141
- transformOrigin: "bottom center",
1142
- "&::before": {
1143
- position: "absolute",
1144
- content: '""',
1145
- width: 8,
1146
- height: 8,
1147
- transform: "translate(-50%, 50%) rotate(45deg)",
1148
- backgroundColor: "inherit",
1149
- bottom: 0,
1150
- left: "50%"
1151
- },
1152
- [`&.${$.valueLabelOpen}`]: {
1153
- transform: "translateY(-100%) scale(1)"
1154
- }
1155
- }
1156
- }, {
1157
- props: {
1158
- orientation: "vertical"
1159
- },
1160
- style: {
1161
- transform: "translateY(-50%) scale(0)",
1162
- right: "30px",
1163
- top: "50%",
1164
- transformOrigin: "right center",
1165
- "&::before": {
1166
- position: "absolute",
1167
- content: '""',
1168
- width: 8,
1169
- height: 8,
1170
- transform: "translate(-50%, -50%) rotate(45deg)",
1171
- backgroundColor: "inherit",
1172
- right: -8,
1173
- top: "50%"
1174
- },
1175
- [`&.${$.valueLabelOpen}`]: {
1176
- transform: "translateY(-50%) scale(1)"
1177
- }
1178
- }
1179
- }, {
1180
- props: {
1181
- size: "small"
1182
- },
1183
- style: {
1184
- fontSize: e.typography.pxToRem(12),
1185
- padding: "0.25rem 0.5rem"
1186
- }
1187
- }, {
1188
- props: {
1189
- orientation: "vertical",
1190
- size: "small"
1191
- },
1192
- style: {
1193
- right: "20px"
1194
- }
1195
- }]
1196
- })));
1197
- process.env.NODE_ENV !== "production" && (gt.propTypes = {
1198
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1199
- // │ These PropTypes are generated from the TypeScript type definitions. │
1200
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1201
- // └─────────────────────────────────────────────────────────────────────┘
1202
- /**
1203
- * @ignore
1204
- */
1205
- children: n.element.isRequired,
1206
- /**
1207
- * @ignore
1208
- */
1209
- index: n.number.isRequired,
1210
- /**
1211
- * @ignore
1212
- */
1213
- open: n.bool.isRequired,
1214
- /**
1215
- * @ignore
1216
- */
1217
- value: n.node
1218
- });
1219
- const Sn = H("span", {
1220
- name: "MuiSlider",
1221
- slot: "Mark",
1222
- shouldForwardProp: (e) => dt(e) && e !== "markActive",
1223
- overridesResolver: (e, t) => {
1224
- const {
1225
- markActive: r
1226
- } = e;
1227
- return [t.mark, r && t.markActive];
1228
- }
1229
- })(ce(({
1230
- theme: e
1231
- }) => ({
1232
- position: "absolute",
1233
- width: 2,
1234
- height: 2,
1235
- borderRadius: 1,
1236
- backgroundColor: "currentColor",
1237
- variants: [{
1238
- props: {
1239
- orientation: "horizontal"
1240
- },
1241
- style: {
1242
- top: "50%",
1243
- transform: "translate(-1px, -50%)"
1244
- }
1245
- }, {
1246
- props: {
1247
- orientation: "vertical"
1248
- },
1249
- style: {
1250
- left: "50%",
1251
- transform: "translate(-50%, 1px)"
1252
- }
1253
- }, {
1254
- props: {
1255
- markActive: !0
1256
- },
1257
- style: {
1258
- backgroundColor: (e.vars || e).palette.background.paper,
1259
- opacity: 0.8
1260
- }
1261
- }]
1262
- }))), wn = H("span", {
1263
- name: "MuiSlider",
1264
- slot: "MarkLabel",
1265
- shouldForwardProp: (e) => dt(e) && e !== "markLabelActive"
1266
- })(ce(({
1267
- theme: e
1268
- }) => ({
1269
- ...e.typography.body2,
1270
- color: (e.vars || e).palette.text.secondary,
1271
- position: "absolute",
1272
- whiteSpace: "nowrap",
1273
- variants: [{
1274
- props: {
1275
- orientation: "horizontal"
1276
- },
1277
- style: {
1278
- top: 30,
1279
- transform: "translateX(-50%)",
1280
- "@media (pointer: coarse)": {
1281
- top: 40
1282
- }
1283
- }
1284
- }, {
1285
- props: {
1286
- orientation: "vertical"
1287
- },
1288
- style: {
1289
- left: 36,
1290
- transform: "translateY(50%)",
1291
- "@media (pointer: coarse)": {
1292
- left: 44
1293
- }
1294
- }
1295
- }, {
1296
- props: {
1297
- markLabelActive: !0
1298
- },
1299
- style: {
1300
- color: (e.vars || e).palette.text.primary
1301
- }
1302
- }]
1303
- }))), Ln = (e) => {
1304
- const {
1305
- disabled: t,
1306
- dragging: r,
1307
- marked: o,
1308
- orientation: s,
1309
- track: f,
1310
- classes: b,
1311
- color: d,
1312
- size: u
1313
- } = e, g = {
1314
- root: ["root", t && "disabled", r && "dragging", o && "marked", s === "vertical" && "vertical", f === "inverted" && "trackInverted", f === !1 && "trackFalse", d && `color${W(d)}`, u && `size${W(u)}`],
1315
- rail: ["rail"],
1316
- track: ["track"],
1317
- mark: ["mark"],
1318
- markActive: ["markActive"],
1319
- markLabel: ["markLabel"],
1320
- markLabelActive: ["markLabelActive"],
1321
- valueLabel: ["valueLabel"],
1322
- thumb: ["thumb", t && "disabled", u && `thumbSize${W(u)}`, d && `thumbColor${W(d)}`],
1323
- active: ["active"],
1324
- disabled: ["disabled"],
1325
- focusVisible: ["focusVisible"]
1326
- };
1327
- return Mt(g, gn, b);
1328
- }, Tn = ({
1329
- children: e
1330
- }) => e, ht = /* @__PURE__ */ k.forwardRef(function(t, r) {
1331
- const o = At({
1332
- props: t,
1333
- name: "MuiSlider"
1334
- }), s = It(), {
1335
- "aria-label": f,
1336
- "aria-valuetext": b,
1337
- "aria-labelledby": d,
1338
- // eslint-disable-next-line react/prop-types
1339
- component: u = "span",
1340
- components: g = {},
1341
- componentsProps: T = {},
1342
- color: R = "primary",
1343
- classes: P,
1344
- className: ee,
1345
- disableSwap: Y = !1,
1346
- disabled: E = !1,
1347
- getAriaLabel: te,
1348
- getAriaValueText: he,
1349
- marks: De = !1,
1350
- max: z = 100,
1351
- min: U = 0,
1352
- name: ne,
1353
- onChange: Ge,
1354
- onChangeCommitted: re,
1355
- orientation: ye = "horizontal",
1356
- shiftStep: ve = 10,
1357
- size: oe = "medium",
1358
- step: ue = 1,
1359
- scale: I = ct,
1360
- slotProps: h,
1361
- slots: m,
1362
- tabIndex: ae,
1363
- track: w = "normal",
1364
- value: fe,
1365
- valueLabelDisplay: S = "off",
1366
- valueLabelFormat: _ = ct,
1367
- ...ie
1368
- } = o, x = {
1369
- ...o,
1370
- isRtl: s,
1371
- max: z,
1372
- min: U,
1373
- classes: P,
1374
- disabled: E,
1375
- disableSwap: Y,
1376
- orientation: ye,
1377
- marks: De,
1378
- color: R,
1379
- size: oe,
1380
- step: ue,
1381
- shiftStep: ve,
1382
- scale: I,
1383
- track: w,
1384
- valueLabelDisplay: S,
1385
- valueLabelFormat: _
1386
- }, {
1387
- axisProps: B,
1388
- getRootProps: Ue,
1389
- getHiddenInputProps: Fe,
1390
- getThumbProps: xe,
1391
- open: _e,
1392
- active: ke,
1393
- axis: K,
1394
- focusedThumbIndex: X,
1395
- range: J,
1396
- dragging: G,
1397
- marks: D,
1398
- values: N,
1399
- trackOffset: Z,
1400
- trackLeap: qe,
1401
- getThumbStyle: Se
1402
- } = dn({
1403
- ...x,
1404
- rootRef: r
1405
- });
1406
- x.marked = D.length > 0 && D.some((L) => L.label), x.dragging = G, x.focusedThumbIndex = X;
1407
- const A = Ln(x), de = (m == null ? void 0 : m.root) ?? g.Root ?? yn, we = (m == null ? void 0 : m.rail) ?? g.Rail ?? vn, Le = (m == null ? void 0 : m.track) ?? g.Track ?? xn, Te = (m == null ? void 0 : m.thumb) ?? g.Thumb ?? kn, Oe = (m == null ? void 0 : m.valueLabel) ?? g.ValueLabel ?? gt, se = (m == null ? void 0 : m.mark) ?? g.Mark ?? Sn, Ce = (m == null ? void 0 : m.markLabel) ?? g.MarkLabel ?? wn, a = (m == null ? void 0 : m.input) ?? g.Input ?? "input", i = (h == null ? void 0 : h.root) ?? T.root, l = (h == null ? void 0 : h.rail) ?? T.rail, p = (h == null ? void 0 : h.track) ?? T.track, v = (h == null ? void 0 : h.thumb) ?? T.thumb, c = (h == null ? void 0 : h.valueLabel) ?? T.valueLabel, C = (h == null ? void 0 : h.mark) ?? T.mark, M = (h == null ? void 0 : h.markLabel) ?? T.markLabel, O = (h == null ? void 0 : h.input) ?? T.input, V = q({
1408
- elementType: de,
1409
- getSlotProps: Ue,
1410
- externalSlotProps: i,
1411
- externalForwardedProps: ie,
1412
- additionalProps: {
1413
- ...pn(de) && {
1414
- as: u
1415
- }
1416
- },
1417
- ownerState: {
1418
- ...x,
1419
- ...i == null ? void 0 : i.ownerState
1420
- },
1421
- className: [A.root, ee]
1422
- }), pe = q({
1423
- elementType: we,
1424
- externalSlotProps: l,
1425
- ownerState: x,
1426
- className: A.rail
1427
- }), yt = q({
1428
- elementType: Le,
1429
- externalSlotProps: p,
1430
- additionalProps: {
1431
- style: {
1432
- ...B[K].offset(Z),
1433
- ...B[K].leap(qe)
1434
- }
1435
- },
1436
- ownerState: {
1437
- ...x,
1438
- ...p == null ? void 0 : p.ownerState
1439
- },
1440
- className: A.track
1441
- }), We = q({
1442
- elementType: Te,
1443
- getSlotProps: xe,
1444
- externalSlotProps: v,
1445
- ownerState: {
1446
- ...x,
1447
- ...v == null ? void 0 : v.ownerState
1448
- },
1449
- className: A.thumb
1450
- }), vt = q({
1451
- elementType: Oe,
1452
- externalSlotProps: c,
1453
- ownerState: {
1454
- ...x,
1455
- ...c == null ? void 0 : c.ownerState
1456
- },
1457
- className: A.valueLabel
1458
- }), Ye = q({
1459
- elementType: se,
1460
- externalSlotProps: C,
1461
- ownerState: x,
1462
- className: A.mark
1463
- }), Be = q({
1464
- elementType: Ce,
1465
- externalSlotProps: M,
1466
- ownerState: x,
1467
- className: A.markLabel
1468
- }), xt = q({
1469
- elementType: a,
1470
- getSlotProps: Fe,
1471
- externalSlotProps: O,
1472
- ownerState: x
1473
- });
1474
- return /* @__PURE__ */ y.jsxs(de, {
1475
- ...V,
1476
- children: [/* @__PURE__ */ y.jsx(we, {
1477
- ...pe
1478
- }), /* @__PURE__ */ y.jsx(Le, {
1479
- ...yt
1480
- }), D.filter((L) => L.value >= U && L.value <= z).map((L, j) => {
1481
- const Ke = ze(L.value, U, z), je = B[K].offset(Ke);
1482
- let F;
1483
- return w === !1 ? F = N.includes(L.value) : F = w === "normal" && (J ? L.value >= N[0] && L.value <= N[N.length - 1] : L.value <= N[0]) || w === "inverted" && (J ? L.value <= N[0] || L.value >= N[N.length - 1] : L.value >= N[0]), /* @__PURE__ */ y.jsxs(k.Fragment, {
1484
- children: [/* @__PURE__ */ y.jsx(se, {
1485
- "data-index": j,
1486
- ...Ye,
1487
- ...!Ve(se) && {
1488
- markActive: F
1489
- },
1490
- style: {
1491
- ...je,
1492
- ...Ye.style
1493
- },
1494
- className: Q(Ye.className, F && A.markActive)
1495
- }), L.label != null ? /* @__PURE__ */ y.jsx(Ce, {
1496
- "aria-hidden": !0,
1497
- "data-index": j,
1498
- ...Be,
1499
- ...!Ve(Ce) && {
1500
- markLabelActive: F
1501
- },
1502
- style: {
1503
- ...je,
1504
- ...Be.style
1505
- },
1506
- className: Q(A.markLabel, Be.className, F && A.markLabelActive),
1507
- children: L.label
1508
- }) : null]
1509
- }, j);
1510
- }), N.map((L, j) => {
1511
- const Ke = ze(L, U, z), je = B[K].offset(Ke), F = S === "off" ? Tn : Oe;
1512
- return (
1513
- /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
1514
- /* @__PURE__ */ y.jsx(F, {
1515
- ...!Ve(F) && {
1516
- valueLabelFormat: _,
1517
- valueLabelDisplay: S,
1518
- value: typeof _ == "function" ? _(I(L), j) : _,
1519
- index: j,
1520
- open: _e === j || ke === j || S === "on",
1521
- disabled: E
1522
- },
1523
- ...vt,
1524
- children: /* @__PURE__ */ y.jsx(Te, {
1525
- "data-index": j,
1526
- ...We,
1527
- className: Q(A.thumb, We.className, ke === j && A.active, X === j && A.focusVisible),
1528
- style: {
1529
- ...je,
1530
- ...Se(j),
1531
- ...We.style
1532
- },
1533
- children: /* @__PURE__ */ y.jsx(a, {
1534
- "data-index": j,
1535
- "aria-label": te ? te(j) : f,
1536
- "aria-valuenow": I(L),
1537
- "aria-labelledby": d,
1538
- "aria-valuetext": he ? he(I(L), j) : b,
1539
- value: N[j],
1540
- ...xt
1541
- })
1542
- })
1543
- }, j)
1544
- );
1545
- })]
1546
- });
1547
- });
1548
- process.env.NODE_ENV !== "production" && (ht.propTypes = {
1549
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1550
- // │ These PropTypes are generated from the TypeScript type definitions. │
1551
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1552
- // └─────────────────────────────────────────────────────────────────────┘
1553
- /**
1554
- * The label of the slider.
1555
- */
1556
- "aria-label": rt(n.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-label"] != null ? new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.") : null),
1557
- /**
1558
- * The id of the element containing a label for the slider.
1559
- */
1560
- "aria-labelledby": n.string,
1561
- /**
1562
- * A string value that provides a user-friendly name for the current value of the slider.
1563
- */
1564
- "aria-valuetext": rt(n.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-valuetext"] != null ? new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.") : null),
1565
- /**
1566
- * @ignore
1567
- */
1568
- children: n.node,
1569
- /**
1570
- * Override or extend the styles applied to the component.
1571
- */
1572
- classes: n.object,
1573
- /**
1574
- * @ignore
1575
- */
1576
- className: n.string,
1577
- /**
1578
- * The color of the component.
1579
- * It supports both default and custom theme colors, which can be added as shown in the
1580
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1581
- * @default 'primary'
1582
- */
1583
- color: n.oneOfType([n.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), n.string]),
1584
- /**
1585
- * The components used for each slot inside.
1586
- *
1587
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1588
- *
1589
- * @default {}
1590
- */
1591
- components: n.shape({
1592
- Input: n.elementType,
1593
- Mark: n.elementType,
1594
- MarkLabel: n.elementType,
1595
- Rail: n.elementType,
1596
- Root: n.elementType,
1597
- Thumb: n.elementType,
1598
- Track: n.elementType,
1599
- ValueLabel: n.elementType
1600
- }),
1601
- /**
1602
- * The extra props for the slot components.
1603
- * You can override the existing props or add new ones.
1604
- *
1605
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1606
- *
1607
- * @default {}
1608
- */
1609
- componentsProps: n.shape({
1610
- input: n.oneOfType([n.func, n.object]),
1611
- mark: n.oneOfType([n.func, n.object]),
1612
- markLabel: n.oneOfType([n.func, n.object]),
1613
- rail: n.oneOfType([n.func, n.object]),
1614
- root: n.oneOfType([n.func, n.object]),
1615
- thumb: n.oneOfType([n.func, n.object]),
1616
- track: n.oneOfType([n.func, n.object]),
1617
- valueLabel: n.oneOfType([n.func, n.shape({
1618
- children: n.element,
1619
- className: n.string,
1620
- open: n.bool,
1621
- style: n.object,
1622
- value: n.node,
1623
- valueLabelDisplay: n.oneOf(["auto", "off", "on"])
1624
- })])
1625
- }),
1626
- /**
1627
- * The default value. Use when the component is not controlled.
1628
- */
1629
- defaultValue: n.oneOfType([n.arrayOf(n.number), n.number]),
1630
- /**
1631
- * If `true`, the component is disabled.
1632
- * @default false
1633
- */
1634
- disabled: n.bool,
1635
- /**
1636
- * If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
1637
- * @default false
1638
- */
1639
- disableSwap: n.bool,
1640
- /**
1641
- * Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider.
1642
- * This is important for screen reader users.
1643
- * @param {number} index The thumb label's index to format.
1644
- * @returns {string}
1645
- */
1646
- getAriaLabel: n.func,
1647
- /**
1648
- * Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.
1649
- * This is important for screen reader users.
1650
- * @param {number} value The thumb label's value to format.
1651
- * @param {number} index The thumb label's index to format.
1652
- * @returns {string}
1653
- */
1654
- getAriaValueText: n.func,
1655
- /**
1656
- * Marks indicate predetermined values to which the user can move the slider.
1657
- * If `true` the marks are spaced according the value of the `step` prop.
1658
- * If an array, it should contain objects with `value` and an optional `label` keys.
1659
- * @default false
1660
- */
1661
- marks: n.oneOfType([n.arrayOf(n.shape({
1662
- label: n.node,
1663
- value: n.number.isRequired
1664
- })), n.bool]),
1665
- /**
1666
- * The maximum allowed value of the slider.
1667
- * Should not be equal to min.
1668
- * @default 100
1669
- */
1670
- max: n.number,
1671
- /**
1672
- * The minimum allowed value of the slider.
1673
- * Should not be equal to max.
1674
- * @default 0
1675
- */
1676
- min: n.number,
1677
- /**
1678
- * Name attribute of the hidden `input` element.
1679
- */
1680
- name: n.string,
1681
- /**
1682
- * Callback function that is fired when the slider's value changed.
1683
- *
1684
- * @param {Event} event The event source of the callback.
1685
- * You can pull out the new value by accessing `event.target.value` (any).
1686
- * **Warning**: This is a generic event not a change event.
1687
- * @param {Value} value The new value.
1688
- * @param {number} activeThumb Index of the currently moved thumb.
1689
- */
1690
- onChange: n.func,
1691
- /**
1692
- * Callback function that is fired when the `mouseup` is triggered.
1693
- *
1694
- * @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
1695
- * @param {Value} value The new value.
1696
- */
1697
- onChangeCommitted: n.func,
1698
- /**
1699
- * The component orientation.
1700
- * @default 'horizontal'
1701
- */
1702
- orientation: n.oneOf(["horizontal", "vertical"]),
1703
- /**
1704
- * A transformation function, to change the scale of the slider.
1705
- * @param {any} x
1706
- * @returns {any}
1707
- * @default function Identity(x) {
1708
- * return x;
1709
- * }
1710
- */
1711
- scale: n.func,
1712
- /**
1713
- * The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
1714
- * @default 10
1715
- */
1716
- shiftStep: n.number,
1717
- /**
1718
- * The size of the slider.
1719
- * @default 'medium'
1720
- */
1721
- size: n.oneOfType([n.oneOf(["small", "medium"]), n.string]),
1722
- /**
1723
- * The props used for each slot inside the Slider.
1724
- * @default {}
1725
- */
1726
- slotProps: n.shape({
1727
- input: n.oneOfType([n.func, n.object]),
1728
- mark: n.oneOfType([n.func, n.object]),
1729
- markLabel: n.oneOfType([n.func, n.object]),
1730
- rail: n.oneOfType([n.func, n.object]),
1731
- root: n.oneOfType([n.func, n.object]),
1732
- thumb: n.oneOfType([n.func, n.object]),
1733
- track: n.oneOfType([n.func, n.object]),
1734
- valueLabel: n.oneOfType([n.func, n.shape({
1735
- children: n.element,
1736
- className: n.string,
1737
- open: n.bool,
1738
- style: n.object,
1739
- value: n.node,
1740
- valueLabelDisplay: n.oneOf(["auto", "off", "on"])
1741
- })])
1742
- }),
1743
- /**
1744
- * The components used for each slot inside the Slider.
1745
- * Either a string to use a HTML element or a component.
1746
- * @default {}
1747
- */
1748
- slots: n.shape({
1749
- input: n.elementType,
1750
- mark: n.elementType,
1751
- markLabel: n.elementType,
1752
- rail: n.elementType,
1753
- root: n.elementType,
1754
- thumb: n.elementType,
1755
- track: n.elementType,
1756
- valueLabel: n.elementType
1757
- }),
1758
- /**
1759
- * The granularity with which the slider can step through values. (A "discrete" slider.)
1760
- * The `min` prop serves as the origin for the valid values.
1761
- * We recommend (max - min) to be evenly divisible by the step.
1762
- *
1763
- * When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
1764
- * @default 1
1765
- */
1766
- step: n.number,
1767
- /**
1768
- * The system prop that allows defining system overrides as well as additional CSS styles.
1769
- */
1770
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1771
- /**
1772
- * Tab index attribute of the hidden `input` element.
1773
- */
1774
- tabIndex: n.number,
1775
- /**
1776
- * The track presentation:
1777
- *
1778
- * - `normal` the track will render a bar representing the slider value.
1779
- * - `inverted` the track will render a bar representing the remaining slider value.
1780
- * - `false` the track will render without a bar.
1781
- * @default 'normal'
1782
- */
1783
- track: n.oneOf(["inverted", "normal", !1]),
1784
- /**
1785
- * The value of the slider.
1786
- * For ranged sliders, provide an array with two values.
1787
- */
1788
- value: n.oneOfType([n.arrayOf(n.number), n.number]),
1789
- /**
1790
- * Controls when the value label is displayed:
1791
- *
1792
- * - `auto` the value label will display when the thumb is hovered or focused.
1793
- * - `on` will display persistently.
1794
- * - `off` will never display.
1795
- * @default 'off'
1796
- */
1797
- valueLabelDisplay: n.oneOf(["auto", "off", "on"]),
1798
- /**
1799
- * The format function the value label's value.
1800
- *
1801
- * When a function is provided, it should have the following signature:
1802
- *
1803
- * - {number} value The value label's value to format
1804
- * - {number} index The value label's index to format
1805
- * @param {any} x
1806
- * @returns {any}
1807
- * @default function Identity(x) {
1808
- * return x;
1809
- * }
1810
- */
1811
- valueLabelFormat: n.oneOfType([n.func, n.string])
1812
- });
1813
- var On = "[object Number]";
1814
- function Cn(e) {
1815
- return typeof e == "number" || Xt(e) && Kt(e) == On;
1816
- }
1817
- const Wn = Ot((e) => {
1818
- var f, b, d;
1819
- const t = Pe(), { store: r } = e, { t: o } = Ct();
1820
- function s(u, g) {
1821
- g === e.velocity || !Cn(g) || e.onVelocityChange(g);
1822
- }
1823
- return /* @__PURE__ */ y.jsxs(ge, { direction: "row", gap: 2, alignItems: "center", children: [
1824
- r.showVelocityLegend && /* @__PURE__ */ y.jsx(
1825
- ut,
1826
- {
1827
- sx: {
1828
- color: (d = (b = (f = t.componentsExt) == null ? void 0 : f.JoggingPanel) == null ? void 0 : b.VelocitySlider) == null ? void 0 : d.sliderLegendColor,
1829
- fontSize: "14px"
1830
- },
1831
- children: o("Jogging.Velocity.bt")
1832
- }
1833
- ),
1834
- /* @__PURE__ */ y.jsx(
1835
- ht,
1836
- {
1837
- value: e.velocity,
1838
- color: "secondary",
1839
- onChange: s,
1840
- min: e.min,
1841
- max: e.max,
1842
- "aria-labelledby": "input-slider",
1843
- disabled: e.disabled,
1844
- sx: {
1845
- "& .MuiSlider-valueLabelOpen": {
1846
- zIndex: 100,
1847
- backgroundColor: "transparent",
1848
- top: "0px"
1849
- }
1850
- }
1851
- }
1852
- ),
1853
- r.showVelocitySliderLabel && (e.renderValue ? e.renderValue(e.velocity) : /* @__PURE__ */ y.jsx(jn, { value: e.velocity.toString() }))
1854
- ] });
1855
- });
1856
- function jn({ value: e, sx: t }) {
1857
- var o;
1858
- const r = Pe();
1859
- return /* @__PURE__ */ y.jsx(
1860
- ge,
1861
- {
1862
- direction: "row",
1863
- justifyContent: "center",
1864
- alignItems: "center",
1865
- gap: "5px",
1866
- sx: {
1867
- padding: "6px 12px",
1868
- background: (o = r.palette.backgroundPaperElevation) == null ? void 0 : o[8],
1869
- borderRadius: "10px",
1870
- minWidth: "111px",
1871
- ...t
1872
- },
1873
- children: /* @__PURE__ */ y.jsx(
1874
- ut,
1875
- {
1876
- component: "span",
1877
- sx: {
1878
- textAlign: "right",
1879
- fontSize: "14px",
1880
- opacity: 0.8,
1881
- color: r.palette.text.primary,
1882
- whiteSpace: "nowrap"
1883
- },
1884
- children: e
1885
- }
1886
- )
1887
- }
1888
- );
1889
- }
1890
- export {
1891
- qn as L,
1892
- $e as S,
1893
- Wn as V,
1894
- Qt as a,
1895
- jn as b,
1896
- _n as c,
1897
- Kt as d,
1898
- $t as f,
1899
- Xt as i,
1900
- Dn as j,
1901
- Jt as p,
1902
- Pt as r,
1903
- Un as t,
1904
- Fn as u
1905
- };
1906
- //# sourceMappingURL=VelocitySlider-QSg_8eb1.js.map