@wandelbots/wandelbots-js-react-components 5.5.6 → 5.6.0-pr.fix-select-tcp.613.f02eb48
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/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/{MotionGroupVisualizer-EN8Nw5xP.cjs → MotionGroupVisualizer-MKZ2-1oY.cjs} +1 -1
- package/dist/chunks/{MotionGroupVisualizer-BXDggjVD.js → MotionGroupVisualizer-Q7ifc7Kd.js} +2 -2
- package/dist/chunks/{SafetyBar-C8whliAf.js → SafetyBar-CxxIVVeR.js} +1 -1
- package/dist/chunks/{SafetyBar-CLm3UQRA.cjs → SafetyBar-VvOZ9aRM.cjs} +1 -1
- package/dist/chunks/{externalizeComponent-D6S3WLFc.js → externalizeComponent-EDymnaGR.js} +38 -18
- package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +2 -0
- package/dist/chunks/{interpolation-B84QX33C.cjs → interpolation-C9sLsved.cjs} +1 -1
- package/dist/chunks/{interpolation-D9WFd-j_.js → interpolation-DG8VTxzS.js} +1 -1
- package/dist/chunks/{theming-DkPRYIRd.js → theming-BU4-W3Wy.js} +604 -541
- package/dist/chunks/theming-DTS9g0aC.cjs +4 -0
- package/dist/components/jogging/JoggingStore.d.ts +3 -2
- package/dist/components/jogging/StreamStateSection.d.ts +8 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunks/externalizeComponent-BHZdH14U.cjs +0 -2
- package/dist/chunks/theming-CdZnyyhf.cjs +0 -4
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { jsx as a, jsxs as S, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import { alpha as Mt, useTheme as
|
|
3
|
-
import
|
|
2
|
+
import { alpha as Mt, useTheme as B, styled as ut, createTheme as Ft } from "@mui/material/styles";
|
|
3
|
+
import ee from "@mui/material/AppBar";
|
|
4
4
|
import Bt from "@mui/material/Backdrop";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
5
|
+
import w from "@mui/material/Box";
|
|
6
|
+
import q from "@mui/material/IconButton";
|
|
7
|
+
import oe from "@mui/material/Menu";
|
|
8
|
+
import Y from "@mui/material/MenuItem";
|
|
9
|
+
import ne from "@mui/material/Toolbar";
|
|
10
|
+
import R from "@mui/material/Typography";
|
|
11
11
|
import { observer as J, useLocalObservable as Lt } from "mobx-react-lite";
|
|
12
|
-
import { useState as
|
|
13
|
-
import { e as $ } from "./externalizeComponent-
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { Gauge as
|
|
17
|
-
import { useTranslation as
|
|
18
|
-
import { f as $t, e as pt } from "./interpolation-
|
|
19
|
-
import
|
|
20
|
-
import
|
|
12
|
+
import { useState as L, useRef as A, useCallback as _, useEffect as F, useMemo as rt, useId as ie } from "react";
|
|
13
|
+
import { e as $ } from "./externalizeComponent-EDymnaGR.js";
|
|
14
|
+
import re from "@mui/material/SvgIcon";
|
|
15
|
+
import H from "@mui/material/Fade";
|
|
16
|
+
import { Gauge as ae } from "@mui/x-charts/Gauge";
|
|
17
|
+
import { useTranslation as z } from "react-i18next";
|
|
18
|
+
import { f as $t, e as pt } from "./interpolation-DG8VTxzS.js";
|
|
19
|
+
import se from "@mui/icons-material/Clear";
|
|
20
|
+
import le from "@mui/icons-material/FilterList";
|
|
21
21
|
import It from "@mui/icons-material/Search";
|
|
22
|
-
import
|
|
23
|
-
import { useGridApiRef as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
22
|
+
import U from "@mui/material/Divider";
|
|
23
|
+
import { useGridApiRef as ce, DataGrid as de, Toolbar as ge, FilterPanelTrigger as ue, ToolbarButton as lt, QuickFilter as pe, QuickFilterTrigger as me, QuickFilterControl as he, QuickFilterClear as fe } from "@mui/x-data-grid";
|
|
24
|
+
import be from "@mui/icons-material/OpenWith";
|
|
25
|
+
import xe from "@mui/icons-material/Share";
|
|
26
|
+
import P from "@mui/material/Stack";
|
|
27
27
|
import zt from "@mui/material/Tab";
|
|
28
28
|
import Vt from "@mui/material/Tabs";
|
|
29
|
-
import { JointTypeEnum as G, NovaClient as
|
|
30
|
-
import { lowerFirst as
|
|
31
|
-
import { runInAction as
|
|
32
|
-
import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as
|
|
29
|
+
import { JointTypeEnum as G, NovaClient as ye, poseToWandelscriptString as Se } from "@wandelbots/nova-js/v2";
|
|
30
|
+
import { lowerFirst as ve, countBy as Ce, isString as we } from "lodash-es";
|
|
31
|
+
import { runInAction as D, makeAutoObservable as mt, when as at, autorun as kt, makeObservable as Te, action as Rt, observable as Me } from "mobx";
|
|
32
|
+
import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as Ie } from "@wandelbots/nova-js";
|
|
33
33
|
import { Vector3 as ct } from "three/src/math/Vector3.js";
|
|
34
34
|
import Wt from "@mui/material/CircularProgress";
|
|
35
|
-
import { capitalize as
|
|
36
|
-
import { m as
|
|
37
|
-
import
|
|
38
|
-
import
|
|
35
|
+
import { capitalize as ke } from "@mui/material/utils";
|
|
36
|
+
import { m as Re } from "./SafetyBar-CxxIVVeR.js";
|
|
37
|
+
import je from "@mui/material/Alert";
|
|
38
|
+
import Ee from "@mui/material/AlertTitle";
|
|
39
39
|
import Z from "@mui/material/Button";
|
|
40
40
|
import jt from "@mui/material/ToggleButton";
|
|
41
|
-
import { c as
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
41
|
+
import { c as _e, d as Pe, F as Oe, a as De, b as Ae, f as Je, e as Fe } from "./robot-Cy9ST5-m.js";
|
|
42
|
+
import Be from "lodash-es/isEqual.js";
|
|
43
|
+
import Le from "@mui/material/InputAdornment";
|
|
44
|
+
import $e from "@mui/material/FormControl";
|
|
45
|
+
import ze from "@mui/material/InputLabel";
|
|
46
|
+
import Ve from "@mui/material/Select";
|
|
47
47
|
import nt from "lodash-es/keyBy.js";
|
|
48
|
-
import
|
|
49
|
-
import
|
|
48
|
+
import Ne from "lodash-es/uniqueId.js";
|
|
49
|
+
import We from "@mui/material/ToggleButtonGroup";
|
|
50
50
|
import Gt 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
|
|
51
|
+
import Ge from "lodash-es/isNumber.js";
|
|
52
|
+
import Ue from "@mui/icons-material/ChevronLeft";
|
|
53
|
+
import He from "@mui/icons-material/ChevronRight";
|
|
54
|
+
import qe from "lodash-es/throttle.js";
|
|
55
|
+
import Ye from "@mui/material/Tooltip";
|
|
56
|
+
import Ze from "@mui/icons-material/ContentCopy";
|
|
57
|
+
import Qe from "@mui/icons-material/DescriptionOutlined";
|
|
58
|
+
import Xe from "@mui/icons-material/ExpandLess";
|
|
59
|
+
import Ke from "@mui/icons-material/ExpandMore";
|
|
60
|
+
import to from "@mui/material/Paper";
|
|
61
|
+
import eo from "@mui/material/Dialog";
|
|
62
|
+
import oo from "@mui/material/DialogActions";
|
|
63
|
+
import no from "@mui/material/DialogContent";
|
|
64
|
+
import io from "@mui/material/DialogTitle";
|
|
65
|
+
import ro from "@mui/icons-material/Error";
|
|
66
|
+
import ao from "@mui/material/Chip";
|
|
67
|
+
import so from "@mui/material/Fab";
|
|
68
|
+
import lo from "@mui/material/Badge";
|
|
69
|
+
import { Gauge as co } from "@mui/x-charts";
|
|
70
70
|
import * as Et from "three";
|
|
71
|
-
import { Vector3 as
|
|
72
|
-
const
|
|
71
|
+
import { Vector3 as _t } from "three";
|
|
72
|
+
const go = (e) => /* @__PURE__ */ a(re, { ...e, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
|
|
73
73
|
"path",
|
|
74
74
|
{
|
|
75
75
|
d: "M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",
|
|
76
76
|
fill: "currentColor",
|
|
77
77
|
fillOpacity: "0.56"
|
|
78
78
|
}
|
|
79
|
-
) }),
|
|
79
|
+
) }), gi = $(
|
|
80
80
|
J((e) => {
|
|
81
81
|
const {
|
|
82
82
|
appIcon: t,
|
|
@@ -85,7 +85,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
85
85
|
onAppSelect: i,
|
|
86
86
|
disabled: n = !1,
|
|
87
87
|
sx: c
|
|
88
|
-
} = e, [s, l] =
|
|
88
|
+
} = e, [s, l] = L(null), u = !!s, f = (p) => {
|
|
89
89
|
l(p.currentTarget);
|
|
90
90
|
}, g = () => {
|
|
91
91
|
l(null);
|
|
@@ -94,7 +94,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
94
94
|
};
|
|
95
95
|
return /* @__PURE__ */ S(et, { children: [
|
|
96
96
|
/* @__PURE__ */ a(
|
|
97
|
-
|
|
97
|
+
ee,
|
|
98
98
|
{
|
|
99
99
|
position: "static",
|
|
100
100
|
sx: {
|
|
@@ -106,11 +106,11 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
106
106
|
},
|
|
107
107
|
...c
|
|
108
108
|
},
|
|
109
|
-
children: /* @__PURE__ */ S(
|
|
110
|
-
/* @__PURE__ */ a(
|
|
111
|
-
/* @__PURE__ */ S(
|
|
109
|
+
children: /* @__PURE__ */ S(ne, { sx: { minHeight: "62px !important" }, children: [
|
|
110
|
+
/* @__PURE__ */ a(w, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: t }),
|
|
111
|
+
/* @__PURE__ */ S(w, { sx: { display: "flex", alignItems: "center", flexGrow: 1 }, children: [
|
|
112
112
|
/* @__PURE__ */ a(
|
|
113
|
-
|
|
113
|
+
R,
|
|
114
114
|
{
|
|
115
115
|
component: "h1",
|
|
116
116
|
sx: {
|
|
@@ -121,7 +121,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
r.length > 0 && /* @__PURE__ */ a(
|
|
124
|
-
|
|
124
|
+
q,
|
|
125
125
|
{
|
|
126
126
|
color: "inherit",
|
|
127
127
|
"aria-label": "switch app",
|
|
@@ -146,7 +146,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
146
146
|
height: "6px"
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
children: /* @__PURE__ */ a(
|
|
149
|
+
children: /* @__PURE__ */ a(go, {})
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
] })
|
|
@@ -166,7 +166,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
166
166
|
}
|
|
167
167
|
),
|
|
168
168
|
/* @__PURE__ */ a(
|
|
169
|
-
|
|
169
|
+
oe,
|
|
170
170
|
{
|
|
171
171
|
id: "app-menu",
|
|
172
172
|
anchorEl: s,
|
|
@@ -187,15 +187,15 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
187
187
|
mt: 1
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
-
children: r.map((p) => /* @__PURE__ */ S(
|
|
191
|
-
/* @__PURE__ */ a(
|
|
192
|
-
/* @__PURE__ */ a(
|
|
190
|
+
children: r.map((p) => /* @__PURE__ */ S(Y, { onClick: () => d(p), children: [
|
|
191
|
+
/* @__PURE__ */ a(w, { sx: { display: "flex", alignItems: "center" }, children: p.icon }),
|
|
192
|
+
/* @__PURE__ */ a(R, { variant: "body1", sx: { ml: 2 }, children: p.name })
|
|
193
193
|
] }, p.id))
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
] });
|
|
197
197
|
})
|
|
198
|
-
),
|
|
198
|
+
), uo = (e) => {
|
|
199
199
|
const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
|
|
200
200
|
return t > 0 ? (n.push(t.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
201
|
}, N = (e, t) => {
|
|
@@ -208,13 +208,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
208
208
|
}
|
|
209
209
|
const c = [];
|
|
210
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(" ");
|
|
211
|
-
},
|
|
211
|
+
}, po = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, mo = ({
|
|
212
212
|
timerState: e,
|
|
213
213
|
animationState: t,
|
|
214
214
|
hasError: o,
|
|
215
215
|
className: r
|
|
216
216
|
}) => {
|
|
217
|
-
const { t: i, i18n: n } =
|
|
217
|
+
const { t: i, i18n: n } = z(), c = B(), { currentState: s, remainingTime: l, maxTime: u, currentProgress: f } = e, {
|
|
218
218
|
showErrorAnimation: g,
|
|
219
219
|
showPauseAnimation: d,
|
|
220
220
|
showPulsatingText: p,
|
|
@@ -225,7 +225,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
225
225
|
idleDotsCount: v
|
|
226
226
|
} = t;
|
|
227
227
|
return /* @__PURE__ */ S(
|
|
228
|
-
|
|
228
|
+
w,
|
|
229
229
|
{
|
|
230
230
|
className: r,
|
|
231
231
|
sx: {
|
|
@@ -238,7 +238,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
238
238
|
},
|
|
239
239
|
children: [
|
|
240
240
|
/* @__PURE__ */ a(
|
|
241
|
-
|
|
241
|
+
ae,
|
|
242
242
|
{
|
|
243
243
|
width: 264,
|
|
244
244
|
height: 264,
|
|
@@ -273,7 +273,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
275
|
/* @__PURE__ */ S(
|
|
276
|
-
|
|
276
|
+
w,
|
|
277
277
|
{
|
|
278
278
|
sx: {
|
|
279
279
|
position: "absolute",
|
|
@@ -294,7 +294,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
294
294
|
},
|
|
295
295
|
children: [
|
|
296
296
|
/* @__PURE__ */ a(
|
|
297
|
-
|
|
297
|
+
w,
|
|
298
298
|
{
|
|
299
299
|
sx: {
|
|
300
300
|
height: "16px",
|
|
@@ -304,12 +304,12 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
304
304
|
marginBottom: 1
|
|
305
305
|
},
|
|
306
306
|
children: /* @__PURE__ */ a(
|
|
307
|
-
|
|
307
|
+
H,
|
|
308
308
|
{
|
|
309
309
|
in: y && !o && s !== "idle" && s !== "success",
|
|
310
310
|
timeout: 300,
|
|
311
311
|
children: /* @__PURE__ */ a(
|
|
312
|
-
|
|
312
|
+
R,
|
|
313
313
|
{
|
|
314
314
|
variant: "body2",
|
|
315
315
|
sx: {
|
|
@@ -334,7 +334,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
336
|
/* @__PURE__ */ S(
|
|
337
|
-
|
|
337
|
+
w,
|
|
338
338
|
{
|
|
339
339
|
sx: {
|
|
340
340
|
position: "relative",
|
|
@@ -346,12 +346,12 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
346
346
|
},
|
|
347
347
|
children: [
|
|
348
348
|
/* @__PURE__ */ a(
|
|
349
|
-
|
|
349
|
+
H,
|
|
350
350
|
{
|
|
351
351
|
in: h && s === "idle" && !o,
|
|
352
352
|
timeout: 200,
|
|
353
353
|
children: /* @__PURE__ */ S(
|
|
354
|
-
|
|
354
|
+
R,
|
|
355
355
|
{
|
|
356
356
|
variant: "body2",
|
|
357
357
|
sx: {
|
|
@@ -400,8 +400,8 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
400
400
|
)
|
|
401
401
|
}
|
|
402
402
|
),
|
|
403
|
-
/* @__PURE__ */ a(
|
|
404
|
-
|
|
403
|
+
/* @__PURE__ */ a(H, { in: h && o, timeout: 200, children: /* @__PURE__ */ a(
|
|
404
|
+
R,
|
|
405
405
|
{
|
|
406
406
|
variant: "h3",
|
|
407
407
|
sx: {
|
|
@@ -415,12 +415,12 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
415
415
|
}
|
|
416
416
|
) }),
|
|
417
417
|
/* @__PURE__ */ a(
|
|
418
|
-
|
|
418
|
+
H,
|
|
419
419
|
{
|
|
420
420
|
in: h && !o && s !== "idle" && s !== "success",
|
|
421
421
|
timeout: 300,
|
|
422
422
|
children: /* @__PURE__ */ a(
|
|
423
|
-
|
|
423
|
+
R,
|
|
424
424
|
{
|
|
425
425
|
variant: "h1",
|
|
426
426
|
sx: {
|
|
@@ -438,7 +438,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
438
438
|
opacity: 1,
|
|
439
439
|
transition: "opacity 2s ease-in-out"
|
|
440
440
|
},
|
|
441
|
-
children:
|
|
441
|
+
children: uo(l)
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
}
|
|
@@ -449,7 +449,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
449
449
|
}
|
|
450
450
|
),
|
|
451
451
|
/* @__PURE__ */ a(
|
|
452
|
-
|
|
452
|
+
w,
|
|
453
453
|
{
|
|
454
454
|
sx: {
|
|
455
455
|
height: "16px",
|
|
@@ -459,12 +459,12 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
459
459
|
justifyContent: "center"
|
|
460
460
|
},
|
|
461
461
|
children: /* @__PURE__ */ a(
|
|
462
|
-
|
|
462
|
+
H,
|
|
463
463
|
{
|
|
464
464
|
in: y && !o && s !== "idle" && s !== "success",
|
|
465
465
|
timeout: 300,
|
|
466
466
|
children: /* @__PURE__ */ a(
|
|
467
|
-
|
|
467
|
+
R,
|
|
468
468
|
{
|
|
469
469
|
variant: "body2",
|
|
470
470
|
sx: {
|
|
@@ -496,14 +496,14 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
},
|
|
499
|
+
}, ho = ({
|
|
500
500
|
timerState: e,
|
|
501
501
|
animationState: t,
|
|
502
502
|
hasError: o,
|
|
503
503
|
compact: r,
|
|
504
504
|
className: i
|
|
505
505
|
}) => {
|
|
506
|
-
const { t: n, i18n: c } =
|
|
506
|
+
const { t: n, i18n: c } = z(), s = B(), { currentState: l, remainingTime: u, maxTime: f } = e, {
|
|
507
507
|
showErrorAnimation: g,
|
|
508
508
|
showPauseAnimation: d,
|
|
509
509
|
showPulsatingText: p,
|
|
@@ -512,7 +512,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
512
512
|
idleDotsCount: h
|
|
513
513
|
} = t;
|
|
514
514
|
return r && l === "idle" ? /* @__PURE__ */ a(
|
|
515
|
-
|
|
515
|
+
w,
|
|
516
516
|
{
|
|
517
517
|
className: i,
|
|
518
518
|
sx: {
|
|
@@ -521,7 +521,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
521
521
|
m: 0
|
|
522
522
|
},
|
|
523
523
|
children: /* @__PURE__ */ a(
|
|
524
|
-
|
|
524
|
+
R,
|
|
525
525
|
{
|
|
526
526
|
variant: "body2",
|
|
527
527
|
sx: {
|
|
@@ -534,7 +534,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
534
534
|
)
|
|
535
535
|
}
|
|
536
536
|
) : /* @__PURE__ */ S(
|
|
537
|
-
|
|
537
|
+
w,
|
|
538
538
|
{
|
|
539
539
|
className: i,
|
|
540
540
|
sx: {
|
|
@@ -545,7 +545,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
545
545
|
},
|
|
546
546
|
children: [
|
|
547
547
|
!(l === "idle" && r) && /* @__PURE__ */ a(
|
|
548
|
-
|
|
548
|
+
w,
|
|
549
549
|
{
|
|
550
550
|
sx: {
|
|
551
551
|
width: 20,
|
|
@@ -605,7 +605,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
605
605
|
}
|
|
606
606
|
),
|
|
607
607
|
/* @__PURE__ */ a(
|
|
608
|
-
|
|
608
|
+
R,
|
|
609
609
|
{
|
|
610
610
|
variant: "body2",
|
|
611
611
|
sx: {
|
|
@@ -635,8 +635,8 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
635
635
|
]
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
|
-
},
|
|
639
|
-
const [e, t] =
|
|
638
|
+
}, fo = () => {
|
|
639
|
+
const [e, t] = L({
|
|
640
640
|
showPauseAnimation: !1,
|
|
641
641
|
showErrorAnimation: !1,
|
|
642
642
|
showPulsatingText: !1,
|
|
@@ -653,40 +653,40 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
653
653
|
null
|
|
654
654
|
), n = A(null), c = A(0), s = A(null), l = A(
|
|
655
655
|
null
|
|
656
|
-
), u =
|
|
656
|
+
), u = _(() => {
|
|
657
657
|
t((b) => ({ ...b, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
658
658
|
t((b) => ({ ...b, showPauseAnimation: !1 }));
|
|
659
659
|
}, 800);
|
|
660
|
-
}, []), f =
|
|
660
|
+
}, []), f = _(() => {
|
|
661
661
|
t((b) => ({ ...b, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
|
|
662
662
|
t((b) => ({ ...b, showErrorAnimation: !1 }));
|
|
663
663
|
}, 600);
|
|
664
|
-
}, []), g =
|
|
664
|
+
}, []), g = _(() => {
|
|
665
665
|
t((b) => ({ ...b, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
|
|
666
|
-
}, []), d =
|
|
667
|
-
c.current = 0, t((
|
|
668
|
-
...
|
|
666
|
+
}, []), d = _((b) => {
|
|
667
|
+
c.current = 0, t((T) => ({
|
|
668
|
+
...T,
|
|
669
669
|
showPulsatingText: !0,
|
|
670
670
|
pulsatingFinished: !1
|
|
671
671
|
})), setTimeout(() => {
|
|
672
|
-
t((
|
|
673
|
-
...
|
|
672
|
+
t((T) => ({
|
|
673
|
+
...T,
|
|
674
674
|
pulsatingFinished: !0
|
|
675
675
|
// This will keep the success color and start slow pulsating
|
|
676
676
|
})), i.current = setInterval(() => {
|
|
677
|
-
t((
|
|
678
|
-
...
|
|
679
|
-
showPulsatingText: !
|
|
677
|
+
t((T) => ({
|
|
678
|
+
...T,
|
|
679
|
+
showPulsatingText: !T.showPulsatingText
|
|
680
680
|
}));
|
|
681
681
|
}, 2e3), b && b();
|
|
682
682
|
}, 800);
|
|
683
|
-
}, []), p =
|
|
683
|
+
}, []), p = _(() => {
|
|
684
684
|
i.current && (clearInterval(i.current), i.current = null), t((b) => ({
|
|
685
685
|
...b,
|
|
686
686
|
showPulsatingText: !1,
|
|
687
687
|
pulsatingFinished: !1
|
|
688
688
|
})), c.current = 0;
|
|
689
|
-
}, []), x =
|
|
689
|
+
}, []), x = _(() => {
|
|
690
690
|
t((b) => ({
|
|
691
691
|
...b,
|
|
692
692
|
showIdlePulsating: !0
|
|
@@ -702,13 +702,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
702
702
|
// Cycle through 0, 1, 2, 3
|
|
703
703
|
}));
|
|
704
704
|
}, 800);
|
|
705
|
-
}, []), y =
|
|
705
|
+
}, []), y = _(() => {
|
|
706
706
|
s.current && (clearInterval(s.current), s.current = null), l.current && (clearInterval(l.current), l.current = null), t((b) => ({
|
|
707
707
|
...b,
|
|
708
708
|
showIdlePulsating: !1,
|
|
709
709
|
idleDotsCount: 0
|
|
710
710
|
}));
|
|
711
|
-
}, []), h =
|
|
711
|
+
}, []), h = _(() => {
|
|
712
712
|
t((b) => ({
|
|
713
713
|
...b,
|
|
714
714
|
showLabels: !1,
|
|
@@ -720,13 +720,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
720
720
|
showMainText: !0
|
|
721
721
|
}));
|
|
722
722
|
}, 200);
|
|
723
|
-
}, []), m =
|
|
723
|
+
}, []), m = _(() => {
|
|
724
724
|
t((b) => ({
|
|
725
725
|
...b,
|
|
726
726
|
showLabels: !0,
|
|
727
727
|
showMainText: !0
|
|
728
728
|
}));
|
|
729
|
-
}, []), v =
|
|
729
|
+
}, []), v = _(() => {
|
|
730
730
|
o.current && clearTimeout(o.current), r.current && clearTimeout(r.current), n.current && clearTimeout(n.current), i.current && clearInterval(i.current), s.current && clearInterval(s.current), l.current && clearInterval(l.current);
|
|
731
731
|
}, []);
|
|
732
732
|
return {
|
|
@@ -742,7 +742,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
742
742
|
setInitialAnimationState: m,
|
|
743
743
|
cleanup: v
|
|
744
744
|
};
|
|
745
|
-
},
|
|
745
|
+
}, bo = ({
|
|
746
746
|
autoStart: e,
|
|
747
747
|
onCycleEnd: t,
|
|
748
748
|
onMeasuringComplete: o,
|
|
@@ -752,7 +752,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
752
752
|
onClearErrorAnimation: c,
|
|
753
753
|
onStartPulsating: s
|
|
754
754
|
}) => {
|
|
755
|
-
const [l, u] =
|
|
755
|
+
const [l, u] = L({
|
|
756
756
|
currentState: "idle",
|
|
757
757
|
remainingTime: 0,
|
|
758
758
|
maxTime: null,
|
|
@@ -766,7 +766,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
766
766
|
onChange: ([C]) => {
|
|
767
767
|
u((M) => ({ ...M, currentProgress: C }));
|
|
768
768
|
}
|
|
769
|
-
}), x =
|
|
769
|
+
}), x = _(() => {
|
|
770
770
|
u((C) => ({
|
|
771
771
|
...C,
|
|
772
772
|
currentState: "idle",
|
|
@@ -777,7 +777,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
777
777
|
currentProgress: 0
|
|
778
778
|
// Reset progress to 0 for gauge
|
|
779
779
|
})), d.current = 0, g.current = null, p.setImmediate([0]);
|
|
780
|
-
}, [p]), y =
|
|
780
|
+
}, [p]), y = _(
|
|
781
781
|
(C = 0) => {
|
|
782
782
|
const M = C / 60 % 1 * 100;
|
|
783
783
|
u((k) => ({
|
|
@@ -791,7 +791,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
791
791
|
})), d.current = 0, p.setImmediate([M]), e ? (g.current = Date.now() - C * 1e3, u((k) => ({ ...k, isRunning: !0 }))) : g.current = null;
|
|
792
792
|
},
|
|
793
793
|
[e, p]
|
|
794
|
-
), h =
|
|
794
|
+
), h = _(
|
|
795
795
|
(C, M = 0) => {
|
|
796
796
|
u((I) => ({ ...I, isRunning: !1 })), g.current = null, u((I) => ({
|
|
797
797
|
...I,
|
|
@@ -799,18 +799,18 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
799
799
|
maxTime: C,
|
|
800
800
|
isPausedState: !1
|
|
801
801
|
})), d.current = 0;
|
|
802
|
-
const k = Math.max(0, C - M),
|
|
802
|
+
const k = Math.max(0, C - M), j = M > 0 ? M / C * 100 : 0;
|
|
803
803
|
u((I) => ({
|
|
804
804
|
...I,
|
|
805
805
|
remainingTime: k,
|
|
806
|
-
currentProgress:
|
|
806
|
+
currentProgress: j
|
|
807
807
|
// Immediately set progress
|
|
808
|
-
})), p.setImmediate([
|
|
808
|
+
})), p.setImmediate([j]), k === 0 ? (u((I) => ({ ...I, isRunning: !1 })), g.current = null, t && queueMicrotask(() => t())) : e ? setTimeout(() => {
|
|
809
809
|
g.current = Date.now() - M * 1e3, u((I) => ({ ...I, isRunning: !0 }));
|
|
810
810
|
}, 0) : g.current = null;
|
|
811
811
|
},
|
|
812
812
|
[e, t, p]
|
|
813
|
-
), m =
|
|
813
|
+
), m = _(() => {
|
|
814
814
|
u((C) => ({
|
|
815
815
|
...C,
|
|
816
816
|
isRunning: !1,
|
|
@@ -818,16 +818,16 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
818
818
|
})), g.current = null, s(() => {
|
|
819
819
|
o && o();
|
|
820
820
|
});
|
|
821
|
-
}, [s, o]), v =
|
|
821
|
+
}, [s, o]), v = _(() => {
|
|
822
822
|
if (g.current && l.isRunning) {
|
|
823
823
|
const M = Date.now() - g.current;
|
|
824
824
|
d.current += M;
|
|
825
|
-
const k = d.current / 1e3,
|
|
825
|
+
const k = d.current / 1e3, j = po(
|
|
826
826
|
l.currentState,
|
|
827
827
|
k,
|
|
828
828
|
l.maxTime
|
|
829
829
|
);
|
|
830
|
-
p.setTarget([
|
|
830
|
+
p.setTarget([j]);
|
|
831
831
|
}
|
|
832
832
|
u((C) => ({
|
|
833
833
|
...C,
|
|
@@ -840,7 +840,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
840
840
|
l.maxTime,
|
|
841
841
|
p,
|
|
842
842
|
i
|
|
843
|
-
]), b =
|
|
843
|
+
]), b = _(() => {
|
|
844
844
|
l.isPausedState && (l.remainingTime > 0 || l.currentState !== "countdown") && (g.current = Date.now(), u((C) => ({
|
|
845
845
|
...C,
|
|
846
846
|
isRunning: !0,
|
|
@@ -850,8 +850,8 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
850
850
|
l.isPausedState,
|
|
851
851
|
l.remainingTime,
|
|
852
852
|
l.currentState
|
|
853
|
-
]),
|
|
854
|
-
return
|
|
853
|
+
]), T = _(() => l.isPausedState, [l.isPausedState]);
|
|
854
|
+
return F(() => {
|
|
855
855
|
r ? (l.isRunning && !l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !0 })), v()), n()) : (l.wasRunningBeforeError && l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !1 })), b()), c());
|
|
856
856
|
}, [
|
|
857
857
|
r,
|
|
@@ -862,19 +862,19 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
862
862
|
b,
|
|
863
863
|
n,
|
|
864
864
|
c
|
|
865
|
-
]),
|
|
865
|
+
]), F(() => {
|
|
866
866
|
if (l.isRunning) {
|
|
867
867
|
const C = () => {
|
|
868
868
|
if (g.current) {
|
|
869
869
|
const k = (Date.now() - g.current + d.current) / 1e3;
|
|
870
870
|
if (l.currentState === "countdown" && l.maxTime !== null) {
|
|
871
|
-
const
|
|
871
|
+
const j = Math.max(0, l.maxTime - k);
|
|
872
872
|
u((E) => ({
|
|
873
873
|
...E,
|
|
874
|
-
remainingTime: Math.ceil(
|
|
874
|
+
remainingTime: Math.ceil(j)
|
|
875
875
|
}));
|
|
876
876
|
const I = Math.min(100, k / l.maxTime * 100);
|
|
877
|
-
if (p.setTarget([I]),
|
|
877
|
+
if (p.setTarget([I]), j <= 0) {
|
|
878
878
|
u((E) => ({
|
|
879
879
|
...E,
|
|
880
880
|
isRunning: !1,
|
|
@@ -887,8 +887,8 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
887
887
|
...I,
|
|
888
888
|
remainingTime: Math.floor(k)
|
|
889
889
|
}));
|
|
890
|
-
const
|
|
891
|
-
p.setTarget([
|
|
890
|
+
const j = k / 60 % 1 * 100;
|
|
891
|
+
p.setTarget([j]);
|
|
892
892
|
}
|
|
893
893
|
l.isRunning && (f.current = requestAnimationFrame(C));
|
|
894
894
|
}
|
|
@@ -905,7 +905,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
905
905
|
l.currentState,
|
|
906
906
|
l.maxTime,
|
|
907
907
|
p
|
|
908
|
-
]),
|
|
908
|
+
]), F(() => {
|
|
909
909
|
let C = null;
|
|
910
910
|
const M = () => {
|
|
911
911
|
p.update(1 / 60), C = requestAnimationFrame(M);
|
|
@@ -922,10 +922,10 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
922
922
|
completeMeasuring: m,
|
|
923
923
|
pause: v,
|
|
924
924
|
resume: b,
|
|
925
|
-
isPaused:
|
|
925
|
+
isPaused: T
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
|
-
},
|
|
928
|
+
}, ui = $(
|
|
929
929
|
J(
|
|
930
930
|
({
|
|
931
931
|
onCycleComplete: e,
|
|
@@ -949,7 +949,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
949
949
|
triggerFadeTransition: m,
|
|
950
950
|
setInitialAnimationState: v,
|
|
951
951
|
cleanup: b
|
|
952
|
-
} =
|
|
952
|
+
} = fo(), { timerState: T, controls: C } = bo({
|
|
953
953
|
autoStart: r,
|
|
954
954
|
onCycleEnd: t,
|
|
955
955
|
onMeasuringComplete: o,
|
|
@@ -959,17 +959,17 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
959
959
|
onClearErrorAnimation: d,
|
|
960
960
|
onStartPulsating: p
|
|
961
961
|
});
|
|
962
|
-
return
|
|
962
|
+
return F(() => {
|
|
963
963
|
const M = l.current;
|
|
964
|
-
l.current !== void 0 && M !==
|
|
964
|
+
l.current !== void 0 && M !== T.currentState ? (M === "measured" && x(), M === "idle" && h(), m()) : v(), T.currentState === "idle" && y(), l.current = T.currentState;
|
|
965
965
|
}, [
|
|
966
|
-
|
|
966
|
+
T.currentState,
|
|
967
967
|
x,
|
|
968
968
|
h,
|
|
969
969
|
y,
|
|
970
970
|
m,
|
|
971
971
|
v
|
|
972
|
-
]),
|
|
972
|
+
]), F(() => {
|
|
973
973
|
let M = !0;
|
|
974
974
|
const k = setTimeout(() => {
|
|
975
975
|
M && e(C);
|
|
@@ -977,19 +977,19 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
977
977
|
return () => {
|
|
978
978
|
M = !1, clearTimeout(k);
|
|
979
979
|
};
|
|
980
|
-
}, [e, C]),
|
|
981
|
-
|
|
980
|
+
}, [e, C]), F(() => b, [b]), i === "small" ? /* @__PURE__ */ a(
|
|
981
|
+
ho,
|
|
982
982
|
{
|
|
983
|
-
timerState:
|
|
983
|
+
timerState: T,
|
|
984
984
|
animationState: u,
|
|
985
985
|
hasError: s,
|
|
986
986
|
compact: n,
|
|
987
987
|
className: c
|
|
988
988
|
}
|
|
989
989
|
) : /* @__PURE__ */ a(
|
|
990
|
-
|
|
990
|
+
mo,
|
|
991
991
|
{
|
|
992
|
-
timerState:
|
|
992
|
+
timerState: T,
|
|
993
993
|
animationState: u,
|
|
994
994
|
hasError: s,
|
|
995
995
|
className: c
|
|
@@ -997,7 +997,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
997
997
|
);
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
|
-
),
|
|
1000
|
+
), xo = $(
|
|
1001
1001
|
J(
|
|
1002
1002
|
({
|
|
1003
1003
|
data: e,
|
|
@@ -1014,16 +1014,16 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1014
1014
|
selectFirstByDefault: g = !1,
|
|
1015
1015
|
sx: d
|
|
1016
1016
|
}) => {
|
|
1017
|
-
var
|
|
1018
|
-
const p =
|
|
1019
|
-
|
|
1017
|
+
var j;
|
|
1018
|
+
const p = B(), x = ce(), y = A(null), [h, m] = L(null), v = rt(() => e.map(o), [e, o]);
|
|
1019
|
+
F(() => {
|
|
1020
1020
|
x.current && v.length > 0 && x.current.autosizeColumns({
|
|
1021
1021
|
includeOutliers: !0,
|
|
1022
1022
|
includeHeaders: !0,
|
|
1023
1023
|
expand: !0,
|
|
1024
1024
|
columns: t.map((I) => I.field)
|
|
1025
1025
|
});
|
|
1026
|
-
}, [v, t, x]),
|
|
1026
|
+
}, [v, t, x]), F(() => {
|
|
1027
1027
|
if (!y.current || !x.current) return;
|
|
1028
1028
|
const I = new ResizeObserver(() => {
|
|
1029
1029
|
setTimeout(() => {
|
|
@@ -1049,13 +1049,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1049
1049
|
return m(I), I;
|
|
1050
1050
|
}
|
|
1051
1051
|
return null;
|
|
1052
|
-
}, [g, e, i, h]),
|
|
1053
|
-
const E = e.find((
|
|
1052
|
+
}, [g, e, i, h]), T = (I) => {
|
|
1053
|
+
const E = e.find((V) => o(V).id === I.id);
|
|
1054
1054
|
E && (i === void 0 && m(E), r && r(E, I));
|
|
1055
1055
|
}, C = rt(() => !b || !n ? null : n(b), [b, n]);
|
|
1056
1056
|
function M() {
|
|
1057
|
-
return /* @__PURE__ */ a(
|
|
1058
|
-
|
|
1057
|
+
return /* @__PURE__ */ a(ge, { children: /* @__PURE__ */ S(
|
|
1058
|
+
w,
|
|
1059
1059
|
{
|
|
1060
1060
|
sx: {
|
|
1061
1061
|
display: "flex",
|
|
@@ -1066,7 +1066,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1066
1066
|
},
|
|
1067
1067
|
children: [
|
|
1068
1068
|
c && /* @__PURE__ */ S(
|
|
1069
|
-
|
|
1069
|
+
R,
|
|
1070
1070
|
{
|
|
1071
1071
|
variant: "h6",
|
|
1072
1072
|
sx: {
|
|
@@ -1080,7 +1080,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1080
1080
|
}
|
|
1081
1081
|
),
|
|
1082
1082
|
/* @__PURE__ */ S(
|
|
1083
|
-
|
|
1083
|
+
w,
|
|
1084
1084
|
{
|
|
1085
1085
|
sx: {
|
|
1086
1086
|
ml: "auto",
|
|
@@ -1091,13 +1091,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1091
1091
|
},
|
|
1092
1092
|
children: [
|
|
1093
1093
|
/* @__PURE__ */ a(
|
|
1094
|
-
|
|
1094
|
+
ue,
|
|
1095
1095
|
{
|
|
1096
|
-
render: /* @__PURE__ */ a(lt, { "aria-label": "Show filters", children: /* @__PURE__ */ a(
|
|
1096
|
+
render: /* @__PURE__ */ a(lt, { "aria-label": "Show filters", children: /* @__PURE__ */ a(le, { fontSize: "small" }) })
|
|
1097
1097
|
}
|
|
1098
1098
|
),
|
|
1099
1099
|
/* @__PURE__ */ a(
|
|
1100
|
-
|
|
1100
|
+
U,
|
|
1101
1101
|
{
|
|
1102
1102
|
orientation: "vertical",
|
|
1103
1103
|
flexItem: !0,
|
|
@@ -1108,10 +1108,10 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1108
1108
|
}
|
|
1109
1109
|
),
|
|
1110
1110
|
/* @__PURE__ */ a(
|
|
1111
|
-
|
|
1111
|
+
pe,
|
|
1112
1112
|
{
|
|
1113
1113
|
render: (I, E) => /* @__PURE__ */ S(
|
|
1114
|
-
|
|
1114
|
+
w,
|
|
1115
1115
|
{
|
|
1116
1116
|
...I,
|
|
1117
1117
|
sx: {
|
|
@@ -1120,13 +1120,13 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1120
1120
|
},
|
|
1121
1121
|
children: [
|
|
1122
1122
|
!E.expanded && /* @__PURE__ */ a(
|
|
1123
|
-
|
|
1123
|
+
me,
|
|
1124
1124
|
{
|
|
1125
1125
|
render: /* @__PURE__ */ a(lt, { "aria-label": "Search", children: /* @__PURE__ */ a(It, { fontSize: "small" }) })
|
|
1126
1126
|
}
|
|
1127
1127
|
),
|
|
1128
1128
|
/* @__PURE__ */ S(
|
|
1129
|
-
|
|
1129
|
+
w,
|
|
1130
1130
|
{
|
|
1131
1131
|
sx: {
|
|
1132
1132
|
display: "flex",
|
|
@@ -1137,7 +1137,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1137
1137
|
},
|
|
1138
1138
|
children: [
|
|
1139
1139
|
/* @__PURE__ */ S(
|
|
1140
|
-
|
|
1140
|
+
w,
|
|
1141
1141
|
{
|
|
1142
1142
|
sx: {
|
|
1143
1143
|
flex: 1,
|
|
@@ -1236,15 +1236,15 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
),
|
|
1239
|
-
/* @__PURE__ */ a(
|
|
1239
|
+
/* @__PURE__ */ a(he, { placeholder: l })
|
|
1240
1240
|
]
|
|
1241
1241
|
}
|
|
1242
1242
|
),
|
|
1243
1243
|
E.expanded && E.value !== "" && /* @__PURE__ */ a(
|
|
1244
|
-
|
|
1244
|
+
fe,
|
|
1245
1245
|
{
|
|
1246
1246
|
render: /* @__PURE__ */ a(
|
|
1247
|
-
|
|
1247
|
+
w,
|
|
1248
1248
|
{
|
|
1249
1249
|
sx: {
|
|
1250
1250
|
position: "absolute",
|
|
@@ -1254,7 +1254,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1254
1254
|
zIndex: 1
|
|
1255
1255
|
},
|
|
1256
1256
|
children: /* @__PURE__ */ a(
|
|
1257
|
-
|
|
1257
|
+
w,
|
|
1258
1258
|
{
|
|
1259
1259
|
sx: {
|
|
1260
1260
|
minWidth: "24px",
|
|
@@ -1266,7 +1266,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1266
1266
|
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1267
1267
|
}
|
|
1268
1268
|
},
|
|
1269
|
-
children: /* @__PURE__ */ a(lt, { "aria-label": "Clear", children: /* @__PURE__ */ a(
|
|
1269
|
+
children: /* @__PURE__ */ a(lt, { "aria-label": "Clear", children: /* @__PURE__ */ a(se, { fontSize: "small" }) })
|
|
1270
1270
|
}
|
|
1271
1271
|
)
|
|
1272
1272
|
}
|
|
@@ -1290,7 +1290,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1290
1290
|
}
|
|
1291
1291
|
const k = f || M;
|
|
1292
1292
|
return /* @__PURE__ */ a(
|
|
1293
|
-
|
|
1293
|
+
w,
|
|
1294
1294
|
{
|
|
1295
1295
|
ref: y,
|
|
1296
1296
|
sx: {
|
|
@@ -1327,12 +1327,12 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1327
1327
|
...d
|
|
1328
1328
|
},
|
|
1329
1329
|
children: /* @__PURE__ */ a(
|
|
1330
|
-
|
|
1330
|
+
de,
|
|
1331
1331
|
{
|
|
1332
1332
|
apiRef: x,
|
|
1333
1333
|
rows: v,
|
|
1334
1334
|
columns: t,
|
|
1335
|
-
onRowClick:
|
|
1335
|
+
onRowClick: T,
|
|
1336
1336
|
disableColumnMenu: !1,
|
|
1337
1337
|
disableRowSelectionOnClick: !0,
|
|
1338
1338
|
disableMultipleRowSelection: !0,
|
|
@@ -1365,7 +1365,7 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1365
1365
|
includeHeaders: !0,
|
|
1366
1366
|
expand: !0,
|
|
1367
1367
|
// Auto-size all columns by default (can be overridden by dataGridProps)
|
|
1368
|
-
columns: ((
|
|
1368
|
+
columns: ((j = u == null ? void 0 : u.autosizeOptions) == null ? void 0 : j.columns) || t.map((I) => I.field)
|
|
1369
1369
|
},
|
|
1370
1370
|
sx: {
|
|
1371
1371
|
border: "none",
|
|
@@ -1514,8 +1514,8 @@ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
|
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
1516
|
);
|
|
1517
|
-
|
|
1518
|
-
const
|
|
1517
|
+
xo.displayName = "WandelbotsDataGrid";
|
|
1518
|
+
const Pt = $(
|
|
1519
1519
|
J(
|
|
1520
1520
|
({
|
|
1521
1521
|
colors: e,
|
|
@@ -1527,13 +1527,13 @@ const _t = $(
|
|
|
1527
1527
|
activeJoggingDirection: c,
|
|
1528
1528
|
...s
|
|
1529
1529
|
}) => {
|
|
1530
|
-
var b,
|
|
1530
|
+
var b, T, C, M, k, j, I;
|
|
1531
1531
|
pt(() => {
|
|
1532
|
-
const E = o(),
|
|
1533
|
-
|
|
1532
|
+
const E = o(), V = d.current;
|
|
1533
|
+
V && (V.textContent = E);
|
|
1534
1534
|
});
|
|
1535
|
-
const l =
|
|
1536
|
-
|
|
1535
|
+
const l = B(), [u, f] = L(null);
|
|
1536
|
+
F(() => {
|
|
1537
1537
|
n && v();
|
|
1538
1538
|
}, [n]);
|
|
1539
1539
|
const g = c || u, d = A(null);
|
|
@@ -1560,7 +1560,7 @@ const _t = $(
|
|
|
1560
1560
|
}
|
|
1561
1561
|
}, y = {
|
|
1562
1562
|
...x,
|
|
1563
|
-
backgroundColor: (
|
|
1563
|
+
backgroundColor: (T = e.buttonBackgroundColor) == null ? void 0 : T.default,
|
|
1564
1564
|
":hover": {
|
|
1565
1565
|
backgroundColor: (C = e.buttonBackgroundColor) == null ? void 0 : C.hovered
|
|
1566
1566
|
},
|
|
@@ -1575,7 +1575,7 @@ const _t = $(
|
|
|
1575
1575
|
}
|
|
1576
1576
|
}, h = {
|
|
1577
1577
|
...x,
|
|
1578
|
-
backgroundColor: (
|
|
1578
|
+
backgroundColor: (j = e.buttonBackgroundColor) == null ? void 0 : j.pressed,
|
|
1579
1579
|
color: e.backgroundColor,
|
|
1580
1580
|
path: { fill: e.backgroundColor },
|
|
1581
1581
|
":disabled": {
|
|
@@ -1583,15 +1583,15 @@ const _t = $(
|
|
|
1583
1583
|
"svg path": { fill: l.palette.action.disabled }
|
|
1584
1584
|
}
|
|
1585
1585
|
};
|
|
1586
|
-
function m(E,
|
|
1587
|
-
n || E.button === 0 && (f(
|
|
1586
|
+
function m(E, V) {
|
|
1587
|
+
n || E.button === 0 && (f(V), r(V));
|
|
1588
1588
|
}
|
|
1589
1589
|
function v() {
|
|
1590
1590
|
f(null), i();
|
|
1591
1591
|
}
|
|
1592
|
-
return /* @__PURE__ */ S(
|
|
1592
|
+
return /* @__PURE__ */ S(P, { height: "64px", direction: "row", justifyContent: "center", ...s, children: [
|
|
1593
1593
|
/* @__PURE__ */ a(
|
|
1594
|
-
|
|
1594
|
+
q,
|
|
1595
1595
|
{
|
|
1596
1596
|
disabled: n,
|
|
1597
1597
|
disableRipple: !0,
|
|
@@ -1606,11 +1606,11 @@ const _t = $(
|
|
|
1606
1606
|
borderBottom: `2px solid ${p ?? "#fff"}`,
|
|
1607
1607
|
borderTop: `2px solid ${p ?? "#fff"}`
|
|
1608
1608
|
},
|
|
1609
|
-
children: /* @__PURE__ */ a(
|
|
1609
|
+
children: /* @__PURE__ */ a(_e, {})
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
1612
1612
|
/* @__PURE__ */ S(
|
|
1613
|
-
|
|
1613
|
+
P,
|
|
1614
1614
|
{
|
|
1615
1615
|
spacing: "6px",
|
|
1616
1616
|
sx: {
|
|
@@ -1624,7 +1624,7 @@ const _t = $(
|
|
|
1624
1624
|
},
|
|
1625
1625
|
children: [
|
|
1626
1626
|
/* @__PURE__ */ a(
|
|
1627
|
-
|
|
1627
|
+
P,
|
|
1628
1628
|
{
|
|
1629
1629
|
height: "22px",
|
|
1630
1630
|
direction: "row",
|
|
@@ -1644,7 +1644,7 @@ const _t = $(
|
|
|
1644
1644
|
}
|
|
1645
1645
|
),
|
|
1646
1646
|
/* @__PURE__ */ a(
|
|
1647
|
-
|
|
1647
|
+
R,
|
|
1648
1648
|
{
|
|
1649
1649
|
height: "22px",
|
|
1650
1650
|
sx: {
|
|
@@ -1663,7 +1663,7 @@ const _t = $(
|
|
|
1663
1663
|
}
|
|
1664
1664
|
),
|
|
1665
1665
|
/* @__PURE__ */ a(
|
|
1666
|
-
|
|
1666
|
+
q,
|
|
1667
1667
|
{
|
|
1668
1668
|
disableRipple: !0,
|
|
1669
1669
|
disabled: n,
|
|
@@ -1684,7 +1684,7 @@ const _t = $(
|
|
|
1684
1684
|
] });
|
|
1685
1685
|
}
|
|
1686
1686
|
)
|
|
1687
|
-
),
|
|
1687
|
+
), yo = $(
|
|
1688
1688
|
J(
|
|
1689
1689
|
({
|
|
1690
1690
|
startJogging: e,
|
|
@@ -1696,8 +1696,8 @@ const _t = $(
|
|
|
1696
1696
|
disabled: c,
|
|
1697
1697
|
...s
|
|
1698
1698
|
}) => {
|
|
1699
|
-
var M, k,
|
|
1700
|
-
const { t: l } =
|
|
1699
|
+
var M, k, j, I, E, V, Q, ot, xt, yt, St, vt, Ct, wt, Tt;
|
|
1700
|
+
const { t: l } = z(), [u, f] = L(), g = B(), d = {
|
|
1701
1701
|
background: (M = g.palette.backgroundPaperElevation) == null ? void 0 : M[4],
|
|
1702
1702
|
color: (k = g.palette.backgroundPaperElevation) == null ? void 0 : k[11]
|
|
1703
1703
|
}, p = Lt(() => ({
|
|
@@ -1708,7 +1708,7 @@ const _t = $(
|
|
|
1708
1708
|
stopJogging() {
|
|
1709
1709
|
this.activeJoggingDir = null, t();
|
|
1710
1710
|
}
|
|
1711
|
-
})), x =
|
|
1711
|
+
})), x = qe(() => {
|
|
1712
1712
|
const O = i ? y(n()) : n();
|
|
1713
1713
|
(O === void 0 || u === void 0 || Math.abs(u - O) > 1e-9) && f(O);
|
|
1714
1714
|
}, 50);
|
|
@@ -1729,7 +1729,7 @@ const _t = $(
|
|
|
1729
1729
|
function b(O) {
|
|
1730
1730
|
p.stopJogging();
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function T(O, X = 1) {
|
|
1733
1733
|
if (O === void 0 || Number.isNaN(O)) return "";
|
|
1734
1734
|
const K = l("General.degree.variable", {
|
|
1735
1735
|
amount: O.toFixed(X)
|
|
@@ -1744,7 +1744,7 @@ const _t = $(
|
|
|
1744
1744
|
return O > 0 && X === 0 ? `+${K}` : K;
|
|
1745
1745
|
}
|
|
1746
1746
|
return /* @__PURE__ */ S(
|
|
1747
|
-
|
|
1747
|
+
P,
|
|
1748
1748
|
{
|
|
1749
1749
|
height: "64px",
|
|
1750
1750
|
width: "100%",
|
|
@@ -1756,7 +1756,7 @@ const _t = $(
|
|
|
1756
1756
|
width: "52px",
|
|
1757
1757
|
color: g.palette.text.primary,
|
|
1758
1758
|
alignContent: "center",
|
|
1759
|
-
backgroundColor: (
|
|
1759
|
+
backgroundColor: (j = g.palette.backgroundPaperElevation) == null ? void 0 : j[11],
|
|
1760
1760
|
"& svg": {
|
|
1761
1761
|
width: "42px",
|
|
1762
1762
|
height: "42px"
|
|
@@ -1776,7 +1776,7 @@ const _t = $(
|
|
|
1776
1776
|
},
|
|
1777
1777
|
children: [
|
|
1778
1778
|
/* @__PURE__ */ a(
|
|
1779
|
-
|
|
1779
|
+
q,
|
|
1780
1780
|
{
|
|
1781
1781
|
onPointerDown: h,
|
|
1782
1782
|
onPointerUp: v,
|
|
@@ -1788,18 +1788,18 @@ const _t = $(
|
|
|
1788
1788
|
...p.activeJoggingDir === "-" ? d : {}
|
|
1789
1789
|
},
|
|
1790
1790
|
children: /* @__PURE__ */ a(
|
|
1791
|
-
|
|
1791
|
+
Ue,
|
|
1792
1792
|
{
|
|
1793
1793
|
sx: {
|
|
1794
1794
|
pointerEvents: "none",
|
|
1795
|
-
color: (xt = (ot = (Q = (
|
|
1795
|
+
color: (xt = (ot = (Q = (V = g.componentsExt) == null ? void 0 : V.JoggingPanel) == null ? void 0 : Q.JoggingJoint) == null ? void 0 : ot.Joint) == null ? void 0 : xt.arrowColor
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
)
|
|
1799
1799
|
}
|
|
1800
1800
|
),
|
|
1801
1801
|
/* @__PURE__ */ S(
|
|
1802
|
-
|
|
1802
|
+
P,
|
|
1803
1803
|
{
|
|
1804
1804
|
flexGrow: 1,
|
|
1805
1805
|
alignItems: "center",
|
|
@@ -1816,7 +1816,7 @@ const _t = $(
|
|
|
1816
1816
|
},
|
|
1817
1817
|
children: [
|
|
1818
1818
|
/* @__PURE__ */ a(
|
|
1819
|
-
|
|
1819
|
+
R,
|
|
1820
1820
|
{
|
|
1821
1821
|
sx: {
|
|
1822
1822
|
fontSize: "15px",
|
|
@@ -1828,7 +1828,7 @@ const _t = $(
|
|
|
1828
1828
|
textAlign: "center",
|
|
1829
1829
|
color: c ? g.palette.action.disabled : g.palette.text.primary
|
|
1830
1830
|
},
|
|
1831
|
-
children: i ?
|
|
1831
|
+
children: i ? T(u) : C(u)
|
|
1832
1832
|
}
|
|
1833
1833
|
),
|
|
1834
1834
|
/* @__PURE__ */ a(
|
|
@@ -1863,11 +1863,11 @@ const _t = $(
|
|
|
1863
1863
|
marks: o !== void 0 && r !== void 0 && [
|
|
1864
1864
|
{
|
|
1865
1865
|
value: i ? y(o) : o,
|
|
1866
|
-
label: i ?
|
|
1866
|
+
label: i ? T(y(o), 0) : C(o)
|
|
1867
1867
|
},
|
|
1868
1868
|
{
|
|
1869
1869
|
value: i ? y(r) : r,
|
|
1870
|
-
label: i ?
|
|
1870
|
+
label: i ? T(y(r), 0) : C(r)
|
|
1871
1871
|
}
|
|
1872
1872
|
]
|
|
1873
1873
|
}
|
|
@@ -1876,7 +1876,7 @@ const _t = $(
|
|
|
1876
1876
|
}
|
|
1877
1877
|
),
|
|
1878
1878
|
/* @__PURE__ */ a(
|
|
1879
|
-
|
|
1879
|
+
q,
|
|
1880
1880
|
{
|
|
1881
1881
|
onPointerDown: m,
|
|
1882
1882
|
onPointerUp: v,
|
|
@@ -1888,7 +1888,7 @@ const _t = $(
|
|
|
1888
1888
|
...p.activeJoggingDir === "+" ? d : {}
|
|
1889
1889
|
},
|
|
1890
1890
|
children: /* @__PURE__ */ a(
|
|
1891
|
-
|
|
1891
|
+
He,
|
|
1892
1892
|
{
|
|
1893
1893
|
sx: {
|
|
1894
1894
|
pointerEvents: "none",
|
|
@@ -1915,7 +1915,7 @@ function Ut(e, t, o) {
|
|
|
1915
1915
|
return !1;
|
|
1916
1916
|
return !0;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function So(e, t, o) {
|
|
1919
1919
|
if (e === void 0 && t || e && t === void 0 || (e == null ? void 0 : e.orientation) === void 0 || (t == null ? void 0 : t.orientation) === void 0 || (e == null ? void 0 : e.position) === void 0 || (t == null ? void 0 : t.position) === void 0)
|
|
1920
1920
|
return !1;
|
|
1921
1921
|
if (e === void 0 || t === void 0)
|
|
@@ -1924,18 +1924,18 @@ function yo(e, t, o) {
|
|
|
1924
1924
|
return r += Math.abs(e.orientation[0] - t.orientation[0]), r += Math.abs(e.orientation[1] - t.orientation[1]), r += Math.abs(e.orientation[2] - t.orientation[2]), r += Math.abs(e.position[0] - t.position[0]), r += Math.abs(e.position[1] - t.position[1]), r += Math.abs(e.position[2] - t.position[2]), r <= o;
|
|
1925
1925
|
}
|
|
1926
1926
|
function Ht(e, t, o) {
|
|
1927
|
-
return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp &&
|
|
1927
|
+
return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && So(
|
|
1928
1928
|
e.tcp_pose,
|
|
1929
1929
|
t.tcp_pose,
|
|
1930
1930
|
o
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1934
|
-
const o = new
|
|
1933
|
+
function vo(e, t) {
|
|
1934
|
+
const o = new _t(
|
|
1935
1935
|
t[0],
|
|
1936
1936
|
t[1],
|
|
1937
1937
|
t[2]
|
|
1938
|
-
), r = new
|
|
1938
|
+
), r = new _t(
|
|
1939
1939
|
e[0],
|
|
1940
1940
|
e[1],
|
|
1941
1941
|
e[2]
|
|
@@ -1949,8 +1949,8 @@ const Ot = 1e-4;
|
|
|
1949
1949
|
class ht {
|
|
1950
1950
|
constructor(t, o, r, i, n, c) {
|
|
1951
1951
|
this.nova = t, this.controller = o, this.motionGroup = r, this.description = i, this.initialMotionState = n, this.motionStateSocket = c, this.rapidlyChangingMotionState = n, c.addEventListener("message", (s) => {
|
|
1952
|
-
var
|
|
1953
|
-
const l = (
|
|
1952
|
+
var g;
|
|
1953
|
+
const l = (g = W(s.data)) == null ? void 0 : g.result;
|
|
1954
1954
|
if (!l)
|
|
1955
1955
|
throw new Error(
|
|
1956
1956
|
`Failed to get motion state for ${this.motionGroupId}: ${s.data}`
|
|
@@ -1959,17 +1959,17 @@ class ht {
|
|
|
1959
1959
|
this.rapidlyChangingMotionState.joint_position,
|
|
1960
1960
|
l.joint_position,
|
|
1961
1961
|
Ot
|
|
1962
|
-
) ||
|
|
1962
|
+
) || D(() => {
|
|
1963
1963
|
this.rapidlyChangingMotionState.joint_position = l.joint_position;
|
|
1964
1964
|
}), Ht(
|
|
1965
1965
|
this.rapidlyChangingMotionState,
|
|
1966
1966
|
l,
|
|
1967
1967
|
Ot
|
|
1968
|
-
) ||
|
|
1969
|
-
var
|
|
1970
|
-
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = l.tcp_pose : (
|
|
1968
|
+
) || D(() => {
|
|
1969
|
+
var d, p, x;
|
|
1970
|
+
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = l.tcp_pose : (d = l.tcp_pose) != null && d.orientation && ((p = l.tcp_pose) != null && p.position) && ((x = this.rapidlyChangingMotionState.tcp_pose) != null && x.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
|
|
1971
1971
|
position: l.tcp_pose.position,
|
|
1972
|
-
orientation:
|
|
1972
|
+
orientation: vo(
|
|
1973
1973
|
l.tcp_pose.orientation,
|
|
1974
1974
|
this.rapidlyChangingMotionState.tcp_pose.orientation
|
|
1975
1975
|
)
|
|
@@ -1977,11 +1977,17 @@ class ht {
|
|
|
1977
1977
|
"Received incomplete tcp_pose, ignoring",
|
|
1978
1978
|
l.tcp_pose
|
|
1979
1979
|
);
|
|
1980
|
-
}), l.tcp !== void 0 && this.rapidlyChangingMotionState.tcp !== l.tcp &&
|
|
1980
|
+
}), l.tcp !== void 0 && this.rapidlyChangingMotionState.tcp !== l.tcp && D(() => {
|
|
1981
1981
|
this.rapidlyChangingMotionState.tcp = l.tcp;
|
|
1982
|
-
}), this.rapidlyChangingMotionState.standstill !== l.standstill &&
|
|
1982
|
+
}), this.rapidlyChangingMotionState.standstill !== l.standstill && D(() => {
|
|
1983
1983
|
this.rapidlyChangingMotionState.standstill = l.standstill;
|
|
1984
1984
|
});
|
|
1985
|
+
const u = this.rapidlyChangingMotionState.joint_limit_reached.limit_reached, f = l.joint_limit_reached.limit_reached;
|
|
1986
|
+
u.some((d, p) => d !== f[p]) && D(() => {
|
|
1987
|
+
this.rapidlyChangingMotionState.joint_limit_reached = l.joint_limit_reached;
|
|
1988
|
+
}), this.rapidlyChangingMotionState.execute !== l.execute && D(() => {
|
|
1989
|
+
this.rapidlyChangingMotionState.execute = l.execute;
|
|
1990
|
+
});
|
|
1985
1991
|
}), mt(this);
|
|
1986
1992
|
}
|
|
1987
1993
|
static async open(t, o) {
|
|
@@ -2033,7 +2039,7 @@ class ht {
|
|
|
2033
2039
|
this.motionStateSocket.close();
|
|
2034
2040
|
}
|
|
2035
2041
|
}
|
|
2036
|
-
const
|
|
2042
|
+
const Dt = "Movement request rejected. Another client is currently executing a 'Jogging' motion!";
|
|
2037
2043
|
class ft {
|
|
2038
2044
|
constructor(t, o = {}) {
|
|
2039
2045
|
this.motionStream = t, this.options = o, this.DEFAULT_MODE = "off", this.DEFAULT_TCP = "Flange", this.NO_TCP = void 0, this.DEFAULT_INIT_TIMEOUT = 5e3, this.DEFAULT_ORIENTATION = "coordsys", this.mode = "off", this.joggingSocket = null, this.trajectorySocket = null, this.timeout = this.DEFAULT_INIT_TIMEOUT, this.tcp = (o == null ? void 0 : o.tcp) || t.motionGroup.tcp || this.getDefaultTcp(t), this.orientation = (o == null ? void 0 : o.orientation) || this.DEFAULT_ORIENTATION, this.timeout = (o == null ? void 0 : o.timeout) || this.DEFAULT_INIT_TIMEOUT, this.mode = (o == null ? void 0 : o.mode) || this.DEFAULT_MODE, this.onError = o == null ? void 0 : o.onError;
|
|
@@ -2132,7 +2138,7 @@ class ft {
|
|
|
2132
2138
|
return;
|
|
2133
2139
|
}
|
|
2134
2140
|
if (((s = n == null ? void 0 : n.result) == null ? void 0 : s.kind) === "MOTION_ERROR")
|
|
2135
|
-
if (clearTimeout(r), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(
|
|
2141
|
+
if (clearTimeout(r), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(Dt))) {
|
|
2136
2142
|
(u = this.joggingSocket) == null || u.dispose(), this.onBlocked();
|
|
2137
2143
|
return;
|
|
2138
2144
|
} else this.onError ? this.onError(i.data) : o(new Error(i.data));
|
|
@@ -2250,11 +2256,11 @@ class ft {
|
|
|
2250
2256
|
t.orientation[0],
|
|
2251
2257
|
t.orientation[1],
|
|
2252
2258
|
t.orientation[2]
|
|
2253
|
-
), m = h.length(), v = h.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1),
|
|
2254
|
-
|
|
2255
|
-
const C = Math.cos(0.5 * b) * Math.cos(0.5 * m), M = Math.sin(0.5 * b) * Math.sin(0.5 * m), k = Math.sin(0.5 * b) * Math.cos(0.5 * m),
|
|
2259
|
+
), m = h.length(), v = h.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1), T = new ct(0, 0, 0);
|
|
2260
|
+
T[i] = 1;
|
|
2261
|
+
const C = Math.cos(0.5 * b) * Math.cos(0.5 * m), M = Math.sin(0.5 * b) * Math.sin(0.5 * m), k = Math.sin(0.5 * b) * Math.cos(0.5 * m), j = Math.cos(0.5 * b) * Math.sin(0.5 * m), I = T.dot(
|
|
2256
2262
|
v
|
|
2257
|
-
), E =
|
|
2263
|
+
), E = T.clone().cross(v), V = 2 * Math.acos(C - M * I), Q = V / Math.sin(0.5 * V), ot = new ct().addScaledVector(E, M).addScaledVector(T, k).addScaledVector(v, j).multiplyScalar(Q);
|
|
2258
2264
|
s.push({
|
|
2259
2265
|
limits_override: {
|
|
2260
2266
|
tcp_orientation_velocity_limit: r
|
|
@@ -2337,7 +2343,7 @@ class ft {
|
|
|
2337
2343
|
throw new Error(
|
|
2338
2344
|
`Failed to execute trajectory: Received invalid message ${h.data}`
|
|
2339
2345
|
);
|
|
2340
|
-
if (this.onBlocked && ((b = m.result.message) != null && b.includes(
|
|
2346
|
+
if (this.onBlocked && ((b = m.result.message) != null && b.includes(Dt))) {
|
|
2341
2347
|
this.onBlocked();
|
|
2342
2348
|
return;
|
|
2343
2349
|
}
|
|
@@ -2366,15 +2372,15 @@ class ft {
|
|
|
2366
2372
|
});
|
|
2367
2373
|
}
|
|
2368
2374
|
}
|
|
2369
|
-
const
|
|
2370
|
-
const t = e.softTimeout || 3e3, [o, r] =
|
|
2371
|
-
return
|
|
2375
|
+
const Co = (e) => {
|
|
2376
|
+
const t = e.softTimeout || 3e3, [o, r] = L(!1), i = B();
|
|
2377
|
+
return F(() => {
|
|
2372
2378
|
const n = setTimeout(() => {
|
|
2373
2379
|
r(!0);
|
|
2374
2380
|
}, t);
|
|
2375
2381
|
return () => clearTimeout(n);
|
|
2376
2382
|
}), /* @__PURE__ */ a(
|
|
2377
|
-
|
|
2383
|
+
P,
|
|
2378
2384
|
{
|
|
2379
2385
|
width: "100%",
|
|
2380
2386
|
height: "100%",
|
|
@@ -2382,7 +2388,7 @@ const vo = (e) => {
|
|
|
2382
2388
|
justifyContent: "center",
|
|
2383
2389
|
sx: { color: i.palette.text.primary },
|
|
2384
2390
|
children: e.error ? /* @__PURE__ */ a(
|
|
2385
|
-
|
|
2391
|
+
wo,
|
|
2386
2392
|
{
|
|
2387
2393
|
loadingMessage: e.message,
|
|
2388
2394
|
error: e.error
|
|
@@ -2391,7 +2397,7 @@ const vo = (e) => {
|
|
|
2391
2397
|
/* @__PURE__ */ a(Wt, { sx: { marginBottom: "24px" } }),
|
|
2392
2398
|
!!e.message && /* @__PURE__ */ a("div", { children: e.message }),
|
|
2393
2399
|
/* @__PURE__ */ a(
|
|
2394
|
-
|
|
2400
|
+
P,
|
|
2395
2401
|
{
|
|
2396
2402
|
sx: {
|
|
2397
2403
|
visibility: o ? "visible" : "hidden",
|
|
@@ -2404,10 +2410,10 @@ const vo = (e) => {
|
|
|
2404
2410
|
] })
|
|
2405
2411
|
}
|
|
2406
2412
|
);
|
|
2407
|
-
},
|
|
2408
|
-
const t =
|
|
2413
|
+
}, wo = (e) => {
|
|
2414
|
+
const t = Re(e.error), o = e.error instanceof Error ? e.error.stack : null, r = B();
|
|
2409
2415
|
return /* @__PURE__ */ S(
|
|
2410
|
-
|
|
2416
|
+
P,
|
|
2411
2417
|
{
|
|
2412
2418
|
sx: {
|
|
2413
2419
|
maxHeight: "100%",
|
|
@@ -2422,14 +2428,14 @@ const vo = (e) => {
|
|
|
2422
2428
|
}
|
|
2423
2429
|
},
|
|
2424
2430
|
children: [
|
|
2425
|
-
(e.loadingMessage ? `Error while ${
|
|
2431
|
+
(e.loadingMessage ? `Error while ${ve(ke(e.loadingMessage))} - ` : "") + t,
|
|
2426
2432
|
/* @__PURE__ */ a("br", {}),
|
|
2427
2433
|
o && /* @__PURE__ */ a("pre", { children: o })
|
|
2428
2434
|
]
|
|
2429
2435
|
}
|
|
2430
2436
|
);
|
|
2431
|
-
},
|
|
2432
|
-
const { t } =
|
|
2437
|
+
}, To = J(({ store: e }) => {
|
|
2438
|
+
const { t } = z();
|
|
2433
2439
|
return /* @__PURE__ */ a(
|
|
2434
2440
|
Bt,
|
|
2435
2441
|
{
|
|
@@ -2444,9 +2450,9 @@ const vo = (e) => {
|
|
|
2444
2450
|
justifyContent: "flex-start",
|
|
2445
2451
|
alignItems: "flex-start"
|
|
2446
2452
|
},
|
|
2447
|
-
children: /* @__PURE__ */ S(
|
|
2448
|
-
/* @__PURE__ */ S(
|
|
2449
|
-
/* @__PURE__ */ a(
|
|
2453
|
+
children: /* @__PURE__ */ S(P, { sx: { m: 2, width: "100%" }, children: [
|
|
2454
|
+
/* @__PURE__ */ S(je, { severity: "error", sx: { mb: 2 }, children: [
|
|
2455
|
+
/* @__PURE__ */ a(Ee, { children: t("Jogging.Blocked.ti") }),
|
|
2450
2456
|
t("Jogging.Blocked.lb")
|
|
2451
2457
|
] }),
|
|
2452
2458
|
/* @__PURE__ */ a(
|
|
@@ -2463,35 +2469,45 @@ const vo = (e) => {
|
|
|
2463
2469
|
);
|
|
2464
2470
|
}), qt = J(
|
|
2465
2471
|
({ store: e }) => {
|
|
2466
|
-
const { t } =
|
|
2472
|
+
const { t } = z(), [o, r] = L(
|
|
2467
2473
|
e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
|
|
2468
2474
|
), i = A(o);
|
|
2469
2475
|
pt(() => {
|
|
2470
2476
|
const c = e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
|
|
2471
|
-
|
|
2477
|
+
Be(i.current, c) || (i.current = c, r(c));
|
|
2472
2478
|
});
|
|
2473
2479
|
const n = [];
|
|
2474
2480
|
for (const [c, s] of o.entries())
|
|
2475
2481
|
s && n.push(c);
|
|
2476
2482
|
return /* @__PURE__ */ a(
|
|
2477
|
-
|
|
2483
|
+
w,
|
|
2478
2484
|
{
|
|
2479
|
-
"data-testid": "jogging-joint-limit-detector",
|
|
2480
|
-
"aria-label": "jogging-joint-limit-detector",
|
|
2481
|
-
color: "error",
|
|
2482
2485
|
sx: {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
visibility: n.length ? "visible" : "hidden"
|
|
2486
|
+
display: "flex",
|
|
2487
|
+
flexDirection: "row",
|
|
2488
|
+
justifyContent: "center"
|
|
2487
2489
|
},
|
|
2488
|
-
children:
|
|
2489
|
-
|
|
2490
|
-
|
|
2490
|
+
children: /* @__PURE__ */ a(
|
|
2491
|
+
R,
|
|
2492
|
+
{
|
|
2493
|
+
"data-testid": "jogging-joint-limit-detector",
|
|
2494
|
+
"aria-label": "jogging-joint-limit-detector",
|
|
2495
|
+
color: "error",
|
|
2496
|
+
variant: "body2",
|
|
2497
|
+
sx: {
|
|
2498
|
+
fontSize: "0.75rem",
|
|
2499
|
+
lineHeight: 1.2,
|
|
2500
|
+
visibility: n.length ? "visible" : "hidden"
|
|
2501
|
+
},
|
|
2502
|
+
children: t("Jogging.JointLimitsReached.lb", {
|
|
2503
|
+
jointNumbers: n.map((c) => c + 1).join(", ")
|
|
2504
|
+
})
|
|
2505
|
+
}
|
|
2506
|
+
)
|
|
2491
2507
|
}
|
|
2492
2508
|
);
|
|
2493
2509
|
}
|
|
2494
|
-
),
|
|
2510
|
+
), Mo = ut($e)(({ theme: e }) => ({
|
|
2495
2511
|
"&.MuiFormControl-root": {
|
|
2496
2512
|
".MuiSelect-select": {
|
|
2497
2513
|
paddingTop: "20px",
|
|
@@ -2512,9 +2528,9 @@ function it({
|
|
|
2512
2528
|
labelValue: e,
|
|
2513
2529
|
...t
|
|
2514
2530
|
}) {
|
|
2515
|
-
return /* @__PURE__ */ S(
|
|
2516
|
-
/* @__PURE__ */ a(
|
|
2517
|
-
/* @__PURE__ */ a(
|
|
2531
|
+
return /* @__PURE__ */ S(Mo, { fullWidth: !0, variant: "filled", children: [
|
|
2532
|
+
/* @__PURE__ */ a(ze, { id: t.labelId, children: e }),
|
|
2533
|
+
/* @__PURE__ */ a(Ve, { ...t })
|
|
2518
2534
|
] });
|
|
2519
2535
|
}
|
|
2520
2536
|
const dt = [
|
|
@@ -2522,10 +2538,10 @@ const dt = [
|
|
|
2522
2538
|
{ id: "1", mm: 1, degrees: 0.5 },
|
|
2523
2539
|
{ id: "5", mm: 5, degrees: 2.5 },
|
|
2524
2540
|
{ id: "10", mm: 10, degrees: 5 }
|
|
2525
|
-
],
|
|
2541
|
+
], Io = [
|
|
2526
2542
|
{ id: "continuous" },
|
|
2527
2543
|
...dt
|
|
2528
|
-
],
|
|
2544
|
+
], ko = ["coordsys", "tool"];
|
|
2529
2545
|
class bt {
|
|
2530
2546
|
constructor(t, o, r, i, n) {
|
|
2531
2547
|
var c, s, l;
|
|
@@ -2540,7 +2556,7 @@ class bt {
|
|
|
2540
2556
|
}, this.loadFromLocalStorage(), this.disposers.push(kt(() => this.saveToLocalStorage())), this.disposers.push(
|
|
2541
2557
|
kt(() => {
|
|
2542
2558
|
const u = this.jogger.motionStream.rapidlyChangingMotionState.tcp;
|
|
2543
|
-
u && u !== this.selectedTcpId &&
|
|
2559
|
+
u && u !== this.selectedTcpId && D(() => {
|
|
2544
2560
|
this.selectedTcpId = u, this.tcpChangeInProgress = !1;
|
|
2545
2561
|
});
|
|
2546
2562
|
})
|
|
@@ -2584,7 +2600,7 @@ class bt {
|
|
|
2584
2600
|
this.jogger.dispose();
|
|
2585
2601
|
}
|
|
2586
2602
|
get coordSystemCountByName() {
|
|
2587
|
-
return
|
|
2603
|
+
return Ce(this.coordSystems, (t) => t.name);
|
|
2588
2604
|
}
|
|
2589
2605
|
async deactivate() {
|
|
2590
2606
|
this.jogger.mode === "jogging" && await this.jogger.setJoggingMode("off");
|
|
@@ -2631,7 +2647,7 @@ class bt {
|
|
|
2631
2647
|
}), t;
|
|
2632
2648
|
}
|
|
2633
2649
|
get incrementOptions() {
|
|
2634
|
-
return
|
|
2650
|
+
return Io;
|
|
2635
2651
|
}
|
|
2636
2652
|
get discreteIncrementOptions() {
|
|
2637
2653
|
return dt;
|
|
@@ -2689,7 +2705,7 @@ class bt {
|
|
|
2689
2705
|
this.selectedCoordSystemId = t;
|
|
2690
2706
|
}
|
|
2691
2707
|
/**
|
|
2692
|
-
* @deprecated Use {@link requestTcpChange} instead. This method now delegates
|
|
2708
|
+
* @deprecated Use {@link JoggingStore.requestTcpChange} instead. This method now delegates
|
|
2693
2709
|
* to `requestTcpChange` which properly communicates the TCP change to the server.
|
|
2694
2710
|
*/
|
|
2695
2711
|
setSelectedTcpId(t) {
|
|
@@ -2703,24 +2719,26 @@ class bt {
|
|
|
2703
2719
|
*
|
|
2704
2720
|
* If the jogger is actively jogging, the websocket is reinitialised with the new TCP.
|
|
2705
2721
|
* If the jogger is idle, a jogging websocket is briefly opened to communicate the
|
|
2706
|
-
* TCP change
|
|
2722
|
+
* TCP change. The websocket is kept open until the state-stream confirms the
|
|
2723
|
+
* change (or a 1s timeout), to ensure the backend has time to process it.
|
|
2707
2724
|
*/
|
|
2708
2725
|
async requestTcpChange(t) {
|
|
2709
2726
|
if (t === this.selectedTcpId) return;
|
|
2710
2727
|
this.tcpChangeInProgress = !0;
|
|
2711
2728
|
const o = this.jogger.tcp, r = this.jogger.mode !== "jogging";
|
|
2712
2729
|
try {
|
|
2713
|
-
this.jogger.tcp = t, r ?
|
|
2714
|
-
|
|
2715
|
-
|
|
2730
|
+
this.jogger.tcp = t, r ? await this.jogger.setJoggingMode("jogging") : await this.jogger.setJoggingMode("jogging", !1);
|
|
2731
|
+
let i = await this.waitForTcpConfirmation(t, 1e3);
|
|
2732
|
+
r && await this.jogger.setJoggingMode("off"), i || (i = await this.waitForTcpConfirmation(t, 2e3)), D(() => {
|
|
2716
2733
|
i ? this.selectedTcpId = t : (this.jogger.tcp = o, this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "");
|
|
2717
2734
|
});
|
|
2718
2735
|
} catch (i) {
|
|
2719
|
-
throw
|
|
2736
|
+
throw r && await this.jogger.setJoggingMode("off").catch(() => {
|
|
2737
|
+
}), D(() => {
|
|
2720
2738
|
this.jogger.tcp = o, this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
|
|
2721
2739
|
}), i;
|
|
2722
2740
|
} finally {
|
|
2723
|
-
|
|
2741
|
+
D(() => {
|
|
2724
2742
|
this.tcpChangeInProgress = !1;
|
|
2725
2743
|
});
|
|
2726
2744
|
}
|
|
@@ -2766,7 +2784,7 @@ class bt {
|
|
|
2766
2784
|
}
|
|
2767
2785
|
/** Lock the UI until the given async callback resolves */
|
|
2768
2786
|
async withMotionLock(t) {
|
|
2769
|
-
const o =
|
|
2787
|
+
const o = Ne();
|
|
2770
2788
|
this.lock(o);
|
|
2771
2789
|
try {
|
|
2772
2790
|
return await t();
|
|
@@ -2775,10 +2793,10 @@ class bt {
|
|
|
2775
2793
|
}
|
|
2776
2794
|
}
|
|
2777
2795
|
}
|
|
2778
|
-
const
|
|
2796
|
+
const Ro = J(
|
|
2779
2797
|
({ store: e, useDegree: t }) => {
|
|
2780
2798
|
var c;
|
|
2781
|
-
const { t: o } =
|
|
2799
|
+
const { t: o } = z(), r = ie(), i = [];
|
|
2782
2800
|
function n(s) {
|
|
2783
2801
|
switch (s) {
|
|
2784
2802
|
case "coordsys":
|
|
@@ -2801,7 +2819,7 @@ const ko = J(
|
|
|
2801
2819
|
displayEmpty: !0,
|
|
2802
2820
|
onChange: (s) => e.setSelectedCoordSystemId(s.target.value),
|
|
2803
2821
|
disabled: e.isLocked,
|
|
2804
|
-
children: e.coordSystems.map((s) => /* @__PURE__ */ a(
|
|
2822
|
+
children: e.coordSystems.map((s) => /* @__PURE__ */ a(Y, { value: s.coordinate_system, children: s.name && e.coordSystemCountByName[s.name] > 1 ? `${s.name} / ${s.coordinate_system}` : s.name || s.coordinate_system }, s.coordinate_system))
|
|
2805
2823
|
},
|
|
2806
2824
|
"coord"
|
|
2807
2825
|
)
|
|
@@ -2821,8 +2839,8 @@ const ko = J(
|
|
|
2821
2839
|
});
|
|
2822
2840
|
},
|
|
2823
2841
|
disabled: e.isLocked || e.tcpChangeInProgress,
|
|
2824
|
-
endAdornment: e.tcpChangeInProgress ? /* @__PURE__ */ a(
|
|
2825
|
-
children: e.tcps.map((s) => /* @__PURE__ */ a(
|
|
2842
|
+
endAdornment: e.tcpChangeInProgress ? /* @__PURE__ */ a(Le, { position: "end", children: /* @__PURE__ */ a(Wt, { size: 16 }) }) : void 0,
|
|
2843
|
+
children: e.tcps.map((s) => /* @__PURE__ */ a(Y, { value: s.id, children: s.id }, s.id))
|
|
2826
2844
|
},
|
|
2827
2845
|
"tcp"
|
|
2828
2846
|
)
|
|
@@ -2835,7 +2853,7 @@ const ko = J(
|
|
|
2835
2853
|
value: e.selectedOrientation,
|
|
2836
2854
|
onChange: (s) => e.setSelectedOrientation(s.target.value),
|
|
2837
2855
|
disabled: e.isLocked,
|
|
2838
|
-
children:
|
|
2856
|
+
children: ko.map((s) => /* @__PURE__ */ a(Y, { value: s, children: n(s) }, s))
|
|
2839
2857
|
},
|
|
2840
2858
|
"orientation"
|
|
2841
2859
|
)
|
|
@@ -2853,14 +2871,14 @@ const ko = J(
|
|
|
2853
2871
|
),
|
|
2854
2872
|
disabled: e.isLocked,
|
|
2855
2873
|
children: [
|
|
2856
|
-
/* @__PURE__ */ a(
|
|
2857
|
-
e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((s) => /* @__PURE__ */ a(
|
|
2874
|
+
/* @__PURE__ */ a(Y, { value: "continuous", children: o("Jogging.Increment.Continuous.dd") }, "continuous"),
|
|
2875
|
+
e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((s) => /* @__PURE__ */ a(Y, { value: s.id, children: t ? `${s.degrees}°` : `${s.mm}mm` }, s.id))
|
|
2858
2876
|
]
|
|
2859
2877
|
},
|
|
2860
2878
|
"increment"
|
|
2861
2879
|
)
|
|
2862
2880
|
), /* @__PURE__ */ a(
|
|
2863
|
-
|
|
2881
|
+
w,
|
|
2864
2882
|
{
|
|
2865
2883
|
component: "div",
|
|
2866
2884
|
"data-testid": "jogging-options",
|
|
@@ -2873,7 +2891,7 @@ const ko = J(
|
|
|
2873
2891
|
"& label": { opacity: 0.7, fontSize: "12px", marginBottom: "4px" }
|
|
2874
2892
|
},
|
|
2875
2893
|
children: i.map((s, l) => /* @__PURE__ */ a(
|
|
2876
|
-
|
|
2894
|
+
w,
|
|
2877
2895
|
{
|
|
2878
2896
|
sx: {
|
|
2879
2897
|
gridColumn: i.length % 2 === 1 && l === i.length - 1 ? "span 2" : "auto"
|
|
@@ -2885,7 +2903,7 @@ const ko = J(
|
|
|
2885
2903
|
}
|
|
2886
2904
|
);
|
|
2887
2905
|
}
|
|
2888
|
-
),
|
|
2906
|
+
), jo = ut(We)(({ theme: e }) => {
|
|
2889
2907
|
var t;
|
|
2890
2908
|
return {
|
|
2891
2909
|
"&.MuiToggleButtonGroup-root": {
|
|
@@ -2907,14 +2925,14 @@ const ko = J(
|
|
|
2907
2925
|
}
|
|
2908
2926
|
}
|
|
2909
2927
|
};
|
|
2910
|
-
}),
|
|
2928
|
+
}), Eo = J((e) => {
|
|
2911
2929
|
var n, c, s;
|
|
2912
|
-
const t =
|
|
2930
|
+
const t = B(), { store: o } = e, { t: r } = z();
|
|
2913
2931
|
function i(l, u) {
|
|
2914
|
-
u === e.velocity || !
|
|
2932
|
+
u === e.velocity || !Ge(u) || e.onVelocityChange(u, e.useDegree);
|
|
2915
2933
|
}
|
|
2916
2934
|
return /* @__PURE__ */ S(
|
|
2917
|
-
|
|
2935
|
+
P,
|
|
2918
2936
|
{
|
|
2919
2937
|
direction: "row",
|
|
2920
2938
|
gap: 2,
|
|
@@ -2923,7 +2941,7 @@ const ko = J(
|
|
|
2923
2941
|
"aria-label": "velocity-slider",
|
|
2924
2942
|
children: [
|
|
2925
2943
|
o.showVelocityLegend && /* @__PURE__ */ a(
|
|
2926
|
-
|
|
2944
|
+
R,
|
|
2927
2945
|
{
|
|
2928
2946
|
sx: {
|
|
2929
2947
|
color: (s = (c = (n = t.componentsExt) == null ? void 0 : n.JoggingPanel) == null ? void 0 : c.VelocitySlider) == null ? void 0 : s.sliderLegendColor,
|
|
@@ -2958,9 +2976,9 @@ const ko = J(
|
|
|
2958
2976
|
});
|
|
2959
2977
|
function Yt({ value: e, sx: t }) {
|
|
2960
2978
|
var r;
|
|
2961
|
-
const o =
|
|
2979
|
+
const o = B();
|
|
2962
2980
|
return /* @__PURE__ */ a(
|
|
2963
|
-
|
|
2981
|
+
P,
|
|
2964
2982
|
{
|
|
2965
2983
|
direction: "row",
|
|
2966
2984
|
justifyContent: "center",
|
|
@@ -2974,7 +2992,7 @@ function Yt({ value: e, sx: t }) {
|
|
|
2974
2992
|
...t
|
|
2975
2993
|
},
|
|
2976
2994
|
children: /* @__PURE__ */ a(
|
|
2977
|
-
|
|
2995
|
+
R,
|
|
2978
2996
|
{
|
|
2979
2997
|
component: "span",
|
|
2980
2998
|
sx: {
|
|
@@ -2992,12 +3010,12 @@ function Yt({ value: e, sx: t }) {
|
|
|
2992
3010
|
}
|
|
2993
3011
|
const Zt = J(
|
|
2994
3012
|
({ store: e, useDegree: t }) => {
|
|
2995
|
-
const { t: o } =
|
|
3013
|
+
const { t: o } = z();
|
|
2996
3014
|
function r(i, n) {
|
|
2997
3015
|
return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: i })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: i })}`;
|
|
2998
3016
|
}
|
|
2999
3017
|
return /* @__PURE__ */ a(
|
|
3000
|
-
|
|
3018
|
+
Eo,
|
|
3001
3019
|
{
|
|
3002
3020
|
store: e,
|
|
3003
3021
|
velocity: e.velocityInDisplayUnits(t),
|
|
@@ -3021,12 +3039,53 @@ const Zt = J(
|
|
|
3021
3039
|
}
|
|
3022
3040
|
);
|
|
3023
3041
|
}
|
|
3024
|
-
),
|
|
3042
|
+
), Qt = J(({ store: e }) => {
|
|
3043
|
+
var i, n, c;
|
|
3044
|
+
const { t } = z(), o = B(), r = ((c = (n = (i = e.jogger.motionStream.rapidlyChangingMotionState.execute) == null ? void 0 : i.details) == null ? void 0 : n.state) == null ? void 0 : c.kind) ?? "KIND_UNKNOWN";
|
|
3045
|
+
return /* @__PURE__ */ S(
|
|
3046
|
+
w,
|
|
3047
|
+
{
|
|
3048
|
+
sx: {
|
|
3049
|
+
display: "flex",
|
|
3050
|
+
flexDirection: "row",
|
|
3051
|
+
justifyContent: "space-between",
|
|
3052
|
+
color: o.palette.text.primary
|
|
3053
|
+
},
|
|
3054
|
+
children: [
|
|
3055
|
+
/* @__PURE__ */ a(
|
|
3056
|
+
R,
|
|
3057
|
+
{
|
|
3058
|
+
variant: "body2",
|
|
3059
|
+
sx: {
|
|
3060
|
+
fontSize: "0.75rem",
|
|
3061
|
+
// Smaller than body2
|
|
3062
|
+
lineHeight: 1.2
|
|
3063
|
+
},
|
|
3064
|
+
children: t("Jogging.StreamStateSection.lb")
|
|
3065
|
+
}
|
|
3066
|
+
),
|
|
3067
|
+
/* @__PURE__ */ a(
|
|
3068
|
+
R,
|
|
3069
|
+
{
|
|
3070
|
+
variant: "body2",
|
|
3071
|
+
sx: {
|
|
3072
|
+
fontSize: "0.75rem",
|
|
3073
|
+
// Smaller than body2
|
|
3074
|
+
lineHeight: 1.2
|
|
3075
|
+
},
|
|
3076
|
+
"data-testid": r,
|
|
3077
|
+
children: t(`Jogging.StreamStateSection.${r}.lb`)
|
|
3078
|
+
}
|
|
3079
|
+
)
|
|
3080
|
+
]
|
|
3081
|
+
}
|
|
3082
|
+
);
|
|
3083
|
+
}), _o = J(
|
|
3025
3084
|
({
|
|
3026
3085
|
store: e,
|
|
3027
3086
|
children: t
|
|
3028
3087
|
}) => {
|
|
3029
|
-
const { t: o } =
|
|
3088
|
+
const { t: o } = z(), r = B();
|
|
3030
3089
|
function i(d, p) {
|
|
3031
3090
|
(p === "translate" || p === "rotate") && e.setSelectedCartesianMotionType(p);
|
|
3032
3091
|
}
|
|
@@ -3049,7 +3108,7 @@ const Zt = J(
|
|
|
3049
3108
|
distanceMm: p.mm
|
|
3050
3109
|
} : {
|
|
3051
3110
|
type: "rotate",
|
|
3052
|
-
distanceRads:
|
|
3111
|
+
distanceRads: Ie(p.degrees)
|
|
3053
3112
|
}
|
|
3054
3113
|
});
|
|
3055
3114
|
} finally {
|
|
@@ -3084,12 +3143,12 @@ const Zt = J(
|
|
|
3084
3143
|
const u = [
|
|
3085
3144
|
{
|
|
3086
3145
|
id: "x",
|
|
3087
|
-
icon: /* @__PURE__ */ a(
|
|
3146
|
+
icon: /* @__PURE__ */ a(Oe, {}),
|
|
3088
3147
|
colors: l("X", e.selectedCartesianMotionType, r)
|
|
3089
3148
|
},
|
|
3090
3149
|
{
|
|
3091
3150
|
id: "y",
|
|
3092
|
-
icon: /* @__PURE__ */ a(
|
|
3151
|
+
icon: /* @__PURE__ */ a(De, {}),
|
|
3093
3152
|
colors: l("Y", e.selectedCartesianMotionType, r)
|
|
3094
3153
|
},
|
|
3095
3154
|
{
|
|
@@ -3107,7 +3166,7 @@ const Zt = J(
|
|
|
3107
3166
|
});
|
|
3108
3167
|
}
|
|
3109
3168
|
return /* @__PURE__ */ S(
|
|
3110
|
-
|
|
3169
|
+
P,
|
|
3111
3170
|
{
|
|
3112
3171
|
"data-testid": "jogging-cartesian-tab",
|
|
3113
3172
|
"aria-label": "jogging-cartesian-tab",
|
|
@@ -3115,9 +3174,9 @@ const Zt = J(
|
|
|
3115
3174
|
gap: 2,
|
|
3116
3175
|
sx: { padding: "18px 24px" },
|
|
3117
3176
|
children: [
|
|
3118
|
-
/* @__PURE__ */ S(
|
|
3177
|
+
/* @__PURE__ */ S(P, { gap: 2, children: [
|
|
3119
3178
|
/* @__PURE__ */ a(
|
|
3120
|
-
|
|
3179
|
+
Ro,
|
|
3121
3180
|
{
|
|
3122
3181
|
store: e,
|
|
3123
3182
|
useDegree: e.selectedCartesianMotionType === "rotate"
|
|
@@ -3130,10 +3189,10 @@ const Zt = J(
|
|
|
3130
3189
|
useDegree: e.selectedCartesianMotionType === "rotate"
|
|
3131
3190
|
}
|
|
3132
3191
|
),
|
|
3133
|
-
/* @__PURE__ */ a(
|
|
3192
|
+
/* @__PURE__ */ a(U, {})
|
|
3134
3193
|
] }),
|
|
3135
3194
|
/* @__PURE__ */ a(
|
|
3136
|
-
|
|
3195
|
+
P,
|
|
3137
3196
|
{
|
|
3138
3197
|
marginLeft: "auto",
|
|
3139
3198
|
marginRight: "auto",
|
|
@@ -3141,7 +3200,7 @@ const Zt = J(
|
|
|
3141
3200
|
justifyContent: "center",
|
|
3142
3201
|
sx: { flexGrow: "1" },
|
|
3143
3202
|
children: /* @__PURE__ */ S(
|
|
3144
|
-
|
|
3203
|
+
P,
|
|
3145
3204
|
{
|
|
3146
3205
|
alignItems: "center",
|
|
3147
3206
|
justifyContent: "center",
|
|
@@ -3149,7 +3208,7 @@ const Zt = J(
|
|
|
3149
3208
|
sx: { flexGrow: 1 },
|
|
3150
3209
|
children: [
|
|
3151
3210
|
/* @__PURE__ */ S(
|
|
3152
|
-
|
|
3211
|
+
jo,
|
|
3153
3212
|
{
|
|
3154
3213
|
value: e.selectedCartesianMotionType,
|
|
3155
3214
|
onChange: i,
|
|
@@ -3165,7 +3224,7 @@ const Zt = J(
|
|
|
3165
3224
|
e.selectedCartesianMotionType === "translate" && u.map((d) => {
|
|
3166
3225
|
var p, x;
|
|
3167
3226
|
return /* @__PURE__ */ a(
|
|
3168
|
-
|
|
3227
|
+
Pt,
|
|
3169
3228
|
{
|
|
3170
3229
|
"data-testid": `jogging-cartesian-axis-control-${d.id}`,
|
|
3171
3230
|
"aria-label": `jogging-cartesian-axis-control-${d.id}`,
|
|
@@ -3175,7 +3234,7 @@ const Zt = J(
|
|
|
3175
3234
|
label: /* @__PURE__ */ S(et, { children: [
|
|
3176
3235
|
d.icon,
|
|
3177
3236
|
/* @__PURE__ */ a(
|
|
3178
|
-
|
|
3237
|
+
R,
|
|
3179
3238
|
{
|
|
3180
3239
|
sx: {
|
|
3181
3240
|
fontSize: "24px",
|
|
@@ -3204,7 +3263,7 @@ const Zt = J(
|
|
|
3204
3263
|
e.selectedCartesianMotionType === "rotate" && u.map((d) => {
|
|
3205
3264
|
var p, x;
|
|
3206
3265
|
return /* @__PURE__ */ a(
|
|
3207
|
-
|
|
3266
|
+
Pt,
|
|
3208
3267
|
{
|
|
3209
3268
|
"data-testid": `jogging-cartesian-axis-control-${d.id}`,
|
|
3210
3269
|
"aria-label": `jogging-cartesian-axis-control-${d.id}`,
|
|
@@ -3212,9 +3271,9 @@ const Zt = J(
|
|
|
3212
3271
|
disabled: e.isLocked,
|
|
3213
3272
|
activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === d.id ? e.incrementJogInProgress.direction : void 0,
|
|
3214
3273
|
label: /* @__PURE__ */ S(et, { children: [
|
|
3215
|
-
/* @__PURE__ */ a(
|
|
3274
|
+
/* @__PURE__ */ a(Je, {}),
|
|
3216
3275
|
/* @__PURE__ */ a(
|
|
3217
|
-
|
|
3276
|
+
R,
|
|
3218
3277
|
{
|
|
3219
3278
|
sx: {
|
|
3220
3279
|
fontSize: "24px",
|
|
@@ -3246,7 +3305,9 @@ const Zt = J(
|
|
|
3246
3305
|
}
|
|
3247
3306
|
),
|
|
3248
3307
|
/* @__PURE__ */ a(qt, { store: e }),
|
|
3249
|
-
|
|
3308
|
+
/* @__PURE__ */ a(U, {}),
|
|
3309
|
+
/* @__PURE__ */ a(Qt, { store: e }),
|
|
3310
|
+
t && /* @__PURE__ */ a(U, {}),
|
|
3250
3311
|
t
|
|
3251
3312
|
]
|
|
3252
3313
|
}
|
|
@@ -3254,7 +3315,7 @@ const Zt = J(
|
|
|
3254
3315
|
}
|
|
3255
3316
|
), Po = J(
|
|
3256
3317
|
({ store: e, children: t }) => {
|
|
3257
|
-
const o =
|
|
3318
|
+
const o = B();
|
|
3258
3319
|
async function r(n) {
|
|
3259
3320
|
await e.activate(), await e.jogger.rotateJoints({
|
|
3260
3321
|
joint: n.joint,
|
|
@@ -3267,7 +3328,7 @@ const Zt = J(
|
|
|
3267
3328
|
await e.jogger.stop(), await e.deactivate();
|
|
3268
3329
|
}
|
|
3269
3330
|
return /* @__PURE__ */ S(
|
|
3270
|
-
|
|
3331
|
+
P,
|
|
3271
3332
|
{
|
|
3272
3333
|
"data-testid": "jogging-joint-tab",
|
|
3273
3334
|
"aria-label": "jogging-joint-tab",
|
|
@@ -3282,15 +3343,15 @@ const Zt = J(
|
|
|
3282
3343
|
useDegree: e.jointType === G.RevoluteJoint
|
|
3283
3344
|
}
|
|
3284
3345
|
),
|
|
3285
|
-
/* @__PURE__ */ a(
|
|
3346
|
+
/* @__PURE__ */ a(U, {}),
|
|
3286
3347
|
/* @__PURE__ */ a(
|
|
3287
|
-
|
|
3348
|
+
P,
|
|
3288
3349
|
{
|
|
3289
3350
|
justifyContent: "center",
|
|
3290
3351
|
alignItems: "stretch",
|
|
3291
3352
|
sx: { flexGrow: "1" },
|
|
3292
3353
|
children: /* @__PURE__ */ a(
|
|
3293
|
-
|
|
3354
|
+
P,
|
|
3294
3355
|
{
|
|
3295
3356
|
"data-testid": "jogging-joint-value-controls-wrapper",
|
|
3296
3357
|
"aria-label": "jogging-joint-value-controls-wrapper",
|
|
@@ -3300,7 +3361,7 @@ const Zt = J(
|
|
|
3300
3361
|
var s, l, u;
|
|
3301
3362
|
const c = (u = (l = (s = e.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : s.joints) == null ? void 0 : l[n.index]) == null ? void 0 : u.position;
|
|
3302
3363
|
return /* @__PURE__ */ S(
|
|
3303
|
-
|
|
3364
|
+
P,
|
|
3304
3365
|
{
|
|
3305
3366
|
"data-testid": `jogging-joint-value-control-${n.index}`,
|
|
3306
3367
|
"aria-label": `jogging-joint-value-control-${n.index}`,
|
|
@@ -3311,14 +3372,14 @@ const Zt = J(
|
|
|
3311
3372
|
width: "100%",
|
|
3312
3373
|
children: [
|
|
3313
3374
|
e.showJointsLegend && /* @__PURE__ */ a(
|
|
3314
|
-
|
|
3375
|
+
R,
|
|
3315
3376
|
{
|
|
3316
3377
|
color: e.isLocked ? o.palette.text.disabled : o.palette.text.secondary,
|
|
3317
3378
|
children: `G${n.index + 1}`
|
|
3318
3379
|
}
|
|
3319
3380
|
),
|
|
3320
3381
|
/* @__PURE__ */ a(
|
|
3321
|
-
|
|
3382
|
+
yo,
|
|
3322
3383
|
{
|
|
3323
3384
|
disabled: e.isLocked,
|
|
3324
3385
|
lowerLimit: c == null ? void 0 : c.lower_limit,
|
|
@@ -3345,20 +3406,22 @@ const Zt = J(
|
|
|
3345
3406
|
}
|
|
3346
3407
|
),
|
|
3347
3408
|
/* @__PURE__ */ a(qt, { store: e }),
|
|
3348
|
-
|
|
3409
|
+
/* @__PURE__ */ a(U, {}),
|
|
3410
|
+
/* @__PURE__ */ a(Qt, { store: e }),
|
|
3411
|
+
t && /* @__PURE__ */ a(U, {}),
|
|
3349
3412
|
t
|
|
3350
3413
|
]
|
|
3351
3414
|
}
|
|
3352
3415
|
);
|
|
3353
3416
|
}
|
|
3354
|
-
),
|
|
3417
|
+
), pi = $(
|
|
3355
3418
|
J((e) => {
|
|
3356
|
-
const t =
|
|
3419
|
+
const t = we(e.nova) ? new ye({ instanceUrl: e.nova }) : e.nova, o = Lt(() => ({
|
|
3357
3420
|
joggingStore: null,
|
|
3358
3421
|
loadingError: null
|
|
3359
3422
|
}));
|
|
3360
3423
|
async function r() {
|
|
3361
|
-
|
|
3424
|
+
D(() => {
|
|
3362
3425
|
o.loadingError = null, o.joggingStore = null;
|
|
3363
3426
|
});
|
|
3364
3427
|
try {
|
|
@@ -3367,21 +3430,21 @@ const Zt = J(
|
|
|
3367
3430
|
const n = await ft.open(t, e.motionGroupId);
|
|
3368
3431
|
i = await bt.loadFor(n);
|
|
3369
3432
|
}
|
|
3370
|
-
|
|
3433
|
+
D(() => {
|
|
3371
3434
|
o.joggingStore = i;
|
|
3372
3435
|
}), e.onSetup && e.onSetup(i);
|
|
3373
3436
|
} catch (i) {
|
|
3374
3437
|
o.loadingError = i;
|
|
3375
3438
|
}
|
|
3376
3439
|
}
|
|
3377
|
-
return
|
|
3440
|
+
return F(() => (r(), e.store ? () => null : () => {
|
|
3378
3441
|
var i;
|
|
3379
3442
|
(i = o.joggingStore) == null || i.dispose();
|
|
3380
|
-
}), [e.store, e.nova, e.motionGroupId]),
|
|
3443
|
+
}), [e.store, e.nova, e.motionGroupId]), F(() => {
|
|
3381
3444
|
const i = o.joggingStore;
|
|
3382
3445
|
i && (e.locked ? i.lock("external") : i.unlock("external"));
|
|
3383
3446
|
}, [o.joggingStore, e.locked]), /* @__PURE__ */ a(
|
|
3384
|
-
|
|
3447
|
+
P,
|
|
3385
3448
|
{
|
|
3386
3449
|
"data-testid": "jogging-panel",
|
|
3387
3450
|
"aria-label": "jogging-panel",
|
|
@@ -3391,23 +3454,23 @@ const Zt = J(
|
|
|
3391
3454
|
position: "relative",
|
|
3392
3455
|
...e.sx
|
|
3393
3456
|
},
|
|
3394
|
-
children: o.joggingStore ? /* @__PURE__ */ a(
|
|
3457
|
+
children: o.joggingStore ? /* @__PURE__ */ a(Oo, { store: o.joggingStore, children: e.children }) : /* @__PURE__ */ a(Co, { message: "Loading jogging", error: o.loadingError })
|
|
3395
3458
|
}
|
|
3396
3459
|
);
|
|
3397
3460
|
})
|
|
3398
|
-
),
|
|
3461
|
+
), Oo = J(
|
|
3399
3462
|
({
|
|
3400
3463
|
store: e,
|
|
3401
3464
|
children: t
|
|
3402
3465
|
}) => {
|
|
3403
|
-
const { t: o } =
|
|
3466
|
+
const { t: o } = z();
|
|
3404
3467
|
function r() {
|
|
3405
3468
|
if (e.currentTab.id === "cartesian")
|
|
3406
|
-
return /* @__PURE__ */ a(
|
|
3469
|
+
return /* @__PURE__ */ a(_o, { store: e, children: t });
|
|
3407
3470
|
if (e.currentTab.id === "joint")
|
|
3408
3471
|
return /* @__PURE__ */ a(Po, { store: e, children: t });
|
|
3409
3472
|
}
|
|
3410
|
-
return /* @__PURE__ */ S(
|
|
3473
|
+
return /* @__PURE__ */ S(P, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
|
|
3411
3474
|
/* @__PURE__ */ a(
|
|
3412
3475
|
Vt,
|
|
3413
3476
|
{
|
|
@@ -3417,13 +3480,13 @@ const Zt = J(
|
|
|
3417
3480
|
onChange: e.onTabChange,
|
|
3418
3481
|
variant: "fullWidth",
|
|
3419
3482
|
children: e.tabs.map((i) => {
|
|
3420
|
-
const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(
|
|
3483
|
+
const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(be, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(xe, { fontSize: "small", sx: { mr: 1 } });
|
|
3421
3484
|
return /* @__PURE__ */ a(
|
|
3422
3485
|
zt,
|
|
3423
3486
|
{
|
|
3424
3487
|
"data-testid": `jogging-tab-${i.id}`,
|
|
3425
3488
|
"aria-label": `jogging-tab-${i.id}`,
|
|
3426
|
-
label: e.showTabIcons ? /* @__PURE__ */ S(
|
|
3489
|
+
label: e.showTabIcons ? /* @__PURE__ */ S(P, { direction: "row", alignItems: "center", children: [
|
|
3427
3490
|
c,
|
|
3428
3491
|
n
|
|
3429
3492
|
] }) : n,
|
|
@@ -3436,7 +3499,7 @@ const Zt = J(
|
|
|
3436
3499
|
}
|
|
3437
3500
|
),
|
|
3438
3501
|
/* @__PURE__ */ a(
|
|
3439
|
-
|
|
3502
|
+
P,
|
|
3440
3503
|
{
|
|
3441
3504
|
flexGrow: 1,
|
|
3442
3505
|
position: "relative",
|
|
@@ -3444,12 +3507,12 @@ const Zt = J(
|
|
|
3444
3507
|
children: r()
|
|
3445
3508
|
}
|
|
3446
3509
|
),
|
|
3447
|
-
e.blocked && /* @__PURE__ */ a(
|
|
3510
|
+
e.blocked && /* @__PURE__ */ a(To, { store: e })
|
|
3448
3511
|
] });
|
|
3449
3512
|
}
|
|
3450
|
-
),
|
|
3513
|
+
), Xt = (e) => {
|
|
3451
3514
|
var s;
|
|
3452
|
-
const { value: t, ref: o } = e, r =
|
|
3515
|
+
const { value: t, ref: o } = e, r = B(), [i, n] = L(!1);
|
|
3453
3516
|
async function c() {
|
|
3454
3517
|
if (!o || !("current" in o))
|
|
3455
3518
|
return console.warn("No copy target found"), !1;
|
|
@@ -3465,15 +3528,15 @@ const Zt = J(
|
|
|
3465
3528
|
}
|
|
3466
3529
|
return !1;
|
|
3467
3530
|
}
|
|
3468
|
-
return
|
|
3531
|
+
return F(() => {
|
|
3469
3532
|
if (!i)
|
|
3470
3533
|
return;
|
|
3471
3534
|
const l = setTimeout(() => n(!1), 3e3);
|
|
3472
3535
|
return () => {
|
|
3473
3536
|
l && clearTimeout(l);
|
|
3474
3537
|
};
|
|
3475
|
-
}, [i]), /* @__PURE__ */ a(
|
|
3476
|
-
|
|
3538
|
+
}, [i]), /* @__PURE__ */ a(Ye, { open: i, title: "Copied!", children: /* @__PURE__ */ a(
|
|
3539
|
+
P,
|
|
3477
3540
|
{
|
|
3478
3541
|
justifyContent: "center",
|
|
3479
3542
|
sx: {
|
|
@@ -3487,7 +3550,7 @@ const Zt = J(
|
|
|
3487
3550
|
},
|
|
3488
3551
|
onClick: () => c(),
|
|
3489
3552
|
children: /* @__PURE__ */ a(
|
|
3490
|
-
|
|
3553
|
+
R,
|
|
3491
3554
|
{
|
|
3492
3555
|
ref: o,
|
|
3493
3556
|
align: "center",
|
|
@@ -3506,11 +3569,11 @@ const Zt = J(
|
|
|
3506
3569
|
)
|
|
3507
3570
|
}
|
|
3508
3571
|
) });
|
|
3509
|
-
},
|
|
3572
|
+
}, mi = $(
|
|
3510
3573
|
J(({ tcpPose: e, showCopyButton: t = !1 }) => {
|
|
3511
|
-
const [o, r] =
|
|
3574
|
+
const [o, r] = L(null), i = Se(e);
|
|
3512
3575
|
return /* @__PURE__ */ S(
|
|
3513
|
-
|
|
3576
|
+
P,
|
|
3514
3577
|
{
|
|
3515
3578
|
direction: "row",
|
|
3516
3579
|
alignItems: "center",
|
|
@@ -3518,7 +3581,7 @@ const Zt = J(
|
|
|
3518
3581
|
sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
|
|
3519
3582
|
"data-testid": "pose-cartesian-values",
|
|
3520
3583
|
children: [
|
|
3521
|
-
/* @__PURE__ */ a(
|
|
3584
|
+
/* @__PURE__ */ a(Xt, { value: i }),
|
|
3522
3585
|
t && /* @__PURE__ */ a(
|
|
3523
3586
|
Z,
|
|
3524
3587
|
{
|
|
@@ -3540,11 +3603,11 @@ const Zt = J(
|
|
|
3540
3603
|
}
|
|
3541
3604
|
);
|
|
3542
3605
|
})
|
|
3543
|
-
),
|
|
3606
|
+
), hi = $(
|
|
3544
3607
|
J(({ joints: e, showCopyButton: t = !1 }) => {
|
|
3545
|
-
const [o, r] =
|
|
3608
|
+
const [o, r] = L(null), i = `[${e.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
|
|
3546
3609
|
return /* @__PURE__ */ S(
|
|
3547
|
-
|
|
3610
|
+
P,
|
|
3548
3611
|
{
|
|
3549
3612
|
direction: "row",
|
|
3550
3613
|
alignItems: "center",
|
|
@@ -3552,7 +3615,7 @@ const Zt = J(
|
|
|
3552
3615
|
sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
|
|
3553
3616
|
"data-testid": "pose-joint-values",
|
|
3554
3617
|
children: [
|
|
3555
|
-
/* @__PURE__ */ a(
|
|
3618
|
+
/* @__PURE__ */ a(Xt, { value: i }),
|
|
3556
3619
|
t && /* @__PURE__ */ a(
|
|
3557
3620
|
Z,
|
|
3558
3621
|
{
|
|
@@ -3575,7 +3638,7 @@ const Zt = J(
|
|
|
3575
3638
|
);
|
|
3576
3639
|
})
|
|
3577
3640
|
);
|
|
3578
|
-
class
|
|
3641
|
+
class Do {
|
|
3579
3642
|
constructor() {
|
|
3580
3643
|
this.messages = [], this.addMessage = (t, o = "info") => {
|
|
3581
3644
|
const r = {
|
|
@@ -3595,8 +3658,8 @@ class Oo {
|
|
|
3595
3658
|
this.addMessage(t, "error");
|
|
3596
3659
|
}, this.addDebug = (t) => {
|
|
3597
3660
|
this.addMessage(t, "debug");
|
|
3598
|
-
},
|
|
3599
|
-
messages:
|
|
3661
|
+
}, Te(this, {
|
|
3662
|
+
messages: Me,
|
|
3600
3663
|
addMessage: Rt,
|
|
3601
3664
|
clearMessages: Rt
|
|
3602
3665
|
});
|
|
@@ -3607,11 +3670,11 @@ const st = (e, t, o) => ({
|
|
|
3607
3670
|
timestamp: /* @__PURE__ */ new Date(),
|
|
3608
3671
|
message: e,
|
|
3609
3672
|
level: t
|
|
3610
|
-
}),
|
|
3673
|
+
}), fi = (e, t) => st(e, "debug", t), bi = (e, t) => st(e, "info", t), xi = (e, t) => st(e, "warning", t), yi = (e, t) => st(e, "error", t), Ao = $(
|
|
3611
3674
|
J((e) => {
|
|
3612
3675
|
var f;
|
|
3613
|
-
const { messages: t = [], onClear: o, height: r = 400, sx: i } = e, n =
|
|
3614
|
-
|
|
3676
|
+
const { messages: t = [], onClear: o, height: r = 400, sx: i } = e, n = B(), c = A(null);
|
|
3677
|
+
F(() => {
|
|
3615
3678
|
if (t.length === 0) return;
|
|
3616
3679
|
const g = c.current;
|
|
3617
3680
|
if (!g) return;
|
|
@@ -3639,15 +3702,15 @@ const st = (e, t, o) => ({
|
|
|
3639
3702
|
return n.palette.text.secondary;
|
|
3640
3703
|
}
|
|
3641
3704
|
}, u = ({ message: g }) => {
|
|
3642
|
-
const [d, p] =
|
|
3705
|
+
const [d, p] = L(!1), [x, y] = L(!1), [h, m] = L(!1), v = g.message.length > 150, b = async () => {
|
|
3643
3706
|
try {
|
|
3644
3707
|
await navigator.clipboard.writeText(g.message), y(!0), setTimeout(() => y(!1), 2e3);
|
|
3645
3708
|
} catch (C) {
|
|
3646
3709
|
console.error("Failed to copy message:", C);
|
|
3647
3710
|
}
|
|
3648
|
-
},
|
|
3711
|
+
}, T = v && !d ? `${g.message.substring(0, 150)}...` : g.message;
|
|
3649
3712
|
return /* @__PURE__ */ a(
|
|
3650
|
-
|
|
3713
|
+
w,
|
|
3651
3714
|
{
|
|
3652
3715
|
onMouseEnter: () => m(!0),
|
|
3653
3716
|
onMouseLeave: () => m(!1),
|
|
@@ -3663,9 +3726,9 @@ const st = (e, t, o) => ({
|
|
|
3663
3726
|
padding: "2px 4px",
|
|
3664
3727
|
margin: "-2px -4px"
|
|
3665
3728
|
},
|
|
3666
|
-
children: /* @__PURE__ */ S(
|
|
3729
|
+
children: /* @__PURE__ */ S(w, { sx: { display: "flex", gap: 1 }, children: [
|
|
3667
3730
|
/* @__PURE__ */ S(
|
|
3668
|
-
|
|
3731
|
+
R,
|
|
3669
3732
|
{
|
|
3670
3733
|
component: "span",
|
|
3671
3734
|
sx: {
|
|
@@ -3685,7 +3748,7 @@ const st = (e, t, o) => ({
|
|
|
3685
3748
|
}
|
|
3686
3749
|
),
|
|
3687
3750
|
/* @__PURE__ */ a(
|
|
3688
|
-
|
|
3751
|
+
R,
|
|
3689
3752
|
{
|
|
3690
3753
|
component: "span",
|
|
3691
3754
|
sx: {
|
|
@@ -3700,11 +3763,11 @@ const st = (e, t, o) => ({
|
|
|
3700
3763
|
flex: 1,
|
|
3701
3764
|
whiteSpace: "pre-wrap"
|
|
3702
3765
|
},
|
|
3703
|
-
children:
|
|
3766
|
+
children: T
|
|
3704
3767
|
}
|
|
3705
3768
|
),
|
|
3706
3769
|
/* @__PURE__ */ S(
|
|
3707
|
-
|
|
3770
|
+
w,
|
|
3708
3771
|
{
|
|
3709
3772
|
sx: {
|
|
3710
3773
|
display: "flex",
|
|
@@ -3716,7 +3779,7 @@ const st = (e, t, o) => ({
|
|
|
3716
3779
|
},
|
|
3717
3780
|
children: [
|
|
3718
3781
|
/* @__PURE__ */ a(
|
|
3719
|
-
|
|
3782
|
+
q,
|
|
3720
3783
|
{
|
|
3721
3784
|
size: "small",
|
|
3722
3785
|
onClick: b,
|
|
@@ -3728,11 +3791,11 @@ const st = (e, t, o) => ({
|
|
|
3728
3791
|
}
|
|
3729
3792
|
},
|
|
3730
3793
|
title: x ? "Copied!" : "Copy message",
|
|
3731
|
-
children: /* @__PURE__ */ a(
|
|
3794
|
+
children: /* @__PURE__ */ a(Ze, { sx: { fontSize: 12 } })
|
|
3732
3795
|
}
|
|
3733
3796
|
),
|
|
3734
3797
|
v && /* @__PURE__ */ a(
|
|
3735
|
-
|
|
3798
|
+
q,
|
|
3736
3799
|
{
|
|
3737
3800
|
size: "small",
|
|
3738
3801
|
onClick: () => p(!d),
|
|
@@ -3744,7 +3807,7 @@ const st = (e, t, o) => ({
|
|
|
3744
3807
|
}
|
|
3745
3808
|
},
|
|
3746
3809
|
title: d ? "Collapse" : "Expand",
|
|
3747
|
-
children: d ? /* @__PURE__ */ a(
|
|
3810
|
+
children: d ? /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(Ke, { sx: { fontSize: 12 } })
|
|
3748
3811
|
}
|
|
3749
3812
|
)
|
|
3750
3813
|
]
|
|
@@ -3756,7 +3819,7 @@ const st = (e, t, o) => ({
|
|
|
3756
3819
|
);
|
|
3757
3820
|
};
|
|
3758
3821
|
return /* @__PURE__ */ S(
|
|
3759
|
-
|
|
3822
|
+
to,
|
|
3760
3823
|
{
|
|
3761
3824
|
sx: {
|
|
3762
3825
|
backgroundColor: ((f = n.palette.backgroundPaperElevation) == null ? void 0 : f[2]) || "#171927",
|
|
@@ -3770,7 +3833,7 @@ const st = (e, t, o) => ({
|
|
|
3770
3833
|
},
|
|
3771
3834
|
children: [
|
|
3772
3835
|
/* @__PURE__ */ S(
|
|
3773
|
-
|
|
3836
|
+
w,
|
|
3774
3837
|
{
|
|
3775
3838
|
sx: {
|
|
3776
3839
|
display: "flex",
|
|
@@ -3779,9 +3842,9 @@ const st = (e, t, o) => ({
|
|
|
3779
3842
|
padding: "12px 16px"
|
|
3780
3843
|
},
|
|
3781
3844
|
children: [
|
|
3782
|
-
/* @__PURE__ */ S(
|
|
3845
|
+
/* @__PURE__ */ S(w, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3783
3846
|
/* @__PURE__ */ a(
|
|
3784
|
-
|
|
3847
|
+
Qe,
|
|
3785
3848
|
{
|
|
3786
3849
|
sx: {
|
|
3787
3850
|
fontSize: 16,
|
|
@@ -3791,7 +3854,7 @@ const st = (e, t, o) => ({
|
|
|
3791
3854
|
}
|
|
3792
3855
|
),
|
|
3793
3856
|
/* @__PURE__ */ a(
|
|
3794
|
-
|
|
3857
|
+
R,
|
|
3795
3858
|
{
|
|
3796
3859
|
sx: {
|
|
3797
3860
|
fontWeight: 500,
|
|
@@ -3830,7 +3893,7 @@ const st = (e, t, o) => ({
|
|
|
3830
3893
|
}
|
|
3831
3894
|
),
|
|
3832
3895
|
/* @__PURE__ */ a(
|
|
3833
|
-
|
|
3896
|
+
w,
|
|
3834
3897
|
{
|
|
3835
3898
|
ref: c,
|
|
3836
3899
|
sx: {
|
|
@@ -3858,7 +3921,7 @@ const st = (e, t, o) => ({
|
|
|
3858
3921
|
}
|
|
3859
3922
|
},
|
|
3860
3923
|
children: t.length === 0 ? /* @__PURE__ */ a(
|
|
3861
|
-
|
|
3924
|
+
R,
|
|
3862
3925
|
{
|
|
3863
3926
|
sx: {
|
|
3864
3927
|
color: n.palette.text.disabled,
|
|
@@ -3876,15 +3939,15 @@ const st = (e, t, o) => ({
|
|
|
3876
3939
|
}
|
|
3877
3940
|
);
|
|
3878
3941
|
})
|
|
3879
|
-
),
|
|
3942
|
+
), Si = $(
|
|
3880
3943
|
J((e) => {
|
|
3881
3944
|
const { store: t, onStoreReady: o, ...r } = e, i = A(o);
|
|
3882
|
-
|
|
3945
|
+
F(() => {
|
|
3883
3946
|
i.current = o;
|
|
3884
3947
|
}, [o]);
|
|
3885
3948
|
const n = rt(() => {
|
|
3886
3949
|
var l;
|
|
3887
|
-
const s = t || new
|
|
3950
|
+
const s = t || new Do();
|
|
3888
3951
|
return (l = i.current) == null || l.call(i, s), s;
|
|
3889
3952
|
}, [t]), c = () => {
|
|
3890
3953
|
n.clearMessages();
|
|
@@ -3899,19 +3962,19 @@ const st = (e, t, o) => ({
|
|
|
3899
3962
|
);
|
|
3900
3963
|
})
|
|
3901
3964
|
);
|
|
3902
|
-
function
|
|
3965
|
+
function Jo() {
|
|
3903
3966
|
const e = window.location.href;
|
|
3904
3967
|
return e.substring(
|
|
3905
3968
|
0,
|
|
3906
3969
|
e.indexOf("/", e.indexOf("//") + 2)
|
|
3907
3970
|
);
|
|
3908
3971
|
}
|
|
3909
|
-
function
|
|
3910
|
-
baseUrl: e =
|
|
3972
|
+
function vi({
|
|
3973
|
+
baseUrl: e = Jo(),
|
|
3911
3974
|
...t
|
|
3912
3975
|
}) {
|
|
3913
3976
|
return /* @__PURE__ */ S(
|
|
3914
|
-
|
|
3977
|
+
eo,
|
|
3915
3978
|
{
|
|
3916
3979
|
"aria-labelledby": "no-motion-group-modal-title",
|
|
3917
3980
|
open: !0,
|
|
@@ -3931,9 +3994,9 @@ function Si({
|
|
|
3931
3994
|
}
|
|
3932
3995
|
},
|
|
3933
3996
|
children: [
|
|
3934
|
-
/* @__PURE__ */ a(
|
|
3997
|
+
/* @__PURE__ */ a(io, { id: "no-motion-group-modal-title", children: "No motion group found" }),
|
|
3935
3998
|
/* @__PURE__ */ S(
|
|
3936
|
-
|
|
3999
|
+
no,
|
|
3937
4000
|
{
|
|
3938
4001
|
sx: {
|
|
3939
4002
|
marginTop: "3rem",
|
|
@@ -3941,12 +4004,12 @@ function Si({
|
|
|
3941
4004
|
textAlign: "center"
|
|
3942
4005
|
},
|
|
3943
4006
|
children: [
|
|
3944
|
-
/* @__PURE__ */ a(
|
|
3945
|
-
/* @__PURE__ */ a(
|
|
4007
|
+
/* @__PURE__ */ a(R, { color: "#fff", children: "Found no devices to connect to." }),
|
|
4008
|
+
/* @__PURE__ */ a(R, { color: "#fff", children: "Please ensure a motion group has been created." })
|
|
3946
4009
|
]
|
|
3947
4010
|
}
|
|
3948
4011
|
),
|
|
3949
|
-
/* @__PURE__ */ a(
|
|
4012
|
+
/* @__PURE__ */ a(oo, { children: /* @__PURE__ */ S(P, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
|
|
3950
4013
|
/* @__PURE__ */ a(
|
|
3951
4014
|
Z,
|
|
3952
4015
|
{
|
|
@@ -3978,10 +4041,10 @@ function Si({
|
|
|
3978
4041
|
}
|
|
3979
4042
|
);
|
|
3980
4043
|
}
|
|
3981
|
-
var
|
|
3982
|
-
const
|
|
4044
|
+
var Kt = /* @__PURE__ */ ((e) => (e.PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED", e.ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED", e.CELL_OPEN = "CELL_OPEN", e.E_STOP = "E_STOP", e.MANUAL_MODE = "MANUAL_MODE", e.READY = "READY", e))(Kt || {});
|
|
4045
|
+
const Fo = $(
|
|
3983
4046
|
J(({ setupState: e, className: t }) => {
|
|
3984
|
-
const o =
|
|
4047
|
+
const o = B(), { t: r } = z(), i = () => {
|
|
3985
4048
|
var u, f, g, d, p, x, y;
|
|
3986
4049
|
switch (e) {
|
|
3987
4050
|
case "READY":
|
|
@@ -4031,11 +4094,11 @@ const Jo = $(
|
|
|
4031
4094
|
}
|
|
4032
4095
|
}, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = i();
|
|
4033
4096
|
return /* @__PURE__ */ a(
|
|
4034
|
-
|
|
4097
|
+
ao,
|
|
4035
4098
|
{
|
|
4036
4099
|
className: t,
|
|
4037
4100
|
label: /* @__PURE__ */ S(
|
|
4038
|
-
|
|
4101
|
+
w,
|
|
4039
4102
|
{
|
|
4040
4103
|
sx: {
|
|
4041
4104
|
display: "flex",
|
|
@@ -4044,7 +4107,7 @@ const Jo = $(
|
|
|
4044
4107
|
},
|
|
4045
4108
|
children: [
|
|
4046
4109
|
/* @__PURE__ */ a(
|
|
4047
|
-
|
|
4110
|
+
w,
|
|
4048
4111
|
{
|
|
4049
4112
|
sx: {
|
|
4050
4113
|
width: 8,
|
|
@@ -4056,7 +4119,7 @@ const Jo = $(
|
|
|
4056
4119
|
}
|
|
4057
4120
|
),
|
|
4058
4121
|
/* @__PURE__ */ a(
|
|
4059
|
-
|
|
4122
|
+
R,
|
|
4060
4123
|
{
|
|
4061
4124
|
variant: "body2",
|
|
4062
4125
|
sx: {
|
|
@@ -4085,19 +4148,19 @@ const Jo = $(
|
|
|
4085
4148
|
}
|
|
4086
4149
|
);
|
|
4087
4150
|
})
|
|
4088
|
-
),
|
|
4151
|
+
), Ci = $(
|
|
4089
4152
|
J(
|
|
4090
4153
|
({
|
|
4091
4154
|
robotName: e,
|
|
4092
4155
|
robotType: t,
|
|
4093
4156
|
setupState: o,
|
|
4094
|
-
PreconditionComponent: r =
|
|
4157
|
+
PreconditionComponent: r = Fo,
|
|
4095
4158
|
className: i
|
|
4096
4159
|
}) => {
|
|
4097
4160
|
var l;
|
|
4098
|
-
const n =
|
|
4161
|
+
const n = B(), c = t || "Robot", s = o === Kt.READY;
|
|
4099
4162
|
return /* @__PURE__ */ S(
|
|
4100
|
-
|
|
4163
|
+
w,
|
|
4101
4164
|
{
|
|
4102
4165
|
className: i,
|
|
4103
4166
|
sx: {
|
|
@@ -4112,7 +4175,7 @@ const Jo = $(
|
|
|
4112
4175
|
},
|
|
4113
4176
|
children: [
|
|
4114
4177
|
/* @__PURE__ */ S(
|
|
4115
|
-
|
|
4178
|
+
w,
|
|
4116
4179
|
{
|
|
4117
4180
|
sx: {
|
|
4118
4181
|
display: "flex",
|
|
@@ -4122,7 +4185,7 @@ const Jo = $(
|
|
|
4122
4185
|
},
|
|
4123
4186
|
children: [
|
|
4124
4187
|
s ? /* @__PURE__ */ a(
|
|
4125
|
-
|
|
4188
|
+
w,
|
|
4126
4189
|
{
|
|
4127
4190
|
sx: {
|
|
4128
4191
|
fontSize: 24,
|
|
@@ -4138,10 +4201,10 @@ const Jo = $(
|
|
|
4138
4201
|
fill: `${n.palette.primary.main} !important`
|
|
4139
4202
|
}
|
|
4140
4203
|
},
|
|
4141
|
-
children: /* @__PURE__ */ a(
|
|
4204
|
+
children: /* @__PURE__ */ a(Fe, {})
|
|
4142
4205
|
}
|
|
4143
4206
|
) : /* @__PURE__ */ a(
|
|
4144
|
-
|
|
4207
|
+
ro,
|
|
4145
4208
|
{
|
|
4146
4209
|
sx: {
|
|
4147
4210
|
color: n.palette.error.main,
|
|
@@ -4150,7 +4213,7 @@ const Jo = $(
|
|
|
4150
4213
|
}
|
|
4151
4214
|
),
|
|
4152
4215
|
/* @__PURE__ */ a(
|
|
4153
|
-
|
|
4216
|
+
R,
|
|
4154
4217
|
{
|
|
4155
4218
|
variant: "body1",
|
|
4156
4219
|
sx: {
|
|
@@ -4161,7 +4224,7 @@ const Jo = $(
|
|
|
4161
4224
|
}
|
|
4162
4225
|
),
|
|
4163
4226
|
/* @__PURE__ */ a(
|
|
4164
|
-
|
|
4227
|
+
U,
|
|
4165
4228
|
{
|
|
4166
4229
|
orientation: "vertical",
|
|
4167
4230
|
flexItem: !0,
|
|
@@ -4173,7 +4236,7 @@ const Jo = $(
|
|
|
4173
4236
|
}
|
|
4174
4237
|
),
|
|
4175
4238
|
/* @__PURE__ */ a(
|
|
4176
|
-
|
|
4239
|
+
R,
|
|
4177
4240
|
{
|
|
4178
4241
|
variant: "body2",
|
|
4179
4242
|
sx: {
|
|
@@ -4191,7 +4254,7 @@ const Jo = $(
|
|
|
4191
4254
|
);
|
|
4192
4255
|
}
|
|
4193
4256
|
)
|
|
4194
|
-
),
|
|
4257
|
+
), Bo = ut(so, {
|
|
4195
4258
|
shouldForwardProp: (e) => e !== "selected"
|
|
4196
4259
|
})(({ theme: e }) => {
|
|
4197
4260
|
var t, o, r;
|
|
@@ -4221,10 +4284,10 @@ const Jo = $(
|
|
|
4221
4284
|
}
|
|
4222
4285
|
]
|
|
4223
4286
|
};
|
|
4224
|
-
}),
|
|
4287
|
+
}), wi = (e) => {
|
|
4225
4288
|
const { ref: t, ...o } = e;
|
|
4226
4289
|
return /* @__PURE__ */ a(
|
|
4227
|
-
|
|
4290
|
+
Bo,
|
|
4228
4291
|
{
|
|
4229
4292
|
ref: t,
|
|
4230
4293
|
selected: e.selected,
|
|
@@ -4234,7 +4297,7 @@ const Jo = $(
|
|
|
4234
4297
|
}
|
|
4235
4298
|
);
|
|
4236
4299
|
};
|
|
4237
|
-
function
|
|
4300
|
+
function Lo(e) {
|
|
4238
4301
|
const { children: t, value: o, index: r, ...i } = e;
|
|
4239
4302
|
return /* @__PURE__ */ a(
|
|
4240
4303
|
"div",
|
|
@@ -4244,11 +4307,11 @@ function Bo(e) {
|
|
|
4244
4307
|
id: `tabpanel-${r}`,
|
|
4245
4308
|
"aria-labelledby": `tab-${r}`,
|
|
4246
4309
|
...i,
|
|
4247
|
-
children: o === r && /* @__PURE__ */ a(
|
|
4310
|
+
children: o === r && /* @__PURE__ */ a(w, { children: t })
|
|
4248
4311
|
}
|
|
4249
4312
|
);
|
|
4250
4313
|
}
|
|
4251
|
-
function
|
|
4314
|
+
function $o({ children: e, ...t }) {
|
|
4252
4315
|
const {
|
|
4253
4316
|
fullWidth: o,
|
|
4254
4317
|
indicator: r,
|
|
@@ -4261,9 +4324,9 @@ function Lo({ children: e, ...t }) {
|
|
|
4261
4324
|
variant: f,
|
|
4262
4325
|
...g
|
|
4263
4326
|
} = t;
|
|
4264
|
-
return /* @__PURE__ */ a(
|
|
4327
|
+
return /* @__PURE__ */ a(w, { ...g, children: e });
|
|
4265
4328
|
}
|
|
4266
|
-
const
|
|
4329
|
+
const Ti = $(
|
|
4267
4330
|
J((e) => {
|
|
4268
4331
|
const {
|
|
4269
4332
|
items: t,
|
|
@@ -4272,21 +4335,21 @@ const wi = $(
|
|
|
4272
4335
|
onTabChange: i,
|
|
4273
4336
|
sx: n,
|
|
4274
4337
|
ref: c
|
|
4275
|
-
} = e, s = o !== void 0, [l, u] =
|
|
4276
|
-
|
|
4338
|
+
} = e, s = o !== void 0, [l, u] = L(r), f = s ? o : l;
|
|
4339
|
+
F(() => {
|
|
4277
4340
|
s || t.length !== 0 && (l < 0 || l > t.length - 1) && u(0);
|
|
4278
4341
|
}, [t.length, s, l]);
|
|
4279
4342
|
const g = (d, p) => {
|
|
4280
4343
|
s || u(p), i == null || i(p);
|
|
4281
4344
|
};
|
|
4282
4345
|
return /* @__PURE__ */ S(
|
|
4283
|
-
|
|
4346
|
+
w,
|
|
4284
4347
|
{
|
|
4285
4348
|
ref: c,
|
|
4286
4349
|
sx: { height: "100%", display: "flex", flexDirection: "column", ...n },
|
|
4287
4350
|
children: [
|
|
4288
4351
|
/* @__PURE__ */ a(
|
|
4289
|
-
|
|
4352
|
+
w,
|
|
4290
4353
|
{
|
|
4291
4354
|
sx: {
|
|
4292
4355
|
px: 0,
|
|
@@ -4328,15 +4391,15 @@ const wi = $(
|
|
|
4328
4391
|
}
|
|
4329
4392
|
},
|
|
4330
4393
|
children: t.map((d, p) => {
|
|
4331
|
-
var
|
|
4394
|
+
var T, C, M;
|
|
4332
4395
|
const x = () => {
|
|
4333
4396
|
if (!d.badge) return;
|
|
4334
|
-
const k = d.badge.content,
|
|
4335
|
-
return typeof k == "number" &&
|
|
4397
|
+
const k = d.badge.content, j = d.badge.max;
|
|
4398
|
+
return typeof k == "number" && j && k > j ? `${j}+` : k;
|
|
4336
4399
|
}, y = () => {
|
|
4337
4400
|
if (!d.badge) return !1;
|
|
4338
|
-
const k = d.badge.content,
|
|
4339
|
-
return !(k === 0 && !
|
|
4401
|
+
const k = d.badge.content, j = d.badge.showZero;
|
|
4402
|
+
return !(k === 0 && !j);
|
|
4340
4403
|
}, h = x(), m = y(), v = () => {
|
|
4341
4404
|
s || u(p), i == null || i(p);
|
|
4342
4405
|
}, b = /* @__PURE__ */ a(
|
|
@@ -4353,8 +4416,8 @@ const wi = $(
|
|
|
4353
4416
|
padding: "0px 10px",
|
|
4354
4417
|
borderRadius: "12px",
|
|
4355
4418
|
backgroundColor: (k) => {
|
|
4356
|
-
var
|
|
4357
|
-
return ((
|
|
4419
|
+
var j;
|
|
4420
|
+
return ((j = k.palette.backgroundPaperElevation) == null ? void 0 : j[11]) || "#32344B";
|
|
4358
4421
|
},
|
|
4359
4422
|
color: "text.primary",
|
|
4360
4423
|
opacity: f === p ? 1 : 0.38,
|
|
@@ -4368,8 +4431,8 @@ const wi = $(
|
|
|
4368
4431
|
"&.Mui-selected": {
|
|
4369
4432
|
opacity: 1,
|
|
4370
4433
|
backgroundColor: (k) => {
|
|
4371
|
-
var
|
|
4372
|
-
return ((
|
|
4434
|
+
var j;
|
|
4435
|
+
return ((j = k.palette.backgroundPaperElevation) == null ? void 0 : j[11]) || "#32344B";
|
|
4373
4436
|
},
|
|
4374
4437
|
color: "text.primary"
|
|
4375
4438
|
},
|
|
@@ -4384,15 +4447,15 @@ const wi = $(
|
|
|
4384
4447
|
d.id
|
|
4385
4448
|
);
|
|
4386
4449
|
return m ? /* @__PURE__ */ a(
|
|
4387
|
-
|
|
4450
|
+
$o,
|
|
4388
4451
|
{
|
|
4389
4452
|
component: "span",
|
|
4390
4453
|
sx: { display: "inline-flex" },
|
|
4391
4454
|
children: /* @__PURE__ */ a(
|
|
4392
|
-
|
|
4455
|
+
lo,
|
|
4393
4456
|
{
|
|
4394
4457
|
badgeContent: h,
|
|
4395
|
-
color: ((
|
|
4458
|
+
color: ((T = d.badge) == null ? void 0 : T.color) || "error",
|
|
4396
4459
|
max: (C = d.badge) == null ? void 0 : C.max,
|
|
4397
4460
|
showZero: (M = d.badge) == null ? void 0 : M.showZero,
|
|
4398
4461
|
anchorOrigin: {
|
|
@@ -4418,7 +4481,7 @@ const wi = $(
|
|
|
4418
4481
|
}
|
|
4419
4482
|
),
|
|
4420
4483
|
/* @__PURE__ */ a(
|
|
4421
|
-
|
|
4484
|
+
w,
|
|
4422
4485
|
{
|
|
4423
4486
|
sx: {
|
|
4424
4487
|
mt: (d) => d.spacing(2),
|
|
@@ -4427,15 +4490,15 @@ const wi = $(
|
|
|
4427
4490
|
}
|
|
4428
4491
|
}
|
|
4429
4492
|
),
|
|
4430
|
-
/* @__PURE__ */ a(
|
|
4493
|
+
/* @__PURE__ */ a(w, { sx: { flex: 1, overflow: "auto" }, children: t.map((d, p) => /* @__PURE__ */ a(Lo, { value: f, index: p, children: d.content }, d.id)) })
|
|
4431
4494
|
]
|
|
4432
4495
|
}
|
|
4433
4496
|
);
|
|
4434
4497
|
})
|
|
4435
|
-
),
|
|
4498
|
+
), zo = (e) => {
|
|
4436
4499
|
const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
|
|
4437
4500
|
return t > 0 ? (n.push(t.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(":");
|
|
4438
|
-
},
|
|
4501
|
+
}, At = (e, t) => {
|
|
4439
4502
|
const o = Math.floor(e / 86400), r = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), n = e % 60;
|
|
4440
4503
|
if (typeof Intl < "u" && "DurationFormat" in Intl)
|
|
4441
4504
|
try {
|
|
@@ -4445,15 +4508,15 @@ const wi = $(
|
|
|
4445
4508
|
}
|
|
4446
4509
|
const c = [];
|
|
4447
4510
|
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(" ");
|
|
4448
|
-
},
|
|
4511
|
+
}, Vo = ({
|
|
4449
4512
|
timerState: e,
|
|
4450
4513
|
animationState: t,
|
|
4451
4514
|
hasError: o,
|
|
4452
4515
|
className: r
|
|
4453
4516
|
}) => {
|
|
4454
|
-
const { t: i } =
|
|
4517
|
+
const { t: i } = z(), n = B(), { elapsedTime: c, currentProgress: s } = e, { showErrorAnimation: l, showPauseAnimation: u, showMainText: f } = t;
|
|
4455
4518
|
return /* @__PURE__ */ S(
|
|
4456
|
-
|
|
4519
|
+
w,
|
|
4457
4520
|
{
|
|
4458
4521
|
className: r,
|
|
4459
4522
|
sx: {
|
|
@@ -4466,7 +4529,7 @@ const wi = $(
|
|
|
4466
4529
|
},
|
|
4467
4530
|
children: [
|
|
4468
4531
|
/* @__PURE__ */ a(
|
|
4469
|
-
|
|
4532
|
+
co,
|
|
4470
4533
|
{
|
|
4471
4534
|
width: 264,
|
|
4472
4535
|
height: 264,
|
|
@@ -4501,7 +4564,7 @@ const wi = $(
|
|
|
4501
4564
|
}
|
|
4502
4565
|
),
|
|
4503
4566
|
/* @__PURE__ */ a(
|
|
4504
|
-
|
|
4567
|
+
w,
|
|
4505
4568
|
{
|
|
4506
4569
|
sx: {
|
|
4507
4570
|
position: "absolute",
|
|
@@ -4521,7 +4584,7 @@ const wi = $(
|
|
|
4521
4584
|
transition: "background-color 0.5s ease-out"
|
|
4522
4585
|
},
|
|
4523
4586
|
children: /* @__PURE__ */ S(
|
|
4524
|
-
|
|
4587
|
+
w,
|
|
4525
4588
|
{
|
|
4526
4589
|
sx: {
|
|
4527
4590
|
position: "relative",
|
|
@@ -4532,8 +4595,8 @@ const wi = $(
|
|
|
4532
4595
|
marginBottom: 0.5
|
|
4533
4596
|
},
|
|
4534
4597
|
children: [
|
|
4535
|
-
/* @__PURE__ */ a(
|
|
4536
|
-
|
|
4598
|
+
/* @__PURE__ */ a(H, { in: f && o, timeout: 200, children: /* @__PURE__ */ a(
|
|
4599
|
+
R,
|
|
4537
4600
|
{
|
|
4538
4601
|
variant: "h6",
|
|
4539
4602
|
sx: {
|
|
@@ -4545,8 +4608,8 @@ const wi = $(
|
|
|
4545
4608
|
children: i("timer.error")
|
|
4546
4609
|
}
|
|
4547
4610
|
) }),
|
|
4548
|
-
/* @__PURE__ */ a(
|
|
4549
|
-
|
|
4611
|
+
/* @__PURE__ */ a(H, { in: f && !o, timeout: 300, children: /* @__PURE__ */ a(
|
|
4612
|
+
R,
|
|
4550
4613
|
{
|
|
4551
4614
|
variant: "h1",
|
|
4552
4615
|
sx: {
|
|
@@ -4557,7 +4620,7 @@ const wi = $(
|
|
|
4557
4620
|
lineHeight: 1,
|
|
4558
4621
|
letterSpacing: "-0.5px"
|
|
4559
4622
|
},
|
|
4560
|
-
children:
|
|
4623
|
+
children: zo(c)
|
|
4561
4624
|
}
|
|
4562
4625
|
) })
|
|
4563
4626
|
]
|
|
@@ -4568,16 +4631,16 @@ const wi = $(
|
|
|
4568
4631
|
]
|
|
4569
4632
|
}
|
|
4570
4633
|
);
|
|
4571
|
-
},
|
|
4634
|
+
}, No = ({
|
|
4572
4635
|
timerState: e,
|
|
4573
4636
|
animationState: t,
|
|
4574
4637
|
hasError: o,
|
|
4575
4638
|
compact: r,
|
|
4576
4639
|
className: i
|
|
4577
4640
|
}) => {
|
|
4578
|
-
const { t: n, i18n: c } =
|
|
4641
|
+
const { t: n, i18n: c } = z(), s = B(), { elapsedTime: l, currentProgress: u } = e, { showErrorAnimation: f, showPauseAnimation: g } = t;
|
|
4579
4642
|
return r ? /* @__PURE__ */ a(
|
|
4580
|
-
|
|
4643
|
+
w,
|
|
4581
4644
|
{
|
|
4582
4645
|
className: i,
|
|
4583
4646
|
sx: {
|
|
@@ -4586,7 +4649,7 @@ const wi = $(
|
|
|
4586
4649
|
m: 0
|
|
4587
4650
|
},
|
|
4588
4651
|
children: /* @__PURE__ */ a(
|
|
4589
|
-
|
|
4652
|
+
R,
|
|
4590
4653
|
{
|
|
4591
4654
|
variant: "body2",
|
|
4592
4655
|
sx: {
|
|
@@ -4594,12 +4657,12 @@ const wi = $(
|
|
|
4594
4657
|
fontSize: "14px",
|
|
4595
4658
|
transition: "color 0.5s ease-out"
|
|
4596
4659
|
},
|
|
4597
|
-
children: o ? n("timer.error") :
|
|
4660
|
+
children: o ? n("timer.error") : At(l, c.language)
|
|
4598
4661
|
}
|
|
4599
4662
|
)
|
|
4600
4663
|
}
|
|
4601
4664
|
) : /* @__PURE__ */ S(
|
|
4602
|
-
|
|
4665
|
+
w,
|
|
4603
4666
|
{
|
|
4604
4667
|
className: i,
|
|
4605
4668
|
sx: {
|
|
@@ -4610,7 +4673,7 @@ const wi = $(
|
|
|
4610
4673
|
},
|
|
4611
4674
|
children: [
|
|
4612
4675
|
/* @__PURE__ */ a(
|
|
4613
|
-
|
|
4676
|
+
w,
|
|
4614
4677
|
{
|
|
4615
4678
|
sx: {
|
|
4616
4679
|
width: 20,
|
|
@@ -4669,7 +4732,7 @@ const wi = $(
|
|
|
4669
4732
|
}
|
|
4670
4733
|
),
|
|
4671
4734
|
/* @__PURE__ */ a(
|
|
4672
|
-
|
|
4735
|
+
R,
|
|
4673
4736
|
{
|
|
4674
4737
|
variant: "body2",
|
|
4675
4738
|
sx: {
|
|
@@ -4679,14 +4742,14 @@ const wi = $(
|
|
|
4679
4742
|
letterSpacing: "normal",
|
|
4680
4743
|
transition: "color 0.8s ease-in-out, font-size 0.3s ease-out, opacity 2s ease-in-out"
|
|
4681
4744
|
},
|
|
4682
|
-
children: o ? n("timer.error") :
|
|
4745
|
+
children: o ? n("timer.error") : At(l, c.language)
|
|
4683
4746
|
}
|
|
4684
4747
|
)
|
|
4685
4748
|
]
|
|
4686
4749
|
}
|
|
4687
4750
|
);
|
|
4688
|
-
},
|
|
4689
|
-
const [e, t] =
|
|
4751
|
+
}, Wo = () => {
|
|
4752
|
+
const [e, t] = L({
|
|
4690
4753
|
showPauseAnimation: !1,
|
|
4691
4754
|
showErrorAnimation: !1,
|
|
4692
4755
|
showMainText: !0
|
|
@@ -4694,17 +4757,17 @@ const wi = $(
|
|
|
4694
4757
|
null
|
|
4695
4758
|
), r = A(
|
|
4696
4759
|
null
|
|
4697
|
-
), i = A(null), n =
|
|
4760
|
+
), i = A(null), n = _(() => {
|
|
4698
4761
|
t((g) => ({ ...g, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
4699
4762
|
t((g) => ({ ...g, showPauseAnimation: !1 }));
|
|
4700
4763
|
}, 800);
|
|
4701
|
-
}, []), c =
|
|
4764
|
+
}, []), c = _(() => {
|
|
4702
4765
|
t((g) => ({ ...g, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
|
|
4703
4766
|
t((g) => ({ ...g, showErrorAnimation: !1 }));
|
|
4704
4767
|
}, 600);
|
|
4705
|
-
}, []), s =
|
|
4768
|
+
}, []), s = _(() => {
|
|
4706
4769
|
t((g) => ({ ...g, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
|
|
4707
|
-
}, []), l =
|
|
4770
|
+
}, []), l = _(() => {
|
|
4708
4771
|
t((g) => ({
|
|
4709
4772
|
...g,
|
|
4710
4773
|
showMainText: !1
|
|
@@ -4714,12 +4777,12 @@ const wi = $(
|
|
|
4714
4777
|
showMainText: !0
|
|
4715
4778
|
}));
|
|
4716
4779
|
}, 200);
|
|
4717
|
-
}, []), u =
|
|
4780
|
+
}, []), u = _(() => {
|
|
4718
4781
|
t((g) => ({
|
|
4719
4782
|
...g,
|
|
4720
4783
|
showMainText: !0
|
|
4721
4784
|
}));
|
|
4722
|
-
}, []), f =
|
|
4785
|
+
}, []), f = _(() => {
|
|
4723
4786
|
o.current && clearTimeout(o.current), r.current && clearTimeout(r.current), i.current && clearTimeout(i.current);
|
|
4724
4787
|
}, []);
|
|
4725
4788
|
return {
|
|
@@ -4731,14 +4794,14 @@ const wi = $(
|
|
|
4731
4794
|
setInitialAnimationState: u,
|
|
4732
4795
|
cleanup: f
|
|
4733
4796
|
};
|
|
4734
|
-
},
|
|
4797
|
+
}, Go = ({
|
|
4735
4798
|
autoStart: e,
|
|
4736
4799
|
hasError: t,
|
|
4737
4800
|
onPauseAnimation: o,
|
|
4738
4801
|
onErrorAnimation: r,
|
|
4739
4802
|
onClearErrorAnimation: i
|
|
4740
4803
|
}) => {
|
|
4741
|
-
const [n, c] =
|
|
4804
|
+
const [n, c] = L({
|
|
4742
4805
|
elapsedTime: 0,
|
|
4743
4806
|
isRunning: !1,
|
|
4744
4807
|
isPausedState: !1,
|
|
@@ -4750,7 +4813,7 @@ const wi = $(
|
|
|
4750
4813
|
onChange: ([m]) => {
|
|
4751
4814
|
c((v) => ({ ...v, currentProgress: m }));
|
|
4752
4815
|
}
|
|
4753
|
-
}), d =
|
|
4816
|
+
}), d = _(
|
|
4754
4817
|
(m = 0) => {
|
|
4755
4818
|
const v = m / 60 % 1 * 100;
|
|
4756
4819
|
c((b) => ({
|
|
@@ -4761,11 +4824,11 @@ const wi = $(
|
|
|
4761
4824
|
})), u.current = 0, f.current = v, g.setImmediate([v]), e ? (l.current = Date.now() - m * 1e3, c((b) => ({ ...b, isRunning: !0 }))) : l.current = null;
|
|
4762
4825
|
},
|
|
4763
4826
|
[e, g]
|
|
4764
|
-
), p =
|
|
4827
|
+
), p = _(() => {
|
|
4765
4828
|
if (l.current && n.isRunning) {
|
|
4766
4829
|
const v = (Date.now() - l.current) / 1e3 + u.current, b = v / 60 % 1 * 100;
|
|
4767
|
-
g.setTarget([b]), c((
|
|
4768
|
-
...
|
|
4830
|
+
g.setTarget([b]), c((T) => ({
|
|
4831
|
+
...T,
|
|
4769
4832
|
elapsedTime: Math.floor(v)
|
|
4770
4833
|
}));
|
|
4771
4834
|
}
|
|
@@ -4774,13 +4837,13 @@ const wi = $(
|
|
|
4774
4837
|
isRunning: !1,
|
|
4775
4838
|
isPausedState: !0
|
|
4776
4839
|
})), o();
|
|
4777
|
-
}, [n.isRunning, g, o]), x =
|
|
4840
|
+
}, [n.isRunning, g, o]), x = _(() => {
|
|
4778
4841
|
n.isPausedState && (u.current = n.elapsedTime, l.current = Date.now(), c((m) => ({
|
|
4779
4842
|
...m,
|
|
4780
4843
|
isRunning: !0,
|
|
4781
4844
|
isPausedState: !1
|
|
4782
4845
|
})));
|
|
4783
|
-
}, [n.isPausedState, n.elapsedTime]), y =
|
|
4846
|
+
}, [n.isPausedState, n.elapsedTime]), y = _(() => {
|
|
4784
4847
|
c((m) => ({
|
|
4785
4848
|
...m,
|
|
4786
4849
|
elapsedTime: 0,
|
|
@@ -4788,8 +4851,8 @@ const wi = $(
|
|
|
4788
4851
|
isPausedState: !1,
|
|
4789
4852
|
currentProgress: 0
|
|
4790
4853
|
})), u.current = 0, l.current = null, f.current = 0, g.setImmediate([0]);
|
|
4791
|
-
}, [g]), h =
|
|
4792
|
-
return
|
|
4854
|
+
}, [g]), h = _(() => n.isPausedState, [n.isPausedState]);
|
|
4855
|
+
return F(() => {
|
|
4793
4856
|
t ? (n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !0 })), p()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !1 })), x()), i());
|
|
4794
4857
|
}, [
|
|
4795
4858
|
t,
|
|
@@ -4799,17 +4862,17 @@ const wi = $(
|
|
|
4799
4862
|
x,
|
|
4800
4863
|
r,
|
|
4801
4864
|
i
|
|
4802
|
-
]),
|
|
4865
|
+
]), F(() => {
|
|
4803
4866
|
if (n.isRunning) {
|
|
4804
4867
|
const m = () => {
|
|
4805
4868
|
if (l.current) {
|
|
4806
|
-
const b = (Date.now() - l.current) / 1e3 + u.current,
|
|
4869
|
+
const b = (Date.now() - l.current) / 1e3 + u.current, T = b / 60 % 1 * 100;
|
|
4807
4870
|
c((M) => ({
|
|
4808
4871
|
...M,
|
|
4809
4872
|
elapsedTime: Math.floor(b)
|
|
4810
4873
|
})), Math.abs(
|
|
4811
|
-
|
|
4812
|
-
) > 0.1 && (g.setTarget([
|
|
4874
|
+
T - f.current
|
|
4875
|
+
) > 0.1 && (g.setTarget([T]), f.current = T);
|
|
4813
4876
|
}
|
|
4814
4877
|
s.current = requestAnimationFrame(m);
|
|
4815
4878
|
};
|
|
@@ -4819,7 +4882,7 @@ const wi = $(
|
|
|
4819
4882
|
return () => {
|
|
4820
4883
|
s.current && (cancelAnimationFrame(s.current), s.current = null);
|
|
4821
4884
|
};
|
|
4822
|
-
}, [n.isRunning, g]),
|
|
4885
|
+
}, [n.isRunning, g]), F(() => {
|
|
4823
4886
|
let m = null;
|
|
4824
4887
|
const v = () => {
|
|
4825
4888
|
g.update(), m = requestAnimationFrame(v);
|
|
@@ -4837,7 +4900,7 @@ const wi = $(
|
|
|
4837
4900
|
isPaused: h
|
|
4838
4901
|
}
|
|
4839
4902
|
};
|
|
4840
|
-
},
|
|
4903
|
+
}, Mi = $(
|
|
4841
4904
|
J(
|
|
4842
4905
|
({
|
|
4843
4906
|
onTimerReady: e,
|
|
@@ -4854,16 +4917,16 @@ const wi = $(
|
|
|
4854
4917
|
clearErrorAnimation: u,
|
|
4855
4918
|
setInitialAnimationState: f,
|
|
4856
4919
|
cleanup: g
|
|
4857
|
-
} =
|
|
4920
|
+
} = Wo(), { timerState: d, controls: p } = Go({
|
|
4858
4921
|
autoStart: t,
|
|
4859
4922
|
hasError: n,
|
|
4860
4923
|
onPauseAnimation: s,
|
|
4861
4924
|
onErrorAnimation: l,
|
|
4862
4925
|
onClearErrorAnimation: u
|
|
4863
4926
|
});
|
|
4864
|
-
return
|
|
4927
|
+
return F(() => {
|
|
4865
4928
|
f();
|
|
4866
|
-
}, [f]),
|
|
4929
|
+
}, [f]), F(() => {
|
|
4867
4930
|
let x = !0;
|
|
4868
4931
|
const y = setTimeout(() => {
|
|
4869
4932
|
x && e(p);
|
|
@@ -4871,8 +4934,8 @@ const wi = $(
|
|
|
4871
4934
|
return () => {
|
|
4872
4935
|
x = !1, clearTimeout(y);
|
|
4873
4936
|
};
|
|
4874
|
-
}, [e, p]),
|
|
4875
|
-
|
|
4937
|
+
}, [e, p]), F(() => g, [g]), o === "small" ? /* @__PURE__ */ a(
|
|
4938
|
+
No,
|
|
4876
4939
|
{
|
|
4877
4940
|
timerState: d,
|
|
4878
4941
|
animationState: c,
|
|
@@ -4881,7 +4944,7 @@ const wi = $(
|
|
|
4881
4944
|
className: i
|
|
4882
4945
|
}
|
|
4883
4946
|
) : /* @__PURE__ */ a(
|
|
4884
|
-
|
|
4947
|
+
Vo,
|
|
4885
4948
|
{
|
|
4886
4949
|
timerState: d,
|
|
4887
4950
|
animationState: c,
|
|
@@ -4891,7 +4954,7 @@ const wi = $(
|
|
|
4891
4954
|
);
|
|
4892
4955
|
}
|
|
4893
4956
|
)
|
|
4894
|
-
), Jt = 1e-4,
|
|
4957
|
+
), Jt = 1e-4, Uo = {
|
|
4895
4958
|
a: 0,
|
|
4896
4959
|
d: 0,
|
|
4897
4960
|
alpha: 0,
|
|
@@ -4903,7 +4966,7 @@ class gt {
|
|
|
4903
4966
|
this.nova = t, this.controller = o, this.motionGroup = r, this.initialMotionState = i, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = u, this.controllerStateSocket = f, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = i, this.controllerState = u, f.addEventListener("message", (g) => {
|
|
4904
4967
|
var p;
|
|
4905
4968
|
const d = (p = W(g.data)) == null ? void 0 : p.result;
|
|
4906
|
-
d &&
|
|
4969
|
+
d && D(() => {
|
|
4907
4970
|
this.controllerState = d;
|
|
4908
4971
|
});
|
|
4909
4972
|
}), n.addEventListener("message", (g) => {
|
|
@@ -4917,17 +4980,17 @@ class gt {
|
|
|
4917
4980
|
this.rapidlyChangingMotionState.joint_position,
|
|
4918
4981
|
d.joint_position,
|
|
4919
4982
|
Jt
|
|
4920
|
-
) ||
|
|
4983
|
+
) || D(() => {
|
|
4921
4984
|
this.rapidlyChangingMotionState.joint_position = d.joint_position;
|
|
4922
4985
|
}), Ht(
|
|
4923
4986
|
this.rapidlyChangingMotionState,
|
|
4924
4987
|
d,
|
|
4925
4988
|
Jt
|
|
4926
|
-
) ||
|
|
4989
|
+
) || D(() => {
|
|
4927
4990
|
this.rapidlyChangingMotionState.tcp_pose = d.tcp_pose;
|
|
4928
|
-
}), d.tcp !== void 0 && this.rapidlyChangingMotionState.tcp !== d.tcp &&
|
|
4991
|
+
}), d.tcp !== void 0 && this.rapidlyChangingMotionState.tcp !== d.tcp && D(() => {
|
|
4929
4992
|
this.rapidlyChangingMotionState.tcp = d.tcp;
|
|
4930
|
-
}), this.rapidlyChangingMotionState.standstill !== d.standstill &&
|
|
4993
|
+
}), this.rapidlyChangingMotionState.standstill !== d.standstill && D(() => {
|
|
4931
4994
|
this.rapidlyChangingMotionState.standstill = d.standstill;
|
|
4932
4995
|
});
|
|
4933
4996
|
}), mt(this);
|
|
@@ -4966,11 +5029,11 @@ class gt {
|
|
|
4966
5029
|
i,
|
|
4967
5030
|
c.motion_group
|
|
4968
5031
|
), p = Object.entries(d.tcps || {}).map(
|
|
4969
|
-
([b,
|
|
5032
|
+
([b, T]) => ({
|
|
4970
5033
|
id: b,
|
|
4971
|
-
readable_name:
|
|
4972
|
-
position:
|
|
4973
|
-
orientation:
|
|
5034
|
+
readable_name: T.name,
|
|
5035
|
+
position: T.pose.position,
|
|
5036
|
+
orientation: T.pose.orientation
|
|
4974
5037
|
})
|
|
4975
5038
|
), x = t.openReconnectingWebsocket(
|
|
4976
5039
|
`/controllers/${n.controller}/state-stream?response_rate=1000`
|
|
@@ -5018,7 +5081,7 @@ class gt {
|
|
|
5018
5081
|
get dhParameters() {
|
|
5019
5082
|
if (this.description.dh_parameters !== void 0)
|
|
5020
5083
|
return this.description.dh_parameters.map((t) => ({
|
|
5021
|
-
...
|
|
5084
|
+
...Uo,
|
|
5022
5085
|
...t
|
|
5023
5086
|
}));
|
|
5024
5087
|
}
|
|
@@ -5087,18 +5150,18 @@ class gt {
|
|
|
5087
5150
|
console.error("Tried to deactivate while already deactivating");
|
|
5088
5151
|
return;
|
|
5089
5152
|
}
|
|
5090
|
-
|
|
5153
|
+
D(() => {
|
|
5091
5154
|
this.activationState = "deactivating";
|
|
5092
5155
|
});
|
|
5093
5156
|
try {
|
|
5094
5157
|
await this.nova.api.controller.setDefaultMode(
|
|
5095
5158
|
this.controllerId,
|
|
5096
5159
|
"ROBOT_SYSTEM_MODE_MONITOR"
|
|
5097
|
-
),
|
|
5160
|
+
), D(() => {
|
|
5098
5161
|
this.activationState = "inactive";
|
|
5099
5162
|
});
|
|
5100
5163
|
} catch (t) {
|
|
5101
|
-
throw
|
|
5164
|
+
throw D(() => {
|
|
5102
5165
|
this.activationState = "active";
|
|
5103
5166
|
}), t;
|
|
5104
5167
|
}
|
|
@@ -5108,18 +5171,18 @@ class gt {
|
|
|
5108
5171
|
console.error("Tried to activate while already activating");
|
|
5109
5172
|
return;
|
|
5110
5173
|
}
|
|
5111
|
-
|
|
5174
|
+
D(() => {
|
|
5112
5175
|
this.activationState = "activating";
|
|
5113
5176
|
});
|
|
5114
5177
|
try {
|
|
5115
5178
|
await this.nova.api.controller.setDefaultMode(
|
|
5116
5179
|
this.controllerId,
|
|
5117
5180
|
"ROBOT_SYSTEM_MODE_CONTROL"
|
|
5118
|
-
),
|
|
5181
|
+
), D(() => {
|
|
5119
5182
|
this.activationState = "active";
|
|
5120
5183
|
});
|
|
5121
5184
|
} catch (t) {
|
|
5122
|
-
throw
|
|
5185
|
+
throw D(() => {
|
|
5123
5186
|
this.activationState = "inactive";
|
|
5124
5187
|
}), t;
|
|
5125
5188
|
}
|
|
@@ -5134,7 +5197,7 @@ class gt {
|
|
|
5134
5197
|
this.joggingVelocity = t;
|
|
5135
5198
|
}
|
|
5136
5199
|
}
|
|
5137
|
-
function
|
|
5200
|
+
function te() {
|
|
5138
5201
|
var t, o, r, i, n, c;
|
|
5139
5202
|
const e = Ft({
|
|
5140
5203
|
palette: {
|
|
@@ -5473,52 +5536,52 @@ function Kt() {
|
|
|
5473
5536
|
}
|
|
5474
5537
|
};
|
|
5475
5538
|
}
|
|
5476
|
-
function
|
|
5477
|
-
const e =
|
|
5539
|
+
function Ho() {
|
|
5540
|
+
const e = te();
|
|
5478
5541
|
return e.palette.mode = "light", e;
|
|
5479
5542
|
}
|
|
5480
|
-
function
|
|
5543
|
+
function Ii(e) {
|
|
5481
5544
|
var r, i, n, c;
|
|
5482
5545
|
let t = !0;
|
|
5483
5546
|
((r = e.palette) == null ? void 0 : r.mode) === "light" ? t = !1 : ((i = e.palette) == null ? void 0 : i.mode) !== "dark" && (t = !(typeof window < "u" && ((c = (n = window.matchMedia) == null ? void 0 : n.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : c.matches)));
|
|
5484
|
-
const o = t ?
|
|
5547
|
+
const o = t ? te() : Ho();
|
|
5485
5548
|
return Ft(o, e);
|
|
5486
5549
|
}
|
|
5487
5550
|
export {
|
|
5488
|
-
|
|
5489
|
-
|
|
5551
|
+
gi as A,
|
|
5552
|
+
ui as C,
|
|
5490
5553
|
bt as J,
|
|
5491
|
-
|
|
5554
|
+
Do as L,
|
|
5492
5555
|
ht as M,
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5556
|
+
vi as N,
|
|
5557
|
+
mi as P,
|
|
5558
|
+
Ci as R,
|
|
5559
|
+
wi as S,
|
|
5560
|
+
Ti as T,
|
|
5561
|
+
Eo as V,
|
|
5562
|
+
xo as W,
|
|
5563
|
+
Pt as a,
|
|
5564
|
+
yo as b,
|
|
5565
|
+
Ii as c,
|
|
5566
|
+
pi as d,
|
|
5567
|
+
hi as e,
|
|
5568
|
+
Co as f,
|
|
5569
|
+
wo as g,
|
|
5570
|
+
Si as h,
|
|
5508
5571
|
st as i,
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5572
|
+
fi as j,
|
|
5573
|
+
bi as k,
|
|
5574
|
+
xi as l,
|
|
5575
|
+
yi as m,
|
|
5513
5576
|
Ao as n,
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5577
|
+
Kt as o,
|
|
5578
|
+
Fo as p,
|
|
5579
|
+
Mi as q,
|
|
5517
5580
|
Yt as r,
|
|
5518
5581
|
gt as s,
|
|
5519
5582
|
ft as t,
|
|
5520
5583
|
Ut as u,
|
|
5521
|
-
|
|
5584
|
+
So as v,
|
|
5522
5585
|
Ht as w,
|
|
5523
|
-
|
|
5586
|
+
vo as x
|
|
5524
5587
|
};
|