@wandelbots/wandelbots-js-react-components 5.5.5-pr.fix-select-tcp.609.20d5f81 → 5.5.5-pr.fix-select-tcp.609.fb23fba

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.
@@ -15,74 +15,74 @@ import ie from "@mui/material/SvgIcon";
15
15
  import U from "@mui/material/Fade";
16
16
  import { Gauge as re } from "@mui/x-charts/Gauge";
17
17
  import { useTranslation as V } from "react-i18next";
18
- import { f as $t, e as pt, d as ae } from "./interpolation-D9WFd-j_.js";
19
- import se from "@mui/icons-material/Clear";
20
- import le from "@mui/icons-material/FilterList";
18
+ import { f as $t, e as pt } from "./interpolation-D9WFd-j_.js";
19
+ import ae from "@mui/icons-material/Clear";
20
+ import se from "@mui/icons-material/FilterList";
21
21
  import It from "@mui/icons-material/Search";
22
22
  import Y from "@mui/material/Divider";
23
- import { useGridApiRef as ce, DataGrid as de, Toolbar as ge, FilterPanelTrigger as ue, ToolbarButton as st, QuickFilter as pe, QuickFilterTrigger as me, QuickFilterControl as he, QuickFilterClear as fe } from "@mui/x-data-grid";
24
- import be from "@mui/icons-material/OpenWith";
25
- import xe from "@mui/icons-material/Share";
23
+ import { useGridApiRef as le, DataGrid as ce, Toolbar as de, FilterPanelTrigger as ge, ToolbarButton as st, QuickFilter as ue, QuickFilterTrigger as pe, QuickFilterControl as me, QuickFilterClear as he } from "@mui/x-data-grid";
24
+ import fe from "@mui/icons-material/OpenWith";
25
+ import be from "@mui/icons-material/Share";
26
26
  import _ from "@mui/material/Stack";
27
27
  import zt from "@mui/material/Tab";
28
28
  import Vt from "@mui/material/Tabs";
29
- import { JointTypeEnum as G, NovaClient as ye, poseToWandelscriptString as Se } from "@wandelbots/nova-js/v2";
30
- import { lowerFirst as ve, countBy as Ce, isString as we } from "lodash-es";
31
- import { runInAction as B, makeAutoObservable as mt, when as lt, autorun as kt, makeObservable as Te, action as Rt, observable as Me } from "mobx";
32
- import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as Ie } from "@wandelbots/nova-js";
29
+ import { JointTypeEnum as G, NovaClient as xe, poseToWandelscriptString as ye } from "@wandelbots/nova-js/v2";
30
+ import { lowerFirst as Se, countBy as ve, isString as Ce } from "lodash-es";
31
+ import { runInAction as B, makeAutoObservable as mt, when as lt, autorun as kt, makeObservable as we, action as Rt, observable as Te } from "mobx";
32
+ import { radiansToDegrees as Nt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as Me } from "@wandelbots/nova-js";
33
33
  import { Vector3 as ct } from "three/src/math/Vector3.js";
34
34
  import Wt from "@mui/material/CircularProgress";
35
- import { capitalize as ke } from "@mui/material/utils";
36
- import { m as Re } from "./SafetyBar-C8whliAf.js";
37
- import je from "@mui/material/Alert";
38
- import Ee from "@mui/material/AlertTitle";
35
+ import { capitalize as Ie } from "@mui/material/utils";
36
+ import { m as ke } from "./SafetyBar-C8whliAf.js";
37
+ import Re from "@mui/material/Alert";
38
+ import je from "@mui/material/AlertTitle";
39
39
  import Z from "@mui/material/Button";
40
40
  import jt from "@mui/material/ToggleButton";
41
- import { c as Pe, d as _e, 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/InputAdornment";
44
- import $e from "@mui/material/FormControl";
45
- import ze from "@mui/material/InputLabel";
46
- import Ve from "@mui/material/Select";
41
+ import { c as Ee, d as Pe, F as _e, a as Oe, b as De, f as Ae, e as Je } from "./robot-Cy9ST5-m.js";
42
+ import Be from "lodash-es/isEqual.js";
43
+ import Fe from "@mui/material/InputAdornment";
44
+ import Le from "@mui/material/FormControl";
45
+ import $e from "@mui/material/InputLabel";
46
+ import ze from "@mui/material/Select";
47
47
  import nt from "lodash-es/keyBy.js";
48
- import Ne from "lodash-es/uniqueId.js";
49
- import We from "@mui/material/ToggleButtonGroup";
48
+ import Ve from "lodash-es/uniqueId.js";
49
+ import Ne from "@mui/material/ToggleButtonGroup";
50
50
  import Gt from "@mui/material/Slider";
51
- import Ge from "lodash-es/isNumber.js";
52
- import Ue from "@mui/icons-material/ChevronLeft";
53
- import He from "@mui/icons-material/ChevronRight";
54
- import qe from "lodash-es/throttle.js";
55
- import Ye from "@mui/material/Tooltip";
56
- import Ze from "@mui/icons-material/ContentCopy";
57
- import Qe from "@mui/icons-material/DescriptionOutlined";
58
- import Xe from "@mui/icons-material/ExpandLess";
59
- import Ke from "@mui/icons-material/ExpandMore";
60
- import to from "@mui/material/Paper";
61
- import eo from "@mui/material/Dialog";
62
- import oo from "@mui/material/DialogActions";
63
- import no from "@mui/material/DialogContent";
64
- import io from "@mui/material/DialogTitle";
65
- import ro from "@mui/icons-material/Error";
66
- import ao from "@mui/material/Chip";
67
- import so from "@mui/material/Fab";
68
- import lo from "@mui/material/Badge";
69
- import { Gauge as co } from "@mui/x-charts";
51
+ import We from "lodash-es/isNumber.js";
52
+ import Ge from "@mui/icons-material/ChevronLeft";
53
+ import Ue from "@mui/icons-material/ChevronRight";
54
+ import He from "lodash-es/throttle.js";
55
+ import qe from "@mui/material/Tooltip";
56
+ import Ye from "@mui/icons-material/ContentCopy";
57
+ import Ze from "@mui/icons-material/DescriptionOutlined";
58
+ import Qe from "@mui/icons-material/ExpandLess";
59
+ import Xe from "@mui/icons-material/ExpandMore";
60
+ import Ke from "@mui/material/Paper";
61
+ import to from "@mui/material/Dialog";
62
+ import eo from "@mui/material/DialogActions";
63
+ import oo from "@mui/material/DialogContent";
64
+ import no from "@mui/material/DialogTitle";
65
+ import io from "@mui/icons-material/Error";
66
+ import ro from "@mui/material/Chip";
67
+ import ao from "@mui/material/Fab";
68
+ import so from "@mui/material/Badge";
69
+ import { Gauge as lo } from "@mui/x-charts";
70
70
  import * as Et from "three";
71
71
  import { Vector3 as Pt } from "three";
72
- const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
72
+ const co = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
73
73
  "path",
74
74
  {
75
75
  d: "M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",
76
76
  fill: "currentColor",
77
77
  fillOpacity: "0.56"
78
78
  }
79
- ) }), gi = $(
79
+ ) }), di = $(
80
80
  J((e) => {
81
81
  const {
82
82
  appIcon: t,
83
83
  appName: o,
84
- apps: r = [],
85
- onAppSelect: i,
84
+ apps: i = [],
85
+ onAppSelect: r,
86
86
  disabled: n = !1,
87
87
  sx: c
88
88
  } = e, [s, l] = F(null), u = !!s, f = (p) => {
@@ -90,7 +90,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
90
90
  }, g = () => {
91
91
  l(null);
92
92
  }, d = (p) => {
93
- g(), p.onClick ? p.onClick() : p.href && (window.location.href = p.href), i == null || i(p);
93
+ g(), p.onClick ? p.onClick() : p.href && (window.location.href = p.href), r == null || r(p);
94
94
  };
95
95
  return /* @__PURE__ */ S(et, { children: [
96
96
  /* @__PURE__ */ a(
@@ -120,7 +120,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
120
120
  children: o
121
121
  }
122
122
  ),
123
- r.length > 0 && /* @__PURE__ */ a(
123
+ i.length > 0 && /* @__PURE__ */ a(
124
124
  H,
125
125
  {
126
126
  color: "inherit",
@@ -146,7 +146,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
146
146
  height: "6px"
147
147
  }
148
148
  },
149
- children: /* @__PURE__ */ a(go, {})
149
+ children: /* @__PURE__ */ a(co, {})
150
150
  }
151
151
  )
152
152
  ] })
@@ -187,7 +187,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
187
187
  mt: 1
188
188
  }
189
189
  },
190
- children: r.map((p) => /* @__PURE__ */ S(q, { onClick: () => d(p), children: [
190
+ children: i.map((p) => /* @__PURE__ */ S(q, { onClick: () => d(p), children: [
191
191
  /* @__PURE__ */ a(T, { sx: { display: "flex", alignItems: "center" }, children: p.icon }),
192
192
  /* @__PURE__ */ a(j, { variant: "body1", sx: { ml: 2 }, children: p.name })
193
193
  ] }, p.id))
@@ -195,26 +195,26 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
195
195
  )
196
196
  ] });
197
197
  })
198
- ), uo = (e) => {
199
- const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
200
- return t > 0 ? (n.push(t.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
198
+ ), go = (e) => {
199
+ const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), r = e % 60, n = [];
200
+ return t > 0 ? (n.push(t.toString()), n.push(o.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : (n.push(i.toString()), n.push(r.toString().padStart(2, "0"))), n.join(":");
201
201
  }, N = (e, t) => {
202
- const o = Math.floor(e / 86400), r = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), n = e % 60;
202
+ const o = Math.floor(e / 86400), i = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), n = e % 60;
203
203
  if (typeof Intl < "u" && "DurationFormat" in Intl)
204
204
  try {
205
205
  const s = {};
206
- return o > 0 && (s.days = o), 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
+ return o > 0 && (s.days = o), i > 0 && (s.hours = i), r > 0 && (s.minutes = r), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
207
207
  } catch {
208
208
  }
209
209
  const c = [];
210
- return o > 0 && c.push(`${o}d`), r > 0 && c.push(`${r}h`), i > 0 && c.push(`${i}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
211
- }, po = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, mo = ({
210
+ return o > 0 && c.push(`${o}d`), i > 0 && c.push(`${i}h`), r > 0 && c.push(`${r}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
211
+ }, uo = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, po = ({
212
212
  timerState: e,
213
213
  animationState: t,
214
214
  hasError: o,
215
- className: r
215
+ className: i
216
216
  }) => {
217
- const { t: i, i18n: n } = V(), c = L(), { currentState: s, remainingTime: l, maxTime: u, currentProgress: f } = e, {
217
+ const { t: r, i18n: n } = V(), c = L(), { currentState: s, remainingTime: l, maxTime: u, currentProgress: f } = e, {
218
218
  showErrorAnimation: g,
219
219
  showPauseAnimation: d,
220
220
  showPulsatingText: p,
@@ -227,7 +227,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
227
227
  return /* @__PURE__ */ S(
228
228
  T,
229
229
  {
230
- className: r,
230
+ className: i,
231
231
  sx: {
232
232
  position: "relative",
233
233
  width: 264,
@@ -324,7 +324,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
324
324
  opacity: s === "measured" && x ? p ? 1 : 0.6 : 1,
325
325
  transition: "opacity 2s ease-in-out"
326
326
  },
327
- children: s === "measuring" || s === "measured" ? i("CycleTimer.CycleTime.lb", "Cycle Time") : s === "countdown" ? i("CycleTimer.RemainingTime.lb", "Remaining Time") : ""
327
+ children: s === "measuring" || s === "measured" ? r("CycleTimer.CycleTime.lb", "Cycle Time") : s === "countdown" ? r("CycleTimer.RemainingTime.lb", "Remaining Time") : ""
328
328
  }
329
329
  )
330
330
  }
@@ -376,7 +376,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
376
376
  opacity: m ? 1 : 0.6,
377
377
  transition: "opacity 2s ease-in-out"
378
378
  },
379
- children: i(
379
+ children: r(
380
380
  "CycleTimer.WaitingForCycle.lb",
381
381
  "Waiting for program cycle"
382
382
  )
@@ -411,7 +411,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
411
411
  color: "#FFFFFF",
412
412
  lineHeight: "116.7%"
413
413
  },
414
- children: i("CycleTimer.Error.lb", "Error")
414
+ children: r("CycleTimer.Error.lb", "Error")
415
415
  }
416
416
  ) }),
417
417
  /* @__PURE__ */ a(
@@ -438,7 +438,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
438
438
  opacity: 1,
439
439
  transition: "opacity 2s ease-in-out"
440
440
  },
441
- children: uo(l)
441
+ children: go(l)
442
442
  }
443
443
  )
444
444
  }
@@ -479,7 +479,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
479
479
  opacity: s === "measured" && x ? p ? 1 : 0.6 : 1,
480
480
  transition: "opacity 2s ease-in-out"
481
481
  },
482
- children: s === "measuring" ? i("CycleTimer.Measuring.lb", "measuring...") : s === "measured" ? i("CycleTimer.Determined.lb", "determined") : s === "countdown" && u !== null ? i("CycleTimer.OfTime.lb", {
482
+ children: s === "measuring" ? r("CycleTimer.Measuring.lb", "measuring...") : s === "measured" ? r("CycleTimer.Determined.lb", "determined") : s === "countdown" && u !== null ? r("CycleTimer.OfTime.lb", {
483
483
  time: N(u, n.language)
484
484
  }) : ""
485
485
  }
@@ -496,12 +496,12 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
496
496
  ]
497
497
  }
498
498
  );
499
- }, ho = ({
499
+ }, mo = ({
500
500
  timerState: e,
501
501
  animationState: t,
502
502
  hasError: o,
503
- compact: r,
504
- className: i
503
+ compact: i,
504
+ className: r
505
505
  }) => {
506
506
  const { t: n, i18n: c } = V(), s = L(), { currentState: l, remainingTime: u, maxTime: f } = e, {
507
507
  showErrorAnimation: g,
@@ -511,10 +511,10 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
511
511
  showIdlePulsating: y,
512
512
  idleDotsCount: h
513
513
  } = t;
514
- return r && l === "idle" ? /* @__PURE__ */ a(
514
+ return i && l === "idle" ? /* @__PURE__ */ a(
515
515
  T,
516
516
  {
517
- className: i,
517
+ className: r,
518
518
  sx: {
519
519
  display: "flex",
520
520
  alignItems: "center",
@@ -536,7 +536,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
536
536
  ) : /* @__PURE__ */ S(
537
537
  T,
538
538
  {
539
- className: i,
539
+ className: r,
540
540
  sx: {
541
541
  display: "flex",
542
542
  alignItems: "center",
@@ -544,7 +544,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
544
544
  gap: 1
545
545
  },
546
546
  children: [
547
- !(l === "idle" && r) && /* @__PURE__ */ a(
547
+ !(l === "idle" && i) && /* @__PURE__ */ a(
548
548
  T,
549
549
  {
550
550
  sx: {
@@ -629,13 +629,13 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
629
629
  children: ".".repeat(h)
630
630
  }
631
631
  )
632
- ] }) : l === "measuring" ? r ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Measuring.lb", "measuring...")}` : l === "measured" ? r ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Determined.lb", "determined")}` : l === "countdown" && f !== null ? r ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Time.lb", { time: N(f, c.language) })}` : N(u, c.language)
632
+ ] }) : l === "measuring" ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Measuring.lb", "measuring...")}` : l === "measured" ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Determined.lb", "determined")}` : l === "countdown" && f !== null ? i ? N(u, c.language) : `${N(u, c.language)} / ${n("CycleTimer.Time.lb", { time: N(f, c.language) })}` : N(u, c.language)
633
633
  }
634
634
  )
635
635
  ]
636
636
  }
637
637
  );
638
- }, fo = () => {
638
+ }, ho = () => {
639
639
  const [e, t] = F({
640
640
  showPauseAnimation: !1,
641
641
  showErrorAnimation: !1,
@@ -647,10 +647,10 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
647
647
  idleDotsCount: 0
648
648
  }), o = D(
649
649
  null
650
- ), r = D(
651
- null
652
650
  ), i = D(
653
651
  null
652
+ ), r = D(
653
+ null
654
654
  ), n = D(null), c = D(0), s = D(null), l = D(
655
655
  null
656
656
  ), u = P(() => {
@@ -658,11 +658,11 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
658
658
  t((b) => ({ ...b, showPauseAnimation: !1 }));
659
659
  }, 800);
660
660
  }, []), f = P(() => {
661
- t((b) => ({ ...b, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
661
+ t((b) => ({ ...b, showErrorAnimation: !0 })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
662
662
  t((b) => ({ ...b, showErrorAnimation: !1 }));
663
663
  }, 600);
664
664
  }, []), g = P(() => {
665
- t((b) => ({ ...b, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
665
+ t((b) => ({ ...b, showErrorAnimation: !1 })), i.current && clearTimeout(i.current);
666
666
  }, []), d = P((b) => {
667
667
  c.current = 0, t((w) => ({
668
668
  ...w,
@@ -673,7 +673,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
673
673
  ...w,
674
674
  pulsatingFinished: !0
675
675
  // This will keep the success color and start slow pulsating
676
- })), i.current = setInterval(() => {
676
+ })), r.current = setInterval(() => {
677
677
  t((w) => ({
678
678
  ...w,
679
679
  showPulsatingText: !w.showPulsatingText
@@ -681,7 +681,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
681
681
  }, 2e3), b && b();
682
682
  }, 800);
683
683
  }, []), p = P(() => {
684
- i.current && (clearInterval(i.current), i.current = null), t((b) => ({
684
+ r.current && (clearInterval(r.current), r.current = null), t((b) => ({
685
685
  ...b,
686
686
  showPulsatingText: !1,
687
687
  pulsatingFinished: !1
@@ -727,7 +727,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
727
727
  showMainText: !0
728
728
  }));
729
729
  }, []), v = P(() => {
730
- o.current && clearTimeout(o.current), r.current && clearTimeout(r.current), n.current && clearTimeout(n.current), i.current && clearInterval(i.current), s.current && clearInterval(s.current), l.current && clearInterval(l.current);
730
+ o.current && clearTimeout(o.current), i.current && clearTimeout(i.current), n.current && clearTimeout(n.current), r.current && clearInterval(r.current), s.current && clearInterval(s.current), l.current && clearInterval(l.current);
731
731
  }, []);
732
732
  return {
733
733
  animationState: e,
@@ -742,12 +742,12 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
742
742
  setInitialAnimationState: m,
743
743
  cleanup: v
744
744
  };
745
- }, bo = ({
745
+ }, fo = ({
746
746
  autoStart: e,
747
747
  onCycleEnd: t,
748
748
  onMeasuringComplete: o,
749
- hasError: r,
750
- onPauseAnimation: i,
749
+ hasError: i,
750
+ onPauseAnimation: r,
751
751
  onErrorAnimation: n,
752
752
  onClearErrorAnimation: c,
753
753
  onStartPulsating: s
@@ -822,7 +822,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
822
822
  if (g.current && l.isRunning) {
823
823
  const M = Date.now() - g.current;
824
824
  d.current += M;
825
- const k = d.current / 1e3, R = po(
825
+ const k = d.current / 1e3, R = uo(
826
826
  l.currentState,
827
827
  k,
828
828
  l.maxTime
@@ -833,13 +833,13 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
833
833
  ...C,
834
834
  isRunning: !1,
835
835
  isPausedState: !0
836
- })), i();
836
+ })), r();
837
837
  }, [
838
838
  l.isRunning,
839
839
  l.currentState,
840
840
  l.maxTime,
841
841
  p,
842
- i
842
+ r
843
843
  ]), b = P(() => {
844
844
  l.isPausedState && (l.remainingTime > 0 || l.currentState !== "countdown") && (g.current = Date.now(), u((C) => ({
845
845
  ...C,
@@ -852,9 +852,9 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
852
852
  l.currentState
853
853
  ]), w = P(() => l.isPausedState, [l.isPausedState]);
854
854
  return A(() => {
855
- r ? (l.isRunning && !l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !0 })), v()), n()) : (l.wasRunningBeforeError && l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !1 })), b()), c());
855
+ i ? (l.isRunning && !l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !0 })), v()), n()) : (l.wasRunningBeforeError && l.isPausedState && (u((C) => ({ ...C, wasRunningBeforeError: !1 })), b()), c());
856
856
  }, [
857
- r,
857
+ i,
858
858
  l.isRunning,
859
859
  l.isPausedState,
860
860
  l.wasRunningBeforeError,
@@ -925,14 +925,14 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
925
925
  isPaused: w
926
926
  }
927
927
  };
928
- }, ui = $(
928
+ }, gi = $(
929
929
  J(
930
930
  ({
931
931
  onCycleComplete: e,
932
932
  onCycleEnd: t,
933
933
  onMeasuringComplete: o,
934
- autoStart: r = !0,
935
- variant: i = "default",
934
+ autoStart: i = !0,
935
+ variant: r = "default",
936
936
  compact: n = !1,
937
937
  className: c,
938
938
  hasError: s = !1
@@ -949,8 +949,8 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
949
949
  triggerFadeTransition: m,
950
950
  setInitialAnimationState: v,
951
951
  cleanup: b
952
- } = fo(), { timerState: w, controls: C } = bo({
953
- autoStart: r,
952
+ } = ho(), { timerState: w, controls: C } = fo({
953
+ autoStart: i,
954
954
  onCycleEnd: t,
955
955
  onMeasuringComplete: o,
956
956
  hasError: s,
@@ -977,8 +977,8 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
977
977
  return () => {
978
978
  M = !1, clearTimeout(k);
979
979
  };
980
- }, [e, C]), A(() => b, [b]), i === "small" ? /* @__PURE__ */ a(
981
- ho,
980
+ }, [e, C]), A(() => b, [b]), r === "small" ? /* @__PURE__ */ a(
981
+ mo,
982
982
  {
983
983
  timerState: w,
984
984
  animationState: u,
@@ -987,7 +987,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
987
987
  className: c
988
988
  }
989
989
  ) : /* @__PURE__ */ a(
990
- mo,
990
+ po,
991
991
  {
992
992
  timerState: w,
993
993
  animationState: u,
@@ -997,14 +997,14 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
997
997
  );
998
998
  }
999
999
  )
1000
- ), xo = $(
1000
+ ), bo = $(
1001
1001
  J(
1002
1002
  ({
1003
1003
  data: e,
1004
1004
  columns: t,
1005
1005
  getRowData: o,
1006
- onRowClick: r,
1007
- selectedItem: i,
1006
+ onRowClick: i,
1007
+ selectedItem: r,
1008
1008
  getItemId: n,
1009
1009
  title: c,
1010
1010
  showCount: s = !0,
@@ -1015,7 +1015,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1015
1015
  sx: d
1016
1016
  }) => {
1017
1017
  var R;
1018
- const p = L(), x = ce(), y = D(null), [h, m] = F(null), v = rt(() => e.map(o), [e, o]);
1018
+ const p = L(), x = le(), y = D(null), [h, m] = F(null), v = rt(() => e.map(o), [e, o]);
1019
1019
  A(() => {
1020
1020
  x.current && v.length > 0 && x.current.autosizeColumns({
1021
1021
  includeOutliers: !0,
@@ -1040,8 +1040,8 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1040
1040
  };
1041
1041
  }, [x, v.length, t]);
1042
1042
  const b = rt(() => {
1043
- if (i !== void 0)
1044
- return i;
1043
+ if (r !== void 0)
1044
+ return r;
1045
1045
  if (h !== null)
1046
1046
  return h;
1047
1047
  if (g && e.length > 0) {
@@ -1049,12 +1049,12 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1049
1049
  return m(I), I;
1050
1050
  }
1051
1051
  return null;
1052
- }, [g, e, i, h]), w = (I) => {
1052
+ }, [g, e, r, h]), w = (I) => {
1053
1053
  const E = e.find((z) => o(z).id === I.id);
1054
- E && (i === void 0 && m(E), r && r(E, I));
1054
+ E && (r === void 0 && m(E), i && i(E, I));
1055
1055
  }, C = rt(() => !b || !n ? null : n(b), [b, n]);
1056
1056
  function M() {
1057
- return /* @__PURE__ */ a(ge, { children: /* @__PURE__ */ S(
1057
+ return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ S(
1058
1058
  T,
1059
1059
  {
1060
1060
  sx: {
@@ -1091,9 +1091,9 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1091
1091
  },
1092
1092
  children: [
1093
1093
  /* @__PURE__ */ a(
1094
- ue,
1094
+ ge,
1095
1095
  {
1096
- render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(le, { fontSize: "small" }) })
1096
+ render: /* @__PURE__ */ a(st, { "aria-label": "Show filters", children: /* @__PURE__ */ a(se, { fontSize: "small" }) })
1097
1097
  }
1098
1098
  ),
1099
1099
  /* @__PURE__ */ a(
@@ -1108,7 +1108,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1108
1108
  }
1109
1109
  ),
1110
1110
  /* @__PURE__ */ a(
1111
- pe,
1111
+ ue,
1112
1112
  {
1113
1113
  render: (I, E) => /* @__PURE__ */ S(
1114
1114
  T,
@@ -1120,7 +1120,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1120
1120
  },
1121
1121
  children: [
1122
1122
  !E.expanded && /* @__PURE__ */ a(
1123
- me,
1123
+ pe,
1124
1124
  {
1125
1125
  render: /* @__PURE__ */ a(st, { "aria-label": "Search", children: /* @__PURE__ */ a(It, { fontSize: "small" }) })
1126
1126
  }
@@ -1236,12 +1236,12 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1236
1236
  }
1237
1237
  }
1238
1238
  ),
1239
- /* @__PURE__ */ a(he, { placeholder: l })
1239
+ /* @__PURE__ */ a(me, { placeholder: l })
1240
1240
  ]
1241
1241
  }
1242
1242
  ),
1243
1243
  E.expanded && E.value !== "" && /* @__PURE__ */ a(
1244
- fe,
1244
+ he,
1245
1245
  {
1246
1246
  render: /* @__PURE__ */ a(
1247
1247
  T,
@@ -1266,7 +1266,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1266
1266
  backgroundColor: "rgba(255, 255, 255, 0.1)"
1267
1267
  }
1268
1268
  },
1269
- children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(se, { fontSize: "small" }) })
1269
+ children: /* @__PURE__ */ a(st, { "aria-label": "Clear", children: /* @__PURE__ */ a(ae, { fontSize: "small" }) })
1270
1270
  }
1271
1271
  )
1272
1272
  }
@@ -1327,7 +1327,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1327
1327
  ...d
1328
1328
  },
1329
1329
  children: /* @__PURE__ */ a(
1330
- de,
1330
+ ce,
1331
1331
  {
1332
1332
  apiRef: x,
1333
1333
  rows: v,
@@ -1389,7 +1389,7 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1389
1389
  borderBottom: "none !important"
1390
1390
  },
1391
1391
  "& .MuiDataGrid-row": {
1392
- cursor: r ? "pointer" : "default",
1392
+ cursor: i ? "pointer" : "default",
1393
1393
  border: "none",
1394
1394
  margin: "1px 0",
1395
1395
  position: "relative",
@@ -1514,15 +1514,15 @@ const go = (e) => /* @__PURE__ */ a(ie, { ...e, viewBox: "0 0 10 8", children: /
1514
1514
  }
1515
1515
  )
1516
1516
  );
1517
- xo.displayName = "WandelbotsDataGrid";
1517
+ bo.displayName = "WandelbotsDataGrid";
1518
1518
  const _t = $(
1519
1519
  J(
1520
1520
  ({
1521
1521
  colors: e,
1522
1522
  label: t,
1523
1523
  getDisplayedValue: o,
1524
- startJogging: r,
1525
- stopJogging: i,
1524
+ startJogging: i,
1525
+ stopJogging: r,
1526
1526
  disabled: n,
1527
1527
  activeJoggingDirection: c,
1528
1528
  ...s
@@ -1584,10 +1584,10 @@ const _t = $(
1584
1584
  }
1585
1585
  };
1586
1586
  function m(E, z) {
1587
- n || E.button === 0 && (f(z), r(z));
1587
+ n || E.button === 0 && (f(z), i(z));
1588
1588
  }
1589
1589
  function v() {
1590
- f(null), i();
1590
+ f(null), r();
1591
1591
  }
1592
1592
  return /* @__PURE__ */ S(_, { height: "64px", direction: "row", justifyContent: "center", ...s, children: [
1593
1593
  /* @__PURE__ */ a(
@@ -1606,7 +1606,7 @@ const _t = $(
1606
1606
  borderBottom: `2px solid ${p ?? "#fff"}`,
1607
1607
  borderTop: `2px solid ${p ?? "#fff"}`
1608
1608
  },
1609
- children: /* @__PURE__ */ a(Pe, {})
1609
+ children: /* @__PURE__ */ a(Ee, {})
1610
1610
  }
1611
1611
  ),
1612
1612
  /* @__PURE__ */ S(
@@ -1678,20 +1678,20 @@ const _t = $(
1678
1678
  borderBottom: `2px solid ${p ?? "#fff"}`,
1679
1679
  borderTop: `2px solid ${p ?? "#fff"}`
1680
1680
  },
1681
- children: /* @__PURE__ */ a(_e, {})
1681
+ children: /* @__PURE__ */ a(Pe, {})
1682
1682
  }
1683
1683
  )
1684
1684
  ] });
1685
1685
  }
1686
1686
  )
1687
- ), yo = $(
1687
+ ), xo = $(
1688
1688
  J(
1689
1689
  ({
1690
1690
  startJogging: e,
1691
1691
  stopJogging: t,
1692
1692
  lowerLimit: o,
1693
- upperLimit: r,
1694
- useDegree: i,
1693
+ upperLimit: i,
1694
+ useDegree: r,
1695
1695
  getValue: n,
1696
1696
  disabled: c,
1697
1697
  ...s
@@ -1708,8 +1708,8 @@ const _t = $(
1708
1708
  stopJogging() {
1709
1709
  this.activeJoggingDir = null, t();
1710
1710
  }
1711
- })), x = qe(() => {
1712
- const O = i ? y(n()) : n();
1711
+ })), x = He(() => {
1712
+ const O = r ? y(n()) : n();
1713
1713
  (O === void 0 || u === void 0 || Math.abs(u - O) > 1e-9) && f(O);
1714
1714
  }, 50);
1715
1715
  pt(x);
@@ -1788,7 +1788,7 @@ const _t = $(
1788
1788
  ...p.activeJoggingDir === "-" ? d : {}
1789
1789
  },
1790
1790
  children: /* @__PURE__ */ a(
1791
- Ue,
1791
+ Ge,
1792
1792
  {
1793
1793
  sx: {
1794
1794
  pointerEvents: "none",
@@ -1828,7 +1828,7 @@ const _t = $(
1828
1828
  textAlign: "center",
1829
1829
  color: c ? g.palette.action.disabled : g.palette.text.primary
1830
1830
  },
1831
- children: i ? w(u) : C(u)
1831
+ children: r ? w(u) : C(u)
1832
1832
  }
1833
1833
  ),
1834
1834
  /* @__PURE__ */ a(
@@ -1836,8 +1836,8 @@ const _t = $(
1836
1836
  {
1837
1837
  disabled: !0,
1838
1838
  "aria-label": "Joint position",
1839
- min: i ? y(o) : o,
1840
- max: i ? y(r) : r,
1839
+ min: r ? y(o) : o,
1840
+ max: r ? y(i) : i,
1841
1841
  value: u || 0,
1842
1842
  track: !1,
1843
1843
  sx: {
@@ -1860,14 +1860,14 @@ const _t = $(
1860
1860
  opacity: 1
1861
1861
  }
1862
1862
  },
1863
- marks: o !== void 0 && r !== void 0 && [
1863
+ marks: o !== void 0 && i !== void 0 && [
1864
1864
  {
1865
- value: i ? y(o) : o,
1866
- label: i ? w(y(o), 0) : C(o)
1865
+ value: r ? y(o) : o,
1866
+ label: r ? w(y(o), 0) : C(o)
1867
1867
  },
1868
1868
  {
1869
- value: i ? y(r) : r,
1870
- label: i ? w(y(r), 0) : C(r)
1869
+ value: r ? y(i) : i,
1870
+ label: r ? w(y(i), 0) : C(i)
1871
1871
  }
1872
1872
  ]
1873
1873
  }
@@ -1888,7 +1888,7 @@ const _t = $(
1888
1888
  ...p.activeJoggingDir === "+" ? d : {}
1889
1889
  },
1890
1890
  children: /* @__PURE__ */ a(
1891
- He,
1891
+ Ue,
1892
1892
  {
1893
1893
  sx: {
1894
1894
  pointerEvents: "none",
@@ -1907,48 +1907,48 @@ const _t = $(
1907
1907
  function Ut(e, t, o) {
1908
1908
  if (t.length !== e.length)
1909
1909
  return !0;
1910
- for (let r = 0; r < t.length; r++)
1910
+ for (let i = 0; i < t.length; i++)
1911
1911
  if (
1912
1912
  // biome-ignore lint/style/noNonNullAssertion: legacy code
1913
- Math.abs(t[r] - e[r]) > o
1913
+ Math.abs(t[i] - e[i]) > o
1914
1914
  )
1915
1915
  return !1;
1916
1916
  return !0;
1917
1917
  }
1918
- function So(e, t, o) {
1918
+ function yo(e, t, o) {
1919
1919
  if (e === void 0 && t || e && t === void 0 || (e == null ? void 0 : e.orientation) === void 0 || (t == null ? void 0 : t.orientation) === void 0 || (e == null ? void 0 : e.position) === void 0 || (t == null ? void 0 : t.position) === void 0)
1920
1920
  return !1;
1921
1921
  if (e === void 0 || t === void 0)
1922
1922
  return !0;
1923
- let r = 0;
1924
- return r += Math.abs(e.orientation[0] - t.orientation[0]), r += Math.abs(e.orientation[1] - t.orientation[1]), r += Math.abs(e.orientation[2] - t.orientation[2]), r += Math.abs(e.position[0] - t.position[0]), r += Math.abs(e.position[1] - t.position[1]), r += Math.abs(e.position[2] - t.position[2]), r <= o;
1923
+ let i = 0;
1924
+ return i += Math.abs(e.orientation[0] - t.orientation[0]), i += Math.abs(e.orientation[1] - t.orientation[1]), i += Math.abs(e.orientation[2] - t.orientation[2]), i += Math.abs(e.position[0] - t.position[0]), i += Math.abs(e.position[1] - t.position[1]), i += Math.abs(e.position[2] - t.position[2]), i <= o;
1925
1925
  }
1926
1926
  function Ht(e, t, o) {
1927
- return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && So(
1927
+ return e.coordinate_system === t.coordinate_system && e.tcp === t.tcp && yo(
1928
1928
  e.tcp_pose,
1929
1929
  t.tcp_pose,
1930
1930
  o
1931
1931
  );
1932
1932
  }
1933
- function vo(e, t) {
1933
+ function So(e, t) {
1934
1934
  const o = new Pt(
1935
1935
  t[0],
1936
1936
  t[1],
1937
1937
  t[2]
1938
- ), r = new Pt(
1938
+ ), i = new Pt(
1939
1939
  e[0],
1940
1940
  e[1],
1941
1941
  e[2]
1942
- ), i = o.length(), n = o.normalize();
1943
- let c = r.length(), s = r.normalize();
1942
+ ), r = o.length(), n = o.normalize();
1943
+ let c = i.length(), s = i.normalize();
1944
1944
  s.dot(n) < 0 && (c = -c, s = s.multiplyScalar(-1));
1945
- let l = c - i;
1946
- return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c = i + l, [...s.multiplyScalar(c)];
1945
+ let l = c - r;
1946
+ return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), c = r + l, [...s.multiplyScalar(c)];
1947
1947
  }
1948
1948
  const Ot = 1e-4;
1949
1949
  class ht {
1950
- constructor(t, o, r, i, n, c) {
1951
- this.nova = t, this.controller = o, this.motionGroup = r, this.description = i, this.initialMotionState = n, this.motionStateSocket = c, this.rapidlyChangingMotionState = n, c.addEventListener("message", (s) => {
1950
+ constructor(t, o, i, r, n, c) {
1951
+ this.nova = t, this.controller = o, this.motionGroup = i, this.description = r, this.initialMotionState = n, this.motionStateSocket = c, this.rapidlyChangingMotionState = n, c.addEventListener("message", (s) => {
1952
1952
  var u;
1953
1953
  const l = (u = W(s.data)) == null ? void 0 : u.result;
1954
1954
  if (!l)
@@ -1969,7 +1969,7 @@ class ht {
1969
1969
  var f, g, d;
1970
1970
  this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = l.tcp_pose : (f = l.tcp_pose) != null && f.orientation && ((g = l.tcp_pose) != null && g.position) && ((d = this.rapidlyChangingMotionState.tcp_pose) != null && d.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
1971
1971
  position: l.tcp_pose.position,
1972
- orientation: vo(
1972
+ orientation: So(
1973
1973
  l.tcp_pose.orientation,
1974
1974
  this.rapidlyChangingMotionState.tcp_pose.orientation
1975
1975
  )
@@ -1986,15 +1986,15 @@ class ht {
1986
1986
  }
1987
1987
  static async open(t, o) {
1988
1988
  var g;
1989
- const [r, i] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
1989
+ const [i, r] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(r), c = n == null ? void 0 : n.motion_groups.find(
1990
1990
  (d) => d.motion_group === o
1991
1991
  );
1992
1992
  if (!n || !c)
1993
1993
  throw new Error(
1994
- `Controller ${i} or motion group ${o} not found`
1994
+ `Controller ${r} or motion group ${o} not found`
1995
1995
  );
1996
1996
  const s = t.openReconnectingWebsocket(
1997
- `/controllers/${i}/motion-groups/${o}/state-stream`
1997
+ `/controllers/${r}/motion-groups/${o}/state-stream`
1998
1998
  ), l = await s.firstMessage(), u = (g = W(l.data)) == null ? void 0 : g.result;
1999
1999
  if (!u)
2000
2000
  throw new Error(
@@ -2006,7 +2006,7 @@ class ht {
2006
2006
  u
2007
2007
  );
2008
2008
  const f = await t.api.motionGroup.getMotionGroupDescription(
2009
- i,
2009
+ r,
2010
2010
  c.motion_group
2011
2011
  );
2012
2012
  return new ht(
@@ -2055,13 +2055,13 @@ class ft {
2055
2055
  * @param options.onError - Error handler for websocket errors
2056
2056
  * @returns Promise resolving to initialized JoggerConnection instance
2057
2057
  */
2058
- static async open(t, o, r = {}) {
2059
- const i = await ht.open(t, o), n = new ft(i, r);
2058
+ static async open(t, o, i = {}) {
2059
+ const r = await ht.open(t, o), n = new ft(r, i);
2060
2060
  return await n.setJoggingMode(n.mode), n;
2061
2061
  }
2062
2062
  getDefaultTcp(t) {
2063
- var r, i;
2064
- const o = (i = (r = t.description.dh_parameters) == null ? void 0 : r[0]) == null ? void 0 : i.type;
2063
+ var i, r;
2064
+ const o = (r = (i = t.description.dh_parameters) == null ? void 0 : i[0]) == null ? void 0 : r.type;
2065
2065
  return t.joints.length < 6 && (o === G.RevoluteJoint || o === G.PrismaticJoint) ? this.NO_TCP : this.DEFAULT_TCP;
2066
2066
  }
2067
2067
  // Set a new tcp or other options. If current mode is jogging, will reinitialize the jogging websocket
@@ -2115,7 +2115,7 @@ class ft {
2115
2115
  // Initializes continuous jogging websocket, called by setJoggingMode("jogging")
2116
2116
  async initializeJoggingWebsocket() {
2117
2117
  return new Promise((t, o) => {
2118
- const r = setTimeout(() => {
2118
+ const i = setTimeout(() => {
2119
2119
  o(
2120
2120
  new Error(
2121
2121
  `Jogging initialization timeout after ${this.timeout} seconds`
@@ -2124,18 +2124,18 @@ class ft {
2124
2124
  }, this.timeout);
2125
2125
  this.joggingSocket = this.nova.openReconnectingWebsocket(
2126
2126
  `/controllers/${this.motionStream.controllerId}/execution/jogging`
2127
- ), this.joggingSocket.addEventListener("message", (i) => {
2127
+ ), this.joggingSocket.addEventListener("message", (r) => {
2128
2128
  var c, s, l, u;
2129
- const n = W(i.data);
2129
+ const n = W(r.data);
2130
2130
  if (((c = n == null ? void 0 : n.result) == null ? void 0 : c.kind) === "INITIALIZE_RECEIVED") {
2131
- clearTimeout(r), t();
2131
+ clearTimeout(i), t();
2132
2132
  return;
2133
2133
  }
2134
2134
  if (((s = n == null ? void 0 : n.result) == null ? void 0 : s.kind) === "MOTION_ERROR")
2135
- if (clearTimeout(r), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(Dt))) {
2135
+ if (clearTimeout(i), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(Dt))) {
2136
2136
  (u = this.joggingSocket) == null || u.dispose(), this.onBlocked();
2137
2137
  return;
2138
- } else this.onError ? this.onError(i.data) : o(new Error(i.data));
2138
+ } else this.onError ? this.onError(r.data) : o(new Error(r.data));
2139
2139
  }), this.joggingSocket.sendJson({
2140
2140
  message_type: "InitializeJoggingRequest",
2141
2141
  motion_group: this.motionGroupId,
@@ -2149,15 +2149,15 @@ class ft {
2149
2149
  async rotateJoints({
2150
2150
  joint: t,
2151
2151
  direction: o,
2152
- velocityValue: r,
2153
- velocityUnit: i
2152
+ velocityValue: i,
2153
+ velocityUnit: r
2154
2154
  }) {
2155
2155
  if (!this.joggingSocket || this.mode !== "jogging")
2156
2156
  throw new Error(
2157
2157
  "Joint jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2158
2158
  );
2159
2159
  const n = new Array(this.numJoints).fill(0);
2160
- n[t] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2160
+ n[t] = o === "-" ? -i : i, this.joggingSocket.sendJson({
2161
2161
  message_type: "JointVelocityRequest",
2162
2162
  velocity: n
2163
2163
  });
@@ -2168,17 +2168,17 @@ class ft {
2168
2168
  async translateTCP({
2169
2169
  axis: t,
2170
2170
  direction: o,
2171
- velocityMmPerSec: r
2171
+ velocityMmPerSec: i
2172
2172
  }) {
2173
2173
  if (!this.joggingSocket || this.mode !== "jogging")
2174
2174
  throw new Error(
2175
2175
  "Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2176
2176
  );
2177
- const i = [0, 0, 0], n = [0, 0, 0];
2178
- n[tt[t]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2177
+ const r = [0, 0, 0], n = [0, 0, 0];
2178
+ n[tt[t]] = o === "-" ? -i : i, this.joggingSocket.sendJson({
2179
2179
  message_type: "TcpVelocityRequest",
2180
2180
  translation: n,
2181
- rotation: i,
2181
+ rotation: r,
2182
2182
  use_tool_coordinate_system: this.orientation === "tool"
2183
2183
  });
2184
2184
  }
@@ -2188,17 +2188,17 @@ class ft {
2188
2188
  async rotateTCP({
2189
2189
  axis: t,
2190
2190
  direction: o,
2191
- velocityRadsPerSec: r
2191
+ velocityRadsPerSec: i
2192
2192
  }) {
2193
2193
  if (!this.joggingSocket || this.mode !== "jogging")
2194
2194
  throw new Error(
2195
2195
  "Continuous jogging websocket not connected; create one by setting jogging mode to 'jogging'"
2196
2196
  );
2197
- const i = [0, 0, 0], n = [0, 0, 0];
2198
- i[tt[t]] = o === "-" ? -r : r, this.joggingSocket.sendJson({
2197
+ const r = [0, 0, 0], n = [0, 0, 0];
2198
+ r[tt[t]] = o === "-" ? -i : i, this.joggingSocket.sendJson({
2199
2199
  message_type: "TcpVelocityRequest",
2200
2200
  translation: n,
2201
- rotation: i,
2201
+ rotation: r,
2202
2202
  use_tool_coordinate_system: this.orientation === "tool"
2203
2203
  });
2204
2204
  }
@@ -2213,8 +2213,8 @@ class ft {
2213
2213
  currentTcpPose: t,
2214
2214
  currentJoints: o,
2215
2215
  // coordSystemId,
2216
- velocityInRelevantUnits: r,
2217
- axis: i,
2216
+ velocityInRelevantUnits: i,
2217
+ axis: r,
2218
2218
  direction: n,
2219
2219
  motion: c
2220
2220
  }) {
@@ -2229,9 +2229,9 @@ class ft {
2229
2229
  "Current pose has no position, cannot perform translation"
2230
2230
  );
2231
2231
  const h = [...t.position];
2232
- h[tt[i]] += c.distanceMm * (n === "-" ? -1 : 1), s.push({
2232
+ h[tt[r]] += c.distanceMm * (n === "-" ? -1 : 1), s.push({
2233
2233
  limits_override: {
2234
- tcp_velocity_limit: r
2234
+ tcp_velocity_limit: i
2235
2235
  },
2236
2236
  path: {
2237
2237
  path_definition_name: "PathLine",
@@ -2251,13 +2251,13 @@ class ft {
2251
2251
  t.orientation[1],
2252
2252
  t.orientation[2]
2253
2253
  ), m = h.length(), v = h.clone().normalize(), b = c.distanceRads * (n === "-" ? -1 : 1), w = new ct(0, 0, 0);
2254
- w[i] = 1;
2254
+ w[r] = 1;
2255
2255
  const C = Math.cos(0.5 * b) * Math.cos(0.5 * m), M = Math.sin(0.5 * b) * Math.sin(0.5 * m), k = Math.sin(0.5 * b) * Math.cos(0.5 * m), R = Math.cos(0.5 * b) * Math.sin(0.5 * m), I = w.dot(
2256
2256
  v
2257
2257
  ), E = w.clone().cross(v), z = 2 * Math.acos(C - M * I), Q = z / Math.sin(0.5 * z), ot = new ct().addScaledVector(E, M).addScaledVector(w, k).addScaledVector(v, R).multiplyScalar(Q);
2258
2258
  s.push({
2259
2259
  limits_override: {
2260
- tcp_orientation_velocity_limit: r
2260
+ tcp_orientation_velocity_limit: i
2261
2261
  },
2262
2262
  path: {
2263
2263
  path_definition_name: "PathLine",
@@ -2366,11 +2366,11 @@ class ft {
2366
2366
  });
2367
2367
  }
2368
2368
  }
2369
- const Co = (e) => {
2370
- const t = e.softTimeout || 3e3, [o, r] = F(!1), i = L();
2369
+ const vo = (e) => {
2370
+ const t = e.softTimeout || 3e3, [o, i] = F(!1), r = L();
2371
2371
  return A(() => {
2372
2372
  const n = setTimeout(() => {
2373
- r(!0);
2373
+ i(!0);
2374
2374
  }, t);
2375
2375
  return () => clearTimeout(n);
2376
2376
  }), /* @__PURE__ */ a(
@@ -2380,9 +2380,9 @@ const Co = (e) => {
2380
2380
  height: "100%",
2381
2381
  alignItems: "center",
2382
2382
  justifyContent: "center",
2383
- sx: { color: i.palette.text.primary },
2383
+ sx: { color: r.palette.text.primary },
2384
2384
  children: e.error ? /* @__PURE__ */ a(
2385
- wo,
2385
+ Co,
2386
2386
  {
2387
2387
  loadingMessage: e.message,
2388
2388
  error: e.error
@@ -2396,7 +2396,7 @@ const Co = (e) => {
2396
2396
  sx: {
2397
2397
  visibility: o ? "visible" : "hidden",
2398
2398
  marginTop: "1rem",
2399
- color: i.palette.text.secondary
2399
+ color: r.palette.text.secondary
2400
2400
  },
2401
2401
  children: "This is taking longer than expected..."
2402
2402
  }
@@ -2404,8 +2404,8 @@ const Co = (e) => {
2404
2404
  ] })
2405
2405
  }
2406
2406
  );
2407
- }, wo = (e) => {
2408
- const t = Re(e.error), o = e.error instanceof Error ? e.error.stack : null, r = L();
2407
+ }, Co = (e) => {
2408
+ const t = ke(e.error), o = e.error instanceof Error ? e.error.stack : null, i = L();
2409
2409
  return /* @__PURE__ */ S(
2410
2410
  _,
2411
2411
  {
@@ -2414,7 +2414,7 @@ const Co = (e) => {
2414
2414
  maxWidth: "min(100%, 800px)",
2415
2415
  padding: 2,
2416
2416
  overflow: "auto",
2417
- color: r.palette.error.main,
2417
+ color: i.palette.error.main,
2418
2418
  "& pre": {
2419
2419
  whiteSpace: "pre-wrap",
2420
2420
  wordBreak: "break-word",
@@ -2422,13 +2422,13 @@ const Co = (e) => {
2422
2422
  }
2423
2423
  },
2424
2424
  children: [
2425
- (e.loadingMessage ? `Error while ${ve(ke(e.loadingMessage))} - ` : "") + t,
2425
+ (e.loadingMessage ? `Error while ${Se(Ie(e.loadingMessage))} - ` : "") + t,
2426
2426
  /* @__PURE__ */ a("br", {}),
2427
2427
  o && /* @__PURE__ */ a("pre", { children: o })
2428
2428
  ]
2429
2429
  }
2430
2430
  );
2431
- }, To = J(({ store: e }) => {
2431
+ }, wo = J(({ store: e }) => {
2432
2432
  const { t } = V();
2433
2433
  return /* @__PURE__ */ a(
2434
2434
  Ft,
@@ -2445,8 +2445,8 @@ const Co = (e) => {
2445
2445
  alignItems: "flex-start"
2446
2446
  },
2447
2447
  children: /* @__PURE__ */ S(_, { sx: { m: 2, width: "100%" }, children: [
2448
- /* @__PURE__ */ S(je, { severity: "error", sx: { mb: 2 }, children: [
2449
- /* @__PURE__ */ a(Ee, { children: t("Jogging.Blocked.ti") }),
2448
+ /* @__PURE__ */ S(Re, { severity: "error", sx: { mb: 2 }, children: [
2449
+ /* @__PURE__ */ a(je, { children: t("Jogging.Blocked.ti") }),
2450
2450
  t("Jogging.Blocked.lb")
2451
2451
  ] }),
2452
2452
  /* @__PURE__ */ a(
@@ -2463,12 +2463,12 @@ const Co = (e) => {
2463
2463
  );
2464
2464
  }), qt = J(
2465
2465
  ({ store: e }) => {
2466
- const { t } = V(), [o, r] = F(
2466
+ const { t } = V(), [o, i] = F(
2467
2467
  e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
2468
- ), i = D(o);
2468
+ ), r = D(o);
2469
2469
  pt(() => {
2470
2470
  const c = e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
2471
- Fe(i.current, c) || (i.current = c, r(c));
2471
+ Be(r.current, c) || (r.current = c, i(c));
2472
2472
  });
2473
2473
  const n = [];
2474
2474
  for (const [c, s] of o.entries())
@@ -2491,7 +2491,7 @@ const Co = (e) => {
2491
2491
  }
2492
2492
  );
2493
2493
  }
2494
- ), Mo = ut($e)(({ theme: e }) => ({
2494
+ ), To = ut(Le)(({ theme: e }) => ({
2495
2495
  "&.MuiFormControl-root": {
2496
2496
  ".MuiSelect-select": {
2497
2497
  paddingTop: "20px",
@@ -2512,9 +2512,9 @@ function it({
2512
2512
  labelValue: e,
2513
2513
  ...t
2514
2514
  }) {
2515
- return /* @__PURE__ */ S(Mo, { fullWidth: !0, variant: "filled", children: [
2516
- /* @__PURE__ */ a(ze, { id: t.labelId, children: e }),
2517
- /* @__PURE__ */ a(Ve, { ...t })
2515
+ return /* @__PURE__ */ S(To, { fullWidth: !0, variant: "filled", children: [
2516
+ /* @__PURE__ */ a($e, { id: t.labelId, children: e }),
2517
+ /* @__PURE__ */ a(ze, { ...t })
2518
2518
  ] });
2519
2519
  }
2520
2520
  const dt = [
@@ -2522,20 +2522,20 @@ const dt = [
2522
2522
  { id: "1", mm: 1, degrees: 0.5 },
2523
2523
  { id: "5", mm: 5, degrees: 2.5 },
2524
2524
  { id: "10", mm: 10, degrees: 5 }
2525
- ], Io = [
2525
+ ], Mo = [
2526
2526
  { id: "continuous" },
2527
2527
  ...dt
2528
- ], ko = ["coordsys", "tool"];
2528
+ ], Io = ["coordsys", "tool"];
2529
2529
  class bt {
2530
- constructor(t, o, r, i, n) {
2530
+ constructor(t, o, i, r, n) {
2531
2531
  var c, s, l;
2532
- 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.tcpChangeInProgress = !1, this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = G.RevoluteJoint;
2532
+ this.jogger = t, this.coordSystems = o, this.motionGroupDescription = i, this.tcps = r, this.inverseSolverValue = n, this.selectedTabId = "cartesian", this.locks = /* @__PURE__ */ new Set(), this.blocked = !1, this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.tcpChangeInProgress = !1, this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = G.RevoluteJoint;
2533
2533
  for (const u of o)
2534
2534
  if (u.coordinate_system === "") {
2535
2535
  u.coordinate_system = "world";
2536
2536
  break;
2537
2537
  }
2538
- this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = t.motionStream.rapidlyChangingMotionState.tcp ?? "", this.inverseSolver = n, this.jointType = ((l = (s = r == null ? void 0 : r.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint, mt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
2538
+ this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = t.motionStream.rapidlyChangingMotionState.tcp ?? "", this.inverseSolver = n, this.jointType = ((l = (s = i == null ? void 0 : i.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint, mt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
2539
2539
  this.block();
2540
2540
  }, this.loadFromLocalStorage(), this.disposers.push(kt(() => this.saveToLocalStorage())), this.disposers.push(
2541
2541
  kt(() => {
@@ -2551,7 +2551,7 @@ class bt {
2551
2551
  * from the backend
2552
2552
  */
2553
2553
  static async loadFor(t) {
2554
- const { nova: o } = t, [r, i] = await Promise.all([
2554
+ const { nova: o } = t, [i, r] = await Promise.all([
2555
2555
  // Fetch coord systems so user can select between them
2556
2556
  o.api.controller.listCoordinateSystems(
2557
2557
  t.motionStream.controllerId,
@@ -2563,8 +2563,8 @@ class bt {
2563
2563
  t.motionGroupId
2564
2564
  )
2565
2565
  ]), n = await o.api.motionGroupModels.getMotionGroupKinematicModel(
2566
- i.motion_group_model
2567
- ), c = Object.entries(i.tcps || {}).map(([s, l]) => ({
2566
+ r.motion_group_model
2567
+ ), c = Object.entries(r.tcps || {}).map(([s, l]) => ({
2568
2568
  id: s,
2569
2569
  readable_name: l.name,
2570
2570
  position: l.pose.position,
@@ -2572,8 +2572,8 @@ class bt {
2572
2572
  }));
2573
2573
  return new bt(
2574
2574
  t,
2575
- r || [],
2576
- i,
2575
+ i || [],
2576
+ r,
2577
2577
  c,
2578
2578
  n.inverse_solver
2579
2579
  );
@@ -2584,14 +2584,15 @@ class bt {
2584
2584
  this.jogger.dispose();
2585
2585
  }
2586
2586
  get coordSystemCountByName() {
2587
- return Ce(this.coordSystems, (t) => t.name);
2587
+ return ve(this.coordSystems, (t) => t.name);
2588
2588
  }
2589
2589
  async deactivate() {
2590
2590
  this.jogger.mode === "jogging" && await this.jogger.setJoggingMode("off");
2591
2591
  }
2592
2592
  /** Activate the jogger with current settings */
2593
2593
  async activate() {
2594
- return this.currentTab.id === "cartesian" ? (this.jogger.orientation !== this.selectedOrientation && this.jogger.setOptions({
2594
+ return this.currentTab.id === "cartesian" ? ((this.jogger.tcp !== this.selectedTcpId || this.jogger.orientation !== this.selectedOrientation) && await this.jogger.setOptions({
2595
+ tcp: this.selectedTcpId || void 0,
2595
2596
  orientation: this.selectedOrientation
2596
2597
  }), this.activeDiscreteIncrement ? this.jogger.setJoggingMode("trajectory") : this.jogger.setJoggingMode("jogging")) : this.jogger.setJoggingMode("jogging"), this.jogger;
2597
2598
  }
@@ -2630,7 +2631,7 @@ class bt {
2630
2631
  }), t;
2631
2632
  }
2632
2633
  get incrementOptions() {
2633
- return Io;
2634
+ return Mo;
2634
2635
  }
2635
2636
  get discreteIncrementOptions() {
2636
2637
  return dt;
@@ -2688,50 +2689,44 @@ class bt {
2688
2689
  return t ? this.maxRotationVelocityDegPerSec : this.maxTranslationVelocityMmPerSec;
2689
2690
  }
2690
2691
  onTabChange(t, o) {
2691
- const r = this.tabs[o] || this.tabs[0];
2692
- this.selectedTabId = r.id;
2692
+ const i = this.tabs[o] || this.tabs[0];
2693
+ this.selectedTabId = i.id;
2693
2694
  }
2694
2695
  setSelectedCoordSystemId(t) {
2695
2696
  this.selectedCoordSystemId = t;
2696
2697
  }
2697
2698
  /**
2698
- * Request a TCP change on the server. Sets tcpChangeInProgress while waiting
2699
- * for the server to confirm the change via the motion state stream.
2699
+ * Request a TCP change on the server. Sends an InitializeJoggingRequest
2700
+ * with the new TCP to the backend via the jogging websocket.
2701
+ *
2702
+ * If the jogger is actively jogging, the websocket is reinitialised with the new TCP.
2703
+ * If the jogger is idle, a jogging websocket is briefly opened to communicate the
2704
+ * TCP change, then closed again.
2700
2705
  */
2701
2706
  async requestTcpChange(t) {
2702
- if (t !== this.selectedTcpId) {
2703
- this.tcpChangeInProgress = !0;
2704
- try {
2705
- await this.jogger.setOptions({ tcp: t }), this.updateMotionStreamTcp(t);
2706
- const o = await this.waitForTcpConfirmation(t, 1e4);
2707
- B(() => {
2708
- o ? this.selectedTcpId = t : this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
2709
- });
2710
- } catch (o) {
2711
- throw B(() => {
2712
- this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
2713
- }), o;
2714
- } finally {
2715
- B(() => {
2716
- this.tcpChangeInProgress = !1;
2717
- });
2718
- }
2707
+ if (t === this.selectedTcpId) return;
2708
+ this.tcpChangeInProgress = !0;
2709
+ const o = this.jogger.mode !== "jogging";
2710
+ try {
2711
+ this.jogger.tcp = t, o ? (await this.jogger.setJoggingMode("jogging"), await this.jogger.setJoggingMode("off")) : await this.jogger.setJoggingMode("jogging", !1);
2712
+ const i = await this.waitForTcpConfirmation(t, 1e4);
2713
+ B(() => {
2714
+ i ? this.selectedTcpId = t : this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
2715
+ });
2716
+ } catch (i) {
2717
+ throw B(() => {
2718
+ this.selectedTcpId = this.jogger.motionStream.rapidlyChangingMotionState.tcp ?? "";
2719
+ }), i;
2720
+ } finally {
2721
+ B(() => {
2722
+ this.tcpChangeInProgress = !1;
2723
+ });
2719
2724
  }
2720
2725
  }
2721
- /**
2722
- * Update the motion state-stream websocket URL to report data for the given TCP.
2723
- * The state-stream uses a `tcp` query parameter to determine which TCP pose to report.
2724
- */
2725
- updateMotionStreamTcp(t) {
2726
- const { motionStream: o } = this.jogger, r = o.nova, i = o.controllerId, n = o.motionGroupId, c = r.makeWebsocketURL(
2727
- `/controllers/${i}/motion-groups/${n}/state-stream?tcp=${encodeURIComponent(t)}`
2728
- );
2729
- o.motionStateSocket.changeUrl(c);
2730
- }
2731
2726
  waitForTcpConfirmation(t, o) {
2732
- return new Promise((r) => {
2733
- const i = Date.now(), n = setInterval(() => {
2734
- this.jogger.motionStream.rapidlyChangingMotionState.tcp === t ? (clearInterval(n), r(!0)) : Date.now() - i >= o && (clearInterval(n), r(!1));
2727
+ return new Promise((i) => {
2728
+ const r = Date.now(), n = setInterval(() => {
2729
+ this.jogger.motionStream.rapidlyChangingMotionState.tcp === t ? (clearInterval(n), i(!0)) : Date.now() - r >= o && (clearInterval(n), i(!1));
2735
2730
  }, 100);
2736
2731
  });
2737
2732
  }
@@ -2764,7 +2759,7 @@ class bt {
2764
2759
  }
2765
2760
  /** Lock the UI until the given async callback resolves */
2766
2761
  async withMotionLock(t) {
2767
- const o = Ne();
2762
+ const o = Ve();
2768
2763
  this.lock(o);
2769
2764
  try {
2770
2765
  return await t();
@@ -2773,10 +2768,10 @@ class bt {
2773
2768
  }
2774
2769
  }
2775
2770
  }
2776
- const Ro = J(
2771
+ const ko = J(
2777
2772
  ({ store: e, useDegree: t }) => {
2778
2773
  var c;
2779
- const { t: o } = V(), r = ne(), i = [];
2774
+ const { t: o } = V(), i = ne(), r = [];
2780
2775
  function n(s) {
2781
2776
  switch (s) {
2782
2777
  case "coordsys":
@@ -2787,11 +2782,11 @@ const Ro = J(
2787
2782
  return s;
2788
2783
  }
2789
2784
  }
2790
- if (e.showCoordSystemSelect && i.push(
2785
+ if (e.showCoordSystemSelect && r.push(
2791
2786
  /* @__PURE__ */ a(
2792
2787
  it,
2793
2788
  {
2794
- labelId: `jogging-coord-select-${r}`,
2789
+ labelId: `jogging-coord-select-${i}`,
2795
2790
  labelValue: o("Jogging.CoordinateSystem.hlb"),
2796
2791
  value: e.selectedCoordSystemId,
2797
2792
  size: "small",
@@ -2805,11 +2800,11 @@ const Ro = J(
2805
2800
  )
2806
2801
  ), e.showTcpSelect) {
2807
2802
  const s = e.tcpChangeInProgress || e.isTcpUnresolved;
2808
- i.push(
2803
+ r.push(
2809
2804
  /* @__PURE__ */ a(
2810
2805
  it,
2811
2806
  {
2812
- labelId: `jogging-tcp-select-${r}`,
2807
+ labelId: `jogging-tcp-select-${i}`,
2813
2808
  labelValue: "TCP",
2814
2809
  value: e.selectedTcpId,
2815
2810
  size: "small",
@@ -2817,32 +2812,32 @@ const Ro = J(
2817
2812
  displayEmpty: s,
2818
2813
  onChange: (l) => e.requestTcpChange(l.target.value),
2819
2814
  disabled: e.isLocked || s,
2820
- endAdornment: s ? /* @__PURE__ */ a(Le, { position: "end", children: /* @__PURE__ */ a(Wt, { size: 16 }) }) : void 0,
2815
+ endAdornment: s ? /* @__PURE__ */ a(Fe, { position: "end", children: /* @__PURE__ */ a(Wt, { size: 16 }) }) : void 0,
2821
2816
  children: e.tcps.map((l) => /* @__PURE__ */ a(q, { value: l.id, children: l.id }, l.id))
2822
2817
  },
2823
2818
  "tcp"
2824
2819
  )
2825
2820
  );
2826
2821
  }
2827
- return e.showOrientationSelect && i.push(
2822
+ return e.showOrientationSelect && r.push(
2828
2823
  /* @__PURE__ */ a(
2829
2824
  it,
2830
2825
  {
2831
2826
  labelValue: o("Jogging.Cartesian.Orientation.lb"),
2832
- labelId: `orientation-select-${r}`,
2827
+ labelId: `orientation-select-${i}`,
2833
2828
  value: e.selectedOrientation,
2834
2829
  onChange: (s) => e.setSelectedOrientation(s.target.value),
2835
2830
  disabled: e.isLocked,
2836
- children: ko.map((s) => /* @__PURE__ */ a(q, { value: s, children: n(s) }, s))
2831
+ children: Io.map((s) => /* @__PURE__ */ a(q, { value: s, children: n(s) }, s))
2837
2832
  },
2838
2833
  "orientation"
2839
2834
  )
2840
- ), e.showIncrementSelect && i.push(
2835
+ ), e.showIncrementSelect && r.push(
2841
2836
  /* @__PURE__ */ S(
2842
2837
  it,
2843
2838
  {
2844
2839
  labelValue: o("Jogging.Increment.hlb"),
2845
- labelId: `jogging-increment-select-${r}`,
2840
+ labelId: `jogging-increment-select-${i}`,
2846
2841
  size: "small",
2847
2842
  variant: "filled",
2848
2843
  value: ((c = e.activeDiscreteIncrement) == null ? void 0 : c.id) || "continuous",
@@ -2870,11 +2865,11 @@ const Ro = J(
2870
2865
  gridAutoRows: "min-content",
2871
2866
  "& label": { opacity: 0.7, fontSize: "12px", marginBottom: "4px" }
2872
2867
  },
2873
- children: i.map((s, l) => /* @__PURE__ */ a(
2868
+ children: r.map((s, l) => /* @__PURE__ */ a(
2874
2869
  T,
2875
2870
  {
2876
2871
  sx: {
2877
- gridColumn: i.length % 2 === 1 && l === i.length - 1 ? "span 2" : "auto"
2872
+ gridColumn: r.length % 2 === 1 && l === r.length - 1 ? "span 2" : "auto"
2878
2873
  },
2879
2874
  children: s
2880
2875
  },
@@ -2883,7 +2878,7 @@ const Ro = J(
2883
2878
  }
2884
2879
  );
2885
2880
  }
2886
- ), jo = ut(We)(({ theme: e }) => {
2881
+ ), Ro = ut(Ne)(({ theme: e }) => {
2887
2882
  var t;
2888
2883
  return {
2889
2884
  "&.MuiToggleButtonGroup-root": {
@@ -2905,11 +2900,11 @@ const Ro = J(
2905
2900
  }
2906
2901
  }
2907
2902
  };
2908
- }), Eo = J((e) => {
2903
+ }), jo = J((e) => {
2909
2904
  var n, c, s;
2910
- const t = L(), { store: o } = e, { t: r } = V();
2911
- function i(l, u) {
2912
- u === e.velocity || !Ge(u) || e.onVelocityChange(u, e.useDegree);
2905
+ const t = L(), { store: o } = e, { t: i } = V();
2906
+ function r(l, u) {
2907
+ u === e.velocity || !We(u) || e.onVelocityChange(u, e.useDegree);
2913
2908
  }
2914
2909
  return /* @__PURE__ */ S(
2915
2910
  _,
@@ -2927,7 +2922,7 @@ const Ro = J(
2927
2922
  color: (s = (c = (n = t.componentsExt) == null ? void 0 : n.JoggingPanel) == null ? void 0 : c.VelocitySlider) == null ? void 0 : s.sliderLegendColor,
2928
2923
  fontSize: "14px"
2929
2924
  },
2930
- children: r("Jogging.Velocity.bt")
2925
+ children: i("Jogging.Velocity.bt")
2931
2926
  }
2932
2927
  ),
2933
2928
  /* @__PURE__ */ a(
@@ -2935,7 +2930,7 @@ const Ro = J(
2935
2930
  {
2936
2931
  value: e.velocity,
2937
2932
  color: "secondary",
2938
- onChange: i,
2933
+ onChange: r,
2939
2934
  min: e.min,
2940
2935
  max: e.max,
2941
2936
  "aria-labelledby": "input-slider",
@@ -2955,7 +2950,7 @@ const Ro = J(
2955
2950
  );
2956
2951
  });
2957
2952
  function Yt({ value: e, sx: t }) {
2958
- var r;
2953
+ var i;
2959
2954
  const o = L();
2960
2955
  return /* @__PURE__ */ a(
2961
2956
  _,
@@ -2966,7 +2961,7 @@ function Yt({ value: e, sx: t }) {
2966
2961
  gap: "5px",
2967
2962
  sx: {
2968
2963
  padding: "6px 12px",
2969
- background: (r = o.palette.backgroundPaperElevation) == null ? void 0 : r[8],
2964
+ background: (i = o.palette.backgroundPaperElevation) == null ? void 0 : i[8],
2970
2965
  borderRadius: "10px",
2971
2966
  minWidth: "111px",
2972
2967
  ...t
@@ -2991,11 +2986,11 @@ function Yt({ value: e, sx: t }) {
2991
2986
  const Zt = J(
2992
2987
  ({ store: e, useDegree: t }) => {
2993
2988
  const { t: o } = V();
2994
- function r(i, n) {
2995
- return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: i })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: i })}`;
2989
+ function i(r, n) {
2990
+ return n ? `ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb", { amount: r })}` : `v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb", { amount: r })}`;
2996
2991
  }
2997
2992
  return /* @__PURE__ */ a(
2998
- Eo,
2993
+ jo,
2999
2994
  {
3000
2995
  store: e,
3001
2996
  velocity: e.velocityInDisplayUnits(t),
@@ -3004,10 +2999,10 @@ const Zt = J(
3004
2999
  onVelocityChange: e.setVelocityFromSlider,
3005
3000
  useDegree: t,
3006
3001
  disabled: e.isLocked,
3007
- renderValue: (i) => /* @__PURE__ */ a(
3002
+ renderValue: (r) => /* @__PURE__ */ a(
3008
3003
  Yt,
3009
3004
  {
3010
- value: r(i, t),
3005
+ value: i(r, t),
3011
3006
  sx: {
3012
3007
  minWidth: "111px",
3013
3008
  span: {
@@ -3019,27 +3014,15 @@ const Zt = J(
3019
3014
  }
3020
3015
  );
3021
3016
  }
3022
- ), Po = J(
3017
+ ), Eo = J(
3023
3018
  ({
3024
3019
  store: e,
3025
3020
  children: t
3026
3021
  }) => {
3027
- const { t: o } = V(), r = L();
3028
- function i(d, p) {
3022
+ const { t: o } = V(), i = L();
3023
+ function r(d, p) {
3029
3024
  (p === "translate" || p === "rotate") && e.setSelectedCartesianMotionType(p);
3030
3025
  }
3031
- ae(
3032
- () => [e.selectedCoordSystemId, e.selectedTcpId],
3033
- () => {
3034
- e.jogger.motionStream.motionStateSocket.changeUrl(
3035
- e.jogger.nova.makeWebsocketURL(
3036
- `/controllers/${e.jogger.motionStream.controllerId}/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}`
3037
- )
3038
- );
3039
- },
3040
- // biome-ignore lint/suspicious/noExplicitAny: pre-biome code
3041
- { fireImmediately: !0 }
3042
- );
3043
3026
  async function n(d, p) {
3044
3027
  const x = await e.activate(), y = x.motionStream.rapidlyChangingMotionState.tcp_pose, h = x.motionStream.rapidlyChangingMotionState.joint_position;
3045
3028
  y && await e.withMotionLock(async () => {
@@ -3059,7 +3042,7 @@ const Zt = J(
3059
3042
  distanceMm: p.mm
3060
3043
  } : {
3061
3044
  type: "rotate",
3062
- distanceRads: Ie(p.degrees)
3045
+ distanceRads: Me(p.degrees)
3063
3046
  }
3064
3047
  });
3065
3048
  } finally {
@@ -3094,18 +3077,18 @@ const Zt = J(
3094
3077
  const u = [
3095
3078
  {
3096
3079
  id: "x",
3097
- icon: /* @__PURE__ */ a(Oe, {}),
3098
- colors: l("X", e.selectedCartesianMotionType, r)
3080
+ icon: /* @__PURE__ */ a(_e, {}),
3081
+ colors: l("X", e.selectedCartesianMotionType, i)
3099
3082
  },
3100
3083
  {
3101
3084
  id: "y",
3102
- icon: /* @__PURE__ */ a(De, {}),
3103
- colors: l("Y", e.selectedCartesianMotionType, r)
3085
+ icon: /* @__PURE__ */ a(Oe, {}),
3086
+ colors: l("Y", e.selectedCartesianMotionType, i)
3104
3087
  },
3105
3088
  {
3106
3089
  id: "z",
3107
- icon: /* @__PURE__ */ a(Ae, {}),
3108
- colors: l("Z", e.selectedCartesianMotionType, r)
3090
+ icon: /* @__PURE__ */ a(De, {}),
3091
+ colors: l("Z", e.selectedCartesianMotionType, i)
3109
3092
  }
3110
3093
  ];
3111
3094
  function f(d) {
@@ -3127,7 +3110,7 @@ const Zt = J(
3127
3110
  children: [
3128
3111
  /* @__PURE__ */ S(_, { gap: 2, children: [
3129
3112
  /* @__PURE__ */ a(
3130
- Ro,
3113
+ ko,
3131
3114
  {
3132
3115
  store: e,
3133
3116
  useDegree: e.selectedCartesianMotionType === "rotate"
@@ -3159,10 +3142,10 @@ const Zt = J(
3159
3142
  sx: { flexGrow: 1 },
3160
3143
  children: [
3161
3144
  /* @__PURE__ */ S(
3162
- jo,
3145
+ Ro,
3163
3146
  {
3164
3147
  value: e.selectedCartesianMotionType,
3165
- onChange: i,
3148
+ onChange: r,
3166
3149
  exclusive: !0,
3167
3150
  "aria-label": o("Jogging.Cartesian.MotionType.lb"),
3168
3151
  sx: { justifyContent: "center" },
@@ -3189,7 +3172,7 @@ const Zt = J(
3189
3172
  {
3190
3173
  sx: {
3191
3174
  fontSize: "24px",
3192
- color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? r.palette.text.primary
3175
+ color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? i.palette.text.primary
3193
3176
  },
3194
3177
  children: d.id.toUpperCase()
3195
3178
  }
@@ -3222,13 +3205,13 @@ const Zt = J(
3222
3205
  disabled: e.isLocked,
3223
3206
  activeJoggingDirection: ((p = e.incrementJogInProgress) == null ? void 0 : p.axis) === d.id ? e.incrementJogInProgress.direction : void 0,
3224
3207
  label: /* @__PURE__ */ S(et, { children: [
3225
- /* @__PURE__ */ a(Je, {}),
3208
+ /* @__PURE__ */ a(Ae, {}),
3226
3209
  /* @__PURE__ */ a(
3227
3210
  j,
3228
3211
  {
3229
3212
  sx: {
3230
3213
  fontSize: "24px",
3231
- color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? r.palette.text.primary
3214
+ color: ((x = d.colors) == null ? void 0 : x.labelColor) ?? i.palette.text.primary
3232
3215
  },
3233
3216
  children: d.id.toUpperCase()
3234
3217
  }
@@ -3262,10 +3245,10 @@ const Zt = J(
3262
3245
  }
3263
3246
  );
3264
3247
  }
3265
- ), _o = J(
3248
+ ), Po = J(
3266
3249
  ({ store: e, children: t }) => {
3267
3250
  const o = L();
3268
- async function r(n) {
3251
+ async function i(n) {
3269
3252
  await e.activate(), await e.jogger.rotateJoints({
3270
3253
  joint: n.joint,
3271
3254
  direction: n.direction,
@@ -3273,7 +3256,7 @@ const Zt = J(
3273
3256
  velocityValue: e.jointType === G.PrismaticJoint ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec
3274
3257
  });
3275
3258
  }
3276
- async function i() {
3259
+ async function r() {
3277
3260
  await e.jogger.stop(), await e.deactivate();
3278
3261
  }
3279
3262
  return /* @__PURE__ */ S(
@@ -3328,7 +3311,7 @@ const Zt = J(
3328
3311
  }
3329
3312
  ),
3330
3313
  /* @__PURE__ */ a(
3331
- yo,
3314
+ xo,
3332
3315
  {
3333
3316
  disabled: e.isLocked,
3334
3317
  lowerLimit: c == null ? void 0 : c.lower_limit,
@@ -3338,11 +3321,11 @@ const Zt = J(
3338
3321
  const f = e.jogger.motionStream.rapidlyChangingMotionState.joint_position[n.index];
3339
3322
  return f !== void 0 ? f : void 0;
3340
3323
  },
3341
- startJogging: (f) => r({
3324
+ startJogging: (f) => i({
3342
3325
  joint: n.index,
3343
3326
  direction: f
3344
3327
  }),
3345
- stopJogging: i
3328
+ stopJogging: r
3346
3329
  }
3347
3330
  )
3348
3331
  ]
@@ -3361,35 +3344,35 @@ const Zt = J(
3361
3344
  }
3362
3345
  );
3363
3346
  }
3364
- ), pi = $(
3347
+ ), ui = $(
3365
3348
  J((e) => {
3366
- const t = we(e.nova) ? new ye({ instanceUrl: e.nova }) : e.nova, o = Lt(() => ({
3349
+ const t = Ce(e.nova) ? new xe({ instanceUrl: e.nova }) : e.nova, o = Lt(() => ({
3367
3350
  joggingStore: null,
3368
3351
  loadingError: null
3369
3352
  }));
3370
- async function r() {
3353
+ async function i() {
3371
3354
  B(() => {
3372
3355
  o.loadingError = null, o.joggingStore = null;
3373
3356
  });
3374
3357
  try {
3375
- let i = e.store;
3376
- if (!i) {
3358
+ let r = e.store;
3359
+ if (!r) {
3377
3360
  const n = await ft.open(t, e.motionGroupId);
3378
- i = await bt.loadFor(n);
3361
+ r = await bt.loadFor(n);
3379
3362
  }
3380
3363
  B(() => {
3381
- o.joggingStore = i;
3382
- }), e.onSetup && e.onSetup(i);
3383
- } catch (i) {
3384
- o.loadingError = i;
3364
+ o.joggingStore = r;
3365
+ }), e.onSetup && e.onSetup(r);
3366
+ } catch (r) {
3367
+ o.loadingError = r;
3385
3368
  }
3386
3369
  }
3387
- return A(() => (r(), e.store ? () => null : () => {
3388
- var i;
3389
- (i = o.joggingStore) == null || i.dispose();
3370
+ return A(() => (i(), e.store ? () => null : () => {
3371
+ var r;
3372
+ (r = o.joggingStore) == null || r.dispose();
3390
3373
  }), [e.store, e.nova, e.motionGroupId]), A(() => {
3391
- const i = o.joggingStore;
3392
- i && (e.locked ? i.lock("external") : i.unlock("external"));
3374
+ const r = o.joggingStore;
3375
+ r && (e.locked ? r.lock("external") : r.unlock("external"));
3393
3376
  }, [o.joggingStore, e.locked]), /* @__PURE__ */ a(
3394
3377
  _,
3395
3378
  {
@@ -3401,21 +3384,21 @@ const Zt = J(
3401
3384
  position: "relative",
3402
3385
  ...e.sx
3403
3386
  },
3404
- children: o.joggingStore ? /* @__PURE__ */ a(Oo, { store: o.joggingStore, children: e.children }) : /* @__PURE__ */ a(Co, { message: "Loading jogging", error: o.loadingError })
3387
+ children: o.joggingStore ? /* @__PURE__ */ a(_o, { store: o.joggingStore, children: e.children }) : /* @__PURE__ */ a(vo, { message: "Loading jogging", error: o.loadingError })
3405
3388
  }
3406
3389
  );
3407
3390
  })
3408
- ), Oo = J(
3391
+ ), _o = J(
3409
3392
  ({
3410
3393
  store: e,
3411
3394
  children: t
3412
3395
  }) => {
3413
3396
  const { t: o } = V();
3414
- function r() {
3397
+ function i() {
3415
3398
  if (e.currentTab.id === "cartesian")
3416
- return /* @__PURE__ */ a(Po, { store: e, children: t });
3399
+ return /* @__PURE__ */ a(Eo, { store: e, children: t });
3417
3400
  if (e.currentTab.id === "joint")
3418
- return /* @__PURE__ */ a(_o, { store: e, children: t });
3401
+ return /* @__PURE__ */ a(Po, { store: e, children: t });
3419
3402
  }
3420
3403
  return /* @__PURE__ */ S(_, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
3421
3404
  /* @__PURE__ */ a(
@@ -3426,21 +3409,21 @@ const Zt = J(
3426
3409
  value: e.tabIndex,
3427
3410
  onChange: e.onTabChange,
3428
3411
  variant: "fullWidth",
3429
- children: e.tabs.map((i) => {
3430
- const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(be, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(xe, { fontSize: "small", sx: { mr: 1 } });
3412
+ children: e.tabs.map((r) => {
3413
+ const n = r.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = r.label === "cartesian" ? /* @__PURE__ */ a(fe, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(be, { fontSize: "small", sx: { mr: 1 } });
3431
3414
  return /* @__PURE__ */ a(
3432
3415
  zt,
3433
3416
  {
3434
- "data-testid": `jogging-tab-${i.id}`,
3435
- "aria-label": `jogging-tab-${i.id}`,
3417
+ "data-testid": `jogging-tab-${r.id}`,
3418
+ "aria-label": `jogging-tab-${r.id}`,
3436
3419
  label: e.showTabIcons ? /* @__PURE__ */ S(_, { direction: "row", alignItems: "center", children: [
3437
3420
  c,
3438
3421
  n
3439
3422
  ] }) : n,
3440
- id: `jogging-tab-${i.id}`,
3441
- "aria-controls": `jogging-tab-${i.id}`
3423
+ id: `jogging-tab-${r.id}`,
3424
+ "aria-controls": `jogging-tab-${r.id}`
3442
3425
  },
3443
- i.id
3426
+ r.id
3444
3427
  );
3445
3428
  })
3446
3429
  }
@@ -3451,15 +3434,15 @@ const Zt = J(
3451
3434
  flexGrow: 1,
3452
3435
  position: "relative",
3453
3436
  sx: { overflowY: "auto", overflowX: "hidden" },
3454
- children: r()
3437
+ children: i()
3455
3438
  }
3456
3439
  ),
3457
- e.blocked && /* @__PURE__ */ a(To, { store: e })
3440
+ e.blocked && /* @__PURE__ */ a(wo, { store: e })
3458
3441
  ] });
3459
3442
  }
3460
3443
  ), Qt = (e) => {
3461
3444
  var s;
3462
- const { value: t, ref: o } = e, r = L(), [i, n] = F(!1);
3445
+ const { value: t, ref: o } = e, i = L(), [r, n] = F(!1);
3463
3446
  async function c() {
3464
3447
  if (!o || !("current" in o))
3465
3448
  return console.warn("No copy target found"), !1;
@@ -3476,13 +3459,13 @@ const Zt = J(
3476
3459
  return !1;
3477
3460
  }
3478
3461
  return A(() => {
3479
- if (!i)
3462
+ if (!r)
3480
3463
  return;
3481
3464
  const l = setTimeout(() => n(!1), 3e3);
3482
3465
  return () => {
3483
3466
  l && clearTimeout(l);
3484
3467
  };
3485
- }, [i]), /* @__PURE__ */ a(Ye, { open: i, title: "Copied!", children: /* @__PURE__ */ a(
3468
+ }, [r]), /* @__PURE__ */ a(qe, { open: r, title: "Copied!", children: /* @__PURE__ */ a(
3486
3469
  _,
3487
3470
  {
3488
3471
  justifyContent: "center",
@@ -3490,7 +3473,7 @@ const Zt = J(
3490
3473
  height: "100%",
3491
3474
  boxSizing: "border-box",
3492
3475
  padding: "6px 12px",
3493
- background: (s = r.palette.backgroundPaperElevation) == null ? void 0 : s[8],
3476
+ background: (s = i.palette.backgroundPaperElevation) == null ? void 0 : s[8],
3494
3477
  borderRadius: "10px",
3495
3478
  minWidth: "0",
3496
3479
  cursor: "pointer"
@@ -3504,7 +3487,7 @@ const Zt = J(
3504
3487
  sx: {
3505
3488
  pointerEvents: "none",
3506
3489
  fontSize: "12px",
3507
- color: r.palette.text.primary,
3490
+ color: i.palette.text.primary,
3508
3491
  whiteSpace: "nowrap",
3509
3492
  minWidth: 0,
3510
3493
  textOverflow: "ellipsis",
@@ -3516,9 +3499,9 @@ const Zt = J(
3516
3499
  )
3517
3500
  }
3518
3501
  ) });
3519
- }, mi = $(
3502
+ }, pi = $(
3520
3503
  J(({ tcpPose: e, showCopyButton: t = !1 }) => {
3521
- const [o, r] = F(null), i = Se(e);
3504
+ const [o, i] = F(null), r = ye(e);
3522
3505
  return /* @__PURE__ */ S(
3523
3506
  _,
3524
3507
  {
@@ -3528,7 +3511,7 @@ const Zt = J(
3528
3511
  sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
3529
3512
  "data-testid": "pose-cartesian-values",
3530
3513
  children: [
3531
- /* @__PURE__ */ a(Qt, { value: i }),
3514
+ /* @__PURE__ */ a(Qt, { value: r }),
3532
3515
  t && /* @__PURE__ */ a(
3533
3516
  Z,
3534
3517
  {
@@ -3537,9 +3520,9 @@ const Zt = J(
3537
3520
  size: "small",
3538
3521
  onClick: async () => {
3539
3522
  try {
3540
- await navigator.clipboard.writeText(i), r("Copied!"), setTimeout(() => r(null), 2e3);
3523
+ await navigator.clipboard.writeText(r), i("Copied!"), setTimeout(() => i(null), 2e3);
3541
3524
  } catch {
3542
- r("Copy failed"), setTimeout(() => r(null), 2e3);
3525
+ i("Copy failed"), setTimeout(() => i(null), 2e3);
3543
3526
  }
3544
3527
  },
3545
3528
  sx: { flexShrink: 0 },
@@ -3550,9 +3533,9 @@ const Zt = J(
3550
3533
  }
3551
3534
  );
3552
3535
  })
3553
- ), hi = $(
3536
+ ), mi = $(
3554
3537
  J(({ joints: e, showCopyButton: t = !1 }) => {
3555
- const [o, r] = F(null), i = `[${e.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
3538
+ const [o, i] = F(null), r = `[${e.map((c) => parseFloat(c.toFixed(4))).join(", ")}]`;
3556
3539
  return /* @__PURE__ */ S(
3557
3540
  _,
3558
3541
  {
@@ -3562,7 +3545,7 @@ const Zt = J(
3562
3545
  sx: { flexGrow: 1, minWidth: 0, overflow: "hidden" },
3563
3546
  "data-testid": "pose-joint-values",
3564
3547
  children: [
3565
- /* @__PURE__ */ a(Qt, { value: i }),
3548
+ /* @__PURE__ */ a(Qt, { value: r }),
3566
3549
  t && /* @__PURE__ */ a(
3567
3550
  Z,
3568
3551
  {
@@ -3571,9 +3554,9 @@ const Zt = J(
3571
3554
  size: "small",
3572
3555
  onClick: async () => {
3573
3556
  try {
3574
- await navigator.clipboard.writeText(i), r("Copied!"), setTimeout(() => r(null), 2e3);
3557
+ await navigator.clipboard.writeText(r), i("Copied!"), setTimeout(() => i(null), 2e3);
3575
3558
  } catch {
3576
- r("Copy failed"), setTimeout(() => r(null), 2e3);
3559
+ i("Copy failed"), setTimeout(() => i(null), 2e3);
3577
3560
  }
3578
3561
  },
3579
3562
  sx: { flexShrink: 0 },
@@ -3585,16 +3568,16 @@ const Zt = J(
3585
3568
  );
3586
3569
  })
3587
3570
  );
3588
- class Do {
3571
+ class Oo {
3589
3572
  constructor() {
3590
3573
  this.messages = [], this.addMessage = (t, o = "info") => {
3591
- const r = {
3574
+ const i = {
3592
3575
  id: Math.random().toString(36).substring(2, 11),
3593
3576
  timestamp: /* @__PURE__ */ new Date(),
3594
3577
  message: t,
3595
3578
  level: o
3596
3579
  };
3597
- this.messages.push(r);
3580
+ this.messages.push(i);
3598
3581
  }, this.clearMessages = () => {
3599
3582
  this.messages = [];
3600
3583
  }, this.addInfo = (t) => {
@@ -3605,8 +3588,8 @@ class Do {
3605
3588
  this.addMessage(t, "error");
3606
3589
  }, this.addDebug = (t) => {
3607
3590
  this.addMessage(t, "debug");
3608
- }, Te(this, {
3609
- messages: Me,
3591
+ }, we(this, {
3592
+ messages: Te,
3610
3593
  addMessage: Rt,
3611
3594
  clearMessages: Rt
3612
3595
  });
@@ -3617,10 +3600,10 @@ const at = (e, t, o) => ({
3617
3600
  timestamp: /* @__PURE__ */ new Date(),
3618
3601
  message: e,
3619
3602
  level: t
3620
- }), fi = (e, t) => at(e, "debug", t), bi = (e, t) => at(e, "info", t), xi = (e, t) => at(e, "warning", t), yi = (e, t) => at(e, "error", t), Ao = $(
3603
+ }), hi = (e, t) => at(e, "debug", t), fi = (e, t) => at(e, "info", t), bi = (e, t) => at(e, "warning", t), xi = (e, t) => at(e, "error", t), Do = $(
3621
3604
  J((e) => {
3622
3605
  var f;
3623
- const { messages: t = [], onClear: o, height: r = 400, sx: i } = e, n = L(), c = D(null);
3606
+ const { messages: t = [], onClear: o, height: i = 400, sx: r } = e, n = L(), c = D(null);
3624
3607
  A(() => {
3625
3608
  if (t.length === 0) return;
3626
3609
  const g = c.current;
@@ -3738,7 +3721,7 @@ const at = (e, t, o) => ({
3738
3721
  }
3739
3722
  },
3740
3723
  title: x ? "Copied!" : "Copy message",
3741
- children: /* @__PURE__ */ a(Ze, { sx: { fontSize: 12 } })
3724
+ children: /* @__PURE__ */ a(Ye, { sx: { fontSize: 12 } })
3742
3725
  }
3743
3726
  ),
3744
3727
  v && /* @__PURE__ */ a(
@@ -3754,7 +3737,7 @@ const at = (e, t, o) => ({
3754
3737
  }
3755
3738
  },
3756
3739
  title: d ? "Collapse" : "Expand",
3757
- children: d ? /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(Ke, { sx: { fontSize: 12 } })
3740
+ children: d ? /* @__PURE__ */ a(Qe, { sx: { fontSize: 12 } }) : /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } })
3758
3741
  }
3759
3742
  )
3760
3743
  ]
@@ -3766,17 +3749,17 @@ const at = (e, t, o) => ({
3766
3749
  );
3767
3750
  };
3768
3751
  return /* @__PURE__ */ S(
3769
- to,
3752
+ Ke,
3770
3753
  {
3771
3754
  sx: {
3772
3755
  backgroundColor: ((f = n.palette.backgroundPaperElevation) == null ? void 0 : f[2]) || "#171927",
3773
3756
  backgroundImage: "none",
3774
3757
  // Override any gradient from elevation
3775
- height: r,
3758
+ height: i,
3776
3759
  display: "flex",
3777
3760
  flexDirection: "column",
3778
3761
  overflow: "hidden",
3779
- ...i
3762
+ ...r
3780
3763
  },
3781
3764
  children: [
3782
3765
  /* @__PURE__ */ S(
@@ -3791,7 +3774,7 @@ const at = (e, t, o) => ({
3791
3774
  children: [
3792
3775
  /* @__PURE__ */ S(T, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
3793
3776
  /* @__PURE__ */ a(
3794
- Qe,
3777
+ Ze,
3795
3778
  {
3796
3779
  sx: {
3797
3780
  fontSize: 16,
@@ -3886,42 +3869,42 @@ const at = (e, t, o) => ({
3886
3869
  }
3887
3870
  );
3888
3871
  })
3889
- ), Si = $(
3872
+ ), yi = $(
3890
3873
  J((e) => {
3891
- const { store: t, onStoreReady: o, ...r } = e, i = D(o);
3874
+ const { store: t, onStoreReady: o, ...i } = e, r = D(o);
3892
3875
  A(() => {
3893
- i.current = o;
3876
+ r.current = o;
3894
3877
  }, [o]);
3895
3878
  const n = rt(() => {
3896
3879
  var l;
3897
- const s = t || new Do();
3898
- return (l = i.current) == null || l.call(i, s), s;
3880
+ const s = t || new Oo();
3881
+ return (l = r.current) == null || l.call(r, s), s;
3899
3882
  }, [t]), c = () => {
3900
3883
  n.clearMessages();
3901
3884
  };
3902
3885
  return /* @__PURE__ */ a(
3903
- Ao,
3886
+ Do,
3904
3887
  {
3905
- ...r,
3888
+ ...i,
3906
3889
  messages: n.messages,
3907
3890
  onClear: c
3908
3891
  }
3909
3892
  );
3910
3893
  })
3911
3894
  );
3912
- function Jo() {
3895
+ function Ao() {
3913
3896
  const e = window.location.href;
3914
3897
  return e.substring(
3915
3898
  0,
3916
3899
  e.indexOf("/", e.indexOf("//") + 2)
3917
3900
  );
3918
3901
  }
3919
- function vi({
3920
- baseUrl: e = Jo(),
3902
+ function Si({
3903
+ baseUrl: e = Ao(),
3921
3904
  ...t
3922
3905
  }) {
3923
3906
  return /* @__PURE__ */ S(
3924
- eo,
3907
+ to,
3925
3908
  {
3926
3909
  "aria-labelledby": "no-motion-group-modal-title",
3927
3910
  open: !0,
@@ -3941,9 +3924,9 @@ function vi({
3941
3924
  }
3942
3925
  },
3943
3926
  children: [
3944
- /* @__PURE__ */ a(io, { id: "no-motion-group-modal-title", children: "No motion group found" }),
3927
+ /* @__PURE__ */ a(no, { id: "no-motion-group-modal-title", children: "No motion group found" }),
3945
3928
  /* @__PURE__ */ S(
3946
- no,
3929
+ oo,
3947
3930
  {
3948
3931
  sx: {
3949
3932
  marginTop: "3rem",
@@ -3956,7 +3939,7 @@ function vi({
3956
3939
  ]
3957
3940
  }
3958
3941
  ),
3959
- /* @__PURE__ */ a(oo, { children: /* @__PURE__ */ S(_, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
3942
+ /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ S(_, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
3960
3943
  /* @__PURE__ */ a(
3961
3944
  Z,
3962
3945
  {
@@ -3989,49 +3972,49 @@ function vi({
3989
3972
  );
3990
3973
  }
3991
3974
  var Xt = /* @__PURE__ */ ((e) => (e.PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED", e.ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED", e.CELL_OPEN = "CELL_OPEN", e.E_STOP = "E_STOP", e.MANUAL_MODE = "MANUAL_MODE", e.READY = "READY", e))(Xt || {});
3992
- const Bo = $(
3975
+ const Jo = $(
3993
3976
  J(({ setupState: e, className: t }) => {
3994
- const o = L(), { t: r } = V(), i = () => {
3977
+ const o = L(), { t: i } = V(), r = () => {
3995
3978
  var u, f, g, d, p, x, y;
3996
3979
  switch (e) {
3997
3980
  case "READY":
3998
3981
  return {
3999
- label: r("RobotSetupReadinessIndicator.Ready.lb"),
3982
+ label: i("RobotSetupReadinessIndicator.Ready.lb"),
4000
3983
  indicatorColor: ((u = o.palette.tertiary) == null ? void 0 : u.main) || o.palette.primary.main,
4001
3984
  backgroundColor: ((f = o.palette.backgroundPaperElevation) == null ? void 0 : f[11]) || o.palette.background.paper,
4002
3985
  textColor: o.palette.secondary.contrastText
4003
3986
  };
4004
3987
  case "ROBOT_DISCONNECTED":
4005
3988
  return {
4006
- label: r("RobotSetupReadinessIndicator.RobotDisconnected.lb"),
3989
+ label: i("RobotSetupReadinessIndicator.RobotDisconnected.lb"),
4007
3990
  indicatorColor: o.palette.error.main,
4008
3991
  backgroundColor: ((g = o.palette.backgroundPaperElevation) == null ? void 0 : g[11]) || o.palette.background.paper,
4009
3992
  textColor: o.palette.secondary.contrastText
4010
3993
  };
4011
3994
  case "CELL_OPEN":
4012
3995
  return {
4013
- label: r("RobotSetupReadinessIndicator.CellOpen.lb"),
3996
+ label: i("RobotSetupReadinessIndicator.CellOpen.lb"),
4014
3997
  indicatorColor: o.palette.error.main,
4015
3998
  backgroundColor: ((d = o.palette.backgroundPaperElevation) == null ? void 0 : d[11]) || o.palette.background.paper,
4016
3999
  textColor: o.palette.secondary.contrastText
4017
4000
  };
4018
4001
  case "E_STOP":
4019
4002
  return {
4020
- label: r("RobotSetupReadinessIndicator.EStop.lb"),
4003
+ label: i("RobotSetupReadinessIndicator.EStop.lb"),
4021
4004
  indicatorColor: o.palette.error.main,
4022
4005
  backgroundColor: ((p = o.palette.backgroundPaperElevation) == null ? void 0 : p[11]) || o.palette.background.paper,
4023
4006
  textColor: o.palette.secondary.contrastText
4024
4007
  };
4025
4008
  case "MANUAL_MODE":
4026
4009
  return {
4027
- label: r("RobotSetupReadinessIndicator.ManualMode.lb"),
4010
+ label: i("RobotSetupReadinessIndicator.ManualMode.lb"),
4028
4011
  indicatorColor: o.palette.error.main,
4029
4012
  backgroundColor: ((x = o.palette.backgroundPaperElevation) == null ? void 0 : x[11]) || o.palette.background.paper,
4030
4013
  textColor: o.palette.secondary.contrastText
4031
4014
  };
4032
4015
  default:
4033
4016
  return {
4034
- label: r(
4017
+ label: i(
4035
4018
  "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb"
4036
4019
  ),
4037
4020
  indicatorColor: o.palette.error.main,
@@ -4039,9 +4022,9 @@ const Bo = $(
4039
4022
  textColor: o.palette.secondary.contrastText
4040
4023
  };
4041
4024
  }
4042
- }, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = i();
4025
+ }, { label: n, indicatorColor: c, backgroundColor: s, textColor: l } = r();
4043
4026
  return /* @__PURE__ */ a(
4044
- ao,
4027
+ ro,
4045
4028
  {
4046
4029
  className: t,
4047
4030
  label: /* @__PURE__ */ S(
@@ -4095,21 +4078,21 @@ const Bo = $(
4095
4078
  }
4096
4079
  );
4097
4080
  })
4098
- ), Ci = $(
4081
+ ), vi = $(
4099
4082
  J(
4100
4083
  ({
4101
4084
  robotName: e,
4102
4085
  robotType: t,
4103
4086
  setupState: o,
4104
- PreconditionComponent: r = Bo,
4105
- className: i
4087
+ PreconditionComponent: i = Jo,
4088
+ className: r
4106
4089
  }) => {
4107
4090
  var l;
4108
4091
  const n = L(), c = t || "Robot", s = o === Xt.READY;
4109
4092
  return /* @__PURE__ */ S(
4110
4093
  T,
4111
4094
  {
4112
- className: i,
4095
+ className: r,
4113
4096
  sx: {
4114
4097
  border: `1px solid ${n.palette.divider}`,
4115
4098
  background: ((l = n.palette.backgroundPaperElevation) == null ? void 0 : l[8]) || "#292B3F",
@@ -4148,10 +4131,10 @@ const Bo = $(
4148
4131
  fill: `${n.palette.primary.main} !important`
4149
4132
  }
4150
4133
  },
4151
- children: /* @__PURE__ */ a(Be, {})
4134
+ children: /* @__PURE__ */ a(Je, {})
4152
4135
  }
4153
4136
  ) : /* @__PURE__ */ a(
4154
- ro,
4137
+ io,
4155
4138
  {
4156
4139
  sx: {
4157
4140
  color: n.palette.error.main,
@@ -4195,16 +4178,16 @@ const Bo = $(
4195
4178
  ]
4196
4179
  }
4197
4180
  ),
4198
- r && /* @__PURE__ */ a(r, { setupState: o })
4181
+ i && /* @__PURE__ */ a(i, { setupState: o })
4199
4182
  ]
4200
4183
  }
4201
4184
  );
4202
4185
  }
4203
4186
  )
4204
- ), Fo = ut(so, {
4187
+ ), Bo = ut(ao, {
4205
4188
  shouldForwardProp: (e) => e !== "selected"
4206
4189
  })(({ theme: e }) => {
4207
- var t, o, r;
4190
+ var t, o, i;
4208
4191
  return {
4209
4192
  borderRadius: "20px",
4210
4193
  "&:hover": {
@@ -4212,7 +4195,7 @@ const Bo = $(
4212
4195
  },
4213
4196
  variants: [
4214
4197
  {
4215
- props: ({ selected: i }) => !i,
4198
+ props: ({ selected: r }) => !r,
4216
4199
  style: {
4217
4200
  background: (o = e.palette.backgroundPaperElevation) == null ? void 0 : o[0],
4218
4201
  color: e.palette.action.disabled,
@@ -4222,19 +4205,19 @@ const Bo = $(
4222
4205
  }
4223
4206
  },
4224
4207
  {
4225
- props: ({ selected: i }) => i,
4208
+ props: ({ selected: r }) => r,
4226
4209
  style: {
4227
- background: (r = e.palette.backgroundPaperElevation) == null ? void 0 : r[11],
4210
+ background: (i = e.palette.backgroundPaperElevation) == null ? void 0 : i[11],
4228
4211
  border: `1px solid ${e.palette.divider}`,
4229
4212
  color: e.palette.primary.contrastText
4230
4213
  }
4231
4214
  }
4232
4215
  ]
4233
4216
  };
4234
- }), wi = (e) => {
4217
+ }), Ci = (e) => {
4235
4218
  const { ref: t, ...o } = e;
4236
4219
  return /* @__PURE__ */ a(
4237
- Fo,
4220
+ Bo,
4238
4221
  {
4239
4222
  ref: t,
4240
4223
  selected: e.selected,
@@ -4244,25 +4227,25 @@ const Bo = $(
4244
4227
  }
4245
4228
  );
4246
4229
  };
4247
- function Lo(e) {
4248
- const { children: t, value: o, index: r, ...i } = e;
4230
+ function Fo(e) {
4231
+ const { children: t, value: o, index: i, ...r } = e;
4249
4232
  return /* @__PURE__ */ a(
4250
4233
  "div",
4251
4234
  {
4252
4235
  role: "tabpanel",
4253
- hidden: o !== r,
4254
- id: `tabpanel-${r}`,
4255
- "aria-labelledby": `tab-${r}`,
4256
- ...i,
4257
- children: o === r && /* @__PURE__ */ a(T, { children: t })
4236
+ hidden: o !== i,
4237
+ id: `tabpanel-${i}`,
4238
+ "aria-labelledby": `tab-${i}`,
4239
+ ...r,
4240
+ children: o === i && /* @__PURE__ */ a(T, { children: t })
4258
4241
  }
4259
4242
  );
4260
4243
  }
4261
- function $o({ children: e, ...t }) {
4244
+ function Lo({ children: e, ...t }) {
4262
4245
  const {
4263
4246
  fullWidth: o,
4264
- indicator: r,
4265
- onChange: i,
4247
+ indicator: i,
4248
+ onChange: r,
4266
4249
  orientation: n,
4267
4250
  scrollButtons: c,
4268
4251
  selectionFollowsFocus: s,
@@ -4273,21 +4256,21 @@ function $o({ children: e, ...t }) {
4273
4256
  } = t;
4274
4257
  return /* @__PURE__ */ a(T, { ...g, children: e });
4275
4258
  }
4276
- const Ti = $(
4259
+ const wi = $(
4277
4260
  J((e) => {
4278
4261
  const {
4279
4262
  items: t,
4280
4263
  activeTab: o,
4281
- defaultActiveTab: r = 0,
4282
- onTabChange: i,
4264
+ defaultActiveTab: i = 0,
4265
+ onTabChange: r,
4283
4266
  sx: n,
4284
4267
  ref: c
4285
- } = e, s = o !== void 0, [l, u] = F(r), f = s ? o : l;
4268
+ } = e, s = o !== void 0, [l, u] = F(i), f = s ? o : l;
4286
4269
  A(() => {
4287
4270
  s || t.length !== 0 && (l < 0 || l > t.length - 1) && u(0);
4288
4271
  }, [t.length, s, l]);
4289
4272
  const g = (d, p) => {
4290
- s || u(p), i == null || i(p);
4273
+ s || u(p), r == null || r(p);
4291
4274
  };
4292
4275
  return /* @__PURE__ */ S(
4293
4276
  T,
@@ -4348,7 +4331,7 @@ const Ti = $(
4348
4331
  const k = d.badge.content, R = d.badge.showZero;
4349
4332
  return !(k === 0 && !R);
4350
4333
  }, h = x(), m = y(), v = () => {
4351
- s || u(p), i == null || i(p);
4334
+ s || u(p), r == null || r(p);
4352
4335
  }, b = /* @__PURE__ */ a(
4353
4336
  zt,
4354
4337
  {
@@ -4394,12 +4377,12 @@ const Ti = $(
4394
4377
  d.id
4395
4378
  );
4396
4379
  return m ? /* @__PURE__ */ a(
4397
- $o,
4380
+ Lo,
4398
4381
  {
4399
4382
  component: "span",
4400
4383
  sx: { display: "inline-flex" },
4401
4384
  children: /* @__PURE__ */ a(
4402
- lo,
4385
+ so,
4403
4386
  {
4404
4387
  badgeContent: h,
4405
4388
  color: ((w = d.badge) == null ? void 0 : w.color) || "error",
@@ -4437,35 +4420,35 @@ const Ti = $(
4437
4420
  }
4438
4421
  }
4439
4422
  ),
4440
- /* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children: t.map((d, p) => /* @__PURE__ */ a(Lo, { value: f, index: p, children: d.content }, d.id)) })
4423
+ /* @__PURE__ */ a(T, { sx: { flex: 1, overflow: "auto" }, children: t.map((d, p) => /* @__PURE__ */ a(Fo, { value: f, index: p, children: d.content }, d.id)) })
4441
4424
  ]
4442
4425
  }
4443
4426
  );
4444
4427
  })
4445
- ), zo = (e) => {
4446
- const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, n = [];
4447
- 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(":");
4428
+ ), $o = (e) => {
4429
+ const t = Math.floor(e / 86400), o = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), r = e % 60, n = [];
4430
+ return t > 0 ? (n.push(t.toString()), n.push(o.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(i.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0"))) : (n.push(i.toString()), n.push(r.toString().padStart(2, "0"))), n.join(":");
4448
4431
  }, At = (e, t) => {
4449
- const o = Math.floor(e / 86400), r = Math.floor(e % 86400 / 3600), i = Math.floor(e % 3600 / 60), n = e % 60;
4432
+ const o = Math.floor(e / 86400), i = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), n = e % 60;
4450
4433
  if (typeof Intl < "u" && "DurationFormat" in Intl)
4451
4434
  try {
4452
4435
  const s = {};
4453
- 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);
4436
+ return o > 0 && (s.days = o), i > 0 && (s.hours = i), r > 0 && (s.minutes = r), (n > 0 || Object.keys(s).length === 0) && (s.seconds = n), new Intl.DurationFormat(t, { style: "narrow" }).format(s);
4454
4437
  } catch {
4455
4438
  }
4456
4439
  const c = [];
4457
- 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(" ");
4458
- }, Vo = ({
4440
+ return o > 0 && c.push(`${o}d`), i > 0 && c.push(`${i}h`), r > 0 && c.push(`${r}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
4441
+ }, zo = ({
4459
4442
  timerState: e,
4460
4443
  animationState: t,
4461
4444
  hasError: o,
4462
- className: r
4445
+ className: i
4463
4446
  }) => {
4464
- const { t: i } = V(), n = L(), { elapsedTime: c, currentProgress: s } = e, { showErrorAnimation: l, showPauseAnimation: u, showMainText: f } = t;
4447
+ const { t: r } = V(), n = L(), { elapsedTime: c, currentProgress: s } = e, { showErrorAnimation: l, showPauseAnimation: u, showMainText: f } = t;
4465
4448
  return /* @__PURE__ */ S(
4466
4449
  T,
4467
4450
  {
4468
- className: r,
4451
+ className: i,
4469
4452
  sx: {
4470
4453
  position: "relative",
4471
4454
  width: 264,
@@ -4476,7 +4459,7 @@ const Ti = $(
4476
4459
  },
4477
4460
  children: [
4478
4461
  /* @__PURE__ */ a(
4479
- co,
4462
+ lo,
4480
4463
  {
4481
4464
  width: 264,
4482
4465
  height: 264,
@@ -4552,7 +4535,7 @@ const Ti = $(
4552
4535
  fontWeight: 500,
4553
4536
  color: n.palette.error.light
4554
4537
  },
4555
- children: i("timer.error")
4538
+ children: r("timer.error")
4556
4539
  }
4557
4540
  ) }),
4558
4541
  /* @__PURE__ */ a(U, { in: f && !o, timeout: 300, children: /* @__PURE__ */ a(
@@ -4567,7 +4550,7 @@ const Ti = $(
4567
4550
  lineHeight: 1,
4568
4551
  letterSpacing: "-0.5px"
4569
4552
  },
4570
- children: zo(c)
4553
+ children: $o(c)
4571
4554
  }
4572
4555
  ) })
4573
4556
  ]
@@ -4578,18 +4561,18 @@ const Ti = $(
4578
4561
  ]
4579
4562
  }
4580
4563
  );
4581
- }, No = ({
4564
+ }, Vo = ({
4582
4565
  timerState: e,
4583
4566
  animationState: t,
4584
4567
  hasError: o,
4585
- compact: r,
4586
- className: i
4568
+ compact: i,
4569
+ className: r
4587
4570
  }) => {
4588
4571
  const { t: n, i18n: c } = V(), s = L(), { elapsedTime: l, currentProgress: u } = e, { showErrorAnimation: f, showPauseAnimation: g } = t;
4589
- return r ? /* @__PURE__ */ a(
4572
+ return i ? /* @__PURE__ */ a(
4590
4573
  T,
4591
4574
  {
4592
- className: i,
4575
+ className: r,
4593
4576
  sx: {
4594
4577
  display: "flex",
4595
4578
  alignItems: "center",
@@ -4611,7 +4594,7 @@ const Ti = $(
4611
4594
  ) : /* @__PURE__ */ S(
4612
4595
  T,
4613
4596
  {
4614
- className: i,
4597
+ className: r,
4615
4598
  sx: {
4616
4599
  display: "flex",
4617
4600
  alignItems: "center",
@@ -4695,30 +4678,30 @@ const Ti = $(
4695
4678
  ]
4696
4679
  }
4697
4680
  );
4698
- }, Wo = () => {
4681
+ }, No = () => {
4699
4682
  const [e, t] = F({
4700
4683
  showPauseAnimation: !1,
4701
4684
  showErrorAnimation: !1,
4702
4685
  showMainText: !0
4703
4686
  }), o = D(
4704
4687
  null
4705
- ), r = D(
4688
+ ), i = D(
4706
4689
  null
4707
- ), i = D(null), n = P(() => {
4690
+ ), r = D(null), n = P(() => {
4708
4691
  t((g) => ({ ...g, showPauseAnimation: !0 })), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
4709
4692
  t((g) => ({ ...g, showPauseAnimation: !1 }));
4710
4693
  }, 800);
4711
4694
  }, []), c = P(() => {
4712
- t((g) => ({ ...g, showErrorAnimation: !0 })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
4695
+ t((g) => ({ ...g, showErrorAnimation: !0 })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
4713
4696
  t((g) => ({ ...g, showErrorAnimation: !1 }));
4714
4697
  }, 600);
4715
4698
  }, []), s = P(() => {
4716
- t((g) => ({ ...g, showErrorAnimation: !1 })), r.current && clearTimeout(r.current);
4699
+ t((g) => ({ ...g, showErrorAnimation: !1 })), i.current && clearTimeout(i.current);
4717
4700
  }, []), l = P(() => {
4718
4701
  t((g) => ({
4719
4702
  ...g,
4720
4703
  showMainText: !1
4721
- })), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
4704
+ })), r.current && clearTimeout(r.current), r.current = setTimeout(() => {
4722
4705
  t((g) => ({
4723
4706
  ...g,
4724
4707
  showMainText: !0
@@ -4730,7 +4713,7 @@ const Ti = $(
4730
4713
  showMainText: !0
4731
4714
  }));
4732
4715
  }, []), f = P(() => {
4733
- o.current && clearTimeout(o.current), r.current && clearTimeout(r.current), i.current && clearTimeout(i.current);
4716
+ o.current && clearTimeout(o.current), i.current && clearTimeout(i.current), r.current && clearTimeout(r.current);
4734
4717
  }, []);
4735
4718
  return {
4736
4719
  animationState: e,
@@ -4741,12 +4724,12 @@ const Ti = $(
4741
4724
  setInitialAnimationState: u,
4742
4725
  cleanup: f
4743
4726
  };
4744
- }, Go = ({
4727
+ }, Wo = ({
4745
4728
  autoStart: e,
4746
4729
  hasError: t,
4747
4730
  onPauseAnimation: o,
4748
- onErrorAnimation: r,
4749
- onClearErrorAnimation: i
4731
+ onErrorAnimation: i,
4732
+ onClearErrorAnimation: r
4750
4733
  }) => {
4751
4734
  const [n, c] = F({
4752
4735
  elapsedTime: 0,
@@ -4800,15 +4783,15 @@ const Ti = $(
4800
4783
  })), u.current = 0, l.current = null, f.current = 0, g.setImmediate([0]);
4801
4784
  }, [g]), h = P(() => n.isPausedState, [n.isPausedState]);
4802
4785
  return A(() => {
4803
- t ? (n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !0 })), p()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !1 })), x()), i());
4786
+ t ? (n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !0 })), p()), i()) : (n.wasRunningBeforeError && !n.isRunning && (c((m) => ({ ...m, wasRunningBeforeError: !1 })), x()), r());
4804
4787
  }, [
4805
4788
  t,
4806
4789
  n.isRunning,
4807
4790
  n.wasRunningBeforeError,
4808
4791
  p,
4809
4792
  x,
4810
- r,
4811
- i
4793
+ i,
4794
+ r
4812
4795
  ]), A(() => {
4813
4796
  if (n.isRunning) {
4814
4797
  const m = () => {
@@ -4847,14 +4830,14 @@ const Ti = $(
4847
4830
  isPaused: h
4848
4831
  }
4849
4832
  };
4850
- }, Mi = $(
4833
+ }, Ti = $(
4851
4834
  J(
4852
4835
  ({
4853
4836
  onTimerReady: e,
4854
4837
  autoStart: t = !0,
4855
4838
  variant: o = "default",
4856
- compact: r = !1,
4857
- className: i,
4839
+ compact: i = !1,
4840
+ className: r,
4858
4841
  hasError: n = !1
4859
4842
  }) => {
4860
4843
  const {
@@ -4864,7 +4847,7 @@ const Ti = $(
4864
4847
  clearErrorAnimation: u,
4865
4848
  setInitialAnimationState: f,
4866
4849
  cleanup: g
4867
- } = Wo(), { timerState: d, controls: p } = Go({
4850
+ } = No(), { timerState: d, controls: p } = Wo({
4868
4851
  autoStart: t,
4869
4852
  hasError: n,
4870
4853
  onPauseAnimation: s,
@@ -4882,26 +4865,26 @@ const Ti = $(
4882
4865
  x = !1, clearTimeout(y);
4883
4866
  };
4884
4867
  }, [e, p]), A(() => g, [g]), o === "small" ? /* @__PURE__ */ a(
4885
- No,
4868
+ Vo,
4886
4869
  {
4887
4870
  timerState: d,
4888
4871
  animationState: c,
4889
4872
  hasError: n,
4890
- compact: r,
4891
- className: i
4873
+ compact: i,
4874
+ className: r
4892
4875
  }
4893
4876
  ) : /* @__PURE__ */ a(
4894
- Vo,
4877
+ zo,
4895
4878
  {
4896
4879
  timerState: d,
4897
4880
  animationState: c,
4898
4881
  hasError: n,
4899
- className: i
4882
+ className: r
4900
4883
  }
4901
4884
  );
4902
4885
  }
4903
4886
  )
4904
- ), Jt = 1e-4, Uo = {
4887
+ ), Jt = 1e-4, Go = {
4905
4888
  a: 0,
4906
4889
  d: 0,
4907
4890
  alpha: 0,
@@ -4909,8 +4892,8 @@ const Ti = $(
4909
4892
  reverse_rotation_direction: !1
4910
4893
  };
4911
4894
  class gt {
4912
- constructor(t, o, r, i, n, c, s, l, u, f) {
4913
- this.nova = t, this.controller = o, this.motionGroup = r, this.initialMotionState = i, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = u, this.controllerStateSocket = f, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = i, this.controllerState = u, f.addEventListener("message", (g) => {
4895
+ constructor(t, o, i, r, n, c, s, l, u, f) {
4896
+ this.nova = t, this.controller = o, this.motionGroup = i, this.initialMotionState = r, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = u, this.controllerStateSocket = f, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = r, this.controllerState = u, f.addEventListener("message", (g) => {
4914
4897
  var p;
4915
4898
  const d = (p = W(g.data)) == null ? void 0 : p.result;
4916
4899
  d && B(() => {
@@ -4945,21 +4928,21 @@ class gt {
4945
4928
  static async connectMultiple(t, o) {
4946
4929
  return Promise.all(
4947
4930
  o.map(
4948
- (r) => gt.connect(t, r)
4931
+ (i) => gt.connect(t, i)
4949
4932
  )
4950
4933
  );
4951
4934
  }
4952
4935
  static async connect(t, o) {
4953
4936
  var m, v;
4954
- const [r, i] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(i), c = n == null ? void 0 : n.motion_groups.find(
4937
+ const [i, r] = o.split("@"), n = await t.api.controller.getCurrentRobotControllerState(r), c = n == null ? void 0 : n.motion_groups.find(
4955
4938
  (b) => b.motion_group === o
4956
4939
  );
4957
4940
  if (!n || !c)
4958
4941
  throw new Error(
4959
- `Controller ${i} or motion group ${o} not found`
4942
+ `Controller ${r} or motion group ${o} not found`
4960
4943
  );
4961
4944
  const s = t.openReconnectingWebsocket(
4962
- `/controllers/${i}/motion-groups/${o}/state-stream`
4945
+ `/controllers/${r}/motion-groups/${o}/state-stream`
4963
4946
  ), l = await s.firstMessage(), u = (m = W(l.data)) == null ? void 0 : m.result;
4964
4947
  if (!u)
4965
4948
  throw new Error(
@@ -4973,7 +4956,7 @@ class gt {
4973
4956
  const g = (await t.api.controller.getRobotController(
4974
4957
  n.controller
4975
4958
  )).configuration.kind === "VirtualController", d = await t.api.motionGroup.getMotionGroupDescription(
4976
- i,
4959
+ r,
4977
4960
  c.motion_group
4978
4961
  ), p = Object.entries(d.tcps || {}).map(
4979
4962
  ([b, w]) => ({
@@ -5028,7 +5011,7 @@ class gt {
5028
5011
  get dhParameters() {
5029
5012
  if (this.description.dh_parameters !== void 0)
5030
5013
  return this.description.dh_parameters.map((t) => ({
5031
- ...Uo,
5014
+ ...Go,
5032
5015
  ...t
5033
5016
  }));
5034
5017
  }
@@ -5037,22 +5020,22 @@ class gt {
5037
5020
  }
5038
5021
  /** Gets the robot mounting position offset in 3D viz coordinates */
5039
5022
  get mountingPosition() {
5040
- var t, o, r;
5023
+ var t, o, i;
5041
5024
  return this.description.mounting ? [
5042
5025
  (((t = this.description.mounting.position) == null ? void 0 : t[0]) || 0) / 1e3,
5043
5026
  (((o = this.description.mounting.position) == null ? void 0 : o[1]) || 0) / 1e3,
5044
- (((r = this.description.mounting.position) == null ? void 0 : r[2]) || 0) / 1e3
5027
+ (((i = this.description.mounting.position) == null ? void 0 : i[2]) || 0) / 1e3
5045
5028
  ] : [0, 0, 0];
5046
5029
  }
5047
5030
  /** Gets the robot mounting position rotation in 3D viz coordinates */
5048
5031
  get mountingQuaternion() {
5049
- var i, n, c, s, l, u;
5032
+ var r, n, c, s, l, u;
5050
5033
  const t = new Et.Vector3(
5051
- ((n = (i = this.description.mounting) == null ? void 0 : i.orientation) == null ? void 0 : n[0]) || 0,
5034
+ ((n = (r = this.description.mounting) == null ? void 0 : r.orientation) == null ? void 0 : n[0]) || 0,
5052
5035
  ((s = (c = this.description.mounting) == null ? void 0 : c.orientation) == null ? void 0 : s[1]) || 0,
5053
5036
  ((u = (l = this.description.mounting) == null ? void 0 : l.orientation) == null ? void 0 : u[2]) || 0
5054
- ), o = t.length(), r = t.normalize();
5055
- return new Et.Quaternion().setFromAxisAngle(r, o);
5037
+ ), o = t.length(), i = t.normalize();
5038
+ return new Et.Quaternion().setFromAxisAngle(i, o);
5056
5039
  }
5057
5040
  /**
5058
5041
  * Whether the controller is currently in a safety state
@@ -5145,7 +5128,7 @@ class gt {
5145
5128
  }
5146
5129
  }
5147
5130
  function Kt() {
5148
- var t, o, r, i, n, c;
5131
+ var t, o, i, r, n, c;
5149
5132
  const e = Bt({
5150
5133
  palette: {
5151
5134
  mode: "dark",
@@ -5339,7 +5322,7 @@ function Kt() {
5339
5322
  props: { color: "secondary", variant: "contained" },
5340
5323
  style: {
5341
5324
  border: `1px solid ${e.palette.divider}`,
5342
- background: (r = (o = (t = e.paletteExt) == null ? void 0 : t.secondary) == null ? void 0 : o.tonal) == null ? void 0 : r.toString()
5325
+ background: (i = (o = (t = e.paletteExt) == null ? void 0 : t.secondary) == null ? void 0 : o.tonal) == null ? void 0 : i.toString()
5343
5326
  }
5344
5327
  },
5345
5328
  {
@@ -5364,7 +5347,7 @@ function Kt() {
5364
5347
  MuiTabs: {
5365
5348
  styleOverrides: {
5366
5349
  root: {
5367
- background: (i = e.palette.backgroundPaperElevation) == null ? void 0 : i[1]
5350
+ background: (r = e.palette.backgroundPaperElevation) == null ? void 0 : r[1]
5368
5351
  }
5369
5352
  }
5370
5353
  },
@@ -5483,52 +5466,52 @@ function Kt() {
5483
5466
  }
5484
5467
  };
5485
5468
  }
5486
- function Ho() {
5469
+ function Uo() {
5487
5470
  const e = Kt();
5488
5471
  return e.palette.mode = "light", e;
5489
5472
  }
5490
- function Ii(e) {
5491
- var r, i, n, c;
5473
+ function Mi(e) {
5474
+ var i, r, n, c;
5492
5475
  let t = !0;
5493
- ((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)));
5494
- const o = t ? Kt() : Ho();
5476
+ ((i = e.palette) == null ? void 0 : i.mode) === "light" ? t = !1 : ((r = e.palette) == null ? void 0 : r.mode) !== "dark" && (t = !(typeof window < "u" && ((c = (n = window.matchMedia) == null ? void 0 : n.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : c.matches)));
5477
+ const o = t ? Kt() : Uo();
5495
5478
  return Bt(o, e);
5496
5479
  }
5497
5480
  export {
5498
- gi as A,
5499
- ui as C,
5481
+ di as A,
5482
+ gi as C,
5500
5483
  bt as J,
5501
- Do as L,
5484
+ Oo as L,
5502
5485
  ht as M,
5503
- vi as N,
5504
- mi as P,
5505
- Ci as R,
5506
- wi as S,
5507
- Ti as T,
5508
- Eo as V,
5509
- xo as W,
5486
+ Si as N,
5487
+ pi as P,
5488
+ vi as R,
5489
+ Ci as S,
5490
+ wi as T,
5491
+ jo as V,
5492
+ bo as W,
5510
5493
  _t as a,
5511
- yo as b,
5512
- Ii as c,
5513
- pi as d,
5514
- hi as e,
5515
- Co as f,
5516
- wo as g,
5517
- Si as h,
5494
+ xo as b,
5495
+ Mi as c,
5496
+ ui as d,
5497
+ mi as e,
5498
+ vo as f,
5499
+ Co as g,
5500
+ yi as h,
5518
5501
  at as i,
5519
- fi as j,
5520
- bi as k,
5521
- xi as l,
5522
- yi as m,
5523
- Ao as n,
5502
+ hi as j,
5503
+ fi as k,
5504
+ bi as l,
5505
+ xi as m,
5506
+ Do as n,
5524
5507
  Xt as o,
5525
- Bo as p,
5526
- Mi as q,
5508
+ Jo as p,
5509
+ Ti as q,
5527
5510
  Yt as r,
5528
5511
  gt as s,
5529
5512
  ft as t,
5530
5513
  Ut as u,
5531
- So as v,
5514
+ yo as v,
5532
5515
  Ht as w,
5533
- vo as x
5516
+ So as x
5534
5517
  };