@wandelbots/wandelbots-js-react-components 2.15.0 → 2.15.1
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/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +6 -6
- package/dist/index.cjs +32 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +538 -529
- package/dist/index.js.map +1 -1
- package/dist/themes/createDarkTheme.d.ts.map +1 -1
- package/dist/themes/themeTypes.d.ts +1 -0
- package/dist/themes/themeTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianAxisControl.tsx +1 -0
- package/src/components/jogging/JoggingCartesianTab.tsx +6 -2
- package/src/components/jogging/JoggingOptions.tsx +3 -7
- package/src/components/jogging/JoggingPanel.tsx +8 -1
- package/src/components/jogging/JoggingStore.ts +2 -2
- package/src/i18n/locales/de/translations.json +8 -4
- package/src/i18n/locales/en/translations.json +7 -3
- package/src/themes/createDarkTheme.ts +3 -0
- package/src/themes/themeTypes.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var Qd = Object.defineProperty;
|
|
|
2
2
|
var Kd = (e, t, r) => t in e ? Qd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ua = (e, t, r) => Kd(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as G from "react";
|
|
5
|
-
import Dl, { forwardRef as Le, useEffect as
|
|
5
|
+
import Dl, { forwardRef as Le, useEffect as Yt, useState as gr, useRef as Wr, useCallback as zl, Suspense as Gl, lazy as Yd } from "react";
|
|
6
6
|
import { Environment as Xd, Lightformer as or, Line as Hl, useGLTF as Zd } from "@react-three/drei";
|
|
7
7
|
import { useThree as eu } from "@react-three/fiber";
|
|
8
8
|
import * as Ee from "three";
|
|
@@ -10,7 +10,7 @@ import { Vector3 as Cn, Matrix4 as pa, Quaternion as tu } from "three";
|
|
|
10
10
|
import { ConvexGeometry as ru } from "three-stdlib";
|
|
11
11
|
import { useTheme as ct, IconButton as Pn, Typography as rt, Slider as au, Stack as _e, CircularProgress as nu, capitalize as su, styled as ho, InputLabel as ou, Select as iu, FormControl as lu, Box as cu, MenuItem as ha, ToggleButtonGroup as du, Divider as Qr, ToggleButton as $o, Tabs as uu, Tab as pu, Tooltip as hu, Dialog as mu, DialogTitle as fu, DialogContent as gu, DialogActions as yu, Button as Uo, SvgIcon as bu, Popover as Su, Fab as vu, createTheme as xu, rgbToHex as Ou } from "@mui/material";
|
|
12
12
|
import { observer as De, useLocalObservable as Nn } from "mobx-react-lite";
|
|
13
|
-
import { I18nextProvider as wu, useTranslation as
|
|
13
|
+
import { I18nextProvider as wu, useTranslation as $t, Trans as xt } from "react-i18next";
|
|
14
14
|
import Cu from "i18next-browser-languagedetector";
|
|
15
15
|
import { autorun as Jl, reaction as Pu, runInAction as et, makeAutoObservable as mo } from "mobx";
|
|
16
16
|
import b from "prop-types";
|
|
@@ -82,10 +82,10 @@ function Bu() {
|
|
|
82
82
|
fe.unshift("Warning: " + H), Function.prototype.apply.call(console[v], console, fe);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var M = !1, F = !1, W = !1, I = !1, L = !1, B;
|
|
86
86
|
B = Symbol.for("react.module.reference");
|
|
87
87
|
function g(v) {
|
|
88
|
-
return !!(typeof v == "string" || typeof v == "function" || v === a || v === s || L || v === n || v === c || v === d ||
|
|
88
|
+
return !!(typeof v == "string" || typeof v == "function" || v === a || v === s || L || v === n || v === c || v === d || I || v === f || M || F || W || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === u || v.$$typeof === o || v.$$typeof === i || v.$$typeof === l || // This needs to include all possible module reference object
|
|
89
89
|
// types supported by any Flight configuration anywhere since
|
|
90
90
|
// we don't know which Flight build this will end up being used
|
|
91
91
|
// with.
|
|
@@ -101,7 +101,7 @@ function Bu() {
|
|
|
101
101
|
function N(v) {
|
|
102
102
|
return v.displayName || "Context";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function J(v) {
|
|
105
105
|
if (v == null)
|
|
106
106
|
return null;
|
|
107
107
|
if (typeof v.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof v == "function")
|
|
@@ -134,11 +134,11 @@ function Bu() {
|
|
|
134
134
|
return $(v, v.render, "ForwardRef");
|
|
135
135
|
case u:
|
|
136
136
|
var te = v.displayName || null;
|
|
137
|
-
return te !== null ? te :
|
|
137
|
+
return te !== null ? te : J(v.type) || "Memo";
|
|
138
138
|
case p: {
|
|
139
139
|
var pe = v, fe = pe._payload, ce = pe._init;
|
|
140
140
|
try {
|
|
141
|
-
return
|
|
141
|
+
return J(ce(fe));
|
|
142
142
|
} catch {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
@@ -208,18 +208,18 @@ function Bu() {
|
|
|
208
208
|
ee < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var rr = E.ReactCurrentDispatcher,
|
|
211
|
+
var rr = E.ReactCurrentDispatcher, Ft;
|
|
212
212
|
function nt(v, H, K) {
|
|
213
213
|
{
|
|
214
|
-
if (
|
|
214
|
+
if (Ft === void 0)
|
|
215
215
|
try {
|
|
216
216
|
throw Error();
|
|
217
217
|
} catch (pe) {
|
|
218
218
|
var te = pe.stack.trim().match(/\n( *(at )?)/);
|
|
219
|
-
|
|
219
|
+
Ft = te && te[1] || "";
|
|
220
220
|
}
|
|
221
221
|
return `
|
|
222
|
-
` +
|
|
222
|
+
` + Ft + v;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
var ut = !1, st;
|
|
@@ -305,7 +305,7 @@ function Bu() {
|
|
|
305
305
|
var H = v.prototype;
|
|
306
306
|
return !!(H && H.isReactComponent);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Nt(v, H, K) {
|
|
309
309
|
if (v == null)
|
|
310
310
|
return "";
|
|
311
311
|
if (typeof v == "function")
|
|
@@ -323,24 +323,24 @@ function Bu() {
|
|
|
323
323
|
case l:
|
|
324
324
|
return ke(v.render);
|
|
325
325
|
case u:
|
|
326
|
-
return
|
|
326
|
+
return Nt(v.type, H, K);
|
|
327
327
|
case p: {
|
|
328
328
|
var te = v, pe = te._payload, fe = te._init;
|
|
329
329
|
try {
|
|
330
|
-
return
|
|
330
|
+
return Nt(fe(pe), H, K);
|
|
331
331
|
} catch {
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
return "";
|
|
336
336
|
}
|
|
337
|
-
var gt = Object.prototype.hasOwnProperty, Ue = {},
|
|
337
|
+
var gt = Object.prototype.hasOwnProperty, Ue = {}, Dt = E.ReactDebugCurrentFrame;
|
|
338
338
|
function Et(v) {
|
|
339
339
|
if (v) {
|
|
340
|
-
var H = v._owner, K =
|
|
341
|
-
|
|
340
|
+
var H = v._owner, K = Nt(v.type, v._source, H ? H.type : null);
|
|
341
|
+
Dt.setExtraStackFrame(K);
|
|
342
342
|
} else
|
|
343
|
-
|
|
343
|
+
Dt.setExtraStackFrame(null);
|
|
344
344
|
}
|
|
345
345
|
function wr(v, H, K, te, pe) {
|
|
346
346
|
{
|
|
@@ -362,10 +362,10 @@ function Bu() {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
var Cr = Array.isArray;
|
|
365
|
-
function
|
|
365
|
+
function zt(v) {
|
|
366
366
|
return Cr(v);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Gt(v) {
|
|
369
369
|
{
|
|
370
370
|
var H = typeof Symbol == "function" && Symbol.toStringTag, K = H && v[Symbol.toStringTag] || v.constructor.name || "Object";
|
|
371
371
|
return K;
|
|
@@ -373,17 +373,17 @@ function Bu() {
|
|
|
373
373
|
}
|
|
374
374
|
function Pr(v) {
|
|
375
375
|
try {
|
|
376
|
-
return
|
|
376
|
+
return q(v), !1;
|
|
377
377
|
} catch {
|
|
378
378
|
return !0;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function q(v) {
|
|
382
382
|
return "" + v;
|
|
383
383
|
}
|
|
384
384
|
function Q(v) {
|
|
385
385
|
if (Pr(v))
|
|
386
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
386
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gt(v)), q(v);
|
|
387
387
|
}
|
|
388
388
|
var Y = E.ReactCurrentOwner, ie = {
|
|
389
389
|
key: !0,
|
|
@@ -482,7 +482,7 @@ function Bu() {
|
|
|
482
482
|
var la = E.ReactCurrentOwner, Vr = E.ReactDebugCurrentFrame;
|
|
483
483
|
function yt(v) {
|
|
484
484
|
if (v) {
|
|
485
|
-
var H = v._owner, K =
|
|
485
|
+
var H = v._owner, K = Nt(v.type, v._source, H ? H.type : null);
|
|
486
486
|
Vr.setExtraStackFrame(K);
|
|
487
487
|
} else
|
|
488
488
|
Vr.setExtraStackFrame(null);
|
|
@@ -495,7 +495,7 @@ function Bu() {
|
|
|
495
495
|
function je() {
|
|
496
496
|
{
|
|
497
497
|
if (la.current) {
|
|
498
|
-
var v =
|
|
498
|
+
var v = J(la.current.type);
|
|
499
499
|
if (v)
|
|
500
500
|
return `
|
|
501
501
|
|
|
@@ -530,14 +530,14 @@ Check the top-level render call using <` + K + ">.");
|
|
|
530
530
|
return;
|
|
531
531
|
nr[K] = !0;
|
|
532
532
|
var te = "";
|
|
533
|
-
v && v._owner && v._owner !== la.current && (te = " It was passed a child from " +
|
|
533
|
+
v && v._owner && v._owner !== la.current && (te = " It was passed a child from " + J(v._owner.type) + "."), yt(v), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, te), yt(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function Io(v, H) {
|
|
537
537
|
{
|
|
538
538
|
if (typeof v != "object")
|
|
539
539
|
return;
|
|
540
|
-
if (
|
|
540
|
+
if (zt(v))
|
|
541
541
|
for (var K = 0; K < v.length; K++) {
|
|
542
542
|
var te = v[K];
|
|
543
543
|
we(te) && Eo(te, H);
|
|
@@ -567,11 +567,11 @@ Check the top-level render call using <` + K + ">.");
|
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
569
|
if (K) {
|
|
570
|
-
var te =
|
|
570
|
+
var te = J(H);
|
|
571
571
|
wr(K, v.props, "prop", te, v);
|
|
572
572
|
} else if (H.PropTypes !== void 0 && !ca) {
|
|
573
573
|
ca = !0;
|
|
574
|
-
var pe =
|
|
574
|
+
var pe = J(H);
|
|
575
575
|
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", pe || "Unknown");
|
|
576
576
|
}
|
|
577
577
|
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
599
599
|
var He = da();
|
|
600
600
|
He ? le += He : le += je();
|
|
601
601
|
var Te;
|
|
602
|
-
v === null ? Te = "null" :
|
|
602
|
+
v === null ? Te = "null" : zt(v) ? Te = "array" : v !== void 0 && v.$$typeof === t ? (Te = "<" + (J(v.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof v, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, le);
|
|
603
603
|
}
|
|
604
604
|
var $e = ia(v, H, K, pe, fe);
|
|
605
605
|
if ($e == null)
|
|
@@ -608,7 +608,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
608
608
|
var ot = H.children;
|
|
609
609
|
if (ot !== void 0)
|
|
610
610
|
if (te)
|
|
611
|
-
if (
|
|
611
|
+
if (zt(ot)) {
|
|
612
612
|
for (var Rr = 0; Rr < ot.length; Rr++)
|
|
613
613
|
Io(ot[Rr], v);
|
|
614
614
|
Object.freeze && Object.freeze(ot);
|
|
@@ -618,7 +618,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
618
618
|
Io(ot, v);
|
|
619
619
|
}
|
|
620
620
|
if (gt.call(H, "key")) {
|
|
621
|
-
var sr =
|
|
621
|
+
var sr = J(v), Qe = Object.keys(H).filter(function(Wd) {
|
|
622
622
|
return Wd !== "key";
|
|
623
623
|
}), gs = Qe.length > 0 ? "{key: someKey, " + Qe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
624
|
if (!Mo[sr + gs]) {
|
|
@@ -796,7 +796,7 @@ function nV({
|
|
|
796
796
|
}
|
|
797
797
|
) });
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Xt(e, ...t) {
|
|
800
800
|
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
801
801
|
return t.forEach((a) => r.searchParams.append("args[]", a)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
802
802
|
}
|
|
@@ -887,10 +887,10 @@ var Ju = /[A-Z]|^ms/g, qu = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ql = function(t) {
|
|
|
887
887
|
case "animationName":
|
|
888
888
|
if (typeof r == "string")
|
|
889
889
|
return r.replace(qu, function(a, n, s) {
|
|
890
|
-
return
|
|
890
|
+
return Qt = {
|
|
891
891
|
name: n,
|
|
892
892
|
styles: s,
|
|
893
|
-
next:
|
|
893
|
+
next: Qt
|
|
894
894
|
}, n;
|
|
895
895
|
});
|
|
896
896
|
}
|
|
@@ -908,20 +908,20 @@ function Vn(e, t, r) {
|
|
|
908
908
|
case "object": {
|
|
909
909
|
var n = r;
|
|
910
910
|
if (n.anim === 1)
|
|
911
|
-
return
|
|
911
|
+
return Qt = {
|
|
912
912
|
name: n.name,
|
|
913
913
|
styles: n.styles,
|
|
914
|
-
next:
|
|
914
|
+
next: Qt
|
|
915
915
|
}, n.name;
|
|
916
916
|
var s = r;
|
|
917
917
|
if (s.styles !== void 0) {
|
|
918
918
|
var o = s.next;
|
|
919
919
|
if (o !== void 0)
|
|
920
920
|
for (; o !== void 0; )
|
|
921
|
-
|
|
921
|
+
Qt = {
|
|
922
922
|
name: o.name,
|
|
923
923
|
styles: o.styles,
|
|
924
|
-
next:
|
|
924
|
+
next: Qt
|
|
925
925
|
}, o = o.next;
|
|
926
926
|
var i = s.styles + ";";
|
|
927
927
|
return i;
|
|
@@ -961,12 +961,12 @@ function Wu(e, t, r) {
|
|
|
961
961
|
}
|
|
962
962
|
return a;
|
|
963
963
|
}
|
|
964
|
-
var Do = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
964
|
+
var Do = /label:\s*([^\s;{]+)\s*(;|$)/g, Qt;
|
|
965
965
|
function Qu(e, t, r) {
|
|
966
966
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
967
967
|
return e[0];
|
|
968
968
|
var a = !0, n = "";
|
|
969
|
-
|
|
969
|
+
Qt = void 0;
|
|
970
970
|
var s = e[0];
|
|
971
971
|
if (s == null || s.raw === void 0)
|
|
972
972
|
a = !1, n += Vn(r, t, s);
|
|
@@ -986,7 +986,7 @@ function Qu(e, t, r) {
|
|
|
986
986
|
return {
|
|
987
987
|
name: u,
|
|
988
988
|
styles: n,
|
|
989
|
-
next:
|
|
989
|
+
next: Qt
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
992
|
/**
|
|
@@ -1269,7 +1269,7 @@ function sp(e, t) {
|
|
|
1269
1269
|
if (!r) {
|
|
1270
1270
|
if (process.env.NODE_ENV !== "production")
|
|
1271
1271
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
1272
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` :
|
|
1272
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Xt(18, `(${t})`));
|
|
1273
1273
|
return null;
|
|
1274
1274
|
}
|
|
1275
1275
|
const [, a, n] = r, s = Number.isNaN(+a) ? a || 0 : +a;
|
|
@@ -1386,7 +1386,7 @@ function bs({
|
|
|
1386
1386
|
}
|
|
1387
1387
|
function Je(e) {
|
|
1388
1388
|
if (typeof e != "string")
|
|
1389
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
1389
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Xt(7));
|
|
1390
1390
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1391
1391
|
}
|
|
1392
1392
|
function zn(e, t, r = !0) {
|
|
@@ -2278,7 +2278,7 @@ function nc(e = {}) {
|
|
|
2278
2278
|
dh(i, t, r);
|
|
2279
2279
|
}
|
|
2280
2280
|
return (i, l = {}) => {
|
|
2281
|
-
Yu(i, (F) => F.filter((
|
|
2281
|
+
Yu(i, (F) => F.filter((W) => W !== Kr));
|
|
2282
2282
|
const {
|
|
2283
2283
|
name: c,
|
|
2284
2284
|
slot: d,
|
|
@@ -2301,19 +2301,19 @@ function nc(e = {}) {
|
|
|
2301
2301
|
...y
|
|
2302
2302
|
}), D = (F) => {
|
|
2303
2303
|
if (typeof F == "function" && F.__emotion_real !== F)
|
|
2304
|
-
return function(
|
|
2305
|
-
return yn(
|
|
2304
|
+
return function(I) {
|
|
2305
|
+
return yn(I, F);
|
|
2306
2306
|
};
|
|
2307
2307
|
if (Ot(F)) {
|
|
2308
|
-
const
|
|
2309
|
-
return
|
|
2310
|
-
return yn(L,
|
|
2311
|
-
} :
|
|
2308
|
+
const W = rc(F);
|
|
2309
|
+
return W.variants ? function(L) {
|
|
2310
|
+
return yn(L, W);
|
|
2311
|
+
} : W.style;
|
|
2312
2312
|
}
|
|
2313
2313
|
return F;
|
|
2314
|
-
},
|
|
2315
|
-
const
|
|
2316
|
-
if (
|
|
2314
|
+
}, M = (...F) => {
|
|
2315
|
+
const W = [], I = F.map(D), L = [];
|
|
2316
|
+
if (W.push(s), c && f && L.push(function(N) {
|
|
2317
2317
|
var Z, Pe;
|
|
2318
2318
|
const z = (Pe = (Z = N.theme.components) == null ? void 0 : Z[c]) == null ? void 0 : Pe.styleOverrides;
|
|
2319
2319
|
if (!z)
|
|
@@ -2324,17 +2324,17 @@ function nc(e = {}) {
|
|
|
2324
2324
|
return f(N, ee);
|
|
2325
2325
|
}), c && !h && L.push(function(N) {
|
|
2326
2326
|
var ee, Z;
|
|
2327
|
-
const
|
|
2327
|
+
const J = N.theme, z = (Z = (ee = J == null ? void 0 : J.components) == null ? void 0 : ee[c]) == null ? void 0 : Z.variants;
|
|
2328
2328
|
return z ? ac(N, z) : null;
|
|
2329
|
-
}), x || L.push(Kr), Array.isArray(
|
|
2330
|
-
const $ =
|
|
2329
|
+
}), x || L.push(Kr), Array.isArray(I[0])) {
|
|
2330
|
+
const $ = I.shift(), N = new Array(W.length).fill(""), J = new Array(L.length).fill("");
|
|
2331
2331
|
let z;
|
|
2332
|
-
z = [...N, ...$, ...
|
|
2332
|
+
z = [...N, ...$, ...J], z.raw = [...N, ...$.raw, ...J], W.unshift(z);
|
|
2333
2333
|
}
|
|
2334
|
-
const B = [...
|
|
2334
|
+
const B = [...W, ...I, ...L], g = k(...B);
|
|
2335
2335
|
return i.muiName && (g.muiName = i.muiName), process.env.NODE_ENV !== "production" && (g.displayName = uh(c, d, i)), g;
|
|
2336
2336
|
};
|
|
2337
|
-
return k.withConfig && (
|
|
2337
|
+
return k.withConfig && (M.withConfig = k.withConfig), M;
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
function uh(e, t, r) {
|
|
@@ -2425,20 +2425,20 @@ function bh(e) {
|
|
|
2425
2425
|
let r = e.match(t);
|
|
2426
2426
|
return r && r[0].length === 1 && (r = r.map((a) => a + a)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((a, n) => n < 3 ? parseInt(a, 16) : Math.round(parseInt(a, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function Zt(e) {
|
|
2429
2429
|
if (e.type)
|
|
2430
2430
|
return e;
|
|
2431
2431
|
if (e.charAt(0) === "#")
|
|
2432
|
-
return
|
|
2432
|
+
return Zt(bh(e));
|
|
2433
2433
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
2434
2434
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
2435
2435
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
2436
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
2436
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Xt(9, e));
|
|
2437
2437
|
let a = e.substring(t + 1, e.length - 1), n;
|
|
2438
2438
|
if (r === "color") {
|
|
2439
2439
|
if (a = a.split(" "), n = a.shift(), a.length === 4 && a[3].charAt(0) === "/" && (a[3] = a[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(n))
|
|
2440
2440
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${n}\` color space.
|
|
2441
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
2441
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Xt(10, n));
|
|
2442
2442
|
} else
|
|
2443
2443
|
a = a.split(",");
|
|
2444
2444
|
return a = a.map((s) => parseFloat(s)), {
|
|
@@ -2448,7 +2448,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
2448
2448
|
};
|
|
2449
2449
|
}
|
|
2450
2450
|
const Sh = (e) => {
|
|
2451
|
-
const t =
|
|
2451
|
+
const t = Zt(e);
|
|
2452
2452
|
return t.values.slice(0, 3).map((r, a) => t.type.includes("hsl") && a !== 0 ? `${r}%` : r).join(" ");
|
|
2453
2453
|
}, Ra = (e, t) => {
|
|
2454
2454
|
try {
|
|
@@ -2468,7 +2468,7 @@ function Zn(e) {
|
|
|
2468
2468
|
return t.includes("rgb") ? a = a.map((n, s) => s < 3 ? parseInt(n, 10) : n) : t.includes("hsl") && (a[1] = `${a[1]}%`, a[2] = `${a[2]}%`), t.includes("color") ? a = `${r} ${a.join(" ")}` : a = `${a.join(", ")}`, `${t}(${a})`;
|
|
2469
2469
|
}
|
|
2470
2470
|
function ic(e) {
|
|
2471
|
-
e =
|
|
2471
|
+
e = Zt(e);
|
|
2472
2472
|
const {
|
|
2473
2473
|
values: t
|
|
2474
2474
|
} = e, r = t[0], a = t[1] / 100, n = t[2] / 100, s = a * Math.min(n, 1 - n), o = (c, d = (c + r / 30) % 12) => n - s * Math.max(Math.min(d - 3, 9 - d, 1), -1);
|
|
@@ -2480,8 +2480,8 @@ function ic(e) {
|
|
|
2480
2480
|
});
|
|
2481
2481
|
}
|
|
2482
2482
|
function Ns(e) {
|
|
2483
|
-
e =
|
|
2484
|
-
let t = e.type === "hsl" || e.type === "hsla" ?
|
|
2483
|
+
e = Zt(e);
|
|
2484
|
+
let t = e.type === "hsl" || e.type === "hsla" ? Zt(ic(e)).values : e.values;
|
|
2485
2485
|
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
2486
2486
|
}
|
|
2487
2487
|
function Xo(e, t) {
|
|
@@ -2489,7 +2489,7 @@ function Xo(e, t) {
|
|
|
2489
2489
|
return (Math.max(r, a) + 0.05) / (Math.min(r, a) + 0.05);
|
|
2490
2490
|
}
|
|
2491
2491
|
function Ds(e, t) {
|
|
2492
|
-
return e =
|
|
2492
|
+
return e = Zt(e), t = go(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Zn(e);
|
|
2493
2493
|
}
|
|
2494
2494
|
function Xa(e, t, r) {
|
|
2495
2495
|
try {
|
|
@@ -2499,7 +2499,7 @@ function Xa(e, t, r) {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
2501
|
function Ma(e, t) {
|
|
2502
|
-
if (e =
|
|
2502
|
+
if (e = Zt(e), t = go(t), e.type.includes("hsl"))
|
|
2503
2503
|
e.values[2] *= 1 - t;
|
|
2504
2504
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
2505
2505
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -2514,7 +2514,7 @@ function ge(e, t, r) {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
2516
|
function ja(e, t) {
|
|
2517
|
-
if (e =
|
|
2517
|
+
if (e = Zt(e), t = go(t), e.type.includes("hsl"))
|
|
2518
2518
|
e.values[2] += (100 - e.values[2]) * t;
|
|
2519
2519
|
else if (e.type.includes("rgb"))
|
|
2520
2520
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -2701,7 +2701,7 @@ function Vh(e) {
|
|
|
2701
2701
|
function Rh(e, t, r) {
|
|
2702
2702
|
return typeof e == "function" ? e(t, r) : e;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function Ht(e) {
|
|
2705
2705
|
var u;
|
|
2706
2706
|
const {
|
|
2707
2707
|
elementType: t,
|
|
@@ -2824,35 +2824,35 @@ function Lh(e, t = {}) {
|
|
|
2824
2824
|
[i]: y,
|
|
2825
2825
|
...h
|
|
2826
2826
|
} = s;
|
|
2827
|
-
if (Object.entries(h || {}).forEach(([D,
|
|
2827
|
+
if (Object.entries(h || {}).forEach(([D, M]) => {
|
|
2828
2828
|
const {
|
|
2829
2829
|
vars: F,
|
|
2830
|
-
css:
|
|
2831
|
-
varsWithDefaults:
|
|
2832
|
-
} = xs(
|
|
2833
|
-
p = qe(p,
|
|
2834
|
-
css:
|
|
2830
|
+
css: W,
|
|
2831
|
+
varsWithDefaults: I
|
|
2832
|
+
} = xs(M, t);
|
|
2833
|
+
p = qe(p, I), f[D] = {
|
|
2834
|
+
css: W,
|
|
2835
2835
|
vars: F
|
|
2836
2836
|
};
|
|
2837
2837
|
}), y) {
|
|
2838
2838
|
const {
|
|
2839
2839
|
css: D,
|
|
2840
|
-
vars:
|
|
2840
|
+
vars: M,
|
|
2841
2841
|
varsWithDefaults: F
|
|
2842
2842
|
} = xs(y, t);
|
|
2843
2843
|
p = qe(p, F), f[i] = {
|
|
2844
2844
|
css: D,
|
|
2845
|
-
vars:
|
|
2845
|
+
vars: M
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
|
-
function x(D,
|
|
2849
|
-
var
|
|
2848
|
+
function x(D, M) {
|
|
2849
|
+
var W, I;
|
|
2850
2850
|
let F = n;
|
|
2851
2851
|
if (n === "class" && (F = ".%s"), n === "data" && (F = "[data-%s]"), n != null && n.startsWith("data-") && !n.includes("%s") && (F = `[${n}="%s"]`), D) {
|
|
2852
2852
|
if (F === "media")
|
|
2853
2853
|
return e.defaultColorScheme === D ? ":root" : {
|
|
2854
|
-
[`@media (prefers-color-scheme: ${((
|
|
2855
|
-
":root":
|
|
2854
|
+
[`@media (prefers-color-scheme: ${((I = (W = s[D]) == null ? void 0 : W.palette) == null ? void 0 : I.mode) || D})`]: {
|
|
2855
|
+
":root": M
|
|
2856
2856
|
}
|
|
2857
2857
|
};
|
|
2858
2858
|
if (F)
|
|
@@ -2867,14 +2867,14 @@ function Lh(e, t = {}) {
|
|
|
2867
2867
|
...c
|
|
2868
2868
|
};
|
|
2869
2869
|
return Object.entries(f).forEach(([, {
|
|
2870
|
-
vars:
|
|
2870
|
+
vars: M
|
|
2871
2871
|
}]) => {
|
|
2872
|
-
D = qe(D,
|
|
2872
|
+
D = qe(D, M);
|
|
2873
2873
|
}), D;
|
|
2874
2874
|
},
|
|
2875
2875
|
generateStyleSheets: () => {
|
|
2876
2876
|
var L, B;
|
|
2877
|
-
const D = [],
|
|
2877
|
+
const D = [], M = e.defaultColorScheme || "light";
|
|
2878
2878
|
function F(g, $) {
|
|
2879
2879
|
Object.keys($).length && D.push(typeof g == "string" ? {
|
|
2880
2880
|
[g]: {
|
|
@@ -2886,35 +2886,35 @@ function Lh(e, t = {}) {
|
|
|
2886
2886
|
...d
|
|
2887
2887
|
}), d);
|
|
2888
2888
|
const {
|
|
2889
|
-
[
|
|
2890
|
-
...
|
|
2889
|
+
[M]: W,
|
|
2890
|
+
...I
|
|
2891
2891
|
} = f;
|
|
2892
|
-
if (
|
|
2892
|
+
if (W) {
|
|
2893
2893
|
const {
|
|
2894
2894
|
css: g
|
|
2895
|
-
} =
|
|
2895
|
+
} = W, $ = (B = (L = s[M]) == null ? void 0 : L.palette) == null ? void 0 : B.mode, N = !a && $ ? {
|
|
2896
2896
|
colorScheme: $,
|
|
2897
2897
|
...g
|
|
2898
2898
|
} : {
|
|
2899
2899
|
...g
|
|
2900
2900
|
};
|
|
2901
|
-
F(r(
|
|
2901
|
+
F(r(M, {
|
|
2902
2902
|
...N
|
|
2903
2903
|
}), N);
|
|
2904
2904
|
}
|
|
2905
|
-
return Object.entries(
|
|
2905
|
+
return Object.entries(I).forEach(([g, {
|
|
2906
2906
|
css: $
|
|
2907
2907
|
}]) => {
|
|
2908
2908
|
var z, ee;
|
|
2909
|
-
const N = (ee = (z = s[g]) == null ? void 0 : z.palette) == null ? void 0 : ee.mode,
|
|
2909
|
+
const N = (ee = (z = s[g]) == null ? void 0 : z.palette) == null ? void 0 : ee.mode, J = !a && N ? {
|
|
2910
2910
|
colorScheme: N,
|
|
2911
2911
|
...$
|
|
2912
2912
|
} : {
|
|
2913
2913
|
...$
|
|
2914
2914
|
};
|
|
2915
2915
|
F(r(g, {
|
|
2916
|
-
...
|
|
2917
|
-
}),
|
|
2916
|
+
...J
|
|
2917
|
+
}), J);
|
|
2918
2918
|
}), D;
|
|
2919
2919
|
}
|
|
2920
2920
|
};
|
|
@@ -3011,14 +3011,14 @@ function Hh(e = {}) {
|
|
|
3011
3011
|
className: E,
|
|
3012
3012
|
useFlexGap: k = !1,
|
|
3013
3013
|
...D
|
|
3014
|
-
} = u,
|
|
3014
|
+
} = u, M = {
|
|
3015
3015
|
direction: f,
|
|
3016
3016
|
spacing: y,
|
|
3017
3017
|
useFlexGap: k
|
|
3018
3018
|
}, F = n();
|
|
3019
3019
|
return /* @__PURE__ */ S.jsx(s, {
|
|
3020
3020
|
as: p,
|
|
3021
|
-
ownerState:
|
|
3021
|
+
ownerState: M,
|
|
3022
3022
|
ref: c,
|
|
3023
3023
|
className: Pt(F.root, E),
|
|
3024
3024
|
...D,
|
|
@@ -3258,7 +3258,7 @@ function bo(e) {
|
|
|
3258
3258
|
...h
|
|
3259
3259
|
}, !h.main && h[E] && (h.main = h[E]), !h.hasOwnProperty("main"))
|
|
3260
3260
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
3261
|
-
The color object needs to have a \`main\` property or a \`${E}\` property.` :
|
|
3261
|
+
The color object needs to have a \`main\` property or a \`${E}\` property.` : Xt(11, x ? ` (${x})` : "", E));
|
|
3262
3262
|
if (typeof h.main != "string")
|
|
3263
3263
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
3264
3264
|
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
@@ -3273,7 +3273,7 @@ const theme1 = createTheme({ palette: {
|
|
|
3273
3273
|
|
|
3274
3274
|
const theme2 = createTheme({ palette: {
|
|
3275
3275
|
primary: { main: green[500] },
|
|
3276
|
-
} });` :
|
|
3276
|
+
} });` : Xt(12, x ? ` (${x})` : "", JSON.stringify(h.main)));
|
|
3277
3277
|
return si(h, "light", k, a), si(h, "dark", D, a), h.contrastText || (h.contrastText = u(h.main)), h;
|
|
3278
3278
|
};
|
|
3279
3279
|
let f;
|
|
@@ -3383,7 +3383,7 @@ function am(e, t) {
|
|
|
3383
3383
|
...u
|
|
3384
3384
|
} = typeof t == "function" ? t(e) : t;
|
|
3385
3385
|
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof l != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
3386
|
-
const p = a / 14, f = d || ((x) => `${x / l * p}rem`), y = (x, E, k, D,
|
|
3386
|
+
const p = a / 14, f = d || ((x) => `${x / l * p}rem`), y = (x, E, k, D, M) => ({
|
|
3387
3387
|
fontFamily: r,
|
|
3388
3388
|
fontWeight: x,
|
|
3389
3389
|
fontSize: f(E),
|
|
@@ -3394,7 +3394,7 @@ function am(e, t) {
|
|
|
3394
3394
|
...r === ii ? {
|
|
3395
3395
|
letterSpacing: `${rm(D / E)}em`
|
|
3396
3396
|
} : {},
|
|
3397
|
-
...
|
|
3397
|
+
...M,
|
|
3398
3398
|
...c
|
|
3399
3399
|
}), h = {
|
|
3400
3400
|
h1: y(n, 96, 1.167, -1.5),
|
|
@@ -3548,7 +3548,7 @@ function zs(e = {}, ...t) {
|
|
|
3548
3548
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
3549
3549
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
3550
3550
|
e.generateThemeVars === void 0)
|
|
3551
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." :
|
|
3551
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Xt(20));
|
|
3552
3552
|
const d = bo(s), u = Xn(e);
|
|
3553
3553
|
let p = qe(u, {
|
|
3554
3554
|
mixins: tm(u.breakpoints, a),
|
|
@@ -3759,10 +3759,10 @@ function wm(e = {}, ...t) {
|
|
|
3759
3759
|
};
|
|
3760
3760
|
let k = f;
|
|
3761
3761
|
if ((u === "dark" && !("dark" in r) || u === "light" && !("light" in r)) && (k = !0), !k)
|
|
3762
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${u}\` option is either missing or invalid.` :
|
|
3762
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${u}\` option is either missing or invalid.` : Xt(21, u));
|
|
3763
3763
|
const D = Os(E, k, c, u);
|
|
3764
3764
|
y && !E.light && Os(E, y, void 0, "light"), h && !E.dark && Os(E, h, void 0, "dark");
|
|
3765
|
-
let
|
|
3765
|
+
let M = {
|
|
3766
3766
|
defaultColorScheme: u,
|
|
3767
3767
|
...D,
|
|
3768
3768
|
cssVarPrefix: s,
|
|
@@ -3776,9 +3776,9 @@ function wm(e = {}, ...t) {
|
|
|
3776
3776
|
},
|
|
3777
3777
|
spacing: xm(c.spacing)
|
|
3778
3778
|
};
|
|
3779
|
-
Object.keys(
|
|
3780
|
-
const g =
|
|
3781
|
-
const
|
|
3779
|
+
Object.keys(M.colorSchemes).forEach((B) => {
|
|
3780
|
+
const g = M.colorSchemes[B].palette, $ = (N) => {
|
|
3781
|
+
const J = N.split("-"), z = J[1], ee = J[2];
|
|
3782
3782
|
return p(N, g[z][ee]);
|
|
3783
3783
|
};
|
|
3784
3784
|
if (g.mode === "light" && (U(g.common, "background", "#fff"), U(g.common, "onBackground", "#000")), g.mode === "dark" && (U(g.common, "background", "#000"), U(g.common, "onBackground", "#fff")), vm(g, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), g.mode === "light") {
|
|
@@ -3792,33 +3792,33 @@ function wm(e = {}, ...t) {
|
|
|
3792
3792
|
U(g.SnackbarContent, "bg", N), U(g.SnackbarContent, "color", bt(() => g.getContrastText(N))), U(g.SpeedDialAction, "fabHoverBg", Za(g.background.paper, 0.15)), U(g.StepConnector, "border", $("palette-grey-600")), U(g.StepContent, "border", $("palette-grey-600")), U(g.Switch, "defaultColor", $("palette-grey-300")), U(g.Switch, "defaultDisabledColor", $("palette-grey-600")), U(g.Switch, "primaryDisabledColor", ge(g.primary.main, 0.55)), U(g.Switch, "secondaryDisabledColor", ge(g.secondary.main, 0.55)), U(g.Switch, "errorDisabledColor", ge(g.error.main, 0.55)), U(g.Switch, "infoDisabledColor", ge(g.info.main, 0.55)), U(g.Switch, "successDisabledColor", ge(g.success.main, 0.55)), U(g.Switch, "warningDisabledColor", ge(g.warning.main, 0.55)), U(g.TableCell, "border", ge(Xa(g.divider, 1), 0.68)), U(g.Tooltip, "bg", Xa(g.grey[700], 0.92));
|
|
3793
3793
|
}
|
|
3794
3794
|
It(g.background, "default"), It(g.background, "paper"), It(g.common, "background"), It(g.common, "onBackground"), It(g, "divider"), Object.keys(g).forEach((N) => {
|
|
3795
|
-
const
|
|
3796
|
-
N !== "tonalOffset" &&
|
|
3795
|
+
const J = g[N];
|
|
3796
|
+
N !== "tonalOffset" && J && typeof J == "object" && (J.main && U(g[N], "mainChannel", Ra(_a(J.main))), J.light && U(g[N], "lightChannel", Ra(_a(J.light))), J.dark && U(g[N], "darkChannel", Ra(_a(J.dark))), J.contrastText && U(g[N], "contrastTextChannel", Ra(_a(J.contrastText))), N === "text" && (It(g[N], "primary"), It(g[N], "secondary")), N === "action" && (J.active && It(g[N], "active"), J.selected && It(g[N], "selected")));
|
|
3797
3797
|
});
|
|
3798
|
-
}),
|
|
3798
|
+
}), M = t.reduce((B, g) => qe(B, g), M);
|
|
3799
3799
|
const F = {
|
|
3800
3800
|
prefix: s,
|
|
3801
3801
|
disableCssColorScheme: n,
|
|
3802
3802
|
shouldSkipGeneratingVar: o,
|
|
3803
|
-
getSelector: Sm(
|
|
3803
|
+
getSelector: Sm(M)
|
|
3804
3804
|
}, {
|
|
3805
|
-
vars:
|
|
3806
|
-
generateThemeVars:
|
|
3805
|
+
vars: W,
|
|
3806
|
+
generateThemeVars: I,
|
|
3807
3807
|
generateStyleSheets: L
|
|
3808
|
-
} = Lh(
|
|
3809
|
-
return
|
|
3810
|
-
|
|
3811
|
-
}),
|
|
3808
|
+
} = Lh(M, F);
|
|
3809
|
+
return M.vars = W, Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([B, g]) => {
|
|
3810
|
+
M[B] = g;
|
|
3811
|
+
}), M.generateThemeVars = I, M.generateStyleSheets = L, M.generateSpacing = function() {
|
|
3812
3812
|
return Xl(c.spacing, Jn(this));
|
|
3813
|
-
},
|
|
3813
|
+
}, M.getColorSchemeSelector = kh(i), M.spacing = M.generateSpacing(), M.shouldSkipGeneratingVar = o, M.unstable_sxConfig = {
|
|
3814
3814
|
...Ga,
|
|
3815
3815
|
...c == null ? void 0 : c.unstable_sxConfig
|
|
3816
|
-
},
|
|
3816
|
+
}, M.unstable_sx = function(g) {
|
|
3817
3817
|
return Kr({
|
|
3818
3818
|
sx: g,
|
|
3819
3819
|
theme: this
|
|
3820
3820
|
});
|
|
3821
|
-
},
|
|
3821
|
+
}, M.toRuntimeSource = uc, M;
|
|
3822
3822
|
}
|
|
3823
3823
|
function ci(e, t, r) {
|
|
3824
3824
|
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
@@ -3878,7 +3878,7 @@ const Cm = mc(), Pm = "$$material";
|
|
|
3878
3878
|
function So(e) {
|
|
3879
3879
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3880
3880
|
}
|
|
3881
|
-
const Vm = (e) => So(e) && e !== "classes",
|
|
3881
|
+
const Vm = (e) => So(e) && e !== "classes", Ut = nc({
|
|
3882
3882
|
themeId: Pm,
|
|
3883
3883
|
defaultTheme: Cm,
|
|
3884
3884
|
rootShouldForwardProp: Vm
|
|
@@ -3888,7 +3888,7 @@ function vo(e) {
|
|
|
3888
3888
|
return Ih(e);
|
|
3889
3889
|
}
|
|
3890
3890
|
const Hr = Hh({
|
|
3891
|
-
createStyledComponent:
|
|
3891
|
+
createStyledComponent: Ut("div", {
|
|
3892
3892
|
name: "MuiStack",
|
|
3893
3893
|
slot: "Root",
|
|
3894
3894
|
overridesResolver: (e, t) => t.root
|
|
@@ -4301,11 +4301,11 @@ class Mn extends es {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
const u = this.resolve(t, r);
|
|
4303
4303
|
let p = u == null ? void 0 : u.res;
|
|
4304
|
-
const f = (u == null ? void 0 : u.usedKey) || o, y = (u == null ? void 0 : u.exactUsedKey) || o, h = ["[object Number]", "[object Function]", "[object RegExp]"], x = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, k = r.count !== void 0 && !re(r.count), D = Mn.hasDefaultValue(r),
|
|
4304
|
+
const f = (u == null ? void 0 : u.usedKey) || o, y = (u == null ? void 0 : u.exactUsedKey) || o, h = ["[object Number]", "[object Function]", "[object RegExp]"], x = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, k = r.count !== void 0 && !re(r.count), D = Mn.hasDefaultValue(r), M = k ? this.pluralResolver.getSuffix(c, r.count, r) : "", F = r.ordinal && k ? this.pluralResolver.getSuffix(c, r.count, {
|
|
4305
4305
|
ordinal: !1
|
|
4306
|
-
}) : "",
|
|
4306
|
+
}) : "", W = k && !r.ordinal && r.count === 0, I = W && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${M}`] || r[`defaultValue${F}`] || r.defaultValue;
|
|
4307
4307
|
let L = p;
|
|
4308
|
-
E && !p && D && (L =
|
|
4308
|
+
E && !p && D && (L = I);
|
|
4309
4309
|
const B = gi(L), g = Object.prototype.toString.apply(L);
|
|
4310
4310
|
if (E && L && B && h.indexOf(g) < 0 && !(re(x) && Array.isArray(L))) {
|
|
4311
4311
|
if (!r.returnObjects && !this.options.returnObjects) {
|
|
@@ -4317,13 +4317,13 @@ class Mn extends es {
|
|
|
4317
4317
|
return n ? (u.res = $, u.usedParams = this.getUsedParamsDetails(r), u) : $;
|
|
4318
4318
|
}
|
|
4319
4319
|
if (s) {
|
|
4320
|
-
const $ = Array.isArray(L), N = $ ? [] : {},
|
|
4320
|
+
const $ = Array.isArray(L), N = $ ? [] : {}, J = $ ? y : f;
|
|
4321
4321
|
for (const z in L)
|
|
4322
4322
|
if (Object.prototype.hasOwnProperty.call(L, z)) {
|
|
4323
|
-
const ee = `${
|
|
4323
|
+
const ee = `${J}${s}${z}`;
|
|
4324
4324
|
D && !p ? N[z] = this.translate(ee, {
|
|
4325
4325
|
...r,
|
|
4326
|
-
defaultValue: gi(
|
|
4326
|
+
defaultValue: gi(I) ? I[z] : void 0,
|
|
4327
4327
|
joinArrays: !1,
|
|
4328
4328
|
ns: i
|
|
4329
4329
|
}) : N[z] = this.translate(ee, {
|
|
@@ -4338,10 +4338,10 @@ class Mn extends es {
|
|
|
4338
4338
|
p = p.join(x), p && (p = this.extendTranslation(p, t, r, a));
|
|
4339
4339
|
else {
|
|
4340
4340
|
let $ = !1, N = !1;
|
|
4341
|
-
!this.isValidLookup(p) && D && ($ = !0, p =
|
|
4342
|
-
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, ee = D &&
|
|
4341
|
+
!this.isValidLookup(p) && D && ($ = !0, p = I), this.isValidLookup(p) || (N = !0, p = o);
|
|
4342
|
+
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, ee = D && I !== p && this.options.updateMissing;
|
|
4343
4343
|
if (N || $ || ee) {
|
|
4344
|
-
if (this.logger.log(ee ? "updateKey" : "missingKey", c, l, o, ee ?
|
|
4344
|
+
if (this.logger.log(ee ? "updateKey" : "missingKey", c, l, o, ee ? I : p), s) {
|
|
4345
4345
|
const de = this.resolve(o, {
|
|
4346
4346
|
...r,
|
|
4347
4347
|
keySeparator: !1
|
|
@@ -4361,10 +4361,10 @@ class Mn extends es {
|
|
|
4361
4361
|
};
|
|
4362
4362
|
this.options.saveMissing && (this.options.saveMissingPlurals && k ? Z.forEach((de) => {
|
|
4363
4363
|
const be = this.pluralResolver.getSuffixes(de, r);
|
|
4364
|
-
|
|
4365
|
-
se([de], o + oe, r[`defaultValue${oe}`] ||
|
|
4364
|
+
W && r[`defaultValue${this.options.pluralSeparator}zero`] && be.indexOf(`${this.options.pluralSeparator}zero`) < 0 && be.push(`${this.options.pluralSeparator}zero`), be.forEach((oe) => {
|
|
4365
|
+
se([de], o + oe, r[`defaultValue${oe}`] || I);
|
|
4366
4366
|
});
|
|
4367
|
-
}) : se(Z, o,
|
|
4367
|
+
}) : se(Z, o, I));
|
|
4368
4368
|
}
|
|
4369
4369
|
p = this.extendTranslation(p, t, r, u, a), N && p === o && this.options.appendNamespaceToMissingKey && (p = `${l}:${o}`), (N || $) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${o}` : o, $ ? p : void 0));
|
|
4370
4370
|
}
|
|
@@ -4429,23 +4429,23 @@ class Mn extends es {
|
|
|
4429
4429
|
u.forEach((x) => {
|
|
4430
4430
|
var E, k;
|
|
4431
4431
|
this.isValidLookup(a) || (i = x, !fi[`${h[0]}-${x}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((k = this.utils) != null && k.hasLoadedNamespace(i)) && (fi[`${h[0]}-${x}`] = !0, this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), h.forEach((D) => {
|
|
4432
|
-
var
|
|
4432
|
+
var W;
|
|
4433
4433
|
if (this.isValidLookup(a)) return;
|
|
4434
4434
|
o = D;
|
|
4435
|
-
const
|
|
4436
|
-
if ((
|
|
4437
|
-
this.i18nFormat.addLookupKeys(
|
|
4435
|
+
const M = [d];
|
|
4436
|
+
if ((W = this.i18nFormat) != null && W.addLookupKeys)
|
|
4437
|
+
this.i18nFormat.addLookupKeys(M, d, D, x, r);
|
|
4438
4438
|
else {
|
|
4439
|
-
let
|
|
4440
|
-
p && (
|
|
4439
|
+
let I;
|
|
4440
|
+
p && (I = this.pluralResolver.getSuffix(D, r.count, r));
|
|
4441
4441
|
const L = `${this.options.pluralSeparator}zero`, B = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
4442
|
-
if (p && (
|
|
4442
|
+
if (p && (M.push(d + I), r.ordinal && I.indexOf(B) === 0 && M.push(d + I.replace(B, this.options.pluralSeparator)), f && M.push(d + L)), y) {
|
|
4443
4443
|
const g = `${d}${this.options.contextSeparator}${r.context}`;
|
|
4444
|
-
|
|
4444
|
+
M.push(g), p && (M.push(g + I), r.ordinal && I.indexOf(B) === 0 && M.push(g + I.replace(B, this.options.pluralSeparator)), f && M.push(g + L));
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
4447
|
let F;
|
|
4448
|
-
for (; F =
|
|
4448
|
+
for (; F = M.pop(); )
|
|
4449
4449
|
this.isValidLookup(a) || (s = F, a = this.getResource(D, x, F, r));
|
|
4450
4450
|
}));
|
|
4451
4451
|
});
|
|
@@ -5337,7 +5337,7 @@ const Hm = {
|
|
|
5337
5337
|
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
|
|
5338
5338
|
"Jogging.Velocity.lb": "Geschwindigkeit",
|
|
5339
5339
|
"General.degree.variable": "{{amount}}°",
|
|
5340
|
-
"General.mm.variable": "{{amount}}mm",
|
|
5340
|
+
"General.mm.variable": "{{amount}} mm",
|
|
5341
5341
|
"Jogging.Cartesian.MotionType.lb": "Bewegungstyp",
|
|
5342
5342
|
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
5343
5343
|
"Jogging.Cartesian.Rotation.bt": "Rotation",
|
|
@@ -5345,8 +5345,8 @@ const Hm = {
|
|
|
5345
5345
|
"Jogging.Increment.Continuous.dd": "Fortlaufend",
|
|
5346
5346
|
"Jogging.Cartesian.Orientation.lb": "Orientierung",
|
|
5347
5347
|
"Jogging.JointLimitsReached.lb": "Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht",
|
|
5348
|
-
"Jogging.Orientation.coordsys": "
|
|
5349
|
-
"Jogging.Orientation.tool": "
|
|
5348
|
+
"Jogging.Orientation.coordsys": "Roboterbasis",
|
|
5349
|
+
"Jogging.Orientation.tool": "Werkzeug",
|
|
5350
5350
|
"SafetyBar.ActivationToggle.Activate.bt": "Aktivieren",
|
|
5351
5351
|
"SafetyBar.ActivationToggle.Activated.bt": "Aktiviert",
|
|
5352
5352
|
"SafetyBar.ActivationToggle.Activating.bt": "Wird aktiviert…",
|
|
@@ -5373,13 +5373,17 @@ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabescha
|
|
|
5373
5373
|
"SafetyBar.SafetyState.Stop.Explanation.lb": "Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.",
|
|
5374
5374
|
"SafetyBar.SafetyState.Stop.lb": "Stopp",
|
|
5375
5375
|
"SafetyBar.SafetyState.ti": "Sicherheitszustand",
|
|
5376
|
-
"SafetyBar.StopState.Estop.Explanation.lb": "NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen."
|
|
5376
|
+
"SafetyBar.StopState.Estop.Explanation.lb": "NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.",
|
|
5377
|
+
"Jogging.Increment.hlb": "Schrittgröße",
|
|
5378
|
+
"Jogging.CoordinateSystem.hlb": "Koordinatensystem",
|
|
5379
|
+
"Jogging.Cartesian.bt": "Kartesisch",
|
|
5380
|
+
"Jogging.Joints.bt": "Gelenke"
|
|
5377
5381
|
}, Jm = {
|
|
5378
5382
|
"Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
|
|
5379
5383
|
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
|
|
5380
5384
|
"Jogging.Velocity.lb": "Velocity",
|
|
5381
5385
|
"General.degree.variable": "{{amount}}°",
|
|
5382
|
-
"General.mm.variable": "{{amount}}mm",
|
|
5386
|
+
"General.mm.variable": "{{amount}} mm",
|
|
5383
5387
|
"Jogging.Cartesian.MotionType.lb": "Motion type",
|
|
5384
5388
|
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
5385
5389
|
"Jogging.Cartesian.Rotation.bt": "Rotation",
|
|
@@ -5388,7 +5392,7 @@ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabescha
|
|
|
5388
5392
|
"Jogging.Cartesian.Orientation.lb": "Orientation",
|
|
5389
5393
|
"Jogging.Activating.lb": "Activating jogging",
|
|
5390
5394
|
"Jogging.JointLimitsReached.lb": "Joint limit reached for joint {{jointNumbers}}",
|
|
5391
|
-
"Jogging.Orientation.coordsys": "
|
|
5395
|
+
"Jogging.Orientation.coordsys": "Robot base",
|
|
5392
5396
|
"Jogging.Orientation.tool": "Tool",
|
|
5393
5397
|
"SafetyBar.ActivationToggle.Activate.bt": "Activate",
|
|
5394
5398
|
"SafetyBar.ActivationToggle.Activated.bt": "Activated",
|
|
@@ -5415,7 +5419,11 @@ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabescha
|
|
|
5415
5419
|
"SafetyBar.SafetyState.Stop.Explanation.lb": "The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.",
|
|
5416
5420
|
"SafetyBar.SafetyState.Stop.lb": "Stop",
|
|
5417
5421
|
"SafetyBar.SafetyState.ti": "Safety state",
|
|
5418
|
-
"SafetyBar.StopState.Estop.Explanation.lb": "An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."
|
|
5422
|
+
"SafetyBar.StopState.Estop.Explanation.lb": "An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.",
|
|
5423
|
+
"Jogging.Increment.hlb": "Increment",
|
|
5424
|
+
"Jogging.CoordinateSystem.hlb": "Coordinate system",
|
|
5425
|
+
"Jogging.Cartesian.bt": "Cartesian",
|
|
5426
|
+
"Jogging.Joints.bt": "Joints"
|
|
5419
5427
|
}, yc = ze.createInstance();
|
|
5420
5428
|
yc.use(Cu).init({
|
|
5421
5429
|
supportedLngs: ["en", "de"],
|
|
@@ -5448,7 +5456,7 @@ const qm = ({
|
|
|
5448
5456
|
...r
|
|
5449
5457
|
}, a) => /* @__PURE__ */ G.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ G.createElement("title", { id: t }, e) : null, /* @__PURE__ */ G.createElement("g", { id: "JogPlus" }, /* @__PURE__ */ G.createElement("g", { id: "Plus" }, /* @__PURE__ */ G.createElement("path", { d: "M0 13V8H8V13H0Z", fill: "white" }), /* @__PURE__ */ G.createElement("path", { d: "M8 0L13 2.18557e-07L13 21H8L8 0Z", fill: "white" }), /* @__PURE__ */ G.createElement("path", { d: "M13 13V8H21V13H13Z", fill: "white" })))), Ym = Le(Km);
|
|
5450
5458
|
function xo(e) {
|
|
5451
|
-
|
|
5459
|
+
Yt(e, []);
|
|
5452
5460
|
}
|
|
5453
5461
|
function Xm(e) {
|
|
5454
5462
|
xo(() => Jl(e));
|
|
@@ -5479,13 +5487,13 @@ const wi = Xr(
|
|
|
5479
5487
|
activeJoggingDirection: o,
|
|
5480
5488
|
...i
|
|
5481
5489
|
}) => {
|
|
5482
|
-
var D,
|
|
5490
|
+
var D, M, F, W, I, L, B;
|
|
5483
5491
|
Ja(() => {
|
|
5484
5492
|
const g = r(), $ = p.current;
|
|
5485
5493
|
$ && ($.textContent = g);
|
|
5486
5494
|
});
|
|
5487
5495
|
const l = ct(), [c, d] = gr(null);
|
|
5488
|
-
|
|
5496
|
+
Yt(() => {
|
|
5489
5497
|
s && k();
|
|
5490
5498
|
}, [s]);
|
|
5491
5499
|
const u = o || c, p = Wr(null);
|
|
@@ -5498,7 +5506,8 @@ const wi = Xr(
|
|
|
5498
5506
|
default: "#000",
|
|
5499
5507
|
hovered: "#000",
|
|
5500
5508
|
pressed: "#000"
|
|
5501
|
-
}
|
|
5509
|
+
},
|
|
5510
|
+
labelColor: "#000"
|
|
5502
5511
|
});
|
|
5503
5512
|
const f = u ? (D = e.buttonBackgroundColor) == null ? void 0 : D.pressed : e.borderColor, y = {
|
|
5504
5513
|
width: "55px",
|
|
@@ -5511,17 +5520,17 @@ const wi = Xr(
|
|
|
5511
5520
|
}
|
|
5512
5521
|
}, h = {
|
|
5513
5522
|
...y,
|
|
5514
|
-
backgroundColor: (
|
|
5523
|
+
backgroundColor: (M = e.buttonBackgroundColor) == null ? void 0 : M.default,
|
|
5515
5524
|
":hover": {
|
|
5516
5525
|
backgroundColor: (F = e.buttonBackgroundColor) == null ? void 0 : F.hovered
|
|
5517
5526
|
},
|
|
5518
5527
|
":active": {
|
|
5519
|
-
backgroundColor: (
|
|
5528
|
+
backgroundColor: (W = e.buttonBackgroundColor) == null ? void 0 : W.pressed,
|
|
5520
5529
|
color: e.backgroundColor,
|
|
5521
5530
|
path: { fill: e.backgroundColor }
|
|
5522
5531
|
},
|
|
5523
5532
|
":disabled": {
|
|
5524
|
-
backgroundColor: (
|
|
5533
|
+
backgroundColor: (I = e.buttonBackgroundColor) == null ? void 0 : I.disabled,
|
|
5525
5534
|
"svg path": { fill: l.palette.action.disabled }
|
|
5526
5535
|
}
|
|
5527
5536
|
}, x = {
|
|
@@ -5646,7 +5655,7 @@ const tf = (e) => {
|
|
|
5646
5655
|
root: ["root", t !== "inherit" && `color${Je(t)}`, `fontSize${Je(r)}`]
|
|
5647
5656
|
};
|
|
5648
5657
|
return yo(n, ef, a);
|
|
5649
|
-
}, rf =
|
|
5658
|
+
}, rf = Ut("svg", {
|
|
5650
5659
|
name: "MuiSvgIcon",
|
|
5651
5660
|
slot: "Root",
|
|
5652
5661
|
overridesResolver: (e, t) => {
|
|
@@ -5896,7 +5905,7 @@ var cf = /^\s+/;
|
|
|
5896
5905
|
function df(e) {
|
|
5897
5906
|
return e && e.slice(0, lf(e) + 1).replace(cf, "");
|
|
5898
5907
|
}
|
|
5899
|
-
var
|
|
5908
|
+
var er = Rt.Symbol, vc = Object.prototype, uf = vc.hasOwnProperty, pf = vc.toString, ba = er ? er.toStringTag : void 0;
|
|
5900
5909
|
function hf(e) {
|
|
5901
5910
|
var t = uf.call(e, ba), r = e[ba];
|
|
5902
5911
|
try {
|
|
@@ -5911,7 +5920,7 @@ var mf = Object.prototype, ff = mf.toString;
|
|
|
5911
5920
|
function gf(e) {
|
|
5912
5921
|
return ff.call(e);
|
|
5913
5922
|
}
|
|
5914
|
-
var yf = "[object Null]", bf = "[object Undefined]", Ci =
|
|
5923
|
+
var yf = "[object Null]", bf = "[object Undefined]", Ci = er ? er.toStringTag : void 0;
|
|
5915
5924
|
function br(e) {
|
|
5916
5925
|
return e == null ? e === void 0 ? bf : yf : Ci && Ci in Object(e) ? hf(e) : gf(e);
|
|
5917
5926
|
}
|
|
@@ -5944,39 +5953,39 @@ function Rf(e, t, r) {
|
|
|
5944
5953
|
if (typeof e != "function")
|
|
5945
5954
|
throw new TypeError(Cf);
|
|
5946
5955
|
t = Vi(t) || 0, pr(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Pf(Vi(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
|
|
5947
|
-
function f(
|
|
5948
|
-
var
|
|
5949
|
-
return a = n = void 0, c =
|
|
5956
|
+
function f(W) {
|
|
5957
|
+
var I = a, L = n;
|
|
5958
|
+
return a = n = void 0, c = W, o = e.apply(L, I), o;
|
|
5950
5959
|
}
|
|
5951
|
-
function y(
|
|
5952
|
-
return c =
|
|
5960
|
+
function y(W) {
|
|
5961
|
+
return c = W, i = setTimeout(E, t), d ? f(W) : o;
|
|
5953
5962
|
}
|
|
5954
|
-
function h(
|
|
5955
|
-
var
|
|
5963
|
+
function h(W) {
|
|
5964
|
+
var I = W - l, L = W - c, B = t - I;
|
|
5956
5965
|
return u ? Vf(B, s - L) : B;
|
|
5957
5966
|
}
|
|
5958
|
-
function x(
|
|
5959
|
-
var
|
|
5960
|
-
return l === void 0 ||
|
|
5967
|
+
function x(W) {
|
|
5968
|
+
var I = W - l, L = W - c;
|
|
5969
|
+
return l === void 0 || I >= t || I < 0 || u && L >= s;
|
|
5961
5970
|
}
|
|
5962
5971
|
function E() {
|
|
5963
|
-
var
|
|
5964
|
-
if (x(
|
|
5965
|
-
return k(
|
|
5966
|
-
i = setTimeout(E, h(
|
|
5972
|
+
var W = Cs();
|
|
5973
|
+
if (x(W))
|
|
5974
|
+
return k(W);
|
|
5975
|
+
i = setTimeout(E, h(W));
|
|
5967
5976
|
}
|
|
5968
|
-
function k(
|
|
5969
|
-
return i = void 0, p && a ? f(
|
|
5977
|
+
function k(W) {
|
|
5978
|
+
return i = void 0, p && a ? f(W) : (a = n = void 0, o);
|
|
5970
5979
|
}
|
|
5971
5980
|
function D() {
|
|
5972
5981
|
i !== void 0 && clearTimeout(i), c = 0, a = l = n = i = void 0;
|
|
5973
5982
|
}
|
|
5974
|
-
function
|
|
5983
|
+
function M() {
|
|
5975
5984
|
return i === void 0 ? o : k(Cs());
|
|
5976
5985
|
}
|
|
5977
5986
|
function F() {
|
|
5978
|
-
var
|
|
5979
|
-
if (a = arguments, n = this, l =
|
|
5987
|
+
var W = Cs(), I = x(W);
|
|
5988
|
+
if (a = arguments, n = this, l = W, I) {
|
|
5980
5989
|
if (i === void 0)
|
|
5981
5990
|
return y(l);
|
|
5982
5991
|
if (u)
|
|
@@ -5984,7 +5993,7 @@ function Rf(e, t, r) {
|
|
|
5984
5993
|
}
|
|
5985
5994
|
return i === void 0 && (i = setTimeout(E, t)), o;
|
|
5986
5995
|
}
|
|
5987
|
-
return F.cancel = D, F.flush =
|
|
5996
|
+
return F.cancel = D, F.flush = M, F;
|
|
5988
5997
|
}
|
|
5989
5998
|
var _f = "Expected a function";
|
|
5990
5999
|
function Af(e, t, r) {
|
|
@@ -6008,10 +6017,10 @@ const Tf = Xr(
|
|
|
6008
6017
|
disabled: s,
|
|
6009
6018
|
...o
|
|
6010
6019
|
}) => {
|
|
6011
|
-
var D,
|
|
6012
|
-
const { t: i } =
|
|
6020
|
+
var D, M, F, W, I, L, B;
|
|
6021
|
+
const { t: i } = $t(), [l, c] = gr(), d = ct(), u = {
|
|
6013
6022
|
background: (D = d.palette.backgroundPaperElevation) == null ? void 0 : D[4],
|
|
6014
|
-
color: (
|
|
6023
|
+
color: (M = d.palette.backgroundPaperElevation) == null ? void 0 : M[11]
|
|
6015
6024
|
}, p = Nn(() => ({
|
|
6016
6025
|
activeJoggingDir: null,
|
|
6017
6026
|
startJogging(g) {
|
|
@@ -6062,12 +6071,12 @@ const Tf = Xr(
|
|
|
6062
6071
|
height: "42px"
|
|
6063
6072
|
},
|
|
6064
6073
|
"&.Mui-disabled": {
|
|
6065
|
-
backgroundColor: (
|
|
6074
|
+
backgroundColor: (W = d.palette.backgroundPaperElevation) == null ? void 0 : W[11],
|
|
6066
6075
|
color: d.palette.action.disabled,
|
|
6067
6076
|
opacity: 1
|
|
6068
6077
|
},
|
|
6069
6078
|
"&:hover": {
|
|
6070
|
-
backgroundColor: (
|
|
6079
|
+
backgroundColor: (I = d.palette.backgroundPaperElevation) == null ? void 0 : I[9]
|
|
6071
6080
|
},
|
|
6072
6081
|
"&:active": {
|
|
6073
6082
|
...u
|
|
@@ -6270,7 +6279,7 @@ var Yf = Kf;
|
|
|
6270
6279
|
function Xf(e) {
|
|
6271
6280
|
return this.__data__.has(e);
|
|
6272
6281
|
}
|
|
6273
|
-
var Zf = Xf, eg = typeof global == "object" && global && global.Object === Object && global, wc = eg, tg = typeof self == "object" && self && self.Object === Object && self, rg = wc || tg || Function("return this")(),
|
|
6282
|
+
var Zf = Xf, eg = typeof global == "object" && global && global.Object === Object && global, wc = eg, tg = typeof self == "object" && self && self.Object === Object && self, rg = wc || tg || Function("return this")(), Lt = rg, ag = Lt.Symbol, Yr = ag, Cc = Object.prototype, ng = Cc.hasOwnProperty, sg = Cc.toString, Sa = Yr ? Yr.toStringTag : void 0;
|
|
6274
6283
|
function og(e) {
|
|
6275
6284
|
var t = ng.call(e, Sa), r = e[Sa];
|
|
6276
6285
|
try {
|
|
@@ -6296,7 +6305,7 @@ function Sg(e) {
|
|
|
6296
6305
|
var t = qa(e);
|
|
6297
6306
|
return t == gg || t == yg || t == fg || t == bg;
|
|
6298
6307
|
}
|
|
6299
|
-
var Pc = Sg, vg =
|
|
6308
|
+
var Pc = Sg, vg = Lt["__core-js_shared__"], Ps = vg, _i = function() {
|
|
6300
6309
|
var e = /[^.]+$/.exec(Ps && Ps.keys && Ps.keys.IE_PROTO || "");
|
|
6301
6310
|
return e ? "Symbol(src)_1." + e : "";
|
|
6302
6311
|
}();
|
|
@@ -6335,7 +6344,7 @@ function Lg(e, t) {
|
|
|
6335
6344
|
var r = Ug(e, t);
|
|
6336
6345
|
return jg(r) ? r : void 0;
|
|
6337
6346
|
}
|
|
6338
|
-
var ea = Lg, kg = ea(
|
|
6347
|
+
var ea = Lg, kg = ea(Lt, "Map"), La = kg, Bg = ea(Object, "create"), ka = Bg;
|
|
6339
6348
|
function Fg() {
|
|
6340
6349
|
this.__data__ = ka ? ka(null) : {}, this.size = 0;
|
|
6341
6350
|
}
|
|
@@ -6507,7 +6516,7 @@ function Ty(e, t, r, a, n, s) {
|
|
|
6507
6516
|
}
|
|
6508
6517
|
return s.delete(e), s.delete(t), p;
|
|
6509
6518
|
}
|
|
6510
|
-
var Rc = Ty, Ey =
|
|
6519
|
+
var Rc = Ty, Ey = Lt.Uint8Array, Ti = Ey;
|
|
6511
6520
|
function Iy(e) {
|
|
6512
6521
|
var t = -1, r = Array(e.size);
|
|
6513
6522
|
return e.forEach(function(a, n) {
|
|
@@ -6606,7 +6615,7 @@ var Mi = mb, _c = Object.prototype, fb = _c.hasOwnProperty, gb = _c.propertyIsEn
|
|
|
6606
6615
|
function Sb() {
|
|
6607
6616
|
return !1;
|
|
6608
6617
|
}
|
|
6609
|
-
var vb = Sb, Ac = typeof exports == "object" && exports && !exports.nodeType && exports, ji = Ac && typeof module == "object" && module && !module.nodeType && module, xb = ji && ji.exports === Ac, $i = xb ?
|
|
6618
|
+
var vb = Sb, Ac = typeof exports == "object" && exports && !exports.nodeType && exports, ji = Ac && typeof module == "object" && module && !module.nodeType && module, xb = ji && ji.exports === Ac, $i = xb ? Lt.Buffer : void 0, Ob = $i ? $i.isBuffer : void 0, wb = Ob || vb, Hs = wb, Cb = 9007199254740991, Pb = /^(?:0|[1-9]\d*)$/;
|
|
6610
6619
|
function Vb(e, t) {
|
|
6611
6620
|
var r = typeof e;
|
|
6612
6621
|
return t = t ?? Cb, !!t && (r == "number" || r != "symbol" && Pb.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
@@ -6703,12 +6712,12 @@ function T0(e, t, r, a, n, s) {
|
|
|
6703
6712
|
x || (x = p == "constructor");
|
|
6704
6713
|
}
|
|
6705
6714
|
if (h && !x) {
|
|
6706
|
-
var
|
|
6707
|
-
|
|
6715
|
+
var M = e.constructor, F = t.constructor;
|
|
6716
|
+
M != F && "constructor" in e && "constructor" in t && !(typeof M == "function" && M instanceof M && typeof F == "function" && F instanceof F) && (h = !1);
|
|
6708
6717
|
}
|
|
6709
6718
|
return s.delete(e), s.delete(t), h;
|
|
6710
6719
|
}
|
|
6711
|
-
var E0 = T0, I0 = ea(
|
|
6720
|
+
var E0 = T0, I0 = ea(Lt, "DataView"), Js = I0, M0 = ea(Lt, "Promise"), qs = M0, j0 = ea(Lt, "Set"), Ws = j0, $0 = ea(Lt, "WeakMap"), Qs = $0, Bi = "[object Map]", U0 = "[object Object]", Fi = "[object Promise]", Ni = "[object Set]", Di = "[object WeakMap]", zi = "[object DataView]", L0 = Sr(Js), k0 = Sr(La), B0 = Sr(qs), F0 = Sr(Ws), N0 = Sr(Qs), lr = qa;
|
|
6712
6721
|
(Js && lr(new Js(new ArrayBuffer(1))) != zi || La && lr(new La()) != Bi || qs && lr(qs.resolve()) != Fi || Ws && lr(new Ws()) != Ni || Qs && lr(new Qs()) != Di) && (lr = function(e) {
|
|
6713
6722
|
var t = qa(e), r = t == U0 ? e.constructor : void 0, a = r ? Sr(r) : "";
|
|
6714
6723
|
if (a)
|
|
@@ -7262,7 +7271,7 @@ var eS = function() {
|
|
|
7262
7271
|
return this.available ? window.localStorage.getItem(e) : null;
|
|
7263
7272
|
}
|
|
7264
7273
|
}, As = new cS();
|
|
7265
|
-
function
|
|
7274
|
+
function Kt(e) {
|
|
7266
7275
|
try {
|
|
7267
7276
|
return JSON.parse(e);
|
|
7268
7277
|
} catch {
|
|
@@ -7640,10 +7649,10 @@ function ls(e, t, r) {
|
|
|
7640
7649
|
if (j.endsWith(h, "{}"))
|
|
7641
7650
|
h = a ? h : h.slice(0, -2), y = JSON.stringify(y);
|
|
7642
7651
|
else if (j.isArray(y) && XS(y) || (j.isFileList(y) || j.endsWith(h, "[]")) && (E = j.toArray(y)))
|
|
7643
|
-
return h = Hc(h), E.forEach(function(D,
|
|
7652
|
+
return h = Hc(h), E.forEach(function(D, M) {
|
|
7644
7653
|
!(j.isUndefined(D) || D === null) && t.append(
|
|
7645
7654
|
// eslint-disable-next-line no-nested-ternary
|
|
7646
|
-
o === !0 ? Yi([h],
|
|
7655
|
+
o === !0 ? Yi([h], M, s) : o === null ? h : h + "[]",
|
|
7647
7656
|
c(D)
|
|
7648
7657
|
);
|
|
7649
7658
|
}), !1;
|
|
@@ -8339,10 +8348,10 @@ const Zc = (e) => {
|
|
|
8339
8348
|
config: e,
|
|
8340
8349
|
request: x
|
|
8341
8350
|
};
|
|
8342
|
-
Yc(function(
|
|
8343
|
-
r(
|
|
8344
|
-
}, function(
|
|
8345
|
-
a(
|
|
8351
|
+
Yc(function(I) {
|
|
8352
|
+
r(I), h();
|
|
8353
|
+
}, function(I) {
|
|
8354
|
+
a(I), h();
|
|
8346
8355
|
}, F), x = null;
|
|
8347
8356
|
}
|
|
8348
8357
|
"onloadend" in x ? x.onloadend = E : x.onreadystatechange = function() {
|
|
@@ -8352,16 +8361,16 @@ const Zc = (e) => {
|
|
|
8352
8361
|
}, x.onerror = function() {
|
|
8353
8362
|
a(new ne("Network Error", ne.ERR_NETWORK, e, x)), x = null;
|
|
8354
8363
|
}, x.ontimeout = function() {
|
|
8355
|
-
let
|
|
8364
|
+
let M = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
8356
8365
|
const F = n.transitional || Wc;
|
|
8357
|
-
n.timeoutErrorMessage && (
|
|
8358
|
-
|
|
8366
|
+
n.timeoutErrorMessage && (M = n.timeoutErrorMessage), a(new ne(
|
|
8367
|
+
M,
|
|
8359
8368
|
F.clarifyTimeoutError ? ne.ETIMEDOUT : ne.ECONNABORTED,
|
|
8360
8369
|
e,
|
|
8361
8370
|
x
|
|
8362
8371
|
)), x = null;
|
|
8363
|
-
}, s === void 0 && o.setContentType(null), "setRequestHeader" in x && j.forEach(o.toJSON(), function(
|
|
8364
|
-
x.setRequestHeader(F,
|
|
8372
|
+
}, s === void 0 && o.setContentType(null), "setRequestHeader" in x && j.forEach(o.toJSON(), function(M, F) {
|
|
8373
|
+
x.setRequestHeader(F, M);
|
|
8365
8374
|
}), j.isUndefined(n.withCredentials) || (x.withCredentials = !!n.withCredentials), i && i !== "json" && (x.responseType = n.responseType), c && ([p, y] = Ln(c, !0), x.addEventListener("progress", p)), l && x.upload && ([u, f] = Ln(l), x.upload.addEventListener("progress", u), x.upload.addEventListener("loadend", f)), (n.cancelToken || n.signal) && (d = (D) => {
|
|
8366
8375
|
x && (a(!D || D.type ? new sa(null, e, x) : D), x.abort(), x = null);
|
|
8367
8376
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
@@ -8522,13 +8531,13 @@ const jv = async (e) => {
|
|
|
8522
8531
|
method: "POST",
|
|
8523
8532
|
body: a,
|
|
8524
8533
|
duplex: "half"
|
|
8525
|
-
}),
|
|
8526
|
-
if (j.isFormData(a) && (
|
|
8527
|
-
const [
|
|
8534
|
+
}), W;
|
|
8535
|
+
if (j.isFormData(a) && (W = F.headers.get("content-type")) && d.setContentType(W), F.body) {
|
|
8536
|
+
const [I, L] = tl(
|
|
8528
8537
|
x,
|
|
8529
8538
|
Ln(rl(l))
|
|
8530
8539
|
);
|
|
8531
|
-
a = nl(F.body, sl,
|
|
8540
|
+
a = nl(F.body, sl, I, L);
|
|
8532
8541
|
}
|
|
8533
8542
|
}
|
|
8534
8543
|
j.isString(u) || (u = u ? "include" : "omit");
|
|
@@ -8549,22 +8558,22 @@ const jv = async (e) => {
|
|
|
8549
8558
|
["status", "statusText", "headers"].forEach((B) => {
|
|
8550
8559
|
F[B] = k[B];
|
|
8551
8560
|
});
|
|
8552
|
-
const
|
|
8553
|
-
|
|
8561
|
+
const W = j.toFiniteNumber(k.headers.get("content-length")), [I, L] = i && tl(
|
|
8562
|
+
W,
|
|
8554
8563
|
Ln(rl(i), !0)
|
|
8555
8564
|
) || [];
|
|
8556
8565
|
k = new Response(
|
|
8557
|
-
nl(k.body, sl,
|
|
8566
|
+
nl(k.body, sl, I, () => {
|
|
8558
8567
|
L && L(), h && h();
|
|
8559
8568
|
}),
|
|
8560
8569
|
F
|
|
8561
8570
|
);
|
|
8562
8571
|
}
|
|
8563
8572
|
c = c || "text";
|
|
8564
|
-
let
|
|
8565
|
-
return !D && h && h(), await new Promise((F,
|
|
8566
|
-
Yc(F,
|
|
8567
|
-
data:
|
|
8573
|
+
let M = await kn[j.findKey(kn, c) || "text"](k, e);
|
|
8574
|
+
return !D && h && h(), await new Promise((F, W) => {
|
|
8575
|
+
Yc(F, W, {
|
|
8576
|
+
data: M,
|
|
8568
8577
|
headers: Ye.from(k.headers),
|
|
8569
8578
|
status: k.status,
|
|
8570
8579
|
statusText: k.statusText,
|
|
@@ -14108,7 +14117,7 @@ const Sx = function(e) {
|
|
|
14108
14117
|
};
|
|
14109
14118
|
}
|
|
14110
14119
|
};
|
|
14111
|
-
},
|
|
14120
|
+
}, Jt = function(e) {
|
|
14112
14121
|
const t = Sx(e);
|
|
14113
14122
|
return {
|
|
14114
14123
|
/**
|
|
@@ -14227,7 +14236,7 @@ class vx extends Oe {
|
|
|
14227
14236
|
* @memberof ProgramApi
|
|
14228
14237
|
*/
|
|
14229
14238
|
createProgramRunner(t, r, a) {
|
|
14230
|
-
return
|
|
14239
|
+
return Jt(this.configuration).createProgramRunner(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
14231
14240
|
}
|
|
14232
14241
|
/**
|
|
14233
14242
|
* Execute a program in Wandelscript. The Wandelscript can also move multiple robots by using the \'do with\' syntax. The execute operation will be started from the current joint configuration of any addressed robot(s). Addressed robots have to be in control mode for the execute operation to succeed. A request to this endpoint will block this endpoint until the program has been executed, or until an error occurs. The executed movement is returned in case of a succesful execution. Otherwise an error (e.g. out of reach, singularity), is returned. The Wandelscript can either be submitted as is, using Content-type text/plain, or as content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". * [WandelEngine & Wandelscript Documentation](/docs/docs/wandelscript)
|
|
@@ -14239,7 +14248,7 @@ class vx extends Oe {
|
|
|
14239
14248
|
* @memberof ProgramApi
|
|
14240
14249
|
*/
|
|
14241
14250
|
executeProgram(t, r, a) {
|
|
14242
|
-
return
|
|
14251
|
+
return Jt(this.configuration).executeProgram(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
14243
14252
|
}
|
|
14244
14253
|
/**
|
|
14245
14254
|
* Returns information about a program currently executed. When a program is finished: Program response, result, collected Wandelscript logs, etc. When a program is running: Running status, current executed line, etc. ## Parameters - **runner_id**: The id of the program runner
|
|
@@ -14251,7 +14260,7 @@ class vx extends Oe {
|
|
|
14251
14260
|
* @memberof ProgramApi
|
|
14252
14261
|
*/
|
|
14253
14262
|
getProgramRunner(t, r, a) {
|
|
14254
|
-
return
|
|
14263
|
+
return Jt(this.configuration).getProgramRunner(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
14255
14264
|
}
|
|
14256
14265
|
/**
|
|
14257
14266
|
* Get details about all existing program runners.
|
|
@@ -14262,7 +14271,7 @@ class vx extends Oe {
|
|
|
14262
14271
|
* @memberof ProgramApi
|
|
14263
14272
|
*/
|
|
14264
14273
|
listProgramRunners(t, r) {
|
|
14265
|
-
return
|
|
14274
|
+
return Jt(this.configuration).listProgramRunners(t, r).then((a) => a(this.axios, this.basePath));
|
|
14266
14275
|
}
|
|
14267
14276
|
/**
|
|
14268
14277
|
* Migrate a program ## Parameters See the **Schema** tab for information about the request body
|
|
@@ -14274,7 +14283,7 @@ class vx extends Oe {
|
|
|
14274
14283
|
* @memberof ProgramApi
|
|
14275
14284
|
*/
|
|
14276
14285
|
migrateProgram(t, r, a) {
|
|
14277
|
-
return
|
|
14286
|
+
return Jt(this.configuration).migrateProgram(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
14278
14287
|
}
|
|
14279
14288
|
/**
|
|
14280
14289
|
* Plan a program based on the specified robot type. The plan operation can be used to check if a Wandelscript is executable, given the current joint configuration of the robot. If the Wandelscript is executable, the result contains the motion path. If the Wandelscript is not executable, e.g. points that are out of reach, or the joints encounter a singularity, the reason is returned. The plan operation can be used in other operating modes besides control mode. The Wandelscript can either be submitted as is, using Content-type text/plain, or as content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". The plan operation can be used in other operating modes besides control mode. The Wandelscript can either be submitted as is, using Content-type text/plain, or as Content-type application/json with the Wandelscript under \"code\" alongside a set of values provided under \"initial_state\". * [WandelEngine & Wandelscript Documentation](/docs/docs/wandelscript)
|
|
@@ -14287,7 +14296,7 @@ class vx extends Oe {
|
|
|
14287
14296
|
* @memberof ProgramApi
|
|
14288
14297
|
*/
|
|
14289
14298
|
planProgram(t, r, a, n) {
|
|
14290
|
-
return
|
|
14299
|
+
return Jt(this.configuration).planProgram(t, r, a, n).then((s) => s(this.axios, this.basePath));
|
|
14291
14300
|
}
|
|
14292
14301
|
/**
|
|
14293
14302
|
* Stop all runners.
|
|
@@ -14298,7 +14307,7 @@ class vx extends Oe {
|
|
|
14298
14307
|
* @memberof ProgramApi
|
|
14299
14308
|
*/
|
|
14300
14309
|
stopAllProgramRunner(t, r) {
|
|
14301
|
-
return
|
|
14310
|
+
return Jt(this.configuration).stopAllProgramRunner(t, r).then((a) => a(this.axios, this.basePath));
|
|
14302
14311
|
}
|
|
14303
14312
|
/**
|
|
14304
14313
|
* Stop a specific program runner. If the indicated runner was not running, an error will be returned. ## Parameters - **runner_id**: The id of the program runner
|
|
@@ -14310,7 +14319,7 @@ class vx extends Oe {
|
|
|
14310
14319
|
* @memberof ProgramApi
|
|
14311
14320
|
*/
|
|
14312
14321
|
stopProgramRunner(t, r, a) {
|
|
14313
|
-
return
|
|
14322
|
+
return Jt(this.configuration).stopProgramRunner(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
14314
14323
|
}
|
|
14315
14324
|
}
|
|
14316
14325
|
const xx = function(e) {
|
|
@@ -16856,7 +16865,7 @@ const Lx = function(e) {
|
|
|
16856
16865
|
};
|
|
16857
16866
|
}
|
|
16858
16867
|
};
|
|
16859
|
-
},
|
|
16868
|
+
}, qt = function(e) {
|
|
16860
16869
|
const t = Lx(e);
|
|
16861
16870
|
return {
|
|
16862
16871
|
/**
|
|
@@ -16988,7 +16997,7 @@ class kx extends Oe {
|
|
|
16988
16997
|
* @memberof VirtualRobotSetupApi
|
|
16989
16998
|
*/
|
|
16990
16999
|
addVirtualRobotCoordinateSystem(t, r, a, n) {
|
|
16991
|
-
return
|
|
17000
|
+
return qt(this.configuration).addVirtualRobotCoordinateSystem(t, r, a, n).then((s) => s(this.axios, this.basePath));
|
|
16992
17001
|
}
|
|
16993
17002
|
/**
|
|
16994
17003
|
* Adds a new TCP or updates an existing TCP in the motion group. The position and rotation values in the request body are defined within the flange’s coordinate system. > **NOTE** > > Ensure the TCP\'s position is within the robot\'s reach. Refer to the robot’s documentation or data sheet for details like joint limits or reach.
|
|
@@ -17002,7 +17011,7 @@ class kx extends Oe {
|
|
|
17002
17011
|
* @memberof VirtualRobotSetupApi
|
|
17003
17012
|
*/
|
|
17004
17013
|
addVirtualRobotTcp(t, r, a, n, s) {
|
|
17005
|
-
return
|
|
17014
|
+
return qt(this.configuration).addVirtualRobotTcp(t, r, a, n, s).then((o) => o(this.axios, this.basePath));
|
|
17006
17015
|
}
|
|
17007
17016
|
/**
|
|
17008
17017
|
* Deletes a coordinate system from the virtual controller. This will remove the coordinate system from the list of coordinate systems and remove all dependent coordinate systems which use the deleted coordinate system as reference.
|
|
@@ -17016,7 +17025,7 @@ class kx extends Oe {
|
|
|
17016
17025
|
* @memberof VirtualRobotSetupApi
|
|
17017
17026
|
*/
|
|
17018
17027
|
deleteVirtualRobotCoordinateSystem(t, r, a, n, s) {
|
|
17019
|
-
return
|
|
17028
|
+
return qt(this.configuration).deleteVirtualRobotCoordinateSystem(t, r, a, n, s).then((o) => o(this.axios, this.basePath));
|
|
17020
17029
|
}
|
|
17021
17030
|
/**
|
|
17022
17031
|
* Removes the TCP from the motion group. An unknown TCP is a valid input.
|
|
@@ -17030,7 +17039,7 @@ class kx extends Oe {
|
|
|
17030
17039
|
* @memberof VirtualRobotSetupApi
|
|
17031
17040
|
*/
|
|
17032
17041
|
deleteVirtualRobotTcp(t, r, a, n, s) {
|
|
17033
|
-
return
|
|
17042
|
+
return qt(this.configuration).deleteVirtualRobotTcp(t, r, a, n, s).then((o) => o(this.axios, this.basePath));
|
|
17034
17043
|
}
|
|
17035
17044
|
/**
|
|
17036
17045
|
* Gets motion group mounting. The motion group is based on the origin of the returned coordinate system.
|
|
@@ -17043,7 +17052,7 @@ class kx extends Oe {
|
|
|
17043
17052
|
* @memberof VirtualRobotSetupApi
|
|
17044
17053
|
*/
|
|
17045
17054
|
getVirtualRobotMounting(t, r, a, n) {
|
|
17046
|
-
return
|
|
17055
|
+
return qt(this.configuration).getVirtualRobotMounting(t, r, a, n).then((s) => s(this.axios, this.basePath));
|
|
17047
17056
|
}
|
|
17048
17057
|
/**
|
|
17049
17058
|
* Lists all coordinate systems on the robot controller.
|
|
@@ -17055,7 +17064,7 @@ class kx extends Oe {
|
|
|
17055
17064
|
* @memberof VirtualRobotSetupApi
|
|
17056
17065
|
*/
|
|
17057
17066
|
listVirtualRobotCoordinateSystems(t, r, a) {
|
|
17058
|
-
return
|
|
17067
|
+
return qt(this.configuration).listVirtualRobotCoordinateSystems(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
17059
17068
|
}
|
|
17060
17069
|
/**
|
|
17061
17070
|
* Lists TCPs of the motion group. An empty TCP list is valid, for example for external axes.
|
|
@@ -17068,7 +17077,7 @@ class kx extends Oe {
|
|
|
17068
17077
|
* @memberof VirtualRobotSetupApi
|
|
17069
17078
|
*/
|
|
17070
17079
|
listVirtualRobotTcps(t, r, a, n) {
|
|
17071
|
-
return
|
|
17080
|
+
return qt(this.configuration).listVirtualRobotTcps(t, r, a, n).then((s) => s(this.axios, this.basePath));
|
|
17072
17081
|
}
|
|
17073
17082
|
/**
|
|
17074
17083
|
* Sets motion group mounting by specifying a coordinate system. The motion group will be based on the coordinate system\'s origin. The coordinate system defines a transformation offset. The transformation offset is defined by a unique identifier, a name for front end usage and an offset in another coordinate system referenced by the unique identifier of the reference coordinate system.
|
|
@@ -17082,7 +17091,7 @@ class kx extends Oe {
|
|
|
17082
17091
|
* @memberof VirtualRobotSetupApi
|
|
17083
17092
|
*/
|
|
17084
17093
|
setVirtualRobotMounting(t, r, a, n, s) {
|
|
17085
|
-
return
|
|
17094
|
+
return qt(this.configuration).setVirtualRobotMounting(t, r, a, n, s).then((o) => o(this.axios, this.basePath));
|
|
17086
17095
|
}
|
|
17087
17096
|
}
|
|
17088
17097
|
function Mt(e, t, r) {
|
|
@@ -17128,11 +17137,11 @@ class Bx {
|
|
|
17128
17137
|
let x = 1 - i;
|
|
17129
17138
|
const E = l * p + c * f + d * y + u * h, k = E >= 0 ? 1 : -1, D = 1 - E * E;
|
|
17130
17139
|
if (D > Number.EPSILON) {
|
|
17131
|
-
const F = Math.sqrt(D),
|
|
17132
|
-
x = Math.sin(x *
|
|
17140
|
+
const F = Math.sqrt(D), W = Math.atan2(F, E * k);
|
|
17141
|
+
x = Math.sin(x * W) / F, i = Math.sin(i * W) / F;
|
|
17133
17142
|
}
|
|
17134
|
-
const
|
|
17135
|
-
if (l = l * x + p *
|
|
17143
|
+
const M = i * k;
|
|
17144
|
+
if (l = l * x + p * M, c = c * x + f * M, d = d * x + y * M, u = u * x + h * M, x === 1 - i) {
|
|
17136
17145
|
const F = 1 / Math.sqrt(l * l + c * c + d * d + u * u);
|
|
17137
17146
|
l *= F, c *= F, d *= F, u *= F;
|
|
17138
17147
|
}
|
|
@@ -18327,8 +18336,8 @@ function Us() {
|
|
|
18327
18336
|
var vt = {}, ul;
|
|
18328
18337
|
function Nx() {
|
|
18329
18338
|
if (ul) return vt;
|
|
18330
|
-
ul = 1, Object.defineProperty(vt, "__esModule", { value: !0 }), vt.TokenData = void 0, vt.parse = u, vt.compile = p, vt.match = h, vt.pathToRegexp = x, vt.stringify =
|
|
18331
|
-
const e = "/", t = (
|
|
18339
|
+
ul = 1, Object.defineProperty(vt, "__esModule", { value: !0 }), vt.TokenData = void 0, vt.parse = u, vt.compile = p, vt.match = h, vt.pathToRegexp = x, vt.stringify = M;
|
|
18340
|
+
const e = "/", t = (I) => I, r = /^[$_\p{ID_Start}]$/u, a = /^[$\u200c\u200d\p{ID_Continue}]$/u, n = "https://git.new/pathToRegexpError", s = {
|
|
18332
18341
|
// Groups.
|
|
18333
18342
|
"{": "{",
|
|
18334
18343
|
"}": "}",
|
|
@@ -18341,14 +18350,14 @@ function Nx() {
|
|
|
18341
18350
|
"?": "?",
|
|
18342
18351
|
"!": "!"
|
|
18343
18352
|
};
|
|
18344
|
-
function o(
|
|
18345
|
-
return
|
|
18353
|
+
function o(I) {
|
|
18354
|
+
return I.replace(/[{}()\[\]+?!:*]/g, "\\$&");
|
|
18346
18355
|
}
|
|
18347
|
-
function i(
|
|
18348
|
-
return
|
|
18356
|
+
function i(I) {
|
|
18357
|
+
return I.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
18349
18358
|
}
|
|
18350
|
-
function* l(
|
|
18351
|
-
const L = [...
|
|
18359
|
+
function* l(I) {
|
|
18360
|
+
const L = [...I];
|
|
18352
18361
|
let B = 0;
|
|
18353
18362
|
function g() {
|
|
18354
18363
|
let $ = "";
|
|
@@ -18378,11 +18387,11 @@ function Nx() {
|
|
|
18378
18387
|
else if ($ === "\\")
|
|
18379
18388
|
yield { type: "ESCAPED", index: B++, value: L[B++] };
|
|
18380
18389
|
else if ($ === ":") {
|
|
18381
|
-
const
|
|
18382
|
-
yield { type: "PARAM", index: B, value:
|
|
18390
|
+
const J = g();
|
|
18391
|
+
yield { type: "PARAM", index: B, value: J };
|
|
18383
18392
|
} else if ($ === "*") {
|
|
18384
|
-
const
|
|
18385
|
-
yield { type: "WILDCARD", index: B, value:
|
|
18393
|
+
const J = g();
|
|
18394
|
+
yield { type: "WILDCARD", index: B, value: J };
|
|
18386
18395
|
} else
|
|
18387
18396
|
yield { type: "CHAR", index: B, value: L[B++] };
|
|
18388
18397
|
}
|
|
@@ -18424,9 +18433,9 @@ function Nx() {
|
|
|
18424
18433
|
}
|
|
18425
18434
|
}
|
|
18426
18435
|
vt.TokenData = d;
|
|
18427
|
-
function u(
|
|
18428
|
-
const { encodePath: B = t } = L, g = new c(l(
|
|
18429
|
-
function $(
|
|
18436
|
+
function u(I, L = {}) {
|
|
18437
|
+
const { encodePath: B = t } = L, g = new c(l(I));
|
|
18438
|
+
function $(J) {
|
|
18430
18439
|
const z = [];
|
|
18431
18440
|
for (; ; ) {
|
|
18432
18441
|
const ee = g.text();
|
|
@@ -18454,14 +18463,14 @@ function Nx() {
|
|
|
18454
18463
|
});
|
|
18455
18464
|
continue;
|
|
18456
18465
|
}
|
|
18457
|
-
return g.consume(
|
|
18466
|
+
return g.consume(J), z;
|
|
18458
18467
|
}
|
|
18459
18468
|
}
|
|
18460
18469
|
const N = $("END");
|
|
18461
18470
|
return new d(N);
|
|
18462
18471
|
}
|
|
18463
|
-
function p(
|
|
18464
|
-
const { encode: B = encodeURIComponent, delimiter: g = e } = L, $ =
|
|
18472
|
+
function p(I, L = {}) {
|
|
18473
|
+
const { encode: B = encodeURIComponent, delimiter: g = e } = L, $ = I instanceof d ? I : u(I, L), N = f($.tokens, g, B);
|
|
18465
18474
|
return function(z = {}) {
|
|
18466
18475
|
const [ee, ...Z] = N(z);
|
|
18467
18476
|
if (Z.length)
|
|
@@ -18469,52 +18478,52 @@ function Nx() {
|
|
|
18469
18478
|
return ee;
|
|
18470
18479
|
};
|
|
18471
18480
|
}
|
|
18472
|
-
function f(
|
|
18473
|
-
const g =
|
|
18481
|
+
function f(I, L, B) {
|
|
18482
|
+
const g = I.map(($) => y($, L, B));
|
|
18474
18483
|
return ($) => {
|
|
18475
18484
|
const N = [""];
|
|
18476
|
-
for (const
|
|
18477
|
-
const [z, ...ee] =
|
|
18485
|
+
for (const J of g) {
|
|
18486
|
+
const [z, ...ee] = J($);
|
|
18478
18487
|
N[0] += z, N.push(...ee);
|
|
18479
18488
|
}
|
|
18480
18489
|
return N;
|
|
18481
18490
|
};
|
|
18482
18491
|
}
|
|
18483
|
-
function y(
|
|
18484
|
-
if (
|
|
18485
|
-
return () => [
|
|
18486
|
-
if (
|
|
18487
|
-
const $ = f(
|
|
18492
|
+
function y(I, L, B) {
|
|
18493
|
+
if (I.type === "text")
|
|
18494
|
+
return () => [I.value];
|
|
18495
|
+
if (I.type === "group") {
|
|
18496
|
+
const $ = f(I.tokens, L, B);
|
|
18488
18497
|
return (N) => {
|
|
18489
|
-
const [
|
|
18490
|
-
return z.length ? [""] : [
|
|
18498
|
+
const [J, ...z] = $(N);
|
|
18499
|
+
return z.length ? [""] : [J];
|
|
18491
18500
|
};
|
|
18492
18501
|
}
|
|
18493
18502
|
const g = B || t;
|
|
18494
|
-
return
|
|
18495
|
-
const N = $[
|
|
18503
|
+
return I.type === "wildcard" && B !== !1 ? ($) => {
|
|
18504
|
+
const N = $[I.name];
|
|
18496
18505
|
if (N == null)
|
|
18497
|
-
return ["",
|
|
18506
|
+
return ["", I.name];
|
|
18498
18507
|
if (!Array.isArray(N) || N.length === 0)
|
|
18499
|
-
throw new TypeError(`Expected "${
|
|
18508
|
+
throw new TypeError(`Expected "${I.name}" to be a non-empty array`);
|
|
18500
18509
|
return [
|
|
18501
|
-
N.map((
|
|
18502
|
-
if (typeof
|
|
18503
|
-
throw new TypeError(`Expected "${
|
|
18504
|
-
return g(
|
|
18510
|
+
N.map((J, z) => {
|
|
18511
|
+
if (typeof J != "string")
|
|
18512
|
+
throw new TypeError(`Expected "${I.name}/${z}" to be a string`);
|
|
18513
|
+
return g(J);
|
|
18505
18514
|
}).join(L)
|
|
18506
18515
|
];
|
|
18507
18516
|
} : ($) => {
|
|
18508
|
-
const N = $[
|
|
18517
|
+
const N = $[I.name];
|
|
18509
18518
|
if (N == null)
|
|
18510
|
-
return ["",
|
|
18519
|
+
return ["", I.name];
|
|
18511
18520
|
if (typeof N != "string")
|
|
18512
|
-
throw new TypeError(`Expected "${
|
|
18521
|
+
throw new TypeError(`Expected "${I.name}" to be a string`);
|
|
18513
18522
|
return [g(N)];
|
|
18514
18523
|
};
|
|
18515
18524
|
}
|
|
18516
|
-
function h(
|
|
18517
|
-
const { decode: B = decodeURIComponent, delimiter: g = e } = L, { regexp: $, keys: N } = x(
|
|
18525
|
+
function h(I, L = {}) {
|
|
18526
|
+
const { decode: B = decodeURIComponent, delimiter: g = e } = L, { regexp: $, keys: N } = x(I, L), J = N.map((z) => B === !1 ? t : z.type === "param" ? B : (ee) => ee.split(g).map(B));
|
|
18518
18527
|
return function(ee) {
|
|
18519
18528
|
const Z = $.exec(ee);
|
|
18520
18529
|
if (!Z)
|
|
@@ -18523,38 +18532,38 @@ function Nx() {
|
|
|
18523
18532
|
for (let de = 1; de < Z.length; de++) {
|
|
18524
18533
|
if (Z[de] === void 0)
|
|
18525
18534
|
continue;
|
|
18526
|
-
const be = N[de - 1], oe =
|
|
18535
|
+
const be = N[de - 1], oe = J[de - 1];
|
|
18527
18536
|
se[be.name] = oe(Z[de]);
|
|
18528
18537
|
}
|
|
18529
18538
|
return { path: Pe, params: se };
|
|
18530
18539
|
};
|
|
18531
18540
|
}
|
|
18532
|
-
function x(
|
|
18533
|
-
const { delimiter: B = e, end: g = !0, sensitive: $ = !1, trailing: N = !0 } = L,
|
|
18541
|
+
function x(I, L = {}) {
|
|
18542
|
+
const { delimiter: B = e, end: g = !0, sensitive: $ = !1, trailing: N = !0 } = L, J = [], z = [], ee = $ ? "" : "i", Pe = (Array.isArray(I) ? I : [I]).map((be) => be instanceof d ? be : u(be, L));
|
|
18534
18543
|
for (const { tokens: be } of Pe)
|
|
18535
18544
|
for (const oe of E(be, 0, [])) {
|
|
18536
|
-
const Ge = k(oe, B,
|
|
18545
|
+
const Ge = k(oe, B, J);
|
|
18537
18546
|
z.push(Ge);
|
|
18538
18547
|
}
|
|
18539
18548
|
let se = `^(?:${z.join("|")})`;
|
|
18540
|
-
return N && (se += `(?:${i(B)}$)?`), se += g ? "$" : `(?=${i(B)}|$)`, { regexp: new RegExp(se, ee), keys:
|
|
18549
|
+
return N && (se += `(?:${i(B)}$)?`), se += g ? "$" : `(?=${i(B)}|$)`, { regexp: new RegExp(se, ee), keys: J };
|
|
18541
18550
|
}
|
|
18542
|
-
function* E(
|
|
18543
|
-
if (L ===
|
|
18551
|
+
function* E(I, L, B) {
|
|
18552
|
+
if (L === I.length)
|
|
18544
18553
|
return yield B;
|
|
18545
|
-
const g =
|
|
18554
|
+
const g = I[L];
|
|
18546
18555
|
if (g.type === "group") {
|
|
18547
18556
|
const $ = B.slice();
|
|
18548
18557
|
for (const N of E(g.tokens, 0, $))
|
|
18549
|
-
yield* E(
|
|
18558
|
+
yield* E(I, L + 1, N);
|
|
18550
18559
|
} else
|
|
18551
18560
|
B.push(g);
|
|
18552
|
-
yield* E(
|
|
18561
|
+
yield* E(I, L + 1, B);
|
|
18553
18562
|
}
|
|
18554
|
-
function k(
|
|
18563
|
+
function k(I, L, B) {
|
|
18555
18564
|
let g = "", $ = "", N = !0;
|
|
18556
|
-
for (let
|
|
18557
|
-
const z =
|
|
18565
|
+
for (let J = 0; J < I.length; J++) {
|
|
18566
|
+
const z = I[J];
|
|
18558
18567
|
if (z.type === "text") {
|
|
18559
18568
|
g += i(z.value), $ += z.value, N || (N = z.value.includes(L));
|
|
18560
18569
|
continue;
|
|
@@ -18568,29 +18577,29 @@ function Nx() {
|
|
|
18568
18577
|
}
|
|
18569
18578
|
return g;
|
|
18570
18579
|
}
|
|
18571
|
-
function D(
|
|
18572
|
-
return L.length < 2 ?
|
|
18580
|
+
function D(I, L) {
|
|
18581
|
+
return L.length < 2 ? I.length < 2 ? `[^${i(I + L)}]` : `(?:(?!${i(I)})[^${i(L)}])` : I.length < 2 ? `(?:(?!${i(L)})[^${i(I)}])` : `(?:(?!${i(L)}|${i(I)})[\\s\\S])`;
|
|
18573
18582
|
}
|
|
18574
|
-
function I
|
|
18575
|
-
return
|
|
18583
|
+
function M(I) {
|
|
18584
|
+
return I.tokens.map(function L(B, g, $) {
|
|
18576
18585
|
if (B.type === "text")
|
|
18577
18586
|
return o(B.value);
|
|
18578
18587
|
if (B.type === "group")
|
|
18579
18588
|
return `{${B.tokens.map(L).join("")}}`;
|
|
18580
|
-
const
|
|
18589
|
+
const J = F(B.name) && W($[g + 1]) ? B.name : JSON.stringify(B.name);
|
|
18581
18590
|
if (B.type === "param")
|
|
18582
|
-
return `:${
|
|
18591
|
+
return `:${J}`;
|
|
18583
18592
|
if (B.type === "wildcard")
|
|
18584
|
-
return `*${
|
|
18593
|
+
return `*${J}`;
|
|
18585
18594
|
throw new TypeError(`Unexpected token: ${B}`);
|
|
18586
18595
|
}).join("");
|
|
18587
18596
|
}
|
|
18588
|
-
function F(
|
|
18589
|
-
const [L, ...B] =
|
|
18597
|
+
function F(I) {
|
|
18598
|
+
const [L, ...B] = I;
|
|
18590
18599
|
return r.test(L) ? B.every((g) => a.test(g)) : !1;
|
|
18591
18600
|
}
|
|
18592
|
-
function
|
|
18593
|
-
return (
|
|
18601
|
+
function W(I) {
|
|
18602
|
+
return (I == null ? void 0 : I.type) !== "text" ? !0 : !a.test(I.value[0]);
|
|
18594
18603
|
}
|
|
18595
18604
|
return vt;
|
|
18596
18605
|
}
|
|
@@ -18615,13 +18624,13 @@ var pl = 1e-4, zx = class ld {
|
|
|
18615
18624
|
constructor(t, r, a, n, s, o, i, l, c, d, u, p) {
|
|
18616
18625
|
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = n, this.motionStateSocket = s, this.isVirtual = o, this.tcps = i, this.motionGroupSpecification = l, this.safetySetup = c, this.mounting = d, this.initialControllerState = u, this.controllerStateSocket = p, this.connectedJoggingCartesianSocket = null, this.connectedJoggingJointsSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = n, this.controllerState = u, p.addEventListener("message", (f) => {
|
|
18617
18626
|
var y;
|
|
18618
|
-
const h = (y =
|
|
18627
|
+
const h = (y = Kt(f.data)) == null ? void 0 : y.result;
|
|
18619
18628
|
h && et(() => {
|
|
18620
18629
|
this.controllerState = h;
|
|
18621
18630
|
});
|
|
18622
18631
|
}), s.addEventListener("message", (f) => {
|
|
18623
18632
|
var y;
|
|
18624
|
-
const h = (y =
|
|
18633
|
+
const h = (y = Kt(f.data)) == null ? void 0 : y.result;
|
|
18625
18634
|
if (!h)
|
|
18626
18635
|
throw new Error(
|
|
18627
18636
|
`Failed to get motion state for ${this.motionGroupId}: ${f.data}`
|
|
@@ -18644,8 +18653,8 @@ var pl = 1e-4, zx = class ld {
|
|
|
18644
18653
|
static connect(t, r, a) {
|
|
18645
18654
|
return xe(this, null, function* () {
|
|
18646
18655
|
var n, s;
|
|
18647
|
-
const [o, i] = r.split("@"), l = a.find((
|
|
18648
|
-
(
|
|
18656
|
+
const [o, i] = r.split("@"), l = a.find((W) => W.controller === i), c = l == null ? void 0 : l.physical_motion_groups.find(
|
|
18657
|
+
(W) => W.motion_group === r
|
|
18649
18658
|
);
|
|
18650
18659
|
if (!l || !c)
|
|
18651
18660
|
throw new Error(
|
|
@@ -18653,7 +18662,7 @@ var pl = 1e-4, zx = class ld {
|
|
|
18653
18662
|
);
|
|
18654
18663
|
const d = t.openReconnectingWebsocket(
|
|
18655
18664
|
`/motion-groups/${r}/state-stream`
|
|
18656
|
-
), u = yield d.firstMessage(), p = (n =
|
|
18665
|
+
), u = yield d.firstMessage(), p = (n = Kt(u.data)) == null ? void 0 : n.result;
|
|
18657
18666
|
if (!p)
|
|
18658
18667
|
throw new Error(
|
|
18659
18668
|
`Unable to parse initial motion state message ${u.data}`
|
|
@@ -18670,15 +18679,15 @@ var pl = 1e-4, zx = class ld {
|
|
|
18670
18679
|
return yield t.api.motionGroupInfos.getMounting(
|
|
18671
18680
|
c.motion_group
|
|
18672
18681
|
);
|
|
18673
|
-
} catch (
|
|
18682
|
+
} catch (W) {
|
|
18674
18683
|
return console.error(
|
|
18675
18684
|
`Error fetching mounting for ${c.motion_group}`,
|
|
18676
|
-
|
|
18685
|
+
W
|
|
18677
18686
|
), null;
|
|
18678
18687
|
}
|
|
18679
18688
|
}), x = t.openReconnectingWebsocket(
|
|
18680
18689
|
`/controllers/${l.controller}/state-stream?response_rate=1000`
|
|
18681
|
-
), E = yield x.firstMessage(), k = (s =
|
|
18690
|
+
), E = yield x.firstMessage(), k = (s = Kt(E.data)) == null ? void 0 : s.result;
|
|
18682
18691
|
if (!k)
|
|
18683
18692
|
throw new Error(
|
|
18684
18693
|
`Unable to parse initial controller state message ${E.data}`
|
|
@@ -18688,7 +18697,7 @@ var pl = 1e-4, zx = class ld {
|
|
|
18688
18697
|
`,
|
|
18689
18698
|
k
|
|
18690
18699
|
);
|
|
18691
|
-
const { tcps: D } = yield t.api.motionGroupInfos.listTcps(r),
|
|
18700
|
+
const { tcps: D } = yield t.api.motionGroupInfos.listTcps(r), M = yield t.api.motionGroupInfos.getMotionGroupSpecification(r), F = yield t.api.motionGroupInfos.getSafetySetup(r);
|
|
18692
18701
|
return new ld(
|
|
18693
18702
|
t,
|
|
18694
18703
|
l,
|
|
@@ -18697,7 +18706,7 @@ var pl = 1e-4, zx = class ld {
|
|
|
18697
18706
|
d,
|
|
18698
18707
|
y,
|
|
18699
18708
|
D,
|
|
18700
|
-
|
|
18709
|
+
M,
|
|
18701
18710
|
F,
|
|
18702
18711
|
h,
|
|
18703
18712
|
k,
|
|
@@ -18894,7 +18903,7 @@ var pl = 1e-4, zx = class ld {
|
|
|
18894
18903
|
), this.cartesianWebsocket.addEventListener(
|
|
18895
18904
|
"message",
|
|
18896
18905
|
(a) => {
|
|
18897
|
-
const n =
|
|
18906
|
+
const n = Kt(a.data);
|
|
18898
18907
|
if (n && "error" in n)
|
|
18899
18908
|
if (this.opts.onError)
|
|
18900
18909
|
this.opts.onError(a.data);
|
|
@@ -18904,7 +18913,7 @@ var pl = 1e-4, zx = class ld {
|
|
|
18904
18913
|
)), t === "joint" && !this.jointWebsocket && (this.jointWebsocket = this.nova.openReconnectingWebsocket(
|
|
18905
18914
|
"/motion-groups/move-joint"
|
|
18906
18915
|
), this.jointWebsocket.addEventListener("message", (a) => {
|
|
18907
|
-
const n =
|
|
18916
|
+
const n = Kt(a.data);
|
|
18908
18917
|
if (n && "error" in n)
|
|
18909
18918
|
if (this.opts.onError)
|
|
18910
18919
|
this.opts.onError(a.data);
|
|
@@ -19024,9 +19033,9 @@ var pl = 1e-4, zx = class ld {
|
|
|
19024
19033
|
r.orientation.z
|
|
19025
19034
|
), y = f.length(), h = f.clone().normalize(), x = l.distanceRads * (i === "-" ? -1 : 1), E = new qr(0, 0, 0);
|
|
19026
19035
|
E[o] = 1;
|
|
19027
|
-
const k = Math.cos(0.5 * x) * Math.cos(0.5 * y), D = Math.sin(0.5 * x) * Math.sin(0.5 * y),
|
|
19036
|
+
const k = Math.cos(0.5 * x) * Math.cos(0.5 * y), D = Math.sin(0.5 * x) * Math.sin(0.5 * y), M = Math.sin(0.5 * x) * Math.cos(0.5 * y), F = Math.cos(0.5 * x) * Math.sin(0.5 * y), W = E.dot(
|
|
19028
19037
|
h
|
|
19029
|
-
),
|
|
19038
|
+
), I = E.clone().cross(h), L = 2 * Math.acos(k - D * W), B = L / Math.sin(0.5 * L), g = new qr().addScaledVector(I, D).addScaledVector(E, M).addScaledVector(h, F).multiplyScalar(B);
|
|
19030
19039
|
d.push({
|
|
19031
19040
|
settings: {
|
|
19032
19041
|
limits_override: {
|
|
@@ -19135,7 +19144,7 @@ var Jx = class dd {
|
|
|
19135
19144
|
constructor(t, r, a, n, s) {
|
|
19136
19145
|
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = n, this.motionStateSocket = s, this.rapidlyChangingMotionState = n, s.addEventListener("message", (o) => {
|
|
19137
19146
|
var i;
|
|
19138
|
-
const l = (i =
|
|
19147
|
+
const l = (i = Kt(o.data)) == null ? void 0 : i.result;
|
|
19139
19148
|
if (!l)
|
|
19140
19149
|
throw new Error(
|
|
19141
19150
|
`Failed to get motion state for ${this.motionGroupId}: ${o.data}`
|
|
@@ -19177,7 +19186,7 @@ var Jx = class dd {
|
|
|
19177
19186
|
`/motion-groups/${r}/state-stream`
|
|
19178
19187
|
), d = yield c.firstMessage();
|
|
19179
19188
|
console.log("got first message", d);
|
|
19180
|
-
const u = (a =
|
|
19189
|
+
const u = (a = Kt(d.data)) == null ? void 0 : a.result;
|
|
19181
19190
|
if (!u)
|
|
19182
19191
|
throw new Error(
|
|
19183
19192
|
`Unable to parse initial motion state message ${d.data}`
|
|
@@ -20642,7 +20651,7 @@ function Zx(e) {
|
|
|
20642
20651
|
}
|
|
20643
20652
|
const ud = (e) => {
|
|
20644
20653
|
const t = e.softTimeout || 3e3, [r, a] = gr(!1), n = ct();
|
|
20645
|
-
return
|
|
20654
|
+
return Yt(() => {
|
|
20646
20655
|
const s = setTimeout(() => {
|
|
20647
20656
|
a(!0);
|
|
20648
20657
|
}, t);
|
|
@@ -20750,20 +20759,20 @@ function f1(e, t) {
|
|
|
20750
20759
|
var r = this.__data__, a = us(r, e);
|
|
20751
20760
|
return a < 0 ? (++this.size, r.push([e, t])) : r[a][1] = t, this;
|
|
20752
20761
|
}
|
|
20753
|
-
function
|
|
20762
|
+
function kt(e) {
|
|
20754
20763
|
var t = -1, r = e == null ? 0 : e.length;
|
|
20755
20764
|
for (this.clear(); ++t < r; ) {
|
|
20756
20765
|
var a = e[t];
|
|
20757
20766
|
this.set(a[0], a[1]);
|
|
20758
20767
|
}
|
|
20759
20768
|
}
|
|
20760
|
-
|
|
20761
|
-
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
20769
|
+
kt.prototype.clear = c1;
|
|
20770
|
+
kt.prototype.delete = p1;
|
|
20771
|
+
kt.prototype.get = h1;
|
|
20772
|
+
kt.prototype.has = m1;
|
|
20773
|
+
kt.prototype.set = f1;
|
|
20765
20774
|
function g1() {
|
|
20766
|
-
this.__data__ = new
|
|
20775
|
+
this.__data__ = new kt(), this.size = 0;
|
|
20767
20776
|
}
|
|
20768
20777
|
function y1(e) {
|
|
20769
20778
|
var t = this.__data__, r = t.delete(e);
|
|
@@ -20861,7 +20870,7 @@ fr.prototype.set = J1;
|
|
|
20861
20870
|
function q1() {
|
|
20862
20871
|
this.size = 0, this.__data__ = {
|
|
20863
20872
|
hash: new fr(),
|
|
20864
|
-
map: new (Na ||
|
|
20873
|
+
map: new (Na || kt)(),
|
|
20865
20874
|
string: new fr()
|
|
20866
20875
|
};
|
|
20867
20876
|
}
|
|
@@ -20887,31 +20896,31 @@ function X1(e, t) {
|
|
|
20887
20896
|
var r = ps(this, e), a = r.size;
|
|
20888
20897
|
return r.set(e, t), this.size += r.size == a ? 0 : 1, this;
|
|
20889
20898
|
}
|
|
20890
|
-
function
|
|
20899
|
+
function Bt(e) {
|
|
20891
20900
|
var t = -1, r = e == null ? 0 : e.length;
|
|
20892
20901
|
for (this.clear(); ++t < r; ) {
|
|
20893
20902
|
var a = e[t];
|
|
20894
20903
|
this.set(a[0], a[1]);
|
|
20895
20904
|
}
|
|
20896
20905
|
}
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20906
|
+
Bt.prototype.clear = q1;
|
|
20907
|
+
Bt.prototype.delete = Q1;
|
|
20908
|
+
Bt.prototype.get = K1;
|
|
20909
|
+
Bt.prototype.has = Y1;
|
|
20910
|
+
Bt.prototype.set = X1;
|
|
20902
20911
|
var Z1 = 200;
|
|
20903
20912
|
function eO(e, t) {
|
|
20904
20913
|
var r = this.__data__;
|
|
20905
|
-
if (r instanceof
|
|
20914
|
+
if (r instanceof kt) {
|
|
20906
20915
|
var a = r.__data__;
|
|
20907
20916
|
if (!Na || a.length < Z1 - 1)
|
|
20908
20917
|
return a.push([e, t]), this.size = ++r.size, this;
|
|
20909
|
-
r = this.__data__ = new
|
|
20918
|
+
r = this.__data__ = new Bt(a);
|
|
20910
20919
|
}
|
|
20911
20920
|
return r.set(e, t), this.size = r.size, this;
|
|
20912
20921
|
}
|
|
20913
20922
|
function jt(e) {
|
|
20914
|
-
var t = this.__data__ = new
|
|
20923
|
+
var t = this.__data__ = new kt(e);
|
|
20915
20924
|
this.size = t.size;
|
|
20916
20925
|
}
|
|
20917
20926
|
jt.prototype.clear = g1;
|
|
@@ -20928,7 +20937,7 @@ function aO(e) {
|
|
|
20928
20937
|
}
|
|
20929
20938
|
function Bn(e) {
|
|
20930
20939
|
var t = -1, r = e == null ? 0 : e.length;
|
|
20931
|
-
for (this.__data__ = new
|
|
20940
|
+
for (this.__data__ = new Bt(); ++t < r; )
|
|
20932
20941
|
this.add(e[t]);
|
|
20933
20942
|
}
|
|
20934
20943
|
Bn.prototype.add = Bn.prototype.push = rO;
|
|
@@ -20989,7 +20998,7 @@ function cO(e) {
|
|
|
20989
20998
|
r[++t] = a;
|
|
20990
20999
|
}), r;
|
|
20991
21000
|
}
|
|
20992
|
-
var dO = 1, uO = 2, pO = "[object Boolean]", hO = "[object Date]", mO = "[object Error]", fO = "[object Map]", gO = "[object Number]", yO = "[object RegExp]", bO = "[object Set]", SO = "[object String]", vO = "[object Symbol]", xO = "[object ArrayBuffer]", OO = "[object DataView]", gl =
|
|
21001
|
+
var dO = 1, uO = 2, pO = "[object Boolean]", hO = "[object Date]", mO = "[object Error]", fO = "[object Map]", gO = "[object Number]", yO = "[object RegExp]", bO = "[object Set]", SO = "[object String]", vO = "[object Symbol]", xO = "[object ArrayBuffer]", OO = "[object DataView]", gl = er ? er.prototype : void 0, ks = gl ? gl.valueOf : void 0;
|
|
20993
21002
|
function wO(e, t, r, a, n, s, o) {
|
|
20994
21003
|
switch (r) {
|
|
20995
21004
|
case OO:
|
|
@@ -21159,13 +21168,13 @@ function Rw(e, t, r, a, n, s) {
|
|
|
21159
21168
|
x || (x = p == "constructor");
|
|
21160
21169
|
}
|
|
21161
21170
|
if (h && !x) {
|
|
21162
|
-
var
|
|
21163
|
-
|
|
21171
|
+
var M = e.constructor, F = t.constructor;
|
|
21172
|
+
M != F && "constructor" in e && "constructor" in t && !(typeof M == "function" && M instanceof M && typeof F == "function" && F instanceof F) && (h = !1);
|
|
21164
21173
|
}
|
|
21165
21174
|
return s.delete(e), s.delete(t), h;
|
|
21166
21175
|
}
|
|
21167
|
-
var io = xr(Rt, "DataView"), lo = xr(Rt, "Promise"), co = xr(Rt, "Set"), uo = xr(Rt, "WeakMap"), Cl = "[object Map]", _w = "[object Object]", Pl = "[object Promise]", Vl = "[object Set]", Rl = "[object WeakMap]", _l = "[object DataView]", Aw = vr(io), Tw = vr(Na), Ew = vr(lo), Iw = vr(co), Mw = vr(uo),
|
|
21168
|
-
(io &&
|
|
21176
|
+
var io = xr(Rt, "DataView"), lo = xr(Rt, "Promise"), co = xr(Rt, "Set"), uo = xr(Rt, "WeakMap"), Cl = "[object Map]", _w = "[object Object]", Pl = "[object Promise]", Vl = "[object Set]", Rl = "[object WeakMap]", _l = "[object DataView]", Aw = vr(io), Tw = vr(Na), Ew = vr(lo), Iw = vr(co), Mw = vr(uo), Wt = br;
|
|
21177
|
+
(io && Wt(new io(new ArrayBuffer(1))) != _l || Na && Wt(new Na()) != Cl || lo && Wt(lo.resolve()) != Pl || co && Wt(new co()) != Vl || uo && Wt(new uo()) != Rl) && (Wt = function(e) {
|
|
21169
21178
|
var t = br(e), r = t == _w ? e.constructor : void 0, a = r ? vr(r) : "";
|
|
21170
21179
|
if (a)
|
|
21171
21180
|
switch (a) {
|
|
@@ -21184,7 +21193,7 @@ var io = xr(Rt, "DataView"), lo = xr(Rt, "Promise"), co = xr(Rt, "Set"), uo = xr
|
|
|
21184
21193
|
});
|
|
21185
21194
|
var jw = 1, Al = "[object Arguments]", Tl = "[object Array]", cn = "[object Object]", $w = Object.prototype, El = $w.hasOwnProperty;
|
|
21186
21195
|
function Uw(e, t, r, a, n, s) {
|
|
21187
|
-
var o = Vt(e), i = Vt(t), l = o ? Tl :
|
|
21196
|
+
var o = Vt(e), i = Vt(t), l = o ? Tl : Wt(e), c = i ? Tl : Wt(t);
|
|
21188
21197
|
l = l == Al ? cn : l, c = c == Al ? cn : c;
|
|
21189
21198
|
var d = l == cn, u = c == cn, p = l == c;
|
|
21190
21199
|
if (p && oo(e)) {
|
|
@@ -21212,7 +21221,7 @@ function Lw(e, t) {
|
|
|
21212
21221
|
const Od = ({
|
|
21213
21222
|
store: e
|
|
21214
21223
|
}) => {
|
|
21215
|
-
const { t } =
|
|
21224
|
+
const { t } = $t(), [r, a] = gr(
|
|
21216
21225
|
e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached
|
|
21217
21226
|
), n = Wr(r);
|
|
21218
21227
|
Ja(() => {
|
|
@@ -21379,9 +21388,9 @@ function _o(e, t) {
|
|
|
21379
21388
|
var o = e.apply(this, a);
|
|
21380
21389
|
return r.cache = s.set(n, o) || s, o;
|
|
21381
21390
|
};
|
|
21382
|
-
return r.cache = new (_o.Cache ||
|
|
21391
|
+
return r.cache = new (_o.Cache || Bt)(), r;
|
|
21383
21392
|
}
|
|
21384
|
-
_o.Cache =
|
|
21393
|
+
_o.Cache = Bt;
|
|
21385
21394
|
var tC = 500;
|
|
21386
21395
|
function rC(e) {
|
|
21387
21396
|
var t = _o(e, function(a) {
|
|
@@ -21400,7 +21409,7 @@ function oC(e, t) {
|
|
|
21400
21409
|
n[r] = t(e[r], r, e);
|
|
21401
21410
|
return n;
|
|
21402
21411
|
}
|
|
21403
|
-
var Ml =
|
|
21412
|
+
var Ml = er ? er.prototype : void 0, jl = Ml ? Ml.toString : void 0;
|
|
21404
21413
|
function Pd(e) {
|
|
21405
21414
|
if (typeof e == "string")
|
|
21406
21415
|
return e;
|
|
@@ -21583,11 +21592,11 @@ class Ao {
|
|
|
21583
21592
|
return [
|
|
21584
21593
|
{
|
|
21585
21594
|
id: "cartesian",
|
|
21586
|
-
label: "
|
|
21595
|
+
label: "cartesian"
|
|
21587
21596
|
},
|
|
21588
21597
|
{
|
|
21589
21598
|
id: "joint",
|
|
21590
|
-
label: "
|
|
21599
|
+
label: "joint"
|
|
21591
21600
|
}
|
|
21592
21601
|
];
|
|
21593
21602
|
}
|
|
@@ -21696,7 +21705,7 @@ class Ao {
|
|
|
21696
21705
|
}
|
|
21697
21706
|
const CC = De(({ store: e }) => {
|
|
21698
21707
|
var a;
|
|
21699
|
-
const { t } =
|
|
21708
|
+
const { t } = $t();
|
|
21700
21709
|
function r(n) {
|
|
21701
21710
|
switch (n) {
|
|
21702
21711
|
case "coordsys":
|
|
@@ -21716,18 +21725,14 @@ const CC = De(({ store: e }) => {
|
|
|
21716
21725
|
gap: "16px",
|
|
21717
21726
|
gridTemplateColumns: "1fr 1fr",
|
|
21718
21727
|
gridTemplateRows: "min-height min-height",
|
|
21719
|
-
"& label": {
|
|
21720
|
-
opacity: 0.7,
|
|
21721
|
-
fontSize: "12px",
|
|
21722
|
-
marginBottom: "4px"
|
|
21723
|
-
}
|
|
21728
|
+
"& label": { opacity: 0.7, fontSize: "12px", marginBottom: "4px" }
|
|
21724
21729
|
},
|
|
21725
21730
|
children: [
|
|
21726
21731
|
/* @__PURE__ */ S.jsx(
|
|
21727
21732
|
dn,
|
|
21728
21733
|
{
|
|
21729
21734
|
labelId: "jogging-coord-select",
|
|
21730
|
-
labelValue: "
|
|
21735
|
+
labelValue: t("Jogging.CoordinateSystem.hlb"),
|
|
21731
21736
|
value: e.selectedCoordSystemId,
|
|
21732
21737
|
size: "small",
|
|
21733
21738
|
variant: "filled",
|
|
@@ -21771,7 +21776,7 @@ const CC = De(({ store: e }) => {
|
|
|
21771
21776
|
/* @__PURE__ */ S.jsxs(
|
|
21772
21777
|
dn,
|
|
21773
21778
|
{
|
|
21774
|
-
labelValue: "Increment",
|
|
21779
|
+
labelValue: t("Jogging.Increment.hlb"),
|
|
21775
21780
|
labelId: "jogging-increment-select",
|
|
21776
21781
|
size: "small",
|
|
21777
21782
|
variant: "filled",
|
|
@@ -21940,12 +21945,12 @@ function MC(e) {
|
|
|
21940
21945
|
shiftStep: x = 10,
|
|
21941
21946
|
tabIndex: E,
|
|
21942
21947
|
value: k
|
|
21943
|
-
} = e, D = G.useRef(void 0), [
|
|
21948
|
+
} = e, D = G.useRef(void 0), [M, F] = G.useState(-1), [W, I] = G.useState(-1), [L, B] = G.useState(!1), g = G.useRef(0), $ = G.useRef(null), [N, J] = Oh({
|
|
21944
21949
|
controlled: k,
|
|
21945
21950
|
default: r ?? l,
|
|
21946
21951
|
name: "Slider"
|
|
21947
|
-
}), z = d && ((
|
|
21948
|
-
const ie =
|
|
21952
|
+
}), z = d && ((q, Q, Y) => {
|
|
21953
|
+
const ie = q.nativeEvent || q, ue = new ie.constructor(ie.type, ie);
|
|
21949
21954
|
Object.defineProperty(ue, "target", {
|
|
21950
21955
|
writable: !0,
|
|
21951
21956
|
value: {
|
|
@@ -21955,18 +21960,18 @@ function MC(e) {
|
|
|
21955
21960
|
}), $.current = Q, d(ue, Q, Y);
|
|
21956
21961
|
}), ee = Array.isArray(N);
|
|
21957
21962
|
let Z = ee ? N.slice().sort(Ad) : [N];
|
|
21958
|
-
Z = Z.map((
|
|
21959
|
-
const Pe = o === !0 && h !== null ? [...Array(Math.floor((i - l) / h) + 1)].map((
|
|
21963
|
+
Z = Z.map((q) => q == null ? l : Dr(q, l, i));
|
|
21964
|
+
const Pe = o === !0 && h !== null ? [...Array(Math.floor((i - l) / h) + 1)].map((q, Q) => ({
|
|
21960
21965
|
value: l + h * Q
|
|
21961
|
-
})) : o || [], se = Pe.map((
|
|
21966
|
+
})) : o || [], se = Pe.map((q) => q.value), [de, be] = G.useState(-1), oe = G.useRef(null), Ge = lc(f, oe), _t = (q) => (Q) => {
|
|
21962
21967
|
var ie;
|
|
21963
21968
|
const Y = Number(Q.currentTarget.getAttribute("data-index"));
|
|
21964
|
-
ei(Q.target) && be(Y),
|
|
21965
|
-
}, oa = (
|
|
21969
|
+
ei(Q.target) && be(Y), I(Y), (ie = q == null ? void 0 : q.onFocus) == null || ie.call(q, Q);
|
|
21970
|
+
}, oa = (q) => (Q) => {
|
|
21966
21971
|
var Y;
|
|
21967
|
-
ei(Q.target) || be(-1),
|
|
21968
|
-
}, Or = (
|
|
21969
|
-
const Y = Number(
|
|
21972
|
+
ei(Q.target) || be(-1), I(-1), (Y = q == null ? void 0 : q.onBlur) == null || Y.call(q, Q);
|
|
21973
|
+
}, Or = (q, Q) => {
|
|
21974
|
+
const Y = Number(q.currentTarget.getAttribute("data-index")), ie = Z[Y], ue = se.indexOf(ie);
|
|
21970
21975
|
let X = Q;
|
|
21971
21976
|
if (Pe && h == null) {
|
|
21972
21977
|
const Me = se[se.length - 1];
|
|
@@ -21986,8 +21991,8 @@ function MC(e) {
|
|
|
21986
21991
|
activeIndex: Be
|
|
21987
21992
|
});
|
|
21988
21993
|
}
|
|
21989
|
-
|
|
21990
|
-
}, rr = (
|
|
21994
|
+
J(X), be(Y), z && !mn(X, N) && z(q, X, Y), u && u(q, $.current ?? X);
|
|
21995
|
+
}, rr = (q) => (Q) => {
|
|
21991
21996
|
var Y;
|
|
21992
21997
|
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(Q.key)) {
|
|
21993
21998
|
Q.preventDefault();
|
|
@@ -22027,20 +22032,20 @@ function MC(e) {
|
|
|
22027
22032
|
}
|
|
22028
22033
|
X != null && Or(Q, X);
|
|
22029
22034
|
}
|
|
22030
|
-
(Y =
|
|
22035
|
+
(Y = q == null ? void 0 : q.onKeyDown) == null || Y.call(q, Q);
|
|
22031
22036
|
};
|
|
22032
22037
|
oc(() => {
|
|
22033
|
-
var
|
|
22034
|
-
a && oe.current.contains(document.activeElement) && ((
|
|
22035
|
-
}, [a]), a &&
|
|
22036
|
-
const
|
|
22038
|
+
var q;
|
|
22039
|
+
a && oe.current.contains(document.activeElement) && ((q = document.activeElement) == null || q.blur());
|
|
22040
|
+
}, [a]), a && M !== -1 && F(-1), a && de !== -1 && be(-1);
|
|
22041
|
+
const Ft = (q) => (Q) => {
|
|
22037
22042
|
var Y;
|
|
22038
|
-
(Y =
|
|
22043
|
+
(Y = q.onChange) == null || Y.call(q, Q), Or(Q, Q.target.valueAsNumber);
|
|
22039
22044
|
}, nt = G.useRef(void 0);
|
|
22040
22045
|
let ut = p;
|
|
22041
22046
|
s && p === "horizontal" && (ut += "-reverse");
|
|
22042
22047
|
const st = ({
|
|
22043
|
-
finger:
|
|
22048
|
+
finger: q,
|
|
22044
22049
|
move: Q = !1
|
|
22045
22050
|
}) => {
|
|
22046
22051
|
const {
|
|
@@ -22052,7 +22057,7 @@ function MC(e) {
|
|
|
22052
22057
|
left: Me
|
|
22053
22058
|
} = Y.getBoundingClientRect();
|
|
22054
22059
|
let Be;
|
|
22055
|
-
ut.startsWith("vertical") ? Be = (X -
|
|
22060
|
+
ut.startsWith("vertical") ? Be = (X - q.y) / ue : Be = (q.x - Me) / ie, ut.includes("-reverse") && (Be = 1 - Be);
|
|
22056
22061
|
let Ae;
|
|
22057
22062
|
if (Ae = _C(Be, l, i), h)
|
|
22058
22063
|
Ae = TC(Ae, h, l);
|
|
@@ -22075,12 +22080,12 @@ function MC(e) {
|
|
|
22075
22080
|
newValue: Ae,
|
|
22076
22081
|
activeIndex: We
|
|
22077
22082
|
};
|
|
22078
|
-
}, At = vs((
|
|
22079
|
-
const Q = pn(
|
|
22083
|
+
}, At = vs((q) => {
|
|
22084
|
+
const Q = pn(q, D);
|
|
22080
22085
|
if (!Q)
|
|
22081
22086
|
return;
|
|
22082
|
-
if (g.current += 1,
|
|
22083
|
-
Xe(
|
|
22087
|
+
if (g.current += 1, q.type === "mousemove" && q.buttons === 0) {
|
|
22088
|
+
Xe(q);
|
|
22084
22089
|
return;
|
|
22085
22090
|
}
|
|
22086
22091
|
const {
|
|
@@ -22094,9 +22099,9 @@ function MC(e) {
|
|
|
22094
22099
|
sliderRef: oe,
|
|
22095
22100
|
activeIndex: ie,
|
|
22096
22101
|
setActive: F
|
|
22097
|
-
}),
|
|
22098
|
-
}), Xe = vs((
|
|
22099
|
-
const Q = pn(
|
|
22102
|
+
}), J(Y), !L && g.current > RC && B(!0), z && !mn(Y, N) && z(q, Y, ie);
|
|
22103
|
+
}), Xe = vs((q) => {
|
|
22104
|
+
const Q = pn(q, D);
|
|
22100
22105
|
if (B(!1), !Q)
|
|
22101
22106
|
return;
|
|
22102
22107
|
const {
|
|
@@ -22105,14 +22110,14 @@ function MC(e) {
|
|
|
22105
22110
|
finger: Q,
|
|
22106
22111
|
move: !0
|
|
22107
22112
|
});
|
|
22108
|
-
F(-1),
|
|
22109
|
-
}), ke = vs((
|
|
22113
|
+
F(-1), q.type === "touchend" && I(-1), u && u(q, $.current ?? Y), D.current = void 0, Tt();
|
|
22114
|
+
}), ke = vs((q) => {
|
|
22110
22115
|
if (a)
|
|
22111
22116
|
return;
|
|
22112
|
-
Ll() ||
|
|
22113
|
-
const Q =
|
|
22117
|
+
Ll() || q.preventDefault();
|
|
22118
|
+
const Q = q.changedTouches[0];
|
|
22114
22119
|
Q != null && (D.current = Q.identifier);
|
|
22115
|
-
const Y = pn(
|
|
22120
|
+
const Y = pn(q, D);
|
|
22116
22121
|
if (Y !== !1) {
|
|
22117
22122
|
const {
|
|
22118
22123
|
newValue: ue,
|
|
@@ -22124,7 +22129,7 @@ function MC(e) {
|
|
|
22124
22129
|
sliderRef: oe,
|
|
22125
22130
|
activeIndex: X,
|
|
22126
22131
|
setActive: F
|
|
22127
|
-
}),
|
|
22132
|
+
}), J(ue), z && !mn(ue, N) && z(q, ue, X);
|
|
22128
22133
|
}
|
|
22129
22134
|
g.current = 0;
|
|
22130
22135
|
const ie = bn(oe.current);
|
|
@@ -22134,24 +22139,24 @@ function MC(e) {
|
|
|
22134
22139
|
passive: !0
|
|
22135
22140
|
});
|
|
22136
22141
|
}), Tt = G.useCallback(() => {
|
|
22137
|
-
const
|
|
22138
|
-
|
|
22142
|
+
const q = bn(oe.current);
|
|
22143
|
+
q.removeEventListener("mousemove", At), q.removeEventListener("mouseup", Xe), q.removeEventListener("touchmove", At), q.removeEventListener("touchend", Xe);
|
|
22139
22144
|
}, [Xe, At]);
|
|
22140
22145
|
G.useEffect(() => {
|
|
22141
22146
|
const {
|
|
22142
|
-
current:
|
|
22147
|
+
current: q
|
|
22143
22148
|
} = oe;
|
|
22144
|
-
return
|
|
22149
|
+
return q.addEventListener("touchstart", ke, {
|
|
22145
22150
|
passive: Ll()
|
|
22146
22151
|
}), () => {
|
|
22147
|
-
|
|
22152
|
+
q.removeEventListener("touchstart", ke), Tt();
|
|
22148
22153
|
};
|
|
22149
22154
|
}, [Tt, ke]), G.useEffect(() => {
|
|
22150
22155
|
a && Tt();
|
|
22151
22156
|
}, [a, Tt]);
|
|
22152
|
-
const
|
|
22157
|
+
const Nt = (q) => (Q) => {
|
|
22153
22158
|
var ue;
|
|
22154
|
-
if ((ue =
|
|
22159
|
+
if ((ue = q.onMouseDown) == null || ue.call(q, Q), a || Q.defaultPrevented || Q.button !== 0)
|
|
22155
22160
|
return;
|
|
22156
22161
|
Q.preventDefault();
|
|
22157
22162
|
const Y = pn(Q, D);
|
|
@@ -22166,57 +22171,57 @@ function MC(e) {
|
|
|
22166
22171
|
sliderRef: oe,
|
|
22167
22172
|
activeIndex: Me,
|
|
22168
22173
|
setActive: F
|
|
22169
|
-
}),
|
|
22174
|
+
}), J(X), z && !mn(X, N) && z(Q, X, Me);
|
|
22170
22175
|
}
|
|
22171
22176
|
g.current = 0;
|
|
22172
22177
|
const ie = bn(oe.current);
|
|
22173
22178
|
ie.addEventListener("mousemove", At, {
|
|
22174
22179
|
passive: !0
|
|
22175
22180
|
}), ie.addEventListener("mouseup", Xe);
|
|
22176
|
-
}, gt = Fn(ee ? Z[0] : l, l, i), Ue = Fn(Z[Z.length - 1], l, i) - gt,
|
|
22177
|
-
const Q = Sn(
|
|
22178
|
-
onMouseDown:
|
|
22181
|
+
}, gt = Fn(ee ? Z[0] : l, l, i), Ue = Fn(Z[Z.length - 1], l, i) - gt, Dt = (q = {}) => {
|
|
22182
|
+
const Q = Sn(q), Y = {
|
|
22183
|
+
onMouseDown: Nt(Q || {})
|
|
22179
22184
|
}, ie = {
|
|
22180
22185
|
...Q,
|
|
22181
22186
|
...Y
|
|
22182
22187
|
};
|
|
22183
22188
|
return {
|
|
22184
|
-
...
|
|
22189
|
+
...q,
|
|
22185
22190
|
ref: Ge,
|
|
22186
22191
|
...ie
|
|
22187
22192
|
};
|
|
22188
|
-
}, Et = (
|
|
22193
|
+
}, Et = (q) => (Q) => {
|
|
22189
22194
|
var ie;
|
|
22190
|
-
(ie =
|
|
22195
|
+
(ie = q.onMouseOver) == null || ie.call(q, Q);
|
|
22191
22196
|
const Y = Number(Q.currentTarget.getAttribute("data-index"));
|
|
22192
|
-
|
|
22193
|
-
}, wr = (
|
|
22197
|
+
I(Y);
|
|
22198
|
+
}, wr = (q) => (Q) => {
|
|
22194
22199
|
var Y;
|
|
22195
|
-
(Y =
|
|
22196
|
-
}, Cr = (
|
|
22197
|
-
const Q = Sn(
|
|
22200
|
+
(Y = q.onMouseLeave) == null || Y.call(q, Q), I(-1);
|
|
22201
|
+
}, Cr = (q = {}) => {
|
|
22202
|
+
const Q = Sn(q), Y = {
|
|
22198
22203
|
onMouseOver: Et(Q || {}),
|
|
22199
22204
|
onMouseLeave: wr(Q || {})
|
|
22200
22205
|
};
|
|
22201
22206
|
return {
|
|
22202
|
-
...
|
|
22207
|
+
...q,
|
|
22203
22208
|
...Q,
|
|
22204
22209
|
...Y
|
|
22205
22210
|
};
|
|
22206
|
-
},
|
|
22211
|
+
}, zt = (q) => ({
|
|
22207
22212
|
// So the non active thumb doesn't show its label on hover.
|
|
22208
|
-
pointerEvents:
|
|
22213
|
+
pointerEvents: M !== -1 && M !== q ? "none" : void 0
|
|
22209
22214
|
});
|
|
22210
|
-
let
|
|
22211
|
-
return p === "vertical" && (
|
|
22212
|
-
active:
|
|
22215
|
+
let Gt;
|
|
22216
|
+
return p === "vertical" && (Gt = s ? "vertical-rl" : "vertical-lr"), {
|
|
22217
|
+
active: M,
|
|
22213
22218
|
axis: ut,
|
|
22214
22219
|
axisProps: EC,
|
|
22215
22220
|
dragging: L,
|
|
22216
22221
|
focusedThumbIndex: de,
|
|
22217
|
-
getHiddenInputProps: (
|
|
22218
|
-
const Q = Sn(
|
|
22219
|
-
onChange:
|
|
22222
|
+
getHiddenInputProps: (q = {}) => {
|
|
22223
|
+
const Q = Sn(q), Y = {
|
|
22224
|
+
onChange: Ft(Q || {}),
|
|
22220
22225
|
onFocus: _t(Q || {}),
|
|
22221
22226
|
onBlur: oa(Q || {}),
|
|
22222
22227
|
onKeyDown: rr(Q || {})
|
|
@@ -22236,7 +22241,7 @@ function MC(e) {
|
|
|
22236
22241
|
max: e.max,
|
|
22237
22242
|
step: e.step === null && e.marks ? "any" : e.step ?? void 0,
|
|
22238
22243
|
disabled: a,
|
|
22239
|
-
...
|
|
22244
|
+
...q,
|
|
22240
22245
|
...ie,
|
|
22241
22246
|
style: {
|
|
22242
22247
|
...wh,
|
|
@@ -22244,20 +22249,20 @@ function MC(e) {
|
|
|
22244
22249
|
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
22245
22250
|
width: "100%",
|
|
22246
22251
|
height: "100%",
|
|
22247
|
-
writingMode:
|
|
22252
|
+
writingMode: Gt
|
|
22248
22253
|
}
|
|
22249
22254
|
};
|
|
22250
22255
|
},
|
|
22251
|
-
getRootProps:
|
|
22256
|
+
getRootProps: Dt,
|
|
22252
22257
|
getThumbProps: Cr,
|
|
22253
22258
|
marks: Pe,
|
|
22254
|
-
open:
|
|
22259
|
+
open: W,
|
|
22255
22260
|
range: ee,
|
|
22256
22261
|
rootRef: Ge,
|
|
22257
22262
|
trackLeap: Ue,
|
|
22258
22263
|
trackOffset: gt,
|
|
22259
22264
|
values: Z,
|
|
22260
|
-
getThumbStyle:
|
|
22265
|
+
getThumbStyle: zt
|
|
22261
22266
|
};
|
|
22262
22267
|
}
|
|
22263
22268
|
function wn(e) {
|
|
@@ -22321,7 +22326,7 @@ process.env.NODE_ENV !== "production" && (Td.propTypes = {
|
|
|
22321
22326
|
function kl(e) {
|
|
22322
22327
|
return e;
|
|
22323
22328
|
}
|
|
22324
|
-
const BC =
|
|
22329
|
+
const BC = Ut("span", {
|
|
22325
22330
|
name: "MuiSlider",
|
|
22326
22331
|
slot: "Root",
|
|
22327
22332
|
overridesResolver: (e, t) => {
|
|
@@ -22421,7 +22426,7 @@ const BC = $t("span", {
|
|
|
22421
22426
|
marginRight: 44
|
|
22422
22427
|
}
|
|
22423
22428
|
}]
|
|
22424
|
-
}))), FC =
|
|
22429
|
+
}))), FC = Ut("span", {
|
|
22425
22430
|
name: "MuiSlider",
|
|
22426
22431
|
slot: "Rail",
|
|
22427
22432
|
overridesResolver: (e, t) => t.rail
|
|
@@ -22459,7 +22464,7 @@ const BC = $t("span", {
|
|
|
22459
22464
|
opacity: 1
|
|
22460
22465
|
}
|
|
22461
22466
|
}]
|
|
22462
|
-
}), NC =
|
|
22467
|
+
}), NC = Ut("span", {
|
|
22463
22468
|
name: "MuiSlider",
|
|
22464
22469
|
slot: "Track",
|
|
22465
22470
|
overridesResolver: (e, t) => t.track
|
|
@@ -22527,7 +22532,7 @@ const BC = $t("span", {
|
|
|
22527
22532
|
}
|
|
22528
22533
|
}
|
|
22529
22534
|
}))]
|
|
22530
|
-
}))), DC =
|
|
22535
|
+
}))), DC = Ut("span", {
|
|
22531
22536
|
name: "MuiSlider",
|
|
22532
22537
|
slot: "Thumb",
|
|
22533
22538
|
overridesResolver: (e, t) => {
|
|
@@ -22627,7 +22632,7 @@ const BC = $t("span", {
|
|
|
22627
22632
|
}
|
|
22628
22633
|
}
|
|
22629
22634
|
}))]
|
|
22630
|
-
}))), Ed =
|
|
22635
|
+
}))), Ed = Ut(Td, {
|
|
22631
22636
|
name: "MuiSlider",
|
|
22632
22637
|
slot: "ValueLabel",
|
|
22633
22638
|
overridesResolver: (e, t) => t.valueLabel
|
|
@@ -22734,7 +22739,7 @@ process.env.NODE_ENV !== "production" && (Ed.propTypes = {
|
|
|
22734
22739
|
*/
|
|
22735
22740
|
value: b.node
|
|
22736
22741
|
});
|
|
22737
|
-
const zC =
|
|
22742
|
+
const zC = Ut("span", {
|
|
22738
22743
|
name: "MuiSlider",
|
|
22739
22744
|
slot: "Mark",
|
|
22740
22745
|
shouldForwardProp: (e) => So(e) && e !== "markActive",
|
|
@@ -22777,7 +22782,7 @@ const zC = $t("span", {
|
|
|
22777
22782
|
opacity: 0.8
|
|
22778
22783
|
}
|
|
22779
22784
|
}]
|
|
22780
|
-
}))), GC =
|
|
22785
|
+
}))), GC = Ut("span", {
|
|
22781
22786
|
name: "MuiSlider",
|
|
22782
22787
|
slot: "MarkLabel",
|
|
22783
22788
|
shouldForwardProp: (e) => So(e) && e !== "markLabelActive",
|
|
@@ -22867,16 +22872,16 @@ const zC = $t("span", {
|
|
|
22867
22872
|
getAriaValueText: E,
|
|
22868
22873
|
marks: k = !1,
|
|
22869
22874
|
max: D = 100,
|
|
22870
|
-
min:
|
|
22875
|
+
min: M = 0,
|
|
22871
22876
|
name: F,
|
|
22872
|
-
onChange:
|
|
22873
|
-
onChangeCommitted:
|
|
22877
|
+
onChange: W,
|
|
22878
|
+
onChangeCommitted: I,
|
|
22874
22879
|
orientation: L = "horizontal",
|
|
22875
22880
|
shiftStep: B = 10,
|
|
22876
22881
|
size: g = "medium",
|
|
22877
22882
|
step: $ = 1,
|
|
22878
22883
|
scale: N = kl,
|
|
22879
|
-
slotProps:
|
|
22884
|
+
slotProps: J,
|
|
22880
22885
|
slots: z,
|
|
22881
22886
|
tabIndex: ee,
|
|
22882
22887
|
track: Z = "normal",
|
|
@@ -22888,7 +22893,7 @@ const zC = $t("span", {
|
|
|
22888
22893
|
...a,
|
|
22889
22894
|
isRtl: n,
|
|
22890
22895
|
max: D,
|
|
22891
|
-
min:
|
|
22896
|
+
min: M,
|
|
22892
22897
|
classes: p,
|
|
22893
22898
|
disabled: h,
|
|
22894
22899
|
disableSwap: y,
|
|
@@ -22908,7 +22913,7 @@ const zC = $t("span", {
|
|
|
22908
22913
|
getHiddenInputProps: oa,
|
|
22909
22914
|
getThumbProps: Or,
|
|
22910
22915
|
open: rr,
|
|
22911
|
-
active:
|
|
22916
|
+
active: Ft,
|
|
22912
22917
|
axis: nt,
|
|
22913
22918
|
focusedThumbIndex: ut,
|
|
22914
22919
|
range: st,
|
|
@@ -22916,20 +22921,20 @@ const zC = $t("span", {
|
|
|
22916
22921
|
marks: Xe,
|
|
22917
22922
|
values: ke,
|
|
22918
22923
|
trackOffset: Tt,
|
|
22919
|
-
trackLeap:
|
|
22924
|
+
trackLeap: Nt,
|
|
22920
22925
|
getThumbStyle: gt
|
|
22921
22926
|
} = MC({
|
|
22922
22927
|
...oe,
|
|
22923
22928
|
rootRef: r
|
|
22924
22929
|
});
|
|
22925
22930
|
oe.marked = Xe.length > 0 && Xe.some((we) => we.label), oe.dragging = At, oe.focusedThumbIndex = ut;
|
|
22926
|
-
const Ue = HC(oe),
|
|
22927
|
-
elementType:
|
|
22931
|
+
const Ue = HC(oe), Dt = (z == null ? void 0 : z.root) ?? c.Root ?? BC, Et = (z == null ? void 0 : z.rail) ?? c.Rail ?? FC, wr = (z == null ? void 0 : z.track) ?? c.Track ?? NC, Cr = (z == null ? void 0 : z.thumb) ?? c.Thumb ?? DC, zt = (z == null ? void 0 : z.valueLabel) ?? c.ValueLabel ?? Ed, Gt = (z == null ? void 0 : z.mark) ?? c.Mark ?? zC, Pr = (z == null ? void 0 : z.markLabel) ?? c.MarkLabel ?? GC, q = (z == null ? void 0 : z.input) ?? c.Input ?? "input", Q = (J == null ? void 0 : J.root) ?? d.root, Y = (J == null ? void 0 : J.rail) ?? d.rail, ie = (J == null ? void 0 : J.track) ?? d.track, ue = (J == null ? void 0 : J.thumb) ?? d.thumb, X = (J == null ? void 0 : J.valueLabel) ?? d.valueLabel, Me = (J == null ? void 0 : J.mark) ?? d.mark, Be = (J == null ? void 0 : J.markLabel) ?? d.markLabel, Ae = (J == null ? void 0 : J.input) ?? d.input, We = Ht({
|
|
22932
|
+
elementType: Dt,
|
|
22928
22933
|
getSlotProps: _t,
|
|
22929
22934
|
externalSlotProps: Q,
|
|
22930
22935
|
externalForwardedProps: be,
|
|
22931
22936
|
additionalProps: {
|
|
22932
|
-
...jC(
|
|
22937
|
+
...jC(Dt) && {
|
|
22933
22938
|
as: l
|
|
22934
22939
|
}
|
|
22935
22940
|
},
|
|
@@ -22938,18 +22943,18 @@ const zC = $t("span", {
|
|
|
22938
22943
|
...Q == null ? void 0 : Q.ownerState
|
|
22939
22944
|
},
|
|
22940
22945
|
className: [Ue.root, f]
|
|
22941
|
-
}), ar =
|
|
22946
|
+
}), ar = Ht({
|
|
22942
22947
|
elementType: Et,
|
|
22943
22948
|
externalSlotProps: Y,
|
|
22944
22949
|
ownerState: oe,
|
|
22945
22950
|
className: Ue.rail
|
|
22946
|
-
}), fs =
|
|
22951
|
+
}), fs = Ht({
|
|
22947
22952
|
elementType: wr,
|
|
22948
22953
|
externalSlotProps: ie,
|
|
22949
22954
|
additionalProps: {
|
|
22950
22955
|
style: {
|
|
22951
22956
|
...Ge[nt].offset(Tt),
|
|
22952
|
-
...Ge[nt].leap(
|
|
22957
|
+
...Ge[nt].leap(Nt)
|
|
22953
22958
|
}
|
|
22954
22959
|
},
|
|
22955
22960
|
ownerState: {
|
|
@@ -22957,7 +22962,7 @@ const zC = $t("span", {
|
|
|
22957
22962
|
...ie == null ? void 0 : ie.ownerState
|
|
22958
22963
|
},
|
|
22959
22964
|
className: Ue.track
|
|
22960
|
-
}), ia =
|
|
22965
|
+
}), ia = Ht({
|
|
22961
22966
|
elementType: Cr,
|
|
22962
22967
|
getSlotProps: Or,
|
|
22963
22968
|
externalSlotProps: ue,
|
|
@@ -22966,44 +22971,44 @@ const zC = $t("span", {
|
|
|
22966
22971
|
...ue == null ? void 0 : ue.ownerState
|
|
22967
22972
|
},
|
|
22968
22973
|
className: Ue.thumb
|
|
22969
|
-
}), la =
|
|
22970
|
-
elementType:
|
|
22974
|
+
}), la = Ht({
|
|
22975
|
+
elementType: zt,
|
|
22971
22976
|
externalSlotProps: X,
|
|
22972
22977
|
ownerState: {
|
|
22973
22978
|
...oe,
|
|
22974
22979
|
...X == null ? void 0 : X.ownerState
|
|
22975
22980
|
},
|
|
22976
22981
|
className: Ue.valueLabel
|
|
22977
|
-
}), Vr =
|
|
22978
|
-
elementType:
|
|
22982
|
+
}), Vr = Ht({
|
|
22983
|
+
elementType: Gt,
|
|
22979
22984
|
externalSlotProps: Me,
|
|
22980
22985
|
ownerState: oe,
|
|
22981
22986
|
className: Ue.mark
|
|
22982
|
-
}), yt =
|
|
22987
|
+
}), yt = Ht({
|
|
22983
22988
|
elementType: Pr,
|
|
22984
22989
|
externalSlotProps: Be,
|
|
22985
22990
|
ownerState: oe,
|
|
22986
22991
|
className: Ue.markLabel
|
|
22987
|
-
}), ca =
|
|
22988
|
-
elementType:
|
|
22992
|
+
}), ca = Ht({
|
|
22993
|
+
elementType: q,
|
|
22989
22994
|
getSlotProps: oa,
|
|
22990
22995
|
externalSlotProps: Ae,
|
|
22991
22996
|
ownerState: oe
|
|
22992
22997
|
});
|
|
22993
|
-
return /* @__PURE__ */ S.jsxs(
|
|
22998
|
+
return /* @__PURE__ */ S.jsxs(Dt, {
|
|
22994
22999
|
...We,
|
|
22995
23000
|
children: [/* @__PURE__ */ S.jsx(Et, {
|
|
22996
23001
|
...ar
|
|
22997
23002
|
}), /* @__PURE__ */ S.jsx(wr, {
|
|
22998
23003
|
...fs
|
|
22999
|
-
}), Xe.filter((we) => we.value >=
|
|
23000
|
-
const da = Fn(we.value,
|
|
23004
|
+
}), Xe.filter((we) => we.value >= M && we.value <= D).map((we, je) => {
|
|
23005
|
+
const da = Fn(we.value, M, D), nr = Ge[nt].offset(da);
|
|
23001
23006
|
let pt;
|
|
23002
23007
|
return Z === !1 ? pt = ke.includes(we.value) : pt = Z === "normal" && (st ? we.value >= ke[0] && we.value <= ke[ke.length - 1] : we.value <= ke[0]) || Z === "inverted" && (st ? we.value <= ke[0] || we.value >= ke[ke.length - 1] : we.value >= ke[0]), /* @__PURE__ */ S.jsxs(G.Fragment, {
|
|
23003
|
-
children: [/* @__PURE__ */ S.jsx(
|
|
23008
|
+
children: [/* @__PURE__ */ S.jsx(Gt, {
|
|
23004
23009
|
"data-index": je,
|
|
23005
23010
|
...Vr,
|
|
23006
|
-
...!wn(
|
|
23011
|
+
...!wn(Gt) && {
|
|
23007
23012
|
markActive: pt
|
|
23008
23013
|
},
|
|
23009
23014
|
style: {
|
|
@@ -23027,7 +23032,7 @@ const zC = $t("span", {
|
|
|
23027
23032
|
}) : null]
|
|
23028
23033
|
}, je);
|
|
23029
23034
|
}), ke.map((we, je) => {
|
|
23030
|
-
const da = Fn(we,
|
|
23035
|
+
const da = Fn(we, M, D), nr = Ge[nt].offset(da), pt = se === "off" ? JC : zt;
|
|
23031
23036
|
return (
|
|
23032
23037
|
/* 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. */
|
|
23033
23038
|
/* @__PURE__ */ S.jsx(pt, {
|
|
@@ -23036,20 +23041,20 @@ const zC = $t("span", {
|
|
|
23036
23041
|
valueLabelDisplay: se,
|
|
23037
23042
|
value: typeof de == "function" ? de(N(we), je) : de,
|
|
23038
23043
|
index: je,
|
|
23039
|
-
open: rr === je ||
|
|
23044
|
+
open: rr === je || Ft === je || se === "on",
|
|
23040
23045
|
disabled: h
|
|
23041
23046
|
},
|
|
23042
23047
|
...la,
|
|
23043
23048
|
children: /* @__PURE__ */ S.jsx(Cr, {
|
|
23044
23049
|
"data-index": je,
|
|
23045
23050
|
...ia,
|
|
23046
|
-
className: Pt(Ue.thumb, ia.className,
|
|
23051
|
+
className: Pt(Ue.thumb, ia.className, Ft === je && Ue.active, ut === je && Ue.focusVisible),
|
|
23047
23052
|
style: {
|
|
23048
23053
|
...nr,
|
|
23049
23054
|
...gt(je),
|
|
23050
23055
|
...ia.style
|
|
23051
23056
|
},
|
|
23052
|
-
children: /* @__PURE__ */ S.jsx(
|
|
23057
|
+
children: /* @__PURE__ */ S.jsx(q, {
|
|
23053
23058
|
"data-index": je,
|
|
23054
23059
|
"aria-label": x ? x(je) : s,
|
|
23055
23060
|
"aria-valuenow": N(we),
|
|
@@ -23397,7 +23402,7 @@ function Md({ value: e, sx: t }) {
|
|
|
23397
23402
|
}
|
|
23398
23403
|
const jd = De(
|
|
23399
23404
|
({ store: e }) => {
|
|
23400
|
-
const { t } =
|
|
23405
|
+
const { t } = $t(), r = Nn(() => ({
|
|
23401
23406
|
get valueLabelFormat() {
|
|
23402
23407
|
return e.currentMotionType === "translate" ? (a) => `v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: a })}` : (a) => `ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: a })}`;
|
|
23403
23408
|
}
|
|
@@ -23431,8 +23436,8 @@ const jd = De(
|
|
|
23431
23436
|
children: t
|
|
23432
23437
|
}) => {
|
|
23433
23438
|
var u, p, f, y, h, x, E, k, D;
|
|
23434
|
-
const { t: r } =
|
|
23435
|
-
function n(
|
|
23439
|
+
const { t: r } = $t(), a = ct();
|
|
23440
|
+
function n(M, F) {
|
|
23436
23441
|
(F === "translate" || F === "rotate") && e.setSelectedCartesianMotionType(F);
|
|
23437
23442
|
}
|
|
23438
23443
|
Zm(
|
|
@@ -23446,20 +23451,20 @@ const jd = De(
|
|
|
23446
23451
|
},
|
|
23447
23452
|
{ fireImmediately: !0 }
|
|
23448
23453
|
);
|
|
23449
|
-
async function s(
|
|
23450
|
-
const
|
|
23451
|
-
|
|
23454
|
+
async function s(M, F) {
|
|
23455
|
+
const W = await e.activate(), I = W.motionStream.rapidlyChangingMotionState.tcp_pose, L = W.motionStream.rapidlyChangingMotionState.state.joint_position;
|
|
23456
|
+
I && await e.withMotionLock(async () => {
|
|
23452
23457
|
try {
|
|
23453
23458
|
e.setCurrentIncrementJog({
|
|
23454
|
-
axis:
|
|
23455
|
-
direction:
|
|
23459
|
+
axis: M.axis,
|
|
23460
|
+
direction: M.direction
|
|
23456
23461
|
}), await e.jogger.runIncrementalCartesianMotion({
|
|
23457
|
-
currentTcpPose:
|
|
23462
|
+
currentTcpPose: I,
|
|
23458
23463
|
currentJoints: L,
|
|
23459
23464
|
coordSystemId: e.activeCoordSystemId,
|
|
23460
23465
|
velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
|
|
23461
|
-
axis:
|
|
23462
|
-
direction:
|
|
23466
|
+
axis: M.axis,
|
|
23467
|
+
direction: M.direction,
|
|
23463
23468
|
motion: e.selectedCartesianMotionType === "translate" ? {
|
|
23464
23469
|
type: "translate",
|
|
23465
23470
|
distanceMm: F.mm
|
|
@@ -23473,17 +23478,17 @@ const jd = De(
|
|
|
23473
23478
|
}
|
|
23474
23479
|
});
|
|
23475
23480
|
}
|
|
23476
|
-
async function o(
|
|
23481
|
+
async function o(M) {
|
|
23477
23482
|
if (!e.isLocked) {
|
|
23478
23483
|
if (await e.activate(), e.activeDiscreteIncrement)
|
|
23479
|
-
return s(
|
|
23480
|
-
|
|
23481
|
-
axis:
|
|
23482
|
-
direction:
|
|
23484
|
+
return s(M, e.activeDiscreteIncrement);
|
|
23485
|
+
M.motionType === "translate" ? await e.jogger.startTCPTranslation({
|
|
23486
|
+
axis: M.axis,
|
|
23487
|
+
direction: M.direction,
|
|
23483
23488
|
velocityMmPerSec: e.translationVelocityMmPerSec
|
|
23484
23489
|
}) : await e.jogger.startTCPRotation({
|
|
23485
|
-
axis:
|
|
23486
|
-
direction:
|
|
23490
|
+
axis: M.axis,
|
|
23491
|
+
direction: M.direction,
|
|
23487
23492
|
velocityRadsPerSec: e.rotationVelocityRadsPerSec
|
|
23488
23493
|
});
|
|
23489
23494
|
}
|
|
@@ -23508,12 +23513,12 @@ const jd = De(
|
|
|
23508
23513
|
icon: /* @__PURE__ */ S.jsx(o1, {})
|
|
23509
23514
|
}
|
|
23510
23515
|
];
|
|
23511
|
-
function c(
|
|
23512
|
-
return r("General.mm.variable", { amount:
|
|
23516
|
+
function c(M) {
|
|
23517
|
+
return r("General.mm.variable", { amount: M.toFixed(1) });
|
|
23513
23518
|
}
|
|
23514
|
-
function d(
|
|
23519
|
+
function d(M) {
|
|
23515
23520
|
return r("General.degree.variable", {
|
|
23516
|
-
amount: gn(
|
|
23521
|
+
amount: gn(M).toFixed(1)
|
|
23517
23522
|
});
|
|
23518
23523
|
}
|
|
23519
23524
|
return /* @__PURE__ */ S.jsxs(_e, { flexGrow: 1, gap: 2, sx: { padding: "18px 24px" }, children: [
|
|
@@ -23552,51 +23557,51 @@ const jd = De(
|
|
|
23552
23557
|
]
|
|
23553
23558
|
}
|
|
23554
23559
|
),
|
|
23555
|
-
e.selectedCartesianMotionType === "translate" && l.map((
|
|
23556
|
-
var F;
|
|
23560
|
+
e.selectedCartesianMotionType === "translate" && l.map((M) => {
|
|
23561
|
+
var F, W;
|
|
23557
23562
|
return /* @__PURE__ */ S.jsx(
|
|
23558
23563
|
wi,
|
|
23559
23564
|
{
|
|
23560
|
-
colors:
|
|
23565
|
+
colors: M.colors,
|
|
23561
23566
|
disabled: e.isLocked,
|
|
23562
|
-
activeJoggingDirection: ((F = e.incrementJogInProgress) == null ? void 0 : F.axis) ===
|
|
23567
|
+
activeJoggingDirection: ((F = e.incrementJogInProgress) == null ? void 0 : F.axis) === M.id ? e.incrementJogInProgress.direction : void 0,
|
|
23563
23568
|
label: /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
23564
|
-
|
|
23569
|
+
M.icon,
|
|
23565
23570
|
/* @__PURE__ */ S.jsx(
|
|
23566
23571
|
rt,
|
|
23567
23572
|
{
|
|
23568
23573
|
sx: {
|
|
23569
23574
|
fontSize: "24px",
|
|
23570
|
-
color: a.palette.text.primary
|
|
23575
|
+
color: ((W = M.colors) == null ? void 0 : W.labelColor) ?? a.palette.text.primary
|
|
23571
23576
|
},
|
|
23572
|
-
children:
|
|
23577
|
+
children: M.id.toUpperCase()
|
|
23573
23578
|
}
|
|
23574
23579
|
)
|
|
23575
23580
|
] }),
|
|
23576
23581
|
getDisplayedValue: () => {
|
|
23577
|
-
var
|
|
23582
|
+
var I;
|
|
23578
23583
|
return c(
|
|
23579
|
-
((
|
|
23584
|
+
((I = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : I.position[M.id]) || 0
|
|
23580
23585
|
);
|
|
23581
23586
|
},
|
|
23582
|
-
startJogging: (
|
|
23583
|
-
axis:
|
|
23587
|
+
startJogging: (I) => o({
|
|
23588
|
+
axis: M.id,
|
|
23584
23589
|
motionType: "translate",
|
|
23585
|
-
direction:
|
|
23590
|
+
direction: I
|
|
23586
23591
|
}),
|
|
23587
23592
|
stopJogging: i
|
|
23588
23593
|
},
|
|
23589
|
-
|
|
23594
|
+
M.id
|
|
23590
23595
|
);
|
|
23591
23596
|
}),
|
|
23592
|
-
e.selectedCartesianMotionType === "rotate" && l.map((
|
|
23593
|
-
var F;
|
|
23597
|
+
e.selectedCartesianMotionType === "rotate" && l.map((M) => {
|
|
23598
|
+
var F, W;
|
|
23594
23599
|
return /* @__PURE__ */ S.jsx(
|
|
23595
23600
|
wi,
|
|
23596
23601
|
{
|
|
23597
|
-
colors:
|
|
23602
|
+
colors: M.colors,
|
|
23598
23603
|
disabled: e.isLocked,
|
|
23599
|
-
activeJoggingDirection: ((F = e.incrementJogInProgress) == null ? void 0 : F.axis) ===
|
|
23604
|
+
activeJoggingDirection: ((F = e.incrementJogInProgress) == null ? void 0 : F.axis) === M.id ? e.incrementJogInProgress.direction : void 0,
|
|
23600
23605
|
label: /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
23601
23606
|
/* @__PURE__ */ S.jsx(l1, {}),
|
|
23602
23607
|
/* @__PURE__ */ S.jsx(
|
|
@@ -23604,26 +23609,26 @@ const jd = De(
|
|
|
23604
23609
|
{
|
|
23605
23610
|
sx: {
|
|
23606
23611
|
fontSize: "24px",
|
|
23607
|
-
color: a.palette.text.primary
|
|
23612
|
+
color: ((W = M.colors) == null ? void 0 : W.labelColor) ?? a.palette.text.primary
|
|
23608
23613
|
},
|
|
23609
|
-
children:
|
|
23614
|
+
children: M.id.toUpperCase()
|
|
23610
23615
|
}
|
|
23611
23616
|
)
|
|
23612
23617
|
] }),
|
|
23613
23618
|
getDisplayedValue: () => {
|
|
23614
|
-
var
|
|
23619
|
+
var I, L;
|
|
23615
23620
|
return d(
|
|
23616
|
-
((
|
|
23621
|
+
((L = (I = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : I.orientation) == null ? void 0 : L[M.id]) || 0
|
|
23617
23622
|
);
|
|
23618
23623
|
},
|
|
23619
|
-
startJogging: (
|
|
23620
|
-
axis:
|
|
23624
|
+
startJogging: (I) => o({
|
|
23625
|
+
axis: M.id,
|
|
23621
23626
|
motionType: "rotate",
|
|
23622
|
-
direction:
|
|
23627
|
+
direction: I
|
|
23623
23628
|
}),
|
|
23624
23629
|
stopJogging: i
|
|
23625
23630
|
},
|
|
23626
|
-
|
|
23631
|
+
M.id
|
|
23627
23632
|
);
|
|
23628
23633
|
})
|
|
23629
23634
|
]
|
|
@@ -23710,10 +23715,10 @@ const jd = De(
|
|
|
23710
23715
|
r.loadingError = n;
|
|
23711
23716
|
}
|
|
23712
23717
|
}
|
|
23713
|
-
return
|
|
23718
|
+
return Yt(() => (a(), e.store ? () => null : () => {
|
|
23714
23719
|
var n;
|
|
23715
23720
|
(n = r.joggingStore) == null || n.dispose();
|
|
23716
|
-
}), [e.store, e.nova, e.motionGroupId]),
|
|
23721
|
+
}), [e.store, e.nova, e.motionGroupId]), Yt(() => {
|
|
23717
23722
|
const n = r.joggingStore;
|
|
23718
23723
|
n && (e.locked ? n.lock("external") : n.unlock("external"));
|
|
23719
23724
|
}, [r.joggingStore, e.locked]), /* @__PURE__ */ S.jsx(
|
|
@@ -23740,7 +23745,8 @@ const jd = De(
|
|
|
23740
23745
|
store: e,
|
|
23741
23746
|
children: t
|
|
23742
23747
|
}) => {
|
|
23743
|
-
|
|
23748
|
+
const { t: r } = $t();
|
|
23749
|
+
function a() {
|
|
23744
23750
|
if (e.currentTab.id === "cartesian")
|
|
23745
23751
|
return /* @__PURE__ */ S.jsx(S.Fragment, { children: /* @__PURE__ */ S.jsx(KC, { store: e, children: t }) });
|
|
23746
23752
|
if (e.currentTab.id === "joint")
|
|
@@ -23753,14 +23759,14 @@ const jd = De(
|
|
|
23753
23759
|
value: e.tabIndex,
|
|
23754
23760
|
onChange: e.onTabChange,
|
|
23755
23761
|
variant: "fullWidth",
|
|
23756
|
-
children: e.tabs.map((
|
|
23762
|
+
children: e.tabs.map((n) => /* @__PURE__ */ S.jsx(
|
|
23757
23763
|
pu,
|
|
23758
23764
|
{
|
|
23759
|
-
label:
|
|
23760
|
-
id: `jogging-tab-${
|
|
23761
|
-
"aria-controls": `jogging-tab-${
|
|
23765
|
+
label: n.label === "cartesian" ? r("Jogging.Cartesian.bt") : r("Jogging.Joints.bt"),
|
|
23766
|
+
id: `jogging-tab-${n.id}`,
|
|
23767
|
+
"aria-controls": `jogging-tab-${n.id}`
|
|
23762
23768
|
},
|
|
23763
|
-
|
|
23769
|
+
n.id
|
|
23764
23770
|
))
|
|
23765
23771
|
}
|
|
23766
23772
|
),
|
|
@@ -23770,7 +23776,7 @@ const jd = De(
|
|
|
23770
23776
|
flexGrow: 1,
|
|
23771
23777
|
position: "relative",
|
|
23772
23778
|
sx: { overflowY: "auto", overflowX: "hidden" },
|
|
23773
|
-
children:
|
|
23779
|
+
children: a()
|
|
23774
23780
|
}
|
|
23775
23781
|
)
|
|
23776
23782
|
] });
|
|
@@ -23794,7 +23800,7 @@ const jd = De(
|
|
|
23794
23800
|
}
|
|
23795
23801
|
return !1;
|
|
23796
23802
|
}
|
|
23797
|
-
return
|
|
23803
|
+
return Yt(() => {
|
|
23798
23804
|
if (!n)
|
|
23799
23805
|
return;
|
|
23800
23806
|
const l = setTimeout(() => s(!1), 3e3);
|
|
@@ -24113,7 +24119,7 @@ function rP({
|
|
|
24113
24119
|
}
|
|
24114
24120
|
const aP = console.warn;
|
|
24115
24121
|
function nP() {
|
|
24116
|
-
return
|
|
24122
|
+
return Yt(() => {
|
|
24117
24123
|
console.warn = (e) => {
|
|
24118
24124
|
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && aP(e);
|
|
24119
24125
|
};
|
|
@@ -24209,7 +24215,7 @@ const iP = (e, t) => {
|
|
|
24209
24215
|
const [l, c] = gr(null), d = zl((p) => {
|
|
24210
24216
|
c(p);
|
|
24211
24217
|
}, []);
|
|
24212
|
-
|
|
24218
|
+
Yt(() => {
|
|
24213
24219
|
l && (o ? iP(l, o) : lP(l));
|
|
24214
24220
|
}, [l, o]);
|
|
24215
24221
|
const u = /* @__PURE__ */ S.jsx(
|
|
@@ -24382,7 +24388,7 @@ const dP = ({
|
|
|
24382
24388
|
anchorOrigin: r,
|
|
24383
24389
|
transformOrigin: a
|
|
24384
24390
|
}) => {
|
|
24385
|
-
const n = ct(), { t: s } =
|
|
24391
|
+
const n = ct(), { t: s } = $t();
|
|
24386
24392
|
return e ? /* @__PURE__ */ S.jsx(
|
|
24387
24393
|
wt,
|
|
24388
24394
|
{
|
|
@@ -24447,7 +24453,7 @@ const dP = ({
|
|
|
24447
24453
|
anchorOrigin: t,
|
|
24448
24454
|
transformOrigin: r
|
|
24449
24455
|
}) => {
|
|
24450
|
-
const { t: a } =
|
|
24456
|
+
const { t: a } = $t(), n = ct();
|
|
24451
24457
|
switch (e) {
|
|
24452
24458
|
case "OPERATION_MODE_AUTO":
|
|
24453
24459
|
return /* @__PURE__ */ S.jsx(
|
|
@@ -24523,7 +24529,7 @@ const dP = ({
|
|
|
24523
24529
|
anchorOrigin: t,
|
|
24524
24530
|
transformOrigin: r
|
|
24525
24531
|
}) => {
|
|
24526
|
-
const { t: a } =
|
|
24532
|
+
const { t: a } = $t(), n = ct();
|
|
24527
24533
|
switch (e) {
|
|
24528
24534
|
// Normal state, robot can move
|
|
24529
24535
|
case "SAFETY_STATE_NORMAL":
|
|
@@ -25055,7 +25061,8 @@ function Fd() {
|
|
|
25055
25061
|
hovered: "rgba(241, 77, 66, 1)",
|
|
25056
25062
|
disabled: "rgba(241, 77, 66, 1)"
|
|
25057
25063
|
},
|
|
25058
|
-
color: "rgba(255, 198, 198, 1)"
|
|
25064
|
+
color: "rgba(255, 198, 198, 1)",
|
|
25065
|
+
labelColor: e.palette.text.primary
|
|
25059
25066
|
},
|
|
25060
25067
|
Y: {
|
|
25061
25068
|
backgroundColor: "rgba(20, 151, 108, 1)",
|
|
@@ -25066,7 +25073,8 @@ function Fd() {
|
|
|
25066
25073
|
disabled: "rgba(28, 188, 135, 1)",
|
|
25067
25074
|
hovered: "rgba(28, 188, 135, 1)"
|
|
25068
25075
|
},
|
|
25069
|
-
color: "rgba(215, 255, 242, 1)"
|
|
25076
|
+
color: "rgba(215, 255, 242, 1)",
|
|
25077
|
+
labelColor: e.palette.text.primary
|
|
25070
25078
|
},
|
|
25071
25079
|
Z: {
|
|
25072
25080
|
backgroundColor: "rgba(1, 87, 155, 1)",
|
|
@@ -25077,7 +25085,8 @@ function Fd() {
|
|
|
25077
25085
|
disabled: "rgba(2, 136, 209, 1)",
|
|
25078
25086
|
hovered: "rgba(2, 136, 209, 1)"
|
|
25079
25087
|
},
|
|
25080
|
-
color: "rgba(210, 239, 255, 1)"
|
|
25088
|
+
color: "rgba(210, 239, 255, 1)",
|
|
25089
|
+
labelColor: e.palette.text.primary
|
|
25081
25090
|
}
|
|
25082
25091
|
}
|
|
25083
25092
|
},
|