@wandelbots/wandelbots-js-react-components 5.5.4 → 5.5.5-pr.feat-RB-3582-limits-from-api.605.9f13a39

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,90 +1,90 @@
1
1
  import { jsx as a, jsxs as S, Fragment as et } from "react/jsx-runtime";
2
- import { alpha as Mt, useTheme as F, styled as gt, createTheme as Jt } from "@mui/material/styles";
3
- import Xt from "@mui/material/AppBar";
4
- import Bt from "@mui/material/Backdrop";
2
+ import { alpha as Mt, useTheme as F, styled as gt, createTheme as Bt } from "@mui/material/styles";
3
+ import Kt from "@mui/material/AppBar";
4
+ import Ft from "@mui/material/Backdrop";
5
5
  import T from "@mui/material/Box";
6
6
  import H from "@mui/material/IconButton";
7
- import Kt from "@mui/material/Menu";
7
+ import te from "@mui/material/Menu";
8
8
  import q from "@mui/material/MenuItem";
9
- import te from "@mui/material/Toolbar";
10
- import E from "@mui/material/Typography";
11
- import { observer as J, useLocalObservable as Ft } from "mobx-react-lite";
12
- import { useState as B, useRef as D, useCallback as _, useEffect as A, useMemo as rt, useId as ee } from "react";
13
- import { e as $ } from "./externalizeComponent-D6S3WLFc.js";
14
- import oe from "@mui/material/SvgIcon";
9
+ import ee from "@mui/material/Toolbar";
10
+ import _ from "@mui/material/Typography";
11
+ import { observer as J, useLocalObservable as Lt } from "mobx-react-lite";
12
+ import { useState as B, useRef as O, useCallback as j, useEffect as A, useMemo as rt, useId as oe } from "react";
13
+ import { e as $, r as kt } from "./externalizeComponent-BLilFZni.js";
14
+ import ne from "@mui/material/SvgIcon";
15
15
  import U from "@mui/material/Fade";
16
- import { Gauge as ne } from "@mui/x-charts/Gauge";
16
+ import { Gauge as ie } from "@mui/x-charts/Gauge";
17
17
  import { useTranslation as V } from "react-i18next";
18
- import { f as Lt, e as pt, d as ie } from "./interpolation-D9WFd-j_.js";
19
- import re from "@mui/icons-material/Clear";
20
- import ae from "@mui/icons-material/FilterList";
18
+ import { f as $t, e as pt, d as re } from "./interpolation-BDCy5Kcc.js";
19
+ import ae from "@mui/icons-material/Clear";
20
+ import se from "@mui/icons-material/FilterList";
21
21
  import It from "@mui/icons-material/Search";
22
22
  import Y from "@mui/material/Divider";
23
- import { useGridApiRef as se, DataGrid as le, Toolbar as ce, FilterPanelTrigger as de, ToolbarButton as st, QuickFilter as ue, QuickFilterTrigger as ge, QuickFilterControl as pe, QuickFilterClear as me } from "@mui/x-data-grid";
24
- import he from "@mui/icons-material/OpenWith";
25
- import fe from "@mui/icons-material/Share";
23
+ import { useGridApiRef as le, DataGrid as ce, Toolbar as de, FilterPanelTrigger as ue, ToolbarButton as st, QuickFilter as ge, QuickFilterTrigger as pe, QuickFilterControl as me, QuickFilterClear as he } from "@mui/x-data-grid";
24
+ import fe from "@mui/icons-material/OpenWith";
25
+ import be from "@mui/icons-material/Share";
26
26
  import P from "@mui/material/Stack";
27
- import $t from "@mui/material/Tab";
28
- import zt from "@mui/material/Tabs";
29
- import { JointTypeEnum as G, NovaClient as be, poseToWandelscriptString as xe } from "@wandelbots/nova-js/v2";
30
- import { lowerFirst as ye, countBy as Se, isString as ve } from "lodash-es";
31
- import { runInAction as L, makeAutoObservable as mt, when as lt, autorun as Ce, makeObservable as we, action as kt, observable as Te } from "mobx";
32
- import { radiansToDegrees as Vt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as Me } from "@wandelbots/nova-js";
27
+ import zt from "@mui/material/Tab";
28
+ import Vt from "@mui/material/Tabs";
29
+ import { JointTypeEnum as W, OperationMode as xe, SafetyStateType as ye, NovaClient as Se, poseToWandelscriptString as ve } from "@wandelbots/nova-js/v2";
30
+ import { lowerFirst as we, countBy as Ce, isString as Te } from "lodash-es";
31
+ import { runInAction as L, makeAutoObservable as mt, when as lt, autorun as Me, makeObservable as ke, action as Rt, observable as Ie } from "mobx";
32
+ import { radiansToDegrees as Nt, tryParseJson as G, XYZ_TO_VECTOR as tt, degreesToRadians as Re } from "@wandelbots/nova-js";
33
33
  import { Vector3 as ct } from "three/src/math/Vector3.js";
34
- import Ie from "@mui/material/CircularProgress";
35
- import { capitalize as ke } from "@mui/material/utils";
36
- import { m as Re } from "./SafetyBar-C8whliAf.js";
37
- import Ee from "@mui/material/Alert";
38
- import je from "@mui/material/AlertTitle";
34
+ import _e from "@mui/material/CircularProgress";
35
+ import { capitalize as Ee } from "@mui/material/utils";
36
+ import { m as je } from "./SafetyBar-C6Kcqza9.js";
37
+ import Pe from "@mui/material/Alert";
38
+ import De from "@mui/material/AlertTitle";
39
39
  import Z from "@mui/material/Button";
40
- import Rt from "@mui/material/ToggleButton";
41
- import { c as _e, d as Pe, F as Oe, a as De, b as Ae, f as Je, e as Be } from "./robot-Cy9ST5-m.js";
42
- import Fe from "lodash-es/isEqual.js";
43
- import Le from "@mui/material/FormControl";
44
- import $e from "@mui/material/InputLabel";
45
- import ze from "@mui/material/Select";
40
+ import _t from "@mui/material/ToggleButton";
41
+ import { c as Oe, d as Ae, F as Je, a as Be, b as Fe, f as Le, e as $e } from "./robot-Cy9ST5-m.js";
42
+ import ze from "lodash-es/isEqual.js";
43
+ import Ve from "@mui/material/FormControl";
44
+ import Ne from "@mui/material/InputLabel";
45
+ import Ge from "@mui/material/Select";
46
46
  import nt from "lodash-es/keyBy.js";
47
- import Ve from "lodash-es/uniqueId.js";
48
- import Ne from "@mui/material/ToggleButtonGroup";
49
- import Nt from "@mui/material/Slider";
50
- import We from "lodash-es/isNumber.js";
51
- import Ge from "@mui/icons-material/ChevronLeft";
52
- import Ue from "@mui/icons-material/ChevronRight";
53
- import He from "lodash-es/throttle.js";
54
- import qe from "@mui/material/Tooltip";
55
- import Ye from "@mui/icons-material/ContentCopy";
56
- import Ze from "@mui/icons-material/DescriptionOutlined";
57
- import Qe from "@mui/icons-material/ExpandLess";
58
- import Xe from "@mui/icons-material/ExpandMore";
59
- import Ke from "@mui/material/Paper";
60
- import to from "@mui/material/Dialog";
61
- import eo from "@mui/material/DialogActions";
62
- import oo from "@mui/material/DialogContent";
63
- import no from "@mui/material/DialogTitle";
64
- import io from "@mui/icons-material/Error";
65
- import ro from "@mui/material/Chip";
66
- import ao from "@mui/material/Fab";
67
- import so from "@mui/material/Badge";
68
- import { Gauge as lo } from "@mui/x-charts";
47
+ import We from "lodash-es/uniqueId.js";
48
+ import Ue from "@mui/material/ToggleButtonGroup";
49
+ import Gt from "@mui/material/Slider";
50
+ import He from "lodash-es/isNumber.js";
51
+ import qe from "@mui/icons-material/ChevronLeft";
52
+ import Ye from "@mui/icons-material/ChevronRight";
53
+ import Ze from "lodash-es/throttle.js";
54
+ import Qe from "@mui/material/Tooltip";
55
+ import Xe from "@mui/icons-material/ContentCopy";
56
+ import Ke from "@mui/icons-material/DescriptionOutlined";
57
+ import to from "@mui/icons-material/ExpandLess";
58
+ import eo from "@mui/icons-material/ExpandMore";
59
+ import oo from "@mui/material/Paper";
60
+ import no from "@mui/material/Dialog";
61
+ import io from "@mui/material/DialogActions";
62
+ import ro from "@mui/material/DialogContent";
63
+ import ao from "@mui/material/DialogTitle";
64
+ import so from "@mui/icons-material/Error";
65
+ import lo from "@mui/material/Chip";
66
+ import co from "@mui/material/Fab";
67
+ import uo from "@mui/material/Badge";
68
+ import { Gauge as go } from "@mui/x-charts";
69
69
  import * as Et from "three";
70
70
  import { Vector3 as jt } from "three";
71
- const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
71
+ const po = (e) => /* @__PURE__ */ a(ne, { ...e, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
72
72
  "path",
73
73
  {
74
74
  d: "M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",
75
75
  fill: "currentColor",
76
76
  fillOpacity: "0.56"
77
77
  }
78
- ) }), ci = $(
79
- J((t) => {
78
+ ) }), gi = $(
79
+ J((e) => {
80
80
  const {
81
- appIcon: e,
81
+ appIcon: t,
82
82
  appName: o,
83
83
  apps: r = [],
84
84
  onAppSelect: i,
85
85
  disabled: n = !1,
86
86
  sx: c
87
- } = t, [s, l] = B(null), g = !!s, m = (p) => {
87
+ } = e, [s, l] = B(null), g = !!s, m = (p) => {
88
88
  l(p.currentTarget);
89
89
  }, d = () => {
90
90
  l(null);
@@ -93,7 +93,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
93
93
  };
94
94
  return /* @__PURE__ */ S(et, { children: [
95
95
  /* @__PURE__ */ a(
96
- Xt,
96
+ Kt,
97
97
  {
98
98
  position: "static",
99
99
  sx: {
@@ -105,11 +105,11 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
105
105
  },
106
106
  ...c
107
107
  },
108
- children: /* @__PURE__ */ S(te, { sx: { minHeight: "62px !important" }, children: [
109
- /* @__PURE__ */ a(T, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: e }),
108
+ children: /* @__PURE__ */ S(ee, { sx: { minHeight: "62px !important" }, children: [
109
+ /* @__PURE__ */ a(T, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: t }),
110
110
  /* @__PURE__ */ S(T, { sx: { display: "flex", alignItems: "center", flexGrow: 1 }, children: [
111
111
  /* @__PURE__ */ a(
112
- E,
112
+ _,
113
113
  {
114
114
  component: "h1",
115
115
  sx: {
@@ -145,7 +145,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
145
145
  height: "6px"
146
146
  }
147
147
  },
148
- children: /* @__PURE__ */ a(co, {})
148
+ children: /* @__PURE__ */ a(po, {})
149
149
  }
150
150
  )
151
151
  ] })
@@ -153,7 +153,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
153
153
  }
154
154
  ),
155
155
  /* @__PURE__ */ a(
156
- Bt,
156
+ Ft,
157
157
  {
158
158
  open: g,
159
159
  onClick: d,
@@ -165,7 +165,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
165
165
  }
166
166
  ),
167
167
  /* @__PURE__ */ a(
168
- Kt,
168
+ te,
169
169
  {
170
170
  id: "app-menu",
171
171
  anchorEl: s,
@@ -188,32 +188,32 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
188
188
  },
189
189
  children: r.map((p) => /* @__PURE__ */ S(q, { onClick: () => u(p), children: [
190
190
  /* @__PURE__ */ a(T, { sx: { display: "flex", alignItems: "center" }, children: p.icon }),
191
- /* @__PURE__ */ a(E, { variant: "body1", sx: { ml: 2 }, children: p.name })
191
+ /* @__PURE__ */ a(_, { variant: "body1", sx: { ml: 2 }, children: p.name })
192
192
  ] }, p.id))
193
193
  }
194
194
  )
195
195
  ] });
196
196
  })
197
- ), uo = (t) => {
198
- const e = Math.floor(t / 86400), o = Math.floor(t % 86400 / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, n = [];
199
- return e > 0 ? (n.push(e.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
200
- }, N = (t, e) => {
201
- const o = Math.floor(t / 86400), r = Math.floor(t % 86400 / 3600), i = Math.floor(t % 3600 / 60), n = t % 60;
197
+ ), mo = (e) => {
198
+ const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
199
+ 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(":");
200
+ }, N = (e, t) => {
201
+ const o = Math.floor(e / 86400), r = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), n = e % 60;
202
202
  if (typeof Intl < "u" && "DurationFormat" in Intl)
203
203
  try {
204
204
  const s = {};
205
- return o > 0 && (s.days = o), r > 0 && (s.hours = r), i > 0 && (s.minutes = i), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(e, { style: "narrow" }).format(s);
205
+ return o > 0 && (s.days = o), r > 0 && (s.hours = r), i > 0 && (s.minutes = i), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
206
206
  } catch {
207
207
  }
208
208
  const c = [];
209
209
  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(" ");
210
- }, go = (t, e, o) => t === "countdown" && o !== null ? Math.min(100, e / o * 100) : t === "measuring" ? e / 60 % 1 * 100 : 0, po = ({
211
- timerState: t,
212
- animationState: e,
210
+ }, ho = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, fo = ({
211
+ timerState: e,
212
+ animationState: t,
213
213
  hasError: o,
214
214
  className: r
215
215
  }) => {
216
- const { t: i, i18n: n } = V(), c = F(), { currentState: s, remainingTime: l, maxTime: g, currentProgress: m } = t, {
216
+ const { t: i, i18n: n } = V(), c = F(), { currentState: s, remainingTime: l, maxTime: g, currentProgress: m } = e, {
217
217
  showErrorAnimation: d,
218
218
  showPauseAnimation: u,
219
219
  showPulsatingText: p,
@@ -222,7 +222,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
222
222
  showMainText: f,
223
223
  showIdlePulsating: h,
224
224
  idleDotsCount: v
225
- } = e;
225
+ } = t;
226
226
  return /* @__PURE__ */ S(
227
227
  T,
228
228
  {
@@ -237,7 +237,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
237
237
  },
238
238
  children: [
239
239
  /* @__PURE__ */ a(
240
- ne,
240
+ ie,
241
241
  {
242
242
  width: 264,
243
243
  height: 264,
@@ -308,7 +308,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
308
308
  in: y && !o && s !== "idle" && s !== "success",
309
309
  timeout: 300,
310
310
  children: /* @__PURE__ */ a(
311
- E,
311
+ _,
312
312
  {
313
313
  variant: "body2",
314
314
  sx: {
@@ -350,7 +350,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
350
350
  in: f && s === "idle" && !o,
351
351
  timeout: 200,
352
352
  children: /* @__PURE__ */ S(
353
- E,
353
+ _,
354
354
  {
355
355
  variant: "body2",
356
356
  sx: {
@@ -400,7 +400,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
400
400
  }
401
401
  ),
402
402
  /* @__PURE__ */ a(U, { in: f && o, timeout: 200, children: /* @__PURE__ */ a(
403
- E,
403
+ _,
404
404
  {
405
405
  variant: "h3",
406
406
  sx: {
@@ -419,7 +419,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
419
419
  in: f && !o && s !== "idle" && s !== "success",
420
420
  timeout: 300,
421
421
  children: /* @__PURE__ */ a(
422
- E,
422
+ _,
423
423
  {
424
424
  variant: "h1",
425
425
  sx: {
@@ -437,7 +437,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
437
437
  opacity: 1,
438
438
  transition: "opacity 2s ease-in-out"
439
439
  },
440
- children: uo(l)
440
+ children: mo(l)
441
441
  }
442
442
  )
443
443
  }
@@ -463,7 +463,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
463
463
  in: y && !o && s !== "idle" && s !== "success",
464
464
  timeout: 300,
465
465
  children: /* @__PURE__ */ a(
466
- E,
466
+ _,
467
467
  {
468
468
  variant: "body2",
469
469
  sx: {
@@ -495,21 +495,21 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
495
495
  ]
496
496
  }
497
497
  );
498
- }, mo = ({
499
- timerState: t,
500
- animationState: e,
498
+ }, bo = ({
499
+ timerState: e,
500
+ animationState: t,
501
501
  hasError: o,
502
502
  compact: r,
503
503
  className: i
504
504
  }) => {
505
- const { t: n, i18n: c } = V(), s = F(), { currentState: l, remainingTime: g, maxTime: m } = t, {
505
+ const { t: n, i18n: c } = V(), s = F(), { currentState: l, remainingTime: g, maxTime: m } = e, {
506
506
  showErrorAnimation: d,
507
507
  showPauseAnimation: u,
508
508
  showPulsatingText: p,
509
509
  pulsatingFinished: x,
510
510
  showIdlePulsating: y,
511
511
  idleDotsCount: f
512
- } = e;
512
+ } = t;
513
513
  return r && l === "idle" ? /* @__PURE__ */ a(
514
514
  T,
515
515
  {
@@ -520,7 +520,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
520
520
  m: 0
521
521
  },
522
522
  children: /* @__PURE__ */ a(
523
- E,
523
+ _,
524
524
  {
525
525
  variant: "body2",
526
526
  sx: {
@@ -591,7 +591,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
591
591
  strokeWidth: "2",
592
592
  strokeLinecap: "round",
593
593
  strokeDasharray: `${2 * Math.PI * 8}`,
594
- strokeDashoffset: `${2 * Math.PI * 8 * (1 - (l === "idle" ? 0 : t.currentProgress) / 100)}`,
594
+ strokeDashoffset: `${2 * Math.PI * 8 * (1 - (l === "idle" ? 0 : e.currentProgress) / 100)}`,
595
595
  style: {
596
596
  opacity: l === "measured" && x ? p ? 1 : 0.6 : 1,
597
597
  transition: "stroke-dashoffset 0.1s ease-out, stroke 0.8s ease-in-out, opacity 2s ease-in-out"
@@ -604,7 +604,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
604
604
  }
605
605
  ),
606
606
  /* @__PURE__ */ a(
607
- E,
607
+ _,
608
608
  {
609
609
  variant: "body2",
610
610
  sx: {
@@ -634,8 +634,8 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
634
634
  ]
635
635
  }
636
636
  );
637
- }, ho = () => {
638
- const [t, e] = B({
637
+ }, xo = () => {
638
+ const [e, t] = B({
639
639
  showPauseAnimation: !1,
640
640
  showErrorAnimation: !1,
641
641
  showPulsatingText: !1,
@@ -644,92 +644,92 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
644
644
  showMainText: !0,
645
645
  showIdlePulsating: !1,
646
646
  idleDotsCount: 0
647
- }), o = D(
647
+ }), o = O(
648
648
  null
649
- ), r = D(
649
+ ), r = O(
650
650
  null
651
- ), i = D(
651
+ ), i = O(
652
652
  null
653
- ), n = D(null), c = D(0), s = D(null), l = D(
653
+ ), n = O(null), c = O(0), s = O(null), l = O(
654
654
  null
655
- ), g = _(() => {
656
- e((b) => ({ ...b, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
657
- e((b) => ({ ...b, showPauseAnimation: !1 }));
655
+ ), g = j(() => {
656
+ t((b) => ({ ...b, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
657
+ t((b) => ({ ...b, showPauseAnimation: !1 }));
658
658
  }, 800);
659
- }, []), m = _(() => {
660
- e((b) => ({ ...b, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
661
- e((b) => ({ ...b, showErrorAnimation: !1 }));
659
+ }, []), m = j(() => {
660
+ t((b) => ({ ...b, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
661
+ t((b) => ({ ...b, showErrorAnimation: !1 }));
662
662
  }, 600);
663
- }, []), d = _(() => {
664
- e((b) => ({ ...b, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
665
- }, []), u = _((b) => {
666
- c.current = 0, e((w) => ({
667
- ...w,
663
+ }, []), d = j(() => {
664
+ t((b) => ({ ...b, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
665
+ }, []), u = j((b) => {
666
+ c.current = 0, t((C) => ({
667
+ ...C,
668
668
  showPulsatingText: !0,
669
669
  pulsatingFinished: !1
670
670
  })), setTimeout(() => {
671
- e((w) => ({
672
- ...w,
671
+ t((C) => ({
672
+ ...C,
673
673
  pulsatingFinished: !0
674
674
  // This will keep the success color and start slow pulsating
675
675
  })), i.current = setInterval(() => {
676
- e((w) => ({
677
- ...w,
678
- showPulsatingText: !w.showPulsatingText
676
+ t((C) => ({
677
+ ...C,
678
+ showPulsatingText: !C.showPulsatingText
679
679
  }));
680
680
  }, 2e3), b && b();
681
681
  }, 800);
682
- }, []), p = _(() => {
683
- i.current && (clearInterval(i.current), i.current = null), e((b) => ({
682
+ }, []), p = j(() => {
683
+ i.current && (clearInterval(i.current), i.current = null), t((b) => ({
684
684
  ...b,
685
685
  showPulsatingText: !1,
686
686
  pulsatingFinished: !1
687
687
  })), c.current = 0;
688
- }, []), x = _(() => {
689
- e((b) => ({
688
+ }, []), x = j(() => {
689
+ t((b) => ({
690
690
  ...b,
691
691
  showIdlePulsating: !0
692
692
  })), s.current = setInterval(() => {
693
- e((b) => ({
693
+ t((b) => ({
694
694
  ...b,
695
695
  showIdlePulsating: !b.showIdlePulsating
696
696
  }));
697
697
  }, 2e3), l.current = setInterval(() => {
698
- e((b) => ({
698
+ t((b) => ({
699
699
  ...b,
700
700
  idleDotsCount: (b.idleDotsCount + 1) % 4
701
701
  // Cycle through 0, 1, 2, 3
702
702
  }));
703
703
  }, 800);
704
- }, []), y = _(() => {
705
- s.current && (clearInterval(s.current), s.current = null), l.current && (clearInterval(l.current), l.current = null), e((b) => ({
704
+ }, []), y = j(() => {
705
+ s.current && (clearInterval(s.current), s.current = null), l.current && (clearInterval(l.current), l.current = null), t((b) => ({
706
706
  ...b,
707
707
  showIdlePulsating: !1,
708
708
  idleDotsCount: 0
709
709
  }));
710
- }, []), f = _(() => {
711
- e((b) => ({
710
+ }, []), f = j(() => {
711
+ t((b) => ({
712
712
  ...b,
713
713
  showLabels: !1,
714
714
  showMainText: !1
715
715
  })), n.current && clearTimeout(n.current), n.current = setTimeout(() => {
716
- e((b) => ({
716
+ t((b) => ({
717
717
  ...b,
718
718
  showLabels: !0,
719
719
  showMainText: !0
720
720
  }));
721
721
  }, 200);
722
- }, []), h = _(() => {
723
- e((b) => ({
722
+ }, []), h = j(() => {
723
+ t((b) => ({
724
724
  ...b,
725
725
  showLabels: !0,
726
726
  showMainText: !0
727
727
  }));
728
- }, []), v = _(() => {
728
+ }, []), v = j(() => {
729
729
  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);
730
730
  }, []);
731
731
  return {
732
- animationState: t,
732
+ animationState: e,
733
733
  triggerPauseAnimation: g,
734
734
  triggerErrorAnimation: m,
735
735
  clearErrorAnimation: d,
@@ -741,9 +741,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
741
741
  setInitialAnimationState: h,
742
742
  cleanup: v
743
743
  };
744
- }, fo = ({
745
- autoStart: t,
746
- onCycleEnd: e,
744
+ }, yo = ({
745
+ autoStart: e,
746
+ onCycleEnd: t,
747
747
  onMeasuringComplete: o,
748
748
  hasError: r,
749
749
  onPauseAnimation: i,
@@ -759,15 +759,15 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
759
759
  isPausedState: !1,
760
760
  currentProgress: 0,
761
761
  wasRunningBeforeError: !1
762
- }), m = D(null), d = D(null), u = D(0), [p] = Lt([0], {
762
+ }), m = O(null), d = O(null), u = O(0), [p] = $t([0], {
763
763
  tension: 80,
764
764
  friction: 18,
765
- onChange: ([C]) => {
766
- g((M) => ({ ...M, currentProgress: C }));
765
+ onChange: ([w]) => {
766
+ g((M) => ({ ...M, currentProgress: w }));
767
767
  }
768
- }), x = _(() => {
769
- g((C) => ({
770
- ...C,
768
+ }), x = j(() => {
769
+ g((w) => ({
770
+ ...w,
771
771
  currentState: "idle",
772
772
  maxTime: null,
773
773
  // Don't reset remainingTime - keep the last value
@@ -776,60 +776,60 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
776
776
  currentProgress: 0
777
777
  // Reset progress to 0 for gauge
778
778
  })), u.current = 0, d.current = null, p.setImmediate([0]);
779
- }, [p]), y = _(
780
- (C = 0) => {
781
- const M = C / 60 % 1 * 100;
782
- g((k) => ({
783
- ...k,
779
+ }, [p]), y = j(
780
+ (w = 0) => {
781
+ const M = w / 60 % 1 * 100;
782
+ g((I) => ({
783
+ ...I,
784
784
  currentState: "measuring",
785
785
  maxTime: null,
786
- remainingTime: C,
786
+ remainingTime: w,
787
787
  isPausedState: !1,
788
788
  currentProgress: M
789
789
  // Immediately set progress
790
- })), u.current = 0, p.setImmediate([M]), t ? (d.current = Date.now() - C * 1e3, g((k) => ({ ...k, isRunning: !0 }))) : d.current = null;
790
+ })), u.current = 0, p.setImmediate([M]), e ? (d.current = Date.now() - w * 1e3, g((I) => ({ ...I, isRunning: !0 }))) : d.current = null;
791
791
  },
792
- [t, p]
793
- ), f = _(
794
- (C, M = 0) => {
795
- g((I) => ({ ...I, isRunning: !1 })), d.current = null, g((I) => ({
796
- ...I,
792
+ [e, p]
793
+ ), f = j(
794
+ (w, M = 0) => {
795
+ g((k) => ({ ...k, isRunning: !1 })), d.current = null, g((k) => ({
796
+ ...k,
797
797
  currentState: "countdown",
798
- maxTime: C,
798
+ maxTime: w,
799
799
  isPausedState: !1
800
800
  })), u.current = 0;
801
- const k = Math.max(0, C - M), R = M > 0 ? M / C * 100 : 0;
802
- g((I) => ({
803
- ...I,
804
- remainingTime: k,
801
+ const I = Math.max(0, w - M), R = M > 0 ? M / w * 100 : 0;
802
+ g((k) => ({
803
+ ...k,
804
+ remainingTime: I,
805
805
  currentProgress: R
806
806
  // Immediately set progress
807
- })), p.setImmediate([R]), k === 0 ? (g((I) => ({ ...I, isRunning: !1 })), d.current = null, e && queueMicrotask(() => e())) : t ? setTimeout(() => {
808
- d.current = Date.now() - M * 1e3, g((I) => ({ ...I, isRunning: !0 }));
807
+ })), p.setImmediate([R]), I === 0 ? (g((k) => ({ ...k, isRunning: !1 })), d.current = null, t && queueMicrotask(() => t())) : e ? setTimeout(() => {
808
+ d.current = Date.now() - M * 1e3, g((k) => ({ ...k, isRunning: !0 }));
809
809
  }, 0) : d.current = null;
810
810
  },
811
- [t, e, p]
812
- ), h = _(() => {
813
- g((C) => ({
814
- ...C,
811
+ [e, t, p]
812
+ ), h = j(() => {
813
+ g((w) => ({
814
+ ...w,
815
815
  isRunning: !1,
816
816
  currentState: "measured"
817
817
  })), d.current = null, s(() => {
818
818
  o && o();
819
819
  });
820
- }, [s, o]), v = _(() => {
820
+ }, [s, o]), v = j(() => {
821
821
  if (d.current && l.isRunning) {
822
822
  const M = Date.now() - d.current;
823
823
  u.current += M;
824
- const k = u.current / 1e3, R = go(
824
+ const I = u.current / 1e3, R = ho(
825
825
  l.currentState,
826
- k,
826
+ I,
827
827
  l.maxTime
828
828
  );
829
829
  p.setTarget([R]);
830
830
  }
831
- g((C) => ({
832
- ...C,
831
+ g((w) => ({
832
+ ...w,
833
833
  isRunning: !1,
834
834
  isPausedState: !0
835
835
  })), i();
@@ -839,9 +839,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
839
839
  l.maxTime,
840
840
  p,
841
841
  i
842
- ]), b = _(() => {
843
- l.isPausedState && (l.remainingTime > 0 || l.currentState !== "countdown") && (d.current = Date.now(), g((C) => ({
844
- ...C,
842
+ ]), b = j(() => {
843
+ l.isPausedState && (l.remainingTime > 0 || l.currentState !== "countdown") && (d.current = Date.now(), g((w) => ({
844
+ ...w,
845
845
  isRunning: !0,
846
846
  isPausedState: !1
847
847
  })));
@@ -849,9 +849,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
849
849
  l.isPausedState,
850
850
  l.remainingTime,
851
851
  l.currentState
852
- ]), w = _(() => l.isPausedState, [l.isPausedState]);
852
+ ]), C = j(() => l.isPausedState, [l.isPausedState]);
853
853
  return A(() => {
854
- r ? (l.isRunning && !l.isPausedState && (g((C) => ({ ...C, wasRunningBeforeError: !0 })), v()), n()) : (l.wasRunningBeforeError && l.isPausedState && (g((C) => ({ ...C, wasRunningBeforeError: !1 })), b()), c());
854
+ r ? (l.isRunning && !l.isPausedState && (g((w) => ({ ...w, wasRunningBeforeError: !0 })), v()), n()) : (l.wasRunningBeforeError && l.isPausedState && (g((w) => ({ ...w, wasRunningBeforeError: !1 })), b()), c());
855
855
  }, [
856
856
  r,
857
857
  l.isRunning,
@@ -863,36 +863,36 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
863
863
  c
864
864
  ]), A(() => {
865
865
  if (l.isRunning) {
866
- const C = () => {
866
+ const w = () => {
867
867
  if (d.current) {
868
- const k = (Date.now() - d.current + u.current) / 1e3;
868
+ const I = (Date.now() - d.current + u.current) / 1e3;
869
869
  if (l.currentState === "countdown" && l.maxTime !== null) {
870
- const R = Math.max(0, l.maxTime - k);
871
- g((j) => ({
872
- ...j,
870
+ const R = Math.max(0, l.maxTime - I);
871
+ g((E) => ({
872
+ ...E,
873
873
  remainingTime: Math.ceil(R)
874
874
  }));
875
- const I = Math.min(100, k / l.maxTime * 100);
876
- if (p.setTarget([I]), R <= 0) {
877
- g((j) => ({
878
- ...j,
875
+ const k = Math.min(100, I / l.maxTime * 100);
876
+ if (p.setTarget([k]), R <= 0) {
877
+ g((E) => ({
878
+ ...E,
879
879
  isRunning: !1,
880
880
  remainingTime: 0
881
- })), d.current = null, p.setTarget([100]), e && queueMicrotask(() => e());
881
+ })), d.current = null, p.setTarget([100]), t && queueMicrotask(() => t());
882
882
  return;
883
883
  }
884
884
  } else if (l.currentState === "measuring") {
885
- g((I) => ({
886
- ...I,
887
- remainingTime: Math.floor(k)
885
+ g((k) => ({
886
+ ...k,
887
+ remainingTime: Math.floor(I)
888
888
  }));
889
- const R = k / 60 % 1 * 100;
889
+ const R = I / 60 % 1 * 100;
890
890
  p.setTarget([R]);
891
891
  }
892
- l.isRunning && (m.current = requestAnimationFrame(C));
892
+ l.isRunning && (m.current = requestAnimationFrame(w));
893
893
  }
894
894
  };
895
- m.current = requestAnimationFrame(C);
895
+ m.current = requestAnimationFrame(w);
896
896
  } else
897
897
  m.current && (cancelAnimationFrame(m.current), m.current = null);
898
898
  return () => {
@@ -900,17 +900,17 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
900
900
  };
901
901
  }, [
902
902
  l.isRunning,
903
- e,
903
+ t,
904
904
  l.currentState,
905
905
  l.maxTime,
906
906
  p
907
907
  ]), A(() => {
908
- let C = null;
908
+ let w = null;
909
909
  const M = () => {
910
- p.update(1 / 60), C = requestAnimationFrame(M);
910
+ p.update(1 / 60), w = requestAnimationFrame(M);
911
911
  };
912
- return C = requestAnimationFrame(M), () => {
913
- C && cancelAnimationFrame(C);
912
+ return w = requestAnimationFrame(M), () => {
913
+ w && cancelAnimationFrame(w);
914
914
  };
915
915
  }, [p]), {
916
916
  timerState: l,
@@ -921,14 +921,14 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
921
921
  completeMeasuring: h,
922
922
  pause: v,
923
923
  resume: b,
924
- isPaused: w
924
+ isPaused: C
925
925
  }
926
926
  };
927
- }, di = $(
927
+ }, pi = $(
928
928
  J(
929
929
  ({
930
- onCycleComplete: t,
931
- onCycleEnd: e,
930
+ onCycleComplete: e,
931
+ onCycleEnd: t,
932
932
  onMeasuringComplete: o,
933
933
  autoStart: r = !0,
934
934
  variant: i = "default",
@@ -936,7 +936,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
936
936
  className: c,
937
937
  hasError: s = !1
938
938
  }) => {
939
- const l = D(void 0), {
939
+ const l = O(void 0), {
940
940
  animationState: g,
941
941
  triggerPauseAnimation: m,
942
942
  triggerErrorAnimation: d,
@@ -948,9 +948,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
948
948
  triggerFadeTransition: h,
949
949
  setInitialAnimationState: v,
950
950
  cleanup: b
951
- } = ho(), { timerState: w, controls: C } = fo({
951
+ } = xo(), { timerState: C, controls: w } = yo({
952
952
  autoStart: r,
953
- onCycleEnd: e,
953
+ onCycleEnd: t,
954
954
  onMeasuringComplete: o,
955
955
  hasError: s,
956
956
  onPauseAnimation: m,
@@ -960,9 +960,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
960
960
  });
961
961
  return A(() => {
962
962
  const M = l.current;
963
- l.current !== void 0 && M !== w.currentState ? (M === "measured" && x(), M === "idle" && f(), h()) : v(), w.currentState === "idle" && y(), l.current = w.currentState;
963
+ l.current !== void 0 && M !== C.currentState ? (M === "measured" && x(), M === "idle" && f(), h()) : v(), C.currentState === "idle" && y(), l.current = C.currentState;
964
964
  }, [
965
- w.currentState,
965
+ C.currentState,
966
966
  x,
967
967
  f,
968
968
  y,
@@ -970,25 +970,25 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
970
970
  v
971
971
  ]), A(() => {
972
972
  let M = !0;
973
- const k = setTimeout(() => {
974
- M && t(C);
973
+ const I = setTimeout(() => {
974
+ M && e(w);
975
975
  }, 0);
976
976
  return () => {
977
- M = !1, clearTimeout(k);
977
+ M = !1, clearTimeout(I);
978
978
  };
979
- }, [t, C]), A(() => b, [b]), i === "small" ? /* @__PURE__ */ a(
980
- mo,
979
+ }, [e, w]), A(() => b, [b]), i === "small" ? /* @__PURE__ */ a(
980
+ bo,
981
981
  {
982
- timerState: w,
982
+ timerState: C,
983
983
  animationState: g,
984
984
  hasError: s,
985
985
  compact: n,
986
986
  className: c
987
987
  }
988
988
  ) : /* @__PURE__ */ a(
989
- po,
989
+ fo,
990
990
  {
991
- timerState: w,
991
+ timerState: C,
992
992
  animationState: g,
993
993
  hasError: s,
994
994
  className: c
@@ -996,11 +996,11 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
996
996
  );
997
997
  }
998
998
  )
999
- ), bo = $(
999
+ ), So = $(
1000
1000
  J(
1001
1001
  ({
1002
- data: t,
1003
- columns: e,
1002
+ data: e,
1003
+ columns: t,
1004
1004
  getRowData: o,
1005
1005
  onRowClick: r,
1006
1006
  selectedItem: i,
@@ -1014,46 +1014,46 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1014
1014
  sx: u
1015
1015
  }) => {
1016
1016
  var R;
1017
- const p = F(), x = se(), y = D(null), [f, h] = B(null), v = rt(() => t.map(o), [t, o]);
1017
+ const p = F(), x = le(), y = O(null), [f, h] = B(null), v = rt(() => e.map(o), [e, o]);
1018
1018
  A(() => {
1019
1019
  x.current && v.length > 0 && x.current.autosizeColumns({
1020
1020
  includeOutliers: !0,
1021
1021
  includeHeaders: !0,
1022
1022
  expand: !0,
1023
- columns: e.map((I) => I.field)
1023
+ columns: t.map((k) => k.field)
1024
1024
  });
1025
- }, [v, e, x]), A(() => {
1025
+ }, [v, t, x]), A(() => {
1026
1026
  if (!y.current || !x.current) return;
1027
- const I = new ResizeObserver(() => {
1027
+ const k = new ResizeObserver(() => {
1028
1028
  setTimeout(() => {
1029
1029
  x.current && v.length > 0 && x.current.autosizeColumns({
1030
1030
  includeOutliers: !0,
1031
1031
  includeHeaders: !0,
1032
1032
  expand: !0,
1033
- columns: e.map((j) => j.field)
1033
+ columns: t.map((E) => E.field)
1034
1034
  });
1035
1035
  }, 100);
1036
1036
  });
1037
- return I.observe(y.current), () => {
1038
- I.disconnect();
1037
+ return k.observe(y.current), () => {
1038
+ k.disconnect();
1039
1039
  };
1040
- }, [x, v.length, e]);
1040
+ }, [x, v.length, t]);
1041
1041
  const b = rt(() => {
1042
1042
  if (i !== void 0)
1043
1043
  return i;
1044
1044
  if (f !== null)
1045
1045
  return f;
1046
- if (d && t.length > 0) {
1047
- const I = t[0];
1048
- return h(I), I;
1046
+ if (d && e.length > 0) {
1047
+ const k = e[0];
1048
+ return h(k), k;
1049
1049
  }
1050
1050
  return null;
1051
- }, [d, t, i, f]), w = (I) => {
1052
- const j = t.find((z) => o(z).id === I.id);
1053
- j && (i === void 0 && h(j), r && r(j, I));
1054
- }, C = rt(() => !b || !n ? null : n(b), [b, n]);
1051
+ }, [d, e, i, f]), C = (k) => {
1052
+ const E = e.find((z) => o(z).id === k.id);
1053
+ E && (i === void 0 && h(E), r && r(E, k));
1054
+ }, w = rt(() => !b || !n ? null : n(b), [b, n]);
1055
1055
  function M() {
1056
- return /* @__PURE__ */ a(ce, { children: /* @__PURE__ */ S(
1056
+ return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ S(
1057
1057
  T,
1058
1058
  {
1059
1059
  sx: {
@@ -1065,7 +1065,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1065
1065
  },
1066
1066
  children: [
1067
1067
  c && /* @__PURE__ */ S(
1068
- E,
1068
+ _,
1069
1069
  {
1070
1070
  variant: "h6",
1071
1071
  sx: {
@@ -1074,7 +1074,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1074
1074
  },
1075
1075
  children: [
1076
1076
  c,
1077
- s && ` (${t.length})`
1077
+ s && ` (${e.length})`
1078
1078
  ]
1079
1079
  }
1080
1080
  ),
@@ -1090,9 +1090,9 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1090
1090
  },
1091
1091
  children: [
1092
1092
  /* @__PURE__ */ a(
1093
- de,
1093
+ ue,
1094
1094
  {
1095
- render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(ae, { fontSize: "small" }) })
1095
+ render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(se, { fontSize: "small" }) })
1096
1096
  }
1097
1097
  ),
1098
1098
  /* @__PURE__ */ a(
@@ -1107,19 +1107,19 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1107
1107
  }
1108
1108
  ),
1109
1109
  /* @__PURE__ */ a(
1110
- ue,
1110
+ ge,
1111
1111
  {
1112
- render: (I, j) => /* @__PURE__ */ S(
1112
+ render: (k, E) => /* @__PURE__ */ S(
1113
1113
  T,
1114
1114
  {
1115
- ...I,
1115
+ ...k,
1116
1116
  sx: {
1117
1117
  display: "flex",
1118
1118
  overflow: "hidden"
1119
1119
  },
1120
1120
  children: [
1121
- !j.expanded && /* @__PURE__ */ a(
1122
- ge,
1121
+ !E.expanded && /* @__PURE__ */ a(
1122
+ pe,
1123
1123
  {
1124
1124
  render: /* @__PURE__ */ a(st, { "aria-label": "Search", children: /* @__PURE__ */ a(It, { fontSize: "small" }) })
1125
1125
  }
@@ -1131,7 +1131,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1131
1131
  display: "flex",
1132
1132
  overflow: "hidden",
1133
1133
  transition: "all 0.3s ease-in-out",
1134
- width: j.expanded ? "200px" : "0px",
1134
+ width: E.expanded ? "200px" : "0px",
1135
1135
  position: "relative"
1136
1136
  },
1137
1137
  children: [
@@ -1146,7 +1146,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1146
1146
  borderRadius: "16px",
1147
1147
  backgroundColor: "#171927",
1148
1148
  paddingLeft: "40px",
1149
- paddingRight: j.expanded && j.value !== "" ? "40px" : "12px",
1149
+ paddingRight: E.expanded && E.value !== "" ? "40px" : "12px",
1150
1150
  color: "white",
1151
1151
  fontSize: "14px",
1152
1152
  border: "none !important",
@@ -1220,7 +1220,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1220
1220
  }
1221
1221
  },
1222
1222
  children: [
1223
- j.expanded && /* @__PURE__ */ a(
1223
+ E.expanded && /* @__PURE__ */ a(
1224
1224
  It,
1225
1225
  {
1226
1226
  fontSize: "small",
@@ -1235,12 +1235,12 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1235
1235
  }
1236
1236
  }
1237
1237
  ),
1238
- /* @__PURE__ */ a(pe, { placeholder: l })
1238
+ /* @__PURE__ */ a(me, { placeholder: l })
1239
1239
  ]
1240
1240
  }
1241
1241
  ),
1242
- j.expanded && j.value !== "" && /* @__PURE__ */ a(
1243
- me,
1242
+ E.expanded && E.value !== "" && /* @__PURE__ */ a(
1243
+ he,
1244
1244
  {
1245
1245
  render: /* @__PURE__ */ a(
1246
1246
  T,
@@ -1265,7 +1265,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1265
1265
  backgroundColor: "rgba(255, 255, 255, 0.1)"
1266
1266
  }
1267
1267
  },
1268
- children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(re, { fontSize: "small" }) })
1268
+ children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(ae, { fontSize: "small" }) })
1269
1269
  }
1270
1270
  )
1271
1271
  }
@@ -1287,7 +1287,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1287
1287
  }
1288
1288
  ) });
1289
1289
  }
1290
- const k = m || M;
1290
+ const I = m || M;
1291
1291
  return /* @__PURE__ */ a(
1292
1292
  T,
1293
1293
  {
@@ -1326,12 +1326,12 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1326
1326
  ...u
1327
1327
  },
1328
1328
  children: /* @__PURE__ */ a(
1329
- le,
1329
+ ce,
1330
1330
  {
1331
1331
  apiRef: x,
1332
1332
  rows: v,
1333
- columns: e,
1334
- onRowClick: w,
1333
+ columns: t,
1334
+ onRowClick: C,
1335
1335
  disableColumnMenu: !1,
1336
1336
  disableRowSelectionOnClick: !0,
1337
1337
  disableMultipleRowSelection: !0,
@@ -1341,7 +1341,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1341
1341
  hideFooter: !1,
1342
1342
  showToolbar: !0,
1343
1343
  slots: {
1344
- toolbar: k
1344
+ toolbar: I
1345
1345
  },
1346
1346
  initialState: {
1347
1347
  sorting: {
@@ -1364,7 +1364,7 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1364
1364
  includeHeaders: !0,
1365
1365
  expand: !0,
1366
1366
  // Auto-size all columns by default (can be overridden by dataGridProps)
1367
- columns: ((R = g == null ? void 0 : g.autosizeOptions) == null ? void 0 : R.columns) || e.map((I) => I.field)
1367
+ columns: ((R = g == null ? void 0 : g.autosizeOptions) == null ? void 0 : R.columns) || t.map((k) => k.field)
1368
1368
  },
1369
1369
  sx: {
1370
1370
  border: "none",
@@ -1416,8 +1416,8 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1416
1416
  }
1417
1417
  },
1418
1418
  // Highlight selected row with a distinct color using data attribute
1419
- ...C !== null && {
1420
- [`&[data-id="${C}"]`]: {
1419
+ ...w !== null && {
1420
+ [`&[data-id="${w}"]`]: {
1421
1421
  backgroundColor: "transparent !important",
1422
1422
  "&::before": {
1423
1423
  content: '""',
@@ -1513,12 +1513,12 @@ const co = (t) => /* @__PURE__ */ a(oe, { ...t, viewBox: "0 0 10 8", children: /
1513
1513
  }
1514
1514
  )
1515
1515
  );
1516
- bo.displayName = "WandelbotsDataGrid";
1517
- const _t = $(
1516
+ So.displayName = "WandelbotsDataGrid";
1517
+ const Pt = $(
1518
1518
  J(
1519
1519
  ({
1520
- colors: t,
1521
- label: e,
1520
+ colors: e,
1521
+ label: t,
1522
1522
  getDisplayedValue: o,
1523
1523
  startJogging: r,
1524
1524
  stopJogging: i,
@@ -1526,17 +1526,17 @@ const _t = $(
1526
1526
  activeJoggingDirection: c,
1527
1527
  ...s
1528
1528
  }) => {
1529
- var b, w, C, M, k, R, I;
1529
+ var b, C, w, M, I, R, k;
1530
1530
  pt(() => {
1531
- const j = o(), z = u.current;
1532
- z && (z.textContent = j);
1531
+ const E = o(), z = u.current;
1532
+ z && (z.textContent = E);
1533
1533
  });
1534
1534
  const l = F(), [g, m] = B(null);
1535
1535
  A(() => {
1536
1536
  n && v();
1537
1537
  }, [n]);
1538
- const d = c || g, u = D(null);
1539
- t || (t = {
1538
+ const d = c || g, u = O(null);
1539
+ e || (e = {
1540
1540
  color: "#fff",
1541
1541
  backgroundColor: "#000",
1542
1542
  borderColor: "#000",
@@ -1548,10 +1548,10 @@ const _t = $(
1548
1548
  },
1549
1549
  labelColor: "#000"
1550
1550
  });
1551
- const p = d ? (b = t.buttonBackgroundColor) == null ? void 0 : b.pressed : t.borderColor, x = {
1551
+ const p = d ? (b = e.buttonBackgroundColor) == null ? void 0 : b.pressed : e.borderColor, x = {
1552
1552
  width: "55px",
1553
- color: t.color,
1554
- path: { fill: t.color },
1553
+ color: e.color,
1554
+ path: { fill: e.color },
1555
1555
  alignContent: "center",
1556
1556
  fontSize: "37px",
1557
1557
  svg: {
@@ -1559,31 +1559,31 @@ const _t = $(
1559
1559
  }
1560
1560
  }, y = {
1561
1561
  ...x,
1562
- backgroundColor: (w = t.buttonBackgroundColor) == null ? void 0 : w.default,
1562
+ backgroundColor: (C = e.buttonBackgroundColor) == null ? void 0 : C.default,
1563
1563
  ":hover": {
1564
- backgroundColor: (C = t.buttonBackgroundColor) == null ? void 0 : C.hovered
1564
+ backgroundColor: (w = e.buttonBackgroundColor) == null ? void 0 : w.hovered
1565
1565
  },
1566
1566
  ":active": {
1567
- backgroundColor: (M = t.buttonBackgroundColor) == null ? void 0 : M.pressed,
1568
- color: t.backgroundColor,
1569
- path: { fill: t.backgroundColor }
1567
+ backgroundColor: (M = e.buttonBackgroundColor) == null ? void 0 : M.pressed,
1568
+ color: e.backgroundColor,
1569
+ path: { fill: e.backgroundColor }
1570
1570
  },
1571
1571
  ":disabled": {
1572
- backgroundColor: (k = t.buttonBackgroundColor) == null ? void 0 : k.disabled,
1572
+ backgroundColor: (I = e.buttonBackgroundColor) == null ? void 0 : I.disabled,
1573
1573
  "svg path": { fill: l.palette.action.disabled }
1574
1574
  }
1575
1575
  }, f = {
1576
1576
  ...x,
1577
- backgroundColor: (R = t.buttonBackgroundColor) == null ? void 0 : R.pressed,
1578
- color: t.backgroundColor,
1579
- path: { fill: t.backgroundColor },
1577
+ backgroundColor: (R = e.buttonBackgroundColor) == null ? void 0 : R.pressed,
1578
+ color: e.backgroundColor,
1579
+ path: { fill: e.backgroundColor },
1580
1580
  ":disabled": {
1581
- backgroundColor: (I = t.buttonBackgroundColor) == null ? void 0 : I.pressed,
1581
+ backgroundColor: (k = e.buttonBackgroundColor) == null ? void 0 : k.pressed,
1582
1582
  "svg path": { fill: l.palette.action.disabled }
1583
1583
  }
1584
1584
  };
1585
- function h(j, z) {
1586
- n || j.button === 0 && (m(z), r(z));
1585
+ function h(E, z) {
1586
+ n || E.button === 0 && (m(z), r(z));
1587
1587
  }
1588
1588
  function v() {
1589
1589
  m(null), i();
@@ -1594,7 +1594,7 @@ const _t = $(
1594
1594
  {
1595
1595
  disabled: n,
1596
1596
  disableRipple: !0,
1597
- onPointerDown: (j) => h(j, "-"),
1597
+ onPointerDown: (E) => h(E, "-"),
1598
1598
  onPointerUp: v,
1599
1599
  onPointerOut: v,
1600
1600
  size: "large",
@@ -1605,7 +1605,7 @@ const _t = $(
1605
1605
  borderBottom: `2px solid ${p ?? "#fff"}`,
1606
1606
  borderTop: `2px solid ${p ?? "#fff"}`
1607
1607
  },
1608
- children: /* @__PURE__ */ a(_e, {})
1608
+ children: /* @__PURE__ */ a(Oe, {})
1609
1609
  }
1610
1610
  ),
1611
1611
  /* @__PURE__ */ S(
@@ -1614,7 +1614,7 @@ const _t = $(
1614
1614
  spacing: "6px",
1615
1615
  sx: {
1616
1616
  width: "150px",
1617
- backgroundColor: t.backgroundColor,
1617
+ backgroundColor: e.backgroundColor,
1618
1618
  alignItems: "center",
1619
1619
  justifyContent: "center",
1620
1620
  opacity: "0.9",
@@ -1632,23 +1632,23 @@ const _t = $(
1632
1632
  spacing: 1,
1633
1633
  sx: {
1634
1634
  userSelect: "none",
1635
- color: t.color,
1635
+ color: e.color,
1636
1636
  ".MuiTypography-root": {
1637
1637
  fontWeight: 700,
1638
1638
  ...n ? { color: l.palette.action.disabled } : {}
1639
1639
  },
1640
1640
  ...n ? { "svg path": { fill: l.palette.action.disabled } } : {}
1641
1641
  },
1642
- children: e
1642
+ children: t
1643
1643
  }
1644
1644
  ),
1645
1645
  /* @__PURE__ */ a(
1646
- E,
1646
+ _,
1647
1647
  {
1648
1648
  height: "22px",
1649
1649
  sx: {
1650
1650
  fontSize: "15px",
1651
- color: n ? l.palette.action.disabled : t.color,
1651
+ color: n ? l.palette.action.disabled : e.color,
1652
1652
  fontWeight: 700,
1653
1653
  fontVariantNumeric: "tabular-nums",
1654
1654
  minWidth: "80px",
@@ -1666,7 +1666,7 @@ const _t = $(
1666
1666
  {
1667
1667
  disableRipple: !0,
1668
1668
  disabled: n,
1669
- onPointerDown: (j) => h(j, "+"),
1669
+ onPointerDown: (E) => h(E, "+"),
1670
1670
  onPointerUp: v,
1671
1671
  onPointerOut: v,
1672
1672
  size: "large",
@@ -1677,17 +1677,17 @@ const _t = $(
1677
1677
  borderBottom: `2px solid ${p ?? "#fff"}`,
1678
1678
  borderTop: `2px solid ${p ?? "#fff"}`
1679
1679
  },
1680
- children: /* @__PURE__ */ a(Pe, {})
1680
+ children: /* @__PURE__ */ a(Ae, {})
1681
1681
  }
1682
1682
  )
1683
1683
  ] });
1684
1684
  }
1685
1685
  )
1686
- ), xo = $(
1686
+ ), vo = $(
1687
1687
  J(
1688
1688
  ({
1689
- startJogging: t,
1690
- stopJogging: e,
1689
+ startJogging: e,
1690
+ stopJogging: t,
1691
1691
  lowerLimit: o,
1692
1692
  upperLimit: r,
1693
1693
  useDegree: i,
@@ -1695,52 +1695,52 @@ const _t = $(
1695
1695
  disabled: c,
1696
1696
  ...s
1697
1697
  }) => {
1698
- var M, k, R, I, j, z, Q, ot, xt, yt, St, vt, Ct, wt, Tt;
1698
+ var M, I, R, k, E, z, Q, ot, xt, yt, St, vt, wt, Ct, Tt;
1699
1699
  const { t: l } = V(), [g, m] = B(), d = F(), u = {
1700
1700
  background: (M = d.palette.backgroundPaperElevation) == null ? void 0 : M[4],
1701
- color: (k = d.palette.backgroundPaperElevation) == null ? void 0 : k[11]
1702
- }, p = Ft(() => ({
1701
+ color: (I = d.palette.backgroundPaperElevation) == null ? void 0 : I[11]
1702
+ }, p = Lt(() => ({
1703
1703
  activeJoggingDir: null,
1704
- startJogging(O) {
1705
- this.activeJoggingDir = O, t(O);
1704
+ startJogging(D) {
1705
+ this.activeJoggingDir = D, e(D);
1706
1706
  },
1707
1707
  stopJogging() {
1708
- this.activeJoggingDir = null, e();
1708
+ this.activeJoggingDir = null, t();
1709
1709
  }
1710
- })), x = He(() => {
1711
- const O = i ? y(n()) : n();
1712
- (O === void 0 || g === void 0 || Math.abs(g - O) > 1e-9) && m(O);
1710
+ })), x = Ze(() => {
1711
+ const D = i ? y(n()) : n();
1712
+ (D === void 0 || g === void 0 || Math.abs(g - D) > 1e-9) && m(D);
1713
1713
  }, 50);
1714
1714
  pt(x);
1715
- function y(O) {
1716
- if (O !== void 0)
1717
- return Vt(O);
1715
+ function y(D) {
1716
+ if (D !== void 0)
1717
+ return Nt(D);
1718
1718
  }
1719
- function f(O) {
1720
- O.button === 0 && p.startJogging("-");
1719
+ function f(D) {
1720
+ D.button === 0 && p.startJogging("-");
1721
1721
  }
1722
- function h(O) {
1723
- O.button === 0 && p.startJogging("+");
1722
+ function h(D) {
1723
+ D.button === 0 && p.startJogging("+");
1724
1724
  }
1725
- function v(O) {
1725
+ function v(D) {
1726
1726
  p.stopJogging();
1727
1727
  }
1728
- function b(O) {
1728
+ function b(D) {
1729
1729
  p.stopJogging();
1730
1730
  }
1731
- function w(O, X = 1) {
1732
- if (O === void 0 || Number.isNaN(O)) return "";
1731
+ function C(D, X = 1) {
1732
+ if (D === void 0 || Number.isNaN(D)) return "";
1733
1733
  const K = l("General.degree.variable", {
1734
- amount: O.toFixed(X)
1734
+ amount: D.toFixed(X)
1735
1735
  });
1736
- return O > 0 && X === 0 ? `+${K}` : K;
1736
+ return D > 0 && X === 0 ? `+${K}` : K;
1737
1737
  }
1738
- function C(O, X = 1) {
1739
- if (O === void 0 || Number.isNaN(O)) return "";
1738
+ function w(D, X = 1) {
1739
+ if (D === void 0 || Number.isNaN(D)) return "";
1740
1740
  const K = l("General.mm.variable", {
1741
- amount: O.toFixed(X)
1741
+ amount: D.toFixed(X)
1742
1742
  });
1743
- return O > 0 && X === 0 ? `+${K}` : K;
1743
+ return D > 0 && X === 0 ? `+${K}` : K;
1744
1744
  }
1745
1745
  return /* @__PURE__ */ S(
1746
1746
  P,
@@ -1761,12 +1761,12 @@ const _t = $(
1761
1761
  height: "42px"
1762
1762
  },
1763
1763
  "&.Mui-disabled": {
1764
- backgroundColor: (I = d.palette.backgroundPaperElevation) == null ? void 0 : I[11],
1764
+ backgroundColor: (k = d.palette.backgroundPaperElevation) == null ? void 0 : k[11],
1765
1765
  color: d.palette.action.disabled,
1766
1766
  opacity: 1
1767
1767
  },
1768
1768
  "&:hover": {
1769
- backgroundColor: (j = d.palette.backgroundPaperElevation) == null ? void 0 : j[9]
1769
+ backgroundColor: (E = d.palette.backgroundPaperElevation) == null ? void 0 : E[9]
1770
1770
  },
1771
1771
  "&:active": {
1772
1772
  ...u
@@ -1787,7 +1787,7 @@ const _t = $(
1787
1787
  ...p.activeJoggingDir === "-" ? u : {}
1788
1788
  },
1789
1789
  children: /* @__PURE__ */ a(
1790
- Ge,
1790
+ qe,
1791
1791
  {
1792
1792
  sx: {
1793
1793
  pointerEvents: "none",
@@ -1815,7 +1815,7 @@ const _t = $(
1815
1815
  },
1816
1816
  children: [
1817
1817
  /* @__PURE__ */ a(
1818
- E,
1818
+ _,
1819
1819
  {
1820
1820
  sx: {
1821
1821
  fontSize: "15px",
@@ -1827,11 +1827,11 @@ const _t = $(
1827
1827
  textAlign: "center",
1828
1828
  color: c ? d.palette.action.disabled : d.palette.text.primary
1829
1829
  },
1830
- children: i ? w(g) : C(g)
1830
+ children: i ? C(g) : w(g)
1831
1831
  }
1832
1832
  ),
1833
1833
  /* @__PURE__ */ a(
1834
- Nt,
1834
+ Gt,
1835
1835
  {
1836
1836
  disabled: !0,
1837
1837
  "aria-label": "Joint position",
@@ -1862,11 +1862,11 @@ const _t = $(
1862
1862
  marks: o !== void 0 && r !== void 0 && [
1863
1863
  {
1864
1864
  value: i ? y(o) : o,
1865
- label: i ? w(y(o), 0) : C(o)
1865
+ label: i ? C(y(o), 0) : w(o)
1866
1866
  },
1867
1867
  {
1868
1868
  value: i ? y(r) : r,
1869
- label: i ? w(y(r), 0) : C(r)
1869
+ label: i ? C(y(r), 0) : w(r)
1870
1870
  }
1871
1871
  ]
1872
1872
  }
@@ -1887,11 +1887,11 @@ const _t = $(
1887
1887
  ...p.activeJoggingDir === "+" ? u : {}
1888
1888
  },
1889
1889
  children: /* @__PURE__ */ a(
1890
- Ue,
1890
+ Ye,
1891
1891
  {
1892
1892
  sx: {
1893
1893
  pointerEvents: "none",
1894
- color: (Tt = (wt = (Ct = (vt = d.componentsExt) == null ? void 0 : vt.JoggingPanel) == null ? void 0 : Ct.JoggingJoint) == null ? void 0 : wt.Joint) == null ? void 0 : Tt.arrowColor
1894
+ color: (Tt = (Ct = (wt = (vt = d.componentsExt) == null ? void 0 : vt.JoggingPanel) == null ? void 0 : wt.JoggingJoint) == null ? void 0 : Ct.Joint) == null ? void 0 : Tt.arrowColor
1895
1895
  }
1896
1896
  }
1897
1897
  )
@@ -1903,53 +1903,53 @@ const _t = $(
1903
1903
  }
1904
1904
  )
1905
1905
  );
1906
- function Wt(t, e, o) {
1907
- if (e.length !== t.length)
1906
+ function Wt(e, t, o) {
1907
+ if (t.length !== e.length)
1908
1908
  return !0;
1909
- for (let r = 0; r < e.length; r++)
1909
+ for (let r = 0; r < t.length; r++)
1910
1910
  if (
1911
1911
  // biome-ignore lint/style/noNonNullAssertion: legacy code
1912
- Math.abs(e[r] - t[r]) > o
1912
+ Math.abs(t[r] - e[r]) > o
1913
1913
  )
1914
1914
  return !1;
1915
1915
  return !0;
1916
1916
  }
1917
- function yo(t, e, o) {
1918
- if (t === void 0 && e || t && e === void 0 || (t == null ? void 0 : t.orientation) === void 0 || (e == null ? void 0 : e.orientation) === void 0 || (t == null ? void 0 : t.position) === void 0 || (e == null ? void 0 : e.position) === void 0)
1917
+ function wo(e, t, o) {
1918
+ 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)
1919
1919
  return !1;
1920
- if (t === void 0 || e === void 0)
1920
+ if (e === void 0 || t === void 0)
1921
1921
  return !0;
1922
1922
  let r = 0;
1923
- return r += Math.abs(t.orientation[0] - e.orientation[0]), r += Math.abs(t.orientation[1] - e.orientation[1]), r += Math.abs(t.orientation[2] - e.orientation[2]), r += Math.abs(t.position[0] - e.position[0]), r += Math.abs(t.position[1] - e.position[1]), r += Math.abs(t.position[2] - e.position[2]), r <= o;
1923
+ 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;
1924
1924
  }
1925
- function Gt(t, e, o) {
1926
- return t.coordinate_system === e.coordinate_system && t.tcp === e.tcp && yo(
1927
- t.tcp_pose,
1925
+ function Ut(e, t, o) {
1926
+ return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && wo(
1928
1927
  e.tcp_pose,
1928
+ t.tcp_pose,
1929
1929
  o
1930
1930
  );
1931
1931
  }
1932
- function So(t, e) {
1932
+ function Co(e, t) {
1933
1933
  const o = new jt(
1934
- e[0],
1935
- e[1],
1936
- e[2]
1937
- ), r = new jt(
1938
1934
  t[0],
1939
1935
  t[1],
1940
1936
  t[2]
1937
+ ), r = new jt(
1938
+ e[0],
1939
+ e[1],
1940
+ e[2]
1941
1941
  ), i = o.length(), n = o.normalize();
1942
1942
  let c = r.length(), s = r.normalize();
1943
1943
  s.dot(n) < 0 && (c = -c, s = s.multiplyScalar(-1));
1944
1944
  let l = c - i;
1945
1945
  return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c = i + l, [...s.multiplyScalar(c)];
1946
1946
  }
1947
- const Pt = 1e-4;
1947
+ const Dt = 1e-4;
1948
1948
  class ht {
1949
- constructor(e, o, r, i, n, c) {
1950
- this.nova = e, this.controller = o, this.motionGroup = r, this.description = i, this.initialMotionState = n, this.motionStateSocket = c, this.rapidlyChangingMotionState = n, c.addEventListener("message", (s) => {
1949
+ constructor(t, o, r, i, n, c) {
1950
+ 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) => {
1951
1951
  var g;
1952
- const l = (g = W(s.data)) == null ? void 0 : g.result;
1952
+ const l = (g = G(s.data)) == null ? void 0 : g.result;
1953
1953
  if (!l)
1954
1954
  throw new Error(
1955
1955
  `Failed to get motion state for ${this.motionGroupId}: ${s.data}`
@@ -1957,18 +1957,18 @@ class ht {
1957
1957
  Wt(
1958
1958
  this.rapidlyChangingMotionState.joint_position,
1959
1959
  l.joint_position,
1960
- Pt
1960
+ Dt
1961
1961
  ) || L(() => {
1962
1962
  this.rapidlyChangingMotionState.joint_position = l.joint_position;
1963
- }), Gt(
1963
+ }), Ut(
1964
1964
  this.rapidlyChangingMotionState,
1965
1965
  l,
1966
- Pt
1966
+ Dt
1967
1967
  ) || L(() => {
1968
1968
  var m, d, u;
1969
1969
  this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = l.tcp_pose : (m = l.tcp_pose) != null && m.orientation && ((d = l.tcp_pose) != null && d.position) && ((u = this.rapidlyChangingMotionState.tcp_pose) != null && u.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
1970
1970
  position: l.tcp_pose.position,
1971
- orientation: So(
1971
+ orientation: Co(
1972
1972
  l.tcp_pose.orientation,
1973
1973
  this.rapidlyChangingMotionState.tcp_pose.orientation
1974
1974
  )
@@ -1981,18 +1981,18 @@ class ht {
1981
1981
  });
1982
1982
  }), mt(this);
1983
1983
  }
1984
- static async open(e, o) {
1984
+ static async open(t, o) {
1985
1985
  var d;
1986
- const [r, i] = o.split("@"), n = await e.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
1986
+ const [r, i] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
1987
1987
  (u) => u.motion_group === o
1988
1988
  );
1989
1989
  if (!n || !c)
1990
1990
  throw new Error(
1991
1991
  `Controller ${i} or motion group ${o} not found`
1992
1992
  );
1993
- const s = e.openReconnectingWebsocket(
1993
+ const s = t.openReconnectingWebsocket(
1994
1994
  `/controllers/${i}/motion-groups/${o}/state-stream`
1995
- ), l = await s.firstMessage(), g = (d = W(l.data)) == null ? void 0 : d.result;
1995
+ ), l = await s.firstMessage(), g = (d = G(l.data)) == null ? void 0 : d.result;
1996
1996
  if (!g)
1997
1997
  throw new Error(
1998
1998
  `Unable to parse initial motion state message ${l.data}`
@@ -2002,12 +2002,12 @@ class ht {
2002
2002
  `,
2003
2003
  g
2004
2004
  );
2005
- const m = await e.api.motionGroup.getMotionGroupDescription(
2005
+ const m = await t.api.motionGroup.getMotionGroupDescription(
2006
2006
  i,
2007
2007
  c.motion_group
2008
2008
  );
2009
2009
  return new ht(
2010
- e,
2010
+ t,
2011
2011
  n,
2012
2012
  c,
2013
2013
  m,
@@ -2022,7 +2022,7 @@ class ht {
2022
2022
  return this.controller.controller;
2023
2023
  }
2024
2024
  get joints() {
2025
- return this.initialMotionState.joint_position.map((e, o) => ({
2025
+ return this.initialMotionState.joint_position.map((t, o) => ({
2026
2026
  index: o
2027
2027
  }));
2028
2028
  }
@@ -2032,8 +2032,8 @@ class ht {
2032
2032
  }
2033
2033
  const Ot = "Movement request rejected. Another client is currently executing a 'Jogging' motion!";
2034
2034
  class ft {
2035
- constructor(e, o = {}) {
2036
- this.motionStream = e, 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) || e.motionGroup.tcp || this.getDefaultTcp(e), 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;
2035
+ constructor(t, o = {}) {
2036
+ 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;
2037
2037
  }
2038
2038
  /**
2039
2039
  * Initialize the jogging connection using jogging endpoint or trajectory endpoint depending on the selected mode.
@@ -2052,18 +2052,18 @@ class ft {
2052
2052
  * @param options.onError - Error handler for websocket errors
2053
2053
  * @returns Promise resolving to initialized JoggerConnection instance
2054
2054
  */
2055
- static async open(e, o, r = {}) {
2056
- const i = await ht.open(e, o), n = new ft(i, r);
2055
+ static async open(t, o, r = {}) {
2056
+ const i = await ht.open(t, o), n = new ft(i, r);
2057
2057
  return await n.setJoggingMode(n.mode), n;
2058
2058
  }
2059
- getDefaultTcp(e) {
2059
+ getDefaultTcp(t) {
2060
2060
  var r, i;
2061
- const o = (i = (r = e.description.dh_parameters) == null ? void 0 : r[0]) == null ? void 0 : i.type;
2062
- return e.joints.length < 6 && (o === G.RevoluteJoint || o === G.PrismaticJoint) ? this.NO_TCP : this.DEFAULT_TCP;
2061
+ const o = (i = (r = t.description.dh_parameters) == null ? void 0 : r[0]) == null ? void 0 : i.type;
2062
+ return t.joints.length < 6 && (o === W.RevoluteJoint || o === W.PrismaticJoint) ? this.NO_TCP : this.DEFAULT_TCP;
2063
2063
  }
2064
2064
  // Set a new tcp or other options. If current mode is jogging, will reinitialize the jogging websocket
2065
- async setOptions(e) {
2066
- e.tcp && (this.tcp = e.tcp), e.orientation && (this.orientation = e.orientation), e.timeout && (this.timeout = e.timeout), e.mode && (this.mode = e.mode), e.onError && (this.onError = e.onError), this.setJoggingMode(this.mode, !1);
2065
+ async setOptions(t) {
2066
+ t.tcp && (this.tcp = t.tcp), t.orientation && (this.orientation = t.orientation), t.timeout && (this.timeout = t.timeout), t.mode && (this.mode = t.mode), t.onError && (this.onError = t.onError), this.setJoggingMode(this.mode, !1);
2067
2067
  }
2068
2068
  get motionGroupId() {
2069
2069
  return this.motionStream.motionGroupId;
@@ -2083,10 +2083,10 @@ class ft {
2083
2083
  // Sends stop movement command to robot
2084
2084
  async stop() {
2085
2085
  if (this.joggingSocket) {
2086
- const e = new Array(this.numJoints).fill(0);
2086
+ const t = new Array(this.numJoints).fill(0);
2087
2087
  this.joggingSocket.sendJson({
2088
2088
  message_type: "JointVelocityRequest",
2089
- velocity: e
2089
+ velocity: t
2090
2090
  });
2091
2091
  }
2092
2092
  this.trajectorySocket && this.trajectorySocket.sendJson({
@@ -2095,23 +2095,23 @@ class ft {
2095
2095
  }
2096
2096
  // Dispose the jogger, closing all open websockets
2097
2097
  async dispose() {
2098
- const e = [this.joggingSocket, this.trajectorySocket].filter(
2098
+ const t = [this.joggingSocket, this.trajectorySocket].filter(
2099
2099
  (o) => o !== null
2100
2100
  );
2101
- return e.forEach((o) => {
2101
+ return t.forEach((o) => {
2102
2102
  o.dispose();
2103
- }), this.joggingSocket = null, this.trajectorySocket = null, Promise.all(e.map((o) => o.closed()));
2103
+ }), this.joggingSocket = null, this.trajectorySocket = null, Promise.all(t.map((o) => o.closed()));
2104
2104
  }
2105
2105
  // Activate jogger in one of the supported modes
2106
2106
  // Will iniitialize or close websockets as necessary
2107
2107
  // If mode is unchanged, does nothing (unless skipReinitializeIfSameMode is false)
2108
- async setJoggingMode(e, o = !0) {
2109
- if (!(this.mode === e && o) && (this.dispose(), this.mode = e, this.mode === "jogging"))
2108
+ async setJoggingMode(t, o = !0) {
2109
+ if (!(this.mode === t && o) && (this.dispose(), this.mode = t, this.mode === "jogging"))
2110
2110
  return this.initializeJoggingWebsocket();
2111
2111
  }
2112
2112
  // Initializes continuous jogging websocket, called by setJoggingMode("jogging")
2113
2113
  async initializeJoggingWebsocket() {
2114
- return new Promise((e, o) => {
2114
+ return new Promise((t, o) => {
2115
2115
  const r = setTimeout(() => {
2116
2116
  o(
2117
2117
  new Error(
@@ -2123,9 +2123,9 @@ class ft {
2123
2123
  `/controllers/${this.motionStream.controllerId}/execution/jogging`
2124
2124
  ), this.joggingSocket.addEventListener("message", (i) => {
2125
2125
  var c, s, l, g;
2126
- const n = W(i.data);
2126
+ const n = G(i.data);
2127
2127
  if (((c = n == null ? void 0 : n.result) == null ? void 0 : c.kind) === "INITIALIZE_RECEIVED") {
2128
- clearTimeout(r), e();
2128
+ clearTimeout(r), t();
2129
2129
  return;
2130
2130
  }
2131
2131
  if (((s = n == null ? void 0 : n.result) == null ? void 0 : s.kind) === "MOTION_ERROR")
@@ -2144,7 +2144,7 @@ class ft {
2144
2144
  * Jogging: Start rotation of a single robot joint at the specified velocity
2145
2145
  */
2146
2146
  async rotateJoints({
2147
- joint: e,
2147
+ joint: t,
2148
2148
  direction: o,
2149
2149
  velocityValue: r,
2150
2150
  velocityUnit: i
@@ -2154,7 +2154,7 @@ class ft {
2154
2154
  "Joint jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2155
2155
  );
2156
2156
  const n = new Array(this.numJoints).fill(0);
2157
- n[e] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2157
+ n[t] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2158
2158
  message_type: "JointVelocityRequest",
2159
2159
  velocity: n
2160
2160
  });
@@ -2163,7 +2163,7 @@ class ft {
2163
2163
  * Jogging: Start the TCP moving along a specified axis at a given velocity
2164
2164
  */
2165
2165
  async translateTCP({
2166
- axis: e,
2166
+ axis: t,
2167
2167
  direction: o,
2168
2168
  velocityMmPerSec: r
2169
2169
  }) {
@@ -2172,7 +2172,7 @@ class ft {
2172
2172
  "Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2173
2173
  );
2174
2174
  const i = [0, 0, 0], n = [0, 0, 0];
2175
- n[tt[e]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2175
+ n[tt[t]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2176
2176
  message_type: "TcpVelocityRequest",
2177
2177
  translation: n,
2178
2178
  rotation: i,
@@ -2183,7 +2183,7 @@ class ft {
2183
2183
  * Jogging: Start the TCP rotating around a specified axis at a given velocity
2184
2184
  */
2185
2185
  async rotateTCP({
2186
- axis: e,
2186
+ axis: t,
2187
2187
  direction: o,
2188
2188
  velocityRadsPerSec: r
2189
2189
  }) {
@@ -2192,7 +2192,7 @@ class ft {
2192
2192
  "Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2193
2193
  );
2194
2194
  const i = [0, 0, 0], n = [0, 0, 0];
2195
- i[tt[e]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2195
+ i[tt[t]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2196
2196
  message_type: "TcpVelocityRequest",
2197
2197
  translation: n,
2198
2198
  rotation: i,
@@ -2207,7 +2207,7 @@ class ft {
2207
2207
  * Promise resolves only after the motion has completed.
2208
2208
  */
2209
2209
  async runIncrementalCartesianMotion({
2210
- currentTcpPose: e,
2210
+ currentTcpPose: t,
2211
2211
  currentJoints: o,
2212
2212
  // coordSystemId,
2213
2213
  velocityInRelevantUnits: r,
@@ -2221,11 +2221,11 @@ class ft {
2221
2221
  "Set jogging mode to 'trajectory' to run incremental cartesian motions"
2222
2222
  );
2223
2223
  if (c.type === "translate") {
2224
- if (!e.position)
2224
+ if (!t.position)
2225
2225
  throw new Error(
2226
2226
  "Current pose has no position, cannot perform translation"
2227
2227
  );
2228
- const f = [...e.position];
2228
+ const f = [...t.position];
2229
2229
  f[tt[i]] += c.distanceMm * (n === "-" ? -1 : 1), s.push({
2230
2230
  limits_override: {
2231
2231
  tcp_velocity_limit: r
@@ -2234,24 +2234,24 @@ class ft {
2234
2234
  path_definition_name: "PathLine",
2235
2235
  target_pose: {
2236
2236
  position: f,
2237
- orientation: e.orientation
2237
+ orientation: t.orientation
2238
2238
  }
2239
2239
  }
2240
2240
  });
2241
2241
  } else if (c.type === "rotate") {
2242
- if (!e.orientation)
2242
+ if (!t.orientation)
2243
2243
  throw new Error(
2244
2244
  "Current pose has no orientation, cannot perform rotation"
2245
2245
  );
2246
2246
  const f = new ct(
2247
- e.orientation[0],
2248
- e.orientation[1],
2249
- e.orientation[2]
2250
- ), h = f.length(), v = f.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1), w = new ct(0, 0, 0);
2251
- w[i] = 1;
2252
- const C = Math.cos(0.5 * b) * Math.cos(0.5 * h), M = Math.sin(0.5 * b) * Math.sin(0.5 * h), k = Math.sin(0.5 * b) * Math.cos(0.5 * h), R = Math.cos(0.5 * b) * Math.sin(0.5 * h), I = w.dot(
2247
+ t.orientation[0],
2248
+ t.orientation[1],
2249
+ t.orientation[2]
2250
+ ), h = f.length(), v = f.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1), C = new ct(0, 0, 0);
2251
+ C[i] = 1;
2252
+ const w = Math.cos(0.5 * b) * Math.cos(0.5 * h), M = Math.sin(0.5 * b) * Math.sin(0.5 * h), I = Math.sin(0.5 * b) * Math.cos(0.5 * h), R = Math.cos(0.5 * b) * Math.sin(0.5 * h), k = C.dot(
2253
2253
  v
2254
- ), j = w.clone().cross(v), z = 2 * Math.acos(C - M * I), Q = z / Math.sin(0.5 * z), ot = new ct().addScaledVector(j, M).addScaledVector(w, k).addScaledVector(v, R).multiplyScalar(Q);
2254
+ ), E = C.clone().cross(v), z = 2 * Math.acos(w - M * k), Q = z / Math.sin(0.5 * z), ot = new ct().addScaledVector(E, M).addScaledVector(C, I).addScaledVector(v, R).multiplyScalar(Q);
2255
2255
  s.push({
2256
2256
  limits_override: {
2257
2257
  tcp_orientation_velocity_limit: r
@@ -2259,7 +2259,7 @@ class ft {
2259
2259
  path: {
2260
2260
  path_definition_name: "PathLine",
2261
2261
  target_pose: {
2262
- position: e.position,
2262
+ position: t.position,
2263
2263
  orientation: [...ot]
2264
2264
  }
2265
2265
  }
@@ -2329,7 +2329,7 @@ class ft {
2329
2329
  };
2330
2330
  this.trajectorySocket.addEventListener("message", (f) => {
2331
2331
  var v, b;
2332
- const h = W(f.data);
2332
+ const h = G(f.data);
2333
2333
  if (!((v = h == null ? void 0 : h.result) != null && v.kind))
2334
2334
  throw new Error(
2335
2335
  `Failed to execute trajectory: Received invalid message ${f.data}`
@@ -2363,12 +2363,12 @@ class ft {
2363
2363
  });
2364
2364
  }
2365
2365
  }
2366
- const vo = (t) => {
2367
- const e = t.softTimeout || 3e3, [o, r] = B(!1), i = F();
2366
+ const To = (e) => {
2367
+ const t = e.softTimeout || 3e3, [o, r] = B(!1), i = F();
2368
2368
  return A(() => {
2369
2369
  const n = setTimeout(() => {
2370
2370
  r(!0);
2371
- }, e);
2371
+ }, t);
2372
2372
  return () => clearTimeout(n);
2373
2373
  }), /* @__PURE__ */ a(
2374
2374
  P,
@@ -2378,15 +2378,15 @@ const vo = (t) => {
2378
2378
  alignItems: "center",
2379
2379
  justifyContent: "center",
2380
2380
  sx: { color: i.palette.text.primary },
2381
- children: t.error ? /* @__PURE__ */ a(
2382
- Co,
2381
+ children: e.error ? /* @__PURE__ */ a(
2382
+ Mo,
2383
2383
  {
2384
- loadingMessage: t.message,
2385
- error: t.error
2384
+ loadingMessage: e.message,
2385
+ error: e.error
2386
2386
  }
2387
2387
  ) : /* @__PURE__ */ S(et, { children: [
2388
- /* @__PURE__ */ a(Ie, { sx: { marginBottom: "24px" } }),
2389
- !!t.message && /* @__PURE__ */ a("div", { children: t.message }),
2388
+ /* @__PURE__ */ a(_e, { sx: { marginBottom: "24px" } }),
2389
+ !!e.message && /* @__PURE__ */ a("div", { children: e.message }),
2390
2390
  /* @__PURE__ */ a(
2391
2391
  P,
2392
2392
  {
@@ -2401,8 +2401,8 @@ const vo = (t) => {
2401
2401
  ] })
2402
2402
  }
2403
2403
  );
2404
- }, Co = (t) => {
2405
- const e = Re(t.error), o = t.error instanceof Error ? t.error.stack : null, r = F();
2404
+ }, Mo = (e) => {
2405
+ const t = je(e.error), o = e.error instanceof Error ? e.error.stack : null, r = F();
2406
2406
  return /* @__PURE__ */ S(
2407
2407
  P,
2408
2408
  {
@@ -2419,16 +2419,16 @@ const vo = (t) => {
2419
2419
  }
2420
2420
  },
2421
2421
  children: [
2422
- (t.loadingMessage ? `Error while ${ye(ke(t.loadingMessage))} - ` : "") + e,
2422
+ (e.loadingMessage ? `Error while ${we(Ee(e.loadingMessage))} - ` : "") + t,
2423
2423
  /* @__PURE__ */ a("br", {}),
2424
2424
  o && /* @__PURE__ */ a("pre", { children: o })
2425
2425
  ]
2426
2426
  }
2427
2427
  );
2428
- }, wo = J(({ store: t }) => {
2429
- const { t: e } = V();
2428
+ }, ko = J(({ store: e }) => {
2429
+ const { t } = V();
2430
2430
  return /* @__PURE__ */ a(
2431
- Bt,
2431
+ Ft,
2432
2432
  {
2433
2433
  "data-testid": "jogging-blocked",
2434
2434
  "aria-label": "jogging-blocked",
@@ -2442,36 +2442,36 @@ const vo = (t) => {
2442
2442
  alignItems: "flex-start"
2443
2443
  },
2444
2444
  children: /* @__PURE__ */ S(P, { sx: { m: 2, width: "100%" }, children: [
2445
- /* @__PURE__ */ S(Ee, { severity: "error", sx: { mb: 2 }, children: [
2446
- /* @__PURE__ */ a(je, { children: e("Jogging.Blocked.ti") }),
2447
- e("Jogging.Blocked.lb")
2445
+ /* @__PURE__ */ S(Pe, { severity: "error", sx: { mb: 2 }, children: [
2446
+ /* @__PURE__ */ a(De, { children: t("Jogging.Blocked.ti") }),
2447
+ t("Jogging.Blocked.lb")
2448
2448
  ] }),
2449
2449
  /* @__PURE__ */ a(
2450
2450
  Z,
2451
2451
  {
2452
2452
  variant: "contained",
2453
2453
  color: "secondary",
2454
- onClick: () => t.unblock(),
2455
- children: e("Jogging.Blocked.Reenable.bt")
2454
+ onClick: () => e.unblock(),
2455
+ children: t("Jogging.Blocked.Reenable.bt")
2456
2456
  }
2457
2457
  )
2458
2458
  ] })
2459
2459
  }
2460
2460
  );
2461
- }), Ut = J(
2462
- ({ store: t }) => {
2463
- const { t: e } = V(), [o, r] = B(
2464
- t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
2465
- ), i = D(o);
2461
+ }), Ht = J(
2462
+ ({ store: e }) => {
2463
+ const { t } = V(), [o, r] = B(
2464
+ e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
2465
+ ), i = O(o);
2466
2466
  pt(() => {
2467
- const c = t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
2468
- Fe(i.current, c) || (i.current = c, r(c));
2467
+ const c = e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
2468
+ ze(i.current, c) || (i.current = c, r(c));
2469
2469
  });
2470
2470
  const n = [];
2471
2471
  for (const [c, s] of o.entries())
2472
2472
  s && n.push(c);
2473
2473
  return /* @__PURE__ */ a(
2474
- E,
2474
+ _,
2475
2475
  {
2476
2476
  "data-testid": "jogging-joint-limit-detector",
2477
2477
  "aria-label": "jogging-joint-limit-detector",
@@ -2482,13 +2482,13 @@ const vo = (t) => {
2482
2482
  minHeight: "1.5rem",
2483
2483
  visibility: n.length ? "visible" : "hidden"
2484
2484
  },
2485
- children: e("Jogging.JointLimitsReached.lb", {
2485
+ children: t("Jogging.JointLimitsReached.lb", {
2486
2486
  jointNumbers: n.map((c) => c + 1).join(", ")
2487
2487
  })
2488
2488
  }
2489
2489
  );
2490
2490
  }
2491
- ), To = gt(Le)(({ theme: t }) => ({
2491
+ ), Io = gt(Ve)(({ theme: e }) => ({
2492
2492
  "&.MuiFormControl-root": {
2493
2493
  ".MuiSelect-select": {
2494
2494
  paddingTop: "20px",
@@ -2500,18 +2500,18 @@ const vo = (t) => {
2500
2500
  },
2501
2501
  ".MuiInputLabel-root": {
2502
2502
  "&.Mui-focused": {
2503
- color: t.palette.text.primary
2503
+ color: e.palette.text.primary
2504
2504
  }
2505
2505
  }
2506
2506
  }
2507
2507
  }));
2508
2508
  function it({
2509
- labelValue: t,
2510
- ...e
2509
+ labelValue: e,
2510
+ ...t
2511
2511
  }) {
2512
- return /* @__PURE__ */ S(To, { fullWidth: !0, variant: "filled", children: [
2513
- /* @__PURE__ */ a($e, { id: e.labelId, children: t }),
2514
- /* @__PURE__ */ a(ze, { ...e })
2512
+ return /* @__PURE__ */ S(Io, { fullWidth: !0, variant: "filled", children: [
2513
+ /* @__PURE__ */ a(Ne, { id: t.labelId, children: e }),
2514
+ /* @__PURE__ */ a(Ge, { ...t })
2515
2515
  ] });
2516
2516
  }
2517
2517
  const dt = [
@@ -2519,38 +2519,38 @@ const dt = [
2519
2519
  { id: "1", mm: 1, degrees: 0.5 },
2520
2520
  { id: "5", mm: 5, degrees: 2.5 },
2521
2521
  { id: "10", mm: 10, degrees: 5 }
2522
- ], Mo = [
2522
+ ], Ro = [
2523
2523
  { id: "continuous" },
2524
2524
  ...dt
2525
- ], Io = ["coordsys", "tool"];
2525
+ ], _o = ["coordsys", "tool"];
2526
2526
  class bt {
2527
- constructor(e, o, r, i, n) {
2527
+ constructor(t, o, r, i, n) {
2528
2528
  var c, s, l, g;
2529
- this.jogger = e, this.coordSystems = o, this.motionGroupDescription = r, this.tcps = i, this.inverseSolverValue = n, this.selectedTabId = "cartesian", this.locks = /* @__PURE__ */ new Set(), this.blocked = !1, this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = G.RevoluteJoint;
2529
+ this.jogger = t, this.coordSystems = o, this.motionGroupDescription = r, this.tcps = i, this.inverseSolverValue = n, this.selectedTabId = "cartesian", this.locks = /* @__PURE__ */ new Set(), this.blocked = !1, this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.minRotationVelocityDegPerSec = 1, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = W.RevoluteJoint, this.operationMode = null, this.safetyState = null;
2530
2530
  for (const m of o)
2531
2531
  if (m.coordinate_system === "") {
2532
2532
  m.coordinate_system = "world";
2533
2533
  break;
2534
2534
  }
2535
- this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = ((s = i[0]) == null ? void 0 : s.id) || "", this.inverseSolver = n, this.jointType = ((g = (l = r == null ? void 0 : r.dh_parameters) == null ? void 0 : l[0]) == null ? void 0 : g.type) ?? G.RevoluteJoint, mt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
2535
+ this.operationMode = t.motionStream.controller.operation_mode, this.safetyState = t.motionStream.controller.safety_state, this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = ((s = i[0]) == null ? void 0 : s.id) || "", this.inverseSolver = n, this.jointType = ((g = (l = r == null ? void 0 : r.dh_parameters) == null ? void 0 : l[0]) == null ? void 0 : g.type) ?? W.RevoluteJoint, mt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
2536
2536
  this.block();
2537
- }, this.loadFromLocalStorage(), this.disposers.push(Ce(() => this.saveToLocalStorage())), window.joggingStore = this;
2537
+ }, this.loadFromLocalStorage(), this.disposers.push(Me(() => this.saveToLocalStorage())), window.joggingStore = this;
2538
2538
  }
2539
2539
  /**
2540
2540
  * Load a jogging store with the relevant data it needs
2541
2541
  * from the backend
2542
2542
  */
2543
- static async loadFor(e) {
2544
- const { nova: o } = e, [r, i] = await Promise.all([
2543
+ static async loadFor(t) {
2544
+ const { nova: o } = t, [r, i] = await Promise.all([
2545
2545
  // Fetch coord systems so user can select between them
2546
2546
  o.api.controller.listCoordinateSystems(
2547
- e.motionStream.controllerId,
2547
+ t.motionStream.controllerId,
2548
2548
  "ROTATION_VECTOR"
2549
2549
  ),
2550
2550
  // Same for TCPs and other info from description
2551
2551
  o.api.motionGroup.getMotionGroupDescription(
2552
- e.motionStream.controllerId,
2553
- e.motionGroupId
2552
+ t.motionStream.controllerId,
2553
+ t.motionGroupId
2554
2554
  )
2555
2555
  ]), n = await o.api.motionGroupModels.getMotionGroupKinematicModel(
2556
2556
  i.motion_group_model
@@ -2561,7 +2561,7 @@ class bt {
2561
2561
  orientation: l.pose.orientation
2562
2562
  }));
2563
2563
  return new bt(
2564
- e,
2564
+ t,
2565
2565
  r || [],
2566
2566
  i,
2567
2567
  c,
@@ -2569,16 +2569,15 @@ class bt {
2569
2569
  );
2570
2570
  }
2571
2571
  dispose() {
2572
- for (const e of this.disposers)
2573
- e();
2572
+ for (const t of this.disposers)
2573
+ t();
2574
2574
  this.jogger.dispose();
2575
2575
  }
2576
2576
  get coordSystemCountByName() {
2577
- return Se(this.coordSystems, (e) => e.name);
2577
+ return Ce(this.coordSystems, (t) => t.name);
2578
2578
  }
2579
2579
  async deactivate() {
2580
- if (this.jogger.mode === "jogging")
2581
- return this.jogger.stop();
2580
+ this.jogger.mode === "jogging" && await this.jogger.setJoggingMode("off");
2582
2581
  }
2583
2582
  /** Activate the jogger with current settings */
2584
2583
  async activate() {
@@ -2588,8 +2587,8 @@ class bt {
2588
2587
  }), this.activeDiscreteIncrement ? this.jogger.setJoggingMode("trajectory") : this.jogger.setJoggingMode("jogging")) : this.jogger.setJoggingMode("jogging"), this.jogger;
2589
2588
  }
2590
2589
  loadFromLocalStorage() {
2591
- const e = W(localStorage.getItem("joggingToolStore"));
2592
- e && (this.tabsById[e.selectedTabId] && (this.selectedTabId = e.selectedTabId), this.coordSystemsById[e.selectedCoordSystemId] && (this.selectedCoordSystemId = e.selectedCoordSystemId), this.tcpsById[e.selectedTcpId] && (this.selectedTcpId = e.selectedTcpId), this.incrementOptionsById[e.selectedIncrementId] && (this.selectedIncrementId = e.selectedIncrementId), ["translate", "rotate"].includes(e.selectedCartesianMotionType) && (this.selectedCartesianMotionType = e.selectedCartesianMotionType), ["coordsys", "tool"].includes(e.selectedOrientation) && (this.selectedOrientation = e.selectedOrientation));
2590
+ const t = G(localStorage.getItem("joggingToolStore"));
2591
+ t && (this.tabsById[t.selectedTabId] && (this.selectedTabId = t.selectedTabId), this.coordSystemsById[t.selectedCoordSystemId] && (this.selectedCoordSystemId = t.selectedCoordSystemId), this.tcpsById[t.selectedTcpId] && (this.selectedTcpId = t.selectedTcpId), this.incrementOptionsById[t.selectedIncrementId] && (this.selectedIncrementId = t.selectedIncrementId), ["translate", "rotate"].includes(t.selectedCartesianMotionType) && (this.selectedCartesianMotionType = t.selectedCartesianMotionType), ["coordsys", "tool"].includes(t.selectedOrientation) && (this.selectedOrientation = t.selectedOrientation));
2593
2592
  }
2594
2593
  saveToLocalStorage() {
2595
2594
  localStorage.setItem(
@@ -2611,28 +2610,28 @@ class bt {
2611
2610
  };
2612
2611
  }
2613
2612
  get tabs() {
2614
- const e = [
2613
+ const t = [
2615
2614
  {
2616
2615
  id: "joint",
2617
2616
  label: "Joints"
2618
2617
  }
2619
2618
  ];
2620
- return this.inverseSolver !== null && e.unshift({
2619
+ return this.inverseSolver !== null && t.unshift({
2621
2620
  id: "cartesian",
2622
2621
  label: "Cartesian"
2623
- }), e;
2622
+ }), t;
2624
2623
  }
2625
2624
  get incrementOptions() {
2626
- return Mo;
2625
+ return Ro;
2627
2626
  }
2628
2627
  get discreteIncrementOptions() {
2629
2628
  return dt;
2630
2629
  }
2631
2630
  get incrementOptionsById() {
2632
- return nt(this.incrementOptions, (e) => e.id);
2631
+ return nt(this.incrementOptions, (t) => t.id);
2633
2632
  }
2634
2633
  get tabsById() {
2635
- return nt(this.tabs, (e) => e.id);
2634
+ return nt(this.tabs, (t) => t.id);
2636
2635
  }
2637
2636
  get currentTab() {
2638
2637
  return this.tabsById[this.selectedTabId] || this.tabs[0];
@@ -2641,7 +2640,7 @@ class bt {
2641
2640
  return this.tabs.indexOf(this.currentTab);
2642
2641
  }
2643
2642
  get coordSystemsById() {
2644
- return nt(this.coordSystems, (e) => e.coordinate_system);
2643
+ return nt(this.coordSystems, (t) => t.coordinate_system);
2645
2644
  }
2646
2645
  /**
2647
2646
  * The id of the coordinate system to use for jogging.
@@ -2652,57 +2651,111 @@ class bt {
2652
2651
  return this.selectedOrientation === "tool" ? "tool" : this.selectedCoordSystemId;
2653
2652
  }
2654
2653
  get tcpsById() {
2655
- return nt(this.tcps, (e) => e.id);
2654
+ return nt(this.tcps, (t) => t.id);
2656
2655
  }
2657
2656
  get activeDiscreteIncrement() {
2658
- return this.selectedOrientation === "tool" ? void 0 : dt.find((e) => e.id === this.selectedIncrementId);
2657
+ return this.selectedOrientation === "tool" ? void 0 : dt.find((t) => t.id === this.selectedIncrementId);
2659
2658
  }
2660
2659
  /** The selected rotation velocity converted to radians per second */
2661
2660
  get rotationVelocityRadsPerSec() {
2662
2661
  return this.rotationVelocityDegPerSec * Math.PI / 180;
2663
2662
  }
2664
2663
  /** Selected velocity in mm/sec or deg/sec */
2665
- velocityInDisplayUnits(e) {
2666
- return e ? this.rotationVelocityDegPerSec : this.translationVelocityMmPerSec;
2664
+ velocityInDisplayUnits(t) {
2665
+ return t ? this.rotationVelocityDegPerSec : this.translationVelocityMmPerSec;
2666
+ }
2667
+ get isAutoMode() {
2668
+ return this.operationMode === xe.OperationModeAuto;
2669
+ }
2670
+ get isSafetyStateNormal() {
2671
+ return this.safetyState === ye.SafetyStateNormal;
2672
+ }
2673
+ /** Maximum rotation velocity user can choose on the velocity slider in °/s */
2674
+ get maxRotationVelocityDegPerSec() {
2675
+ var o, r, i, n;
2676
+ if (this.operationMode && this.safetyState && this.motionGroupDescription) {
2677
+ const c = this.isAutoMode ? (r = (o = this.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : o.tcp) == null ? void 0 : r.orientation_velocity : (n = (i = this.motionGroupDescription.operation_limits[this.isSafetyStateNormal ? "manual_t1_limits" : "manual_t2_limits"]) == null ? void 0 : i.tcp) == null ? void 0 : n.orientation_velocity;
2678
+ return c ? kt(c) : 60;
2679
+ }
2680
+ return 60;
2681
+ }
2682
+ /** Maximum translation velocity user can choose on the velocity slider in mm/s */
2683
+ get maxTranslationVelocityMmPerSec() {
2684
+ var o, r, i, n;
2685
+ return this.operationMode && this.safetyState && this.motionGroupDescription ? (this.isAutoMode ? (r = (o = this.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : o.tcp) == null ? void 0 : r.velocity : (n = (i = this.motionGroupDescription.operation_limits[this.isSafetyStateNormal ? "manual_t1_limits" : "manual_t2_limits"]) == null ? void 0 : i.tcp) == null ? void 0 : n.velocity) ?? 250 : 250;
2686
+ }
2687
+ /**
2688
+ * Returns joint velocity in °/s
2689
+ * @param joint JointLimits
2690
+ * @param fallback number
2691
+ * @private
2692
+ */
2693
+ getJointVelocity(t, o) {
2694
+ return t.velocity ? kt(t.velocity) : o;
2695
+ }
2696
+ /**
2697
+ * Maximum joint rotation velocity user can choose on the velocity slider in °/s
2698
+ */
2699
+ get maxJointVelocityInDisplayUnits() {
2700
+ var o, r, i, n;
2701
+ if (this.operationMode && this.safetyState && this.motionGroupDescription) {
2702
+ const c = ((r = (o = this.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : o.joints) == null ? void 0 : r.map((l) => this.getJointVelocity(l, 60))) ?? [], s = ((n = (i = this.motionGroupDescription.operation_limits[this.isSafetyStateNormal ? "manual_t1_limits" : "manual_t2_limits"]) == null ? void 0 : i.joints) == null ? void 0 : n.map((l) => this.getJointVelocity(l, 60))) ?? [];
2703
+ return Math.floor(
2704
+ this.isAutoMode ? Math.max(...c) : Math.max(...s)
2705
+ );
2706
+ }
2707
+ return 60;
2667
2708
  }
2668
- /** Minimum selectable velocity in mm/sec or deg/sec */
2669
- minVelocityInDisplayUnits(e) {
2670
- return e ? this.minRotationVelocityDegPerSec : this.minTranslationVelocityMmPerSec;
2709
+ /** Minimum selectable velocity in mm/sec or deg/sec */
2710
+ minVelocityInDisplayUnits(t) {
2711
+ return t ? this.minRotationVelocityDegPerSec : this.minTranslationVelocityMmPerSec;
2671
2712
  }
2672
- /** Maximum selectable velocity in mm/sec or deg/sec */
2673
- maxVelocityInDisplayUnits(e) {
2674
- return e ? this.maxRotationVelocityDegPerSec : this.maxTranslationVelocityMmPerSec;
2713
+ /**
2714
+ * Maximum selectable velocity in mm/sec or deg/sec
2715
+ *
2716
+ * If data provided by the api is already present - read out the limits from the motionGroupDescription
2717
+ *
2718
+ * Automatic mode -> auto_limits
2719
+ * Manual mode t1 -> manual_t1_limits
2720
+ * Manual mode t2 -> manual_t2_limits
2721
+ *
2722
+ * In other case - return the fallbacks
2723
+ */
2724
+ maxVelocityInDisplayUnits(t) {
2725
+ return Math.floor(
2726
+ t ? this.maxRotationVelocityDegPerSec : this.maxTranslationVelocityMmPerSec
2727
+ );
2675
2728
  }
2676
- onTabChange(e, o) {
2729
+ onTabChange(t, o) {
2677
2730
  const r = this.tabs[o] || this.tabs[0];
2678
2731
  this.selectedTabId = r.id;
2679
2732
  }
2680
- setSelectedCoordSystemId(e) {
2681
- this.selectedCoordSystemId = e;
2733
+ setSelectedCoordSystemId(t) {
2734
+ this.selectedCoordSystemId = t;
2682
2735
  }
2683
- setSelectedTcpId(e) {
2684
- this.selectedTcpId = e;
2736
+ setSelectedTcpId(t) {
2737
+ this.selectedTcpId = t;
2685
2738
  }
2686
- setSelectedOrientation(e) {
2687
- this.selectedOrientation = e;
2739
+ setSelectedOrientation(t) {
2740
+ this.selectedOrientation = t;
2688
2741
  }
2689
- setSelectedIncrementId(e) {
2690
- this.selectedIncrementId = e;
2742
+ setSelectedIncrementId(t) {
2743
+ this.selectedIncrementId = t;
2691
2744
  }
2692
- setCurrentIncrementJog(e) {
2693
- this.incrementJogInProgress = e;
2745
+ setCurrentIncrementJog(t) {
2746
+ this.incrementJogInProgress = t;
2694
2747
  }
2695
- setVelocityFromSlider(e, o) {
2696
- o ? this.rotationVelocityDegPerSec = e : this.translationVelocityMmPerSec = e;
2748
+ setVelocityFromSlider(t, o) {
2749
+ o ? this.rotationVelocityDegPerSec = t : this.translationVelocityMmPerSec = t;
2697
2750
  }
2698
- setSelectedCartesianMotionType(e) {
2699
- this.selectedCartesianMotionType = e;
2751
+ setSelectedCartesianMotionType(t) {
2752
+ this.selectedCartesianMotionType = t;
2700
2753
  }
2701
- lock(e) {
2702
- this.locks.add(e);
2754
+ lock(t) {
2755
+ this.locks.add(t);
2703
2756
  }
2704
- unlock(e) {
2705
- this.locks.delete(e);
2757
+ unlock(t) {
2758
+ this.locks.delete(t);
2706
2759
  }
2707
2760
  block() {
2708
2761
  this.blocked = !0;
@@ -2711,20 +2764,20 @@ class bt {
2711
2764
  this.blocked = !1, this.jogger.mode === "jogging" && this.jogger.initializeJoggingWebsocket();
2712
2765
  }
2713
2766
  /** Lock the UI until the given async callback resolves */
2714
- async withMotionLock(e) {
2715
- const o = Ve();
2767
+ async withMotionLock(t) {
2768
+ const o = We();
2716
2769
  this.lock(o);
2717
2770
  try {
2718
- return await e();
2771
+ return await t();
2719
2772
  } finally {
2720
2773
  this.unlock(o);
2721
2774
  }
2722
2775
  }
2723
2776
  }
2724
- const ko = J(
2725
- ({ store: t, useDegree: e }) => {
2777
+ const Eo = J(
2778
+ ({ store: e, useDegree: t }) => {
2726
2779
  var c;
2727
- const { t: o } = V(), r = ee(), i = [];
2780
+ const { t: o } = V(), r = oe(), i = [];
2728
2781
  function n(s) {
2729
2782
  switch (s) {
2730
2783
  case "coordsys":
@@ -2735,51 +2788,51 @@ const ko = J(
2735
2788
  return s;
2736
2789
  }
2737
2790
  }
2738
- return t.showCoordSystemSelect && i.push(
2791
+ return e.showCoordSystemSelect && i.push(
2739
2792
  /* @__PURE__ */ a(
2740
2793
  it,
2741
2794
  {
2742
2795
  labelId: `jogging-coord-select-${r}`,
2743
2796
  labelValue: o("Jogging.CoordinateSystem.hlb"),
2744
- value: t.selectedCoordSystemId,
2797
+ value: e.selectedCoordSystemId,
2745
2798
  size: "small",
2746
2799
  variant: "filled",
2747
2800
  displayEmpty: !0,
2748
- onChange: (s) => t.setSelectedCoordSystemId(s.target.value),
2749
- disabled: t.isLocked,
2750
- children: t.coordSystems.map((s) => /* @__PURE__ */ a(q, { value: s.coordinate_system, children: s.name && t.coordSystemCountByName[s.name] > 1 ? `${s.name} / ${s.coordinate_system}` : s.name || s.coordinate_system }, s.coordinate_system))
2801
+ onChange: (s) => e.setSelectedCoordSystemId(s.target.value),
2802
+ disabled: e.isLocked,
2803
+ 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))
2751
2804
  },
2752
2805
  "coord"
2753
2806
  )
2754
- ), t.showTcpSelect && i.push(
2807
+ ), e.showTcpSelect && i.push(
2755
2808
  /* @__PURE__ */ a(
2756
2809
  it,
2757
2810
  {
2758
2811
  labelId: `jogging-tcp-select-${r}`,
2759
2812
  labelValue: "TCP",
2760
- value: t.selectedTcpId,
2813
+ value: e.selectedTcpId,
2761
2814
  size: "small",
2762
2815
  variant: "filled",
2763
- onChange: (s) => t.setSelectedTcpId(s.target.value),
2764
- disabled: t.isLocked,
2765
- children: t.tcps.map((s) => /* @__PURE__ */ a(q, { value: s.id, children: s.id }, s.id))
2816
+ onChange: (s) => e.setSelectedTcpId(s.target.value),
2817
+ disabled: e.isLocked,
2818
+ children: e.tcps.map((s) => /* @__PURE__ */ a(q, { value: s.id, children: s.id }, s.id))
2766
2819
  },
2767
2820
  "tcp"
2768
2821
  )
2769
- ), t.showOrientationSelect && i.push(
2822
+ ), e.showOrientationSelect && i.push(
2770
2823
  /* @__PURE__ */ a(
2771
2824
  it,
2772
2825
  {
2773
2826
  labelValue: o("Jogging.Cartesian.Orientation.lb"),
2774
2827
  labelId: `orientation-select-${r}`,
2775
- value: t.selectedOrientation,
2776
- onChange: (s) => t.setSelectedOrientation(s.target.value),
2777
- disabled: t.isLocked,
2778
- children: Io.map((s) => /* @__PURE__ */ a(q, { value: s, children: n(s) }, s))
2828
+ value: e.selectedOrientation,
2829
+ onChange: (s) => e.setSelectedOrientation(s.target.value),
2830
+ disabled: e.isLocked,
2831
+ children: _o.map((s) => /* @__PURE__ */ a(q, { value: s, children: n(s) }, s))
2779
2832
  },
2780
2833
  "orientation"
2781
2834
  )
2782
- ), t.showIncrementSelect && i.push(
2835
+ ), e.showIncrementSelect && i.push(
2783
2836
  /* @__PURE__ */ S(
2784
2837
  it,
2785
2838
  {
@@ -2787,14 +2840,14 @@ const ko = J(
2787
2840
  labelId: `jogging-increment-select-${r}`,
2788
2841
  size: "small",
2789
2842
  variant: "filled",
2790
- value: ((c = t.activeDiscreteIncrement) == null ? void 0 : c.id) || "continuous",
2791
- onChange: (s) => t.setSelectedIncrementId(
2843
+ value: ((c = e.activeDiscreteIncrement) == null ? void 0 : c.id) || "continuous",
2844
+ onChange: (s) => e.setSelectedIncrementId(
2792
2845
  s.target.value
2793
2846
  ),
2794
- disabled: t.isLocked,
2847
+ disabled: e.isLocked,
2795
2848
  children: [
2796
2849
  /* @__PURE__ */ a(q, { value: "continuous", children: o("Jogging.Increment.Continuous.dd") }, "continuous"),
2797
- t.selectedOrientation === "tool" ? null : t.discreteIncrementOptions.map((s) => /* @__PURE__ */ a(q, { value: s.id, children: e ? `${s.degrees}°` : `${s.mm}mm` }, s.id))
2850
+ e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((s) => /* @__PURE__ */ a(q, { value: s.id, children: t ? `${s.degrees}°` : `${s.mm}mm` }, s.id))
2798
2851
  ]
2799
2852
  },
2800
2853
  "increment"
@@ -2825,11 +2878,11 @@ const ko = J(
2825
2878
  }
2826
2879
  );
2827
2880
  }
2828
- ), Ro = gt(Ne)(({ theme: t }) => {
2829
- var e;
2881
+ ), jo = gt(Ue)(({ theme: e }) => {
2882
+ var t;
2830
2883
  return {
2831
2884
  "&.MuiToggleButtonGroup-root": {
2832
- background: (e = t.palette.backgroundPaperElevation) == null ? void 0 : e[8],
2885
+ background: (t = e.palette.backgroundPaperElevation) == null ? void 0 : t[8],
2833
2886
  borderRadius: "8px",
2834
2887
  padding: "4px",
2835
2888
  gap: "4px",
@@ -2847,11 +2900,11 @@ const ko = J(
2847
2900
  }
2848
2901
  }
2849
2902
  };
2850
- }), Eo = J((t) => {
2903
+ }), Po = J((e) => {
2851
2904
  var n, c, s;
2852
- const e = F(), { store: o } = t, { t: r } = V();
2905
+ const t = F(), { store: o } = e, { t: r } = V();
2853
2906
  function i(l, g) {
2854
- g === t.velocity || !We(g) || t.onVelocityChange(g, t.useDegree);
2907
+ g === e.velocity || !He(g) || e.onVelocityChange(g, e.useDegree);
2855
2908
  }
2856
2909
  return /* @__PURE__ */ S(
2857
2910
  P,
@@ -2863,25 +2916,25 @@ const ko = J(
2863
2916
  "aria-label": "velocity-slider",
2864
2917
  children: [
2865
2918
  o.showVelocityLegend && /* @__PURE__ */ a(
2866
- E,
2919
+ _,
2867
2920
  {
2868
2921
  sx: {
2869
- color: (s = (c = (n = e.componentsExt) == null ? void 0 : n.JoggingPanel) == null ? void 0 : c.VelocitySlider) == null ? void 0 : s.sliderLegendColor,
2922
+ color: (s = (c = (n = t.componentsExt) == null ? void 0 : n.JoggingPanel) == null ? void 0 : c.VelocitySlider) == null ? void 0 : s.sliderLegendColor,
2870
2923
  fontSize: "14px"
2871
2924
  },
2872
2925
  children: r("Jogging.Velocity.bt")
2873
2926
  }
2874
2927
  ),
2875
2928
  /* @__PURE__ */ a(
2876
- Nt,
2929
+ Gt,
2877
2930
  {
2878
- value: t.velocity,
2931
+ value: e.velocity,
2879
2932
  color: "secondary",
2880
2933
  onChange: i,
2881
- min: t.min,
2882
- max: t.max,
2934
+ min: e.min,
2935
+ max: e.max,
2883
2936
  "aria-labelledby": "input-slider",
2884
- disabled: t.disabled,
2937
+ disabled: e.disabled,
2885
2938
  sx: {
2886
2939
  "& .MuiSlider-valueLabelOpen": {
2887
2940
  zIndex: 100,
@@ -2891,12 +2944,12 @@ const ko = J(
2891
2944
  }
2892
2945
  }
2893
2946
  ),
2894
- o.showVelocitySliderLabel && (t.renderValue ? t.renderValue(t.velocity) : /* @__PURE__ */ a(Ht, { value: t.velocity.toString() }))
2947
+ o.showVelocitySliderLabel && (e.renderValue ? e.renderValue(e.velocity) : /* @__PURE__ */ a(qt, { value: e.velocity.toString() }))
2895
2948
  ]
2896
2949
  }
2897
2950
  );
2898
2951
  });
2899
- function Ht({ value: t, sx: e }) {
2952
+ function qt({ value: e, sx: t }) {
2900
2953
  var r;
2901
2954
  const o = F();
2902
2955
  return /* @__PURE__ */ a(
@@ -2911,10 +2964,10 @@ function Ht({ value: t, sx: e }) {
2911
2964
  background: (r = o.palette.backgroundPaperElevation) == null ? void 0 : r[8],
2912
2965
  borderRadius: "10px",
2913
2966
  minWidth: "111px",
2914
- ...e
2967
+ ...t
2915
2968
  },
2916
2969
  children: /* @__PURE__ */ a(
2917
- E,
2970
+ _,
2918
2971
  {
2919
2972
  component: "span",
2920
2973
  sx: {
@@ -2924,32 +2977,32 @@ function Ht({ value: t, sx: e }) {
2924
2977
  color: o.palette.text.primary,
2925
2978
  whiteSpace: "nowrap"
2926
2979
  },
2927
- children: t
2980
+ children: e
2928
2981
  }
2929
2982
  )
2930
2983
  }
2931
2984
  );
2932
2985
  }
2933
- const qt = J(
2934
- ({ store: t, useDegree: e }) => {
2935
- const { t: o } = V();
2936
- function r(i, n) {
2937
- return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: i })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: i })}`;
2986
+ const Yt = J(
2987
+ ({ store: e, useDegree: t, isJointVelocitySlider: o }) => {
2988
+ const { t: r } = V();
2989
+ function i(n, c) {
2990
+ return c ? `ω = ${r("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: n })}` : `v = ${r("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: n })}`;
2938
2991
  }
2939
2992
  return /* @__PURE__ */ a(
2940
- Eo,
2993
+ Po,
2941
2994
  {
2942
- store: t,
2943
- velocity: t.velocityInDisplayUnits(e),
2944
- min: t.minVelocityInDisplayUnits(e),
2945
- max: t.maxVelocityInDisplayUnits(e),
2946
- onVelocityChange: t.setVelocityFromSlider,
2947
- useDegree: e,
2948
- disabled: t.isLocked,
2949
- renderValue: (i) => /* @__PURE__ */ a(
2950
- Ht,
2995
+ store: e,
2996
+ velocity: e.velocityInDisplayUnits(t),
2997
+ min: e.minVelocityInDisplayUnits(t),
2998
+ max: o ? e.maxJointVelocityInDisplayUnits : e.maxVelocityInDisplayUnits(t),
2999
+ onVelocityChange: e.setVelocityFromSlider,
3000
+ useDegree: t,
3001
+ disabled: e.isLocked,
3002
+ renderValue: (n) => /* @__PURE__ */ a(
3003
+ qt,
2951
3004
  {
2952
- value: r(i, e),
3005
+ value: i(n, t),
2953
3006
  sx: {
2954
3007
  minWidth: "111px",
2955
3008
  span: {
@@ -2961,21 +3014,21 @@ const qt = J(
2961
3014
  }
2962
3015
  );
2963
3016
  }
2964
- ), jo = J(
3017
+ ), Do = J(
2965
3018
  ({
2966
- store: t,
2967
- children: e
3019
+ store: e,
3020
+ children: t
2968
3021
  }) => {
2969
3022
  const { t: o } = V(), r = F();
2970
3023
  function i(u, p) {
2971
- (p === "translate" || p === "rotate") && t.setSelectedCartesianMotionType(p);
3024
+ (p === "translate" || p === "rotate") && e.setSelectedCartesianMotionType(p);
2972
3025
  }
2973
- ie(
2974
- () => [t.selectedCoordSystemId, t.selectedTcpId],
3026
+ re(
3027
+ () => [e.selectedCoordSystemId, e.selectedTcpId],
2975
3028
  () => {
2976
- t.jogger.motionStream.motionStateSocket.changeUrl(
2977
- t.jogger.nova.makeWebsocketURL(
2978
- `/controllers/${t.jogger.motionStream.controllerId}/motion-groups/${t.jogger.motionGroupId}/state-stream?tcp=${t.selectedTcpId}`
3029
+ e.jogger.motionStream.motionStateSocket.changeUrl(
3030
+ e.jogger.nova.makeWebsocketURL(
3031
+ `/controllers/${e.jogger.motionStream.controllerId}/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}`
2979
3032
  )
2980
3033
  );
2981
3034
  },
@@ -2983,49 +3036,49 @@ const qt = J(
2983
3036
  { fireImmediately: !0 }
2984
3037
  );
2985
3038
  async function n(u, p) {
2986
- const x = await t.activate(), y = x.motionStream.rapidlyChangingMotionState.tcp_pose, f = x.motionStream.rapidlyChangingMotionState.joint_position;
2987
- y && await t.withMotionLock(async () => {
3039
+ const x = await e.activate(), y = x.motionStream.rapidlyChangingMotionState.tcp_pose, f = x.motionStream.rapidlyChangingMotionState.joint_position;
3040
+ y && await e.withMotionLock(async () => {
2988
3041
  try {
2989
- t.setCurrentIncrementJog({
3042
+ e.setCurrentIncrementJog({
2990
3043
  axis: u.axis,
2991
3044
  direction: u.direction
2992
- }), await t.jogger.runIncrementalCartesianMotion({
3045
+ }), await e.jogger.runIncrementalCartesianMotion({
2993
3046
  currentTcpPose: y,
2994
3047
  currentJoints: f,
2995
- coordSystemId: t.activeCoordSystemId,
2996
- velocityInRelevantUnits: t.selectedCartesianMotionType === "translate" ? t.translationVelocityMmPerSec : t.rotationVelocityRadsPerSec,
3048
+ coordSystemId: e.activeCoordSystemId,
3049
+ velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
2997
3050
  axis: u.axis,
2998
3051
  direction: u.direction,
2999
- motion: t.selectedCartesianMotionType === "translate" ? {
3052
+ motion: e.selectedCartesianMotionType === "translate" ? {
3000
3053
  type: "translate",
3001
3054
  distanceMm: p.mm
3002
3055
  } : {
3003
3056
  type: "rotate",
3004
- distanceRads: Me(p.degrees)
3057
+ distanceRads: Re(p.degrees)
3005
3058
  }
3006
3059
  });
3007
3060
  } finally {
3008
- t.setCurrentIncrementJog(null), await t.deactivate();
3061
+ e.setCurrentIncrementJog(null), await e.deactivate();
3009
3062
  }
3010
3063
  });
3011
3064
  }
3012
3065
  async function c(u) {
3013
- if (!t.isLocked) {
3014
- if (await t.activate(), t.activeDiscreteIncrement)
3015
- return n(u, t.activeDiscreteIncrement);
3016
- u.motionType === "translate" ? await t.jogger.translateTCP({
3066
+ if (!e.isLocked) {
3067
+ if (await e.activate(), e.activeDiscreteIncrement)
3068
+ return n(u, e.activeDiscreteIncrement);
3069
+ u.motionType === "translate" ? await e.jogger.translateTCP({
3017
3070
  axis: u.axis,
3018
3071
  direction: u.direction,
3019
- velocityMmPerSec: t.translationVelocityMmPerSec
3020
- }) : await t.jogger.rotateTCP({
3072
+ velocityMmPerSec: e.translationVelocityMmPerSec
3073
+ }) : await e.jogger.rotateTCP({
3021
3074
  axis: u.axis,
3022
3075
  direction: u.direction,
3023
- velocityRadsPerSec: t.rotationVelocityRadsPerSec
3076
+ velocityRadsPerSec: e.rotationVelocityRadsPerSec
3024
3077
  });
3025
3078
  }
3026
3079
  }
3027
3080
  async function s() {
3028
- t.isLocked || t.activeDiscreteIncrement || await t.deactivate();
3081
+ e.isLocked || e.activeDiscreteIncrement || await e.deactivate();
3029
3082
  }
3030
3083
  function l(u, p, x) {
3031
3084
  var f, h, v;
@@ -3036,18 +3089,18 @@ const qt = J(
3036
3089
  const g = [
3037
3090
  {
3038
3091
  id: "x",
3039
- icon: /* @__PURE__ */ a(Oe, {}),
3040
- colors: l("X", t.selectedCartesianMotionType, r)
3092
+ icon: /* @__PURE__ */ a(Je, {}),
3093
+ colors: l("X", e.selectedCartesianMotionType, r)
3041
3094
  },
3042
3095
  {
3043
3096
  id: "y",
3044
- icon: /* @__PURE__ */ a(De, {}),
3045
- colors: l("Y", t.selectedCartesianMotionType, r)
3097
+ icon: /* @__PURE__ */ a(Be, {}),
3098
+ colors: l("Y", e.selectedCartesianMotionType, r)
3046
3099
  },
3047
3100
  {
3048
3101
  id: "z",
3049
- icon: /* @__PURE__ */ a(Ae, {}),
3050
- colors: l("Z", t.selectedCartesianMotionType, r)
3102
+ icon: /* @__PURE__ */ a(Fe, {}),
3103
+ colors: l("Z", e.selectedCartesianMotionType, r)
3051
3104
  }
3052
3105
  ];
3053
3106
  function m(u) {
@@ -3055,7 +3108,7 @@ const qt = J(
3055
3108
  }
3056
3109
  function d(u) {
3057
3110
  return o("General.degree.variable", {
3058
- amount: Vt(u).toFixed(1)
3111
+ amount: Nt(u).toFixed(1)
3059
3112
  });
3060
3113
  }
3061
3114
  return /* @__PURE__ */ S(
@@ -3069,17 +3122,17 @@ const qt = J(
3069
3122
  children: [
3070
3123
  /* @__PURE__ */ S(P, { gap: 2, children: [
3071
3124
  /* @__PURE__ */ a(
3072
- ko,
3125
+ Eo,
3073
3126
  {
3074
- store: t,
3075
- useDegree: t.selectedCartesianMotionType === "rotate"
3127
+ store: e,
3128
+ useDegree: e.selectedCartesianMotionType === "rotate"
3076
3129
  }
3077
3130
  ),
3078
3131
  /* @__PURE__ */ a(
3079
- qt,
3132
+ Yt,
3080
3133
  {
3081
- store: t,
3082
- useDegree: t.selectedCartesianMotionType === "rotate"
3134
+ store: e,
3135
+ useDegree: e.selectedCartesianMotionType === "rotate"
3083
3136
  }
3084
3137
  ),
3085
3138
  /* @__PURE__ */ a(Y, {})
@@ -3101,33 +3154,33 @@ const qt = J(
3101
3154
  sx: { flexGrow: 1 },
3102
3155
  children: [
3103
3156
  /* @__PURE__ */ S(
3104
- Ro,
3157
+ jo,
3105
3158
  {
3106
- value: t.selectedCartesianMotionType,
3159
+ value: e.selectedCartesianMotionType,
3107
3160
  onChange: i,
3108
3161
  exclusive: !0,
3109
3162
  "aria-label": o("Jogging.Cartesian.MotionType.lb"),
3110
3163
  sx: { justifyContent: "center" },
3111
3164
  children: [
3112
- /* @__PURE__ */ a(Rt, { value: "translate", children: o("Jogging.Cartesian.Translation.bt") }),
3113
- /* @__PURE__ */ a(Rt, { value: "rotate", children: o("Jogging.Cartesian.Rotation.bt") })
3165
+ /* @__PURE__ */ a(_t, { value: "translate", children: o("Jogging.Cartesian.Translation.bt") }),
3166
+ /* @__PURE__ */ a(_t, { value: "rotate", children: o("Jogging.Cartesian.Rotation.bt") })
3114
3167
  ]
3115
3168
  }
3116
3169
  ),
3117
- t.selectedCartesianMotionType === "translate" && g.map((u) => {
3170
+ e.selectedCartesianMotionType === "translate" && g.map((u) => {
3118
3171
  var p, x;
3119
3172
  return /* @__PURE__ */ a(
3120
- _t,
3173
+ Pt,
3121
3174
  {
3122
3175
  "data-testid": `jogging-cartesian-axis-control-${u.id}`,
3123
3176
  "aria-label": `jogging-cartesian-axis-control-${u.id}`,
3124
3177
  colors: u.colors,
3125
- disabled: t.isLocked,
3126
- activeJoggingDirection: ((p = t.incrementJogInProgress) == null ? void 0 : p.axis) === u.id ? t.incrementJogInProgress.direction : void 0,
3178
+ disabled: e.isLocked,
3179
+ activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === u.id ? e.incrementJogInProgress.direction : void 0,
3127
3180
  label: /* @__PURE__ */ S(et, { children: [
3128
3181
  u.icon,
3129
3182
  /* @__PURE__ */ a(
3130
- E,
3183
+ _,
3131
3184
  {
3132
3185
  sx: {
3133
3186
  fontSize: "24px",
@@ -3140,7 +3193,7 @@ const qt = J(
3140
3193
  getDisplayedValue: () => {
3141
3194
  var y, f;
3142
3195
  return m(
3143
- ((f = (y = t.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.position) == null ? void 0 : f[tt[u.id]]) || 0
3196
+ ((f = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.position) == null ? void 0 : f[tt[u.id]]) || 0
3144
3197
  );
3145
3198
  },
3146
3199
  startJogging: (y) => c({
@@ -3153,20 +3206,20 @@ const qt = J(
3153
3206
  u.id
3154
3207
  );
3155
3208
  }),
3156
- t.selectedCartesianMotionType === "rotate" && g.map((u) => {
3209
+ e.selectedCartesianMotionType === "rotate" && g.map((u) => {
3157
3210
  var p, x;
3158
3211
  return /* @__PURE__ */ a(
3159
- _t,
3212
+ Pt,
3160
3213
  {
3161
3214
  "data-testid": `jogging-cartesian-axis-control-${u.id}`,
3162
3215
  "aria-label": `jogging-cartesian-axis-control-${u.id}`,
3163
3216
  colors: u.colors,
3164
- disabled: t.isLocked,
3165
- activeJoggingDirection: ((p = t.incrementJogInProgress) == null ? void 0 : p.axis) === u.id ? t.incrementJogInProgress.direction : void 0,
3217
+ disabled: e.isLocked,
3218
+ activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === u.id ? e.incrementJogInProgress.direction : void 0,
3166
3219
  label: /* @__PURE__ */ S(et, { children: [
3167
- /* @__PURE__ */ a(Je, {}),
3220
+ /* @__PURE__ */ a(Le, {}),
3168
3221
  /* @__PURE__ */ a(
3169
- E,
3222
+ _,
3170
3223
  {
3171
3224
  sx: {
3172
3225
  fontSize: "24px",
@@ -3179,7 +3232,7 @@ const qt = J(
3179
3232
  getDisplayedValue: () => {
3180
3233
  var y, f;
3181
3234
  return d(
3182
- ((f = (y = t.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.orientation) == null ? void 0 : f[tt[u.id]]) || 0
3235
+ ((f = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.orientation) == null ? void 0 : f[tt[u.id]]) || 0
3183
3236
  );
3184
3237
  },
3185
3238
  startJogging: (y) => c({
@@ -3197,26 +3250,26 @@ const qt = J(
3197
3250
  )
3198
3251
  }
3199
3252
  ),
3200
- /* @__PURE__ */ a(Ut, { store: t }),
3201
- e && /* @__PURE__ */ a(Y, {}),
3202
- e
3253
+ /* @__PURE__ */ a(Ht, { store: e }),
3254
+ t && /* @__PURE__ */ a(Y, {}),
3255
+ t
3203
3256
  ]
3204
3257
  }
3205
3258
  );
3206
3259
  }
3207
- ), _o = J(
3208
- ({ store: t, children: e }) => {
3260
+ ), Oo = J(
3261
+ ({ store: e, children: t }) => {
3209
3262
  const o = F();
3210
3263
  async function r(n) {
3211
- await t.activate(), await t.jogger.rotateJoints({
3264
+ await e.activate(), await e.jogger.rotateJoints({
3212
3265
  joint: n.joint,
3213
3266
  direction: n.direction,
3214
- velocityUnit: t.jointType === G.PrismaticJoint ? "mm/s" : "rad/s",
3215
- velocityValue: t.jointType === G.PrismaticJoint ? t.translationVelocityMmPerSec : t.rotationVelocityRadsPerSec
3267
+ velocityUnit: e.jointType === W.PrismaticJoint ? "mm/s" : "rad/s",
3268
+ velocityValue: e.jointType === W.PrismaticJoint ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec
3216
3269
  });
3217
3270
  }
3218
3271
  async function i() {
3219
- await t.jogger.stop(), await t.deactivate();
3272
+ await e.jogger.stop(), await e.deactivate();
3220
3273
  }
3221
3274
  return /* @__PURE__ */ S(
3222
3275
  P,
@@ -3228,10 +3281,11 @@ const qt = J(
3228
3281
  sx: { padding: "18px 24px" },
3229
3282
  children: [
3230
3283
  /* @__PURE__ */ a(
3231
- qt,
3284
+ Yt,
3232
3285
  {
3233
- store: t,
3234
- useDegree: t.jointType === G.RevoluteJoint
3286
+ store: e,
3287
+ useDegree: e.jointType === W.RevoluteJoint,
3288
+ isJointVelocitySlider: !0
3235
3289
  }
3236
3290
  ),
3237
3291
  /* @__PURE__ */ a(Y, {}),
@@ -3248,9 +3302,9 @@ const qt = J(
3248
3302
  "aria-label": "jogging-joint-value-controls-wrapper",
3249
3303
  alignItems: "center",
3250
3304
  gap: "24px",
3251
- children: t.jogger.motionStream.joints.map((n) => {
3305
+ children: e.jogger.motionStream.joints.map((n) => {
3252
3306
  var s, l, g;
3253
- const c = (g = (l = (s = t.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : s.joints) == null ? void 0 : l[n.index]) == null ? void 0 : g.position;
3307
+ const c = (g = (l = (s = e.motionGroupDescription.operation_limits.auto_limits) == null ? void 0 : s.joints) == null ? void 0 : l[n.index]) == null ? void 0 : g.position;
3254
3308
  return /* @__PURE__ */ S(
3255
3309
  P,
3256
3310
  {
@@ -3262,22 +3316,22 @@ const qt = J(
3262
3316
  spacing: 1.5,
3263
3317
  width: "100%",
3264
3318
  children: [
3265
- t.showJointsLegend && /* @__PURE__ */ a(
3266
- E,
3319
+ e.showJointsLegend && /* @__PURE__ */ a(
3320
+ _,
3267
3321
  {
3268
- color: t.isLocked ? o.palette.text.disabled : o.palette.text.secondary,
3322
+ color: e.isLocked ? o.palette.text.disabled : o.palette.text.secondary,
3269
3323
  children: `G${n.index + 1}`
3270
3324
  }
3271
3325
  ),
3272
3326
  /* @__PURE__ */ a(
3273
- xo,
3327
+ vo,
3274
3328
  {
3275
- disabled: t.isLocked,
3329
+ disabled: e.isLocked,
3276
3330
  lowerLimit: c == null ? void 0 : c.lower_limit,
3277
3331
  upperLimit: c == null ? void 0 : c.upper_limit,
3278
- useDegree: t.jointType === G.RevoluteJoint,
3332
+ useDegree: e.jointType === W.RevoluteJoint,
3279
3333
  getValue: () => {
3280
- const m = t.jogger.motionStream.rapidlyChangingMotionState.joint_position[n.index];
3334
+ const m = e.jogger.motionStream.rapidlyChangingMotionState.joint_position[n.index];
3281
3335
  return m !== void 0 ? m : void 0;
3282
3336
  },
3283
3337
  startJogging: (m) => r({
@@ -3296,16 +3350,16 @@ const qt = J(
3296
3350
  )
3297
3351
  }
3298
3352
  ),
3299
- /* @__PURE__ */ a(Ut, { store: t }),
3300
- e && /* @__PURE__ */ a(Y, {}),
3301
- e
3353
+ /* @__PURE__ */ a(Ht, { store: e }),
3354
+ t && /* @__PURE__ */ a(Y, {}),
3355
+ t
3302
3356
  ]
3303
3357
  }
3304
3358
  );
3305
3359
  }
3306
- ), ui = $(
3307
- J((t) => {
3308
- const e = ve(t.nova) ? new be({ instanceUrl: t.nova }) : t.nova, o = Ft(() => ({
3360
+ ), mi = $(
3361
+ J((e) => {
3362
+ const t = Te(e.nova) ? new Se({ instanceUrl: e.nova }) : e.nova, o = Lt(() => ({
3309
3363
  joggingStore: null,
3310
3364
  loadingError: null
3311
3365
  }));
@@ -3314,25 +3368,25 @@ const qt = J(
3314
3368
  o.loadingError = null, o.joggingStore = null;
3315
3369
  });
3316
3370
  try {
3317
- let i = t.store;
3371
+ let i = e.store;
3318
3372
  if (!i) {
3319
- const n = await ft.open(e, t.motionGroupId);
3373
+ const n = await ft.open(t, e.motionGroupId);
3320
3374
  i = await bt.loadFor(n);
3321
3375
  }
3322
3376
  L(() => {
3323
3377
  o.joggingStore = i;
3324
- }), t.onSetup && t.onSetup(i);
3378
+ }), e.onSetup && e.onSetup(i);
3325
3379
  } catch (i) {
3326
3380
  o.loadingError = i;
3327
3381
  }
3328
3382
  }
3329
- return A(() => (r(), t.store ? () => null : () => {
3383
+ return A(() => (r(), e.store ? () => null : () => {
3330
3384
  var i;
3331
3385
  (i = o.joggingStore) == null || i.dispose();
3332
- }), [t.store, t.nova, t.motionGroupId]), A(() => {
3386
+ }), [e.store, e.nova, e.motionGroupId]), A(() => {
3333
3387
  const i = o.joggingStore;
3334
- i && (t.locked ? i.lock("external") : i.unlock("external"));
3335
- }, [o.joggingStore, t.locked]), /* @__PURE__ */ a(
3388
+ i && (e.locked ? i.lock("external") : i.unlock("external"));
3389
+ }, [o.joggingStore, e.locked]), /* @__PURE__ */ a(
3336
3390
  P,
3337
3391
  {
3338
3392
  "data-testid": "jogging-panel",
@@ -3341,41 +3395,41 @@ const qt = J(
3341
3395
  maxWidth: "460px",
3342
3396
  minWidth: "320px",
3343
3397
  position: "relative",
3344
- ...t.sx
3398
+ ...e.sx
3345
3399
  },
3346
- children: o.joggingStore ? /* @__PURE__ */ a(Po, { store: o.joggingStore, children: t.children }) : /* @__PURE__ */ a(vo, { message: "Loading jogging", error: o.loadingError })
3400
+ children: o.joggingStore ? /* @__PURE__ */ a(Ao, { store: o.joggingStore, children: e.children }) : /* @__PURE__ */ a(To, { message: "Loading jogging", error: o.loadingError })
3347
3401
  }
3348
3402
  );
3349
3403
  })
3350
- ), Po = J(
3404
+ ), Ao = J(
3351
3405
  ({
3352
- store: t,
3353
- children: e
3406
+ store: e,
3407
+ children: t
3354
3408
  }) => {
3355
3409
  const { t: o } = V();
3356
3410
  function r() {
3357
- if (t.currentTab.id === "cartesian")
3358
- return /* @__PURE__ */ a(jo, { store: t, children: e });
3359
- if (t.currentTab.id === "joint")
3360
- return /* @__PURE__ */ a(_o, { store: t, children: e });
3411
+ if (e.currentTab.id === "cartesian")
3412
+ return /* @__PURE__ */ a(Do, { store: e, children: t });
3413
+ if (e.currentTab.id === "joint")
3414
+ return /* @__PURE__ */ a(Oo, { store: e, children: t });
3361
3415
  }
3362
3416
  return /* @__PURE__ */ S(P, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
3363
3417
  /* @__PURE__ */ a(
3364
- zt,
3418
+ Vt,
3365
3419
  {
3366
3420
  "data-testid": "jogging-tabs",
3367
3421
  "aria-label": "jogging-tabs",
3368
- value: t.tabIndex,
3369
- onChange: t.onTabChange,
3422
+ value: e.tabIndex,
3423
+ onChange: e.onTabChange,
3370
3424
  variant: "fullWidth",
3371
- children: t.tabs.map((i) => {
3372
- const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(he, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(fe, { fontSize: "small", sx: { mr: 1 } });
3425
+ children: e.tabs.map((i) => {
3426
+ 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 } });
3373
3427
  return /* @__PURE__ */ a(
3374
- $t,
3428
+ zt,
3375
3429
  {
3376
3430
  "data-testid": `jogging-tab-${i.id}`,
3377
3431
  "aria-label": `jogging-tab-${i.id}`,
3378
- label: t.showTabIcons ? /* @__PURE__ */ S(P, { direction: "row", alignItems: "center", children: [
3432
+ label: e.showTabIcons ? /* @__PURE__ */ S(P, { direction: "row", alignItems: "center", children: [
3379
3433
  c,
3380
3434
  n
3381
3435
  ] }) : n,
@@ -3396,17 +3450,17 @@ const qt = J(
3396
3450
  children: r()
3397
3451
  }
3398
3452
  ),
3399
- t.blocked && /* @__PURE__ */ a(wo, { store: t })
3453
+ e.blocked && /* @__PURE__ */ a(ko, { store: e })
3400
3454
  ] });
3401
3455
  }
3402
- ), Yt = (t) => {
3456
+ ), Zt = (e) => {
3403
3457
  var s;
3404
- const { value: e, ref: o } = t, r = F(), [i, n] = B(!1);
3458
+ const { value: t, ref: o } = e, r = F(), [i, n] = B(!1);
3405
3459
  async function c() {
3406
3460
  if (!o || !("current" in o))
3407
3461
  return console.warn("No copy target found"), !1;
3408
3462
  try {
3409
- return await navigator.clipboard.writeText(e), console.log("Copied!"), n(!0), !0;
3463
+ return await navigator.clipboard.writeText(t), console.log("Copied!"), n(!0), !0;
3410
3464
  } catch (l) {
3411
3465
  console.error(l);
3412
3466
  const g = window.getSelection();
@@ -3424,7 +3478,7 @@ const qt = J(
3424
3478
  return () => {
3425
3479
  l && clearTimeout(l);
3426
3480
  };
3427
- }, [i]), /* @__PURE__ */ a(qe, { open: i, title: "Copied!", children: /* @__PURE__ */ a(
3481
+ }, [i]), /* @__PURE__ */ a(Qe, { open: i, title: "Copied!", children: /* @__PURE__ */ a(
3428
3482
  P,
3429
3483
  {
3430
3484
  justifyContent: "center",
@@ -3439,7 +3493,7 @@ const qt = J(
3439
3493
  },
3440
3494
  onClick: () => c(),
3441
3495
  children: /* @__PURE__ */ a(
3442
- E,
3496
+ _,
3443
3497
  {
3444
3498
  ref: o,
3445
3499
  align: "center",
@@ -3453,14 +3507,14 @@ const qt = J(
3453
3507
  width: "100%",
3454
3508
  overflow: "hidden"
3455
3509
  },
3456
- children: e
3510
+ children: t
3457
3511
  }
3458
3512
  )
3459
3513
  }
3460
3514
  ) });
3461
- }, gi = $(
3462
- J(({ tcpPose: t, showCopyButton: e = !1 }) => {
3463
- const [o, r] = B(null), i = xe(t);
3515
+ }, hi = $(
3516
+ J(({ tcpPose: e, showCopyButton: t = !1 }) => {
3517
+ const [o, r] = B(null), i = ve(e);
3464
3518
  return /* @__PURE__ */ S(
3465
3519
  P,
3466
3520
  {
@@ -3470,8 +3524,8 @@ const qt = J(
3470
3524
  sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
3471
3525
  "data-testid": "pose-cartesian-values",
3472
3526
  children: [
3473
- /* @__PURE__ */ a(Yt, { value: i }),
3474
- e && /* @__PURE__ */ a(
3527
+ /* @__PURE__ */ a(Zt, { value: i }),
3528
+ t && /* @__PURE__ */ a(
3475
3529
  Z,
3476
3530
  {
3477
3531
  variant: "contained",
@@ -3492,9 +3546,9 @@ const qt = J(
3492
3546
  }
3493
3547
  );
3494
3548
  })
3495
- ), pi = $(
3496
- J(({ joints: t, showCopyButton: e = !1 }) => {
3497
- const [o, r] = B(null), i = `[${t.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
3549
+ ), fi = $(
3550
+ J(({ joints: e, showCopyButton: t = !1 }) => {
3551
+ const [o, r] = B(null), i = `[${e.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
3498
3552
  return /* @__PURE__ */ S(
3499
3553
  P,
3500
3554
  {
@@ -3504,8 +3558,8 @@ const qt = J(
3504
3558
  sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
3505
3559
  "data-testid": "pose-joint-values",
3506
3560
  children: [
3507
- /* @__PURE__ */ a(Yt, { value: i }),
3508
- e && /* @__PURE__ */ a(
3561
+ /* @__PURE__ */ a(Zt, { value: i }),
3562
+ t && /* @__PURE__ */ a(
3509
3563
  Z,
3510
3564
  {
3511
3565
  variant: "contained",
@@ -3527,51 +3581,51 @@ const qt = J(
3527
3581
  );
3528
3582
  })
3529
3583
  );
3530
- class Oo {
3584
+ class Jo {
3531
3585
  constructor() {
3532
- this.messages = [], this.addMessage = (e, o = "info") => {
3586
+ this.messages = [], this.addMessage = (t, o = "info") => {
3533
3587
  const r = {
3534
3588
  id: Math.random().toString(36).substring(2, 11),
3535
3589
  timestamp: /* @__PURE__ */ new Date(),
3536
- message: e,
3590
+ message: t,
3537
3591
  level: o
3538
3592
  };
3539
3593
  this.messages.push(r);
3540
3594
  }, this.clearMessages = () => {
3541
3595
  this.messages = [];
3542
- }, this.addInfo = (e) => {
3543
- this.addMessage(e, "info");
3544
- }, this.addWarning = (e) => {
3545
- this.addMessage(e, "warning");
3546
- }, this.addError = (e) => {
3547
- this.addMessage(e, "error");
3548
- }, this.addDebug = (e) => {
3549
- this.addMessage(e, "debug");
3550
- }, we(this, {
3551
- messages: Te,
3552
- addMessage: kt,
3553
- clearMessages: kt
3596
+ }, this.addInfo = (t) => {
3597
+ this.addMessage(t, "info");
3598
+ }, this.addWarning = (t) => {
3599
+ this.addMessage(t, "warning");
3600
+ }, this.addError = (t) => {
3601
+ this.addMessage(t, "error");
3602
+ }, this.addDebug = (t) => {
3603
+ this.addMessage(t, "debug");
3604
+ }, ke(this, {
3605
+ messages: Ie,
3606
+ addMessage: Rt,
3607
+ clearMessages: Rt
3554
3608
  });
3555
3609
  }
3556
3610
  }
3557
- const at = (t, e, o) => ({
3611
+ const at = (e, t, o) => ({
3558
3612
  id: o || `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
3559
3613
  timestamp: /* @__PURE__ */ new Date(),
3560
- message: t,
3561
- level: e
3562
- }), mi = (t, e) => at(t, "debug", e), hi = (t, e) => at(t, "info", e), fi = (t, e) => at(t, "warning", e), bi = (t, e) => at(t, "error", e), Do = $(
3563
- J((t) => {
3614
+ message: e,
3615
+ level: t
3616
+ }), bi = (e, t) => at(e, "debug", t), xi = (e, t) => at(e, "info", t), yi = (e, t) => at(e, "warning", t), Si = (e, t) => at(e, "error", t), Bo = $(
3617
+ J((e) => {
3564
3618
  var m;
3565
- const { messages: e = [], onClear: o, height: r = 400, sx: i } = t, n = F(), c = D(null);
3619
+ const { messages: t = [], onClear: o, height: r = 400, sx: i } = e, n = F(), c = O(null);
3566
3620
  A(() => {
3567
- if (e.length === 0) return;
3621
+ if (t.length === 0) return;
3568
3622
  const d = c.current;
3569
3623
  if (!d) return;
3570
3624
  const u = setTimeout(() => {
3571
3625
  d.scrollTop = d.scrollHeight;
3572
3626
  }, 10);
3573
3627
  return () => clearTimeout(u);
3574
- }, [e.length]);
3628
+ }, [t.length]);
3575
3629
  const s = (d) => d.toLocaleTimeString("en-US", {
3576
3630
  hour12: !1,
3577
3631
  hour: "2-digit",
@@ -3594,10 +3648,10 @@ const at = (t, e, o) => ({
3594
3648
  const [u, p] = B(!1), [x, y] = B(!1), [f, h] = B(!1), v = d.message.length > 150, b = async () => {
3595
3649
  try {
3596
3650
  await navigator.clipboard.writeText(d.message), y(!0), setTimeout(() => y(!1), 2e3);
3597
- } catch (C) {
3598
- console.error("Failed to copy message:", C);
3651
+ } catch (w) {
3652
+ console.error("Failed to copy message:", w);
3599
3653
  }
3600
- }, w = v && !u ? `${d.message.substring(0, 150)}...` : d.message;
3654
+ }, C = v && !u ? `${d.message.substring(0, 150)}...` : d.message;
3601
3655
  return /* @__PURE__ */ a(
3602
3656
  T,
3603
3657
  {
@@ -3617,7 +3671,7 @@ const at = (t, e, o) => ({
3617
3671
  },
3618
3672
  children: /* @__PURE__ */ S(T, { sx: { display: "flex", gap: 1 }, children: [
3619
3673
  /* @__PURE__ */ S(
3620
- E,
3674
+ _,
3621
3675
  {
3622
3676
  component: "span",
3623
3677
  sx: {
@@ -3637,7 +3691,7 @@ const at = (t, e, o) => ({
3637
3691
  }
3638
3692
  ),
3639
3693
  /* @__PURE__ */ a(
3640
- E,
3694
+ _,
3641
3695
  {
3642
3696
  component: "span",
3643
3697
  sx: {
@@ -3652,7 +3706,7 @@ const at = (t, e, o) => ({
3652
3706
  flex: 1,
3653
3707
  whiteSpace: "pre-wrap"
3654
3708
  },
3655
- children: w
3709
+ children: C
3656
3710
  }
3657
3711
  ),
3658
3712
  /* @__PURE__ */ S(
@@ -3680,7 +3734,7 @@ const at = (t, e, o) => ({
3680
3734
  }
3681
3735
  },
3682
3736
  title: x ? "Copied!" : "Copy message",
3683
- children: /* @__PURE__ */ a(Ye, { sx: { fontSize: 12 } })
3737
+ children: /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } })
3684
3738
  }
3685
3739
  ),
3686
3740
  v && /* @__PURE__ */ a(
@@ -3696,7 +3750,7 @@ const at = (t, e, o) => ({
3696
3750
  }
3697
3751
  },
3698
3752
  title: u ? "Collapse" : "Expand",
3699
- children: u ? /* @__PURE__ */ a(Qe, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } })
3753
+ children: u ? /* @__PURE__ */ a(to, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(eo, { sx: { fontSize: 12 } })
3700
3754
  }
3701
3755
  )
3702
3756
  ]
@@ -3708,7 +3762,7 @@ const at = (t, e, o) => ({
3708
3762
  );
3709
3763
  };
3710
3764
  return /* @__PURE__ */ S(
3711
- Ke,
3765
+ oo,
3712
3766
  {
3713
3767
  sx: {
3714
3768
  backgroundColor: ((m = n.palette.backgroundPaperElevation) == null ? void 0 : m[2]) || "#171927",
@@ -3733,7 +3787,7 @@ const at = (t, e, o) => ({
3733
3787
  children: [
3734
3788
  /* @__PURE__ */ S(T, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
3735
3789
  /* @__PURE__ */ a(
3736
- Ze,
3790
+ Ke,
3737
3791
  {
3738
3792
  sx: {
3739
3793
  fontSize: 16,
@@ -3743,7 +3797,7 @@ const at = (t, e, o) => ({
3743
3797
  }
3744
3798
  ),
3745
3799
  /* @__PURE__ */ a(
3746
- E,
3800
+ _,
3747
3801
  {
3748
3802
  sx: {
3749
3803
  fontWeight: 500,
@@ -3809,8 +3863,8 @@ const at = (t, e, o) => ({
3809
3863
  }
3810
3864
  }
3811
3865
  },
3812
- children: e.length === 0 ? /* @__PURE__ */ a(
3813
- E,
3866
+ children: t.length === 0 ? /* @__PURE__ */ a(
3867
+ _,
3814
3868
  {
3815
3869
  sx: {
3816
3870
  color: n.palette.text.disabled,
@@ -3821,28 +3875,28 @@ const at = (t, e, o) => ({
3821
3875
  },
3822
3876
  children: "No log messages"
3823
3877
  }
3824
- ) : e.map((d) => /* @__PURE__ */ a(g, { message: d }, d.id))
3878
+ ) : t.map((d) => /* @__PURE__ */ a(g, { message: d }, d.id))
3825
3879
  }
3826
3880
  )
3827
3881
  ]
3828
3882
  }
3829
3883
  );
3830
3884
  })
3831
- ), xi = $(
3832
- J((t) => {
3833
- const { store: e, onStoreReady: o, ...r } = t, i = D(o);
3885
+ ), vi = $(
3886
+ J((e) => {
3887
+ const { store: t, onStoreReady: o, ...r } = e, i = O(o);
3834
3888
  A(() => {
3835
3889
  i.current = o;
3836
3890
  }, [o]);
3837
3891
  const n = rt(() => {
3838
3892
  var l;
3839
- const s = e || new Oo();
3893
+ const s = t || new Jo();
3840
3894
  return (l = i.current) == null || l.call(i, s), s;
3841
- }, [e]), c = () => {
3895
+ }, [t]), c = () => {
3842
3896
  n.clearMessages();
3843
3897
  };
3844
3898
  return /* @__PURE__ */ a(
3845
- Do,
3899
+ Bo,
3846
3900
  {
3847
3901
  ...r,
3848
3902
  messages: n.messages,
@@ -3851,19 +3905,19 @@ const at = (t, e, o) => ({
3851
3905
  );
3852
3906
  })
3853
3907
  );
3854
- function Ao() {
3855
- const t = window.location.href;
3856
- return t.substring(
3908
+ function Fo() {
3909
+ const e = window.location.href;
3910
+ return e.substring(
3857
3911
  0,
3858
- t.indexOf("/", t.indexOf("//") + 2)
3912
+ e.indexOf("/", e.indexOf("//") + 2)
3859
3913
  );
3860
3914
  }
3861
- function yi({
3862
- baseUrl: t = Ao(),
3863
- ...e
3915
+ function wi({
3916
+ baseUrl: e = Fo(),
3917
+ ...t
3864
3918
  }) {
3865
3919
  return /* @__PURE__ */ S(
3866
- to,
3920
+ no,
3867
3921
  {
3868
3922
  "aria-labelledby": "no-motion-group-modal-title",
3869
3923
  open: !0,
@@ -3883,9 +3937,9 @@ function yi({
3883
3937
  }
3884
3938
  },
3885
3939
  children: [
3886
- /* @__PURE__ */ a(no, { id: "no-motion-group-modal-title", children: "No motion group found" }),
3940
+ /* @__PURE__ */ a(ao, { id: "no-motion-group-modal-title", children: "No motion group found" }),
3887
3941
  /* @__PURE__ */ S(
3888
- oo,
3942
+ ro,
3889
3943
  {
3890
3944
  sx: {
3891
3945
  marginTop: "3rem",
@@ -3893,16 +3947,16 @@ function yi({
3893
3947
  textAlign: "center"
3894
3948
  },
3895
3949
  children: [
3896
- /* @__PURE__ */ a(E, { color: "#fff", children: "Found no devices to connect to." }),
3897
- /* @__PURE__ */ a(E, { color: "#fff", children: "Please ensure a motion group has been created." })
3950
+ /* @__PURE__ */ a(_, { color: "#fff", children: "Found no devices to connect to." }),
3951
+ /* @__PURE__ */ a(_, { color: "#fff", children: "Please ensure a motion group has been created." })
3898
3952
  ]
3899
3953
  }
3900
3954
  ),
3901
- /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ S(P, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
3955
+ /* @__PURE__ */ a(io, { children: /* @__PURE__ */ S(P, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
3902
3956
  /* @__PURE__ */ a(
3903
3957
  Z,
3904
3958
  {
3905
- href: `${t}/settings`,
3959
+ href: `${e}/settings`,
3906
3960
  variant: "contained",
3907
3961
  sx: {
3908
3962
  borderRadius: "8px",
@@ -3914,7 +3968,7 @@ function yi({
3914
3968
  /* @__PURE__ */ a(
3915
3969
  Z,
3916
3970
  {
3917
- href: `${t}`,
3971
+ href: `${e}`,
3918
3972
  variant: "text",
3919
3973
  sx: {
3920
3974
  marginTop: "1rem",
@@ -3930,12 +3984,12 @@ function yi({
3930
3984
  }
3931
3985
  );
3932
3986
  }
3933
- var Zt = /* @__PURE__ */ ((t) => (t.PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED", t.ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED", t.CELL_OPEN = "CELL_OPEN", t.E_STOP = "E_STOP", t.MANUAL_MODE = "MANUAL_MODE", t.READY = "READY", t))(Zt || {});
3934
- const Jo = $(
3935
- J(({ setupState: t, className: e }) => {
3987
+ var Qt = /* @__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))(Qt || {});
3988
+ const Lo = $(
3989
+ J(({ setupState: e, className: t }) => {
3936
3990
  const o = F(), { t: r } = V(), i = () => {
3937
3991
  var g, m, d, u, p, x, y;
3938
- switch (t) {
3992
+ switch (e) {
3939
3993
  case "READY":
3940
3994
  return {
3941
3995
  label: r("RobotSetupReadinessIndicator.Ready.lb"),
@@ -3983,9 +4037,9 @@ const Jo = $(
3983
4037
  }
3984
4038
  }, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = i();
3985
4039
  return /* @__PURE__ */ a(
3986
- ro,
4040
+ lo,
3987
4041
  {
3988
- className: e,
4042
+ className: t,
3989
4043
  label: /* @__PURE__ */ S(
3990
4044
  T,
3991
4045
  {
@@ -4008,7 +4062,7 @@ const Jo = $(
4008
4062
  }
4009
4063
  ),
4010
4064
  /* @__PURE__ */ a(
4011
- E,
4065
+ _,
4012
4066
  {
4013
4067
  variant: "body2",
4014
4068
  sx: {
@@ -4037,17 +4091,17 @@ const Jo = $(
4037
4091
  }
4038
4092
  );
4039
4093
  })
4040
- ), Si = $(
4094
+ ), Ci = $(
4041
4095
  J(
4042
4096
  ({
4043
- robotName: t,
4044
- robotType: e,
4097
+ robotName: e,
4098
+ robotType: t,
4045
4099
  setupState: o,
4046
- PreconditionComponent: r = Jo,
4100
+ PreconditionComponent: r = Lo,
4047
4101
  className: i
4048
4102
  }) => {
4049
4103
  var l;
4050
- const n = F(), c = e || "Robot", s = o === Zt.READY;
4104
+ const n = F(), c = t || "Robot", s = o === Qt.READY;
4051
4105
  return /* @__PURE__ */ S(
4052
4106
  T,
4053
4107
  {
@@ -4090,10 +4144,10 @@ const Jo = $(
4090
4144
  fill: `${n.palette.primary.main} !important`
4091
4145
  }
4092
4146
  },
4093
- children: /* @__PURE__ */ a(Be, {})
4147
+ children: /* @__PURE__ */ a($e, {})
4094
4148
  }
4095
4149
  ) : /* @__PURE__ */ a(
4096
- io,
4150
+ so,
4097
4151
  {
4098
4152
  sx: {
4099
4153
  color: n.palette.error.main,
@@ -4102,14 +4156,14 @@ const Jo = $(
4102
4156
  }
4103
4157
  ),
4104
4158
  /* @__PURE__ */ a(
4105
- E,
4159
+ _,
4106
4160
  {
4107
4161
  variant: "body1",
4108
4162
  sx: {
4109
4163
  fontWeight: 500,
4110
4164
  color: n.palette.text.primary
4111
4165
  },
4112
- children: t
4166
+ children: e
4113
4167
  }
4114
4168
  ),
4115
4169
  /* @__PURE__ */ a(
@@ -4125,7 +4179,7 @@ const Jo = $(
4125
4179
  }
4126
4180
  ),
4127
4181
  /* @__PURE__ */ a(
4128
- E,
4182
+ _,
4129
4183
  {
4130
4184
  variant: "body2",
4131
4185
  sx: {
@@ -4143,21 +4197,21 @@ const Jo = $(
4143
4197
  );
4144
4198
  }
4145
4199
  )
4146
- ), Bo = gt(ao, {
4147
- shouldForwardProp: (t) => t !== "selected"
4148
- })(({ theme: t }) => {
4149
- var e, o, r;
4200
+ ), $o = gt(co, {
4201
+ shouldForwardProp: (e) => e !== "selected"
4202
+ })(({ theme: e }) => {
4203
+ var t, o, r;
4150
4204
  return {
4151
4205
  borderRadius: "20px",
4152
4206
  "&:hover": {
4153
- background: (e = t.palette.backgroundPaperElevation) == null ? void 0 : e[7]
4207
+ background: (t = e.palette.backgroundPaperElevation) == null ? void 0 : t[7]
4154
4208
  },
4155
4209
  variants: [
4156
4210
  {
4157
4211
  props: ({ selected: i }) => !i,
4158
4212
  style: {
4159
- background: (o = t.palette.backgroundPaperElevation) == null ? void 0 : o[0],
4160
- color: t.palette.action.disabled,
4213
+ background: (o = e.palette.backgroundPaperElevation) == null ? void 0 : o[0],
4214
+ color: e.palette.action.disabled,
4161
4215
  "> img": {
4162
4216
  opacity: 0.4
4163
4217
  }
@@ -4166,28 +4220,28 @@ const Jo = $(
4166
4220
  {
4167
4221
  props: ({ selected: i }) => i,
4168
4222
  style: {
4169
- background: (r = t.palette.backgroundPaperElevation) == null ? void 0 : r[11],
4170
- border: `1px solid ${t.palette.divider}`,
4171
- color: t.palette.primary.contrastText
4223
+ background: (r = e.palette.backgroundPaperElevation) == null ? void 0 : r[11],
4224
+ border: `1px solid ${e.palette.divider}`,
4225
+ color: e.palette.primary.contrastText
4172
4226
  }
4173
4227
  }
4174
4228
  ]
4175
4229
  };
4176
- }), vi = (t) => {
4177
- const { ref: e, ...o } = t;
4230
+ }), Ti = (e) => {
4231
+ const { ref: t, ...o } = e;
4178
4232
  return /* @__PURE__ */ a(
4179
- Bo,
4233
+ $o,
4180
4234
  {
4181
- ref: e,
4182
- selected: t.selected,
4235
+ ref: t,
4236
+ selected: e.selected,
4183
4237
  ...o,
4184
4238
  color: "secondary",
4185
4239
  variant: "circular"
4186
4240
  }
4187
4241
  );
4188
4242
  };
4189
- function Fo(t) {
4190
- const { children: e, value: o, index: r, ...i } = t;
4243
+ function zo(e) {
4244
+ const { children: t, value: o, index: r, ...i } = e;
4191
4245
  return /* @__PURE__ */ a(
4192
4246
  "div",
4193
4247
  {
@@ -4196,11 +4250,11 @@ function Fo(t) {
4196
4250
  id: `tabpanel-${r}`,
4197
4251
  "aria-labelledby": `tab-${r}`,
4198
4252
  ...i,
4199
- children: o === r && /* @__PURE__ */ a(T, { children: e })
4253
+ children: o === r && /* @__PURE__ */ a(T, { children: t })
4200
4254
  }
4201
4255
  );
4202
4256
  }
4203
- function Lo({ children: t, ...e }) {
4257
+ function Vo({ children: e, ...t }) {
4204
4258
  const {
4205
4259
  fullWidth: o,
4206
4260
  indicator: r,
@@ -4212,22 +4266,22 @@ function Lo({ children: t, ...e }) {
4212
4266
  value: g,
4213
4267
  variant: m,
4214
4268
  ...d
4215
- } = e;
4216
- return /* @__PURE__ */ a(T, { ...d, children: t });
4269
+ } = t;
4270
+ return /* @__PURE__ */ a(T, { ...d, children: e });
4217
4271
  }
4218
- const Ci = $(
4219
- J((t) => {
4272
+ const Mi = $(
4273
+ J((e) => {
4220
4274
  const {
4221
- items: e,
4275
+ items: t,
4222
4276
  activeTab: o,
4223
4277
  defaultActiveTab: r = 0,
4224
4278
  onTabChange: i,
4225
4279
  sx: n,
4226
4280
  ref: c
4227
- } = t, s = o !== void 0, [l, g] = B(r), m = s ? o : l;
4281
+ } = e, s = o !== void 0, [l, g] = B(r), m = s ? o : l;
4228
4282
  A(() => {
4229
- s || e.length !== 0 && (l < 0 || l > e.length - 1) && g(0);
4230
- }, [e.length, s, l]);
4283
+ s || t.length !== 0 && (l < 0 || l > t.length - 1) && g(0);
4284
+ }, [t.length, s, l]);
4231
4285
  const d = (u, p) => {
4232
4286
  s || g(p), i == null || i(p);
4233
4287
  };
@@ -4254,7 +4308,7 @@ const Ci = $(
4254
4308
  // 20px
4255
4309
  },
4256
4310
  children: /* @__PURE__ */ a(
4257
- zt,
4311
+ Vt,
4258
4312
  {
4259
4313
  value: m,
4260
4314
  onChange: d,
@@ -4279,20 +4333,20 @@ const Ci = $(
4279
4333
  overflow: "visible"
4280
4334
  }
4281
4335
  },
4282
- children: e.map((u, p) => {
4283
- var w, C, M;
4336
+ children: t.map((u, p) => {
4337
+ var C, w, M;
4284
4338
  const x = () => {
4285
4339
  if (!u.badge) return;
4286
- const k = u.badge.content, R = u.badge.max;
4287
- return typeof k == "number" && R && k > R ? `${R}+` : k;
4340
+ const I = u.badge.content, R = u.badge.max;
4341
+ return typeof I == "number" && R && I > R ? `${R}+` : I;
4288
4342
  }, y = () => {
4289
4343
  if (!u.badge) return !1;
4290
- const k = u.badge.content, R = u.badge.showZero;
4291
- return !(k === 0 && !R);
4344
+ const I = u.badge.content, R = u.badge.showZero;
4345
+ return !(I === 0 && !R);
4292
4346
  }, f = x(), h = y(), v = () => {
4293
4347
  s || g(p), i == null || i(p);
4294
4348
  }, b = /* @__PURE__ */ a(
4295
- $t,
4349
+ zt,
4296
4350
  {
4297
4351
  label: u.label,
4298
4352
  icon: u.icon,
@@ -4304,9 +4358,9 @@ const Ci = $(
4304
4358
  height: "32px",
4305
4359
  padding: "0px 10px",
4306
4360
  borderRadius: "12px",
4307
- backgroundColor: (k) => {
4361
+ backgroundColor: (I) => {
4308
4362
  var R;
4309
- return ((R = k.palette.backgroundPaperElevation) == null ? void 0 : R[11]) || "#32344B";
4363
+ return ((R = I.palette.backgroundPaperElevation) == null ? void 0 : R[11]) || "#32344B";
4310
4364
  },
4311
4365
  color: "text.primary",
4312
4366
  opacity: m === p ? 1 : 0.38,
@@ -4319,9 +4373,9 @@ const Ci = $(
4319
4373
  },
4320
4374
  "&.Mui-selected": {
4321
4375
  opacity: 1,
4322
- backgroundColor: (k) => {
4376
+ backgroundColor: (I) => {
4323
4377
  var R;
4324
- return ((R = k.palette.backgroundPaperElevation) == null ? void 0 : R[11]) || "#32344B";
4378
+ return ((R = I.palette.backgroundPaperElevation) == null ? void 0 : R[11]) || "#32344B";
4325
4379
  },
4326
4380
  color: "text.primary"
4327
4381
  },
@@ -4336,16 +4390,16 @@ const Ci = $(
4336
4390
  u.id
4337
4391
  );
4338
4392
  return h ? /* @__PURE__ */ a(
4339
- Lo,
4393
+ Vo,
4340
4394
  {
4341
4395
  component: "span",
4342
4396
  sx: { display: "inline-flex" },
4343
4397
  children: /* @__PURE__ */ a(
4344
- so,
4398
+ uo,
4345
4399
  {
4346
4400
  badgeContent: f,
4347
- color: ((w = u.badge) == null ? void 0 : w.color) || "error",
4348
- max: (C = u.badge) == null ? void 0 : C.max,
4401
+ color: ((C = u.badge) == null ? void 0 : C.color) || "error",
4402
+ max: (w = u.badge) == null ? void 0 : w.max,
4349
4403
  showZero: (M = u.badge) == null ? void 0 : M.showZero,
4350
4404
  anchorOrigin: {
4351
4405
  vertical: "top",
@@ -4379,31 +4433,31 @@ const Ci = $(
4379
4433
  }
4380
4434
  }
4381
4435
  ),
4382
- /* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children: e.map((u, p) => /* @__PURE__ */ a(Fo, { value: m, index: p, children: u.content }, u.id)) })
4436
+ /* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children: t.map((u, p) => /* @__PURE__ */ a(zo, { value: m, index: p, children: u.content }, u.id)) })
4383
4437
  ]
4384
4438
  }
4385
4439
  );
4386
4440
  })
4387
- ), $o = (t) => {
4388
- const e = Math.floor(t / 86400), o = Math.floor(t % 86400 / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, n = [];
4389
- return e > 0 ? (n.push(e.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
4390
- }, Dt = (t, e) => {
4391
- const o = Math.floor(t / 86400), r = Math.floor(t % 86400 / 3600), i = Math.floor(t % 3600 / 60), n = t % 60;
4441
+ ), No = (e) => {
4442
+ const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
4443
+ 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(":");
4444
+ }, At = (e, t) => {
4445
+ const o = Math.floor(e / 86400), r = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), n = e % 60;
4392
4446
  if (typeof Intl < "u" && "DurationFormat" in Intl)
4393
4447
  try {
4394
4448
  const s = {};
4395
- return o > 0 && (s.days = o), r > 0 && (s.hours = r), i > 0 && (s.minutes = i), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(e, { style: "narrow" }).format(s);
4449
+ return o > 0 && (s.days = o), r > 0 && (s.hours = r), i > 0 && (s.minutes = i), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
4396
4450
  } catch {
4397
4451
  }
4398
4452
  const c = [];
4399
4453
  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(" ");
4400
- }, zo = ({
4401
- timerState: t,
4402
- animationState: e,
4454
+ }, Go = ({
4455
+ timerState: e,
4456
+ animationState: t,
4403
4457
  hasError: o,
4404
4458
  className: r
4405
4459
  }) => {
4406
- const { t: i } = V(), n = F(), { elapsedTime: c, currentProgress: s } = t, { showErrorAnimation: l, showPauseAnimation: g, showMainText: m } = e;
4460
+ const { t: i } = V(), n = F(), { elapsedTime: c, currentProgress: s } = e, { showErrorAnimation: l, showPauseAnimation: g, showMainText: m } = t;
4407
4461
  return /* @__PURE__ */ S(
4408
4462
  T,
4409
4463
  {
@@ -4418,7 +4472,7 @@ const Ci = $(
4418
4472
  },
4419
4473
  children: [
4420
4474
  /* @__PURE__ */ a(
4421
- lo,
4475
+ go,
4422
4476
  {
4423
4477
  width: 264,
4424
4478
  height: 264,
@@ -4485,7 +4539,7 @@ const Ci = $(
4485
4539
  },
4486
4540
  children: [
4487
4541
  /* @__PURE__ */ a(U, { in: m && o, timeout: 200, children: /* @__PURE__ */ a(
4488
- E,
4542
+ _,
4489
4543
  {
4490
4544
  variant: "h6",
4491
4545
  sx: {
@@ -4498,7 +4552,7 @@ const Ci = $(
4498
4552
  }
4499
4553
  ) }),
4500
4554
  /* @__PURE__ */ a(U, { in: m && !o, timeout: 300, children: /* @__PURE__ */ a(
4501
- E,
4555
+ _,
4502
4556
  {
4503
4557
  variant: "h1",
4504
4558
  sx: {
@@ -4509,7 +4563,7 @@ const Ci = $(
4509
4563
  lineHeight: 1,
4510
4564
  letterSpacing: "-0.5px"
4511
4565
  },
4512
- children: $o(c)
4566
+ children: No(c)
4513
4567
  }
4514
4568
  ) })
4515
4569
  ]
@@ -4520,14 +4574,14 @@ const Ci = $(
4520
4574
  ]
4521
4575
  }
4522
4576
  );
4523
- }, Vo = ({
4524
- timerState: t,
4525
- animationState: e,
4577
+ }, Wo = ({
4578
+ timerState: e,
4579
+ animationState: t,
4526
4580
  hasError: o,
4527
4581
  compact: r,
4528
4582
  className: i
4529
4583
  }) => {
4530
- const { t: n, i18n: c } = V(), s = F(), { elapsedTime: l, currentProgress: g } = t, { showErrorAnimation: m, showPauseAnimation: d } = e;
4584
+ const { t: n, i18n: c } = V(), s = F(), { elapsedTime: l, currentProgress: g } = e, { showErrorAnimation: m, showPauseAnimation: d } = t;
4531
4585
  return r ? /* @__PURE__ */ a(
4532
4586
  T,
4533
4587
  {
@@ -4538,7 +4592,7 @@ const Ci = $(
4538
4592
  m: 0
4539
4593
  },
4540
4594
  children: /* @__PURE__ */ a(
4541
- E,
4595
+ _,
4542
4596
  {
4543
4597
  variant: "body2",
4544
4598
  sx: {
@@ -4546,7 +4600,7 @@ const Ci = $(
4546
4600
  fontSize: "14px",
4547
4601
  transition: "color 0.5s ease-out"
4548
4602
  },
4549
- children: o ? n("timer.error") : Dt(l, c.language)
4603
+ children: o ? n("timer.error") : At(l, c.language)
4550
4604
  }
4551
4605
  )
4552
4606
  }
@@ -4621,7 +4675,7 @@ const Ci = $(
4621
4675
  }
4622
4676
  ),
4623
4677
  /* @__PURE__ */ a(
4624
- E,
4678
+ _,
4625
4679
  {
4626
4680
  variant: "body2",
4627
4681
  sx: {
@@ -4631,51 +4685,51 @@ const Ci = $(
4631
4685
  letterSpacing: "normal",
4632
4686
  transition: "color 0.8s ease-in-out, font-size 0.3s ease-out, opacity 2s ease-in-out"
4633
4687
  },
4634
- children: o ? n("timer.error") : Dt(l, c.language)
4688
+ children: o ? n("timer.error") : At(l, c.language)
4635
4689
  }
4636
4690
  )
4637
4691
  ]
4638
4692
  }
4639
4693
  );
4640
- }, No = () => {
4641
- const [t, e] = B({
4694
+ }, Uo = () => {
4695
+ const [e, t] = B({
4642
4696
  showPauseAnimation: !1,
4643
4697
  showErrorAnimation: !1,
4644
4698
  showMainText: !0
4645
- }), o = D(
4699
+ }), o = O(
4646
4700
  null
4647
- ), r = D(
4701
+ ), r = O(
4648
4702
  null
4649
- ), i = D(null), n = _(() => {
4650
- e((d) => ({ ...d, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
4651
- e((d) => ({ ...d, showPauseAnimation: !1 }));
4703
+ ), i = O(null), n = j(() => {
4704
+ t((d) => ({ ...d, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
4705
+ t((d) => ({ ...d, showPauseAnimation: !1 }));
4652
4706
  }, 800);
4653
- }, []), c = _(() => {
4654
- e((d) => ({ ...d, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
4655
- e((d) => ({ ...d, showErrorAnimation: !1 }));
4707
+ }, []), c = j(() => {
4708
+ t((d) => ({ ...d, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
4709
+ t((d) => ({ ...d, showErrorAnimation: !1 }));
4656
4710
  }, 600);
4657
- }, []), s = _(() => {
4658
- e((d) => ({ ...d, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
4659
- }, []), l = _(() => {
4660
- e((d) => ({
4711
+ }, []), s = j(() => {
4712
+ t((d) => ({ ...d, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
4713
+ }, []), l = j(() => {
4714
+ t((d) => ({
4661
4715
  ...d,
4662
4716
  showMainText: !1
4663
4717
  })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
4664
- e((d) => ({
4718
+ t((d) => ({
4665
4719
  ...d,
4666
4720
  showMainText: !0
4667
4721
  }));
4668
4722
  }, 200);
4669
- }, []), g = _(() => {
4670
- e((d) => ({
4723
+ }, []), g = j(() => {
4724
+ t((d) => ({
4671
4725
  ...d,
4672
4726
  showMainText: !0
4673
4727
  }));
4674
- }, []), m = _(() => {
4728
+ }, []), m = j(() => {
4675
4729
  o.current && clearTimeout(o.current), r.current && clearTimeout(r.current), i.current && clearTimeout(i.current);
4676
4730
  }, []);
4677
4731
  return {
4678
- animationState: t,
4732
+ animationState: e,
4679
4733
  triggerPauseAnimation: n,
4680
4734
  triggerErrorAnimation: c,
4681
4735
  clearErrorAnimation: s,
@@ -4683,9 +4737,9 @@ const Ci = $(
4683
4737
  setInitialAnimationState: g,
4684
4738
  cleanup: m
4685
4739
  };
4686
- }, Wo = ({
4687
- autoStart: t,
4688
- hasError: e,
4740
+ }, Ho = ({
4741
+ autoStart: e,
4742
+ hasError: t,
4689
4743
  onPauseAnimation: o,
4690
4744
  onErrorAnimation: r,
4691
4745
  onClearErrorAnimation: i
@@ -4696,13 +4750,13 @@ const Ci = $(
4696
4750
  isPausedState: !1,
4697
4751
  currentProgress: 0,
4698
4752
  wasRunningBeforeError: !1
4699
- }), s = D(null), l = D(null), g = D(0), m = D(0), [d] = Lt([0], {
4753
+ }), s = O(null), l = O(null), g = O(0), m = O(0), [d] = $t([0], {
4700
4754
  tension: 80,
4701
4755
  friction: 18,
4702
4756
  onChange: ([h]) => {
4703
4757
  c((v) => ({ ...v, currentProgress: h }));
4704
4758
  }
4705
- }), u = _(
4759
+ }), u = j(
4706
4760
  (h = 0) => {
4707
4761
  const v = h / 60 % 1 * 100;
4708
4762
  c((b) => ({
@@ -4710,14 +4764,14 @@ const Ci = $(
4710
4764
  elapsedTime: h,
4711
4765
  isPausedState: !1,
4712
4766
  currentProgress: v
4713
- })), g.current = 0, m.current = v, d.setImmediate([v]), t ? (l.current = Date.now() - h * 1e3, c((b) => ({ ...b, isRunning: !0 }))) : l.current = null;
4767
+ })), g.current = 0, m.current = v, d.setImmediate([v]), e ? (l.current = Date.now() - h * 1e3, c((b) => ({ ...b, isRunning: !0 }))) : l.current = null;
4714
4768
  },
4715
- [t, d]
4716
- ), p = _(() => {
4769
+ [e, d]
4770
+ ), p = j(() => {
4717
4771
  if (l.current && n.isRunning) {
4718
4772
  const v = (Date.now() - l.current) / 1e3 + g.current, b = v / 60 % 1 * 100;
4719
- d.setTarget([b]), c((w) => ({
4720
- ...w,
4773
+ d.setTarget([b]), c((C) => ({
4774
+ ...C,
4721
4775
  elapsedTime: Math.floor(v)
4722
4776
  }));
4723
4777
  }
@@ -4726,13 +4780,13 @@ const Ci = $(
4726
4780
  isRunning: !1,
4727
4781
  isPausedState: !0
4728
4782
  })), o();
4729
- }, [n.isRunning, d, o]), x = _(() => {
4783
+ }, [n.isRunning, d, o]), x = j(() => {
4730
4784
  n.isPausedState && (g.current = n.elapsedTime, l.current = Date.now(), c((h) => ({
4731
4785
  ...h,
4732
4786
  isRunning: !0,
4733
4787
  isPausedState: !1
4734
4788
  })));
4735
- }, [n.isPausedState, n.elapsedTime]), y = _(() => {
4789
+ }, [n.isPausedState, n.elapsedTime]), y = j(() => {
4736
4790
  c((h) => ({
4737
4791
  ...h,
4738
4792
  elapsedTime: 0,
@@ -4740,11 +4794,11 @@ const Ci = $(
4740
4794
  isPausedState: !1,
4741
4795
  currentProgress: 0
4742
4796
  })), g.current = 0, l.current = null, m.current = 0, d.setImmediate([0]);
4743
- }, [d]), f = _(() => n.isPausedState, [n.isPausedState]);
4797
+ }, [d]), f = j(() => n.isPausedState, [n.isPausedState]);
4744
4798
  return A(() => {
4745
- e ? (n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !0 })), p()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !1 })), x()), i());
4799
+ t ? (n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !0 })), p()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !1 })), x()), i());
4746
4800
  }, [
4747
- e,
4801
+ t,
4748
4802
  n.isRunning,
4749
4803
  n.wasRunningBeforeError,
4750
4804
  p,
@@ -4755,13 +4809,13 @@ const Ci = $(
4755
4809
  if (n.isRunning) {
4756
4810
  const h = () => {
4757
4811
  if (l.current) {
4758
- const b = (Date.now() - l.current) / 1e3 + g.current, w = b / 60 % 1 * 100;
4812
+ const b = (Date.now() - l.current) / 1e3 + g.current, C = b / 60 % 1 * 100;
4759
4813
  c((M) => ({
4760
4814
  ...M,
4761
4815
  elapsedTime: Math.floor(b)
4762
4816
  })), Math.abs(
4763
- w - m.current
4764
- ) > 0.1 && (d.setTarget([w]), m.current = w);
4817
+ C - m.current
4818
+ ) > 0.1 && (d.setTarget([C]), m.current = C);
4765
4819
  }
4766
4820
  s.current = requestAnimationFrame(h);
4767
4821
  };
@@ -4789,11 +4843,11 @@ const Ci = $(
4789
4843
  isPaused: f
4790
4844
  }
4791
4845
  };
4792
- }, wi = $(
4846
+ }, ki = $(
4793
4847
  J(
4794
4848
  ({
4795
- onTimerReady: t,
4796
- autoStart: e = !0,
4849
+ onTimerReady: e,
4850
+ autoStart: t = !0,
4797
4851
  variant: o = "default",
4798
4852
  compact: r = !1,
4799
4853
  className: i,
@@ -4806,8 +4860,8 @@ const Ci = $(
4806
4860
  clearErrorAnimation: g,
4807
4861
  setInitialAnimationState: m,
4808
4862
  cleanup: d
4809
- } = No(), { timerState: u, controls: p } = Wo({
4810
- autoStart: e,
4863
+ } = Uo(), { timerState: u, controls: p } = Ho({
4864
+ autoStart: t,
4811
4865
  hasError: n,
4812
4866
  onPauseAnimation: s,
4813
4867
  onErrorAnimation: l,
@@ -4818,13 +4872,13 @@ const Ci = $(
4818
4872
  }, [m]), A(() => {
4819
4873
  let x = !0;
4820
4874
  const y = setTimeout(() => {
4821
- x && t(p);
4875
+ x && e(p);
4822
4876
  }, 0);
4823
4877
  return () => {
4824
4878
  x = !1, clearTimeout(y);
4825
4879
  };
4826
- }, [t, p]), A(() => d, [d]), o === "small" ? /* @__PURE__ */ a(
4827
- Vo,
4880
+ }, [e, p]), A(() => d, [d]), o === "small" ? /* @__PURE__ */ a(
4881
+ Wo,
4828
4882
  {
4829
4883
  timerState: u,
4830
4884
  animationState: c,
@@ -4833,7 +4887,7 @@ const Ci = $(
4833
4887
  className: i
4834
4888
  }
4835
4889
  ) : /* @__PURE__ */ a(
4836
- zo,
4890
+ Go,
4837
4891
  {
4838
4892
  timerState: u,
4839
4893
  animationState: c,
@@ -4843,7 +4897,7 @@ const Ci = $(
4843
4897
  );
4844
4898
  }
4845
4899
  )
4846
- ), At = 1e-4, Go = {
4900
+ ), Jt = 1e-4, qo = {
4847
4901
  a: 0,
4848
4902
  d: 0,
4849
4903
  alpha: 0,
@@ -4851,16 +4905,16 @@ const Ci = $(
4851
4905
  reverse_rotation_direction: !1
4852
4906
  };
4853
4907
  class ut {
4854
- constructor(e, o, r, i, n, c, s, l, g, m) {
4855
- this.nova = e, this.controller = o, this.motionGroup = r, this.initialMotionState = i, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = g, this.controllerStateSocket = m, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = i, this.controllerState = g, m.addEventListener("message", (d) => {
4908
+ constructor(t, o, r, i, n, c, s, l, g, m) {
4909
+ 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 = g, this.controllerStateSocket = m, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = i, this.controllerState = g, m.addEventListener("message", (d) => {
4856
4910
  var p;
4857
- const u = (p = W(d.data)) == null ? void 0 : p.result;
4911
+ const u = (p = G(d.data)) == null ? void 0 : p.result;
4858
4912
  u && L(() => {
4859
4913
  this.controllerState = u;
4860
4914
  });
4861
4915
  }), n.addEventListener("message", (d) => {
4862
4916
  var p;
4863
- const u = (p = W(d.data)) == null ? void 0 : p.result;
4917
+ const u = (p = G(d.data)) == null ? void 0 : p.result;
4864
4918
  if (!u)
4865
4919
  throw new Error(
4866
4920
  `Failed to get motion state for ${this.motionGroupId}: ${d.data}`
@@ -4868,13 +4922,13 @@ class ut {
4868
4922
  Wt(
4869
4923
  this.rapidlyChangingMotionState.joint_position,
4870
4924
  u.joint_position,
4871
- At
4925
+ Jt
4872
4926
  ) || L(() => {
4873
4927
  this.rapidlyChangingMotionState.joint_position = u.joint_position;
4874
- }), Gt(
4928
+ }), Ut(
4875
4929
  this.rapidlyChangingMotionState,
4876
4930
  u,
4877
- At
4931
+ Jt
4878
4932
  ) || L(() => {
4879
4933
  this.rapidlyChangingMotionState.tcp_pose = u.tcp_pose;
4880
4934
  }), this.rapidlyChangingMotionState.standstill !== u.standstill && L(() => {
@@ -4882,25 +4936,25 @@ class ut {
4882
4936
  });
4883
4937
  }), mt(this);
4884
4938
  }
4885
- static async connectMultiple(e, o) {
4939
+ static async connectMultiple(t, o) {
4886
4940
  return Promise.all(
4887
4941
  o.map(
4888
- (r) => ut.connect(e, r)
4942
+ (r) => ut.connect(t, r)
4889
4943
  )
4890
4944
  );
4891
4945
  }
4892
- static async connect(e, o) {
4946
+ static async connect(t, o) {
4893
4947
  var h, v;
4894
- const [r, i] = o.split("@"), n = await e.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
4948
+ const [r, i] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
4895
4949
  (b) => b.motion_group === o
4896
4950
  );
4897
4951
  if (!n || !c)
4898
4952
  throw new Error(
4899
4953
  `Controller ${i} or motion group ${o} not found`
4900
4954
  );
4901
- const s = e.openReconnectingWebsocket(
4955
+ const s = t.openReconnectingWebsocket(
4902
4956
  `/controllers/${i}/motion-groups/${o}/state-stream`
4903
- ), l = await s.firstMessage(), g = (h = W(l.data)) == null ? void 0 : h.result;
4957
+ ), l = await s.firstMessage(), g = (h = G(l.data)) == null ? void 0 : h.result;
4904
4958
  if (!g)
4905
4959
  throw new Error(
4906
4960
  `Unable to parse initial motion state message ${l.data}`
@@ -4910,21 +4964,21 @@ class ut {
4910
4964
  `,
4911
4965
  g
4912
4966
  );
4913
- const d = (await e.api.controller.getRobotController(
4967
+ const d = (await t.api.controller.getRobotController(
4914
4968
  n.controller
4915
- )).configuration.kind === "VirtualController", u = await e.api.motionGroup.getMotionGroupDescription(
4969
+ )).configuration.kind === "VirtualController", u = await t.api.motionGroup.getMotionGroupDescription(
4916
4970
  i,
4917
4971
  c.motion_group
4918
4972
  ), p = Object.entries(u.tcps || {}).map(
4919
- ([b, w]) => ({
4973
+ ([b, C]) => ({
4920
4974
  id: b,
4921
- readable_name: w.name,
4922
- position: w.pose.position,
4923
- orientation: w.pose.orientation
4975
+ readable_name: C.name,
4976
+ position: C.pose.position,
4977
+ orientation: C.pose.orientation
4924
4978
  })
4925
- ), x = e.openReconnectingWebsocket(
4979
+ ), x = t.openReconnectingWebsocket(
4926
4980
  `/controllers/${n.controller}/state-stream?response_rate=1000`
4927
- ), y = await x.firstMessage(), f = (v = W(y.data)) == null ? void 0 : v.result;
4981
+ ), y = await x.firstMessage(), f = (v = G(y.data)) == null ? void 0 : v.result;
4928
4982
  if (!f)
4929
4983
  throw new Error(
4930
4984
  `Unable to parse initial controller state message ${y.data}`
@@ -4934,7 +4988,7 @@ class ut {
4934
4988
  `,
4935
4989
  f
4936
4990
  ), new ut(
4937
- e,
4991
+ t,
4938
4992
  n,
4939
4993
  c,
4940
4994
  g,
@@ -4960,16 +5014,16 @@ class ut {
4960
5014
  return this.joggingVelocity * Math.PI / 180;
4961
5015
  }
4962
5016
  get joints() {
4963
- return this.initialMotionState.joint_position.map((e, o) => ({
5017
+ return this.initialMotionState.joint_position.map((t, o) => ({
4964
5018
  index: o
4965
5019
  }));
4966
5020
  }
4967
5021
  // Please note that API v2 omits 0 values
4968
5022
  get dhParameters() {
4969
5023
  if (this.description.dh_parameters !== void 0)
4970
- return this.description.dh_parameters.map((e) => ({
4971
- ...Go,
4972
- ...e
5024
+ return this.description.dh_parameters.map((t) => ({
5025
+ ...qo,
5026
+ ...t
4973
5027
  }));
4974
5028
  }
4975
5029
  get safetyZones() {
@@ -4977,9 +5031,9 @@ class ut {
4977
5031
  }
4978
5032
  /** Gets the robot mounting position offset in 3D viz coordinates */
4979
5033
  get mountingPosition() {
4980
- var e, o, r;
5034
+ var t, o, r;
4981
5035
  return this.description.mounting ? [
4982
- (((e = this.description.mounting.position) == null ? void 0 : e[0]) || 0) / 1e3,
5036
+ (((t = this.description.mounting.position) == null ? void 0 : t[0]) || 0) / 1e3,
4983
5037
  (((o = this.description.mounting.position) == null ? void 0 : o[1]) || 0) / 1e3,
4984
5038
  (((r = this.description.mounting.position) == null ? void 0 : r[2]) || 0) / 1e3
4985
5039
  ] : [0, 0, 0];
@@ -4987,11 +5041,11 @@ class ut {
4987
5041
  /** Gets the robot mounting position rotation in 3D viz coordinates */
4988
5042
  get mountingQuaternion() {
4989
5043
  var i, n, c, s, l, g;
4990
- const e = new Et.Vector3(
5044
+ const t = new Et.Vector3(
4991
5045
  ((n = (i = this.description.mounting) == null ? void 0 : i.orientation) == null ? void 0 : n[0]) || 0,
4992
5046
  ((s = (c = this.description.mounting) == null ? void 0 : c.orientation) == null ? void 0 : s[1]) || 0,
4993
5047
  ((g = (l = this.description.mounting) == null ? void 0 : l.orientation) == null ? void 0 : g[2]) || 0
4994
- ), o = e.length(), r = e.normalize();
5048
+ ), o = t.length(), r = t.normalize();
4995
5049
  return new Et.Quaternion().setFromAxisAngle(r, o);
4996
5050
  }
4997
5051
  /**
@@ -5047,10 +5101,10 @@ class ut {
5047
5101
  ), L(() => {
5048
5102
  this.activationState = "inactive";
5049
5103
  });
5050
- } catch (e) {
5104
+ } catch (t) {
5051
5105
  throw L(() => {
5052
5106
  this.activationState = "active";
5053
- }), e;
5107
+ }), t;
5054
5108
  }
5055
5109
  }
5056
5110
  async activate() {
@@ -5068,10 +5122,10 @@ class ut {
5068
5122
  ), L(() => {
5069
5123
  this.activationState = "active";
5070
5124
  });
5071
- } catch (e) {
5125
+ } catch (t) {
5072
5126
  throw L(() => {
5073
5127
  this.activationState = "inactive";
5074
- }), e;
5128
+ }), t;
5075
5129
  }
5076
5130
  }
5077
5131
  toggleActivation() {
@@ -5080,13 +5134,13 @@ class ut {
5080
5134
  dispose() {
5081
5135
  this.motionStateSocket.close(), this.connectedJoggingSocket && this.connectedJoggingSocket.close();
5082
5136
  }
5083
- setJoggingVelocity(e) {
5084
- this.joggingVelocity = e;
5137
+ setJoggingVelocity(t) {
5138
+ this.joggingVelocity = t;
5085
5139
  }
5086
5140
  }
5087
- function Qt() {
5088
- var e, o, r, i, n, c;
5089
- const t = Jt({
5141
+ function Xt() {
5142
+ var t, o, r, i, n, c;
5143
+ const e = Bt({
5090
5144
  palette: {
5091
5145
  mode: "dark",
5092
5146
  text: {
@@ -5180,7 +5234,7 @@ function Qt() {
5180
5234
  }
5181
5235
  });
5182
5236
  return {
5183
- ...t,
5237
+ ...e,
5184
5238
  components: {
5185
5239
  MuiCssBaseline: {
5186
5240
  styleOverrides: {
@@ -5190,7 +5244,7 @@ function Qt() {
5190
5244
  },
5191
5245
  "html:hover, body:hover, *:hover": {
5192
5246
  scrollbarWidth: "thin",
5193
- scrollbarColor: `${t.palette.divider} transparent`
5247
+ scrollbarColor: `${e.palette.divider} transparent`
5194
5248
  },
5195
5249
  // Global styles for DataGrid filter popup
5196
5250
  ".MuiDataGrid-panelContent": {
@@ -5278,14 +5332,14 @@ function Qt() {
5278
5332
  {
5279
5333
  props: { color: "secondary", variant: "contained" },
5280
5334
  style: {
5281
- border: `1px solid ${t.palette.divider}`,
5282
- background: (r = (o = (e = t.paletteExt) == null ? void 0 : e.secondary) == null ? void 0 : o.tonal) == null ? void 0 : r.toString()
5335
+ border: `1px solid ${e.palette.divider}`,
5336
+ background: (r = (o = (t = e.paletteExt) == null ? void 0 : t.secondary) == null ? void 0 : o.tonal) == null ? void 0 : r.toString()
5283
5337
  }
5284
5338
  },
5285
5339
  {
5286
5340
  props: { color: "secondary", variant: "outlined" },
5287
5341
  style: {
5288
- border: `1px solid ${t.palette.divider}`
5342
+ border: `1px solid ${e.palette.divider}`
5289
5343
  }
5290
5344
  }
5291
5345
  ]
@@ -5294,9 +5348,9 @@ function Qt() {
5294
5348
  styleOverrides: {
5295
5349
  root: {
5296
5350
  textTransform: "none",
5297
- color: t.palette.text.secondary,
5351
+ color: e.palette.text.secondary,
5298
5352
  "&.Mui-selected": {
5299
- color: t.palette.text.primary
5353
+ color: e.palette.text.primary
5300
5354
  }
5301
5355
  }
5302
5356
  }
@@ -5304,7 +5358,7 @@ function Qt() {
5304
5358
  MuiTabs: {
5305
5359
  styleOverrides: {
5306
5360
  root: {
5307
- background: (i = t.palette.backgroundPaperElevation) == null ? void 0 : i[1]
5361
+ background: (i = e.palette.backgroundPaperElevation) == null ? void 0 : i[1]
5308
5362
  }
5309
5363
  }
5310
5364
  },
@@ -5356,14 +5410,14 @@ function Qt() {
5356
5410
  MuiFab: {
5357
5411
  styleOverrides: {
5358
5412
  root: {
5359
- background: (c = (n = t.paletteExt) == null ? void 0 : n.secondary) == null ? void 0 : c.tonal
5413
+ background: (c = (n = e.paletteExt) == null ? void 0 : n.secondary) == null ? void 0 : c.tonal
5360
5414
  }
5361
5415
  },
5362
5416
  variants: [
5363
5417
  {
5364
5418
  props: { color: "primary" },
5365
5419
  style: {
5366
- background: t.palette.primary.main
5420
+ background: e.palette.primary.main
5367
5421
  }
5368
5422
  }
5369
5423
  ]
@@ -5383,7 +5437,7 @@ function Qt() {
5383
5437
  disabled: "rgba(241, 77, 66, 1)"
5384
5438
  },
5385
5439
  color: "rgba(255, 198, 198, 1)",
5386
- labelColor: t.palette.text.primary
5440
+ labelColor: e.palette.text.primary
5387
5441
  },
5388
5442
  Y: {
5389
5443
  backgroundColor: "rgba(20, 151, 108, 1)",
@@ -5395,7 +5449,7 @@ function Qt() {
5395
5449
  hovered: "rgba(28, 188, 135, 1)"
5396
5450
  },
5397
5451
  color: "rgba(215, 255, 242, 1)",
5398
- labelColor: t.palette.text.primary
5452
+ labelColor: e.palette.text.primary
5399
5453
  },
5400
5454
  Z: {
5401
5455
  backgroundColor: "rgba(1, 87, 155, 1)",
@@ -5407,68 +5461,68 @@ function Qt() {
5407
5461
  hovered: "rgba(2, 136, 209, 1)"
5408
5462
  },
5409
5463
  color: "rgba(210, 239, 255, 1)",
5410
- labelColor: t.palette.text.primary
5464
+ labelColor: e.palette.text.primary
5411
5465
  }
5412
5466
  }
5413
5467
  },
5414
5468
  JoggingJoint: {
5415
5469
  Joint: {
5416
- arrowColor: t.palette.text.primary
5470
+ arrowColor: e.palette.text.primary
5417
5471
  }
5418
5472
  },
5419
5473
  VelocitySlider: {
5420
- sliderLegendColor: t.palette.text.primary
5474
+ sliderLegendColor: e.palette.text.primary
5421
5475
  }
5422
5476
  }
5423
5477
  }
5424
5478
  };
5425
5479
  }
5426
- function Uo() {
5427
- const t = Qt();
5428
- return t.palette.mode = "light", t;
5480
+ function Yo() {
5481
+ const e = Xt();
5482
+ return e.palette.mode = "light", e;
5429
5483
  }
5430
- function Ti(t) {
5484
+ function Ii(e) {
5431
5485
  var r, i, n, c;
5432
- let e = !0;
5433
- ((r = t.palette) == null ? void 0 : r.mode) === "light" ? e = !1 : ((i = t.palette) == null ? void 0 : i.mode) !== "dark" && (e = !(typeof window < "u" && ((c = (n = window.matchMedia) == null ? void 0 : n.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : c.matches)));
5434
- const o = e ? Qt() : Uo();
5435
- return Jt(o, t);
5486
+ let t = !0;
5487
+ ((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)));
5488
+ const o = t ? Xt() : Yo();
5489
+ return Bt(o, e);
5436
5490
  }
5437
5491
  export {
5438
- ci as A,
5439
- di as C,
5492
+ gi as A,
5493
+ pi as C,
5440
5494
  bt as J,
5441
- Oo as L,
5495
+ Jo as L,
5442
5496
  ht as M,
5443
- yi as N,
5444
- gi as P,
5445
- Si as R,
5446
- vi as S,
5447
- Ci as T,
5448
- Eo as V,
5449
- bo as W,
5450
- _t as a,
5451
- xo as b,
5452
- Ti as c,
5453
- ui as d,
5454
- pi as e,
5455
- vo as f,
5456
- Co as g,
5457
- xi as h,
5497
+ wi as N,
5498
+ hi as P,
5499
+ Ci as R,
5500
+ Ti as S,
5501
+ Mi as T,
5502
+ Po as V,
5503
+ So as W,
5504
+ Pt as a,
5505
+ vo as b,
5506
+ Ii as c,
5507
+ mi as d,
5508
+ fi as e,
5509
+ To as f,
5510
+ Mo as g,
5511
+ vi as h,
5458
5512
  at as i,
5459
- mi as j,
5460
- hi as k,
5461
- fi as l,
5462
- bi as m,
5463
- Do as n,
5464
- Zt as o,
5465
- Jo as p,
5466
- wi as q,
5467
- Ht as r,
5513
+ bi as j,
5514
+ xi as k,
5515
+ yi as l,
5516
+ Si as m,
5517
+ Bo as n,
5518
+ Qt as o,
5519
+ Lo as p,
5520
+ ki as q,
5521
+ qt as r,
5468
5522
  ut as s,
5469
5523
  ft as t,
5470
5524
  Wt as u,
5471
- yo as v,
5472
- Gt as w,
5473
- So as x
5525
+ wo as v,
5526
+ Ut as w,
5527
+ Co as x
5474
5528
  };