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