@wandelbots/wandelbots-js-react-components 1.44.2 → 1.44.3
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.
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function wu() {
|
|
|
100
100
|
}
|
|
101
101
|
var O = !1, w = !1, C = !1, R = !1, U = !1, oe;
|
|
102
102
|
oe = Symbol.for("react.module.reference");
|
|
103
|
-
function
|
|
103
|
+
function V(g) {
|
|
104
104
|
return !!(typeof g == "string" || typeof g == "function" || g === n || g === i || U || g === o || g === c || g === u || R || g === v || O || w || C || typeof g == "object" && g !== null && (g.$$typeof === f || g.$$typeof === d || g.$$typeof === s || g.$$typeof === a || g.$$typeof === l || // This needs to include all possible module reference object
|
|
105
105
|
// types supported by any Flight configuration anywhere since
|
|
106
106
|
// we don't know which Flight build this will end up being used
|
|
@@ -291,17 +291,17 @@ function wu() {
|
|
|
291
291
|
}
|
|
292
292
|
} catch (Ie) {
|
|
293
293
|
if (Ie && I && typeof Ie.stack == "string") {
|
|
294
|
-
for (var
|
|
294
|
+
for (var F = Ie.stack.split(`
|
|
295
295
|
`), Pe = I.stack.split(`
|
|
296
|
-
`), pe =
|
|
296
|
+
`), pe = F.length - 1, ye = Pe.length - 1; pe >= 1 && ye >= 0 && F[pe] !== Pe[ye]; )
|
|
297
297
|
ye--;
|
|
298
298
|
for (; pe >= 1 && ye >= 0; pe--, ye--)
|
|
299
|
-
if (
|
|
299
|
+
if (F[pe] !== Pe[ye]) {
|
|
300
300
|
if (pe !== 1 || ye !== 1)
|
|
301
301
|
do
|
|
302
|
-
if (pe--, ye--, ye < 0 ||
|
|
302
|
+
if (pe--, ye--, ye < 0 || F[pe] !== Pe[ye]) {
|
|
303
303
|
var Ke = `
|
|
304
|
-
` +
|
|
304
|
+
` + F[pe].replace(" at new ", " at ");
|
|
305
305
|
return g.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", g.displayName)), typeof g == "function" && lt.set(g, Ke), Ke;
|
|
306
306
|
}
|
|
307
307
|
while (pe >= 1 && ye >= 0);
|
|
@@ -363,17 +363,17 @@ function wu() {
|
|
|
363
363
|
var te = Function.call.bind(ue);
|
|
364
364
|
for (var J in g)
|
|
365
365
|
if (te(g, J)) {
|
|
366
|
-
var
|
|
366
|
+
var F = void 0;
|
|
367
367
|
try {
|
|
368
368
|
if (typeof g[J] != "function") {
|
|
369
369
|
var Pe = Error((I || "React class") + ": " + k + " type `" + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[J] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
370
370
|
throw Pe.name = "Invariant Violation", Pe;
|
|
371
371
|
}
|
|
372
|
-
|
|
372
|
+
F = g[J](E, J, I, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
373
373
|
} catch (pe) {
|
|
374
|
-
|
|
374
|
+
F = pe;
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
F && !(F instanceof Error) && (_t(D), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", k, J, typeof F), _t(null)), F instanceof Error && !(F.message in je) && (je[F.message] = !0, _t(D), T("Failed %s type: %s", k, F.message), _t(null));
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -453,7 +453,7 @@ function wu() {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
var Ae = function(g, E, k, I, D, te, J) {
|
|
456
|
-
var
|
|
456
|
+
var F = {
|
|
457
457
|
// This tag allows us to uniquely identify this as a React Element
|
|
458
458
|
$$typeof: t,
|
|
459
459
|
// Built-in properties that belong on the element
|
|
@@ -464,27 +464,27 @@ function wu() {
|
|
|
464
464
|
// Record the component responsible for creating this element.
|
|
465
465
|
_owner: te
|
|
466
466
|
};
|
|
467
|
-
return
|
|
467
|
+
return F._store = {}, Object.defineProperty(F._store, "validated", {
|
|
468
468
|
configurable: !1,
|
|
469
469
|
enumerable: !1,
|
|
470
470
|
writable: !0,
|
|
471
471
|
value: !1
|
|
472
|
-
}), Object.defineProperty(
|
|
472
|
+
}), Object.defineProperty(F, "_self", {
|
|
473
473
|
configurable: !1,
|
|
474
474
|
enumerable: !1,
|
|
475
475
|
writable: !1,
|
|
476
476
|
value: I
|
|
477
|
-
}), Object.defineProperty(
|
|
477
|
+
}), Object.defineProperty(F, "_source", {
|
|
478
478
|
configurable: !1,
|
|
479
479
|
enumerable: !1,
|
|
480
480
|
writable: !1,
|
|
481
481
|
value: D
|
|
482
|
-
}), Object.freeze && (Object.freeze(
|
|
482
|
+
}), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
|
|
483
483
|
};
|
|
484
484
|
function $t(g, E, k, I, D) {
|
|
485
485
|
{
|
|
486
|
-
var te, J = {},
|
|
487
|
-
k !== void 0 && (tr(k),
|
|
486
|
+
var te, J = {}, F = null, Pe = null;
|
|
487
|
+
k !== void 0 && (tr(k), F = "" + k), K(E) && (tr(E.key), F = "" + E.key), X(E) && (Pe = E.ref, Be(E, D));
|
|
488
488
|
for (te in E)
|
|
489
489
|
ue.call(E, te) && !P.hasOwnProperty(te) && (J[te] = E[te]);
|
|
490
490
|
if (g && g.defaultProps) {
|
|
@@ -492,11 +492,11 @@ function wu() {
|
|
|
492
492
|
for (te in pe)
|
|
493
493
|
J[te] === void 0 && (J[te] = pe[te]);
|
|
494
494
|
}
|
|
495
|
-
if (
|
|
495
|
+
if (F || Pe) {
|
|
496
496
|
var ye = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
|
497
|
-
|
|
497
|
+
F && Ge(J, ye), Pe && ee(J, ye);
|
|
498
498
|
}
|
|
499
|
-
return Ae(g,
|
|
499
|
+
return Ae(g, F, Pe, D, I, nt.current, J);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
var rr = S.ReactCurrentOwner, Pr = S.ReactDebugCurrentFrame;
|
|
@@ -612,14 +612,14 @@ Check the top-level render call using <` + k + ">.");
|
|
|
612
612
|
var gn = {};
|
|
613
613
|
function hn(g, E, k, I, D, te) {
|
|
614
614
|
{
|
|
615
|
-
var J =
|
|
615
|
+
var J = V(g);
|
|
616
616
|
if (!J) {
|
|
617
|
-
var
|
|
618
|
-
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (
|
|
617
|
+
var F = "";
|
|
618
|
+
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
619
619
|
var Pe = jr();
|
|
620
|
-
Pe ?
|
|
620
|
+
Pe ? F += Pe : F += $r();
|
|
621
621
|
var pe;
|
|
622
|
-
g === null ? pe = "null" : Dt(g) ? pe = "array" : g !== void 0 && g.$$typeof === t ? (pe = "<" + (W(g.type) || "Unknown") + " />",
|
|
622
|
+
g === null ? pe = "null" : Dt(g) ? pe = "array" : g !== void 0 && g.$$typeof === t ? (pe = "<" + (W(g.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : pe = typeof g, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", pe, F);
|
|
623
623
|
}
|
|
624
624
|
var ye = $t(g, E, k, D, te);
|
|
625
625
|
if (ye == null)
|
|
@@ -2525,7 +2525,7 @@ function ud() {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
|
-
var C = s, R = i, U = e, oe = l,
|
|
2528
|
+
var C = s, R = i, U = e, oe = l, V = r, N = f, H = d, W = t, Y = o, q = n, xe = c, ae = u, Z = !1, Oe = !1;
|
|
2529
2529
|
function $e(j) {
|
|
2530
2530
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2531
2531
|
}
|
|
@@ -2568,7 +2568,7 @@ function ud() {
|
|
|
2568
2568
|
function Ve(j) {
|
|
2569
2569
|
return w(j) === u;
|
|
2570
2570
|
}
|
|
2571
|
-
se.ContextConsumer = C, se.ContextProvider = R, se.Element = U, se.ForwardRef = oe, se.Fragment =
|
|
2571
|
+
se.ContextConsumer = C, se.ContextProvider = R, se.Element = U, se.ForwardRef = oe, se.Fragment = V, se.Lazy = N, se.Memo = H, se.Portal = W, se.Profiler = Y, se.StrictMode = q, se.Suspense = xe, se.SuspenseList = ae, se.isAsyncMode = $e, se.isConcurrentMode = rt, se.isContextConsumer = mt, se.isContextProvider = He, se.isElement = Se, se.isForwardRef = Rt, se.isFragment = st, se.isLazy = We, se.isMemo = Fe, se.isPortal = at, se.isProfiler = lt, se.isStrictMode = Mt, se.isSuspense = yt, se.isSuspenseList = Ve, se.isValidElementType = O, se.typeOf = w;
|
|
2572
2572
|
}()), se;
|
|
2573
2573
|
}
|
|
2574
2574
|
process.env.NODE_ENV === "production" ? Qo.exports = cd() : Qo.exports = ud();
|
|
@@ -2732,12 +2732,12 @@ function xd(e = {}) {
|
|
|
2732
2732
|
const N = new Array(oe).fill("");
|
|
2733
2733
|
R = [...w, ...N], R.raw = [...w.raw, ...N];
|
|
2734
2734
|
}
|
|
2735
|
-
const
|
|
2735
|
+
const V = T(R, ...U);
|
|
2736
2736
|
if (process.env.NODE_ENV !== "production") {
|
|
2737
2737
|
let N;
|
|
2738
|
-
l && (N = `${l}${Ce(c || "")}`), N === void 0 && (N = `Styled(${il(s)})`),
|
|
2738
|
+
l && (N = `${l}${Ce(c || "")}`), N === void 0 && (N = `Styled(${il(s)})`), V.displayName = N;
|
|
2739
2739
|
}
|
|
2740
|
-
return s.muiName && (
|
|
2740
|
+
return s.muiName && (V.muiName = s.muiName), V;
|
|
2741
2741
|
};
|
|
2742
2742
|
return T.withConfig && (O.withConfig = T.withConfig), O;
|
|
2743
2743
|
};
|
|
@@ -3416,12 +3416,12 @@ function Rp(e = {}) {
|
|
|
3416
3416
|
const N = new Array(oe).fill("");
|
|
3417
3417
|
R = [...w, ...N], R.raw = [...w.raw, ...N];
|
|
3418
3418
|
}
|
|
3419
|
-
const
|
|
3419
|
+
const V = T(R, ...U);
|
|
3420
3420
|
if (process.env.NODE_ENV !== "production") {
|
|
3421
3421
|
let N;
|
|
3422
|
-
l && (N = `${l}${(0, hp.default)(c || "")}`), N === void 0 && (N = `Styled(${(0, mp.default)(s)})`),
|
|
3422
|
+
l && (N = `${l}${(0, hp.default)(c || "")}`), N === void 0 && (N = `Styled(${(0, mp.default)(s)})`), V.displayName = N;
|
|
3423
3423
|
}
|
|
3424
|
-
return s.muiName && (
|
|
3424
|
+
return s.muiName && (V.muiName = s.muiName), V;
|
|
3425
3425
|
};
|
|
3426
3426
|
return T.withConfig && (O.withConfig = T.withConfig), O;
|
|
3427
3427
|
};
|
|
@@ -4596,7 +4596,7 @@ class Kn extends go {
|
|
|
4596
4596
|
let O = !1, w = !1;
|
|
4597
4597
|
const C = r.count !== void 0 && !B(r.count), R = Kn.hasDefaultValue(r), U = C ? this.pluralResolver.getSuffix(c, r.count, r) : "", oe = r.ordinal && C ? this.pluralResolver.getSuffix(c, r.count, {
|
|
4598
4598
|
ordinal: !1
|
|
4599
|
-
}) : "",
|
|
4599
|
+
}) : "", V = C && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), N = V && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${U}`] || r[`defaultValue${oe}`] || r.defaultValue;
|
|
4600
4600
|
!this.isValidLookup(f) && R && (O = !0, f = N), this.isValidLookup(f) || (w = !0, f = s);
|
|
4601
4601
|
const W = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && w ? void 0 : f, Y = R && N !== f && this.options.updateMissing;
|
|
4602
4602
|
if (w || O || Y) {
|
|
@@ -4619,7 +4619,7 @@ class Kn extends go {
|
|
|
4619
4619
|
};
|
|
4620
4620
|
this.options.saveMissing && (this.options.saveMissingPlurals && C ? q.forEach((Z) => {
|
|
4621
4621
|
const Oe = this.pluralResolver.getSuffixes(Z, r);
|
|
4622
|
-
|
|
4622
|
+
V && r[`defaultValue${this.options.pluralSeparator}zero`] && Oe.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Oe.push(`${this.options.pluralSeparator}zero`), Oe.forEach(($e) => {
|
|
4623
4623
|
ae([Z], s + $e, r[`defaultValue${$e}`] || N);
|
|
4624
4624
|
});
|
|
4625
4625
|
}) : ae(q, s, N));
|
|
@@ -5795,8 +5795,8 @@ const Ls = cn(
|
|
|
5795
5795
|
}) => {
|
|
5796
5796
|
var $, O, w, C, R, U, oe;
|
|
5797
5797
|
un(() => {
|
|
5798
|
-
const
|
|
5799
|
-
N && (N.textContent =
|
|
5798
|
+
const V = r(), N = f.current;
|
|
5799
|
+
N && (N.textContent = V);
|
|
5800
5800
|
});
|
|
5801
5801
|
const l = gt(), [c, u] = Xt(null);
|
|
5802
5802
|
St(() => {
|
|
@@ -5848,8 +5848,8 @@ const Ls = cn(
|
|
|
5848
5848
|
"svg path": { fill: l.palette.action.disabled }
|
|
5849
5849
|
}
|
|
5850
5850
|
};
|
|
5851
|
-
function S(
|
|
5852
|
-
i ||
|
|
5851
|
+
function S(V, N) {
|
|
5852
|
+
i || V.button === 0 && (u(N), n(N));
|
|
5853
5853
|
}
|
|
5854
5854
|
function T() {
|
|
5855
5855
|
u(null), o();
|
|
@@ -5860,7 +5860,7 @@ const Ls = cn(
|
|
|
5860
5860
|
{
|
|
5861
5861
|
disabled: i,
|
|
5862
5862
|
disableRipple: !0,
|
|
5863
|
-
onPointerDown: (
|
|
5863
|
+
onPointerDown: (V) => S(V, "-"),
|
|
5864
5864
|
onPointerUp: T,
|
|
5865
5865
|
onPointerOut: T,
|
|
5866
5866
|
size: "large",
|
|
@@ -5929,7 +5929,7 @@ const Ls = cn(
|
|
|
5929
5929
|
{
|
|
5930
5930
|
disableRipple: !0,
|
|
5931
5931
|
disabled: i,
|
|
5932
|
-
onPointerDown: (
|
|
5932
|
+
onPointerDown: (V) => S(V, "+"),
|
|
5933
5933
|
onPointerUp: T,
|
|
5934
5934
|
onPointerOut: T,
|
|
5935
5935
|
size: "large",
|
|
@@ -6315,8 +6315,8 @@ const _h = cn(
|
|
|
6315
6315
|
color: (O = u.palette.backgroundPaperElevation) == null ? void 0 : O[11]
|
|
6316
6316
|
}, f = vi(() => ({
|
|
6317
6317
|
activeJoggingDir: null,
|
|
6318
|
-
startJogging(
|
|
6319
|
-
this.activeJoggingDir =
|
|
6318
|
+
startJogging(V) {
|
|
6319
|
+
this.activeJoggingDir = V, e(V);
|
|
6320
6320
|
},
|
|
6321
6321
|
stopJogging() {
|
|
6322
6322
|
this.activeJoggingDir = null, t();
|
|
@@ -6325,24 +6325,24 @@ const _h = cn(
|
|
|
6325
6325
|
c(o());
|
|
6326
6326
|
}, 50);
|
|
6327
6327
|
un(v);
|
|
6328
|
-
function y(
|
|
6329
|
-
|
|
6328
|
+
function y(V) {
|
|
6329
|
+
V.button === 0 && f.startJogging("-");
|
|
6330
6330
|
}
|
|
6331
|
-
function m(
|
|
6332
|
-
|
|
6331
|
+
function m(V) {
|
|
6332
|
+
V.button === 0 && f.startJogging("+");
|
|
6333
6333
|
}
|
|
6334
|
-
function h(
|
|
6334
|
+
function h(V) {
|
|
6335
6335
|
f.stopJogging();
|
|
6336
6336
|
}
|
|
6337
|
-
function S(
|
|
6338
|
-
|
|
6337
|
+
function S(V) {
|
|
6338
|
+
f.stopJogging();
|
|
6339
6339
|
}
|
|
6340
|
-
function T(
|
|
6341
|
-
if (
|
|
6340
|
+
function T(V, N = 1) {
|
|
6341
|
+
if (V === void 0 || isNaN(V)) return "";
|
|
6342
6342
|
const H = a("General.degree.variable", {
|
|
6343
|
-
amount:
|
|
6343
|
+
amount: V.toFixed(N)
|
|
6344
6344
|
});
|
|
6345
|
-
return
|
|
6345
|
+
return V > 0 && N === 0 ? `+${H}` : H;
|
|
6346
6346
|
}
|
|
6347
6347
|
return /* @__PURE__ */ b.jsxs(
|
|
6348
6348
|
br,
|
|
@@ -6388,7 +6388,14 @@ const _h = cn(
|
|
|
6388
6388
|
borderRadius: "16px 0px 0px 16px",
|
|
6389
6389
|
...f.activeJoggingDir === "-" ? d : {}
|
|
6390
6390
|
},
|
|
6391
|
-
children: /* @__PURE__ */ b.jsx(
|
|
6391
|
+
children: /* @__PURE__ */ b.jsx(
|
|
6392
|
+
Tl,
|
|
6393
|
+
{
|
|
6394
|
+
sx: {
|
|
6395
|
+
"pointer-events": "none"
|
|
6396
|
+
}
|
|
6397
|
+
}
|
|
6398
|
+
)
|
|
6392
6399
|
}
|
|
6393
6400
|
),
|
|
6394
6401
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -6477,7 +6484,14 @@ const _h = cn(
|
|
|
6477
6484
|
borderRadius: "0px 16px 16px 0px",
|
|
6478
6485
|
...f.activeJoggingDir === "+" ? d : {}
|
|
6479
6486
|
},
|
|
6480
|
-
children: /* @__PURE__ */ b.jsx(
|
|
6487
|
+
children: /* @__PURE__ */ b.jsx(
|
|
6488
|
+
Ol,
|
|
6489
|
+
{
|
|
6490
|
+
sx: {
|
|
6491
|
+
"pointer-events": "none"
|
|
6492
|
+
}
|
|
6493
|
+
}
|
|
6494
|
+
)
|
|
6481
6495
|
}
|
|
6482
6496
|
)
|
|
6483
6497
|
]
|
|
@@ -9611,7 +9625,7 @@ function U1(e) {
|
|
|
9611
9625
|
shiftStep: h = 10,
|
|
9612
9626
|
tabIndex: S,
|
|
9613
9627
|
value: T
|
|
9614
|
-
} = e, $ = L.useRef(), [O, w] = L.useState(-1), [C, R] = L.useState(-1), [U, oe] = L.useState(!1),
|
|
9628
|
+
} = e, $ = L.useRef(), [O, w] = L.useState(-1), [C, R] = L.useState(-1), [U, oe] = L.useState(!1), V = L.useRef(0), [N, H] = al({
|
|
9615
9629
|
controlled: T,
|
|
9616
9630
|
default: r ?? l,
|
|
9617
9631
|
name: "Slider"
|
|
@@ -9724,7 +9738,7 @@ function U1(e) {
|
|
|
9724
9738
|
const A = Tn(P, $);
|
|
9725
9739
|
if (!A)
|
|
9726
9740
|
return;
|
|
9727
|
-
if (
|
|
9741
|
+
if (V.current += 1, P.type === "mousemove" && P.buttons === 0) {
|
|
9728
9742
|
ue(P);
|
|
9729
9743
|
return;
|
|
9730
9744
|
}
|
|
@@ -9739,7 +9753,7 @@ function U1(e) {
|
|
|
9739
9753
|
sliderRef: Se,
|
|
9740
9754
|
activeIndex: G,
|
|
9741
9755
|
setActive: w
|
|
9742
|
-
}), H(M), !U &&
|
|
9756
|
+
}), H(M), !U && V.current > N1 && oe(!0), W && !En(M, N) && W(P, M, G);
|
|
9743
9757
|
}), ue = kn((P) => {
|
|
9744
9758
|
const A = Tn(P, $);
|
|
9745
9759
|
if (oe(!1), !A)
|
|
@@ -9771,7 +9785,7 @@ function U1(e) {
|
|
|
9771
9785
|
setActive: w
|
|
9772
9786
|
}), H(X), W && !En(X, N) && W(P, X, K);
|
|
9773
9787
|
}
|
|
9774
|
-
|
|
9788
|
+
V.current = 0;
|
|
9775
9789
|
const G = yr(Se.current);
|
|
9776
9790
|
G.addEventListener("touchmove", Q, {
|
|
9777
9791
|
passive: !0
|
|
@@ -9813,7 +9827,7 @@ function U1(e) {
|
|
|
9813
9827
|
setActive: w
|
|
9814
9828
|
}), H(K), W && !En(K, N) && W(A, K, Be);
|
|
9815
9829
|
}
|
|
9816
|
-
|
|
9830
|
+
V.current = 0;
|
|
9817
9831
|
const X = yr(Se.current);
|
|
9818
9832
|
X.addEventListener("mousemove", Q, {
|
|
9819
9833
|
passive: !0
|
|
@@ -10448,7 +10462,7 @@ const G1 = Ot("span", {
|
|
|
10448
10462
|
}, tv = ({
|
|
10449
10463
|
children: e
|
|
10450
10464
|
}) => e, bc = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
10451
|
-
var n, o, i, s, a, l, c, u, d, f, v, y, m, h, S, T, $, O, w, C, R, U, oe,
|
|
10465
|
+
var n, o, i, s, a, l, c, u, d, f, v, y, m, h, S, T, $, O, w, C, R, U, oe, V;
|
|
10452
10466
|
const N = Ai({
|
|
10453
10467
|
props: t,
|
|
10454
10468
|
name: "MuiSlider"
|
|
@@ -10517,7 +10531,7 @@ const G1 = Ot("span", {
|
|
|
10517
10531
|
rootRef: r
|
|
10518
10532
|
}));
|
|
10519
10533
|
we.marked = G.length > 0 && G.some((I) => I.label), we.dragging = M, we.focusedThumbIndex = P;
|
|
10520
|
-
const ee = ev(we), Ae = (n = (o = Q == null ? void 0 : Q.root) != null ? o : ae.Root) != null ? n : G1, $t = (i = (s = Q == null ? void 0 : Q.rail) != null ? s : ae.Rail) != null ? i : K1, rr = (a = (l = Q == null ? void 0 : Q.track) != null ? l : ae.Track) != null ? a : q1, Pr = (c = (u = Q == null ? void 0 : Q.thumb) != null ? u : ae.Thumb) != null ? c : Y1, bt = (d = (f = Q == null ? void 0 : Q.valueLabel) != null ? f : ae.ValueLabel) != null ? d : X1, Ft = (v = (y = Q == null ? void 0 : Q.mark) != null ? y : ae.Mark) != null ? v : Z1, Vt = (m = (h = Q == null ? void 0 : Q.markLabel) != null ? h : ae.MarkLabel) != null ? m : Q1, $r = (S = (T = Q == null ? void 0 : Q.input) != null ? T : ae.Input) != null ? S : "input", jr = ($ = j == null ? void 0 : j.root) != null ? $ : Z.root, pn = (O = j == null ? void 0 : j.rail) != null ? O : Z.rail, kr = (w = j == null ? void 0 : j.track) != null ? w : Z.track, nr = (C = j == null ? void 0 : j.thumb) != null ? C : Z.thumb, or = (R = j == null ? void 0 : j.valueLabel) != null ? R : Z.valueLabel, Eo = (U = j == null ? void 0 : j.mark) != null ? U : Z.mark, Co = (oe = j == null ? void 0 : j.markLabel) != null ? oe : Z.markLabel, gn = (
|
|
10534
|
+
const ee = ev(we), Ae = (n = (o = Q == null ? void 0 : Q.root) != null ? o : ae.Root) != null ? n : G1, $t = (i = (s = Q == null ? void 0 : Q.rail) != null ? s : ae.Rail) != null ? i : K1, rr = (a = (l = Q == null ? void 0 : Q.track) != null ? l : ae.Track) != null ? a : q1, Pr = (c = (u = Q == null ? void 0 : Q.thumb) != null ? u : ae.Thumb) != null ? c : Y1, bt = (d = (f = Q == null ? void 0 : Q.valueLabel) != null ? f : ae.ValueLabel) != null ? d : X1, Ft = (v = (y = Q == null ? void 0 : Q.mark) != null ? y : ae.Mark) != null ? v : Z1, Vt = (m = (h = Q == null ? void 0 : Q.markLabel) != null ? h : ae.MarkLabel) != null ? m : Q1, $r = (S = (T = Q == null ? void 0 : Q.input) != null ? T : ae.Input) != null ? S : "input", jr = ($ = j == null ? void 0 : j.root) != null ? $ : Z.root, pn = (O = j == null ? void 0 : j.rail) != null ? O : Z.rail, kr = (w = j == null ? void 0 : j.track) != null ? w : Z.track, nr = (C = j == null ? void 0 : j.thumb) != null ? C : Z.thumb, or = (R = j == null ? void 0 : j.valueLabel) != null ? R : Z.valueLabel, Eo = (U = j == null ? void 0 : j.mark) != null ? U : Z.mark, Co = (oe = j == null ? void 0 : j.markLabel) != null ? oe : Z.markLabel, gn = (V = j == null ? void 0 : j.input) != null ? V : Z.input, hn = jt({
|
|
10521
10535
|
elementType: Ae,
|
|
10522
10536
|
getSlotProps: Dt,
|
|
10523
10537
|
externalSlotProps: jr,
|
|
@@ -10570,31 +10584,31 @@ const G1 = Ot("span", {
|
|
|
10570
10584
|
return /* @__PURE__ */ b.jsxs(Ae, _({}, hn, {
|
|
10571
10585
|
children: [/* @__PURE__ */ b.jsx($t, _({}, Ro)), /* @__PURE__ */ b.jsx(rr, _({}, _o)), G.filter((I) => I.value >= Fe && I.value <= We).map((I, D) => {
|
|
10572
10586
|
const te = Qn(I.value, Fe, We), J = Pt[nt].offset(te);
|
|
10573
|
-
let
|
|
10574
|
-
return ue === !1 ?
|
|
10587
|
+
let F;
|
|
10588
|
+
return ue === !1 ? F = X.indexOf(I.value) !== -1 : F = ue === "normal" && (A ? I.value >= X[0] && I.value <= X[X.length - 1] : I.value <= X[0]) || ue === "inverted" && (A ? I.value <= X[0] || I.value >= X[X.length - 1] : I.value >= X[0]), /* @__PURE__ */ b.jsxs(L.Fragment, {
|
|
10575
10589
|
children: [/* @__PURE__ */ b.jsx(Ft, _({
|
|
10576
10590
|
"data-index": D
|
|
10577
10591
|
}, g, !Jr(Ft) && {
|
|
10578
|
-
markActive:
|
|
10592
|
+
markActive: F
|
|
10579
10593
|
}, {
|
|
10580
10594
|
style: _({}, J, g.style),
|
|
10581
|
-
className: dt(g.className,
|
|
10595
|
+
className: dt(g.className, F && ee.markActive)
|
|
10582
10596
|
})), I.label != null ? /* @__PURE__ */ b.jsx(Vt, _({
|
|
10583
10597
|
"aria-hidden": !0,
|
|
10584
10598
|
"data-index": D
|
|
10585
10599
|
}, E, !Jr(Vt) && {
|
|
10586
|
-
markLabelActive:
|
|
10600
|
+
markLabelActive: F
|
|
10587
10601
|
}, {
|
|
10588
10602
|
style: _({}, J, E.style),
|
|
10589
|
-
className: dt(ee.markLabel, E.className,
|
|
10603
|
+
className: dt(ee.markLabel, E.className, F && ee.markLabelActive),
|
|
10590
10604
|
children: I.label
|
|
10591
10605
|
})) : null]
|
|
10592
10606
|
}, D);
|
|
10593
10607
|
}), X.map((I, D) => {
|
|
10594
|
-
const te = Qn(I, Fe, We), J = Pt[nt].offset(te),
|
|
10608
|
+
const te = Qn(I, Fe, We), J = Pt[nt].offset(te), F = je === "off" ? tv : bt;
|
|
10595
10609
|
return (
|
|
10596
10610
|
/* 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. */
|
|
10597
|
-
/* @__PURE__ */ b.jsx(
|
|
10611
|
+
/* @__PURE__ */ b.jsx(F, _({}, !Jr(F) && {
|
|
10598
10612
|
valueLabelFormat: ke,
|
|
10599
10613
|
valueLabelDisplay: je,
|
|
10600
10614
|
value: typeof ke == "function" ? ke(Ve(I), D) : ke,
|