@wandelbots/wandelbots-js-react-components 5.7.1-pr.feat-adorned-textfield.618.3cf7c50 → 5.7.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/chunks/{theming-IwLOrP7-.cjs → theming-D3fdvk5n.cjs} +3 -3
- package/dist/chunks/{theming-BAMo7Vnk.js → theming-DNofrgMK.js} +233 -300
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +0 -1
- package/dist/core.js +43 -44
- package/dist/index.cjs +1 -1
- package/dist/index.js +73 -74
- package/package.json +1 -1
- package/dist/components/AdornedTextField.d.ts +0 -7
|
@@ -1,148 +1,82 @@
|
|
|
1
1
|
import { jsx as a, jsxs as S, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import oe from "@mui/material/
|
|
4
|
-
import ne from "@mui/material/AppBar";
|
|
2
|
+
import { alpha as It, useTheme as B, styled as pt, createTheme as Bt } from "@mui/material/styles";
|
|
3
|
+
import oe from "@mui/material/AppBar";
|
|
5
4
|
import Lt from "@mui/material/Backdrop";
|
|
6
5
|
import w from "@mui/material/Box";
|
|
7
6
|
import q from "@mui/material/IconButton";
|
|
8
|
-
import
|
|
7
|
+
import ne from "@mui/material/Menu";
|
|
9
8
|
import Y from "@mui/material/MenuItem";
|
|
10
|
-
import
|
|
9
|
+
import ie from "@mui/material/Toolbar";
|
|
11
10
|
import R from "@mui/material/Typography";
|
|
12
11
|
import { observer as J, useLocalObservable as $t } from "mobx-react-lite";
|
|
13
|
-
import { useState as L, useRef as A, useCallback as P, useEffect as F, useMemo as rt, useId as
|
|
12
|
+
import { useState as L, useRef as A, useCallback as P, useEffect as F, useMemo as rt, useId as re } from "react";
|
|
14
13
|
import { e as $ } from "./externalizeComponent-EDymnaGR.js";
|
|
15
|
-
import
|
|
14
|
+
import ae from "@mui/material/SvgIcon";
|
|
16
15
|
import H from "@mui/material/Fade";
|
|
17
|
-
import { Gauge as
|
|
16
|
+
import { Gauge as se } from "@mui/x-charts/Gauge";
|
|
18
17
|
import { useTranslation as z } from "react-i18next";
|
|
19
18
|
import { f as zt, e as mt } from "./interpolation-DG8VTxzS.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
19
|
+
import le from "@mui/icons-material/Clear";
|
|
20
|
+
import ce from "@mui/icons-material/FilterList";
|
|
22
21
|
import kt from "@mui/icons-material/Search";
|
|
23
22
|
import U from "@mui/material/Divider";
|
|
24
|
-
import { useGridApiRef as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
23
|
+
import { useGridApiRef as de, DataGrid as ge, Toolbar as ue, FilterPanelTrigger as pe, ToolbarButton as ct, QuickFilter as me, QuickFilterTrigger as he, QuickFilterControl as fe, QuickFilterClear as be } from "@mui/x-data-grid";
|
|
24
|
+
import xe from "@mui/icons-material/OpenWith";
|
|
25
|
+
import ye from "@mui/icons-material/Share";
|
|
27
26
|
import _ from "@mui/material/Stack";
|
|
28
27
|
import Vt from "@mui/material/Tab";
|
|
29
28
|
import Nt from "@mui/material/Tabs";
|
|
30
|
-
import { JointTypeEnum as G, Nova as
|
|
31
|
-
import { lowerFirst as
|
|
32
|
-
import { runInAction as D, makeAutoObservable as ht, when as at, autorun as Rt, makeObservable as
|
|
33
|
-
import { radiansToDegrees as Wt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as
|
|
34
|
-
import { Vector3 as
|
|
29
|
+
import { JointTypeEnum as G, Nova as Se, poseToWandelscriptString as ve } from "@wandelbots/nova-js/v2";
|
|
30
|
+
import { lowerFirst as Ce, countBy as we, isString as Te } from "lodash-es";
|
|
31
|
+
import { runInAction as D, makeAutoObservable as ht, when as at, autorun as Rt, makeObservable as Me, action as jt, observable as Ie } from "mobx";
|
|
32
|
+
import { radiansToDegrees as Wt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as ke } from "@wandelbots/nova-js";
|
|
33
|
+
import { Vector3 as dt } from "three/src/math/Vector3.js";
|
|
35
34
|
import Gt from "@mui/material/CircularProgress";
|
|
36
|
-
import { capitalize as
|
|
37
|
-
import { m as
|
|
38
|
-
import
|
|
39
|
-
import
|
|
35
|
+
import { capitalize as Re } from "@mui/material/utils";
|
|
36
|
+
import { m as je } from "./SafetyBar-CxxIVVeR.js";
|
|
37
|
+
import Ee from "@mui/material/Alert";
|
|
38
|
+
import Pe from "@mui/material/AlertTitle";
|
|
40
39
|
import Z from "@mui/material/Button";
|
|
41
40
|
import Et from "@mui/material/ToggleButton";
|
|
42
|
-
import { c as
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
41
|
+
import { c as _e, d as Oe, F as De, a as Ae, b as Je, f as Fe, e as Be } from "./robot-Cy9ST5-m.js";
|
|
42
|
+
import Le from "lodash-es/isEqual.js";
|
|
43
|
+
import $e from "@mui/material/InputAdornment";
|
|
44
|
+
import ze from "@mui/material/FormControl";
|
|
45
|
+
import Ve from "@mui/material/InputLabel";
|
|
46
|
+
import Ne from "@mui/material/Select";
|
|
48
47
|
import nt from "lodash-es/keyBy.js";
|
|
49
|
-
import
|
|
50
|
-
import
|
|
48
|
+
import We from "lodash-es/uniqueId.js";
|
|
49
|
+
import Ge from "@mui/material/ToggleButtonGroup";
|
|
51
50
|
import Ut from "@mui/material/Slider";
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import { Gauge as
|
|
51
|
+
import Ue from "lodash-es/isNumber.js";
|
|
52
|
+
import He from "@mui/icons-material/ChevronLeft";
|
|
53
|
+
import qe from "@mui/icons-material/ChevronRight";
|
|
54
|
+
import Ye from "lodash-es/throttle.js";
|
|
55
|
+
import Ze from "@mui/material/Tooltip";
|
|
56
|
+
import Qe from "@mui/icons-material/ContentCopy";
|
|
57
|
+
import Xe from "@mui/icons-material/DescriptionOutlined";
|
|
58
|
+
import Ke from "@mui/icons-material/ExpandLess";
|
|
59
|
+
import to from "@mui/icons-material/ExpandMore";
|
|
60
|
+
import eo from "@mui/material/Paper";
|
|
61
|
+
import oo from "@mui/material/Dialog";
|
|
62
|
+
import no from "@mui/material/DialogActions";
|
|
63
|
+
import io from "@mui/material/DialogContent";
|
|
64
|
+
import ro from "@mui/material/DialogTitle";
|
|
65
|
+
import ao from "@mui/icons-material/Error";
|
|
66
|
+
import so from "@mui/material/Chip";
|
|
67
|
+
import lo from "@mui/material/Fab";
|
|
68
|
+
import co from "@mui/material/Badge";
|
|
69
|
+
import { Gauge as go } from "@mui/x-charts";
|
|
71
70
|
import * as Pt from "three";
|
|
72
71
|
import { Vector3 as _t } from "three";
|
|
73
|
-
const
|
|
74
|
-
shouldForwardProp: (t) => t !== "adornedSize"
|
|
75
|
-
})(({ theme: t, adornedSize: e = "medium" }) => ({
|
|
76
|
-
"&.MuiTextField-root": {
|
|
77
|
-
".MuiInputBase-root": {
|
|
78
|
-
background: t.palette.secondary.dark,
|
|
79
|
-
borderRadius: "10px"
|
|
80
|
-
},
|
|
81
|
-
".MuiInputBase-input": {
|
|
82
|
-
"&::placeholder": {
|
|
83
|
-
opacity: "1",
|
|
84
|
-
color: t.palette.text.disabled
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
// Input without label (default case)
|
|
88
|
-
".MuiInputBase-root .MuiInputBase-input": {
|
|
89
|
-
padding: e === "small" ? "8px 16px" : "16px 14px"
|
|
90
|
-
},
|
|
91
|
-
// Input with label - using a more specific selector to override
|
|
92
|
-
".MuiFormLabel-root + .MuiInputBase-root .MuiInputBase-input": {
|
|
93
|
-
padding: e === "small" ? "8px 16px" : "24px 14px 8px"
|
|
94
|
-
},
|
|
95
|
-
label: {
|
|
96
|
-
transform: "translate(14px, 8px) scale(0.75)"
|
|
97
|
-
},
|
|
98
|
-
":hover": {
|
|
99
|
-
fieldset: {
|
|
100
|
-
border: `1px solid ${t.palette.action.hover}`
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
".Mui-focused": {
|
|
104
|
-
fieldset: {
|
|
105
|
-
border: `1px solid ${t.palette.primary.main}`,
|
|
106
|
-
legend: {
|
|
107
|
-
width: 0
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
fieldset: {
|
|
112
|
-
borderRadius: "10px",
|
|
113
|
-
border: "1px solid transparent",
|
|
114
|
-
legend: {
|
|
115
|
-
width: 0
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
})), fi = ({
|
|
120
|
-
adornedSize: t = "medium",
|
|
121
|
-
...e
|
|
122
|
-
}) => {
|
|
123
|
-
var o;
|
|
124
|
-
return /* @__PURE__ */ a(
|
|
125
|
-
po,
|
|
126
|
-
{
|
|
127
|
-
adornedSize: t,
|
|
128
|
-
...e,
|
|
129
|
-
slotProps: {
|
|
130
|
-
...e.slotProps,
|
|
131
|
-
inputLabel: {
|
|
132
|
-
...(o = e.slotProps) == null ? void 0 : o.inputLabel,
|
|
133
|
-
shrink: !0
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}, mo = (t) => /* @__PURE__ */ a(se, { ...t, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
|
|
72
|
+
const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
|
|
139
73
|
"path",
|
|
140
74
|
{
|
|
141
75
|
d: "M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",
|
|
142
76
|
fill: "currentColor",
|
|
143
77
|
fillOpacity: "0.56"
|
|
144
78
|
}
|
|
145
|
-
) }),
|
|
79
|
+
) }), pi = $(
|
|
146
80
|
J((t) => {
|
|
147
81
|
const {
|
|
148
82
|
appIcon: e,
|
|
@@ -160,7 +94,7 @@ const po = lt(oe, {
|
|
|
160
94
|
};
|
|
161
95
|
return /* @__PURE__ */ S(et, { children: [
|
|
162
96
|
/* @__PURE__ */ a(
|
|
163
|
-
|
|
97
|
+
oe,
|
|
164
98
|
{
|
|
165
99
|
position: "static",
|
|
166
100
|
sx: {
|
|
@@ -172,7 +106,7 @@ const po = lt(oe, {
|
|
|
172
106
|
},
|
|
173
107
|
...c
|
|
174
108
|
},
|
|
175
|
-
children: /* @__PURE__ */ S(
|
|
109
|
+
children: /* @__PURE__ */ S(ie, { sx: { minHeight: "62px !important" }, children: [
|
|
176
110
|
/* @__PURE__ */ a(w, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: e }),
|
|
177
111
|
/* @__PURE__ */ S(w, { sx: { display: "flex", alignItems: "center", flexGrow: 1 }, children: [
|
|
178
112
|
/* @__PURE__ */ a(
|
|
@@ -212,7 +146,7 @@ const po = lt(oe, {
|
|
|
212
146
|
height: "6px"
|
|
213
147
|
}
|
|
214
148
|
},
|
|
215
|
-
children: /* @__PURE__ */ a(
|
|
149
|
+
children: /* @__PURE__ */ a(uo, {})
|
|
216
150
|
}
|
|
217
151
|
)
|
|
218
152
|
] })
|
|
@@ -232,7 +166,7 @@ const po = lt(oe, {
|
|
|
232
166
|
}
|
|
233
167
|
),
|
|
234
168
|
/* @__PURE__ */ a(
|
|
235
|
-
|
|
169
|
+
ne,
|
|
236
170
|
{
|
|
237
171
|
id: "app-menu",
|
|
238
172
|
anchorEl: s,
|
|
@@ -261,7 +195,7 @@ const po = lt(oe, {
|
|
|
261
195
|
)
|
|
262
196
|
] });
|
|
263
197
|
})
|
|
264
|
-
),
|
|
198
|
+
), po = (t) => {
|
|
265
199
|
const e = Math.floor(t / 86400), o = Math.floor(t % 86400 / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, n = [];
|
|
266
200
|
return e > 0 ? (n.push(e.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
|
|
267
201
|
}, N = (t, e) => {
|
|
@@ -274,7 +208,7 @@ const po = lt(oe, {
|
|
|
274
208
|
}
|
|
275
209
|
const c = [];
|
|
276
210
|
return o > 0 && c.push(`${o}d`), r > 0 && c.push(`${r}h`), i > 0 && c.push(`${i}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
|
|
277
|
-
},
|
|
211
|
+
}, mo = (t, e, o) => t === "countdown" && o !== null ? Math.min(100, e / o * 100) : t === "measuring" ? e / 60 % 1 * 100 : 0, ho = ({
|
|
278
212
|
timerState: t,
|
|
279
213
|
animationState: e,
|
|
280
214
|
hasError: o,
|
|
@@ -304,7 +238,7 @@ const po = lt(oe, {
|
|
|
304
238
|
},
|
|
305
239
|
children: [
|
|
306
240
|
/* @__PURE__ */ a(
|
|
307
|
-
|
|
241
|
+
se,
|
|
308
242
|
{
|
|
309
243
|
width: 264,
|
|
310
244
|
height: 264,
|
|
@@ -504,7 +438,7 @@ const po = lt(oe, {
|
|
|
504
438
|
opacity: 1,
|
|
505
439
|
transition: "opacity 2s ease-in-out"
|
|
506
440
|
},
|
|
507
|
-
children:
|
|
441
|
+
children: po(l)
|
|
508
442
|
}
|
|
509
443
|
)
|
|
510
444
|
}
|
|
@@ -562,7 +496,7 @@ const po = lt(oe, {
|
|
|
562
496
|
]
|
|
563
497
|
}
|
|
564
498
|
);
|
|
565
|
-
},
|
|
499
|
+
}, fo = ({
|
|
566
500
|
timerState: t,
|
|
567
501
|
animationState: e,
|
|
568
502
|
hasError: o,
|
|
@@ -701,7 +635,7 @@ const po = lt(oe, {
|
|
|
701
635
|
]
|
|
702
636
|
}
|
|
703
637
|
);
|
|
704
|
-
},
|
|
638
|
+
}, bo = () => {
|
|
705
639
|
const [t, e] = L({
|
|
706
640
|
showPauseAnimation: !1,
|
|
707
641
|
showErrorAnimation: !1,
|
|
@@ -808,7 +742,7 @@ const po = lt(oe, {
|
|
|
808
742
|
setInitialAnimationState: h,
|
|
809
743
|
cleanup: v
|
|
810
744
|
};
|
|
811
|
-
},
|
|
745
|
+
}, xo = ({
|
|
812
746
|
autoStart: t,
|
|
813
747
|
onCycleEnd: e,
|
|
814
748
|
onMeasuringComplete: o,
|
|
@@ -888,7 +822,7 @@ const po = lt(oe, {
|
|
|
888
822
|
if (u.current && l.isRunning) {
|
|
889
823
|
const M = Date.now() - u.current;
|
|
890
824
|
p.current += M;
|
|
891
|
-
const I = p.current / 1e3, j =
|
|
825
|
+
const I = p.current / 1e3, j = mo(
|
|
892
826
|
l.currentState,
|
|
893
827
|
I,
|
|
894
828
|
l.maxTime
|
|
@@ -991,7 +925,7 @@ const po = lt(oe, {
|
|
|
991
925
|
isPaused: T
|
|
992
926
|
}
|
|
993
927
|
};
|
|
994
|
-
},
|
|
928
|
+
}, mi = $(
|
|
995
929
|
J(
|
|
996
930
|
({
|
|
997
931
|
onCycleComplete: t,
|
|
@@ -1015,7 +949,7 @@ const po = lt(oe, {
|
|
|
1015
949
|
triggerFadeTransition: h,
|
|
1016
950
|
setInitialAnimationState: v,
|
|
1017
951
|
cleanup: x
|
|
1018
|
-
} =
|
|
952
|
+
} = bo(), { timerState: T, controls: C } = xo({
|
|
1019
953
|
autoStart: r,
|
|
1020
954
|
onCycleEnd: e,
|
|
1021
955
|
onMeasuringComplete: o,
|
|
@@ -1044,7 +978,7 @@ const po = lt(oe, {
|
|
|
1044
978
|
M = !1, clearTimeout(I);
|
|
1045
979
|
};
|
|
1046
980
|
}, [t, C]), F(() => x, [x]), i === "small" ? /* @__PURE__ */ a(
|
|
1047
|
-
|
|
981
|
+
fo,
|
|
1048
982
|
{
|
|
1049
983
|
timerState: T,
|
|
1050
984
|
animationState: d,
|
|
@@ -1053,7 +987,7 @@ const po = lt(oe, {
|
|
|
1053
987
|
className: c
|
|
1054
988
|
}
|
|
1055
989
|
) : /* @__PURE__ */ a(
|
|
1056
|
-
|
|
990
|
+
ho,
|
|
1057
991
|
{
|
|
1058
992
|
timerState: T,
|
|
1059
993
|
animationState: d,
|
|
@@ -1063,7 +997,7 @@ const po = lt(oe, {
|
|
|
1063
997
|
);
|
|
1064
998
|
}
|
|
1065
999
|
)
|
|
1066
|
-
),
|
|
1000
|
+
), yo = $(
|
|
1067
1001
|
J(
|
|
1068
1002
|
({
|
|
1069
1003
|
data: t,
|
|
@@ -1081,7 +1015,7 @@ const po = lt(oe, {
|
|
|
1081
1015
|
sx: p
|
|
1082
1016
|
}) => {
|
|
1083
1017
|
var j;
|
|
1084
|
-
const g = B(), f =
|
|
1018
|
+
const g = B(), f = de(), y = A(null), [b, h] = L(null), v = rt(() => t.map(o), [t, o]);
|
|
1085
1019
|
F(() => {
|
|
1086
1020
|
f.current && v.length > 0 && f.current.autosizeColumns({
|
|
1087
1021
|
includeOutliers: !0,
|
|
@@ -1120,7 +1054,7 @@ const po = lt(oe, {
|
|
|
1120
1054
|
E && (i === void 0 && h(E), r && r(E, k));
|
|
1121
1055
|
}, C = rt(() => !x || !n ? null : n(x), [x, n]);
|
|
1122
1056
|
function M() {
|
|
1123
|
-
return /* @__PURE__ */ a(
|
|
1057
|
+
return /* @__PURE__ */ a(ue, { children: /* @__PURE__ */ S(
|
|
1124
1058
|
w,
|
|
1125
1059
|
{
|
|
1126
1060
|
sx: {
|
|
@@ -1157,9 +1091,9 @@ const po = lt(oe, {
|
|
|
1157
1091
|
},
|
|
1158
1092
|
children: [
|
|
1159
1093
|
/* @__PURE__ */ a(
|
|
1160
|
-
|
|
1094
|
+
pe,
|
|
1161
1095
|
{
|
|
1162
|
-
render: /* @__PURE__ */ a(
|
|
1096
|
+
render: /* @__PURE__ */ a(ct, { "aria-label": "Show filters", children: /* @__PURE__ */ a(ce, { fontSize: "small" }) })
|
|
1163
1097
|
}
|
|
1164
1098
|
),
|
|
1165
1099
|
/* @__PURE__ */ a(
|
|
@@ -1174,7 +1108,7 @@ const po = lt(oe, {
|
|
|
1174
1108
|
}
|
|
1175
1109
|
),
|
|
1176
1110
|
/* @__PURE__ */ a(
|
|
1177
|
-
|
|
1111
|
+
me,
|
|
1178
1112
|
{
|
|
1179
1113
|
render: (k, E) => /* @__PURE__ */ S(
|
|
1180
1114
|
w,
|
|
@@ -1186,9 +1120,9 @@ const po = lt(oe, {
|
|
|
1186
1120
|
},
|
|
1187
1121
|
children: [
|
|
1188
1122
|
!E.expanded && /* @__PURE__ */ a(
|
|
1189
|
-
|
|
1123
|
+
he,
|
|
1190
1124
|
{
|
|
1191
|
-
render: /* @__PURE__ */ a(
|
|
1125
|
+
render: /* @__PURE__ */ a(ct, { "aria-label": "Search", children: /* @__PURE__ */ a(kt, { fontSize: "small" }) })
|
|
1192
1126
|
}
|
|
1193
1127
|
),
|
|
1194
1128
|
/* @__PURE__ */ S(
|
|
@@ -1302,12 +1236,12 @@ const po = lt(oe, {
|
|
|
1302
1236
|
}
|
|
1303
1237
|
}
|
|
1304
1238
|
),
|
|
1305
|
-
/* @__PURE__ */ a(
|
|
1239
|
+
/* @__PURE__ */ a(fe, { placeholder: l })
|
|
1306
1240
|
]
|
|
1307
1241
|
}
|
|
1308
1242
|
),
|
|
1309
1243
|
E.expanded && E.value !== "" && /* @__PURE__ */ a(
|
|
1310
|
-
|
|
1244
|
+
be,
|
|
1311
1245
|
{
|
|
1312
1246
|
render: /* @__PURE__ */ a(
|
|
1313
1247
|
w,
|
|
@@ -1332,7 +1266,7 @@ const po = lt(oe, {
|
|
|
1332
1266
|
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1333
1267
|
}
|
|
1334
1268
|
},
|
|
1335
|
-
children: /* @__PURE__ */ a(
|
|
1269
|
+
children: /* @__PURE__ */ a(ct, { "aria-label": "Clear", children: /* @__PURE__ */ a(le, { fontSize: "small" }) })
|
|
1336
1270
|
}
|
|
1337
1271
|
)
|
|
1338
1272
|
}
|
|
@@ -1393,7 +1327,7 @@ const po = lt(oe, {
|
|
|
1393
1327
|
...p
|
|
1394
1328
|
},
|
|
1395
1329
|
children: /* @__PURE__ */ a(
|
|
1396
|
-
|
|
1330
|
+
ge,
|
|
1397
1331
|
{
|
|
1398
1332
|
apiRef: f,
|
|
1399
1333
|
rows: v,
|
|
@@ -1580,7 +1514,7 @@ const po = lt(oe, {
|
|
|
1580
1514
|
}
|
|
1581
1515
|
)
|
|
1582
1516
|
);
|
|
1583
|
-
|
|
1517
|
+
yo.displayName = "WandelbotsDataGrid";
|
|
1584
1518
|
const Ot = $(
|
|
1585
1519
|
J(
|
|
1586
1520
|
({
|
|
@@ -1672,7 +1606,7 @@ const Ot = $(
|
|
|
1672
1606
|
borderBottom: `2px solid ${g ?? "#fff"}`,
|
|
1673
1607
|
borderTop: `2px solid ${g ?? "#fff"}`
|
|
1674
1608
|
},
|
|
1675
|
-
children: /* @__PURE__ */ a(
|
|
1609
|
+
children: /* @__PURE__ */ a(_e, {})
|
|
1676
1610
|
}
|
|
1677
1611
|
),
|
|
1678
1612
|
/* @__PURE__ */ S(
|
|
@@ -1744,13 +1678,13 @@ const Ot = $(
|
|
|
1744
1678
|
borderBottom: `2px solid ${g ?? "#fff"}`,
|
|
1745
1679
|
borderTop: `2px solid ${g ?? "#fff"}`
|
|
1746
1680
|
},
|
|
1747
|
-
children: /* @__PURE__ */ a(
|
|
1681
|
+
children: /* @__PURE__ */ a(Oe, {})
|
|
1748
1682
|
}
|
|
1749
1683
|
)
|
|
1750
1684
|
] });
|
|
1751
1685
|
}
|
|
1752
1686
|
)
|
|
1753
|
-
),
|
|
1687
|
+
), So = $(
|
|
1754
1688
|
J(
|
|
1755
1689
|
({
|
|
1756
1690
|
startJogging: t,
|
|
@@ -1774,7 +1708,7 @@ const Ot = $(
|
|
|
1774
1708
|
stopJogging() {
|
|
1775
1709
|
this.activeJoggingDir = null, e();
|
|
1776
1710
|
}
|
|
1777
|
-
})), f =
|
|
1711
|
+
})), f = Ye(() => {
|
|
1778
1712
|
const O = i ? y(n()) : n();
|
|
1779
1713
|
(O === void 0 || d === void 0 || Math.abs(d - O) > 1e-9) && m(O);
|
|
1780
1714
|
}, 50);
|
|
@@ -1854,7 +1788,7 @@ const Ot = $(
|
|
|
1854
1788
|
...g.activeJoggingDir === "-" ? p : {}
|
|
1855
1789
|
},
|
|
1856
1790
|
children: /* @__PURE__ */ a(
|
|
1857
|
-
|
|
1791
|
+
He,
|
|
1858
1792
|
{
|
|
1859
1793
|
sx: {
|
|
1860
1794
|
pointerEvents: "none",
|
|
@@ -1954,7 +1888,7 @@ const Ot = $(
|
|
|
1954
1888
|
...g.activeJoggingDir === "+" ? p : {}
|
|
1955
1889
|
},
|
|
1956
1890
|
children: /* @__PURE__ */ a(
|
|
1957
|
-
|
|
1891
|
+
qe,
|
|
1958
1892
|
{
|
|
1959
1893
|
sx: {
|
|
1960
1894
|
pointerEvents: "none",
|
|
@@ -1981,7 +1915,7 @@ function Ht(t, e, o) {
|
|
|
1981
1915
|
return !1;
|
|
1982
1916
|
return !0;
|
|
1983
1917
|
}
|
|
1984
|
-
function
|
|
1918
|
+
function vo(t, e, o) {
|
|
1985
1919
|
if (t === void 0 && e || t && e === void 0 || (t == null ? void 0 : t.orientation) === void 0 || (e == null ? void 0 : e.orientation) === void 0 || (t == null ? void 0 : t.position) === void 0 || (e == null ? void 0 : e.position) === void 0)
|
|
1986
1920
|
return !1;
|
|
1987
1921
|
if (t === void 0 || e === void 0)
|
|
@@ -1990,13 +1924,13 @@ function wo(t, e, o) {
|
|
|
1990
1924
|
return r += Math.abs(t.orientation[0] - e.orientation[0]), r += Math.abs(t.orientation[1] - e.orientation[1]), r += Math.abs(t.orientation[2] - e.orientation[2]), r += Math.abs(t.position[0] - e.position[0]), r += Math.abs(t.position[1] - e.position[1]), r += Math.abs(t.position[2] - e.position[2]), r <= o;
|
|
1991
1925
|
}
|
|
1992
1926
|
function qt(t, e, o) {
|
|
1993
|
-
return t.coordinate_system === e.coordinate_system && t.tcp === e.tcp &&
|
|
1927
|
+
return t.coordinate_system === e.coordinate_system && t.tcp === e.tcp && vo(
|
|
1994
1928
|
t.tcp_pose,
|
|
1995
1929
|
e.tcp_pose,
|
|
1996
1930
|
o
|
|
1997
1931
|
);
|
|
1998
1932
|
}
|
|
1999
|
-
function
|
|
1933
|
+
function Co(t, e) {
|
|
2000
1934
|
const o = new _t(
|
|
2001
1935
|
e[0],
|
|
2002
1936
|
e[1],
|
|
@@ -2011,11 +1945,11 @@ function To(t, e) {
|
|
|
2011
1945
|
let l = c - i;
|
|
2012
1946
|
return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c = i + l, [...s.multiplyScalar(c)];
|
|
2013
1947
|
}
|
|
2014
|
-
function
|
|
1948
|
+
function wo(t) {
|
|
2015
1949
|
return "cellId" in t.api;
|
|
2016
1950
|
}
|
|
2017
1951
|
function st(t) {
|
|
2018
|
-
if (!
|
|
1952
|
+
if (!wo(t))
|
|
2019
1953
|
return t;
|
|
2020
1954
|
const e = t, o = e.api.cellId, r = new Proxy(e.api, {
|
|
2021
1955
|
get(i, n) {
|
|
@@ -2058,7 +1992,7 @@ class ft {
|
|
|
2058
1992
|
var g, f, y;
|
|
2059
1993
|
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = d.tcp_pose : (g = d.tcp_pose) != null && g.orientation && ((f = d.tcp_pose) != null && f.position) && ((y = this.rapidlyChangingMotionState.tcp_pose) != null && y.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
|
|
2060
1994
|
position: d.tcp_pose.position,
|
|
2061
|
-
orientation:
|
|
1995
|
+
orientation: Co(
|
|
2062
1996
|
d.tcp_pose.orientation,
|
|
2063
1997
|
this.rapidlyChangingMotionState.tcp_pose.orientation
|
|
2064
1998
|
)
|
|
@@ -2355,15 +2289,15 @@ class bt {
|
|
|
2355
2289
|
throw new Error(
|
|
2356
2290
|
"Current pose has no orientation, cannot perform rotation"
|
|
2357
2291
|
);
|
|
2358
|
-
const b = new
|
|
2292
|
+
const b = new dt(
|
|
2359
2293
|
e.orientation[0],
|
|
2360
2294
|
e.orientation[1],
|
|
2361
2295
|
e.orientation[2]
|
|
2362
|
-
), h = b.length(), v = b.clone().normalize(), x = c.distanceRads * (n === "-" ? -1 : 1), T = new
|
|
2296
|
+
), h = b.length(), v = b.clone().normalize(), x = c.distanceRads * (n === "-" ? -1 : 1), T = new dt(0, 0, 0);
|
|
2363
2297
|
T[i] = 1;
|
|
2364
2298
|
const C = Math.cos(0.5 * x) * Math.cos(0.5 * h), M = Math.sin(0.5 * x) * Math.sin(0.5 * h), I = Math.sin(0.5 * x) * Math.cos(0.5 * h), j = Math.cos(0.5 * x) * Math.sin(0.5 * h), k = T.dot(
|
|
2365
2299
|
v
|
|
2366
|
-
), E = T.clone().cross(v), V = 2 * Math.acos(C - M * k), Q = V / Math.sin(0.5 * V), ot = new
|
|
2300
|
+
), E = T.clone().cross(v), V = 2 * Math.acos(C - M * k), Q = V / Math.sin(0.5 * V), ot = new dt().addScaledVector(E, M).addScaledVector(T, I).addScaledVector(v, j).multiplyScalar(Q);
|
|
2367
2301
|
s.push({
|
|
2368
2302
|
limits_override: {
|
|
2369
2303
|
tcp_orientation_velocity_limit: r
|
|
@@ -2476,7 +2410,7 @@ class bt {
|
|
|
2476
2410
|
});
|
|
2477
2411
|
}
|
|
2478
2412
|
}
|
|
2479
|
-
const
|
|
2413
|
+
const To = (t) => {
|
|
2480
2414
|
const e = t.softTimeout || 3e3, [o, r] = L(!1), i = B();
|
|
2481
2415
|
return F(() => {
|
|
2482
2416
|
const n = setTimeout(() => {
|
|
@@ -2492,7 +2426,7 @@ const Io = (t) => {
|
|
|
2492
2426
|
justifyContent: "center",
|
|
2493
2427
|
sx: { color: i.palette.text.primary },
|
|
2494
2428
|
children: t.error ? /* @__PURE__ */ a(
|
|
2495
|
-
|
|
2429
|
+
Mo,
|
|
2496
2430
|
{
|
|
2497
2431
|
loadingMessage: t.message,
|
|
2498
2432
|
error: t.error
|
|
@@ -2514,8 +2448,8 @@ const Io = (t) => {
|
|
|
2514
2448
|
] })
|
|
2515
2449
|
}
|
|
2516
2450
|
);
|
|
2517
|
-
},
|
|
2518
|
-
const e =
|
|
2451
|
+
}, Mo = (t) => {
|
|
2452
|
+
const e = je(t.error), o = t.error instanceof Error ? t.error.stack : null, r = B();
|
|
2519
2453
|
return /* @__PURE__ */ S(
|
|
2520
2454
|
_,
|
|
2521
2455
|
{
|
|
@@ -2532,13 +2466,13 @@ const Io = (t) => {
|
|
|
2532
2466
|
}
|
|
2533
2467
|
},
|
|
2534
2468
|
children: [
|
|
2535
|
-
(t.loadingMessage ? `Error while ${
|
|
2469
|
+
(t.loadingMessage ? `Error while ${Ce(Re(t.loadingMessage))} - ` : "") + e,
|
|
2536
2470
|
/* @__PURE__ */ a("br", {}),
|
|
2537
2471
|
o && /* @__PURE__ */ a("pre", { children: o })
|
|
2538
2472
|
]
|
|
2539
2473
|
}
|
|
2540
2474
|
);
|
|
2541
|
-
},
|
|
2475
|
+
}, Io = J(({ store: t }) => {
|
|
2542
2476
|
const { t: e } = z();
|
|
2543
2477
|
return /* @__PURE__ */ a(
|
|
2544
2478
|
Lt,
|
|
@@ -2555,8 +2489,8 @@ const Io = (t) => {
|
|
|
2555
2489
|
alignItems: "flex-start"
|
|
2556
2490
|
},
|
|
2557
2491
|
children: /* @__PURE__ */ S(_, { sx: { m: 2, width: "100%" }, children: [
|
|
2558
|
-
/* @__PURE__ */ S(
|
|
2559
|
-
/* @__PURE__ */ a(
|
|
2492
|
+
/* @__PURE__ */ S(Ee, { severity: "error", sx: { mb: 2 }, children: [
|
|
2493
|
+
/* @__PURE__ */ a(Pe, { children: e("Jogging.Blocked.ti") }),
|
|
2560
2494
|
e("Jogging.Blocked.lb")
|
|
2561
2495
|
] }),
|
|
2562
2496
|
/* @__PURE__ */ a(
|
|
@@ -2578,7 +2512,7 @@ const Io = (t) => {
|
|
|
2578
2512
|
), i = A(o);
|
|
2579
2513
|
mt(() => {
|
|
2580
2514
|
const c = t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
|
|
2581
|
-
|
|
2515
|
+
Le(i.current, c) || (i.current = c, r(c));
|
|
2582
2516
|
});
|
|
2583
2517
|
const n = [];
|
|
2584
2518
|
for (const [c, s] of o.entries())
|
|
@@ -2611,7 +2545,7 @@ const Io = (t) => {
|
|
|
2611
2545
|
}
|
|
2612
2546
|
);
|
|
2613
2547
|
}
|
|
2614
|
-
),
|
|
2548
|
+
), ko = pt(ze)(({ theme: t }) => ({
|
|
2615
2549
|
"&.MuiFormControl-root": {
|
|
2616
2550
|
".MuiSelect-select": {
|
|
2617
2551
|
paddingTop: "20px",
|
|
@@ -2632,20 +2566,20 @@ function it({
|
|
|
2632
2566
|
labelValue: t,
|
|
2633
2567
|
...e
|
|
2634
2568
|
}) {
|
|
2635
|
-
return /* @__PURE__ */ S(
|
|
2636
|
-
/* @__PURE__ */ a(
|
|
2637
|
-
/* @__PURE__ */ a(
|
|
2569
|
+
return /* @__PURE__ */ S(ko, { fullWidth: !0, variant: "filled", children: [
|
|
2570
|
+
/* @__PURE__ */ a(Ve, { id: e.labelId, children: t }),
|
|
2571
|
+
/* @__PURE__ */ a(Ne, { ...e })
|
|
2638
2572
|
] });
|
|
2639
2573
|
}
|
|
2640
|
-
const
|
|
2574
|
+
const gt = [
|
|
2641
2575
|
{ id: "0.1", mm: 0.1, degrees: 0.05 },
|
|
2642
2576
|
{ id: "1", mm: 1, degrees: 0.5 },
|
|
2643
2577
|
{ id: "5", mm: 5, degrees: 2.5 },
|
|
2644
2578
|
{ id: "10", mm: 10, degrees: 5 }
|
|
2645
|
-
],
|
|
2579
|
+
], Ro = [
|
|
2646
2580
|
{ id: "continuous" },
|
|
2647
|
-
...
|
|
2648
|
-
],
|
|
2581
|
+
...gt
|
|
2582
|
+
], jo = ["coordsys", "tool"];
|
|
2649
2583
|
class xt {
|
|
2650
2584
|
constructor(e, o, r, i, n) {
|
|
2651
2585
|
var c, s, l;
|
|
@@ -2706,7 +2640,7 @@ class xt {
|
|
|
2706
2640
|
this.jogger.dispose();
|
|
2707
2641
|
}
|
|
2708
2642
|
get coordSystemCountByName() {
|
|
2709
|
-
return
|
|
2643
|
+
return we(this.coordSystems, (e) => e.name);
|
|
2710
2644
|
}
|
|
2711
2645
|
async deactivate() {
|
|
2712
2646
|
this.jogger.mode === "jogging" && await this.jogger.setJoggingMode("off");
|
|
@@ -2753,10 +2687,10 @@ class xt {
|
|
|
2753
2687
|
}), e;
|
|
2754
2688
|
}
|
|
2755
2689
|
get incrementOptions() {
|
|
2756
|
-
return
|
|
2690
|
+
return Ro;
|
|
2757
2691
|
}
|
|
2758
2692
|
get discreteIncrementOptions() {
|
|
2759
|
-
return
|
|
2693
|
+
return gt;
|
|
2760
2694
|
}
|
|
2761
2695
|
get incrementOptionsById() {
|
|
2762
2696
|
return nt(this.incrementOptions, (e) => e.id);
|
|
@@ -2785,7 +2719,7 @@ class xt {
|
|
|
2785
2719
|
return nt(this.tcps, (e) => e.id);
|
|
2786
2720
|
}
|
|
2787
2721
|
get activeDiscreteIncrement() {
|
|
2788
|
-
return this.selectedOrientation === "tool" ? void 0 :
|
|
2722
|
+
return this.selectedOrientation === "tool" ? void 0 : gt.find((e) => e.id === this.selectedIncrementId);
|
|
2789
2723
|
}
|
|
2790
2724
|
/** The selected rotation velocity converted to radians per second */
|
|
2791
2725
|
get rotationVelocityRadsPerSec() {
|
|
@@ -2890,7 +2824,7 @@ class xt {
|
|
|
2890
2824
|
}
|
|
2891
2825
|
/** Lock the UI until the given async callback resolves */
|
|
2892
2826
|
async withMotionLock(e) {
|
|
2893
|
-
const o =
|
|
2827
|
+
const o = We();
|
|
2894
2828
|
this.lock(o);
|
|
2895
2829
|
try {
|
|
2896
2830
|
return await e();
|
|
@@ -2899,10 +2833,10 @@ class xt {
|
|
|
2899
2833
|
}
|
|
2900
2834
|
}
|
|
2901
2835
|
}
|
|
2902
|
-
const
|
|
2836
|
+
const Eo = J(
|
|
2903
2837
|
({ store: t, useDegree: e }) => {
|
|
2904
2838
|
var c;
|
|
2905
|
-
const { t: o } = z(), r =
|
|
2839
|
+
const { t: o } = z(), r = re(), i = [];
|
|
2906
2840
|
function n(s) {
|
|
2907
2841
|
switch (s) {
|
|
2908
2842
|
case "coordsys":
|
|
@@ -2944,7 +2878,7 @@ const _o = J(
|
|
|
2944
2878
|
});
|
|
2945
2879
|
},
|
|
2946
2880
|
disabled: t.tcpChangeInProgress,
|
|
2947
|
-
endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ a(
|
|
2881
|
+
endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ a($e, { position: "end", children: /* @__PURE__ */ a(Gt, { size: 16 }) }) : void 0,
|
|
2948
2882
|
children: t.tcps.map((s) => /* @__PURE__ */ a(Y, { value: s.id, children: s.id }, s.id))
|
|
2949
2883
|
},
|
|
2950
2884
|
"tcp"
|
|
@@ -2957,7 +2891,7 @@ const _o = J(
|
|
|
2957
2891
|
labelId: `orientation-select-${r}`,
|
|
2958
2892
|
value: t.selectedOrientation,
|
|
2959
2893
|
onChange: (s) => t.setSelectedOrientation(s.target.value),
|
|
2960
|
-
children:
|
|
2894
|
+
children: jo.map((s) => /* @__PURE__ */ a(Y, { value: s, children: n(s) }, s))
|
|
2961
2895
|
},
|
|
2962
2896
|
"orientation"
|
|
2963
2897
|
)
|
|
@@ -3006,7 +2940,7 @@ const _o = J(
|
|
|
3006
2940
|
}
|
|
3007
2941
|
);
|
|
3008
2942
|
}
|
|
3009
|
-
),
|
|
2943
|
+
), Po = pt(Ge)(({ theme: t }) => {
|
|
3010
2944
|
var e;
|
|
3011
2945
|
return {
|
|
3012
2946
|
"&.MuiToggleButtonGroup-root": {
|
|
@@ -3028,11 +2962,11 @@ const _o = J(
|
|
|
3028
2962
|
}
|
|
3029
2963
|
}
|
|
3030
2964
|
};
|
|
3031
|
-
}),
|
|
2965
|
+
}), _o = J((t) => {
|
|
3032
2966
|
var n, c, s;
|
|
3033
2967
|
const e = B(), { store: o } = t, { t: r } = z();
|
|
3034
2968
|
function i(l, d) {
|
|
3035
|
-
d === t.velocity || !
|
|
2969
|
+
d === t.velocity || !Ue(d) || t.onVelocityChange(d, t.useDegree);
|
|
3036
2970
|
}
|
|
3037
2971
|
return /* @__PURE__ */ S(
|
|
3038
2972
|
_,
|
|
@@ -3118,7 +3052,7 @@ const Qt = J(
|
|
|
3118
3052
|
return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: i })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: i })}`;
|
|
3119
3053
|
}
|
|
3120
3054
|
return /* @__PURE__ */ a(
|
|
3121
|
-
|
|
3055
|
+
_o,
|
|
3122
3056
|
{
|
|
3123
3057
|
store: t,
|
|
3124
3058
|
velocity: t.velocityInDisplayUnits(e),
|
|
@@ -3183,7 +3117,7 @@ const Qt = J(
|
|
|
3183
3117
|
]
|
|
3184
3118
|
}
|
|
3185
3119
|
);
|
|
3186
|
-
}),
|
|
3120
|
+
}), Oo = J(
|
|
3187
3121
|
({
|
|
3188
3122
|
store: t,
|
|
3189
3123
|
children: e
|
|
@@ -3211,7 +3145,7 @@ const Qt = J(
|
|
|
3211
3145
|
distanceMm: g.mm
|
|
3212
3146
|
} : {
|
|
3213
3147
|
type: "rotate",
|
|
3214
|
-
distanceRads:
|
|
3148
|
+
distanceRads: ke(g.degrees)
|
|
3215
3149
|
}
|
|
3216
3150
|
});
|
|
3217
3151
|
} finally {
|
|
@@ -3246,17 +3180,17 @@ const Qt = J(
|
|
|
3246
3180
|
const d = [
|
|
3247
3181
|
{
|
|
3248
3182
|
id: "x",
|
|
3249
|
-
icon: /* @__PURE__ */ a(
|
|
3183
|
+
icon: /* @__PURE__ */ a(De, {}),
|
|
3250
3184
|
colors: l("X", t.selectedCartesianMotionType, r)
|
|
3251
3185
|
},
|
|
3252
3186
|
{
|
|
3253
3187
|
id: "y",
|
|
3254
|
-
icon: /* @__PURE__ */ a(
|
|
3188
|
+
icon: /* @__PURE__ */ a(Ae, {}),
|
|
3255
3189
|
colors: l("Y", t.selectedCartesianMotionType, r)
|
|
3256
3190
|
},
|
|
3257
3191
|
{
|
|
3258
3192
|
id: "z",
|
|
3259
|
-
icon: /* @__PURE__ */ a(
|
|
3193
|
+
icon: /* @__PURE__ */ a(Je, {}),
|
|
3260
3194
|
colors: l("Z", t.selectedCartesianMotionType, r)
|
|
3261
3195
|
}
|
|
3262
3196
|
];
|
|
@@ -3279,7 +3213,7 @@ const Qt = J(
|
|
|
3279
3213
|
children: [
|
|
3280
3214
|
/* @__PURE__ */ S(_, { gap: 2, children: [
|
|
3281
3215
|
/* @__PURE__ */ a(
|
|
3282
|
-
|
|
3216
|
+
Eo,
|
|
3283
3217
|
{
|
|
3284
3218
|
store: t,
|
|
3285
3219
|
useDegree: t.selectedCartesianMotionType === "rotate"
|
|
@@ -3311,7 +3245,7 @@ const Qt = J(
|
|
|
3311
3245
|
sx: { flexGrow: 1 },
|
|
3312
3246
|
children: [
|
|
3313
3247
|
/* @__PURE__ */ S(
|
|
3314
|
-
|
|
3248
|
+
Po,
|
|
3315
3249
|
{
|
|
3316
3250
|
value: t.selectedCartesianMotionType,
|
|
3317
3251
|
onChange: i,
|
|
@@ -3374,7 +3308,7 @@ const Qt = J(
|
|
|
3374
3308
|
disabled: t.isLocked,
|
|
3375
3309
|
activeJoggingDirection: ((g = t.incrementJogInProgress) == null ? void 0 : g.axis) === p.id ? t.incrementJogInProgress.direction : void 0,
|
|
3376
3310
|
label: /* @__PURE__ */ S(et, { children: [
|
|
3377
|
-
/* @__PURE__ */ a(
|
|
3311
|
+
/* @__PURE__ */ a(Fe, {}),
|
|
3378
3312
|
/* @__PURE__ */ a(
|
|
3379
3313
|
R,
|
|
3380
3314
|
{
|
|
@@ -3416,7 +3350,7 @@ const Qt = J(
|
|
|
3416
3350
|
}
|
|
3417
3351
|
);
|
|
3418
3352
|
}
|
|
3419
|
-
),
|
|
3353
|
+
), Do = J(
|
|
3420
3354
|
({ store: t, children: e }) => {
|
|
3421
3355
|
const o = B();
|
|
3422
3356
|
async function r(n) {
|
|
@@ -3482,7 +3416,7 @@ const Qt = J(
|
|
|
3482
3416
|
}
|
|
3483
3417
|
),
|
|
3484
3418
|
/* @__PURE__ */ a(
|
|
3485
|
-
|
|
3419
|
+
So,
|
|
3486
3420
|
{
|
|
3487
3421
|
disabled: t.isLocked,
|
|
3488
3422
|
lowerLimit: c == null ? void 0 : c.lower_limit,
|
|
@@ -3517,9 +3451,9 @@ const Qt = J(
|
|
|
3517
3451
|
}
|
|
3518
3452
|
);
|
|
3519
3453
|
}
|
|
3520
|
-
),
|
|
3454
|
+
), hi = $(
|
|
3521
3455
|
J((t) => {
|
|
3522
|
-
const e =
|
|
3456
|
+
const e = Te(t.nova) ? new Se({ instanceUrl: t.nova }) : t.nova, o = $t(() => ({
|
|
3523
3457
|
joggingStore: null,
|
|
3524
3458
|
loadingError: null
|
|
3525
3459
|
}));
|
|
@@ -3563,11 +3497,11 @@ const Qt = J(
|
|
|
3563
3497
|
position: "relative",
|
|
3564
3498
|
...t.sx
|
|
3565
3499
|
},
|
|
3566
|
-
children: o.joggingStore ? /* @__PURE__ */ a(
|
|
3500
|
+
children: o.joggingStore ? /* @__PURE__ */ a(Ao, { store: o.joggingStore, children: t.children }) : /* @__PURE__ */ a(To, { message: "Loading jogging", error: o.loadingError })
|
|
3567
3501
|
}
|
|
3568
3502
|
);
|
|
3569
3503
|
})
|
|
3570
|
-
),
|
|
3504
|
+
), Ao = J(
|
|
3571
3505
|
({
|
|
3572
3506
|
store: t,
|
|
3573
3507
|
children: e
|
|
@@ -3575,9 +3509,9 @@ const Qt = J(
|
|
|
3575
3509
|
const { t: o } = z();
|
|
3576
3510
|
function r() {
|
|
3577
3511
|
if (t.currentTab.id === "cartesian")
|
|
3578
|
-
return /* @__PURE__ */ a(
|
|
3512
|
+
return /* @__PURE__ */ a(Oo, { store: t, children: e });
|
|
3579
3513
|
if (t.currentTab.id === "joint")
|
|
3580
|
-
return /* @__PURE__ */ a(
|
|
3514
|
+
return /* @__PURE__ */ a(Do, { store: t, children: e });
|
|
3581
3515
|
}
|
|
3582
3516
|
return /* @__PURE__ */ S(_, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
|
|
3583
3517
|
/* @__PURE__ */ a(
|
|
@@ -3589,7 +3523,7 @@ const Qt = J(
|
|
|
3589
3523
|
onChange: t.onTabChange,
|
|
3590
3524
|
variant: "fullWidth",
|
|
3591
3525
|
children: t.tabs.map((i) => {
|
|
3592
|
-
const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(
|
|
3526
|
+
const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(xe, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(ye, { fontSize: "small", sx: { mr: 1 } });
|
|
3593
3527
|
return /* @__PURE__ */ a(
|
|
3594
3528
|
Vt,
|
|
3595
3529
|
{
|
|
@@ -3616,7 +3550,7 @@ const Qt = J(
|
|
|
3616
3550
|
children: r()
|
|
3617
3551
|
}
|
|
3618
3552
|
),
|
|
3619
|
-
t.blocked && /* @__PURE__ */ a(
|
|
3553
|
+
t.blocked && /* @__PURE__ */ a(Io, { store: t })
|
|
3620
3554
|
] });
|
|
3621
3555
|
}
|
|
3622
3556
|
), Kt = (t) => {
|
|
@@ -3644,7 +3578,7 @@ const Qt = J(
|
|
|
3644
3578
|
return () => {
|
|
3645
3579
|
l && clearTimeout(l);
|
|
3646
3580
|
};
|
|
3647
|
-
}, [i]), /* @__PURE__ */ a(
|
|
3581
|
+
}, [i]), /* @__PURE__ */ a(Ze, { open: i, title: "Copied!", children: /* @__PURE__ */ a(
|
|
3648
3582
|
_,
|
|
3649
3583
|
{
|
|
3650
3584
|
justifyContent: "center",
|
|
@@ -3678,9 +3612,9 @@ const Qt = J(
|
|
|
3678
3612
|
)
|
|
3679
3613
|
}
|
|
3680
3614
|
) });
|
|
3681
|
-
},
|
|
3615
|
+
}, fi = $(
|
|
3682
3616
|
J(({ tcpPose: t, showCopyButton: e = !1 }) => {
|
|
3683
|
-
const [o, r] = L(null), i =
|
|
3617
|
+
const [o, r] = L(null), i = ve(t);
|
|
3684
3618
|
return /* @__PURE__ */ S(
|
|
3685
3619
|
_,
|
|
3686
3620
|
{
|
|
@@ -3712,7 +3646,7 @@ const Qt = J(
|
|
|
3712
3646
|
}
|
|
3713
3647
|
);
|
|
3714
3648
|
})
|
|
3715
|
-
),
|
|
3649
|
+
), bi = $(
|
|
3716
3650
|
J(({ joints: t, showCopyButton: e = !1 }) => {
|
|
3717
3651
|
const [o, r] = L(null), i = `[${t.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
|
|
3718
3652
|
return /* @__PURE__ */ S(
|
|
@@ -3747,7 +3681,7 @@ const Qt = J(
|
|
|
3747
3681
|
);
|
|
3748
3682
|
})
|
|
3749
3683
|
);
|
|
3750
|
-
class
|
|
3684
|
+
class Jo {
|
|
3751
3685
|
constructor() {
|
|
3752
3686
|
this.messages = [], this.addMessage = (e, o = "info") => {
|
|
3753
3687
|
const r = {
|
|
@@ -3767,19 +3701,19 @@ class Bo {
|
|
|
3767
3701
|
this.addMessage(e, "error");
|
|
3768
3702
|
}, this.addDebug = (e) => {
|
|
3769
3703
|
this.addMessage(e, "debug");
|
|
3770
|
-
},
|
|
3771
|
-
messages:
|
|
3704
|
+
}, Me(this, {
|
|
3705
|
+
messages: Ie,
|
|
3772
3706
|
addMessage: jt,
|
|
3773
3707
|
clearMessages: jt
|
|
3774
3708
|
});
|
|
3775
3709
|
}
|
|
3776
3710
|
}
|
|
3777
|
-
const
|
|
3711
|
+
const lt = (t, e, o) => ({
|
|
3778
3712
|
id: o || `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
|
|
3779
3713
|
timestamp: /* @__PURE__ */ new Date(),
|
|
3780
3714
|
message: t,
|
|
3781
3715
|
level: e
|
|
3782
|
-
}),
|
|
3716
|
+
}), xi = (t, e) => lt(t, "debug", e), yi = (t, e) => lt(t, "info", e), Si = (t, e) => lt(t, "warning", e), vi = (t, e) => lt(t, "error", e), Fo = $(
|
|
3783
3717
|
J((t) => {
|
|
3784
3718
|
var m;
|
|
3785
3719
|
const { messages: e = [], onClear: o, height: r = 400, sx: i } = t, n = B(), c = A(null);
|
|
@@ -3900,7 +3834,7 @@ const ct = (t, e, o) => ({
|
|
|
3900
3834
|
}
|
|
3901
3835
|
},
|
|
3902
3836
|
title: f ? "Copied!" : "Copy message",
|
|
3903
|
-
children: /* @__PURE__ */ a(
|
|
3837
|
+
children: /* @__PURE__ */ a(Qe, { sx: { fontSize: 12 } })
|
|
3904
3838
|
}
|
|
3905
3839
|
),
|
|
3906
3840
|
v && /* @__PURE__ */ a(
|
|
@@ -3916,7 +3850,7 @@ const ct = (t, e, o) => ({
|
|
|
3916
3850
|
}
|
|
3917
3851
|
},
|
|
3918
3852
|
title: p ? "Collapse" : "Expand",
|
|
3919
|
-
children: p ? /* @__PURE__ */ a(
|
|
3853
|
+
children: p ? /* @__PURE__ */ a(Ke, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(to, { sx: { fontSize: 12 } })
|
|
3920
3854
|
}
|
|
3921
3855
|
)
|
|
3922
3856
|
]
|
|
@@ -3928,7 +3862,7 @@ const ct = (t, e, o) => ({
|
|
|
3928
3862
|
);
|
|
3929
3863
|
};
|
|
3930
3864
|
return /* @__PURE__ */ S(
|
|
3931
|
-
|
|
3865
|
+
eo,
|
|
3932
3866
|
{
|
|
3933
3867
|
sx: {
|
|
3934
3868
|
backgroundColor: ((m = n.palette.backgroundPaperElevation) == null ? void 0 : m[2]) || "#171927",
|
|
@@ -3953,7 +3887,7 @@ const ct = (t, e, o) => ({
|
|
|
3953
3887
|
children: [
|
|
3954
3888
|
/* @__PURE__ */ S(w, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3955
3889
|
/* @__PURE__ */ a(
|
|
3956
|
-
|
|
3890
|
+
Xe,
|
|
3957
3891
|
{
|
|
3958
3892
|
sx: {
|
|
3959
3893
|
fontSize: 16,
|
|
@@ -4048,7 +3982,7 @@ const ct = (t, e, o) => ({
|
|
|
4048
3982
|
}
|
|
4049
3983
|
);
|
|
4050
3984
|
})
|
|
4051
|
-
),
|
|
3985
|
+
), Ci = $(
|
|
4052
3986
|
J((t) => {
|
|
4053
3987
|
const { store: e, onStoreReady: o, ...r } = t, i = A(o);
|
|
4054
3988
|
F(() => {
|
|
@@ -4056,13 +3990,13 @@ const ct = (t, e, o) => ({
|
|
|
4056
3990
|
}, [o]);
|
|
4057
3991
|
const n = rt(() => {
|
|
4058
3992
|
var l;
|
|
4059
|
-
const s = e || new
|
|
3993
|
+
const s = e || new Jo();
|
|
4060
3994
|
return (l = i.current) == null || l.call(i, s), s;
|
|
4061
3995
|
}, [e]), c = () => {
|
|
4062
3996
|
n.clearMessages();
|
|
4063
3997
|
};
|
|
4064
3998
|
return /* @__PURE__ */ a(
|
|
4065
|
-
|
|
3999
|
+
Fo,
|
|
4066
4000
|
{
|
|
4067
4001
|
...r,
|
|
4068
4002
|
messages: n.messages,
|
|
@@ -4071,19 +4005,19 @@ const ct = (t, e, o) => ({
|
|
|
4071
4005
|
);
|
|
4072
4006
|
})
|
|
4073
4007
|
);
|
|
4074
|
-
function
|
|
4008
|
+
function Bo() {
|
|
4075
4009
|
const t = window.location.href;
|
|
4076
4010
|
return t.substring(
|
|
4077
4011
|
0,
|
|
4078
4012
|
t.indexOf("/", t.indexOf("//") + 2)
|
|
4079
4013
|
);
|
|
4080
4014
|
}
|
|
4081
|
-
function
|
|
4082
|
-
baseUrl: t =
|
|
4015
|
+
function wi({
|
|
4016
|
+
baseUrl: t = Bo(),
|
|
4083
4017
|
...e
|
|
4084
4018
|
}) {
|
|
4085
4019
|
return /* @__PURE__ */ S(
|
|
4086
|
-
|
|
4020
|
+
oo,
|
|
4087
4021
|
{
|
|
4088
4022
|
"aria-labelledby": "no-motion-group-modal-title",
|
|
4089
4023
|
open: !0,
|
|
@@ -4103,9 +4037,9 @@ function ki({
|
|
|
4103
4037
|
}
|
|
4104
4038
|
},
|
|
4105
4039
|
children: [
|
|
4106
|
-
/* @__PURE__ */ a(
|
|
4040
|
+
/* @__PURE__ */ a(ro, { id: "no-motion-group-modal-title", children: "No motion group found" }),
|
|
4107
4041
|
/* @__PURE__ */ S(
|
|
4108
|
-
|
|
4042
|
+
io,
|
|
4109
4043
|
{
|
|
4110
4044
|
sx: {
|
|
4111
4045
|
marginTop: "3rem",
|
|
@@ -4118,7 +4052,7 @@ function ki({
|
|
|
4118
4052
|
]
|
|
4119
4053
|
}
|
|
4120
4054
|
),
|
|
4121
|
-
/* @__PURE__ */ a(
|
|
4055
|
+
/* @__PURE__ */ a(no, { children: /* @__PURE__ */ S(_, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
|
|
4122
4056
|
/* @__PURE__ */ a(
|
|
4123
4057
|
Z,
|
|
4124
4058
|
{
|
|
@@ -4151,7 +4085,7 @@ function ki({
|
|
|
4151
4085
|
);
|
|
4152
4086
|
}
|
|
4153
4087
|
var te = /* @__PURE__ */ ((t) => (t.PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED", t.ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED", t.CELL_OPEN = "CELL_OPEN", t.E_STOP = "E_STOP", t.MANUAL_MODE = "MANUAL_MODE", t.READY = "READY", t))(te || {});
|
|
4154
|
-
const
|
|
4088
|
+
const Lo = $(
|
|
4155
4089
|
J(({ setupState: t, className: e }) => {
|
|
4156
4090
|
const o = B(), { t: r } = z(), i = () => {
|
|
4157
4091
|
var d, m, u, p, g, f, y;
|
|
@@ -4203,7 +4137,7 @@ const zo = $(
|
|
|
4203
4137
|
}
|
|
4204
4138
|
}, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = i();
|
|
4205
4139
|
return /* @__PURE__ */ a(
|
|
4206
|
-
|
|
4140
|
+
so,
|
|
4207
4141
|
{
|
|
4208
4142
|
className: e,
|
|
4209
4143
|
label: /* @__PURE__ */ S(
|
|
@@ -4257,13 +4191,13 @@ const zo = $(
|
|
|
4257
4191
|
}
|
|
4258
4192
|
);
|
|
4259
4193
|
})
|
|
4260
|
-
),
|
|
4194
|
+
), Ti = $(
|
|
4261
4195
|
J(
|
|
4262
4196
|
({
|
|
4263
4197
|
robotName: t,
|
|
4264
4198
|
robotType: e,
|
|
4265
4199
|
setupState: o,
|
|
4266
|
-
PreconditionComponent: r =
|
|
4200
|
+
PreconditionComponent: r = Lo,
|
|
4267
4201
|
className: i
|
|
4268
4202
|
}) => {
|
|
4269
4203
|
var l;
|
|
@@ -4310,10 +4244,10 @@ const zo = $(
|
|
|
4310
4244
|
fill: `${n.palette.primary.main} !important`
|
|
4311
4245
|
}
|
|
4312
4246
|
},
|
|
4313
|
-
children: /* @__PURE__ */ a(
|
|
4247
|
+
children: /* @__PURE__ */ a(Be, {})
|
|
4314
4248
|
}
|
|
4315
4249
|
) : /* @__PURE__ */ a(
|
|
4316
|
-
|
|
4250
|
+
ao,
|
|
4317
4251
|
{
|
|
4318
4252
|
sx: {
|
|
4319
4253
|
color: n.palette.error.main,
|
|
@@ -4363,7 +4297,7 @@ const zo = $(
|
|
|
4363
4297
|
);
|
|
4364
4298
|
}
|
|
4365
4299
|
)
|
|
4366
|
-
),
|
|
4300
|
+
), $o = pt(lo, {
|
|
4367
4301
|
shouldForwardProp: (t) => t !== "selected"
|
|
4368
4302
|
})(({ theme: t }) => {
|
|
4369
4303
|
var e, o, r;
|
|
@@ -4393,10 +4327,10 @@ const zo = $(
|
|
|
4393
4327
|
}
|
|
4394
4328
|
]
|
|
4395
4329
|
};
|
|
4396
|
-
}),
|
|
4330
|
+
}), Mi = (t) => {
|
|
4397
4331
|
const { ref: e, ...o } = t;
|
|
4398
4332
|
return /* @__PURE__ */ a(
|
|
4399
|
-
|
|
4333
|
+
$o,
|
|
4400
4334
|
{
|
|
4401
4335
|
ref: e,
|
|
4402
4336
|
selected: t.selected,
|
|
@@ -4406,7 +4340,7 @@ const zo = $(
|
|
|
4406
4340
|
}
|
|
4407
4341
|
);
|
|
4408
4342
|
};
|
|
4409
|
-
function
|
|
4343
|
+
function zo(t) {
|
|
4410
4344
|
const { children: e, value: o, index: r, ...i } = t;
|
|
4411
4345
|
return /* @__PURE__ */ a(
|
|
4412
4346
|
"div",
|
|
@@ -4420,7 +4354,7 @@ function No(t) {
|
|
|
4420
4354
|
}
|
|
4421
4355
|
);
|
|
4422
4356
|
}
|
|
4423
|
-
function
|
|
4357
|
+
function Vo({ children: t, ...e }) {
|
|
4424
4358
|
const {
|
|
4425
4359
|
fullWidth: o,
|
|
4426
4360
|
indicator: r,
|
|
@@ -4435,7 +4369,7 @@ function Wo({ children: t, ...e }) {
|
|
|
4435
4369
|
} = e;
|
|
4436
4370
|
return /* @__PURE__ */ a(w, { ...u, children: t });
|
|
4437
4371
|
}
|
|
4438
|
-
const
|
|
4372
|
+
const Ii = $(
|
|
4439
4373
|
J((t) => {
|
|
4440
4374
|
const {
|
|
4441
4375
|
items: e,
|
|
@@ -4556,12 +4490,12 @@ const Ei = $(
|
|
|
4556
4490
|
p.id
|
|
4557
4491
|
);
|
|
4558
4492
|
return h ? /* @__PURE__ */ a(
|
|
4559
|
-
|
|
4493
|
+
Vo,
|
|
4560
4494
|
{
|
|
4561
4495
|
component: "span",
|
|
4562
4496
|
sx: { display: "inline-flex" },
|
|
4563
4497
|
children: /* @__PURE__ */ a(
|
|
4564
|
-
|
|
4498
|
+
co,
|
|
4565
4499
|
{
|
|
4566
4500
|
badgeContent: b,
|
|
4567
4501
|
color: ((T = p.badge) == null ? void 0 : T.color) || "error",
|
|
@@ -4599,12 +4533,12 @@ const Ei = $(
|
|
|
4599
4533
|
}
|
|
4600
4534
|
}
|
|
4601
4535
|
),
|
|
4602
|
-
/* @__PURE__ */ a(w, { sx: { flex: 1, overflow: "auto" }, children: e.map((p, g) => /* @__PURE__ */ a(
|
|
4536
|
+
/* @__PURE__ */ a(w, { sx: { flex: 1, overflow: "auto" }, children: e.map((p, g) => /* @__PURE__ */ a(zo, { value: m, index: g, children: p.content }, p.id)) })
|
|
4603
4537
|
]
|
|
4604
4538
|
}
|
|
4605
4539
|
);
|
|
4606
4540
|
})
|
|
4607
|
-
),
|
|
4541
|
+
), No = (t) => {
|
|
4608
4542
|
const e = Math.floor(t / 86400), o = Math.floor(t % 86400 / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, n = [];
|
|
4609
4543
|
return e > 0 ? (n.push(e.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
|
|
4610
4544
|
}, Jt = (t, e) => {
|
|
@@ -4617,7 +4551,7 @@ const Ei = $(
|
|
|
4617
4551
|
}
|
|
4618
4552
|
const c = [];
|
|
4619
4553
|
return o > 0 && c.push(`${o}d`), r > 0 && c.push(`${r}h`), i > 0 && c.push(`${i}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
|
|
4620
|
-
},
|
|
4554
|
+
}, Wo = ({
|
|
4621
4555
|
timerState: t,
|
|
4622
4556
|
animationState: e,
|
|
4623
4557
|
hasError: o,
|
|
@@ -4638,7 +4572,7 @@ const Ei = $(
|
|
|
4638
4572
|
},
|
|
4639
4573
|
children: [
|
|
4640
4574
|
/* @__PURE__ */ a(
|
|
4641
|
-
|
|
4575
|
+
go,
|
|
4642
4576
|
{
|
|
4643
4577
|
width: 264,
|
|
4644
4578
|
height: 264,
|
|
@@ -4729,7 +4663,7 @@ const Ei = $(
|
|
|
4729
4663
|
lineHeight: 1,
|
|
4730
4664
|
letterSpacing: "-0.5px"
|
|
4731
4665
|
},
|
|
4732
|
-
children:
|
|
4666
|
+
children: No(c)
|
|
4733
4667
|
}
|
|
4734
4668
|
) })
|
|
4735
4669
|
]
|
|
@@ -4740,7 +4674,7 @@ const Ei = $(
|
|
|
4740
4674
|
]
|
|
4741
4675
|
}
|
|
4742
4676
|
);
|
|
4743
|
-
},
|
|
4677
|
+
}, Go = ({
|
|
4744
4678
|
timerState: t,
|
|
4745
4679
|
animationState: e,
|
|
4746
4680
|
hasError: o,
|
|
@@ -4857,7 +4791,7 @@ const Ei = $(
|
|
|
4857
4791
|
]
|
|
4858
4792
|
}
|
|
4859
4793
|
);
|
|
4860
|
-
},
|
|
4794
|
+
}, Uo = () => {
|
|
4861
4795
|
const [t, e] = L({
|
|
4862
4796
|
showPauseAnimation: !1,
|
|
4863
4797
|
showErrorAnimation: !1,
|
|
@@ -4903,7 +4837,7 @@ const Ei = $(
|
|
|
4903
4837
|
setInitialAnimationState: d,
|
|
4904
4838
|
cleanup: m
|
|
4905
4839
|
};
|
|
4906
|
-
},
|
|
4840
|
+
}, Ho = ({
|
|
4907
4841
|
autoStart: t,
|
|
4908
4842
|
hasError: e,
|
|
4909
4843
|
onPauseAnimation: o,
|
|
@@ -5009,7 +4943,7 @@ const Ei = $(
|
|
|
5009
4943
|
isPaused: b
|
|
5010
4944
|
}
|
|
5011
4945
|
};
|
|
5012
|
-
},
|
|
4946
|
+
}, ki = $(
|
|
5013
4947
|
J(
|
|
5014
4948
|
({
|
|
5015
4949
|
onTimerReady: t,
|
|
@@ -5026,7 +4960,7 @@ const Ei = $(
|
|
|
5026
4960
|
clearErrorAnimation: d,
|
|
5027
4961
|
setInitialAnimationState: m,
|
|
5028
4962
|
cleanup: u
|
|
5029
|
-
} =
|
|
4963
|
+
} = Uo(), { timerState: p, controls: g } = Ho({
|
|
5030
4964
|
autoStart: e,
|
|
5031
4965
|
hasError: n,
|
|
5032
4966
|
onPauseAnimation: s,
|
|
@@ -5044,7 +4978,7 @@ const Ei = $(
|
|
|
5044
4978
|
f = !1, clearTimeout(y);
|
|
5045
4979
|
};
|
|
5046
4980
|
}, [t, g]), F(() => u, [u]), o === "small" ? /* @__PURE__ */ a(
|
|
5047
|
-
|
|
4981
|
+
Go,
|
|
5048
4982
|
{
|
|
5049
4983
|
timerState: p,
|
|
5050
4984
|
animationState: c,
|
|
@@ -5053,7 +4987,7 @@ const Ei = $(
|
|
|
5053
4987
|
className: i
|
|
5054
4988
|
}
|
|
5055
4989
|
) : /* @__PURE__ */ a(
|
|
5056
|
-
|
|
4990
|
+
Wo,
|
|
5057
4991
|
{
|
|
5058
4992
|
timerState: p,
|
|
5059
4993
|
animationState: c,
|
|
@@ -5063,14 +4997,14 @@ const Ei = $(
|
|
|
5063
4997
|
);
|
|
5064
4998
|
}
|
|
5065
4999
|
)
|
|
5066
|
-
), Ft = 1e-4,
|
|
5000
|
+
), Ft = 1e-4, qo = {
|
|
5067
5001
|
a: 0,
|
|
5068
5002
|
d: 0,
|
|
5069
5003
|
alpha: 0,
|
|
5070
5004
|
theta: 0,
|
|
5071
5005
|
reverse_rotation_direction: !1
|
|
5072
5006
|
};
|
|
5073
|
-
class
|
|
5007
|
+
class ut {
|
|
5074
5008
|
constructor(e, o, r, i, n, c, s, l, d, m, u = "cell") {
|
|
5075
5009
|
this.controller = o, this.motionGroup = r, this.initialMotionState = i, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = d, this.controllerStateSocket = m, this.cellId = u, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.nova = st(e), this.rapidlyChangingMotionState = i, this.controllerState = d, m.addEventListener("message", (p) => {
|
|
5076
5010
|
var f;
|
|
@@ -5107,7 +5041,7 @@ class pt {
|
|
|
5107
5041
|
static async connectMultiple(e, o, r = {}) {
|
|
5108
5042
|
return Promise.all(
|
|
5109
5043
|
o.map(
|
|
5110
|
-
(i) =>
|
|
5044
|
+
(i) => ut.connect(e, i, r)
|
|
5111
5045
|
)
|
|
5112
5046
|
);
|
|
5113
5047
|
}
|
|
@@ -5160,7 +5094,7 @@ class pt {
|
|
|
5160
5094
|
`Connected controller state websocket to controller ${l.controller}. Initial state:
|
|
5161
5095
|
`,
|
|
5162
5096
|
x
|
|
5163
|
-
), new
|
|
5097
|
+
), new ut(
|
|
5164
5098
|
i,
|
|
5165
5099
|
l,
|
|
5166
5100
|
d,
|
|
@@ -5196,7 +5130,7 @@ class pt {
|
|
|
5196
5130
|
get dhParameters() {
|
|
5197
5131
|
if (this.description.dh_parameters !== void 0)
|
|
5198
5132
|
return this.description.dh_parameters.map((e) => ({
|
|
5199
|
-
...
|
|
5133
|
+
...qo,
|
|
5200
5134
|
...e
|
|
5201
5135
|
}));
|
|
5202
5136
|
}
|
|
@@ -5653,53 +5587,52 @@ function ee() {
|
|
|
5653
5587
|
}
|
|
5654
5588
|
};
|
|
5655
5589
|
}
|
|
5656
|
-
function
|
|
5590
|
+
function Yo() {
|
|
5657
5591
|
const t = ee();
|
|
5658
5592
|
return t.palette.mode = "light", t;
|
|
5659
5593
|
}
|
|
5660
|
-
function
|
|
5594
|
+
function Ri(t) {
|
|
5661
5595
|
var r, i, n, c;
|
|
5662
5596
|
let e = !0;
|
|
5663
5597
|
((r = t.palette) == null ? void 0 : r.mode) === "light" ? e = !1 : ((i = t.palette) == null ? void 0 : i.mode) !== "dark" && (e = !(typeof window < "u" && ((c = (n = window.matchMedia) == null ? void 0 : n.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : c.matches)));
|
|
5664
|
-
const o = e ? ee() :
|
|
5598
|
+
const o = e ? ee() : Yo();
|
|
5665
5599
|
return Bt(o, t);
|
|
5666
5600
|
}
|
|
5667
5601
|
export {
|
|
5668
|
-
|
|
5669
|
-
|
|
5602
|
+
pi as A,
|
|
5603
|
+
mi as C,
|
|
5670
5604
|
xt as J,
|
|
5671
|
-
|
|
5605
|
+
Jo as L,
|
|
5672
5606
|
ft as M,
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
To as y
|
|
5607
|
+
wi as N,
|
|
5608
|
+
fi as P,
|
|
5609
|
+
Ti as R,
|
|
5610
|
+
Mi as S,
|
|
5611
|
+
Ii as T,
|
|
5612
|
+
_o as V,
|
|
5613
|
+
yo as W,
|
|
5614
|
+
Ot as a,
|
|
5615
|
+
So as b,
|
|
5616
|
+
Ri as c,
|
|
5617
|
+
hi as d,
|
|
5618
|
+
bi as e,
|
|
5619
|
+
To as f,
|
|
5620
|
+
Mo as g,
|
|
5621
|
+
Ci as h,
|
|
5622
|
+
lt as i,
|
|
5623
|
+
xi as j,
|
|
5624
|
+
yi as k,
|
|
5625
|
+
Si as l,
|
|
5626
|
+
vi as m,
|
|
5627
|
+
Fo as n,
|
|
5628
|
+
te as o,
|
|
5629
|
+
Lo as p,
|
|
5630
|
+
ki as q,
|
|
5631
|
+
Zt as r,
|
|
5632
|
+
ut as s,
|
|
5633
|
+
bt as t,
|
|
5634
|
+
Ht as u,
|
|
5635
|
+
vo as v,
|
|
5636
|
+
qt as w,
|
|
5637
|
+
Co as x
|
|
5705
5638
|
};
|