@wandelbots/wandelbots-js-react-components 5.5.6 → 5.6.0

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