@wandelbots/wandelbots-js-react-components 5.5.5-pr.fix-select-tcp.609.ab2dd9b → 5.5.5-pr.fix-select-tcp.609.55e8821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{theming-CKfhgn8I.js → theming-Cyw7_pwb.js} +894 -901
- package/dist/chunks/theming-knRUZgmE.cjs +4 -0
- package/dist/components/jogging/JoggingStore.d.ts +6 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/theming-B-O5PGJ0.cjs +0 -4
|
@@ -15,82 +15,82 @@ import ie from "@mui/material/SvgIcon";
|
|
|
15
15
|
import U from "@mui/material/Fade";
|
|
16
16
|
import { Gauge as re } from "@mui/x-charts/Gauge";
|
|
17
17
|
import { useTranslation as V } from "react-i18next";
|
|
18
|
-
import { f as $t, e as pt
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import { f as $t, e as pt } from "./interpolation-D9WFd-j_.js";
|
|
19
|
+
import ae from "@mui/icons-material/Clear";
|
|
20
|
+
import se from "@mui/icons-material/FilterList";
|
|
21
21
|
import It from "@mui/icons-material/Search";
|
|
22
22
|
import Y from "@mui/material/Divider";
|
|
23
|
-
import { useGridApiRef as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import { useGridApiRef as le, DataGrid as ce, Toolbar as de, FilterPanelTrigger as ge, ToolbarButton as st, QuickFilter as ue, QuickFilterTrigger as pe, QuickFilterControl as me, QuickFilterClear as he } from "@mui/x-data-grid";
|
|
24
|
+
import fe from "@mui/icons-material/OpenWith";
|
|
25
|
+
import be from "@mui/icons-material/Share";
|
|
26
26
|
import _ 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 B, makeAutoObservable as mt, when as lt, autorun as kt, makeObservable as
|
|
32
|
-
import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as
|
|
29
|
+
import { JointTypeEnum as G, NovaClient as xe, poseToWandelscriptString as ye } from "@wandelbots/nova-js/v2";
|
|
30
|
+
import { lowerFirst as Se, countBy as ve, isString as Ce } from "lodash-es";
|
|
31
|
+
import { runInAction as B, makeAutoObservable as mt, when as lt, autorun as kt, makeObservable as we, action as Rt, observable as Te } from "mobx";
|
|
32
|
+
import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as Me } 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 Ie } from "@mui/material/utils";
|
|
36
|
+
import { m as ke } from "./SafetyBar-C8whliAf.js";
|
|
37
|
+
import Re from "@mui/material/Alert";
|
|
38
|
+
import je 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 Ee, d as Pe, F as _e, a as Oe, b as De, f as Ae, e as Je } from "./robot-Cy9ST5-m.js";
|
|
42
|
+
import Be from "lodash-es/isEqual.js";
|
|
43
|
+
import Fe from "@mui/material/InputAdornment";
|
|
44
|
+
import Le from "@mui/material/FormControl";
|
|
45
|
+
import $e from "@mui/material/InputLabel";
|
|
46
|
+
import ze from "@mui/material/Select";
|
|
47
47
|
import nt from "lodash-es/keyBy.js";
|
|
48
|
-
import
|
|
49
|
-
import
|
|
48
|
+
import Ve from "lodash-es/uniqueId.js";
|
|
49
|
+
import Ne 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 We from "lodash-es/isNumber.js";
|
|
52
|
+
import Ge from "@mui/icons-material/ChevronLeft";
|
|
53
|
+
import Ue from "@mui/icons-material/ChevronRight";
|
|
54
|
+
import He from "lodash-es/throttle.js";
|
|
55
|
+
import qe from "@mui/material/Tooltip";
|
|
56
|
+
import Ye from "@mui/icons-material/ContentCopy";
|
|
57
|
+
import Ze from "@mui/icons-material/DescriptionOutlined";
|
|
58
|
+
import Qe from "@mui/icons-material/ExpandLess";
|
|
59
|
+
import Xe from "@mui/icons-material/ExpandMore";
|
|
60
|
+
import Ke from "@mui/material/Paper";
|
|
61
|
+
import to from "@mui/material/Dialog";
|
|
62
|
+
import eo from "@mui/material/DialogActions";
|
|
63
|
+
import oo from "@mui/material/DialogContent";
|
|
64
|
+
import no from "@mui/material/DialogTitle";
|
|
65
|
+
import io from "@mui/icons-material/Error";
|
|
66
|
+
import ro from "@mui/material/Chip";
|
|
67
|
+
import ao from "@mui/material/Fab";
|
|
68
|
+
import so from "@mui/material/Badge";
|
|
69
|
+
import { Gauge as lo } from "@mui/x-charts";
|
|
70
70
|
import * as Et from "three";
|
|
71
71
|
import { Vector3 as Pt } from "three";
|
|
72
|
-
const
|
|
72
|
+
const co = (e) => /* @__PURE__ */ a(ie, { ...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
|
-
) }),
|
|
80
|
-
J((
|
|
79
|
+
) }), di = $(
|
|
80
|
+
J((e) => {
|
|
81
81
|
const {
|
|
82
|
-
appIcon:
|
|
82
|
+
appIcon: t,
|
|
83
83
|
appName: o,
|
|
84
|
-
apps:
|
|
85
|
-
onAppSelect:
|
|
84
|
+
apps: i = [],
|
|
85
|
+
onAppSelect: r,
|
|
86
86
|
disabled: n = !1,
|
|
87
87
|
sx: c
|
|
88
|
-
} =
|
|
88
|
+
} = e, [s, l] = F(null), u = !!s, f = (p) => {
|
|
89
89
|
l(p.currentTarget);
|
|
90
90
|
}, g = () => {
|
|
91
91
|
l(null);
|
|
92
92
|
}, d = (p) => {
|
|
93
|
-
g(), p.onClick ? p.onClick() : p.href && (window.location.href = p.href),
|
|
93
|
+
g(), p.onClick ? p.onClick() : p.href && (window.location.href = p.href), r == null || r(p);
|
|
94
94
|
};
|
|
95
95
|
return /* @__PURE__ */ S(et, { children: [
|
|
96
96
|
/* @__PURE__ */ a(
|
|
@@ -107,7 +107,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
107
107
|
...c
|
|
108
108
|
},
|
|
109
109
|
children: /* @__PURE__ */ S(oe, { sx: { minHeight: "62px !important" }, children: [
|
|
110
|
-
/* @__PURE__ */ a(T, { sx: { mr: 1, display: "flex", alignItems: "center" }, children:
|
|
110
|
+
/* @__PURE__ */ a(T, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: t }),
|
|
111
111
|
/* @__PURE__ */ S(T, { sx: { display: "flex", alignItems: "center", flexGrow: 1 }, children: [
|
|
112
112
|
/* @__PURE__ */ a(
|
|
113
113
|
j,
|
|
@@ -120,7 +120,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
120
120
|
children: o
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
|
|
123
|
+
i.length > 0 && /* @__PURE__ */ a(
|
|
124
124
|
H,
|
|
125
125
|
{
|
|
126
126
|
color: "inherit",
|
|
@@ -146,7 +146,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
146
146
|
height: "6px"
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
children: /* @__PURE__ */ a(
|
|
149
|
+
children: /* @__PURE__ */ a(co, {})
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
] })
|
|
@@ -187,7 +187,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
187
187
|
mt: 1
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
-
children:
|
|
190
|
+
children: i.map((p) => /* @__PURE__ */ S(q, { onClick: () => d(p), children: [
|
|
191
191
|
/* @__PURE__ */ a(T, { sx: { display: "flex", alignItems: "center" }, children: p.icon }),
|
|
192
192
|
/* @__PURE__ */ a(j, { variant: "body1", sx: { ml: 2 }, children: p.name })
|
|
193
193
|
] }, p.id))
|
|
@@ -195,26 +195,26 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
195
195
|
)
|
|
196
196
|
] });
|
|
197
197
|
})
|
|
198
|
-
),
|
|
199
|
-
const
|
|
200
|
-
return
|
|
201
|
-
}, N = (
|
|
202
|
-
const o = Math.floor(
|
|
198
|
+
), go = (e) => {
|
|
199
|
+
const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), r = e % 60, n = [];
|
|
200
|
+
return t > 0 ? (n.push(t.toString()), n.push(o.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : (n.push(i.toString()), n.push(r.toString().padStart(2, "0"))), n.join(":");
|
|
201
|
+
}, N = (e, t) => {
|
|
202
|
+
const o = Math.floor(e / 86400), i = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), n = e % 60;
|
|
203
203
|
if (typeof Intl < "u" && "DurationFormat" in Intl)
|
|
204
204
|
try {
|
|
205
205
|
const s = {};
|
|
206
|
-
return o > 0 && (s.days = o),
|
|
206
|
+
return o > 0 && (s.days = o), i > 0 && (s.hours = i), r > 0 && (s.minutes = r), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
|
|
207
207
|
} catch {
|
|
208
208
|
}
|
|
209
209
|
const c = [];
|
|
210
|
-
return o > 0 && c.push(`${o}d`),
|
|
211
|
-
},
|
|
212
|
-
timerState:
|
|
213
|
-
animationState:
|
|
210
|
+
return o > 0 && c.push(`${o}d`), i > 0 && c.push(`${i}h`), r > 0 && c.push(`${r}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
|
|
211
|
+
}, uo = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, po = ({
|
|
212
|
+
timerState: e,
|
|
213
|
+
animationState: t,
|
|
214
214
|
hasError: o,
|
|
215
|
-
className:
|
|
215
|
+
className: i
|
|
216
216
|
}) => {
|
|
217
|
-
const { t:
|
|
217
|
+
const { t: r, i18n: n } = V(), c = L(), { currentState: s, remainingTime: l, maxTime: u, currentProgress: f } = e, {
|
|
218
218
|
showErrorAnimation: g,
|
|
219
219
|
showPauseAnimation: d,
|
|
220
220
|
showPulsatingText: p,
|
|
@@ -223,11 +223,11 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
223
223
|
showMainText: h,
|
|
224
224
|
showIdlePulsating: m,
|
|
225
225
|
idleDotsCount: v
|
|
226
|
-
} =
|
|
226
|
+
} = t;
|
|
227
227
|
return /* @__PURE__ */ S(
|
|
228
228
|
T,
|
|
229
229
|
{
|
|
230
|
-
className:
|
|
230
|
+
className: i,
|
|
231
231
|
sx: {
|
|
232
232
|
position: "relative",
|
|
233
233
|
width: 264,
|
|
@@ -324,7 +324,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
324
324
|
opacity: s === "measured" && x ? p ? 1 : 0.6 : 1,
|
|
325
325
|
transition: "opacity 2s ease-in-out"
|
|
326
326
|
},
|
|
327
|
-
children: s === "measuring" || s === "measured" ?
|
|
327
|
+
children: s === "measuring" || s === "measured" ? r("CycleTimer.CycleTime.lb", "Cycle Time") : s === "countdown" ? r("CycleTimer.RemainingTime.lb", "Remaining Time") : ""
|
|
328
328
|
}
|
|
329
329
|
)
|
|
330
330
|
}
|
|
@@ -376,7 +376,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
376
376
|
opacity: m ? 1 : 0.6,
|
|
377
377
|
transition: "opacity 2s ease-in-out"
|
|
378
378
|
},
|
|
379
|
-
children:
|
|
379
|
+
children: r(
|
|
380
380
|
"CycleTimer.WaitingForCycle.lb",
|
|
381
381
|
"Waiting for program cycle"
|
|
382
382
|
)
|
|
@@ -411,7 +411,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
411
411
|
color: "#FFFFFF",
|
|
412
412
|
lineHeight: "116.7%"
|
|
413
413
|
},
|
|
414
|
-
children:
|
|
414
|
+
children: r("CycleTimer.Error.lb", "Error")
|
|
415
415
|
}
|
|
416
416
|
) }),
|
|
417
417
|
/* @__PURE__ */ a(
|
|
@@ -438,7 +438,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
438
438
|
opacity: 1,
|
|
439
439
|
transition: "opacity 2s ease-in-out"
|
|
440
440
|
},
|
|
441
|
-
children:
|
|
441
|
+
children: go(l)
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
}
|
|
@@ -479,7 +479,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
479
479
|
opacity: s === "measured" && x ? p ? 1 : 0.6 : 1,
|
|
480
480
|
transition: "opacity 2s ease-in-out"
|
|
481
481
|
},
|
|
482
|
-
children: s === "measuring" ?
|
|
482
|
+
children: s === "measuring" ? r("CycleTimer.Measuring.lb", "measuring...") : s === "measured" ? r("CycleTimer.Determined.lb", "determined") : s === "countdown" && u !== null ? r("CycleTimer.OfTime.lb", {
|
|
483
483
|
time: N(u, n.language)
|
|
484
484
|
}) : ""
|
|
485
485
|
}
|
|
@@ -496,25 +496,25 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
},
|
|
500
|
-
timerState:
|
|
501
|
-
animationState:
|
|
499
|
+
}, mo = ({
|
|
500
|
+
timerState: e,
|
|
501
|
+
animationState: t,
|
|
502
502
|
hasError: o,
|
|
503
|
-
compact:
|
|
504
|
-
className:
|
|
503
|
+
compact: i,
|
|
504
|
+
className: r
|
|
505
505
|
}) => {
|
|
506
|
-
const { t: n, i18n: c } = V(), s = L(), { currentState: l, remainingTime: u, maxTime: f } =
|
|
506
|
+
const { t: n, i18n: c } = V(), s = L(), { currentState: l, remainingTime: u, maxTime: f } = e, {
|
|
507
507
|
showErrorAnimation: g,
|
|
508
508
|
showPauseAnimation: d,
|
|
509
509
|
showPulsatingText: p,
|
|
510
510
|
pulsatingFinished: x,
|
|
511
511
|
showIdlePulsating: y,
|
|
512
512
|
idleDotsCount: h
|
|
513
|
-
} =
|
|
514
|
-
return
|
|
513
|
+
} = t;
|
|
514
|
+
return i && l === "idle" ? /* @__PURE__ */ a(
|
|
515
515
|
T,
|
|
516
516
|
{
|
|
517
|
-
className:
|
|
517
|
+
className: r,
|
|
518
518
|
sx: {
|
|
519
519
|
display: "flex",
|
|
520
520
|
alignItems: "center",
|
|
@@ -536,7 +536,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
536
536
|
) : /* @__PURE__ */ S(
|
|
537
537
|
T,
|
|
538
538
|
{
|
|
539
|
-
className:
|
|
539
|
+
className: r,
|
|
540
540
|
sx: {
|
|
541
541
|
display: "flex",
|
|
542
542
|
alignItems: "center",
|
|
@@ -544,7 +544,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
544
544
|
gap: 1
|
|
545
545
|
},
|
|
546
546
|
children: [
|
|
547
|
-
!(l === "idle" &&
|
|
547
|
+
!(l === "idle" && i) && /* @__PURE__ */ a(
|
|
548
548
|
T,
|
|
549
549
|
{
|
|
550
550
|
sx: {
|
|
@@ -592,7 +592,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
592
592
|
strokeWidth: "2",
|
|
593
593
|
strokeLinecap: "round",
|
|
594
594
|
strokeDasharray: `${2 * Math.PI * 8}`,
|
|
595
|
-
strokeDashoffset: `${2 * Math.PI * 8 * (1 - (l === "idle" ? 0 :
|
|
595
|
+
strokeDashoffset: `${2 * Math.PI * 8 * (1 - (l === "idle" ? 0 : e.currentProgress) / 100)}`,
|
|
596
596
|
style: {
|
|
597
597
|
opacity: l === "measured" && x ? p ? 1 : 0.6 : 1,
|
|
598
598
|
transition: "stroke-dashoffset 0.1s ease-out, stroke 0.8s ease-in-out, opacity 2s ease-in-out"
|
|
@@ -629,14 +629,14 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
629
629
|
children: ".".repeat(h)
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
|
-
] }) : l === "measuring" ?
|
|
632
|
+
] }) : l === "measuring" ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Measuring.lb", "measuring...")}` : l === "measured" ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Determined.lb", "determined")}` : l === "countdown" && f !== null ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Time.lb", { time: N(f, c.language) })}` : N(u, c.language)
|
|
633
633
|
}
|
|
634
634
|
)
|
|
635
635
|
]
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
|
-
},
|
|
639
|
-
const [
|
|
638
|
+
}, ho = () => {
|
|
639
|
+
const [e, t] = F({
|
|
640
640
|
showPauseAnimation: !1,
|
|
641
641
|
showErrorAnimation: !1,
|
|
642
642
|
showPulsatingText: !1,
|
|
@@ -647,90 +647,90 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
647
647
|
idleDotsCount: 0
|
|
648
648
|
}), o = D(
|
|
649
649
|
null
|
|
650
|
-
), r = D(
|
|
651
|
-
null
|
|
652
650
|
), i = D(
|
|
653
651
|
null
|
|
652
|
+
), r = D(
|
|
653
|
+
null
|
|
654
654
|
), n = D(null), c = D(0), s = D(null), l = D(
|
|
655
655
|
null
|
|
656
656
|
), u = P(() => {
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
t((b) => ({ ...b, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
658
|
+
t((b) => ({ ...b, showPauseAnimation: !1 }));
|
|
659
659
|
}, 800);
|
|
660
660
|
}, []), f = P(() => {
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
t((b) => ({ ...b, showErrorAnimation: !0 })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
662
|
+
t((b) => ({ ...b, showErrorAnimation: !1 }));
|
|
663
663
|
}, 600);
|
|
664
664
|
}, []), g = P(() => {
|
|
665
|
-
|
|
665
|
+
t((b) => ({ ...b, showErrorAnimation: !1 })), i.current && clearTimeout(i.current);
|
|
666
666
|
}, []), d = P((b) => {
|
|
667
|
-
c.current = 0,
|
|
667
|
+
c.current = 0, t((w) => ({
|
|
668
668
|
...w,
|
|
669
669
|
showPulsatingText: !0,
|
|
670
670
|
pulsatingFinished: !1
|
|
671
671
|
})), setTimeout(() => {
|
|
672
|
-
|
|
672
|
+
t((w) => ({
|
|
673
673
|
...w,
|
|
674
674
|
pulsatingFinished: !0
|
|
675
675
|
// This will keep the success color and start slow pulsating
|
|
676
|
-
})),
|
|
677
|
-
|
|
676
|
+
})), r.current = setInterval(() => {
|
|
677
|
+
t((w) => ({
|
|
678
678
|
...w,
|
|
679
679
|
showPulsatingText: !w.showPulsatingText
|
|
680
680
|
}));
|
|
681
681
|
}, 2e3), b && b();
|
|
682
682
|
}, 800);
|
|
683
683
|
}, []), p = P(() => {
|
|
684
|
-
|
|
684
|
+
r.current && (clearInterval(r.current), r.current = null), t((b) => ({
|
|
685
685
|
...b,
|
|
686
686
|
showPulsatingText: !1,
|
|
687
687
|
pulsatingFinished: !1
|
|
688
688
|
})), c.current = 0;
|
|
689
689
|
}, []), x = P(() => {
|
|
690
|
-
|
|
690
|
+
t((b) => ({
|
|
691
691
|
...b,
|
|
692
692
|
showIdlePulsating: !0
|
|
693
693
|
})), s.current = setInterval(() => {
|
|
694
|
-
|
|
694
|
+
t((b) => ({
|
|
695
695
|
...b,
|
|
696
696
|
showIdlePulsating: !b.showIdlePulsating
|
|
697
697
|
}));
|
|
698
698
|
}, 2e3), l.current = setInterval(() => {
|
|
699
|
-
|
|
699
|
+
t((b) => ({
|
|
700
700
|
...b,
|
|
701
701
|
idleDotsCount: (b.idleDotsCount + 1) % 4
|
|
702
702
|
// Cycle through 0, 1, 2, 3
|
|
703
703
|
}));
|
|
704
704
|
}, 800);
|
|
705
705
|
}, []), y = P(() => {
|
|
706
|
-
s.current && (clearInterval(s.current), s.current = null), l.current && (clearInterval(l.current), l.current = null),
|
|
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
711
|
}, []), h = P(() => {
|
|
712
|
-
|
|
712
|
+
t((b) => ({
|
|
713
713
|
...b,
|
|
714
714
|
showLabels: !1,
|
|
715
715
|
showMainText: !1
|
|
716
716
|
})), n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
717
|
-
|
|
717
|
+
t((b) => ({
|
|
718
718
|
...b,
|
|
719
719
|
showLabels: !0,
|
|
720
720
|
showMainText: !0
|
|
721
721
|
}));
|
|
722
722
|
}, 200);
|
|
723
723
|
}, []), m = P(() => {
|
|
724
|
-
|
|
724
|
+
t((b) => ({
|
|
725
725
|
...b,
|
|
726
726
|
showLabels: !0,
|
|
727
727
|
showMainText: !0
|
|
728
728
|
}));
|
|
729
729
|
}, []), v = P(() => {
|
|
730
|
-
o.current && clearTimeout(o.current),
|
|
730
|
+
o.current && clearTimeout(o.current), i.current && clearTimeout(i.current), n.current && clearTimeout(n.current), r.current && clearInterval(r.current), s.current && clearInterval(s.current), l.current && clearInterval(l.current);
|
|
731
731
|
}, []);
|
|
732
732
|
return {
|
|
733
|
-
animationState:
|
|
733
|
+
animationState: e,
|
|
734
734
|
triggerPauseAnimation: u,
|
|
735
735
|
triggerErrorAnimation: f,
|
|
736
736
|
clearErrorAnimation: g,
|
|
@@ -742,12 +742,12 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
742
742
|
setInitialAnimationState: m,
|
|
743
743
|
cleanup: v
|
|
744
744
|
};
|
|
745
|
-
},
|
|
746
|
-
autoStart:
|
|
747
|
-
onCycleEnd:
|
|
745
|
+
}, fo = ({
|
|
746
|
+
autoStart: e,
|
|
747
|
+
onCycleEnd: t,
|
|
748
748
|
onMeasuringComplete: o,
|
|
749
|
-
hasError:
|
|
750
|
-
onPauseAnimation:
|
|
749
|
+
hasError: i,
|
|
750
|
+
onPauseAnimation: r,
|
|
751
751
|
onErrorAnimation: n,
|
|
752
752
|
onClearErrorAnimation: c,
|
|
753
753
|
onStartPulsating: s
|
|
@@ -788,9 +788,9 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
788
788
|
isPausedState: !1,
|
|
789
789
|
currentProgress: M
|
|
790
790
|
// Immediately set progress
|
|
791
|
-
})), d.current = 0, p.setImmediate([M]),
|
|
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
794
|
), h = P(
|
|
795
795
|
(C, M = 0) => {
|
|
796
796
|
u((I) => ({ ...I, isRunning: !1 })), g.current = null, u((I) => ({
|
|
@@ -805,11 +805,11 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
805
805
|
remainingTime: k,
|
|
806
806
|
currentProgress: R
|
|
807
807
|
// Immediately set progress
|
|
808
|
-
})), p.setImmediate([R]), k === 0 ? (u((I) => ({ ...I, isRunning: !1 })), g.current = null,
|
|
808
|
+
})), p.setImmediate([R]), 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
813
|
), m = P(() => {
|
|
814
814
|
u((C) => ({
|
|
815
815
|
...C,
|
|
@@ -822,7 +822,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
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, R =
|
|
825
|
+
const k = d.current / 1e3, R = uo(
|
|
826
826
|
l.currentState,
|
|
827
827
|
k,
|
|
828
828
|
l.maxTime
|
|
@@ -833,13 +833,13 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
833
833
|
...C,
|
|
834
834
|
isRunning: !1,
|
|
835
835
|
isPausedState: !0
|
|
836
|
-
})),
|
|
836
|
+
})), r();
|
|
837
837
|
}, [
|
|
838
838
|
l.isRunning,
|
|
839
839
|
l.currentState,
|
|
840
840
|
l.maxTime,
|
|
841
841
|
p,
|
|
842
|
-
|
|
842
|
+
r
|
|
843
843
|
]), b = P(() => {
|
|
844
844
|
l.isPausedState && (l.remainingTime > 0 || l.currentState !== "countdown") && (g.current = Date.now(), u((C) => ({
|
|
845
845
|
...C,
|
|
@@ -852,9 +852,9 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
852
852
|
l.currentState
|
|
853
853
|
]), w = P(() => l.isPausedState, [l.isPausedState]);
|
|
854
854
|
return A(() => {
|
|
855
|
-
|
|
855
|
+
i ? (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
|
+
i,
|
|
858
858
|
l.isRunning,
|
|
859
859
|
l.isPausedState,
|
|
860
860
|
l.wasRunningBeforeError,
|
|
@@ -879,7 +879,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
879
879
|
...E,
|
|
880
880
|
isRunning: !1,
|
|
881
881
|
remainingTime: 0
|
|
882
|
-
})), g.current = null, p.setTarget([100]),
|
|
882
|
+
})), g.current = null, p.setTarget([100]), t && queueMicrotask(() => t());
|
|
883
883
|
return;
|
|
884
884
|
}
|
|
885
885
|
} else if (l.currentState === "measuring") {
|
|
@@ -901,7 +901,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
901
901
|
};
|
|
902
902
|
}, [
|
|
903
903
|
l.isRunning,
|
|
904
|
-
|
|
904
|
+
t,
|
|
905
905
|
l.currentState,
|
|
906
906
|
l.maxTime,
|
|
907
907
|
p
|
|
@@ -925,14 +925,14 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
925
925
|
isPaused: w
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
|
-
},
|
|
928
|
+
}, gi = $(
|
|
929
929
|
J(
|
|
930
930
|
({
|
|
931
|
-
onCycleComplete:
|
|
932
|
-
onCycleEnd:
|
|
931
|
+
onCycleComplete: e,
|
|
932
|
+
onCycleEnd: t,
|
|
933
933
|
onMeasuringComplete: o,
|
|
934
|
-
autoStart:
|
|
935
|
-
variant:
|
|
934
|
+
autoStart: i = !0,
|
|
935
|
+
variant: r = "default",
|
|
936
936
|
compact: n = !1,
|
|
937
937
|
className: c,
|
|
938
938
|
hasError: s = !1
|
|
@@ -949,9 +949,9 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
949
949
|
triggerFadeTransition: m,
|
|
950
950
|
setInitialAnimationState: v,
|
|
951
951
|
cleanup: b
|
|
952
|
-
} =
|
|
953
|
-
autoStart:
|
|
954
|
-
onCycleEnd:
|
|
952
|
+
} = ho(), { timerState: w, controls: C } = fo({
|
|
953
|
+
autoStart: i,
|
|
954
|
+
onCycleEnd: t,
|
|
955
955
|
onMeasuringComplete: o,
|
|
956
956
|
hasError: s,
|
|
957
957
|
onPauseAnimation: f,
|
|
@@ -972,13 +972,13 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
972
972
|
]), A(() => {
|
|
973
973
|
let M = !0;
|
|
974
974
|
const k = setTimeout(() => {
|
|
975
|
-
M &&
|
|
975
|
+
M && e(C);
|
|
976
976
|
}, 0);
|
|
977
977
|
return () => {
|
|
978
978
|
M = !1, clearTimeout(k);
|
|
979
979
|
};
|
|
980
|
-
}, [
|
|
981
|
-
|
|
980
|
+
}, [e, C]), A(() => b, [b]), r === "small" ? /* @__PURE__ */ a(
|
|
981
|
+
mo,
|
|
982
982
|
{
|
|
983
983
|
timerState: w,
|
|
984
984
|
animationState: u,
|
|
@@ -987,7 +987,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
987
987
|
className: c
|
|
988
988
|
}
|
|
989
989
|
) : /* @__PURE__ */ a(
|
|
990
|
-
|
|
990
|
+
po,
|
|
991
991
|
{
|
|
992
992
|
timerState: w,
|
|
993
993
|
animationState: u,
|
|
@@ -997,14 +997,14 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
997
997
|
);
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
|
-
),
|
|
1000
|
+
), bo = $(
|
|
1001
1001
|
J(
|
|
1002
1002
|
({
|
|
1003
|
-
data:
|
|
1004
|
-
columns:
|
|
1003
|
+
data: e,
|
|
1004
|
+
columns: t,
|
|
1005
1005
|
getRowData: o,
|
|
1006
|
-
onRowClick:
|
|
1007
|
-
selectedItem:
|
|
1006
|
+
onRowClick: i,
|
|
1007
|
+
selectedItem: r,
|
|
1008
1008
|
getItemId: n,
|
|
1009
1009
|
title: c,
|
|
1010
1010
|
showCount: s = !0,
|
|
@@ -1015,15 +1015,15 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1015
1015
|
sx: d
|
|
1016
1016
|
}) => {
|
|
1017
1017
|
var R;
|
|
1018
|
-
const p = L(), x =
|
|
1018
|
+
const p = L(), x = le(), y = D(null), [h, m] = F(null), v = rt(() => e.map(o), [e, o]);
|
|
1019
1019
|
A(() => {
|
|
1020
1020
|
x.current && v.length > 0 && x.current.autosizeColumns({
|
|
1021
1021
|
includeOutliers: !0,
|
|
1022
1022
|
includeHeaders: !0,
|
|
1023
1023
|
expand: !0,
|
|
1024
|
-
columns:
|
|
1024
|
+
columns: t.map((I) => I.field)
|
|
1025
1025
|
});
|
|
1026
|
-
}, [v,
|
|
1026
|
+
}, [v, t, x]), A(() => {
|
|
1027
1027
|
if (!y.current || !x.current) return;
|
|
1028
1028
|
const I = new ResizeObserver(() => {
|
|
1029
1029
|
setTimeout(() => {
|
|
@@ -1031,30 +1031,30 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1031
1031
|
includeOutliers: !0,
|
|
1032
1032
|
includeHeaders: !0,
|
|
1033
1033
|
expand: !0,
|
|
1034
|
-
columns:
|
|
1034
|
+
columns: t.map((E) => E.field)
|
|
1035
1035
|
});
|
|
1036
1036
|
}, 100);
|
|
1037
1037
|
});
|
|
1038
1038
|
return I.observe(y.current), () => {
|
|
1039
1039
|
I.disconnect();
|
|
1040
1040
|
};
|
|
1041
|
-
}, [x, v.length,
|
|
1041
|
+
}, [x, v.length, t]);
|
|
1042
1042
|
const b = rt(() => {
|
|
1043
|
-
if (
|
|
1044
|
-
return
|
|
1043
|
+
if (r !== void 0)
|
|
1044
|
+
return r;
|
|
1045
1045
|
if (h !== null)
|
|
1046
1046
|
return h;
|
|
1047
|
-
if (g &&
|
|
1048
|
-
const I =
|
|
1047
|
+
if (g && e.length > 0) {
|
|
1048
|
+
const I = e[0];
|
|
1049
1049
|
return m(I), I;
|
|
1050
1050
|
}
|
|
1051
1051
|
return null;
|
|
1052
|
-
}, [g,
|
|
1053
|
-
const E =
|
|
1054
|
-
E && (
|
|
1052
|
+
}, [g, e, r, h]), w = (I) => {
|
|
1053
|
+
const E = e.find((z) => o(z).id === I.id);
|
|
1054
|
+
E && (r === void 0 && m(E), i && i(E, I));
|
|
1055
1055
|
}, C = rt(() => !b || !n ? null : n(b), [b, n]);
|
|
1056
1056
|
function M() {
|
|
1057
|
-
return /* @__PURE__ */ a(
|
|
1057
|
+
return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ S(
|
|
1058
1058
|
T,
|
|
1059
1059
|
{
|
|
1060
1060
|
sx: {
|
|
@@ -1075,7 +1075,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1075
1075
|
},
|
|
1076
1076
|
children: [
|
|
1077
1077
|
c,
|
|
1078
|
-
s && ` (${
|
|
1078
|
+
s && ` (${e.length})`
|
|
1079
1079
|
]
|
|
1080
1080
|
}
|
|
1081
1081
|
),
|
|
@@ -1091,9 +1091,9 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1091
1091
|
},
|
|
1092
1092
|
children: [
|
|
1093
1093
|
/* @__PURE__ */ a(
|
|
1094
|
-
|
|
1094
|
+
ge,
|
|
1095
1095
|
{
|
|
1096
|
-
render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(
|
|
1096
|
+
render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(se, { fontSize: "small" }) })
|
|
1097
1097
|
}
|
|
1098
1098
|
),
|
|
1099
1099
|
/* @__PURE__ */ a(
|
|
@@ -1108,7 +1108,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1108
1108
|
}
|
|
1109
1109
|
),
|
|
1110
1110
|
/* @__PURE__ */ a(
|
|
1111
|
-
|
|
1111
|
+
ue,
|
|
1112
1112
|
{
|
|
1113
1113
|
render: (I, E) => /* @__PURE__ */ S(
|
|
1114
1114
|
T,
|
|
@@ -1120,7 +1120,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1120
1120
|
},
|
|
1121
1121
|
children: [
|
|
1122
1122
|
!E.expanded && /* @__PURE__ */ a(
|
|
1123
|
-
|
|
1123
|
+
pe,
|
|
1124
1124
|
{
|
|
1125
1125
|
render: /* @__PURE__ */ a(st, { "aria-label": "Search", children: /* @__PURE__ */ a(It, { fontSize: "small" }) })
|
|
1126
1126
|
}
|
|
@@ -1236,12 +1236,12 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
),
|
|
1239
|
-
/* @__PURE__ */ a(
|
|
1239
|
+
/* @__PURE__ */ a(me, { placeholder: l })
|
|
1240
1240
|
]
|
|
1241
1241
|
}
|
|
1242
1242
|
),
|
|
1243
1243
|
E.expanded && E.value !== "" && /* @__PURE__ */ a(
|
|
1244
|
-
|
|
1244
|
+
he,
|
|
1245
1245
|
{
|
|
1246
1246
|
render: /* @__PURE__ */ a(
|
|
1247
1247
|
T,
|
|
@@ -1266,7 +1266,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1266
1266
|
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1267
1267
|
}
|
|
1268
1268
|
},
|
|
1269
|
-
children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(
|
|
1269
|
+
children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(ae, { fontSize: "small" }) })
|
|
1270
1270
|
}
|
|
1271
1271
|
)
|
|
1272
1272
|
}
|
|
@@ -1327,11 +1327,11 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1327
1327
|
...d
|
|
1328
1328
|
},
|
|
1329
1329
|
children: /* @__PURE__ */ a(
|
|
1330
|
-
|
|
1330
|
+
ce,
|
|
1331
1331
|
{
|
|
1332
1332
|
apiRef: x,
|
|
1333
1333
|
rows: v,
|
|
1334
|
-
columns:
|
|
1334
|
+
columns: t,
|
|
1335
1335
|
onRowClick: w,
|
|
1336
1336
|
disableColumnMenu: !1,
|
|
1337
1337
|
disableRowSelectionOnClick: !0,
|
|
@@ -1365,7 +1365,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, 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: ((R = u == null ? void 0 : u.autosizeOptions) == null ? void 0 : R.columns) ||
|
|
1368
|
+
columns: ((R = u == null ? void 0 : u.autosizeOptions) == null ? void 0 : R.columns) || t.map((I) => I.field)
|
|
1369
1369
|
},
|
|
1370
1370
|
sx: {
|
|
1371
1371
|
border: "none",
|
|
@@ -1389,7 +1389,7 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1389
1389
|
borderBottom: "none !important"
|
|
1390
1390
|
},
|
|
1391
1391
|
"& .MuiDataGrid-row": {
|
|
1392
|
-
cursor:
|
|
1392
|
+
cursor: i ? "pointer" : "default",
|
|
1393
1393
|
border: "none",
|
|
1394
1394
|
margin: "1px 0",
|
|
1395
1395
|
position: "relative",
|
|
@@ -1514,15 +1514,15 @@ const go = (t) => /* @__PURE__ */ a(ie, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
1516
|
);
|
|
1517
|
-
|
|
1517
|
+
bo.displayName = "WandelbotsDataGrid";
|
|
1518
1518
|
const _t = $(
|
|
1519
1519
|
J(
|
|
1520
1520
|
({
|
|
1521
|
-
colors:
|
|
1522
|
-
label:
|
|
1521
|
+
colors: e,
|
|
1522
|
+
label: t,
|
|
1523
1523
|
getDisplayedValue: o,
|
|
1524
|
-
startJogging:
|
|
1525
|
-
stopJogging:
|
|
1524
|
+
startJogging: i,
|
|
1525
|
+
stopJogging: r,
|
|
1526
1526
|
disabled: n,
|
|
1527
1527
|
activeJoggingDirection: c,
|
|
1528
1528
|
...s
|
|
@@ -1537,7 +1537,7 @@ const _t = $(
|
|
|
1537
1537
|
n && v();
|
|
1538
1538
|
}, [n]);
|
|
1539
1539
|
const g = c || u, d = D(null);
|
|
1540
|
-
|
|
1540
|
+
e || (e = {
|
|
1541
1541
|
color: "#fff",
|
|
1542
1542
|
backgroundColor: "#000",
|
|
1543
1543
|
borderColor: "#000",
|
|
@@ -1549,10 +1549,10 @@ const _t = $(
|
|
|
1549
1549
|
},
|
|
1550
1550
|
labelColor: "#000"
|
|
1551
1551
|
});
|
|
1552
|
-
const p = g ? (b =
|
|
1552
|
+
const p = g ? (b = e.buttonBackgroundColor) == null ? void 0 : b.pressed : e.borderColor, x = {
|
|
1553
1553
|
width: "55px",
|
|
1554
|
-
color:
|
|
1555
|
-
path: { fill:
|
|
1554
|
+
color: e.color,
|
|
1555
|
+
path: { fill: e.color },
|
|
1556
1556
|
alignContent: "center",
|
|
1557
1557
|
fontSize: "37px",
|
|
1558
1558
|
svg: {
|
|
@@ -1560,34 +1560,34 @@ const _t = $(
|
|
|
1560
1560
|
}
|
|
1561
1561
|
}, y = {
|
|
1562
1562
|
...x,
|
|
1563
|
-
backgroundColor: (w =
|
|
1563
|
+
backgroundColor: (w = e.buttonBackgroundColor) == null ? void 0 : w.default,
|
|
1564
1564
|
":hover": {
|
|
1565
|
-
backgroundColor: (C =
|
|
1565
|
+
backgroundColor: (C = e.buttonBackgroundColor) == null ? void 0 : C.hovered
|
|
1566
1566
|
},
|
|
1567
1567
|
":active": {
|
|
1568
|
-
backgroundColor: (M =
|
|
1569
|
-
color:
|
|
1570
|
-
path: { fill:
|
|
1568
|
+
backgroundColor: (M = e.buttonBackgroundColor) == null ? void 0 : M.pressed,
|
|
1569
|
+
color: e.backgroundColor,
|
|
1570
|
+
path: { fill: e.backgroundColor }
|
|
1571
1571
|
},
|
|
1572
1572
|
":disabled": {
|
|
1573
|
-
backgroundColor: (k =
|
|
1573
|
+
backgroundColor: (k = e.buttonBackgroundColor) == null ? void 0 : k.disabled,
|
|
1574
1574
|
"svg path": { fill: l.palette.action.disabled }
|
|
1575
1575
|
}
|
|
1576
1576
|
}, h = {
|
|
1577
1577
|
...x,
|
|
1578
|
-
backgroundColor: (R =
|
|
1579
|
-
color:
|
|
1580
|
-
path: { fill:
|
|
1578
|
+
backgroundColor: (R = e.buttonBackgroundColor) == null ? void 0 : R.pressed,
|
|
1579
|
+
color: e.backgroundColor,
|
|
1580
|
+
path: { fill: e.backgroundColor },
|
|
1581
1581
|
":disabled": {
|
|
1582
|
-
backgroundColor: (I =
|
|
1582
|
+
backgroundColor: (I = e.buttonBackgroundColor) == null ? void 0 : I.pressed,
|
|
1583
1583
|
"svg path": { fill: l.palette.action.disabled }
|
|
1584
1584
|
}
|
|
1585
1585
|
};
|
|
1586
1586
|
function m(E, z) {
|
|
1587
|
-
n || E.button === 0 && (f(z),
|
|
1587
|
+
n || E.button === 0 && (f(z), i(z));
|
|
1588
1588
|
}
|
|
1589
1589
|
function v() {
|
|
1590
|
-
f(null),
|
|
1590
|
+
f(null), r();
|
|
1591
1591
|
}
|
|
1592
1592
|
return /* @__PURE__ */ S(_, { height: "64px", direction: "row", justifyContent: "center", ...s, children: [
|
|
1593
1593
|
/* @__PURE__ */ a(
|
|
@@ -1606,7 +1606,7 @@ 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(Ee, {})
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
1612
1612
|
/* @__PURE__ */ S(
|
|
@@ -1615,7 +1615,7 @@ const _t = $(
|
|
|
1615
1615
|
spacing: "6px",
|
|
1616
1616
|
sx: {
|
|
1617
1617
|
width: "150px",
|
|
1618
|
-
backgroundColor:
|
|
1618
|
+
backgroundColor: e.backgroundColor,
|
|
1619
1619
|
alignItems: "center",
|
|
1620
1620
|
justifyContent: "center",
|
|
1621
1621
|
opacity: "0.9",
|
|
@@ -1633,14 +1633,14 @@ const _t = $(
|
|
|
1633
1633
|
spacing: 1,
|
|
1634
1634
|
sx: {
|
|
1635
1635
|
userSelect: "none",
|
|
1636
|
-
color:
|
|
1636
|
+
color: e.color,
|
|
1637
1637
|
".MuiTypography-root": {
|
|
1638
1638
|
fontWeight: 700,
|
|
1639
1639
|
...n ? { color: l.palette.action.disabled } : {}
|
|
1640
1640
|
},
|
|
1641
1641
|
...n ? { "svg path": { fill: l.palette.action.disabled } } : {}
|
|
1642
1642
|
},
|
|
1643
|
-
children:
|
|
1643
|
+
children: t
|
|
1644
1644
|
}
|
|
1645
1645
|
),
|
|
1646
1646
|
/* @__PURE__ */ a(
|
|
@@ -1649,7 +1649,7 @@ const _t = $(
|
|
|
1649
1649
|
height: "22px",
|
|
1650
1650
|
sx: {
|
|
1651
1651
|
fontSize: "15px",
|
|
1652
|
-
color: n ? l.palette.action.disabled :
|
|
1652
|
+
color: n ? l.palette.action.disabled : e.color,
|
|
1653
1653
|
fontWeight: 700,
|
|
1654
1654
|
fontVariantNumeric: "tabular-nums",
|
|
1655
1655
|
minWidth: "80px",
|
|
@@ -1678,20 +1678,20 @@ const _t = $(
|
|
|
1678
1678
|
borderBottom: `2px solid ${p ?? "#fff"}`,
|
|
1679
1679
|
borderTop: `2px solid ${p ?? "#fff"}`
|
|
1680
1680
|
},
|
|
1681
|
-
children: /* @__PURE__ */ a(
|
|
1681
|
+
children: /* @__PURE__ */ a(Pe, {})
|
|
1682
1682
|
}
|
|
1683
1683
|
)
|
|
1684
1684
|
] });
|
|
1685
1685
|
}
|
|
1686
1686
|
)
|
|
1687
|
-
),
|
|
1687
|
+
), xo = $(
|
|
1688
1688
|
J(
|
|
1689
1689
|
({
|
|
1690
|
-
startJogging:
|
|
1691
|
-
stopJogging:
|
|
1690
|
+
startJogging: e,
|
|
1691
|
+
stopJogging: t,
|
|
1692
1692
|
lowerLimit: o,
|
|
1693
|
-
upperLimit:
|
|
1694
|
-
useDegree:
|
|
1693
|
+
upperLimit: i,
|
|
1694
|
+
useDegree: r,
|
|
1695
1695
|
getValue: n,
|
|
1696
1696
|
disabled: c,
|
|
1697
1697
|
...s
|
|
@@ -1703,13 +1703,13 @@ const _t = $(
|
|
|
1703
1703
|
}, p = Lt(() => ({
|
|
1704
1704
|
activeJoggingDir: null,
|
|
1705
1705
|
startJogging(O) {
|
|
1706
|
-
this.activeJoggingDir = O,
|
|
1706
|
+
this.activeJoggingDir = O, e(O);
|
|
1707
1707
|
},
|
|
1708
1708
|
stopJogging() {
|
|
1709
|
-
this.activeJoggingDir = null,
|
|
1709
|
+
this.activeJoggingDir = null, t();
|
|
1710
1710
|
}
|
|
1711
|
-
})), x =
|
|
1712
|
-
const O =
|
|
1711
|
+
})), x = He(() => {
|
|
1712
|
+
const O = r ? y(n()) : n();
|
|
1713
1713
|
(O === void 0 || u === void 0 || Math.abs(u - O) > 1e-9) && f(O);
|
|
1714
1714
|
}, 50);
|
|
1715
1715
|
pt(x);
|
|
@@ -1788,7 +1788,7 @@ const _t = $(
|
|
|
1788
1788
|
...p.activeJoggingDir === "-" ? d : {}
|
|
1789
1789
|
},
|
|
1790
1790
|
children: /* @__PURE__ */ a(
|
|
1791
|
-
|
|
1791
|
+
Ge,
|
|
1792
1792
|
{
|
|
1793
1793
|
sx: {
|
|
1794
1794
|
pointerEvents: "none",
|
|
@@ -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:
|
|
1831
|
+
children: r ? w(u) : C(u)
|
|
1832
1832
|
}
|
|
1833
1833
|
),
|
|
1834
1834
|
/* @__PURE__ */ a(
|
|
@@ -1836,8 +1836,8 @@ const _t = $(
|
|
|
1836
1836
|
{
|
|
1837
1837
|
disabled: !0,
|
|
1838
1838
|
"aria-label": "Joint position",
|
|
1839
|
-
min:
|
|
1840
|
-
max:
|
|
1839
|
+
min: r ? y(o) : o,
|
|
1840
|
+
max: r ? y(i) : i,
|
|
1841
1841
|
value: u || 0,
|
|
1842
1842
|
track: !1,
|
|
1843
1843
|
sx: {
|
|
@@ -1860,14 +1860,14 @@ const _t = $(
|
|
|
1860
1860
|
opacity: 1
|
|
1861
1861
|
}
|
|
1862
1862
|
},
|
|
1863
|
-
marks: o !== void 0 &&
|
|
1863
|
+
marks: o !== void 0 && i !== void 0 && [
|
|
1864
1864
|
{
|
|
1865
|
-
value:
|
|
1866
|
-
label:
|
|
1865
|
+
value: r ? y(o) : o,
|
|
1866
|
+
label: r ? w(y(o), 0) : C(o)
|
|
1867
1867
|
},
|
|
1868
1868
|
{
|
|
1869
|
-
value:
|
|
1870
|
-
label:
|
|
1869
|
+
value: r ? y(i) : i,
|
|
1870
|
+
label: r ? w(y(i), 0) : C(i)
|
|
1871
1871
|
}
|
|
1872
1872
|
]
|
|
1873
1873
|
}
|
|
@@ -1888,7 +1888,7 @@ const _t = $(
|
|
|
1888
1888
|
...p.activeJoggingDir === "+" ? d : {}
|
|
1889
1889
|
},
|
|
1890
1890
|
children: /* @__PURE__ */ a(
|
|
1891
|
-
|
|
1891
|
+
Ue,
|
|
1892
1892
|
{
|
|
1893
1893
|
sx: {
|
|
1894
1894
|
pointerEvents: "none",
|
|
@@ -1904,51 +1904,51 @@ const _t = $(
|
|
|
1904
1904
|
}
|
|
1905
1905
|
)
|
|
1906
1906
|
);
|
|
1907
|
-
function Ut(
|
|
1908
|
-
if (
|
|
1907
|
+
function Ut(e, t, o) {
|
|
1908
|
+
if (t.length !== e.length)
|
|
1909
1909
|
return !0;
|
|
1910
|
-
for (let
|
|
1910
|
+
for (let i = 0; i < t.length; i++)
|
|
1911
1911
|
if (
|
|
1912
1912
|
// biome-ignore lint/style/noNonNullAssertion: legacy code
|
|
1913
|
-
Math.abs(
|
|
1913
|
+
Math.abs(t[i] - e[i]) > o
|
|
1914
1914
|
)
|
|
1915
1915
|
return !1;
|
|
1916
1916
|
return !0;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1919
|
-
if (
|
|
1918
|
+
function yo(e, t, o) {
|
|
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
|
-
if (
|
|
1921
|
+
if (e === void 0 || t === void 0)
|
|
1922
1922
|
return !0;
|
|
1923
|
-
let
|
|
1924
|
-
return
|
|
1923
|
+
let i = 0;
|
|
1924
|
+
return i += Math.abs(e.orientation[0] - t.orientation[0]), i += Math.abs(e.orientation[1] - t.orientation[1]), i += Math.abs(e.orientation[2] - t.orientation[2]), i += Math.abs(e.position[0] - t.position[0]), i += Math.abs(e.position[1] - t.position[1]), i += Math.abs(e.position[2] - t.position[2]), i <= o;
|
|
1925
1925
|
}
|
|
1926
|
-
function Ht(
|
|
1927
|
-
return
|
|
1928
|
-
t.tcp_pose,
|
|
1926
|
+
function Ht(e, t, o) {
|
|
1927
|
+
return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && yo(
|
|
1929
1928
|
e.tcp_pose,
|
|
1929
|
+
t.tcp_pose,
|
|
1930
1930
|
o
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1933
|
+
function So(e, t) {
|
|
1934
1934
|
const o = new Pt(
|
|
1935
|
-
e[0],
|
|
1936
|
-
e[1],
|
|
1937
|
-
e[2]
|
|
1938
|
-
), r = new Pt(
|
|
1939
1935
|
t[0],
|
|
1940
1936
|
t[1],
|
|
1941
1937
|
t[2]
|
|
1942
|
-
), i =
|
|
1943
|
-
|
|
1938
|
+
), i = new Pt(
|
|
1939
|
+
e[0],
|
|
1940
|
+
e[1],
|
|
1941
|
+
e[2]
|
|
1942
|
+
), r = o.length(), n = o.normalize();
|
|
1943
|
+
let c = i.length(), s = i.normalize();
|
|
1944
1944
|
s.dot(n) < 0 && (c = -c, s = s.multiplyScalar(-1));
|
|
1945
|
-
let l = c -
|
|
1946
|
-
return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c =
|
|
1945
|
+
let l = c - r;
|
|
1946
|
+
return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c = r + l, [...s.multiplyScalar(c)];
|
|
1947
1947
|
}
|
|
1948
1948
|
const Ot = 1e-4;
|
|
1949
1949
|
class ht {
|
|
1950
|
-
constructor(
|
|
1951
|
-
this.nova =
|
|
1950
|
+
constructor(t, o, i, r, n, c) {
|
|
1951
|
+
this.nova = t, this.controller = o, this.motionGroup = i, this.description = r, this.initialMotionState = n, this.motionStateSocket = c, this.rapidlyChangingMotionState = n, c.addEventListener("message", (s) => {
|
|
1952
1952
|
var u;
|
|
1953
1953
|
const l = (u = W(s.data)) == null ? void 0 : u.result;
|
|
1954
1954
|
if (!l)
|
|
@@ -1969,7 +1969,7 @@ class ht {
|
|
|
1969
1969
|
var f, g, d;
|
|
1970
1970
|
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = l.tcp_pose : (f = l.tcp_pose) != null && f.orientation && ((g = l.tcp_pose) != null && g.position) && ((d = this.rapidlyChangingMotionState.tcp_pose) != null && d.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
|
|
1971
1971
|
position: l.tcp_pose.position,
|
|
1972
|
-
orientation:
|
|
1972
|
+
orientation: So(
|
|
1973
1973
|
l.tcp_pose.orientation,
|
|
1974
1974
|
this.rapidlyChangingMotionState.tcp_pose.orientation
|
|
1975
1975
|
)
|
|
@@ -1984,17 +1984,17 @@ class ht {
|
|
|
1984
1984
|
});
|
|
1985
1985
|
}), mt(this);
|
|
1986
1986
|
}
|
|
1987
|
-
static async open(
|
|
1987
|
+
static async open(t, o) {
|
|
1988
1988
|
var g;
|
|
1989
|
-
const [
|
|
1989
|
+
const [i, r] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(r), c = n == null ? void 0 : n.motion_groups.find(
|
|
1990
1990
|
(d) => d.motion_group === o
|
|
1991
1991
|
);
|
|
1992
1992
|
if (!n || !c)
|
|
1993
1993
|
throw new Error(
|
|
1994
|
-
`Controller ${
|
|
1994
|
+
`Controller ${r} or motion group ${o} not found`
|
|
1995
1995
|
);
|
|
1996
|
-
const s =
|
|
1997
|
-
`/controllers/${
|
|
1996
|
+
const s = t.openReconnectingWebsocket(
|
|
1997
|
+
`/controllers/${r}/motion-groups/${o}/state-stream`
|
|
1998
1998
|
), l = await s.firstMessage(), u = (g = W(l.data)) == null ? void 0 : g.result;
|
|
1999
1999
|
if (!u)
|
|
2000
2000
|
throw new Error(
|
|
@@ -2005,12 +2005,12 @@ class ht {
|
|
|
2005
2005
|
`,
|
|
2006
2006
|
u
|
|
2007
2007
|
);
|
|
2008
|
-
const f = await
|
|
2009
|
-
|
|
2008
|
+
const f = await t.api.motionGroup.getMotionGroupDescription(
|
|
2009
|
+
r,
|
|
2010
2010
|
c.motion_group
|
|
2011
2011
|
);
|
|
2012
2012
|
return new ht(
|
|
2013
|
-
|
|
2013
|
+
t,
|
|
2014
2014
|
n,
|
|
2015
2015
|
c,
|
|
2016
2016
|
f,
|
|
@@ -2025,7 +2025,7 @@ class ht {
|
|
|
2025
2025
|
return this.controller.controller;
|
|
2026
2026
|
}
|
|
2027
2027
|
get joints() {
|
|
2028
|
-
return this.initialMotionState.joint_position.map((
|
|
2028
|
+
return this.initialMotionState.joint_position.map((t, o) => ({
|
|
2029
2029
|
index: o
|
|
2030
2030
|
}));
|
|
2031
2031
|
}
|
|
@@ -2035,8 +2035,8 @@ class ht {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
const Dt = "Movement request rejected. Another client is currently executing a 'Jogging' motion!";
|
|
2037
2037
|
class ft {
|
|
2038
|
-
constructor(
|
|
2039
|
-
this.motionStream =
|
|
2038
|
+
constructor(t, o = {}) {
|
|
2039
|
+
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;
|
|
2040
2040
|
}
|
|
2041
2041
|
/**
|
|
2042
2042
|
* Initialize the jogging connection using jogging endpoint or trajectory endpoint depending on the selected mode.
|
|
@@ -2055,18 +2055,18 @@ class ft {
|
|
|
2055
2055
|
* @param options.onError - Error handler for websocket errors
|
|
2056
2056
|
* @returns Promise resolving to initialized JoggerConnection instance
|
|
2057
2057
|
*/
|
|
2058
|
-
static async open(
|
|
2059
|
-
const
|
|
2058
|
+
static async open(t, o, i = {}) {
|
|
2059
|
+
const r = await ht.open(t, o), n = new ft(r, i);
|
|
2060
2060
|
return await n.setJoggingMode(n.mode), n;
|
|
2061
2061
|
}
|
|
2062
|
-
getDefaultTcp(
|
|
2063
|
-
var
|
|
2064
|
-
const o = (
|
|
2065
|
-
return
|
|
2062
|
+
getDefaultTcp(t) {
|
|
2063
|
+
var i, r;
|
|
2064
|
+
const o = (r = (i = t.description.dh_parameters) == null ? void 0 : i[0]) == null ? void 0 : r.type;
|
|
2065
|
+
return t.joints.length < 6 && (o === G.RevoluteJoint || o === G.PrismaticJoint) ? this.NO_TCP : this.DEFAULT_TCP;
|
|
2066
2066
|
}
|
|
2067
2067
|
// Set a new tcp or other options. If current mode is jogging, will reinitialize the jogging websocket
|
|
2068
|
-
async setOptions(
|
|
2069
|
-
|
|
2068
|
+
async setOptions(t) {
|
|
2069
|
+
t.tcp && (this.tcp = t.tcp), t.orientation && (this.orientation = t.orientation), t.timeout && (this.timeout = t.timeout), t.mode && (this.mode = t.mode), t.onError && (this.onError = t.onError), this.setJoggingMode(this.mode, !1);
|
|
2070
2070
|
}
|
|
2071
2071
|
get motionGroupId() {
|
|
2072
2072
|
return this.motionStream.motionGroupId;
|
|
@@ -2086,10 +2086,10 @@ class ft {
|
|
|
2086
2086
|
// Sends stop movement command to robot
|
|
2087
2087
|
async stop() {
|
|
2088
2088
|
if (this.joggingSocket) {
|
|
2089
|
-
const
|
|
2089
|
+
const t = new Array(this.numJoints).fill(0);
|
|
2090
2090
|
this.joggingSocket.sendJson({
|
|
2091
2091
|
message_type: "JointVelocityRequest",
|
|
2092
|
-
velocity:
|
|
2092
|
+
velocity: t
|
|
2093
2093
|
});
|
|
2094
2094
|
}
|
|
2095
2095
|
this.trajectorySocket && this.trajectorySocket.sendJson({
|
|
@@ -2098,24 +2098,24 @@ class ft {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
// Dispose the jogger, closing all open websockets
|
|
2100
2100
|
async dispose() {
|
|
2101
|
-
const
|
|
2101
|
+
const t = [this.joggingSocket, this.trajectorySocket].filter(
|
|
2102
2102
|
(o) => o !== null
|
|
2103
2103
|
);
|
|
2104
|
-
return
|
|
2104
|
+
return t.forEach((o) => {
|
|
2105
2105
|
o.dispose();
|
|
2106
|
-
}), this.joggingSocket = null, this.trajectorySocket = null, Promise.all(
|
|
2106
|
+
}), this.joggingSocket = null, this.trajectorySocket = null, Promise.all(t.map((o) => o.closed()));
|
|
2107
2107
|
}
|
|
2108
2108
|
// Activate jogger in one of the supported modes
|
|
2109
2109
|
// Will iniitialize or close websockets as necessary
|
|
2110
2110
|
// If mode is unchanged, does nothing (unless skipReinitializeIfSameMode is false)
|
|
2111
|
-
async setJoggingMode(
|
|
2112
|
-
if (!(this.mode ===
|
|
2111
|
+
async setJoggingMode(t, o = !0) {
|
|
2112
|
+
if (!(this.mode === t && o) && (this.dispose(), this.mode = t, this.mode === "jogging"))
|
|
2113
2113
|
return this.initializeJoggingWebsocket();
|
|
2114
2114
|
}
|
|
2115
2115
|
// Initializes continuous jogging websocket, called by setJoggingMode("jogging")
|
|
2116
2116
|
async initializeJoggingWebsocket() {
|
|
2117
|
-
return new Promise((
|
|
2118
|
-
const
|
|
2117
|
+
return new Promise((t, o) => {
|
|
2118
|
+
const i = setTimeout(() => {
|
|
2119
2119
|
o(
|
|
2120
2120
|
new Error(
|
|
2121
2121
|
`Jogging initialization timeout after ${this.timeout} seconds`
|
|
@@ -2124,18 +2124,18 @@ class ft {
|
|
|
2124
2124
|
}, this.timeout);
|
|
2125
2125
|
this.joggingSocket = this.nova.openReconnectingWebsocket(
|
|
2126
2126
|
`/controllers/${this.motionStream.controllerId}/execution/jogging`
|
|
2127
|
-
), this.joggingSocket.addEventListener("message", (
|
|
2127
|
+
), this.joggingSocket.addEventListener("message", (r) => {
|
|
2128
2128
|
var c, s, l, u;
|
|
2129
|
-
const n = W(
|
|
2129
|
+
const n = W(r.data);
|
|
2130
2130
|
if (((c = n == null ? void 0 : n.result) == null ? void 0 : c.kind) === "INITIALIZE_RECEIVED") {
|
|
2131
|
-
clearTimeout(
|
|
2131
|
+
clearTimeout(i), t();
|
|
2132
2132
|
return;
|
|
2133
2133
|
}
|
|
2134
2134
|
if (((s = n == null ? void 0 : n.result) == null ? void 0 : s.kind) === "MOTION_ERROR")
|
|
2135
|
-
if (clearTimeout(
|
|
2135
|
+
if (clearTimeout(i), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(Dt))) {
|
|
2136
2136
|
(u = this.joggingSocket) == null || u.dispose(), this.onBlocked();
|
|
2137
2137
|
return;
|
|
2138
|
-
} else this.onError ? this.onError(
|
|
2138
|
+
} else this.onError ? this.onError(r.data) : o(new Error(r.data));
|
|
2139
2139
|
}), this.joggingSocket.sendJson({
|
|
2140
2140
|
message_type: "InitializeJoggingRequest",
|
|
2141
2141
|
motion_group: this.motionGroupId,
|
|
@@ -2147,17 +2147,17 @@ class ft {
|
|
|
2147
2147
|
* Jogging: Start rotation of a single robot joint at the specified velocity
|
|
2148
2148
|
*/
|
|
2149
2149
|
async rotateJoints({
|
|
2150
|
-
joint:
|
|
2150
|
+
joint: t,
|
|
2151
2151
|
direction: o,
|
|
2152
|
-
velocityValue:
|
|
2153
|
-
velocityUnit:
|
|
2152
|
+
velocityValue: i,
|
|
2153
|
+
velocityUnit: r
|
|
2154
2154
|
}) {
|
|
2155
2155
|
if (!this.joggingSocket || this.mode !== "jogging")
|
|
2156
2156
|
throw new Error(
|
|
2157
2157
|
"Joint jogging websocket not connected; create one by setting jogging mode to 'jogging'"
|
|
2158
2158
|
);
|
|
2159
2159
|
const n = new Array(this.numJoints).fill(0);
|
|
2160
|
-
n[
|
|
2160
|
+
n[t] = o === "-" ? -i : i, this.joggingSocket.sendJson({
|
|
2161
2161
|
message_type: "JointVelocityRequest",
|
|
2162
2162
|
velocity: n
|
|
2163
2163
|
});
|
|
@@ -2166,19 +2166,19 @@ class ft {
|
|
|
2166
2166
|
* Jogging: Start the TCP moving along a specified axis at a given velocity
|
|
2167
2167
|
*/
|
|
2168
2168
|
async translateTCP({
|
|
2169
|
-
axis:
|
|
2169
|
+
axis: t,
|
|
2170
2170
|
direction: o,
|
|
2171
|
-
velocityMmPerSec:
|
|
2171
|
+
velocityMmPerSec: i
|
|
2172
2172
|
}) {
|
|
2173
2173
|
if (!this.joggingSocket || this.mode !== "jogging")
|
|
2174
2174
|
throw new Error(
|
|
2175
2175
|
"Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
|
|
2176
2176
|
);
|
|
2177
|
-
const
|
|
2178
|
-
n[tt[
|
|
2177
|
+
const r = [0, 0, 0], n = [0, 0, 0];
|
|
2178
|
+
n[tt[t]] = o === "-" ? -i : i, this.joggingSocket.sendJson({
|
|
2179
2179
|
message_type: "TcpVelocityRequest",
|
|
2180
2180
|
translation: n,
|
|
2181
|
-
rotation:
|
|
2181
|
+
rotation: r,
|
|
2182
2182
|
use_tool_coordinate_system: this.orientation === "tool"
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
@@ -2186,19 +2186,19 @@ class ft {
|
|
|
2186
2186
|
* Jogging: Start the TCP rotating around a specified axis at a given velocity
|
|
2187
2187
|
*/
|
|
2188
2188
|
async rotateTCP({
|
|
2189
|
-
axis:
|
|
2189
|
+
axis: t,
|
|
2190
2190
|
direction: o,
|
|
2191
|
-
velocityRadsPerSec:
|
|
2191
|
+
velocityRadsPerSec: i
|
|
2192
2192
|
}) {
|
|
2193
2193
|
if (!this.joggingSocket || this.mode !== "jogging")
|
|
2194
2194
|
throw new Error(
|
|
2195
2195
|
"Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
|
|
2196
2196
|
);
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2197
|
+
const r = [0, 0, 0], n = [0, 0, 0];
|
|
2198
|
+
r[tt[t]] = o === "-" ? -i : i, this.joggingSocket.sendJson({
|
|
2199
2199
|
message_type: "TcpVelocityRequest",
|
|
2200
2200
|
translation: n,
|
|
2201
|
-
rotation:
|
|
2201
|
+
rotation: r,
|
|
2202
2202
|
use_tool_coordinate_system: this.orientation === "tool"
|
|
2203
2203
|
});
|
|
2204
2204
|
}
|
|
@@ -2210,11 +2210,11 @@ class ft {
|
|
|
2210
2210
|
* Promise resolves only after the motion has completed.
|
|
2211
2211
|
*/
|
|
2212
2212
|
async runIncrementalCartesianMotion({
|
|
2213
|
-
currentTcpPose:
|
|
2213
|
+
currentTcpPose: t,
|
|
2214
2214
|
currentJoints: o,
|
|
2215
2215
|
// coordSystemId,
|
|
2216
|
-
velocityInRelevantUnits:
|
|
2217
|
-
axis:
|
|
2216
|
+
velocityInRelevantUnits: i,
|
|
2217
|
+
axis: r,
|
|
2218
2218
|
direction: n,
|
|
2219
2219
|
motion: c
|
|
2220
2220
|
}) {
|
|
@@ -2224,45 +2224,45 @@ class ft {
|
|
|
2224
2224
|
"Set jogging mode to 'trajectory' to run incremental cartesian motions"
|
|
2225
2225
|
);
|
|
2226
2226
|
if (c.type === "translate") {
|
|
2227
|
-
if (!
|
|
2227
|
+
if (!t.position)
|
|
2228
2228
|
throw new Error(
|
|
2229
2229
|
"Current pose has no position, cannot perform translation"
|
|
2230
2230
|
);
|
|
2231
|
-
const h = [...
|
|
2232
|
-
h[tt[
|
|
2231
|
+
const h = [...t.position];
|
|
2232
|
+
h[tt[r]] += c.distanceMm * (n === "-" ? -1 : 1), s.push({
|
|
2233
2233
|
limits_override: {
|
|
2234
|
-
tcp_velocity_limit:
|
|
2234
|
+
tcp_velocity_limit: i
|
|
2235
2235
|
},
|
|
2236
2236
|
path: {
|
|
2237
2237
|
path_definition_name: "PathLine",
|
|
2238
2238
|
target_pose: {
|
|
2239
2239
|
position: h,
|
|
2240
|
-
orientation:
|
|
2240
|
+
orientation: t.orientation
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
2243
|
});
|
|
2244
2244
|
} else if (c.type === "rotate") {
|
|
2245
|
-
if (!
|
|
2245
|
+
if (!t.orientation)
|
|
2246
2246
|
throw new Error(
|
|
2247
2247
|
"Current pose has no orientation, cannot perform rotation"
|
|
2248
2248
|
);
|
|
2249
2249
|
const h = new ct(
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2250
|
+
t.orientation[0],
|
|
2251
|
+
t.orientation[1],
|
|
2252
|
+
t.orientation[2]
|
|
2253
2253
|
), m = h.length(), v = h.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1), w = new ct(0, 0, 0);
|
|
2254
|
-
w[
|
|
2254
|
+
w[r] = 1;
|
|
2255
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), R = Math.cos(0.5 * b) * Math.sin(0.5 * m), I = w.dot(
|
|
2256
2256
|
v
|
|
2257
2257
|
), E = w.clone().cross(v), z = 2 * Math.acos(C - M * I), Q = z / Math.sin(0.5 * z), ot = new ct().addScaledVector(E, M).addScaledVector(w, k).addScaledVector(v, R).multiplyScalar(Q);
|
|
2258
2258
|
s.push({
|
|
2259
2259
|
limits_override: {
|
|
2260
|
-
tcp_orientation_velocity_limit:
|
|
2260
|
+
tcp_orientation_velocity_limit: i
|
|
2261
2261
|
},
|
|
2262
2262
|
path: {
|
|
2263
2263
|
path_definition_name: "PathLine",
|
|
2264
2264
|
target_pose: {
|
|
2265
|
-
position:
|
|
2265
|
+
position: t.position,
|
|
2266
2266
|
orientation: [...ot]
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
@@ -2366,12 +2366,12 @@ class ft {
|
|
|
2366
2366
|
});
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
|
-
const
|
|
2370
|
-
const
|
|
2369
|
+
const vo = (e) => {
|
|
2370
|
+
const t = e.softTimeout || 3e3, [o, i] = F(!1), r = L();
|
|
2371
2371
|
return A(() => {
|
|
2372
2372
|
const n = setTimeout(() => {
|
|
2373
|
-
|
|
2374
|
-
},
|
|
2373
|
+
i(!0);
|
|
2374
|
+
}, t);
|
|
2375
2375
|
return () => clearTimeout(n);
|
|
2376
2376
|
}), /* @__PURE__ */ a(
|
|
2377
2377
|
_,
|
|
@@ -2380,23 +2380,23 @@ const Co = (t) => {
|
|
|
2380
2380
|
height: "100%",
|
|
2381
2381
|
alignItems: "center",
|
|
2382
2382
|
justifyContent: "center",
|
|
2383
|
-
sx: { color:
|
|
2384
|
-
children:
|
|
2385
|
-
|
|
2383
|
+
sx: { color: r.palette.text.primary },
|
|
2384
|
+
children: e.error ? /* @__PURE__ */ a(
|
|
2385
|
+
Co,
|
|
2386
2386
|
{
|
|
2387
|
-
loadingMessage:
|
|
2388
|
-
error:
|
|
2387
|
+
loadingMessage: e.message,
|
|
2388
|
+
error: e.error
|
|
2389
2389
|
}
|
|
2390
2390
|
) : /* @__PURE__ */ S(et, { children: [
|
|
2391
2391
|
/* @__PURE__ */ a(Wt, { sx: { marginBottom: "24px" } }),
|
|
2392
|
-
!!
|
|
2392
|
+
!!e.message && /* @__PURE__ */ a("div", { children: e.message }),
|
|
2393
2393
|
/* @__PURE__ */ a(
|
|
2394
2394
|
_,
|
|
2395
2395
|
{
|
|
2396
2396
|
sx: {
|
|
2397
2397
|
visibility: o ? "visible" : "hidden",
|
|
2398
2398
|
marginTop: "1rem",
|
|
2399
|
-
color:
|
|
2399
|
+
color: r.palette.text.secondary
|
|
2400
2400
|
},
|
|
2401
2401
|
children: "This is taking longer than expected..."
|
|
2402
2402
|
}
|
|
@@ -2404,8 +2404,8 @@ const Co = (t) => {
|
|
|
2404
2404
|
] })
|
|
2405
2405
|
}
|
|
2406
2406
|
);
|
|
2407
|
-
},
|
|
2408
|
-
const
|
|
2407
|
+
}, Co = (e) => {
|
|
2408
|
+
const t = ke(e.error), o = e.error instanceof Error ? e.error.stack : null, i = L();
|
|
2409
2409
|
return /* @__PURE__ */ S(
|
|
2410
2410
|
_,
|
|
2411
2411
|
{
|
|
@@ -2414,7 +2414,7 @@ const Co = (t) => {
|
|
|
2414
2414
|
maxWidth: "min(100%, 800px)",
|
|
2415
2415
|
padding: 2,
|
|
2416
2416
|
overflow: "auto",
|
|
2417
|
-
color:
|
|
2417
|
+
color: i.palette.error.main,
|
|
2418
2418
|
"& pre": {
|
|
2419
2419
|
whiteSpace: "pre-wrap",
|
|
2420
2420
|
wordBreak: "break-word",
|
|
@@ -2422,14 +2422,14 @@ const Co = (t) => {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
},
|
|
2424
2424
|
children: [
|
|
2425
|
-
(
|
|
2425
|
+
(e.loadingMessage ? `Error while ${Se(Ie(e.loadingMessage))} - ` : "") + t,
|
|
2426
2426
|
/* @__PURE__ */ a("br", {}),
|
|
2427
2427
|
o && /* @__PURE__ */ a("pre", { children: o })
|
|
2428
2428
|
]
|
|
2429
2429
|
}
|
|
2430
2430
|
);
|
|
2431
|
-
},
|
|
2432
|
-
const { t
|
|
2431
|
+
}, wo = J(({ store: e }) => {
|
|
2432
|
+
const { t } = V();
|
|
2433
2433
|
return /* @__PURE__ */ a(
|
|
2434
2434
|
Ft,
|
|
2435
2435
|
{
|
|
@@ -2445,30 +2445,30 @@ const Co = (t) => {
|
|
|
2445
2445
|
alignItems: "flex-start"
|
|
2446
2446
|
},
|
|
2447
2447
|
children: /* @__PURE__ */ S(_, { sx: { m: 2, width: "100%" }, children: [
|
|
2448
|
-
/* @__PURE__ */ S(
|
|
2449
|
-
/* @__PURE__ */ a(
|
|
2450
|
-
|
|
2448
|
+
/* @__PURE__ */ S(Re, { severity: "error", sx: { mb: 2 }, children: [
|
|
2449
|
+
/* @__PURE__ */ a(je, { children: t("Jogging.Blocked.ti") }),
|
|
2450
|
+
t("Jogging.Blocked.lb")
|
|
2451
2451
|
] }),
|
|
2452
2452
|
/* @__PURE__ */ a(
|
|
2453
2453
|
Z,
|
|
2454
2454
|
{
|
|
2455
2455
|
variant: "contained",
|
|
2456
2456
|
color: "secondary",
|
|
2457
|
-
onClick: () =>
|
|
2458
|
-
children:
|
|
2457
|
+
onClick: () => e.unblock(),
|
|
2458
|
+
children: t("Jogging.Blocked.Reenable.bt")
|
|
2459
2459
|
}
|
|
2460
2460
|
)
|
|
2461
2461
|
] })
|
|
2462
2462
|
}
|
|
2463
2463
|
);
|
|
2464
2464
|
}), qt = J(
|
|
2465
|
-
({ store:
|
|
2466
|
-
const { t
|
|
2467
|
-
|
|
2468
|
-
),
|
|
2465
|
+
({ store: e }) => {
|
|
2466
|
+
const { t } = V(), [o, i] = F(
|
|
2467
|
+
e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
|
|
2468
|
+
), r = D(o);
|
|
2469
2469
|
pt(() => {
|
|
2470
|
-
const c =
|
|
2471
|
-
|
|
2470
|
+
const c = e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
|
|
2471
|
+
Be(r.current, c) || (r.current = c, i(c));
|
|
2472
2472
|
});
|
|
2473
2473
|
const n = [];
|
|
2474
2474
|
for (const [c, s] of o.entries())
|
|
@@ -2485,13 +2485,13 @@ const Co = (t) => {
|
|
|
2485
2485
|
minHeight: "1.5rem",
|
|
2486
2486
|
visibility: n.length ? "visible" : "hidden"
|
|
2487
2487
|
},
|
|
2488
|
-
children:
|
|
2488
|
+
children: t("Jogging.JointLimitsReached.lb", {
|
|
2489
2489
|
jointNumbers: n.map((c) => c + 1).join(", ")
|
|
2490
2490
|
})
|
|
2491
2491
|
}
|
|
2492
2492
|
);
|
|
2493
2493
|
}
|
|
2494
|
-
),
|
|
2494
|
+
), To = ut(Le)(({ theme: e }) => ({
|
|
2495
2495
|
"&.MuiFormControl-root": {
|
|
2496
2496
|
".MuiSelect-select": {
|
|
2497
2497
|
paddingTop: "20px",
|
|
@@ -2503,18 +2503,18 @@ const Co = (t) => {
|
|
|
2503
2503
|
},
|
|
2504
2504
|
".MuiInputLabel-root": {
|
|
2505
2505
|
"&.Mui-focused": {
|
|
2506
|
-
color:
|
|
2506
|
+
color: e.palette.text.primary
|
|
2507
2507
|
}
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
2510
|
}));
|
|
2511
2511
|
function it({
|
|
2512
|
-
labelValue:
|
|
2513
|
-
...
|
|
2512
|
+
labelValue: e,
|
|
2513
|
+
...t
|
|
2514
2514
|
}) {
|
|
2515
|
-
return /* @__PURE__ */ S(
|
|
2516
|
-
/* @__PURE__ */ a(
|
|
2517
|
-
/* @__PURE__ */ a(
|
|
2515
|
+
return /* @__PURE__ */ S(To, { fullWidth: !0, variant: "filled", children: [
|
|
2516
|
+
/* @__PURE__ */ a($e, { id: t.labelId, children: e }),
|
|
2517
|
+
/* @__PURE__ */ a(ze, { ...t })
|
|
2518
2518
|
] });
|
|
2519
2519
|
}
|
|
2520
2520
|
const dt = [
|
|
@@ -2522,20 +2522,20 @@ const dt = [
|
|
|
2522
2522
|
{ id: "1", mm: 1, degrees: 0.5 },
|
|
2523
2523
|
{ id: "5", mm: 5, degrees: 2.5 },
|
|
2524
2524
|
{ id: "10", mm: 10, degrees: 5 }
|
|
2525
|
-
],
|
|
2525
|
+
], Mo = [
|
|
2526
2526
|
{ id: "continuous" },
|
|
2527
2527
|
...dt
|
|
2528
|
-
],
|
|
2528
|
+
], Io = ["coordsys", "tool"];
|
|
2529
2529
|
class bt {
|
|
2530
|
-
constructor(
|
|
2530
|
+
constructor(t, o, i, r, n) {
|
|
2531
2531
|
var c, s, l;
|
|
2532
|
-
this.jogger =
|
|
2532
|
+
this.jogger = t, this.coordSystems = o, this.motionGroupDescription = i, this.tcps = r, this.inverseSolverValue = n, this.selectedTabId = "cartesian", this.locks = /* @__PURE__ */ new Set(), this.blocked = !1, this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.tcpChangeInProgress = !1, this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = G.RevoluteJoint;
|
|
2533
2533
|
for (const u of o)
|
|
2534
2534
|
if (u.coordinate_system === "") {
|
|
2535
2535
|
u.coordinate_system = "world";
|
|
2536
2536
|
break;
|
|
2537
2537
|
}
|
|
2538
|
-
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId =
|
|
2538
|
+
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = t.motionStream.rapidlyChangingMotionState.tcp ?? "", this.inverseSolver = n, this.jointType = ((l = (s = i == null ? void 0 : i.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint, mt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
|
|
2539
2539
|
this.block();
|
|
2540
2540
|
}, this.loadFromLocalStorage(), this.disposers.push(kt(() => this.saveToLocalStorage())), this.disposers.push(
|
|
2541
2541
|
kt(() => {
|
|
@@ -2550,54 +2550,55 @@ class bt {
|
|
|
2550
2550
|
* Load a jogging store with the relevant data it needs
|
|
2551
2551
|
* from the backend
|
|
2552
2552
|
*/
|
|
2553
|
-
static async loadFor(
|
|
2554
|
-
const { nova: o } =
|
|
2553
|
+
static async loadFor(t) {
|
|
2554
|
+
const { nova: o } = t, [i, r] = await Promise.all([
|
|
2555
2555
|
// Fetch coord systems so user can select between them
|
|
2556
2556
|
o.api.controller.listCoordinateSystems(
|
|
2557
|
-
|
|
2557
|
+
t.motionStream.controllerId,
|
|
2558
2558
|
"ROTATION_VECTOR"
|
|
2559
2559
|
),
|
|
2560
2560
|
// Same for TCPs and other info from description
|
|
2561
2561
|
o.api.motionGroup.getMotionGroupDescription(
|
|
2562
|
-
|
|
2563
|
-
|
|
2562
|
+
t.motionStream.controllerId,
|
|
2563
|
+
t.motionGroupId
|
|
2564
2564
|
)
|
|
2565
2565
|
]), n = await o.api.motionGroupModels.getMotionGroupKinematicModel(
|
|
2566
|
-
|
|
2567
|
-
), c = Object.entries(
|
|
2566
|
+
r.motion_group_model
|
|
2567
|
+
), c = Object.entries(r.tcps || {}).map(([s, l]) => ({
|
|
2568
2568
|
id: s,
|
|
2569
2569
|
readable_name: l.name,
|
|
2570
2570
|
position: l.pose.position,
|
|
2571
2571
|
orientation: l.pose.orientation
|
|
2572
2572
|
}));
|
|
2573
2573
|
return new bt(
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2574
|
+
t,
|
|
2575
|
+
i || [],
|
|
2576
|
+
r,
|
|
2577
2577
|
c,
|
|
2578
2578
|
n.inverse_solver
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
2581
|
dispose() {
|
|
2582
|
-
for (const
|
|
2583
|
-
|
|
2582
|
+
for (const t of this.disposers)
|
|
2583
|
+
t();
|
|
2584
2584
|
this.jogger.dispose();
|
|
2585
2585
|
}
|
|
2586
2586
|
get coordSystemCountByName() {
|
|
2587
|
-
return
|
|
2587
|
+
return ve(this.coordSystems, (t) => t.name);
|
|
2588
2588
|
}
|
|
2589
2589
|
async deactivate() {
|
|
2590
2590
|
this.jogger.mode === "jogging" && await this.jogger.setJoggingMode("off");
|
|
2591
2591
|
}
|
|
2592
2592
|
/** Activate the jogger with current settings */
|
|
2593
2593
|
async activate() {
|
|
2594
|
-
return this.currentTab.id === "cartesian" ? (this.jogger.orientation !== this.selectedOrientation && this.jogger.setOptions({
|
|
2594
|
+
return this.currentTab.id === "cartesian" ? ((this.jogger.tcp !== this.selectedTcpId || this.jogger.orientation !== this.selectedOrientation) && await this.jogger.setOptions({
|
|
2595
|
+
tcp: this.selectedTcpId || void 0,
|
|
2595
2596
|
orientation: this.selectedOrientation
|
|
2596
2597
|
}), this.activeDiscreteIncrement ? this.jogger.setJoggingMode("trajectory") : this.jogger.setJoggingMode("jogging")) : this.jogger.setJoggingMode("jogging"), this.jogger;
|
|
2597
2598
|
}
|
|
2598
2599
|
loadFromLocalStorage() {
|
|
2599
|
-
const
|
|
2600
|
-
|
|
2600
|
+
const t = W(localStorage.getItem("joggingToolStore"));
|
|
2601
|
+
t && (this.tabsById[t.selectedTabId] && (this.selectedTabId = t.selectedTabId), this.coordSystemsById[t.selectedCoordSystemId] && (this.selectedCoordSystemId = t.selectedCoordSystemId), this.incrementOptionsById[t.selectedIncrementId] && (this.selectedIncrementId = t.selectedIncrementId), ["translate", "rotate"].includes(t.selectedCartesianMotionType) && (this.selectedCartesianMotionType = t.selectedCartesianMotionType), ["coordsys", "tool"].includes(t.selectedOrientation) && (this.selectedOrientation = t.selectedOrientation));
|
|
2601
2602
|
}
|
|
2602
2603
|
saveToLocalStorage() {
|
|
2603
2604
|
localStorage.setItem(
|
|
@@ -2618,28 +2619,28 @@ class bt {
|
|
|
2618
2619
|
};
|
|
2619
2620
|
}
|
|
2620
2621
|
get tabs() {
|
|
2621
|
-
const
|
|
2622
|
+
const t = [
|
|
2622
2623
|
{
|
|
2623
2624
|
id: "joint",
|
|
2624
2625
|
label: "Joints"
|
|
2625
2626
|
}
|
|
2626
2627
|
];
|
|
2627
|
-
return this.inverseSolver !== null &&
|
|
2628
|
+
return this.inverseSolver !== null && t.unshift({
|
|
2628
2629
|
id: "cartesian",
|
|
2629
2630
|
label: "Cartesian"
|
|
2630
|
-
}),
|
|
2631
|
+
}), t;
|
|
2631
2632
|
}
|
|
2632
2633
|
get incrementOptions() {
|
|
2633
|
-
return
|
|
2634
|
+
return Mo;
|
|
2634
2635
|
}
|
|
2635
2636
|
get discreteIncrementOptions() {
|
|
2636
2637
|
return dt;
|
|
2637
2638
|
}
|
|
2638
2639
|
get incrementOptionsById() {
|
|
2639
|
-
return nt(this.incrementOptions, (
|
|
2640
|
+
return nt(this.incrementOptions, (t) => t.id);
|
|
2640
2641
|
}
|
|
2641
2642
|
get tabsById() {
|
|
2642
|
-
return nt(this.tabs, (
|
|
2643
|
+
return nt(this.tabs, (t) => t.id);
|
|
2643
2644
|
}
|
|
2644
2645
|
get currentTab() {
|
|
2645
2646
|
return this.tabsById[this.selectedTabId] || this.tabs[0];
|
|
@@ -2648,7 +2649,7 @@ class bt {
|
|
|
2648
2649
|
return this.tabs.indexOf(this.currentTab);
|
|
2649
2650
|
}
|
|
2650
2651
|
get coordSystemsById() {
|
|
2651
|
-
return nt(this.coordSystems, (
|
|
2652
|
+
return nt(this.coordSystems, (t) => t.coordinate_system);
|
|
2652
2653
|
}
|
|
2653
2654
|
/**
|
|
2654
2655
|
* The id of the coordinate system to use for jogging.
|
|
@@ -2659,7 +2660,7 @@ class bt {
|
|
|
2659
2660
|
return this.selectedOrientation === "tool" ? "tool" : this.selectedCoordSystemId;
|
|
2660
2661
|
}
|
|
2661
2662
|
get tcpsById() {
|
|
2662
|
-
return nt(this.tcps, (
|
|
2663
|
+
return nt(this.tcps, (t) => t.id);
|
|
2663
2664
|
}
|
|
2664
2665
|
/**
|
|
2665
2666
|
* True when the server has not yet reported an active TCP.
|
|
@@ -2669,82 +2670,86 @@ class bt {
|
|
|
2669
2670
|
return this.tcps.length > 0 && !this.selectedTcpId;
|
|
2670
2671
|
}
|
|
2671
2672
|
get activeDiscreteIncrement() {
|
|
2672
|
-
return this.selectedOrientation === "tool" ? void 0 : dt.find((
|
|
2673
|
+
return this.selectedOrientation === "tool" ? void 0 : dt.find((t) => t.id === this.selectedIncrementId);
|
|
2673
2674
|
}
|
|
2674
2675
|
/** The selected rotation velocity converted to radians per second */
|
|
2675
2676
|
get rotationVelocityRadsPerSec() {
|
|
2676
2677
|
return this.rotationVelocityDegPerSec * Math.PI / 180;
|
|
2677
2678
|
}
|
|
2678
2679
|
/** Selected velocity in mm/sec or deg/sec */
|
|
2679
|
-
velocityInDisplayUnits(
|
|
2680
|
-
return
|
|
2680
|
+
velocityInDisplayUnits(t) {
|
|
2681
|
+
return t ? this.rotationVelocityDegPerSec : this.translationVelocityMmPerSec;
|
|
2681
2682
|
}
|
|
2682
2683
|
/** Minimum selectable velocity in mm/sec or deg/sec */
|
|
2683
|
-
minVelocityInDisplayUnits(
|
|
2684
|
-
return
|
|
2684
|
+
minVelocityInDisplayUnits(t) {
|
|
2685
|
+
return t ? this.minRotationVelocityDegPerSec : this.minTranslationVelocityMmPerSec;
|
|
2685
2686
|
}
|
|
2686
2687
|
/** Maximum selectable velocity in mm/sec or deg/sec */
|
|
2687
|
-
maxVelocityInDisplayUnits(
|
|
2688
|
-
return
|
|
2688
|
+
maxVelocityInDisplayUnits(t) {
|
|
2689
|
+
return t ? this.maxRotationVelocityDegPerSec : this.maxTranslationVelocityMmPerSec;
|
|
2689
2690
|
}
|
|
2690
|
-
onTabChange(
|
|
2691
|
-
const
|
|
2692
|
-
this.selectedTabId =
|
|
2691
|
+
onTabChange(t, o) {
|
|
2692
|
+
const i = this.tabs[o] || this.tabs[0];
|
|
2693
|
+
this.selectedTabId = i.id;
|
|
2693
2694
|
}
|
|
2694
|
-
setSelectedCoordSystemId(
|
|
2695
|
-
this.selectedCoordSystemId =
|
|
2695
|
+
setSelectedCoordSystemId(t) {
|
|
2696
|
+
this.selectedCoordSystemId = t;
|
|
2696
2697
|
}
|
|
2697
2698
|
/**
|
|
2698
|
-
* Request a TCP change on the server.
|
|
2699
|
-
*
|
|
2699
|
+
* Request a TCP change on the server. Sends an InitializeJoggingRequest
|
|
2700
|
+
* with the new TCP to the backend via the jogging websocket.
|
|
2701
|
+
*
|
|
2702
|
+
* If the jogger is actively jogging, the websocket is reinitialised with the new TCP.
|
|
2703
|
+
* If the jogger is idle, a jogging websocket is briefly opened to communicate the
|
|
2704
|
+
* TCP change, then closed again.
|
|
2700
2705
|
*/
|
|
2701
|
-
async requestTcpChange(
|
|
2702
|
-
if (
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
}
|
|
2706
|
+
async requestTcpChange(t) {
|
|
2707
|
+
if (t === this.selectedTcpId) return;
|
|
2708
|
+
this.tcpChangeInProgress = !0;
|
|
2709
|
+
const o = this.jogger.mode !== "jogging";
|
|
2710
|
+
try {
|
|
2711
|
+
this.jogger.tcp = t, o ? (await this.jogger.setJoggingMode("jogging"), await this.jogger.setJoggingMode("off")) : await this.jogger.setJoggingMode("jogging", !1);
|
|
2712
|
+
const i = await this.waitForTcpConfirmation(t, 1e4);
|
|
2713
|
+
B(() => {
|
|
2714
|
+
i ? this.selectedTcpId = t : this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
|
|
2715
|
+
});
|
|
2716
|
+
} catch (i) {
|
|
2717
|
+
throw B(() => {
|
|
2718
|
+
this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
|
|
2719
|
+
}), i;
|
|
2720
|
+
} finally {
|
|
2721
|
+
B(() => {
|
|
2722
|
+
this.tcpChangeInProgress = !1;
|
|
2723
|
+
});
|
|
2719
2724
|
}
|
|
2720
2725
|
}
|
|
2721
|
-
waitForTcpConfirmation(
|
|
2722
|
-
return new Promise((
|
|
2723
|
-
const
|
|
2724
|
-
this.jogger.motionStream.rapidlyChangingMotionState.tcp ===
|
|
2726
|
+
waitForTcpConfirmation(t, o) {
|
|
2727
|
+
return new Promise((i) => {
|
|
2728
|
+
const r = Date.now(), n = setInterval(() => {
|
|
2729
|
+
this.jogger.motionStream.rapidlyChangingMotionState.tcp === t ? (clearInterval(n), i(!0)) : Date.now() - r >= o && (clearInterval(n), i(!1));
|
|
2725
2730
|
}, 100);
|
|
2726
2731
|
});
|
|
2727
2732
|
}
|
|
2728
|
-
setSelectedOrientation(
|
|
2729
|
-
this.selectedOrientation =
|
|
2733
|
+
setSelectedOrientation(t) {
|
|
2734
|
+
this.selectedOrientation = t;
|
|
2730
2735
|
}
|
|
2731
|
-
setSelectedIncrementId(
|
|
2732
|
-
this.selectedIncrementId =
|
|
2736
|
+
setSelectedIncrementId(t) {
|
|
2737
|
+
this.selectedIncrementId = t;
|
|
2733
2738
|
}
|
|
2734
|
-
setCurrentIncrementJog(
|
|
2735
|
-
this.incrementJogInProgress =
|
|
2739
|
+
setCurrentIncrementJog(t) {
|
|
2740
|
+
this.incrementJogInProgress = t;
|
|
2736
2741
|
}
|
|
2737
|
-
setVelocityFromSlider(
|
|
2738
|
-
o ? this.rotationVelocityDegPerSec =
|
|
2742
|
+
setVelocityFromSlider(t, o) {
|
|
2743
|
+
o ? this.rotationVelocityDegPerSec = t : this.translationVelocityMmPerSec = t;
|
|
2739
2744
|
}
|
|
2740
|
-
setSelectedCartesianMotionType(
|
|
2741
|
-
this.selectedCartesianMotionType =
|
|
2745
|
+
setSelectedCartesianMotionType(t) {
|
|
2746
|
+
this.selectedCartesianMotionType = t;
|
|
2742
2747
|
}
|
|
2743
|
-
lock(
|
|
2744
|
-
this.locks.add(
|
|
2748
|
+
lock(t) {
|
|
2749
|
+
this.locks.add(t);
|
|
2745
2750
|
}
|
|
2746
|
-
unlock(
|
|
2747
|
-
this.locks.delete(
|
|
2751
|
+
unlock(t) {
|
|
2752
|
+
this.locks.delete(t);
|
|
2748
2753
|
}
|
|
2749
2754
|
block() {
|
|
2750
2755
|
this.blocked = !0;
|
|
@@ -2753,20 +2758,20 @@ class bt {
|
|
|
2753
2758
|
this.blocked = !1, this.jogger.mode === "jogging" && this.jogger.initializeJoggingWebsocket();
|
|
2754
2759
|
}
|
|
2755
2760
|
/** Lock the UI until the given async callback resolves */
|
|
2756
|
-
async withMotionLock(
|
|
2757
|
-
const o =
|
|
2761
|
+
async withMotionLock(t) {
|
|
2762
|
+
const o = Ve();
|
|
2758
2763
|
this.lock(o);
|
|
2759
2764
|
try {
|
|
2760
|
-
return await
|
|
2765
|
+
return await t();
|
|
2761
2766
|
} finally {
|
|
2762
2767
|
this.unlock(o);
|
|
2763
2768
|
}
|
|
2764
2769
|
}
|
|
2765
2770
|
}
|
|
2766
|
-
const
|
|
2767
|
-
({ store:
|
|
2771
|
+
const ko = J(
|
|
2772
|
+
({ store: e, useDegree: t }) => {
|
|
2768
2773
|
var c;
|
|
2769
|
-
const { t: o } = V(),
|
|
2774
|
+
const { t: o } = V(), i = ne(), r = [];
|
|
2770
2775
|
function n(s) {
|
|
2771
2776
|
switch (s) {
|
|
2772
2777
|
case "coordsys":
|
|
@@ -2777,72 +2782,72 @@ const Ro = J(
|
|
|
2777
2782
|
return s;
|
|
2778
2783
|
}
|
|
2779
2784
|
}
|
|
2780
|
-
if (
|
|
2785
|
+
if (e.showCoordSystemSelect && r.push(
|
|
2781
2786
|
/* @__PURE__ */ a(
|
|
2782
2787
|
it,
|
|
2783
2788
|
{
|
|
2784
|
-
labelId: `jogging-coord-select-${
|
|
2789
|
+
labelId: `jogging-coord-select-${i}`,
|
|
2785
2790
|
labelValue: o("Jogging.CoordinateSystem.hlb"),
|
|
2786
|
-
value:
|
|
2791
|
+
value: e.selectedCoordSystemId,
|
|
2787
2792
|
size: "small",
|
|
2788
2793
|
variant: "filled",
|
|
2789
2794
|
displayEmpty: !0,
|
|
2790
|
-
onChange: (s) =>
|
|
2791
|
-
disabled:
|
|
2792
|
-
children:
|
|
2795
|
+
onChange: (s) => e.setSelectedCoordSystemId(s.target.value),
|
|
2796
|
+
disabled: e.isLocked,
|
|
2797
|
+
children: e.coordSystems.map((s) => /* @__PURE__ */ a(q, { 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))
|
|
2793
2798
|
},
|
|
2794
2799
|
"coord"
|
|
2795
2800
|
)
|
|
2796
|
-
),
|
|
2797
|
-
const s =
|
|
2798
|
-
|
|
2801
|
+
), e.showTcpSelect) {
|
|
2802
|
+
const s = e.tcpChangeInProgress || e.isTcpUnresolved;
|
|
2803
|
+
r.push(
|
|
2799
2804
|
/* @__PURE__ */ a(
|
|
2800
2805
|
it,
|
|
2801
2806
|
{
|
|
2802
|
-
labelId: `jogging-tcp-select-${
|
|
2807
|
+
labelId: `jogging-tcp-select-${i}`,
|
|
2803
2808
|
labelValue: "TCP",
|
|
2804
|
-
value:
|
|
2809
|
+
value: e.selectedTcpId,
|
|
2805
2810
|
size: "small",
|
|
2806
2811
|
variant: "filled",
|
|
2807
2812
|
displayEmpty: s,
|
|
2808
|
-
onChange: (l) =>
|
|
2809
|
-
disabled:
|
|
2810
|
-
endAdornment: s ? /* @__PURE__ */ a(
|
|
2811
|
-
children:
|
|
2813
|
+
onChange: (l) => e.requestTcpChange(l.target.value),
|
|
2814
|
+
disabled: e.isLocked || s,
|
|
2815
|
+
endAdornment: s ? /* @__PURE__ */ a(Fe, { position: "end", children: /* @__PURE__ */ a(Wt, { size: 16 }) }) : void 0,
|
|
2816
|
+
children: e.tcps.map((l) => /* @__PURE__ */ a(q, { value: l.id, children: l.id }, l.id))
|
|
2812
2817
|
},
|
|
2813
2818
|
"tcp"
|
|
2814
2819
|
)
|
|
2815
2820
|
);
|
|
2816
2821
|
}
|
|
2817
|
-
return
|
|
2822
|
+
return e.showOrientationSelect && r.push(
|
|
2818
2823
|
/* @__PURE__ */ a(
|
|
2819
2824
|
it,
|
|
2820
2825
|
{
|
|
2821
2826
|
labelValue: o("Jogging.Cartesian.Orientation.lb"),
|
|
2822
|
-
labelId: `orientation-select-${
|
|
2823
|
-
value:
|
|
2824
|
-
onChange: (s) =>
|
|
2825
|
-
disabled:
|
|
2826
|
-
children:
|
|
2827
|
+
labelId: `orientation-select-${i}`,
|
|
2828
|
+
value: e.selectedOrientation,
|
|
2829
|
+
onChange: (s) => e.setSelectedOrientation(s.target.value),
|
|
2830
|
+
disabled: e.isLocked,
|
|
2831
|
+
children: Io.map((s) => /* @__PURE__ */ a(q, { value: s, children: n(s) }, s))
|
|
2827
2832
|
},
|
|
2828
2833
|
"orientation"
|
|
2829
2834
|
)
|
|
2830
|
-
),
|
|
2835
|
+
), e.showIncrementSelect && r.push(
|
|
2831
2836
|
/* @__PURE__ */ S(
|
|
2832
2837
|
it,
|
|
2833
2838
|
{
|
|
2834
2839
|
labelValue: o("Jogging.Increment.hlb"),
|
|
2835
|
-
labelId: `jogging-increment-select-${
|
|
2840
|
+
labelId: `jogging-increment-select-${i}`,
|
|
2836
2841
|
size: "small",
|
|
2837
2842
|
variant: "filled",
|
|
2838
|
-
value: ((c =
|
|
2839
|
-
onChange: (s) =>
|
|
2843
|
+
value: ((c = e.activeDiscreteIncrement) == null ? void 0 : c.id) || "continuous",
|
|
2844
|
+
onChange: (s) => e.setSelectedIncrementId(
|
|
2840
2845
|
s.target.value
|
|
2841
2846
|
),
|
|
2842
|
-
disabled:
|
|
2847
|
+
disabled: e.isLocked,
|
|
2843
2848
|
children: [
|
|
2844
2849
|
/* @__PURE__ */ a(q, { value: "continuous", children: o("Jogging.Increment.Continuous.dd") }, "continuous"),
|
|
2845
|
-
|
|
2850
|
+
e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((s) => /* @__PURE__ */ a(q, { value: s.id, children: t ? `${s.degrees}°` : `${s.mm}mm` }, s.id))
|
|
2846
2851
|
]
|
|
2847
2852
|
},
|
|
2848
2853
|
"increment"
|
|
@@ -2860,11 +2865,11 @@ const Ro = J(
|
|
|
2860
2865
|
gridAutoRows: "min-content",
|
|
2861
2866
|
"& label": { opacity: 0.7, fontSize: "12px", marginBottom: "4px" }
|
|
2862
2867
|
},
|
|
2863
|
-
children:
|
|
2868
|
+
children: r.map((s, l) => /* @__PURE__ */ a(
|
|
2864
2869
|
T,
|
|
2865
2870
|
{
|
|
2866
2871
|
sx: {
|
|
2867
|
-
gridColumn:
|
|
2872
|
+
gridColumn: r.length % 2 === 1 && l === r.length - 1 ? "span 2" : "auto"
|
|
2868
2873
|
},
|
|
2869
2874
|
children: s
|
|
2870
2875
|
},
|
|
@@ -2873,11 +2878,11 @@ const Ro = J(
|
|
|
2873
2878
|
}
|
|
2874
2879
|
);
|
|
2875
2880
|
}
|
|
2876
|
-
),
|
|
2877
|
-
var
|
|
2881
|
+
), Ro = ut(Ne)(({ theme: e }) => {
|
|
2882
|
+
var t;
|
|
2878
2883
|
return {
|
|
2879
2884
|
"&.MuiToggleButtonGroup-root": {
|
|
2880
|
-
background: (
|
|
2885
|
+
background: (t = e.palette.backgroundPaperElevation) == null ? void 0 : t[8],
|
|
2881
2886
|
borderRadius: "8px",
|
|
2882
2887
|
padding: "4px",
|
|
2883
2888
|
gap: "4px",
|
|
@@ -2895,11 +2900,11 @@ const Ro = J(
|
|
|
2895
2900
|
}
|
|
2896
2901
|
}
|
|
2897
2902
|
};
|
|
2898
|
-
}),
|
|
2903
|
+
}), jo = J((e) => {
|
|
2899
2904
|
var n, c, s;
|
|
2900
|
-
const
|
|
2901
|
-
function
|
|
2902
|
-
u ===
|
|
2905
|
+
const t = L(), { store: o } = e, { t: i } = V();
|
|
2906
|
+
function r(l, u) {
|
|
2907
|
+
u === e.velocity || !We(u) || e.onVelocityChange(u, e.useDegree);
|
|
2903
2908
|
}
|
|
2904
2909
|
return /* @__PURE__ */ S(
|
|
2905
2910
|
_,
|
|
@@ -2914,22 +2919,22 @@ const Ro = J(
|
|
|
2914
2919
|
j,
|
|
2915
2920
|
{
|
|
2916
2921
|
sx: {
|
|
2917
|
-
color: (s = (c = (n =
|
|
2922
|
+
color: (s = (c = (n = t.componentsExt) == null ? void 0 : n.JoggingPanel) == null ? void 0 : c.VelocitySlider) == null ? void 0 : s.sliderLegendColor,
|
|
2918
2923
|
fontSize: "14px"
|
|
2919
2924
|
},
|
|
2920
|
-
children:
|
|
2925
|
+
children: i("Jogging.Velocity.bt")
|
|
2921
2926
|
}
|
|
2922
2927
|
),
|
|
2923
2928
|
/* @__PURE__ */ a(
|
|
2924
2929
|
Gt,
|
|
2925
2930
|
{
|
|
2926
|
-
value:
|
|
2931
|
+
value: e.velocity,
|
|
2927
2932
|
color: "secondary",
|
|
2928
|
-
onChange:
|
|
2929
|
-
min:
|
|
2930
|
-
max:
|
|
2933
|
+
onChange: r,
|
|
2934
|
+
min: e.min,
|
|
2935
|
+
max: e.max,
|
|
2931
2936
|
"aria-labelledby": "input-slider",
|
|
2932
|
-
disabled:
|
|
2937
|
+
disabled: e.disabled,
|
|
2933
2938
|
sx: {
|
|
2934
2939
|
"& .MuiSlider-valueLabelOpen": {
|
|
2935
2940
|
zIndex: 100,
|
|
@@ -2939,13 +2944,13 @@ const Ro = J(
|
|
|
2939
2944
|
}
|
|
2940
2945
|
}
|
|
2941
2946
|
),
|
|
2942
|
-
o.showVelocitySliderLabel && (
|
|
2947
|
+
o.showVelocitySliderLabel && (e.renderValue ? e.renderValue(e.velocity) : /* @__PURE__ */ a(Yt, { value: e.velocity.toString() }))
|
|
2943
2948
|
]
|
|
2944
2949
|
}
|
|
2945
2950
|
);
|
|
2946
2951
|
});
|
|
2947
|
-
function Yt({ value:
|
|
2948
|
-
var
|
|
2952
|
+
function Yt({ value: e, sx: t }) {
|
|
2953
|
+
var i;
|
|
2949
2954
|
const o = L();
|
|
2950
2955
|
return /* @__PURE__ */ a(
|
|
2951
2956
|
_,
|
|
@@ -2956,10 +2961,10 @@ function Yt({ value: t, sx: e }) {
|
|
|
2956
2961
|
gap: "5px",
|
|
2957
2962
|
sx: {
|
|
2958
2963
|
padding: "6px 12px",
|
|
2959
|
-
background: (
|
|
2964
|
+
background: (i = o.palette.backgroundPaperElevation) == null ? void 0 : i[8],
|
|
2960
2965
|
borderRadius: "10px",
|
|
2961
2966
|
minWidth: "111px",
|
|
2962
|
-
...
|
|
2967
|
+
...t
|
|
2963
2968
|
},
|
|
2964
2969
|
children: /* @__PURE__ */ a(
|
|
2965
2970
|
j,
|
|
@@ -2972,32 +2977,32 @@ function Yt({ value: t, sx: e }) {
|
|
|
2972
2977
|
color: o.palette.text.primary,
|
|
2973
2978
|
whiteSpace: "nowrap"
|
|
2974
2979
|
},
|
|
2975
|
-
children:
|
|
2980
|
+
children: e
|
|
2976
2981
|
}
|
|
2977
2982
|
)
|
|
2978
2983
|
}
|
|
2979
2984
|
);
|
|
2980
2985
|
}
|
|
2981
2986
|
const Zt = J(
|
|
2982
|
-
({ store:
|
|
2987
|
+
({ store: e, useDegree: t }) => {
|
|
2983
2988
|
const { t: o } = V();
|
|
2984
|
-
function r
|
|
2985
|
-
return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount:
|
|
2989
|
+
function i(r, n) {
|
|
2990
|
+
return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: r })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: r })}`;
|
|
2986
2991
|
}
|
|
2987
2992
|
return /* @__PURE__ */ a(
|
|
2988
|
-
|
|
2993
|
+
jo,
|
|
2989
2994
|
{
|
|
2990
|
-
store:
|
|
2991
|
-
velocity:
|
|
2992
|
-
min:
|
|
2993
|
-
max:
|
|
2994
|
-
onVelocityChange:
|
|
2995
|
-
useDegree:
|
|
2996
|
-
disabled:
|
|
2997
|
-
renderValue: (
|
|
2995
|
+
store: e,
|
|
2996
|
+
velocity: e.velocityInDisplayUnits(t),
|
|
2997
|
+
min: e.minVelocityInDisplayUnits(t),
|
|
2998
|
+
max: e.maxVelocityInDisplayUnits(t),
|
|
2999
|
+
onVelocityChange: e.setVelocityFromSlider,
|
|
3000
|
+
useDegree: t,
|
|
3001
|
+
disabled: e.isLocked,
|
|
3002
|
+
renderValue: (r) => /* @__PURE__ */ a(
|
|
2998
3003
|
Yt,
|
|
2999
3004
|
{
|
|
3000
|
-
value: r
|
|
3005
|
+
value: i(r, t),
|
|
3001
3006
|
sx: {
|
|
3002
3007
|
minWidth: "111px",
|
|
3003
3008
|
span: {
|
|
@@ -3009,71 +3014,59 @@ const Zt = J(
|
|
|
3009
3014
|
}
|
|
3010
3015
|
);
|
|
3011
3016
|
}
|
|
3012
|
-
),
|
|
3017
|
+
), Eo = J(
|
|
3013
3018
|
({
|
|
3014
|
-
store:
|
|
3015
|
-
children:
|
|
3019
|
+
store: e,
|
|
3020
|
+
children: t
|
|
3016
3021
|
}) => {
|
|
3017
|
-
const { t: o } = V(),
|
|
3018
|
-
function
|
|
3019
|
-
(p === "translate" || p === "rotate") &&
|
|
3022
|
+
const { t: o } = V(), i = L();
|
|
3023
|
+
function r(d, p) {
|
|
3024
|
+
(p === "translate" || p === "rotate") && e.setSelectedCartesianMotionType(p);
|
|
3020
3025
|
}
|
|
3021
|
-
ae(
|
|
3022
|
-
() => [t.selectedCoordSystemId, t.selectedTcpId],
|
|
3023
|
-
() => {
|
|
3024
|
-
t.jogger.motionStream.motionStateSocket.changeUrl(
|
|
3025
|
-
t.jogger.nova.makeWebsocketURL(
|
|
3026
|
-
`/controllers/${t.jogger.motionStream.controllerId}/motion-groups/${t.jogger.motionGroupId}/state-stream?tcp=${t.selectedTcpId}`
|
|
3027
|
-
)
|
|
3028
|
-
);
|
|
3029
|
-
},
|
|
3030
|
-
// biome-ignore lint/suspicious/noExplicitAny: pre-biome code
|
|
3031
|
-
{ fireImmediately: !0 }
|
|
3032
|
-
);
|
|
3033
3026
|
async function n(d, p) {
|
|
3034
|
-
const x = await
|
|
3035
|
-
y && await
|
|
3027
|
+
const x = await e.activate(), y = x.motionStream.rapidlyChangingMotionState.tcp_pose, h = x.motionStream.rapidlyChangingMotionState.joint_position;
|
|
3028
|
+
y && await e.withMotionLock(async () => {
|
|
3036
3029
|
try {
|
|
3037
|
-
|
|
3030
|
+
e.setCurrentIncrementJog({
|
|
3038
3031
|
axis: d.axis,
|
|
3039
3032
|
direction: d.direction
|
|
3040
|
-
}), await
|
|
3033
|
+
}), await e.jogger.runIncrementalCartesianMotion({
|
|
3041
3034
|
currentTcpPose: y,
|
|
3042
3035
|
currentJoints: h,
|
|
3043
|
-
coordSystemId:
|
|
3044
|
-
velocityInRelevantUnits:
|
|
3036
|
+
coordSystemId: e.activeCoordSystemId,
|
|
3037
|
+
velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
|
|
3045
3038
|
axis: d.axis,
|
|
3046
3039
|
direction: d.direction,
|
|
3047
|
-
motion:
|
|
3040
|
+
motion: e.selectedCartesianMotionType === "translate" ? {
|
|
3048
3041
|
type: "translate",
|
|
3049
3042
|
distanceMm: p.mm
|
|
3050
3043
|
} : {
|
|
3051
3044
|
type: "rotate",
|
|
3052
|
-
distanceRads:
|
|
3045
|
+
distanceRads: Me(p.degrees)
|
|
3053
3046
|
}
|
|
3054
3047
|
});
|
|
3055
3048
|
} finally {
|
|
3056
|
-
|
|
3049
|
+
e.setCurrentIncrementJog(null), await e.deactivate();
|
|
3057
3050
|
}
|
|
3058
3051
|
});
|
|
3059
3052
|
}
|
|
3060
3053
|
async function c(d) {
|
|
3061
|
-
if (!
|
|
3062
|
-
if (await
|
|
3063
|
-
return n(d,
|
|
3064
|
-
d.motionType === "translate" ? await
|
|
3054
|
+
if (!e.isLocked) {
|
|
3055
|
+
if (await e.activate(), e.activeDiscreteIncrement)
|
|
3056
|
+
return n(d, e.activeDiscreteIncrement);
|
|
3057
|
+
d.motionType === "translate" ? await e.jogger.translateTCP({
|
|
3065
3058
|
axis: d.axis,
|
|
3066
3059
|
direction: d.direction,
|
|
3067
|
-
velocityMmPerSec:
|
|
3068
|
-
}) : await
|
|
3060
|
+
velocityMmPerSec: e.translationVelocityMmPerSec
|
|
3061
|
+
}) : await e.jogger.rotateTCP({
|
|
3069
3062
|
axis: d.axis,
|
|
3070
3063
|
direction: d.direction,
|
|
3071
|
-
velocityRadsPerSec:
|
|
3064
|
+
velocityRadsPerSec: e.rotationVelocityRadsPerSec
|
|
3072
3065
|
});
|
|
3073
3066
|
}
|
|
3074
3067
|
}
|
|
3075
3068
|
async function s() {
|
|
3076
|
-
|
|
3069
|
+
e.isLocked || e.activeDiscreteIncrement || await e.deactivate();
|
|
3077
3070
|
}
|
|
3078
3071
|
function l(d, p, x) {
|
|
3079
3072
|
var h, m, v;
|
|
@@ -3084,18 +3077,18 @@ const Zt = J(
|
|
|
3084
3077
|
const u = [
|
|
3085
3078
|
{
|
|
3086
3079
|
id: "x",
|
|
3087
|
-
icon: /* @__PURE__ */ a(
|
|
3088
|
-
colors: l("X",
|
|
3080
|
+
icon: /* @__PURE__ */ a(_e, {}),
|
|
3081
|
+
colors: l("X", e.selectedCartesianMotionType, i)
|
|
3089
3082
|
},
|
|
3090
3083
|
{
|
|
3091
3084
|
id: "y",
|
|
3092
|
-
icon: /* @__PURE__ */ a(
|
|
3093
|
-
colors: l("Y",
|
|
3085
|
+
icon: /* @__PURE__ */ a(Oe, {}),
|
|
3086
|
+
colors: l("Y", e.selectedCartesianMotionType, i)
|
|
3094
3087
|
},
|
|
3095
3088
|
{
|
|
3096
3089
|
id: "z",
|
|
3097
|
-
icon: /* @__PURE__ */ a(
|
|
3098
|
-
colors: l("Z",
|
|
3090
|
+
icon: /* @__PURE__ */ a(De, {}),
|
|
3091
|
+
colors: l("Z", e.selectedCartesianMotionType, i)
|
|
3099
3092
|
}
|
|
3100
3093
|
];
|
|
3101
3094
|
function f(d) {
|
|
@@ -3117,17 +3110,17 @@ const Zt = J(
|
|
|
3117
3110
|
children: [
|
|
3118
3111
|
/* @__PURE__ */ S(_, { gap: 2, children: [
|
|
3119
3112
|
/* @__PURE__ */ a(
|
|
3120
|
-
|
|
3113
|
+
ko,
|
|
3121
3114
|
{
|
|
3122
|
-
store:
|
|
3123
|
-
useDegree:
|
|
3115
|
+
store: e,
|
|
3116
|
+
useDegree: e.selectedCartesianMotionType === "rotate"
|
|
3124
3117
|
}
|
|
3125
3118
|
),
|
|
3126
3119
|
/* @__PURE__ */ a(
|
|
3127
3120
|
Zt,
|
|
3128
3121
|
{
|
|
3129
|
-
store:
|
|
3130
|
-
useDegree:
|
|
3122
|
+
store: e,
|
|
3123
|
+
useDegree: e.selectedCartesianMotionType === "rotate"
|
|
3131
3124
|
}
|
|
3132
3125
|
),
|
|
3133
3126
|
/* @__PURE__ */ a(Y, {})
|
|
@@ -3149,10 +3142,10 @@ const Zt = J(
|
|
|
3149
3142
|
sx: { flexGrow: 1 },
|
|
3150
3143
|
children: [
|
|
3151
3144
|
/* @__PURE__ */ S(
|
|
3152
|
-
|
|
3145
|
+
Ro,
|
|
3153
3146
|
{
|
|
3154
|
-
value:
|
|
3155
|
-
onChange:
|
|
3147
|
+
value: e.selectedCartesianMotionType,
|
|
3148
|
+
onChange: r,
|
|
3156
3149
|
exclusive: !0,
|
|
3157
3150
|
"aria-label": o("Jogging.Cartesian.MotionType.lb"),
|
|
3158
3151
|
sx: { justifyContent: "center" },
|
|
@@ -3162,7 +3155,7 @@ const Zt = J(
|
|
|
3162
3155
|
]
|
|
3163
3156
|
}
|
|
3164
3157
|
),
|
|
3165
|
-
|
|
3158
|
+
e.selectedCartesianMotionType === "translate" && u.map((d) => {
|
|
3166
3159
|
var p, x;
|
|
3167
3160
|
return /* @__PURE__ */ a(
|
|
3168
3161
|
_t,
|
|
@@ -3170,8 +3163,8 @@ const Zt = J(
|
|
|
3170
3163
|
"data-testid": `jogging-cartesian-axis-control-${d.id}`,
|
|
3171
3164
|
"aria-label": `jogging-cartesian-axis-control-${d.id}`,
|
|
3172
3165
|
colors: d.colors,
|
|
3173
|
-
disabled:
|
|
3174
|
-
activeJoggingDirection: ((p =
|
|
3166
|
+
disabled: e.isLocked,
|
|
3167
|
+
activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === d.id ? e.incrementJogInProgress.direction : void 0,
|
|
3175
3168
|
label: /* @__PURE__ */ S(et, { children: [
|
|
3176
3169
|
d.icon,
|
|
3177
3170
|
/* @__PURE__ */ a(
|
|
@@ -3179,7 +3172,7 @@ const Zt = J(
|
|
|
3179
3172
|
{
|
|
3180
3173
|
sx: {
|
|
3181
3174
|
fontSize: "24px",
|
|
3182
|
-
color: ((x = d.colors) == null ? void 0 : x.labelColor) ??
|
|
3175
|
+
color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? i.palette.text.primary
|
|
3183
3176
|
},
|
|
3184
3177
|
children: d.id.toUpperCase()
|
|
3185
3178
|
}
|
|
@@ -3188,7 +3181,7 @@ const Zt = J(
|
|
|
3188
3181
|
getDisplayedValue: () => {
|
|
3189
3182
|
var y, h;
|
|
3190
3183
|
return f(
|
|
3191
|
-
((h = (y =
|
|
3184
|
+
((h = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.position) == null ? void 0 : h[tt[d.id]]) || 0
|
|
3192
3185
|
);
|
|
3193
3186
|
},
|
|
3194
3187
|
startJogging: (y) => c({
|
|
@@ -3201,7 +3194,7 @@ const Zt = J(
|
|
|
3201
3194
|
d.id
|
|
3202
3195
|
);
|
|
3203
3196
|
}),
|
|
3204
|
-
|
|
3197
|
+
e.selectedCartesianMotionType === "rotate" && u.map((d) => {
|
|
3205
3198
|
var p, x;
|
|
3206
3199
|
return /* @__PURE__ */ a(
|
|
3207
3200
|
_t,
|
|
@@ -3209,16 +3202,16 @@ const Zt = J(
|
|
|
3209
3202
|
"data-testid": `jogging-cartesian-axis-control-${d.id}`,
|
|
3210
3203
|
"aria-label": `jogging-cartesian-axis-control-${d.id}`,
|
|
3211
3204
|
colors: d.colors,
|
|
3212
|
-
disabled:
|
|
3213
|
-
activeJoggingDirection: ((p =
|
|
3205
|
+
disabled: e.isLocked,
|
|
3206
|
+
activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === d.id ? e.incrementJogInProgress.direction : void 0,
|
|
3214
3207
|
label: /* @__PURE__ */ S(et, { children: [
|
|
3215
|
-
/* @__PURE__ */ a(
|
|
3208
|
+
/* @__PURE__ */ a(Ae, {}),
|
|
3216
3209
|
/* @__PURE__ */ a(
|
|
3217
3210
|
j,
|
|
3218
3211
|
{
|
|
3219
3212
|
sx: {
|
|
3220
3213
|
fontSize: "24px",
|
|
3221
|
-
color: ((x = d.colors) == null ? void 0 : x.labelColor) ??
|
|
3214
|
+
color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? i.palette.text.primary
|
|
3222
3215
|
},
|
|
3223
3216
|
children: d.id.toUpperCase()
|
|
3224
3217
|
}
|
|
@@ -3227,7 +3220,7 @@ const Zt = J(
|
|
|
3227
3220
|
getDisplayedValue: () => {
|
|
3228
3221
|
var y, h;
|
|
3229
3222
|
return g(
|
|
3230
|
-
((h = (y =
|
|
3223
|
+
((h = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.orientation) == null ? void 0 : h[tt[d.id]]) || 0
|
|
3231
3224
|
);
|
|
3232
3225
|
},
|
|
3233
3226
|
startJogging: (y) => c({
|
|
@@ -3245,26 +3238,26 @@ const Zt = J(
|
|
|
3245
3238
|
)
|
|
3246
3239
|
}
|
|
3247
3240
|
),
|
|
3248
|
-
/* @__PURE__ */ a(qt, { store:
|
|
3249
|
-
|
|
3250
|
-
|
|
3241
|
+
/* @__PURE__ */ a(qt, { store: e }),
|
|
3242
|
+
t && /* @__PURE__ */ a(Y, {}),
|
|
3243
|
+
t
|
|
3251
3244
|
]
|
|
3252
3245
|
}
|
|
3253
3246
|
);
|
|
3254
3247
|
}
|
|
3255
|
-
),
|
|
3256
|
-
({ store:
|
|
3248
|
+
), Po = J(
|
|
3249
|
+
({ store: e, children: t }) => {
|
|
3257
3250
|
const o = L();
|
|
3258
|
-
async function
|
|
3259
|
-
await
|
|
3251
|
+
async function i(n) {
|
|
3252
|
+
await e.activate(), await e.jogger.rotateJoints({
|
|
3260
3253
|
joint: n.joint,
|
|
3261
3254
|
direction: n.direction,
|
|
3262
|
-
velocityUnit:
|
|
3263
|
-
velocityValue:
|
|
3255
|
+
velocityUnit: e.jointType === G.PrismaticJoint ? "mm/s" : "rad/s",
|
|
3256
|
+
velocityValue: e.jointType === G.PrismaticJoint ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec
|
|
3264
3257
|
});
|
|
3265
3258
|
}
|
|
3266
|
-
async function
|
|
3267
|
-
await
|
|
3259
|
+
async function r() {
|
|
3260
|
+
await e.jogger.stop(), await e.deactivate();
|
|
3268
3261
|
}
|
|
3269
3262
|
return /* @__PURE__ */ S(
|
|
3270
3263
|
_,
|
|
@@ -3278,8 +3271,8 @@ const Zt = J(
|
|
|
3278
3271
|
/* @__PURE__ */ a(
|
|
3279
3272
|
Zt,
|
|
3280
3273
|
{
|
|
3281
|
-
store:
|
|
3282
|
-
useDegree:
|
|
3274
|
+
store: e,
|
|
3275
|
+
useDegree: e.jointType === G.RevoluteJoint
|
|
3283
3276
|
}
|
|
3284
3277
|
),
|
|
3285
3278
|
/* @__PURE__ */ a(Y, {}),
|
|
@@ -3296,9 +3289,9 @@ const Zt = J(
|
|
|
3296
3289
|
"aria-label": "jogging-joint-value-controls-wrapper",
|
|
3297
3290
|
alignItems: "center",
|
|
3298
3291
|
gap: "24px",
|
|
3299
|
-
children:
|
|
3292
|
+
children: e.jogger.motionStream.joints.map((n) => {
|
|
3300
3293
|
var s, l, u;
|
|
3301
|
-
const c = (u = (l = (s =
|
|
3294
|
+
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
3295
|
return /* @__PURE__ */ S(
|
|
3303
3296
|
_,
|
|
3304
3297
|
{
|
|
@@ -3310,29 +3303,29 @@ const Zt = J(
|
|
|
3310
3303
|
spacing: 1.5,
|
|
3311
3304
|
width: "100%",
|
|
3312
3305
|
children: [
|
|
3313
|
-
|
|
3306
|
+
e.showJointsLegend && /* @__PURE__ */ a(
|
|
3314
3307
|
j,
|
|
3315
3308
|
{
|
|
3316
|
-
color:
|
|
3309
|
+
color: e.isLocked ? o.palette.text.disabled : o.palette.text.secondary,
|
|
3317
3310
|
children: `G${n.index + 1}`
|
|
3318
3311
|
}
|
|
3319
3312
|
),
|
|
3320
3313
|
/* @__PURE__ */ a(
|
|
3321
|
-
|
|
3314
|
+
xo,
|
|
3322
3315
|
{
|
|
3323
|
-
disabled:
|
|
3316
|
+
disabled: e.isLocked,
|
|
3324
3317
|
lowerLimit: c == null ? void 0 : c.lower_limit,
|
|
3325
3318
|
upperLimit: c == null ? void 0 : c.upper_limit,
|
|
3326
|
-
useDegree:
|
|
3319
|
+
useDegree: e.jointType === G.RevoluteJoint,
|
|
3327
3320
|
getValue: () => {
|
|
3328
|
-
const f =
|
|
3321
|
+
const f = e.jogger.motionStream.rapidlyChangingMotionState.joint_position[n.index];
|
|
3329
3322
|
return f !== void 0 ? f : void 0;
|
|
3330
3323
|
},
|
|
3331
|
-
startJogging: (f) =>
|
|
3324
|
+
startJogging: (f) => i({
|
|
3332
3325
|
joint: n.index,
|
|
3333
3326
|
direction: f
|
|
3334
3327
|
}),
|
|
3335
|
-
stopJogging:
|
|
3328
|
+
stopJogging: r
|
|
3336
3329
|
}
|
|
3337
3330
|
)
|
|
3338
3331
|
]
|
|
@@ -3344,43 +3337,43 @@ const Zt = J(
|
|
|
3344
3337
|
)
|
|
3345
3338
|
}
|
|
3346
3339
|
),
|
|
3347
|
-
/* @__PURE__ */ a(qt, { store:
|
|
3348
|
-
|
|
3349
|
-
|
|
3340
|
+
/* @__PURE__ */ a(qt, { store: e }),
|
|
3341
|
+
t && /* @__PURE__ */ a(Y, {}),
|
|
3342
|
+
t
|
|
3350
3343
|
]
|
|
3351
3344
|
}
|
|
3352
3345
|
);
|
|
3353
3346
|
}
|
|
3354
|
-
),
|
|
3355
|
-
J((
|
|
3356
|
-
const
|
|
3347
|
+
), ui = $(
|
|
3348
|
+
J((e) => {
|
|
3349
|
+
const t = Ce(e.nova) ? new xe({ instanceUrl: e.nova }) : e.nova, o = Lt(() => ({
|
|
3357
3350
|
joggingStore: null,
|
|
3358
3351
|
loadingError: null
|
|
3359
3352
|
}));
|
|
3360
|
-
async function
|
|
3353
|
+
async function i() {
|
|
3361
3354
|
B(() => {
|
|
3362
3355
|
o.loadingError = null, o.joggingStore = null;
|
|
3363
3356
|
});
|
|
3364
3357
|
try {
|
|
3365
|
-
let
|
|
3366
|
-
if (!
|
|
3367
|
-
const n = await ft.open(
|
|
3368
|
-
|
|
3358
|
+
let r = e.store;
|
|
3359
|
+
if (!r) {
|
|
3360
|
+
const n = await ft.open(t, e.motionGroupId);
|
|
3361
|
+
r = await bt.loadFor(n);
|
|
3369
3362
|
}
|
|
3370
3363
|
B(() => {
|
|
3371
|
-
o.joggingStore =
|
|
3372
|
-
}),
|
|
3373
|
-
} catch (
|
|
3374
|
-
o.loadingError =
|
|
3364
|
+
o.joggingStore = r;
|
|
3365
|
+
}), e.onSetup && e.onSetup(r);
|
|
3366
|
+
} catch (r) {
|
|
3367
|
+
o.loadingError = r;
|
|
3375
3368
|
}
|
|
3376
3369
|
}
|
|
3377
|
-
return A(() => (
|
|
3378
|
-
var
|
|
3379
|
-
(
|
|
3380
|
-
}), [
|
|
3381
|
-
const
|
|
3382
|
-
|
|
3383
|
-
}, [o.joggingStore,
|
|
3370
|
+
return A(() => (i(), e.store ? () => null : () => {
|
|
3371
|
+
var r;
|
|
3372
|
+
(r = o.joggingStore) == null || r.dispose();
|
|
3373
|
+
}), [e.store, e.nova, e.motionGroupId]), A(() => {
|
|
3374
|
+
const r = o.joggingStore;
|
|
3375
|
+
r && (e.locked ? r.lock("external") : r.unlock("external"));
|
|
3376
|
+
}, [o.joggingStore, e.locked]), /* @__PURE__ */ a(
|
|
3384
3377
|
_,
|
|
3385
3378
|
{
|
|
3386
3379
|
"data-testid": "jogging-panel",
|
|
@@ -3389,23 +3382,23 @@ const Zt = J(
|
|
|
3389
3382
|
maxWidth: "460px",
|
|
3390
3383
|
minWidth: "320px",
|
|
3391
3384
|
position: "relative",
|
|
3392
|
-
...
|
|
3385
|
+
...e.sx
|
|
3393
3386
|
},
|
|
3394
|
-
children: o.joggingStore ? /* @__PURE__ */ a(
|
|
3387
|
+
children: o.joggingStore ? /* @__PURE__ */ a(_o, { store: o.joggingStore, children: e.children }) : /* @__PURE__ */ a(vo, { message: "Loading jogging", error: o.loadingError })
|
|
3395
3388
|
}
|
|
3396
3389
|
);
|
|
3397
3390
|
})
|
|
3398
|
-
),
|
|
3391
|
+
), _o = J(
|
|
3399
3392
|
({
|
|
3400
|
-
store:
|
|
3401
|
-
children:
|
|
3393
|
+
store: e,
|
|
3394
|
+
children: t
|
|
3402
3395
|
}) => {
|
|
3403
3396
|
const { t: o } = V();
|
|
3404
|
-
function
|
|
3405
|
-
if (
|
|
3406
|
-
return /* @__PURE__ */ a(
|
|
3407
|
-
if (
|
|
3408
|
-
return /* @__PURE__ */ a(
|
|
3397
|
+
function i() {
|
|
3398
|
+
if (e.currentTab.id === "cartesian")
|
|
3399
|
+
return /* @__PURE__ */ a(Eo, { store: e, children: t });
|
|
3400
|
+
if (e.currentTab.id === "joint")
|
|
3401
|
+
return /* @__PURE__ */ a(Po, { store: e, children: t });
|
|
3409
3402
|
}
|
|
3410
3403
|
return /* @__PURE__ */ S(_, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
|
|
3411
3404
|
/* @__PURE__ */ a(
|
|
@@ -3413,24 +3406,24 @@ const Zt = J(
|
|
|
3413
3406
|
{
|
|
3414
3407
|
"data-testid": "jogging-tabs",
|
|
3415
3408
|
"aria-label": "jogging-tabs",
|
|
3416
|
-
value:
|
|
3417
|
-
onChange:
|
|
3409
|
+
value: e.tabIndex,
|
|
3410
|
+
onChange: e.onTabChange,
|
|
3418
3411
|
variant: "fullWidth",
|
|
3419
|
-
children:
|
|
3420
|
-
const n =
|
|
3412
|
+
children: e.tabs.map((r) => {
|
|
3413
|
+
const n = r.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = r.label === "cartesian" ? /* @__PURE__ */ a(fe, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(be, { fontSize: "small", sx: { mr: 1 } });
|
|
3421
3414
|
return /* @__PURE__ */ a(
|
|
3422
3415
|
zt,
|
|
3423
3416
|
{
|
|
3424
|
-
"data-testid": `jogging-tab-${
|
|
3425
|
-
"aria-label": `jogging-tab-${
|
|
3426
|
-
label:
|
|
3417
|
+
"data-testid": `jogging-tab-${r.id}`,
|
|
3418
|
+
"aria-label": `jogging-tab-${r.id}`,
|
|
3419
|
+
label: e.showTabIcons ? /* @__PURE__ */ S(_, { direction: "row", alignItems: "center", children: [
|
|
3427
3420
|
c,
|
|
3428
3421
|
n
|
|
3429
3422
|
] }) : n,
|
|
3430
|
-
id: `jogging-tab-${
|
|
3431
|
-
"aria-controls": `jogging-tab-${
|
|
3423
|
+
id: `jogging-tab-${r.id}`,
|
|
3424
|
+
"aria-controls": `jogging-tab-${r.id}`
|
|
3432
3425
|
},
|
|
3433
|
-
|
|
3426
|
+
r.id
|
|
3434
3427
|
);
|
|
3435
3428
|
})
|
|
3436
3429
|
}
|
|
@@ -3441,20 +3434,20 @@ const Zt = J(
|
|
|
3441
3434
|
flexGrow: 1,
|
|
3442
3435
|
position: "relative",
|
|
3443
3436
|
sx: { overflowY: "auto", overflowX: "hidden" },
|
|
3444
|
-
children:
|
|
3437
|
+
children: i()
|
|
3445
3438
|
}
|
|
3446
3439
|
),
|
|
3447
|
-
|
|
3440
|
+
e.blocked && /* @__PURE__ */ a(wo, { store: e })
|
|
3448
3441
|
] });
|
|
3449
3442
|
}
|
|
3450
|
-
), Qt = (
|
|
3443
|
+
), Qt = (e) => {
|
|
3451
3444
|
var s;
|
|
3452
|
-
const { value:
|
|
3445
|
+
const { value: t, ref: o } = e, i = L(), [r, n] = F(!1);
|
|
3453
3446
|
async function c() {
|
|
3454
3447
|
if (!o || !("current" in o))
|
|
3455
3448
|
return console.warn("No copy target found"), !1;
|
|
3456
3449
|
try {
|
|
3457
|
-
return await navigator.clipboard.writeText(
|
|
3450
|
+
return await navigator.clipboard.writeText(t), console.log("Copied!"), n(!0), !0;
|
|
3458
3451
|
} catch (l) {
|
|
3459
3452
|
console.error(l);
|
|
3460
3453
|
const u = window.getSelection();
|
|
@@ -3466,13 +3459,13 @@ const Zt = J(
|
|
|
3466
3459
|
return !1;
|
|
3467
3460
|
}
|
|
3468
3461
|
return A(() => {
|
|
3469
|
-
if (!
|
|
3462
|
+
if (!r)
|
|
3470
3463
|
return;
|
|
3471
3464
|
const l = setTimeout(() => n(!1), 3e3);
|
|
3472
3465
|
return () => {
|
|
3473
3466
|
l && clearTimeout(l);
|
|
3474
3467
|
};
|
|
3475
|
-
}, [
|
|
3468
|
+
}, [r]), /* @__PURE__ */ a(qe, { open: r, title: "Copied!", children: /* @__PURE__ */ a(
|
|
3476
3469
|
_,
|
|
3477
3470
|
{
|
|
3478
3471
|
justifyContent: "center",
|
|
@@ -3480,7 +3473,7 @@ const Zt = J(
|
|
|
3480
3473
|
height: "100%",
|
|
3481
3474
|
boxSizing: "border-box",
|
|
3482
3475
|
padding: "6px 12px",
|
|
3483
|
-
background: (s =
|
|
3476
|
+
background: (s = i.palette.backgroundPaperElevation) == null ? void 0 : s[8],
|
|
3484
3477
|
borderRadius: "10px",
|
|
3485
3478
|
minWidth: "0",
|
|
3486
3479
|
cursor: "pointer"
|
|
@@ -3494,21 +3487,21 @@ const Zt = J(
|
|
|
3494
3487
|
sx: {
|
|
3495
3488
|
pointerEvents: "none",
|
|
3496
3489
|
fontSize: "12px",
|
|
3497
|
-
color:
|
|
3490
|
+
color: i.palette.text.primary,
|
|
3498
3491
|
whiteSpace: "nowrap",
|
|
3499
3492
|
minWidth: 0,
|
|
3500
3493
|
textOverflow: "ellipsis",
|
|
3501
3494
|
width: "100%",
|
|
3502
3495
|
overflow: "hidden"
|
|
3503
3496
|
},
|
|
3504
|
-
children:
|
|
3497
|
+
children: t
|
|
3505
3498
|
}
|
|
3506
3499
|
)
|
|
3507
3500
|
}
|
|
3508
3501
|
) });
|
|
3509
|
-
},
|
|
3510
|
-
J(({ tcpPose:
|
|
3511
|
-
const [o,
|
|
3502
|
+
}, pi = $(
|
|
3503
|
+
J(({ tcpPose: e, showCopyButton: t = !1 }) => {
|
|
3504
|
+
const [o, i] = F(null), r = ye(e);
|
|
3512
3505
|
return /* @__PURE__ */ S(
|
|
3513
3506
|
_,
|
|
3514
3507
|
{
|
|
@@ -3518,8 +3511,8 @@ const Zt = J(
|
|
|
3518
3511
|
sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
|
|
3519
3512
|
"data-testid": "pose-cartesian-values",
|
|
3520
3513
|
children: [
|
|
3521
|
-
/* @__PURE__ */ a(Qt, { value:
|
|
3522
|
-
|
|
3514
|
+
/* @__PURE__ */ a(Qt, { value: r }),
|
|
3515
|
+
t && /* @__PURE__ */ a(
|
|
3523
3516
|
Z,
|
|
3524
3517
|
{
|
|
3525
3518
|
variant: "contained",
|
|
@@ -3527,9 +3520,9 @@ const Zt = J(
|
|
|
3527
3520
|
size: "small",
|
|
3528
3521
|
onClick: async () => {
|
|
3529
3522
|
try {
|
|
3530
|
-
await navigator.clipboard.writeText(
|
|
3523
|
+
await navigator.clipboard.writeText(r), i("Copied!"), setTimeout(() => i(null), 2e3);
|
|
3531
3524
|
} catch {
|
|
3532
|
-
|
|
3525
|
+
i("Copy failed"), setTimeout(() => i(null), 2e3);
|
|
3533
3526
|
}
|
|
3534
3527
|
},
|
|
3535
3528
|
sx: { flexShrink: 0 },
|
|
@@ -3540,9 +3533,9 @@ const Zt = J(
|
|
|
3540
3533
|
}
|
|
3541
3534
|
);
|
|
3542
3535
|
})
|
|
3543
|
-
),
|
|
3544
|
-
J(({ joints:
|
|
3545
|
-
const [o,
|
|
3536
|
+
), mi = $(
|
|
3537
|
+
J(({ joints: e, showCopyButton: t = !1 }) => {
|
|
3538
|
+
const [o, i] = F(null), r = `[${e.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
|
|
3546
3539
|
return /* @__PURE__ */ S(
|
|
3547
3540
|
_,
|
|
3548
3541
|
{
|
|
@@ -3552,8 +3545,8 @@ const Zt = J(
|
|
|
3552
3545
|
sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
|
|
3553
3546
|
"data-testid": "pose-joint-values",
|
|
3554
3547
|
children: [
|
|
3555
|
-
/* @__PURE__ */ a(Qt, { value:
|
|
3556
|
-
|
|
3548
|
+
/* @__PURE__ */ a(Qt, { value: r }),
|
|
3549
|
+
t && /* @__PURE__ */ a(
|
|
3557
3550
|
Z,
|
|
3558
3551
|
{
|
|
3559
3552
|
variant: "contained",
|
|
@@ -3561,9 +3554,9 @@ const Zt = J(
|
|
|
3561
3554
|
size: "small",
|
|
3562
3555
|
onClick: async () => {
|
|
3563
3556
|
try {
|
|
3564
|
-
await navigator.clipboard.writeText(
|
|
3557
|
+
await navigator.clipboard.writeText(r), i("Copied!"), setTimeout(() => i(null), 2e3);
|
|
3565
3558
|
} catch {
|
|
3566
|
-
|
|
3559
|
+
i("Copy failed"), setTimeout(() => i(null), 2e3);
|
|
3567
3560
|
}
|
|
3568
3561
|
},
|
|
3569
3562
|
sx: { flexShrink: 0 },
|
|
@@ -3575,51 +3568,51 @@ const Zt = J(
|
|
|
3575
3568
|
);
|
|
3576
3569
|
})
|
|
3577
3570
|
);
|
|
3578
|
-
class
|
|
3571
|
+
class Oo {
|
|
3579
3572
|
constructor() {
|
|
3580
|
-
this.messages = [], this.addMessage = (
|
|
3581
|
-
const
|
|
3573
|
+
this.messages = [], this.addMessage = (t, o = "info") => {
|
|
3574
|
+
const i = {
|
|
3582
3575
|
id: Math.random().toString(36).substring(2, 11),
|
|
3583
3576
|
timestamp: /* @__PURE__ */ new Date(),
|
|
3584
|
-
message:
|
|
3577
|
+
message: t,
|
|
3585
3578
|
level: o
|
|
3586
3579
|
};
|
|
3587
|
-
this.messages.push(
|
|
3580
|
+
this.messages.push(i);
|
|
3588
3581
|
}, this.clearMessages = () => {
|
|
3589
3582
|
this.messages = [];
|
|
3590
|
-
}, this.addInfo = (
|
|
3591
|
-
this.addMessage(
|
|
3592
|
-
}, this.addWarning = (
|
|
3593
|
-
this.addMessage(
|
|
3594
|
-
}, this.addError = (
|
|
3595
|
-
this.addMessage(
|
|
3596
|
-
}, this.addDebug = (
|
|
3597
|
-
this.addMessage(
|
|
3598
|
-
},
|
|
3599
|
-
messages:
|
|
3583
|
+
}, this.addInfo = (t) => {
|
|
3584
|
+
this.addMessage(t, "info");
|
|
3585
|
+
}, this.addWarning = (t) => {
|
|
3586
|
+
this.addMessage(t, "warning");
|
|
3587
|
+
}, this.addError = (t) => {
|
|
3588
|
+
this.addMessage(t, "error");
|
|
3589
|
+
}, this.addDebug = (t) => {
|
|
3590
|
+
this.addMessage(t, "debug");
|
|
3591
|
+
}, we(this, {
|
|
3592
|
+
messages: Te,
|
|
3600
3593
|
addMessage: Rt,
|
|
3601
3594
|
clearMessages: Rt
|
|
3602
3595
|
});
|
|
3603
3596
|
}
|
|
3604
3597
|
}
|
|
3605
|
-
const at = (
|
|
3598
|
+
const at = (e, t, o) => ({
|
|
3606
3599
|
id: o || `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
|
|
3607
3600
|
timestamp: /* @__PURE__ */ new Date(),
|
|
3608
|
-
message:
|
|
3609
|
-
level:
|
|
3610
|
-
}),
|
|
3611
|
-
J((
|
|
3601
|
+
message: e,
|
|
3602
|
+
level: t
|
|
3603
|
+
}), hi = (e, t) => at(e, "debug", t), fi = (e, t) => at(e, "info", t), bi = (e, t) => at(e, "warning", t), xi = (e, t) => at(e, "error", t), Do = $(
|
|
3604
|
+
J((e) => {
|
|
3612
3605
|
var f;
|
|
3613
|
-
const { messages:
|
|
3606
|
+
const { messages: t = [], onClear: o, height: i = 400, sx: r } = e, n = L(), c = D(null);
|
|
3614
3607
|
A(() => {
|
|
3615
|
-
if (
|
|
3608
|
+
if (t.length === 0) return;
|
|
3616
3609
|
const g = c.current;
|
|
3617
3610
|
if (!g) return;
|
|
3618
3611
|
const d = setTimeout(() => {
|
|
3619
3612
|
g.scrollTop = g.scrollHeight;
|
|
3620
3613
|
}, 10);
|
|
3621
3614
|
return () => clearTimeout(d);
|
|
3622
|
-
}, [
|
|
3615
|
+
}, [t.length]);
|
|
3623
3616
|
const s = (g) => g.toLocaleTimeString("en-US", {
|
|
3624
3617
|
hour12: !1,
|
|
3625
3618
|
hour: "2-digit",
|
|
@@ -3728,7 +3721,7 @@ const at = (t, e, o) => ({
|
|
|
3728
3721
|
}
|
|
3729
3722
|
},
|
|
3730
3723
|
title: x ? "Copied!" : "Copy message",
|
|
3731
|
-
children: /* @__PURE__ */ a(
|
|
3724
|
+
children: /* @__PURE__ */ a(Ye, { sx: { fontSize: 12 } })
|
|
3732
3725
|
}
|
|
3733
3726
|
),
|
|
3734
3727
|
v && /* @__PURE__ */ a(
|
|
@@ -3744,7 +3737,7 @@ const at = (t, e, o) => ({
|
|
|
3744
3737
|
}
|
|
3745
3738
|
},
|
|
3746
3739
|
title: d ? "Collapse" : "Expand",
|
|
3747
|
-
children: d ? /* @__PURE__ */ a(
|
|
3740
|
+
children: d ? /* @__PURE__ */ a(Qe, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } })
|
|
3748
3741
|
}
|
|
3749
3742
|
)
|
|
3750
3743
|
]
|
|
@@ -3756,17 +3749,17 @@ const at = (t, e, o) => ({
|
|
|
3756
3749
|
);
|
|
3757
3750
|
};
|
|
3758
3751
|
return /* @__PURE__ */ S(
|
|
3759
|
-
|
|
3752
|
+
Ke,
|
|
3760
3753
|
{
|
|
3761
3754
|
sx: {
|
|
3762
3755
|
backgroundColor: ((f = n.palette.backgroundPaperElevation) == null ? void 0 : f[2]) || "#171927",
|
|
3763
3756
|
backgroundImage: "none",
|
|
3764
3757
|
// Override any gradient from elevation
|
|
3765
|
-
height:
|
|
3758
|
+
height: i,
|
|
3766
3759
|
display: "flex",
|
|
3767
3760
|
flexDirection: "column",
|
|
3768
3761
|
overflow: "hidden",
|
|
3769
|
-
...
|
|
3762
|
+
...r
|
|
3770
3763
|
},
|
|
3771
3764
|
children: [
|
|
3772
3765
|
/* @__PURE__ */ S(
|
|
@@ -3781,7 +3774,7 @@ const at = (t, e, o) => ({
|
|
|
3781
3774
|
children: [
|
|
3782
3775
|
/* @__PURE__ */ S(T, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3783
3776
|
/* @__PURE__ */ a(
|
|
3784
|
-
|
|
3777
|
+
Ze,
|
|
3785
3778
|
{
|
|
3786
3779
|
sx: {
|
|
3787
3780
|
fontSize: 16,
|
|
@@ -3857,7 +3850,7 @@ const at = (t, e, o) => ({
|
|
|
3857
3850
|
}
|
|
3858
3851
|
}
|
|
3859
3852
|
},
|
|
3860
|
-
children:
|
|
3853
|
+
children: t.length === 0 ? /* @__PURE__ */ a(
|
|
3861
3854
|
j,
|
|
3862
3855
|
{
|
|
3863
3856
|
sx: {
|
|
@@ -3869,49 +3862,49 @@ const at = (t, e, o) => ({
|
|
|
3869
3862
|
},
|
|
3870
3863
|
children: "No log messages"
|
|
3871
3864
|
}
|
|
3872
|
-
) :
|
|
3865
|
+
) : t.map((g) => /* @__PURE__ */ a(u, { message: g }, g.id))
|
|
3873
3866
|
}
|
|
3874
3867
|
)
|
|
3875
3868
|
]
|
|
3876
3869
|
}
|
|
3877
3870
|
);
|
|
3878
3871
|
})
|
|
3879
|
-
),
|
|
3880
|
-
J((
|
|
3881
|
-
const { store:
|
|
3872
|
+
), yi = $(
|
|
3873
|
+
J((e) => {
|
|
3874
|
+
const { store: t, onStoreReady: o, ...i } = e, r = D(o);
|
|
3882
3875
|
A(() => {
|
|
3883
|
-
|
|
3876
|
+
r.current = o;
|
|
3884
3877
|
}, [o]);
|
|
3885
3878
|
const n = rt(() => {
|
|
3886
3879
|
var l;
|
|
3887
|
-
const s =
|
|
3888
|
-
return (l =
|
|
3889
|
-
}, [
|
|
3880
|
+
const s = t || new Oo();
|
|
3881
|
+
return (l = r.current) == null || l.call(r, s), s;
|
|
3882
|
+
}, [t]), c = () => {
|
|
3890
3883
|
n.clearMessages();
|
|
3891
3884
|
};
|
|
3892
3885
|
return /* @__PURE__ */ a(
|
|
3893
|
-
|
|
3886
|
+
Do,
|
|
3894
3887
|
{
|
|
3895
|
-
...
|
|
3888
|
+
...i,
|
|
3896
3889
|
messages: n.messages,
|
|
3897
3890
|
onClear: c
|
|
3898
3891
|
}
|
|
3899
3892
|
);
|
|
3900
3893
|
})
|
|
3901
3894
|
);
|
|
3902
|
-
function
|
|
3903
|
-
const
|
|
3904
|
-
return
|
|
3895
|
+
function Ao() {
|
|
3896
|
+
const e = window.location.href;
|
|
3897
|
+
return e.substring(
|
|
3905
3898
|
0,
|
|
3906
|
-
|
|
3899
|
+
e.indexOf("/", e.indexOf("//") + 2)
|
|
3907
3900
|
);
|
|
3908
3901
|
}
|
|
3909
|
-
function
|
|
3910
|
-
baseUrl:
|
|
3911
|
-
...
|
|
3902
|
+
function Si({
|
|
3903
|
+
baseUrl: e = Ao(),
|
|
3904
|
+
...t
|
|
3912
3905
|
}) {
|
|
3913
3906
|
return /* @__PURE__ */ S(
|
|
3914
|
-
|
|
3907
|
+
to,
|
|
3915
3908
|
{
|
|
3916
3909
|
"aria-labelledby": "no-motion-group-modal-title",
|
|
3917
3910
|
open: !0,
|
|
@@ -3931,9 +3924,9 @@ function vi({
|
|
|
3931
3924
|
}
|
|
3932
3925
|
},
|
|
3933
3926
|
children: [
|
|
3934
|
-
/* @__PURE__ */ a(
|
|
3927
|
+
/* @__PURE__ */ a(no, { id: "no-motion-group-modal-title", children: "No motion group found" }),
|
|
3935
3928
|
/* @__PURE__ */ S(
|
|
3936
|
-
|
|
3929
|
+
oo,
|
|
3937
3930
|
{
|
|
3938
3931
|
sx: {
|
|
3939
3932
|
marginTop: "3rem",
|
|
@@ -3946,11 +3939,11 @@ function vi({
|
|
|
3946
3939
|
]
|
|
3947
3940
|
}
|
|
3948
3941
|
),
|
|
3949
|
-
/* @__PURE__ */ a(
|
|
3942
|
+
/* @__PURE__ */ a(eo, { children: /* @__PURE__ */ S(_, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
|
|
3950
3943
|
/* @__PURE__ */ a(
|
|
3951
3944
|
Z,
|
|
3952
3945
|
{
|
|
3953
|
-
href: `${
|
|
3946
|
+
href: `${e}/settings`,
|
|
3954
3947
|
variant: "contained",
|
|
3955
3948
|
sx: {
|
|
3956
3949
|
borderRadius: "8px",
|
|
@@ -3962,7 +3955,7 @@ function vi({
|
|
|
3962
3955
|
/* @__PURE__ */ a(
|
|
3963
3956
|
Z,
|
|
3964
3957
|
{
|
|
3965
|
-
href: `${
|
|
3958
|
+
href: `${e}`,
|
|
3966
3959
|
variant: "text",
|
|
3967
3960
|
sx: {
|
|
3968
3961
|
marginTop: "1rem",
|
|
@@ -3978,50 +3971,50 @@ function vi({
|
|
|
3978
3971
|
}
|
|
3979
3972
|
);
|
|
3980
3973
|
}
|
|
3981
|
-
var Xt = /* @__PURE__ */ ((
|
|
3982
|
-
const
|
|
3983
|
-
J(({ setupState:
|
|
3984
|
-
const o = L(), { t:
|
|
3974
|
+
var Xt = /* @__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))(Xt || {});
|
|
3975
|
+
const Jo = $(
|
|
3976
|
+
J(({ setupState: e, className: t }) => {
|
|
3977
|
+
const o = L(), { t: i } = V(), r = () => {
|
|
3985
3978
|
var u, f, g, d, p, x, y;
|
|
3986
|
-
switch (
|
|
3979
|
+
switch (e) {
|
|
3987
3980
|
case "READY":
|
|
3988
3981
|
return {
|
|
3989
|
-
label:
|
|
3982
|
+
label: i("RobotSetupReadinessIndicator.Ready.lb"),
|
|
3990
3983
|
indicatorColor: ((u = o.palette.tertiary) == null ? void 0 : u.main) || o.palette.primary.main,
|
|
3991
3984
|
backgroundColor: ((f = o.palette.backgroundPaperElevation) == null ? void 0 : f[11]) || o.palette.background.paper,
|
|
3992
3985
|
textColor: o.palette.secondary.contrastText
|
|
3993
3986
|
};
|
|
3994
3987
|
case "ROBOT_DISCONNECTED":
|
|
3995
3988
|
return {
|
|
3996
|
-
label:
|
|
3989
|
+
label: i("RobotSetupReadinessIndicator.RobotDisconnected.lb"),
|
|
3997
3990
|
indicatorColor: o.palette.error.main,
|
|
3998
3991
|
backgroundColor: ((g = o.palette.backgroundPaperElevation) == null ? void 0 : g[11]) || o.palette.background.paper,
|
|
3999
3992
|
textColor: o.palette.secondary.contrastText
|
|
4000
3993
|
};
|
|
4001
3994
|
case "CELL_OPEN":
|
|
4002
3995
|
return {
|
|
4003
|
-
label:
|
|
3996
|
+
label: i("RobotSetupReadinessIndicator.CellOpen.lb"),
|
|
4004
3997
|
indicatorColor: o.palette.error.main,
|
|
4005
3998
|
backgroundColor: ((d = o.palette.backgroundPaperElevation) == null ? void 0 : d[11]) || o.palette.background.paper,
|
|
4006
3999
|
textColor: o.palette.secondary.contrastText
|
|
4007
4000
|
};
|
|
4008
4001
|
case "E_STOP":
|
|
4009
4002
|
return {
|
|
4010
|
-
label:
|
|
4003
|
+
label: i("RobotSetupReadinessIndicator.EStop.lb"),
|
|
4011
4004
|
indicatorColor: o.palette.error.main,
|
|
4012
4005
|
backgroundColor: ((p = o.palette.backgroundPaperElevation) == null ? void 0 : p[11]) || o.palette.background.paper,
|
|
4013
4006
|
textColor: o.palette.secondary.contrastText
|
|
4014
4007
|
};
|
|
4015
4008
|
case "MANUAL_MODE":
|
|
4016
4009
|
return {
|
|
4017
|
-
label:
|
|
4010
|
+
label: i("RobotSetupReadinessIndicator.ManualMode.lb"),
|
|
4018
4011
|
indicatorColor: o.palette.error.main,
|
|
4019
4012
|
backgroundColor: ((x = o.palette.backgroundPaperElevation) == null ? void 0 : x[11]) || o.palette.background.paper,
|
|
4020
4013
|
textColor: o.palette.secondary.contrastText
|
|
4021
4014
|
};
|
|
4022
4015
|
default:
|
|
4023
4016
|
return {
|
|
4024
|
-
label:
|
|
4017
|
+
label: i(
|
|
4025
4018
|
"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb"
|
|
4026
4019
|
),
|
|
4027
4020
|
indicatorColor: o.palette.error.main,
|
|
@@ -4029,11 +4022,11 @@ const Bo = $(
|
|
|
4029
4022
|
textColor: o.palette.secondary.contrastText
|
|
4030
4023
|
};
|
|
4031
4024
|
}
|
|
4032
|
-
}, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } =
|
|
4025
|
+
}, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = r();
|
|
4033
4026
|
return /* @__PURE__ */ a(
|
|
4034
|
-
|
|
4027
|
+
ro,
|
|
4035
4028
|
{
|
|
4036
|
-
className:
|
|
4029
|
+
className: t,
|
|
4037
4030
|
label: /* @__PURE__ */ S(
|
|
4038
4031
|
T,
|
|
4039
4032
|
{
|
|
@@ -4085,21 +4078,21 @@ const Bo = $(
|
|
|
4085
4078
|
}
|
|
4086
4079
|
);
|
|
4087
4080
|
})
|
|
4088
|
-
),
|
|
4081
|
+
), vi = $(
|
|
4089
4082
|
J(
|
|
4090
4083
|
({
|
|
4091
|
-
robotName:
|
|
4092
|
-
robotType:
|
|
4084
|
+
robotName: e,
|
|
4085
|
+
robotType: t,
|
|
4093
4086
|
setupState: o,
|
|
4094
|
-
PreconditionComponent:
|
|
4095
|
-
className:
|
|
4087
|
+
PreconditionComponent: i = Jo,
|
|
4088
|
+
className: r
|
|
4096
4089
|
}) => {
|
|
4097
4090
|
var l;
|
|
4098
|
-
const n = L(), c =
|
|
4091
|
+
const n = L(), c = t || "Robot", s = o === Xt.READY;
|
|
4099
4092
|
return /* @__PURE__ */ S(
|
|
4100
4093
|
T,
|
|
4101
4094
|
{
|
|
4102
|
-
className:
|
|
4095
|
+
className: r,
|
|
4103
4096
|
sx: {
|
|
4104
4097
|
border: `1px solid ${n.palette.divider}`,
|
|
4105
4098
|
background: ((l = n.palette.backgroundPaperElevation) == null ? void 0 : l[8]) || "#292B3F",
|
|
@@ -4138,10 +4131,10 @@ const Bo = $(
|
|
|
4138
4131
|
fill: `${n.palette.primary.main} !important`
|
|
4139
4132
|
}
|
|
4140
4133
|
},
|
|
4141
|
-
children: /* @__PURE__ */ a(
|
|
4134
|
+
children: /* @__PURE__ */ a(Je, {})
|
|
4142
4135
|
}
|
|
4143
4136
|
) : /* @__PURE__ */ a(
|
|
4144
|
-
|
|
4137
|
+
io,
|
|
4145
4138
|
{
|
|
4146
4139
|
sx: {
|
|
4147
4140
|
color: n.palette.error.main,
|
|
@@ -4157,7 +4150,7 @@ const Bo = $(
|
|
|
4157
4150
|
fontWeight: 500,
|
|
4158
4151
|
color: n.palette.text.primary
|
|
4159
4152
|
},
|
|
4160
|
-
children:
|
|
4153
|
+
children: e
|
|
4161
4154
|
}
|
|
4162
4155
|
),
|
|
4163
4156
|
/* @__PURE__ */ a(
|
|
@@ -4185,74 +4178,74 @@ const Bo = $(
|
|
|
4185
4178
|
]
|
|
4186
4179
|
}
|
|
4187
4180
|
),
|
|
4188
|
-
|
|
4181
|
+
i && /* @__PURE__ */ a(i, { setupState: o })
|
|
4189
4182
|
]
|
|
4190
4183
|
}
|
|
4191
4184
|
);
|
|
4192
4185
|
}
|
|
4193
4186
|
)
|
|
4194
|
-
),
|
|
4195
|
-
shouldForwardProp: (
|
|
4196
|
-
})(({ theme:
|
|
4197
|
-
var
|
|
4187
|
+
), Bo = ut(ao, {
|
|
4188
|
+
shouldForwardProp: (e) => e !== "selected"
|
|
4189
|
+
})(({ theme: e }) => {
|
|
4190
|
+
var t, o, i;
|
|
4198
4191
|
return {
|
|
4199
4192
|
borderRadius: "20px",
|
|
4200
4193
|
"&:hover": {
|
|
4201
|
-
background: (
|
|
4194
|
+
background: (t = e.palette.backgroundPaperElevation) == null ? void 0 : t[7]
|
|
4202
4195
|
},
|
|
4203
4196
|
variants: [
|
|
4204
4197
|
{
|
|
4205
|
-
props: ({ selected:
|
|
4198
|
+
props: ({ selected: r }) => !r,
|
|
4206
4199
|
style: {
|
|
4207
|
-
background: (o =
|
|
4208
|
-
color:
|
|
4200
|
+
background: (o = e.palette.backgroundPaperElevation) == null ? void 0 : o[0],
|
|
4201
|
+
color: e.palette.action.disabled,
|
|
4209
4202
|
"> img": {
|
|
4210
4203
|
opacity: 0.4
|
|
4211
4204
|
}
|
|
4212
4205
|
}
|
|
4213
4206
|
},
|
|
4214
4207
|
{
|
|
4215
|
-
props: ({ selected:
|
|
4208
|
+
props: ({ selected: r }) => r,
|
|
4216
4209
|
style: {
|
|
4217
|
-
background: (
|
|
4218
|
-
border: `1px solid ${
|
|
4219
|
-
color:
|
|
4210
|
+
background: (i = e.palette.backgroundPaperElevation) == null ? void 0 : i[11],
|
|
4211
|
+
border: `1px solid ${e.palette.divider}`,
|
|
4212
|
+
color: e.palette.primary.contrastText
|
|
4220
4213
|
}
|
|
4221
4214
|
}
|
|
4222
4215
|
]
|
|
4223
4216
|
};
|
|
4224
|
-
}),
|
|
4225
|
-
const { ref:
|
|
4217
|
+
}), Ci = (e) => {
|
|
4218
|
+
const { ref: t, ...o } = e;
|
|
4226
4219
|
return /* @__PURE__ */ a(
|
|
4227
|
-
|
|
4220
|
+
Bo,
|
|
4228
4221
|
{
|
|
4229
|
-
ref:
|
|
4230
|
-
selected:
|
|
4222
|
+
ref: t,
|
|
4223
|
+
selected: e.selected,
|
|
4231
4224
|
...o,
|
|
4232
4225
|
color: "secondary",
|
|
4233
4226
|
variant: "circular"
|
|
4234
4227
|
}
|
|
4235
4228
|
);
|
|
4236
4229
|
};
|
|
4237
|
-
function
|
|
4238
|
-
const { children:
|
|
4230
|
+
function Fo(e) {
|
|
4231
|
+
const { children: t, value: o, index: i, ...r } = e;
|
|
4239
4232
|
return /* @__PURE__ */ a(
|
|
4240
4233
|
"div",
|
|
4241
4234
|
{
|
|
4242
4235
|
role: "tabpanel",
|
|
4243
|
-
hidden: o !==
|
|
4244
|
-
id: `tabpanel-${
|
|
4245
|
-
"aria-labelledby": `tab-${
|
|
4246
|
-
...
|
|
4247
|
-
children: o ===
|
|
4236
|
+
hidden: o !== i,
|
|
4237
|
+
id: `tabpanel-${i}`,
|
|
4238
|
+
"aria-labelledby": `tab-${i}`,
|
|
4239
|
+
...r,
|
|
4240
|
+
children: o === i && /* @__PURE__ */ a(T, { children: t })
|
|
4248
4241
|
}
|
|
4249
4242
|
);
|
|
4250
4243
|
}
|
|
4251
|
-
function
|
|
4244
|
+
function Lo({ children: e, ...t }) {
|
|
4252
4245
|
const {
|
|
4253
4246
|
fullWidth: o,
|
|
4254
|
-
indicator:
|
|
4255
|
-
onChange:
|
|
4247
|
+
indicator: i,
|
|
4248
|
+
onChange: r,
|
|
4256
4249
|
orientation: n,
|
|
4257
4250
|
scrollButtons: c,
|
|
4258
4251
|
selectionFollowsFocus: s,
|
|
@@ -4260,24 +4253,24 @@ function $o({ children: t, ...e }) {
|
|
|
4260
4253
|
value: u,
|
|
4261
4254
|
variant: f,
|
|
4262
4255
|
...g
|
|
4263
|
-
} =
|
|
4264
|
-
return /* @__PURE__ */ a(T, { ...g, children:
|
|
4256
|
+
} = t;
|
|
4257
|
+
return /* @__PURE__ */ a(T, { ...g, children: e });
|
|
4265
4258
|
}
|
|
4266
|
-
const
|
|
4267
|
-
J((
|
|
4259
|
+
const wi = $(
|
|
4260
|
+
J((e) => {
|
|
4268
4261
|
const {
|
|
4269
|
-
items:
|
|
4262
|
+
items: t,
|
|
4270
4263
|
activeTab: o,
|
|
4271
|
-
defaultActiveTab:
|
|
4272
|
-
onTabChange:
|
|
4264
|
+
defaultActiveTab: i = 0,
|
|
4265
|
+
onTabChange: r,
|
|
4273
4266
|
sx: n,
|
|
4274
4267
|
ref: c
|
|
4275
|
-
} =
|
|
4268
|
+
} = e, s = o !== void 0, [l, u] = F(i), f = s ? o : l;
|
|
4276
4269
|
A(() => {
|
|
4277
|
-
s ||
|
|
4278
|
-
}, [
|
|
4270
|
+
s || t.length !== 0 && (l < 0 || l > t.length - 1) && u(0);
|
|
4271
|
+
}, [t.length, s, l]);
|
|
4279
4272
|
const g = (d, p) => {
|
|
4280
|
-
s || u(p),
|
|
4273
|
+
s || u(p), r == null || r(p);
|
|
4281
4274
|
};
|
|
4282
4275
|
return /* @__PURE__ */ S(
|
|
4283
4276
|
T,
|
|
@@ -4327,7 +4320,7 @@ const Ti = $(
|
|
|
4327
4320
|
overflow: "visible"
|
|
4328
4321
|
}
|
|
4329
4322
|
},
|
|
4330
|
-
children:
|
|
4323
|
+
children: t.map((d, p) => {
|
|
4331
4324
|
var w, C, M;
|
|
4332
4325
|
const x = () => {
|
|
4333
4326
|
if (!d.badge) return;
|
|
@@ -4338,7 +4331,7 @@ const Ti = $(
|
|
|
4338
4331
|
const k = d.badge.content, R = d.badge.showZero;
|
|
4339
4332
|
return !(k === 0 && !R);
|
|
4340
4333
|
}, h = x(), m = y(), v = () => {
|
|
4341
|
-
s || u(p),
|
|
4334
|
+
s || u(p), r == null || r(p);
|
|
4342
4335
|
}, b = /* @__PURE__ */ a(
|
|
4343
4336
|
zt,
|
|
4344
4337
|
{
|
|
@@ -4384,12 +4377,12 @@ const Ti = $(
|
|
|
4384
4377
|
d.id
|
|
4385
4378
|
);
|
|
4386
4379
|
return m ? /* @__PURE__ */ a(
|
|
4387
|
-
|
|
4380
|
+
Lo,
|
|
4388
4381
|
{
|
|
4389
4382
|
component: "span",
|
|
4390
4383
|
sx: { display: "inline-flex" },
|
|
4391
4384
|
children: /* @__PURE__ */ a(
|
|
4392
|
-
|
|
4385
|
+
so,
|
|
4393
4386
|
{
|
|
4394
4387
|
badgeContent: h,
|
|
4395
4388
|
color: ((w = d.badge) == null ? void 0 : w.color) || "error",
|
|
@@ -4427,35 +4420,35 @@ const Ti = $(
|
|
|
4427
4420
|
}
|
|
4428
4421
|
}
|
|
4429
4422
|
),
|
|
4430
|
-
/* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children:
|
|
4423
|
+
/* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children: t.map((d, p) => /* @__PURE__ */ a(Fo, { value: f, index: p, children: d.content }, d.id)) })
|
|
4431
4424
|
]
|
|
4432
4425
|
}
|
|
4433
4426
|
);
|
|
4434
4427
|
})
|
|
4435
|
-
),
|
|
4436
|
-
const
|
|
4437
|
-
return
|
|
4438
|
-
}, At = (
|
|
4439
|
-
const o = Math.floor(
|
|
4428
|
+
), $o = (e) => {
|
|
4429
|
+
const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), r = e % 60, n = [];
|
|
4430
|
+
return t > 0 ? (n.push(t.toString()), n.push(o.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : (n.push(i.toString()), n.push(r.toString().padStart(2, "0"))), n.join(":");
|
|
4431
|
+
}, At = (e, t) => {
|
|
4432
|
+
const o = Math.floor(e / 86400), i = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), n = e % 60;
|
|
4440
4433
|
if (typeof Intl < "u" && "DurationFormat" in Intl)
|
|
4441
4434
|
try {
|
|
4442
4435
|
const s = {};
|
|
4443
|
-
return o > 0 && (s.days = o),
|
|
4436
|
+
return o > 0 && (s.days = o), i > 0 && (s.hours = i), r > 0 && (s.minutes = r), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
|
|
4444
4437
|
} catch {
|
|
4445
4438
|
}
|
|
4446
4439
|
const c = [];
|
|
4447
|
-
return o > 0 && c.push(`${o}d`),
|
|
4448
|
-
},
|
|
4449
|
-
timerState:
|
|
4450
|
-
animationState:
|
|
4440
|
+
return o > 0 && c.push(`${o}d`), i > 0 && c.push(`${i}h`), r > 0 && c.push(`${r}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
|
|
4441
|
+
}, zo = ({
|
|
4442
|
+
timerState: e,
|
|
4443
|
+
animationState: t,
|
|
4451
4444
|
hasError: o,
|
|
4452
|
-
className:
|
|
4445
|
+
className: i
|
|
4453
4446
|
}) => {
|
|
4454
|
-
const { t:
|
|
4447
|
+
const { t: r } = V(), n = L(), { elapsedTime: c, currentProgress: s } = e, { showErrorAnimation: l, showPauseAnimation: u, showMainText: f } = t;
|
|
4455
4448
|
return /* @__PURE__ */ S(
|
|
4456
4449
|
T,
|
|
4457
4450
|
{
|
|
4458
|
-
className:
|
|
4451
|
+
className: i,
|
|
4459
4452
|
sx: {
|
|
4460
4453
|
position: "relative",
|
|
4461
4454
|
width: 264,
|
|
@@ -4466,7 +4459,7 @@ const Ti = $(
|
|
|
4466
4459
|
},
|
|
4467
4460
|
children: [
|
|
4468
4461
|
/* @__PURE__ */ a(
|
|
4469
|
-
|
|
4462
|
+
lo,
|
|
4470
4463
|
{
|
|
4471
4464
|
width: 264,
|
|
4472
4465
|
height: 264,
|
|
@@ -4542,7 +4535,7 @@ const Ti = $(
|
|
|
4542
4535
|
fontWeight: 500,
|
|
4543
4536
|
color: n.palette.error.light
|
|
4544
4537
|
},
|
|
4545
|
-
children:
|
|
4538
|
+
children: r("timer.error")
|
|
4546
4539
|
}
|
|
4547
4540
|
) }),
|
|
4548
4541
|
/* @__PURE__ */ a(U, { in: f && !o, timeout: 300, children: /* @__PURE__ */ a(
|
|
@@ -4557,7 +4550,7 @@ const Ti = $(
|
|
|
4557
4550
|
lineHeight: 1,
|
|
4558
4551
|
letterSpacing: "-0.5px"
|
|
4559
4552
|
},
|
|
4560
|
-
children:
|
|
4553
|
+
children: $o(c)
|
|
4561
4554
|
}
|
|
4562
4555
|
) })
|
|
4563
4556
|
]
|
|
@@ -4568,18 +4561,18 @@ const Ti = $(
|
|
|
4568
4561
|
]
|
|
4569
4562
|
}
|
|
4570
4563
|
);
|
|
4571
|
-
},
|
|
4572
|
-
timerState:
|
|
4573
|
-
animationState:
|
|
4564
|
+
}, Vo = ({
|
|
4565
|
+
timerState: e,
|
|
4566
|
+
animationState: t,
|
|
4574
4567
|
hasError: o,
|
|
4575
|
-
compact:
|
|
4576
|
-
className:
|
|
4568
|
+
compact: i,
|
|
4569
|
+
className: r
|
|
4577
4570
|
}) => {
|
|
4578
|
-
const { t: n, i18n: c } = V(), s = L(), { elapsedTime: l, currentProgress: u } =
|
|
4579
|
-
return
|
|
4571
|
+
const { t: n, i18n: c } = V(), s = L(), { elapsedTime: l, currentProgress: u } = e, { showErrorAnimation: f, showPauseAnimation: g } = t;
|
|
4572
|
+
return i ? /* @__PURE__ */ a(
|
|
4580
4573
|
T,
|
|
4581
4574
|
{
|
|
4582
|
-
className:
|
|
4575
|
+
className: r,
|
|
4583
4576
|
sx: {
|
|
4584
4577
|
display: "flex",
|
|
4585
4578
|
alignItems: "center",
|
|
@@ -4601,7 +4594,7 @@ const Ti = $(
|
|
|
4601
4594
|
) : /* @__PURE__ */ S(
|
|
4602
4595
|
T,
|
|
4603
4596
|
{
|
|
4604
|
-
className:
|
|
4597
|
+
className: r,
|
|
4605
4598
|
sx: {
|
|
4606
4599
|
display: "flex",
|
|
4607
4600
|
alignItems: "center",
|
|
@@ -4685,45 +4678,45 @@ const Ti = $(
|
|
|
4685
4678
|
]
|
|
4686
4679
|
}
|
|
4687
4680
|
);
|
|
4688
|
-
},
|
|
4689
|
-
const [
|
|
4681
|
+
}, No = () => {
|
|
4682
|
+
const [e, t] = F({
|
|
4690
4683
|
showPauseAnimation: !1,
|
|
4691
4684
|
showErrorAnimation: !1,
|
|
4692
4685
|
showMainText: !0
|
|
4693
4686
|
}), o = D(
|
|
4694
4687
|
null
|
|
4695
|
-
),
|
|
4688
|
+
), i = D(
|
|
4696
4689
|
null
|
|
4697
|
-
),
|
|
4698
|
-
|
|
4699
|
-
|
|
4690
|
+
), r = D(null), n = P(() => {
|
|
4691
|
+
t((g) => ({ ...g, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
4692
|
+
t((g) => ({ ...g, showPauseAnimation: !1 }));
|
|
4700
4693
|
}, 800);
|
|
4701
4694
|
}, []), c = P(() => {
|
|
4702
|
-
|
|
4703
|
-
|
|
4695
|
+
t((g) => ({ ...g, showErrorAnimation: !0 })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
4696
|
+
t((g) => ({ ...g, showErrorAnimation: !1 }));
|
|
4704
4697
|
}, 600);
|
|
4705
4698
|
}, []), s = P(() => {
|
|
4706
|
-
|
|
4699
|
+
t((g) => ({ ...g, showErrorAnimation: !1 })), i.current && clearTimeout(i.current);
|
|
4707
4700
|
}, []), l = P(() => {
|
|
4708
|
-
|
|
4701
|
+
t((g) => ({
|
|
4709
4702
|
...g,
|
|
4710
4703
|
showMainText: !1
|
|
4711
|
-
})),
|
|
4712
|
-
|
|
4704
|
+
})), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
|
|
4705
|
+
t((g) => ({
|
|
4713
4706
|
...g,
|
|
4714
4707
|
showMainText: !0
|
|
4715
4708
|
}));
|
|
4716
4709
|
}, 200);
|
|
4717
4710
|
}, []), u = P(() => {
|
|
4718
|
-
|
|
4711
|
+
t((g) => ({
|
|
4719
4712
|
...g,
|
|
4720
4713
|
showMainText: !0
|
|
4721
4714
|
}));
|
|
4722
4715
|
}, []), f = P(() => {
|
|
4723
|
-
o.current && clearTimeout(o.current),
|
|
4716
|
+
o.current && clearTimeout(o.current), i.current && clearTimeout(i.current), r.current && clearTimeout(r.current);
|
|
4724
4717
|
}, []);
|
|
4725
4718
|
return {
|
|
4726
|
-
animationState:
|
|
4719
|
+
animationState: e,
|
|
4727
4720
|
triggerPauseAnimation: n,
|
|
4728
4721
|
triggerErrorAnimation: c,
|
|
4729
4722
|
clearErrorAnimation: s,
|
|
@@ -4731,12 +4724,12 @@ const Ti = $(
|
|
|
4731
4724
|
setInitialAnimationState: u,
|
|
4732
4725
|
cleanup: f
|
|
4733
4726
|
};
|
|
4734
|
-
},
|
|
4735
|
-
autoStart:
|
|
4736
|
-
hasError:
|
|
4727
|
+
}, Wo = ({
|
|
4728
|
+
autoStart: e,
|
|
4729
|
+
hasError: t,
|
|
4737
4730
|
onPauseAnimation: o,
|
|
4738
|
-
onErrorAnimation:
|
|
4739
|
-
onClearErrorAnimation:
|
|
4731
|
+
onErrorAnimation: i,
|
|
4732
|
+
onClearErrorAnimation: r
|
|
4740
4733
|
}) => {
|
|
4741
4734
|
const [n, c] = F({
|
|
4742
4735
|
elapsedTime: 0,
|
|
@@ -4758,9 +4751,9 @@ const Ti = $(
|
|
|
4758
4751
|
elapsedTime: m,
|
|
4759
4752
|
isPausedState: !1,
|
|
4760
4753
|
currentProgress: v
|
|
4761
|
-
})), u.current = 0, f.current = v, g.setImmediate([v]),
|
|
4754
|
+
})), 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
4755
|
},
|
|
4763
|
-
[
|
|
4756
|
+
[e, g]
|
|
4764
4757
|
), p = P(() => {
|
|
4765
4758
|
if (l.current && n.isRunning) {
|
|
4766
4759
|
const v = (Date.now() - l.current) / 1e3 + u.current, b = v / 60 % 1 * 100;
|
|
@@ -4790,15 +4783,15 @@ const Ti = $(
|
|
|
4790
4783
|
})), u.current = 0, l.current = null, f.current = 0, g.setImmediate([0]);
|
|
4791
4784
|
}, [g]), h = P(() => n.isPausedState, [n.isPausedState]);
|
|
4792
4785
|
return A(() => {
|
|
4793
|
-
|
|
4786
|
+
t ? (n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !0 })), p()), i()) : (n.wasRunningBeforeError && !n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !1 })), x()), r());
|
|
4794
4787
|
}, [
|
|
4795
|
-
|
|
4788
|
+
t,
|
|
4796
4789
|
n.isRunning,
|
|
4797
4790
|
n.wasRunningBeforeError,
|
|
4798
4791
|
p,
|
|
4799
4792
|
x,
|
|
4800
|
-
|
|
4801
|
-
|
|
4793
|
+
i,
|
|
4794
|
+
r
|
|
4802
4795
|
]), A(() => {
|
|
4803
4796
|
if (n.isRunning) {
|
|
4804
4797
|
const m = () => {
|
|
@@ -4837,14 +4830,14 @@ const Ti = $(
|
|
|
4837
4830
|
isPaused: h
|
|
4838
4831
|
}
|
|
4839
4832
|
};
|
|
4840
|
-
},
|
|
4833
|
+
}, Ti = $(
|
|
4841
4834
|
J(
|
|
4842
4835
|
({
|
|
4843
|
-
onTimerReady:
|
|
4844
|
-
autoStart:
|
|
4836
|
+
onTimerReady: e,
|
|
4837
|
+
autoStart: t = !0,
|
|
4845
4838
|
variant: o = "default",
|
|
4846
|
-
compact:
|
|
4847
|
-
className:
|
|
4839
|
+
compact: i = !1,
|
|
4840
|
+
className: r,
|
|
4848
4841
|
hasError: n = !1
|
|
4849
4842
|
}) => {
|
|
4850
4843
|
const {
|
|
@@ -4854,8 +4847,8 @@ const Ti = $(
|
|
|
4854
4847
|
clearErrorAnimation: u,
|
|
4855
4848
|
setInitialAnimationState: f,
|
|
4856
4849
|
cleanup: g
|
|
4857
|
-
} =
|
|
4858
|
-
autoStart:
|
|
4850
|
+
} = No(), { timerState: d, controls: p } = Wo({
|
|
4851
|
+
autoStart: t,
|
|
4859
4852
|
hasError: n,
|
|
4860
4853
|
onPauseAnimation: s,
|
|
4861
4854
|
onErrorAnimation: l,
|
|
@@ -4866,32 +4859,32 @@ const Ti = $(
|
|
|
4866
4859
|
}, [f]), A(() => {
|
|
4867
4860
|
let x = !0;
|
|
4868
4861
|
const y = setTimeout(() => {
|
|
4869
|
-
x &&
|
|
4862
|
+
x && e(p);
|
|
4870
4863
|
}, 0);
|
|
4871
4864
|
return () => {
|
|
4872
4865
|
x = !1, clearTimeout(y);
|
|
4873
4866
|
};
|
|
4874
|
-
}, [
|
|
4875
|
-
|
|
4867
|
+
}, [e, p]), A(() => g, [g]), o === "small" ? /* @__PURE__ */ a(
|
|
4868
|
+
Vo,
|
|
4876
4869
|
{
|
|
4877
4870
|
timerState: d,
|
|
4878
4871
|
animationState: c,
|
|
4879
4872
|
hasError: n,
|
|
4880
|
-
compact:
|
|
4881
|
-
className:
|
|
4873
|
+
compact: i,
|
|
4874
|
+
className: r
|
|
4882
4875
|
}
|
|
4883
4876
|
) : /* @__PURE__ */ a(
|
|
4884
|
-
|
|
4877
|
+
zo,
|
|
4885
4878
|
{
|
|
4886
4879
|
timerState: d,
|
|
4887
4880
|
animationState: c,
|
|
4888
4881
|
hasError: n,
|
|
4889
|
-
className:
|
|
4882
|
+
className: r
|
|
4890
4883
|
}
|
|
4891
4884
|
);
|
|
4892
4885
|
}
|
|
4893
4886
|
)
|
|
4894
|
-
), Jt = 1e-4,
|
|
4887
|
+
), Jt = 1e-4, Go = {
|
|
4895
4888
|
a: 0,
|
|
4896
4889
|
d: 0,
|
|
4897
4890
|
alpha: 0,
|
|
@@ -4899,8 +4892,8 @@ const Ti = $(
|
|
|
4899
4892
|
reverse_rotation_direction: !1
|
|
4900
4893
|
};
|
|
4901
4894
|
class gt {
|
|
4902
|
-
constructor(
|
|
4903
|
-
this.nova =
|
|
4895
|
+
constructor(t, o, i, r, n, c, s, l, u, f) {
|
|
4896
|
+
this.nova = t, this.controller = o, this.motionGroup = i, this.initialMotionState = r, 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 = r, this.controllerState = u, f.addEventListener("message", (g) => {
|
|
4904
4897
|
var p;
|
|
4905
4898
|
const d = (p = W(g.data)) == null ? void 0 : p.result;
|
|
4906
4899
|
d && B(() => {
|
|
@@ -4932,24 +4925,24 @@ class gt {
|
|
|
4932
4925
|
});
|
|
4933
4926
|
}), mt(this);
|
|
4934
4927
|
}
|
|
4935
|
-
static async connectMultiple(
|
|
4928
|
+
static async connectMultiple(t, o) {
|
|
4936
4929
|
return Promise.all(
|
|
4937
4930
|
o.map(
|
|
4938
|
-
(
|
|
4931
|
+
(i) => gt.connect(t, i)
|
|
4939
4932
|
)
|
|
4940
4933
|
);
|
|
4941
4934
|
}
|
|
4942
|
-
static async connect(
|
|
4935
|
+
static async connect(t, o) {
|
|
4943
4936
|
var m, v;
|
|
4944
|
-
const [
|
|
4937
|
+
const [i, r] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(r), c = n == null ? void 0 : n.motion_groups.find(
|
|
4945
4938
|
(b) => b.motion_group === o
|
|
4946
4939
|
);
|
|
4947
4940
|
if (!n || !c)
|
|
4948
4941
|
throw new Error(
|
|
4949
|
-
`Controller ${
|
|
4942
|
+
`Controller ${r} or motion group ${o} not found`
|
|
4950
4943
|
);
|
|
4951
|
-
const s =
|
|
4952
|
-
`/controllers/${
|
|
4944
|
+
const s = t.openReconnectingWebsocket(
|
|
4945
|
+
`/controllers/${r}/motion-groups/${o}/state-stream`
|
|
4953
4946
|
), l = await s.firstMessage(), u = (m = W(l.data)) == null ? void 0 : m.result;
|
|
4954
4947
|
if (!u)
|
|
4955
4948
|
throw new Error(
|
|
@@ -4960,10 +4953,10 @@ class gt {
|
|
|
4960
4953
|
`,
|
|
4961
4954
|
u
|
|
4962
4955
|
);
|
|
4963
|
-
const g = (await
|
|
4956
|
+
const g = (await t.api.controller.getRobotController(
|
|
4964
4957
|
n.controller
|
|
4965
|
-
)).configuration.kind === "VirtualController", d = await
|
|
4966
|
-
|
|
4958
|
+
)).configuration.kind === "VirtualController", d = await t.api.motionGroup.getMotionGroupDescription(
|
|
4959
|
+
r,
|
|
4967
4960
|
c.motion_group
|
|
4968
4961
|
), p = Object.entries(d.tcps || {}).map(
|
|
4969
4962
|
([b, w]) => ({
|
|
@@ -4972,7 +4965,7 @@ class gt {
|
|
|
4972
4965
|
position: w.pose.position,
|
|
4973
4966
|
orientation: w.pose.orientation
|
|
4974
4967
|
})
|
|
4975
|
-
), x =
|
|
4968
|
+
), x = t.openReconnectingWebsocket(
|
|
4976
4969
|
`/controllers/${n.controller}/state-stream?response_rate=1000`
|
|
4977
4970
|
), y = await x.firstMessage(), h = (v = W(y.data)) == null ? void 0 : v.result;
|
|
4978
4971
|
if (!h)
|
|
@@ -4984,7 +4977,7 @@ class gt {
|
|
|
4984
4977
|
`,
|
|
4985
4978
|
h
|
|
4986
4979
|
), new gt(
|
|
4987
|
-
|
|
4980
|
+
t,
|
|
4988
4981
|
n,
|
|
4989
4982
|
c,
|
|
4990
4983
|
u,
|
|
@@ -5010,16 +5003,16 @@ class gt {
|
|
|
5010
5003
|
return this.joggingVelocity * Math.PI / 180;
|
|
5011
5004
|
}
|
|
5012
5005
|
get joints() {
|
|
5013
|
-
return this.initialMotionState.joint_position.map((
|
|
5006
|
+
return this.initialMotionState.joint_position.map((t, o) => ({
|
|
5014
5007
|
index: o
|
|
5015
5008
|
}));
|
|
5016
5009
|
}
|
|
5017
5010
|
// Please note that API v2 omits 0 values
|
|
5018
5011
|
get dhParameters() {
|
|
5019
5012
|
if (this.description.dh_parameters !== void 0)
|
|
5020
|
-
return this.description.dh_parameters.map((
|
|
5021
|
-
...
|
|
5022
|
-
...
|
|
5013
|
+
return this.description.dh_parameters.map((t) => ({
|
|
5014
|
+
...Go,
|
|
5015
|
+
...t
|
|
5023
5016
|
}));
|
|
5024
5017
|
}
|
|
5025
5018
|
get safetyZones() {
|
|
@@ -5027,22 +5020,22 @@ class gt {
|
|
|
5027
5020
|
}
|
|
5028
5021
|
/** Gets the robot mounting position offset in 3D viz coordinates */
|
|
5029
5022
|
get mountingPosition() {
|
|
5030
|
-
var
|
|
5023
|
+
var t, o, i;
|
|
5031
5024
|
return this.description.mounting ? [
|
|
5032
|
-
(((
|
|
5025
|
+
(((t = this.description.mounting.position) == null ? void 0 : t[0]) || 0) / 1e3,
|
|
5033
5026
|
(((o = this.description.mounting.position) == null ? void 0 : o[1]) || 0) / 1e3,
|
|
5034
|
-
(((
|
|
5027
|
+
(((i = this.description.mounting.position) == null ? void 0 : i[2]) || 0) / 1e3
|
|
5035
5028
|
] : [0, 0, 0];
|
|
5036
5029
|
}
|
|
5037
5030
|
/** Gets the robot mounting position rotation in 3D viz coordinates */
|
|
5038
5031
|
get mountingQuaternion() {
|
|
5039
|
-
var
|
|
5040
|
-
const
|
|
5041
|
-
((n = (
|
|
5032
|
+
var r, n, c, s, l, u;
|
|
5033
|
+
const t = new Et.Vector3(
|
|
5034
|
+
((n = (r = this.description.mounting) == null ? void 0 : r.orientation) == null ? void 0 : n[0]) || 0,
|
|
5042
5035
|
((s = (c = this.description.mounting) == null ? void 0 : c.orientation) == null ? void 0 : s[1]) || 0,
|
|
5043
5036
|
((u = (l = this.description.mounting) == null ? void 0 : l.orientation) == null ? void 0 : u[2]) || 0
|
|
5044
|
-
), o =
|
|
5045
|
-
return new Et.Quaternion().setFromAxisAngle(
|
|
5037
|
+
), o = t.length(), i = t.normalize();
|
|
5038
|
+
return new Et.Quaternion().setFromAxisAngle(i, o);
|
|
5046
5039
|
}
|
|
5047
5040
|
/**
|
|
5048
5041
|
* Whether the controller is currently in a safety state
|
|
@@ -5097,10 +5090,10 @@ class gt {
|
|
|
5097
5090
|
), B(() => {
|
|
5098
5091
|
this.activationState = "inactive";
|
|
5099
5092
|
});
|
|
5100
|
-
} catch (
|
|
5093
|
+
} catch (t) {
|
|
5101
5094
|
throw B(() => {
|
|
5102
5095
|
this.activationState = "active";
|
|
5103
|
-
}),
|
|
5096
|
+
}), t;
|
|
5104
5097
|
}
|
|
5105
5098
|
}
|
|
5106
5099
|
async activate() {
|
|
@@ -5118,10 +5111,10 @@ class gt {
|
|
|
5118
5111
|
), B(() => {
|
|
5119
5112
|
this.activationState = "active";
|
|
5120
5113
|
});
|
|
5121
|
-
} catch (
|
|
5114
|
+
} catch (t) {
|
|
5122
5115
|
throw B(() => {
|
|
5123
5116
|
this.activationState = "inactive";
|
|
5124
|
-
}),
|
|
5117
|
+
}), t;
|
|
5125
5118
|
}
|
|
5126
5119
|
}
|
|
5127
5120
|
toggleActivation() {
|
|
@@ -5130,13 +5123,13 @@ class gt {
|
|
|
5130
5123
|
dispose() {
|
|
5131
5124
|
this.motionStateSocket.close(), this.connectedJoggingSocket && this.connectedJoggingSocket.close();
|
|
5132
5125
|
}
|
|
5133
|
-
setJoggingVelocity(
|
|
5134
|
-
this.joggingVelocity =
|
|
5126
|
+
setJoggingVelocity(t) {
|
|
5127
|
+
this.joggingVelocity = t;
|
|
5135
5128
|
}
|
|
5136
5129
|
}
|
|
5137
5130
|
function Kt() {
|
|
5138
|
-
var
|
|
5139
|
-
const
|
|
5131
|
+
var t, o, i, r, n, c;
|
|
5132
|
+
const e = Bt({
|
|
5140
5133
|
palette: {
|
|
5141
5134
|
mode: "dark",
|
|
5142
5135
|
text: {
|
|
@@ -5230,7 +5223,7 @@ function Kt() {
|
|
|
5230
5223
|
}
|
|
5231
5224
|
});
|
|
5232
5225
|
return {
|
|
5233
|
-
...
|
|
5226
|
+
...e,
|
|
5234
5227
|
components: {
|
|
5235
5228
|
MuiCssBaseline: {
|
|
5236
5229
|
styleOverrides: {
|
|
@@ -5240,7 +5233,7 @@ function Kt() {
|
|
|
5240
5233
|
},
|
|
5241
5234
|
"html:hover, body:hover, *:hover": {
|
|
5242
5235
|
scrollbarWidth: "thin",
|
|
5243
|
-
scrollbarColor: `${
|
|
5236
|
+
scrollbarColor: `${e.palette.divider} transparent`
|
|
5244
5237
|
},
|
|
5245
5238
|
// Global styles for DataGrid filter popup
|
|
5246
5239
|
".MuiDataGrid-panelContent": {
|
|
@@ -5328,14 +5321,14 @@ function Kt() {
|
|
|
5328
5321
|
{
|
|
5329
5322
|
props: { color: "secondary", variant: "contained" },
|
|
5330
5323
|
style: {
|
|
5331
|
-
border: `1px solid ${
|
|
5332
|
-
background: (
|
|
5324
|
+
border: `1px solid ${e.palette.divider}`,
|
|
5325
|
+
background: (i = (o = (t = e.paletteExt) == null ? void 0 : t.secondary) == null ? void 0 : o.tonal) == null ? void 0 : i.toString()
|
|
5333
5326
|
}
|
|
5334
5327
|
},
|
|
5335
5328
|
{
|
|
5336
5329
|
props: { color: "secondary", variant: "outlined" },
|
|
5337
5330
|
style: {
|
|
5338
|
-
border: `1px solid ${
|
|
5331
|
+
border: `1px solid ${e.palette.divider}`
|
|
5339
5332
|
}
|
|
5340
5333
|
}
|
|
5341
5334
|
]
|
|
@@ -5344,9 +5337,9 @@ function Kt() {
|
|
|
5344
5337
|
styleOverrides: {
|
|
5345
5338
|
root: {
|
|
5346
5339
|
textTransform: "none",
|
|
5347
|
-
color:
|
|
5340
|
+
color: e.palette.text.secondary,
|
|
5348
5341
|
"&.Mui-selected": {
|
|
5349
|
-
color:
|
|
5342
|
+
color: e.palette.text.primary
|
|
5350
5343
|
}
|
|
5351
5344
|
}
|
|
5352
5345
|
}
|
|
@@ -5354,7 +5347,7 @@ function Kt() {
|
|
|
5354
5347
|
MuiTabs: {
|
|
5355
5348
|
styleOverrides: {
|
|
5356
5349
|
root: {
|
|
5357
|
-
background: (
|
|
5350
|
+
background: (r = e.palette.backgroundPaperElevation) == null ? void 0 : r[1]
|
|
5358
5351
|
}
|
|
5359
5352
|
}
|
|
5360
5353
|
},
|
|
@@ -5406,14 +5399,14 @@ function Kt() {
|
|
|
5406
5399
|
MuiFab: {
|
|
5407
5400
|
styleOverrides: {
|
|
5408
5401
|
root: {
|
|
5409
|
-
background: (c = (n =
|
|
5402
|
+
background: (c = (n = e.paletteExt) == null ? void 0 : n.secondary) == null ? void 0 : c.tonal
|
|
5410
5403
|
}
|
|
5411
5404
|
},
|
|
5412
5405
|
variants: [
|
|
5413
5406
|
{
|
|
5414
5407
|
props: { color: "primary" },
|
|
5415
5408
|
style: {
|
|
5416
|
-
background:
|
|
5409
|
+
background: e.palette.primary.main
|
|
5417
5410
|
}
|
|
5418
5411
|
}
|
|
5419
5412
|
]
|
|
@@ -5433,7 +5426,7 @@ function Kt() {
|
|
|
5433
5426
|
disabled: "rgba(241, 77, 66, 1)"
|
|
5434
5427
|
},
|
|
5435
5428
|
color: "rgba(255, 198, 198, 1)",
|
|
5436
|
-
labelColor:
|
|
5429
|
+
labelColor: e.palette.text.primary
|
|
5437
5430
|
},
|
|
5438
5431
|
Y: {
|
|
5439
5432
|
backgroundColor: "rgba(20, 151, 108, 1)",
|
|
@@ -5445,7 +5438,7 @@ function Kt() {
|
|
|
5445
5438
|
hovered: "rgba(28, 188, 135, 1)"
|
|
5446
5439
|
},
|
|
5447
5440
|
color: "rgba(215, 255, 242, 1)",
|
|
5448
|
-
labelColor:
|
|
5441
|
+
labelColor: e.palette.text.primary
|
|
5449
5442
|
},
|
|
5450
5443
|
Z: {
|
|
5451
5444
|
backgroundColor: "rgba(1, 87, 155, 1)",
|
|
@@ -5457,68 +5450,68 @@ function Kt() {
|
|
|
5457
5450
|
hovered: "rgba(2, 136, 209, 1)"
|
|
5458
5451
|
},
|
|
5459
5452
|
color: "rgba(210, 239, 255, 1)",
|
|
5460
|
-
labelColor:
|
|
5453
|
+
labelColor: e.palette.text.primary
|
|
5461
5454
|
}
|
|
5462
5455
|
}
|
|
5463
5456
|
},
|
|
5464
5457
|
JoggingJoint: {
|
|
5465
5458
|
Joint: {
|
|
5466
|
-
arrowColor:
|
|
5459
|
+
arrowColor: e.palette.text.primary
|
|
5467
5460
|
}
|
|
5468
5461
|
},
|
|
5469
5462
|
VelocitySlider: {
|
|
5470
|
-
sliderLegendColor:
|
|
5463
|
+
sliderLegendColor: e.palette.text.primary
|
|
5471
5464
|
}
|
|
5472
5465
|
}
|
|
5473
5466
|
}
|
|
5474
5467
|
};
|
|
5475
5468
|
}
|
|
5476
|
-
function
|
|
5477
|
-
const
|
|
5478
|
-
return
|
|
5469
|
+
function Uo() {
|
|
5470
|
+
const e = Kt();
|
|
5471
|
+
return e.palette.mode = "light", e;
|
|
5479
5472
|
}
|
|
5480
|
-
function
|
|
5481
|
-
var
|
|
5482
|
-
let
|
|
5483
|
-
((
|
|
5484
|
-
const o =
|
|
5485
|
-
return Bt(o,
|
|
5473
|
+
function Mi(e) {
|
|
5474
|
+
var i, r, n, c;
|
|
5475
|
+
let t = !0;
|
|
5476
|
+
((i = e.palette) == null ? void 0 : i.mode) === "light" ? t = !1 : ((r = e.palette) == null ? void 0 : r.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)));
|
|
5477
|
+
const o = t ? Kt() : Uo();
|
|
5478
|
+
return Bt(o, e);
|
|
5486
5479
|
}
|
|
5487
5480
|
export {
|
|
5488
|
-
|
|
5489
|
-
|
|
5481
|
+
di as A,
|
|
5482
|
+
gi as C,
|
|
5490
5483
|
bt as J,
|
|
5491
|
-
|
|
5484
|
+
Oo as L,
|
|
5492
5485
|
ht as M,
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5486
|
+
Si as N,
|
|
5487
|
+
pi as P,
|
|
5488
|
+
vi as R,
|
|
5489
|
+
Ci as S,
|
|
5490
|
+
wi as T,
|
|
5491
|
+
jo as V,
|
|
5492
|
+
bo as W,
|
|
5500
5493
|
_t as a,
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5494
|
+
xo as b,
|
|
5495
|
+
Mi as c,
|
|
5496
|
+
ui as d,
|
|
5497
|
+
mi as e,
|
|
5498
|
+
vo as f,
|
|
5499
|
+
Co as g,
|
|
5500
|
+
yi as h,
|
|
5508
5501
|
at as i,
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5502
|
+
hi as j,
|
|
5503
|
+
fi as k,
|
|
5504
|
+
bi as l,
|
|
5505
|
+
xi as m,
|
|
5506
|
+
Do as n,
|
|
5514
5507
|
Xt as o,
|
|
5515
|
-
|
|
5516
|
-
|
|
5508
|
+
Jo as p,
|
|
5509
|
+
Ti as q,
|
|
5517
5510
|
Yt as r,
|
|
5518
5511
|
gt as s,
|
|
5519
5512
|
ft as t,
|
|
5520
5513
|
Ut as u,
|
|
5521
|
-
|
|
5514
|
+
yo as v,
|
|
5522
5515
|
Ht as w,
|
|
5523
|
-
|
|
5516
|
+
So as x
|
|
5524
5517
|
};
|