@wandelbots/wandelbots-js-react-components 1.17.6 → 1.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as $ from "react";
2
2
  import ki, { useState as ea, useEffect as Gt, lazy as zu, useRef as kt, Suspense as Li, useCallback as Gu, forwardRef as Yt } from "react";
3
- import { Stack as ie, CircularProgress as Wu, useTheme as wo, capitalize as Ku, Button as Kr, Typography as pt, IconButton as Zo, Slider as Hu, InputLabel as Jr, Chip as Xu, Select as Ia, MenuItem as yn, ToggleButtonGroup as $i, ToggleButton as Dn, Paper as qu, Tabs as Yu, Tab as Zu, Dialog as Qu, DialogTitle as ec, DialogContent as tc, DialogActions as rc } from "@mui/material";
3
+ import { Stack as oe, CircularProgress as Wu, useTheme as wo, capitalize as Ku, Button as Kr, Typography as pt, IconButton as Zo, Slider as Hu, InputLabel as Jr, Chip as Xu, Select as Ia, MenuItem as yn, ToggleButtonGroup as $i, ToggleButton as Dn, Paper as qu, Tabs as Yu, Tab as Zu, Dialog as Qu, DialogTitle as ec, DialogContent as tc, DialogActions as rc } from "@mui/material";
4
4
  import { I18nextProvider as nc, useTranslation as Zt } from "react-i18next";
5
5
  import ac from "i18next-browser-languagedetector";
6
6
  import { lowerFirst as oc, omit as sc, isString as ic } from "lodash-es";
@@ -98,14 +98,14 @@ function Pc() {
98
98
  ee.unshift("Warning: " + w), Function.prototype.apply.call(console[p], console, ee);
99
99
  }
100
100
  }
101
- var k = !1, R = !1, P = !1, O = !1, z = !1, oe;
102
- oe = Symbol.for("react.module.reference");
101
+ var k = !1, R = !1, P = !1, O = !1, z = !1, se;
102
+ se = Symbol.for("react.module.reference");
103
103
  function le(p) {
104
104
  return !!(typeof p == "string" || typeof p == "function" || p === r || p === s || z || p === a || p === c || p === d || O || p === v || k || R || P || typeof p == "object" && p !== null && (p.$$typeof === h || p.$$typeof === m || p.$$typeof === i || p.$$typeof === l || p.$$typeof === u || // This needs to include all possible module reference object
105
105
  // types supported by any Flight configuration anywhere since
106
106
  // we don't know which Flight build this will end up being used
107
107
  // with.
108
- p.$$typeof === oe || p.getModuleId !== void 0));
108
+ p.$$typeof === se || p.getModuleId !== void 0));
109
109
  }
110
110
  function F(p, w, T) {
111
111
  var L = p.displayName;
@@ -162,14 +162,14 @@ function Pc() {
162
162
  }
163
163
  return null;
164
164
  }
165
- var X = Object.assign, K = 0, xe, se, Y, je, Ie, rt, _t;
165
+ var X = Object.assign, K = 0, xe, ie, Y, je, Ie, rt, _t;
166
166
  function Ge() {
167
167
  }
168
168
  Ge.__reactDisabledLog = !0;
169
169
  function Se() {
170
170
  {
171
171
  if (K === 0) {
172
- xe = console.log, se = console.info, Y = console.warn, je = console.error, Ie = console.group, rt = console.groupCollapsed, _t = console.groupEnd;
172
+ xe = console.log, ie = console.info, Y = console.warn, je = console.error, Ie = console.group, rt = console.groupCollapsed, _t = console.groupEnd;
173
173
  var p = {
174
174
  configurable: !0,
175
175
  enumerable: !0,
@@ -202,7 +202,7 @@ function Pc() {
202
202
  value: xe
203
203
  }),
204
204
  info: X({}, p, {
205
- value: se
205
+ value: ie
206
206
  }),
207
207
  warn: X({}, p, {
208
208
  value: Y
@@ -1110,9 +1110,9 @@ class Vn extends ta {
1110
1110
  h = h.join(S), h && (h = this.extendTranslation(h, t, n, r));
1111
1111
  else {
1112
1112
  let k = !1, R = !1;
1113
- const P = n.count !== void 0 && typeof n.count != "string", O = Vn.hasDefaultValue(n), z = P ? this.pluralResolver.getSuffix(c, n.count, n) : "", oe = n.ordinal && P ? this.pluralResolver.getSuffix(c, n.count, {
1113
+ const P = n.count !== void 0 && typeof n.count != "string", O = Vn.hasDefaultValue(n), z = P ? this.pluralResolver.getSuffix(c, n.count, n) : "", se = n.ordinal && P ? this.pluralResolver.getSuffix(c, n.count, {
1114
1114
  ordinal: !1
1115
- }) : "", le = P && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), F = le && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${z}`] || n[`defaultValue${oe}`] || n.defaultValue;
1115
+ }) : "", le = P && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), F = le && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${z}`] || n[`defaultValue${se}`] || n.defaultValue;
1116
1116
  !this.isValidLookup(h) && O && (k = !0, h = F), this.isValidLookup(h) || (R = !0, h = i);
1117
1117
  const V = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : h, X = O && F !== h && this.options.updateMissing;
1118
1118
  if (R || k || X) {
@@ -1129,16 +1129,16 @@ class Vn extends ta {
1129
1129
  for (let Y = 0; Y < xe.length; Y++)
1130
1130
  K.push(xe[Y]);
1131
1131
  else this.options.saveMissingTo === "all" ? K = this.languageUtils.toResolveHierarchy(n.lng || this.language) : K.push(n.lng || this.language);
1132
- const se = (Y, je, Ie) => {
1132
+ const ie = (Y, je, Ie) => {
1133
1133
  const rt = O && Ie !== h ? Ie : V;
1134
1134
  this.options.missingKeyHandler ? this.options.missingKeyHandler(Y, u, je, rt, X, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Y, u, je, rt, X, n), this.emit("missingKey", Y, u, je, h);
1135
1135
  };
1136
1136
  this.options.saveMissing && (this.options.saveMissingPlurals && P ? K.forEach((Y) => {
1137
1137
  const je = this.pluralResolver.getSuffixes(Y, n);
1138
1138
  le && n[`defaultValue${this.options.pluralSeparator}zero`] && je.indexOf(`${this.options.pluralSeparator}zero`) < 0 && je.push(`${this.options.pluralSeparator}zero`), je.forEach((Ie) => {
1139
- se([Y], i + Ie, n[`defaultValue${Ie}`] || F);
1139
+ ie([Y], i + Ie, n[`defaultValue${Ie}`] || F);
1140
1140
  });
1141
- }) : se(K, i, F));
1141
+ }) : ie(K, i, F));
1142
1142
  }
1143
1143
  h = this.extendTranslation(h, t, n, m, r), R && h === i && this.options.appendNamespaceToMissingKey && (h = `${u}:${i}`), (R || k) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${i}` : i, k ? h : void 0) : h = this.options.parseMissingKeyHandler(h));
1144
1144
  }
@@ -3465,11 +3465,11 @@ const Sh = async (e) => {
3465
3465
  duplex: "half"
3466
3466
  }), O;
3467
3467
  if (x.isFormData(r) && (O = P.headers.get("content-type")) && d.setContentType(O), P.body) {
3468
- const [z, oe] = vs(
3468
+ const [z, se] = vs(
3469
3469
  j,
3470
3470
  zn(bs(u))
3471
3471
  );
3472
- r = Ss(P.body, ws, z, oe, eo);
3472
+ r = Ss(P.body, ws, z, se, eo);
3473
3473
  }
3474
3474
  }
3475
3475
  x.isString(m) || (m = m ? "include" : "omit"), g = new Request(t, {
@@ -3488,13 +3488,13 @@ const Sh = async (e) => {
3488
3488
  ["status", "statusText", "headers"].forEach((le) => {
3489
3489
  P[le] = C[le];
3490
3490
  });
3491
- const O = x.toFiniteNumber(C.headers.get("content-length")), [z, oe] = l && vs(
3491
+ const O = x.toFiniteNumber(C.headers.get("content-length")), [z, se] = l && vs(
3492
3492
  O,
3493
3493
  zn(bs(l), !0)
3494
3494
  ) || [];
3495
3495
  C = new Response(
3496
3496
  Ss(C.body, ws, z, () => {
3497
- oe && oe(), k && S();
3497
+ se && se(), k && S();
3498
3498
  }, eo),
3499
3499
  P
3500
3500
  );
@@ -3959,7 +3959,7 @@ const Oo = (e) => {
3959
3959
  }, t);
3960
3960
  return () => clearTimeout(a);
3961
3961
  }), /* @__PURE__ */ o.jsx(
3962
- ie,
3962
+ oe,
3963
3963
  {
3964
3964
  width: "100%",
3965
3965
  height: "100%",
@@ -3975,7 +3975,7 @@ const Oo = (e) => {
3975
3975
  /* @__PURE__ */ o.jsx(Wu, { sx: { marginBottom: "24px" } }),
3976
3976
  !!e.message && /* @__PURE__ */ o.jsx("div", { children: e.message }),
3977
3977
  /* @__PURE__ */ o.jsx(
3978
- ie,
3978
+ oe,
3979
3979
  {
3980
3980
  sx: {
3981
3981
  visibility: n ? "visible" : "hidden",
@@ -3991,7 +3991,7 @@ const Oo = (e) => {
3991
3991
  }, Th = (e) => {
3992
3992
  const t = Ih(e.error), n = e.error instanceof Error ? e.error.stack : null, r = wo();
3993
3993
  return /* @__PURE__ */ o.jsxs(
3994
- ie,
3994
+ oe,
3995
3995
  {
3996
3996
  sx: {
3997
3997
  maxHeight: "100%",
@@ -11490,7 +11490,7 @@ function Ef() {
11490
11490
  }
11491
11491
  }
11492
11492
  }
11493
- var P = i, O = s, z = e, oe = u, le = n, F = h, H = m, V = t, X = a, K = r, xe = c, se = d, Y = !1, je = !1;
11493
+ var P = i, O = s, z = e, se = u, le = n, F = h, H = m, V = t, X = a, K = r, xe = c, ie = d, Y = !1, je = !1;
11494
11494
  function Ie(I) {
11495
11495
  return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
11496
11496
  }
@@ -11533,7 +11533,7 @@ function Ef() {
11533
11533
  function Ue(I) {
11534
11534
  return R(I) === d;
11535
11535
  }
11536
- ae.ContextConsumer = P, ae.ContextProvider = O, ae.Element = z, ae.ForwardRef = oe, ae.Fragment = le, ae.Lazy = F, ae.Memo = H, ae.Portal = V, ae.Profiler = X, ae.StrictMode = K, ae.Suspense = xe, ae.SuspenseList = se, ae.isAsyncMode = Ie, ae.isConcurrentMode = rt, ae.isContextConsumer = _t, ae.isContextProvider = Ge, ae.isElement = Se, ae.isForwardRef = At, ae.isFragment = it, ae.isLazy = We, ae.isMemo = De, ae.isPortal = lt, ae.isProfiler = ut, ae.isStrictMode = Nt, ae.isSuspense = vt, ae.isSuspenseList = Ue, ae.isValidElementType = k, ae.typeOf = R;
11536
+ ae.ContextConsumer = P, ae.ContextProvider = O, ae.Element = z, ae.ForwardRef = se, ae.Fragment = le, ae.Lazy = F, ae.Memo = H, ae.Portal = V, ae.Profiler = X, ae.StrictMode = K, ae.Suspense = xe, ae.SuspenseList = ie, ae.isAsyncMode = Ie, ae.isConcurrentMode = rt, ae.isContextConsumer = _t, ae.isContextProvider = Ge, ae.isElement = Se, ae.isForwardRef = At, ae.isFragment = it, ae.isLazy = We, ae.isMemo = De, ae.isPortal = lt, ae.isProfiler = ut, ae.isStrictMode = Nt, ae.isSuspense = vt, ae.isSuspenseList = Ue, ae.isValidElementType = k, ae.typeOf = R;
11537
11537
  }()), ae;
11538
11538
  }
11539
11539
  process.env.NODE_ENV === "production" ? co.exports = Tf() : co.exports = Ef();
@@ -11692,9 +11692,9 @@ function Vf(e = {}) {
11692
11692
  theme: V
11693
11693
  }));
11694
11694
  }), y || z.push(s);
11695
- const oe = z.length - P.length;
11696
- if (Array.isArray(R) && oe > 0) {
11697
- const F = new Array(oe).fill("");
11695
+ const se = z.length - P.length;
11696
+ if (Array.isArray(R) && se > 0) {
11697
+ const F = new Array(se).fill("");
11698
11698
  O = [...R, ...F], O.raw = [...R.raw, ...F];
11699
11699
  }
11700
11700
  const le = j(O, ...z);
@@ -12376,9 +12376,9 @@ function q0(e = {}) {
12376
12376
  theme: V
12377
12377
  }));
12378
12378
  }), y || z.push(s);
12379
- const oe = z.length - P.length;
12380
- if (Array.isArray(R) && oe > 0) {
12381
- const F = new Array(oe).fill("");
12379
+ const se = z.length - P.length;
12380
+ if (Array.isArray(R) && se > 0) {
12381
+ const F = new Array(se).fill("");
12382
12382
  O = [...R, ...F], O.raw = [...R.raw, ...F];
12383
12383
  }
12384
12384
  const le = j(O, ...z);
@@ -13592,8 +13592,8 @@ function yg(e, t, n) {
13592
13592
  return c = P, l = setTimeout(S, t), d ? v(P) : i;
13593
13593
  }
13594
13594
  function y(P) {
13595
- var O = P - u, z = P - c, oe = t - O;
13596
- return m ? gg(oe, s - z) : oe;
13595
+ var O = P - u, z = P - c, se = t - O;
13596
+ return m ? gg(se, s - z) : se;
13597
13597
  }
13598
13598
  function g(P) {
13599
13599
  var O = P - u, z = P - c;
@@ -13828,7 +13828,7 @@ const bg = rn(
13828
13828
  titleId: t,
13829
13829
  ...n
13830
13830
  }, r) => /* @__PURE__ */ $.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 25, height: 24, fill: "none", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ $.createElement("title", { id: t }, e) : null, /* @__PURE__ */ $.createElement("path", { stroke: "#fff", strokeLinecap: "round", strokeWidth: 1.5, d: "M18.5 12a6 6 0 1 0-6 6" }), /* @__PURE__ */ $.createElement("path", { stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m16.5 11 2 2.5 2-2.5" })), Pg = Yt(Ag), li = (e) => /* @__PURE__ */ o.jsx(
13831
- ie,
13831
+ oe,
13832
13832
  {
13833
13833
  position: "absolute",
13834
13834
  left: 0,
@@ -13877,7 +13877,7 @@ const bg = rn(
13877
13877
  }
13878
13878
  ) });
13879
13879
  }
13880
- return /* @__PURE__ */ o.jsxs(ie, { sx: { position: "relative", padding: "6px" }, children: [
13880
+ return /* @__PURE__ */ o.jsxs(oe, { sx: { position: "relative", padding: "6px" }, children: [
13881
13881
  r(),
13882
13882
  t
13883
13883
  ] });
@@ -13911,7 +13911,7 @@ const bg = rn(
13911
13911
  return on(() => {
13912
13912
  t.current && (t.current.textContent = n());
13913
13913
  }), /* @__PURE__ */ o.jsx(
13914
- ie,
13914
+ oe,
13915
13915
  {
13916
13916
  alignItems: "left",
13917
13917
  spacing: 2,
@@ -14469,7 +14469,7 @@ const Iu = ({
14469
14469
  }
14470
14470
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
14471
14471
  /* @__PURE__ */ o.jsxs(
14472
- ie,
14472
+ oe,
14473
14473
  {
14474
14474
  direction: "row",
14475
14475
  alignItems: "center",
@@ -14483,7 +14483,7 @@ const Iu = ({
14483
14483
  }
14484
14484
  },
14485
14485
  children: [
14486
- /* @__PURE__ */ o.jsxs(ie, { width: "50%", children: [
14486
+ /* @__PURE__ */ o.jsxs(oe, { width: "50%", children: [
14487
14487
  /* @__PURE__ */ o.jsx(Jr, { id: "jogging-coord-select", children: "Coordinate Sys." }),
14488
14488
  /* @__PURE__ */ o.jsx(
14489
14489
  Ia,
@@ -14499,7 +14499,7 @@ const Iu = ({
14499
14499
  }
14500
14500
  )
14501
14501
  ] }),
14502
- /* @__PURE__ */ o.jsxs(ie, { width: "50%", children: [
14502
+ /* @__PURE__ */ o.jsxs(oe, { width: "50%", children: [
14503
14503
  /* @__PURE__ */ o.jsx(Jr, { id: "jogging-tcp-select", children: "TCP" }),
14504
14504
  /* @__PURE__ */ o.jsx(
14505
14505
  Ia,
@@ -14518,7 +14518,7 @@ const Iu = ({
14518
14518
  }
14519
14519
  ),
14520
14520
  /* @__PURE__ */ o.jsxs(
14521
- ie,
14521
+ oe,
14522
14522
  {
14523
14523
  direction: "row",
14524
14524
  alignItems: "center",
@@ -14532,7 +14532,7 @@ const Iu = ({
14532
14532
  }
14533
14533
  },
14534
14534
  children: [
14535
- /* @__PURE__ */ o.jsxs(ie, { width: "35%", children: [
14535
+ /* @__PURE__ */ o.jsxs(oe, { width: "35%", children: [
14536
14536
  /* @__PURE__ */ o.jsx(Jr, { id: "orientation-select", children: t("Jogging.Cartesian.Orientation.lb") }),
14537
14537
  /* @__PURE__ */ o.jsxs(
14538
14538
  $i,
@@ -14549,7 +14549,7 @@ const Iu = ({
14549
14549
  }
14550
14550
  )
14551
14551
  ] }),
14552
- /* @__PURE__ */ o.jsxs(ie, { width: "65%", children: [
14552
+ /* @__PURE__ */ o.jsxs(oe, { width: "65%", children: [
14553
14553
  /* @__PURE__ */ o.jsx(Jr, { id: "jogging-increment-select", children: "Increment" }),
14554
14554
  /* @__PURE__ */ o.jsxs(
14555
14555
  Ia,
@@ -14704,7 +14704,7 @@ function y_(e) {
14704
14704
  shiftStep: g = 10,
14705
14705
  tabIndex: S,
14706
14706
  value: j
14707
- } = e, C = $.useRef(), [k, R] = $.useState(-1), [P, O] = $.useState(-1), [z, oe] = $.useState(!1), le = $.useRef(0), [F, H] = au({
14707
+ } = e, C = $.useRef(), [k, R] = $.useState(-1), [P, O] = $.useState(-1), [z, se] = $.useState(!1), le = $.useRef(0), [F, H] = au({
14708
14708
  controlled: j,
14709
14709
  default: n ?? u,
14710
14710
  name: "Slider"
@@ -14722,7 +14722,7 @@ function y_(e) {
14722
14722
  K = K.map((M) => M == null ? u : fr(M, u, l));
14723
14723
  const xe = i === !0 && y !== null ? [...Array(Math.floor((l - u) / y) + 1)].map((M, E) => ({
14724
14724
  value: u + y * E
14725
- })) : i || [], se = xe.map((M) => M.value), {
14725
+ })) : i || [], ie = xe.map((M) => M.value), {
14726
14726
  isFocusVisibleRef: Y,
14727
14727
  onBlur: je,
14728
14728
  onFocus: Ie,
@@ -14735,11 +14735,11 @@ function y_(e) {
14735
14735
  var N;
14736
14736
  je(E), Y.current === !1 && Ge(-1), O(-1), M == null || (N = M.onBlur) == null || N.call(M, E);
14737
14737
  }, lt = (M, E) => {
14738
- const N = Number(M.currentTarget.getAttribute("data-index")), G = K[N], q = se.indexOf(G);
14738
+ const N = Number(M.currentTarget.getAttribute("data-index")), G = K[N], q = ie.indexOf(G);
14739
14739
  let W = E;
14740
14740
  if (xe && y == null) {
14741
- const Be = se[se.length - 1];
14742
- W > Be ? W = Be : W < se[0] ? W = se[0] : W = W < G ? se[q - 1] : se[q + 1];
14741
+ const Be = ie[ie.length - 1];
14742
+ W > Be ? W = Be : W < ie[0] ? W = ie[0] : W = W < G ? ie[q - 1] : ie[q + 1];
14743
14743
  }
14744
14744
  if (W = fr(W, u, l), X) {
14745
14745
  a && (W = fr(W, K[N - 1] || -1 / 0, K[N + 1] || 1 / 0));
@@ -14795,8 +14795,8 @@ function y_(e) {
14795
14795
  if (Q = h_(Ke, u, l), y)
14796
14796
  Q = f_(Q, y, u);
14797
14797
  else {
14798
- const Mt = Ai(se, Q);
14799
- Q = se[Mt];
14798
+ const Mt = Ai(ie, Q);
14799
+ Q = ie[Mt];
14800
14800
  }
14801
14801
  Q = fr(Q, u, l);
14802
14802
  let ke = 0;
@@ -14832,10 +14832,10 @@ function y_(e) {
14832
14832
  sliderRef: Se,
14833
14833
  activeIndex: G,
14834
14834
  setActive: R
14835
- }), H(N), !z && le.current > d_ && oe(!0), V && !Rn(N, F) && V(M, N, G);
14835
+ }), H(N), !z && le.current > d_ && se(!0), V && !Rn(N, F) && V(M, N, G);
14836
14836
  }), de = Ln((M) => {
14837
14837
  const E = wn(M, C);
14838
- if (oe(!1), !E)
14838
+ if (se(!1), !E)
14839
14839
  return;
14840
14840
  const {
14841
14841
  newValue: N
@@ -15541,7 +15541,7 @@ const S_ = jt("span", {
15541
15541
  }, M_ = ({
15542
15542
  children: e
15543
15543
  }) => e, ku = /* @__PURE__ */ $.forwardRef(function(t, n) {
15544
- var r, a, s, i, l, u, c, d, m, h, v, _, y, g, S, j, C, k, R, P, O, z, oe, le;
15544
+ var r, a, s, i, l, u, c, d, m, h, v, _, y, g, S, j, C, k, R, P, O, z, se, le;
15545
15545
  const F = zo({
15546
15546
  props: t,
15547
15547
  name: "MuiSlider"
@@ -15551,7 +15551,7 @@ const S_ = jt("span", {
15551
15551
  "aria-labelledby": K,
15552
15552
  // eslint-disable-next-line react/prop-types
15553
15553
  component: xe = "span",
15554
- components: se = {},
15554
+ components: ie = {},
15555
15555
  componentsProps: Y = {},
15556
15556
  color: je = "primary",
15557
15557
  classes: Ie,
@@ -15610,7 +15610,7 @@ const S_ = jt("span", {
15610
15610
  rootRef: n
15611
15611
  }));
15612
15612
  we.marked = G.length > 0 && G.some((L) => L.label), we.dragging = N, we.focusedThumbIndex = M;
15613
- const Q = O_(we), ke = (r = (a = Z == null ? void 0 : Z.root) != null ? a : se.Root) != null ? r : S_, Mt = (s = (i = Z == null ? void 0 : Z.rail) != null ? i : se.Rail) != null ? s : w_, nr = (l = (u = Z == null ? void 0 : Z.track) != null ? u : se.Track) != null ? l : j_, Or = (c = (d = Z == null ? void 0 : Z.thumb) != null ? d : se.Thumb) != null ? c : R_, bt = (m = (h = Z == null ? void 0 : Z.valueLabel) != null ? h : se.ValueLabel) != null ? m : C_, Dt = (v = (_ = Z == null ? void 0 : Z.mark) != null ? _ : se.Mark) != null ? v : A_, Ut = (y = (g = Z == null ? void 0 : Z.markLabel) != null ? g : se.MarkLabel) != null ? y : P_, Mr = (S = (j = Z == null ? void 0 : Z.input) != null ? j : se.Input) != null ? S : "input", Ir = (C = I == null ? void 0 : I.root) != null ? C : Y.root, fn = (k = I == null ? void 0 : I.rail) != null ? k : Y.rail, Tr = (R = I == null ? void 0 : I.track) != null ? R : Y.track, ar = (P = I == null ? void 0 : I.thumb) != null ? P : Y.thumb, or = (O = I == null ? void 0 : I.valueLabel) != null ? O : Y.valueLabel, Ra = (z = I == null ? void 0 : I.mark) != null ? z : Y.mark, Ca = (oe = I == null ? void 0 : I.markLabel) != null ? oe : Y.markLabel, pn = (le = I == null ? void 0 : I.input) != null ? le : Y.input, gn = Tt({
15613
+ const Q = O_(we), ke = (r = (a = Z == null ? void 0 : Z.root) != null ? a : ie.Root) != null ? r : S_, Mt = (s = (i = Z == null ? void 0 : Z.rail) != null ? i : ie.Rail) != null ? s : w_, nr = (l = (u = Z == null ? void 0 : Z.track) != null ? u : ie.Track) != null ? l : j_, Or = (c = (d = Z == null ? void 0 : Z.thumb) != null ? d : ie.Thumb) != null ? c : R_, bt = (m = (h = Z == null ? void 0 : Z.valueLabel) != null ? h : ie.ValueLabel) != null ? m : C_, Dt = (v = (_ = Z == null ? void 0 : Z.mark) != null ? _ : ie.Mark) != null ? v : A_, Ut = (y = (g = Z == null ? void 0 : Z.markLabel) != null ? g : ie.MarkLabel) != null ? y : P_, Mr = (S = (j = Z == null ? void 0 : Z.input) != null ? j : ie.Input) != null ? S : "input", Ir = (C = I == null ? void 0 : I.root) != null ? C : Y.root, fn = (k = I == null ? void 0 : I.rail) != null ? k : Y.rail, Tr = (R = I == null ? void 0 : I.track) != null ? R : Y.track, ar = (P = I == null ? void 0 : I.thumb) != null ? P : Y.thumb, or = (O = I == null ? void 0 : I.valueLabel) != null ? O : Y.valueLabel, Ra = (z = I == null ? void 0 : I.mark) != null ? z : Y.mark, Ca = (se = I == null ? void 0 : I.markLabel) != null ? se : Y.markLabel, pn = (le = I == null ? void 0 : I.input) != null ? le : Y.input, gn = Tt({
15614
15614
  elementType: ke,
15615
15615
  getSlotProps: Ft,
15616
15616
  externalSlotProps: Ir,
@@ -16028,13 +16028,13 @@ const E_ = et((e) => {
16028
16028
  }
16029
16029
  }));
16030
16030
  return /* @__PURE__ */ o.jsx(
16031
- ie,
16031
+ oe,
16032
16032
  {
16033
16033
  sx: {
16034
16034
  margin: "0px 20px",
16035
16035
  marginBottom: "12px"
16036
16036
  },
16037
- children: /* @__PURE__ */ o.jsx(ie, { sx: { width: "380px", maxWidth: "90%", margin: "auto" }, children: /* @__PURE__ */ o.jsx(
16037
+ children: /* @__PURE__ */ o.jsx(oe, { sx: { width: "380px", maxWidth: "90%", margin: "auto" }, children: /* @__PURE__ */ o.jsx(
16038
16038
  E_,
16039
16039
  {
16040
16040
  velocity: e.velocityInCurrentUnits,
@@ -16049,10 +16049,10 @@ const E_ = et((e) => {
16049
16049
  );
16050
16050
  }
16051
16051
  ), k_ = et(
16052
- ({ store: e }) => {
16053
- const { t } = Zt();
16054
- function n(c, d) {
16055
- (d === "translate" || d === "rotate") && e.setSelectedCartesianMotionType(d);
16052
+ ({ store: e, children: t }) => {
16053
+ const { t: n } = Zt();
16054
+ function r(d, m) {
16055
+ (m === "translate" || m === "rotate") && e.setSelectedCartesianMotionType(m);
16056
16056
  }
16057
16057
  Ol(
16058
16058
  () => [e.selectedCoordSystemId, e.selectedTcpId],
@@ -16065,45 +16065,45 @@ const E_ = et((e) => {
16065
16065
  },
16066
16066
  { fireImmediately: !0 }
16067
16067
  );
16068
- async function r(c, d) {
16069
- const m = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose, h = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;
16070
- m && await e.withMotionLock(async () => {
16068
+ async function a(d, m) {
16069
+ const h = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose, v = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;
16070
+ h && await e.withMotionLock(async () => {
16071
16071
  await e.jogger.runIncrementalCartesianMotion({
16072
- currentTcpPose: m,
16073
- currentJoints: h,
16072
+ currentTcpPose: h,
16073
+ currentJoints: v,
16074
16074
  coordSystemId: e.activeCoordSystemId,
16075
16075
  velocityInRelevantUnits: e.velocityInCurrentUnits,
16076
- axis: c.axis,
16077
- direction: c.direction,
16076
+ axis: d.axis,
16077
+ direction: d.direction,
16078
16078
  motion: e.selectedCartesianMotionType === "translate" ? {
16079
16079
  type: "translate",
16080
- distanceMm: d.mm
16080
+ distanceMm: m.mm
16081
16081
  } : {
16082
16082
  type: "rotate",
16083
- distanceRads: jc(d.degrees)
16083
+ distanceRads: jc(m.degrees)
16084
16084
  }
16085
16085
  });
16086
16086
  });
16087
16087
  }
16088
- async function a(c) {
16088
+ async function s(d) {
16089
16089
  if (!e.isLocked) {
16090
16090
  if (e.activeDiscreteIncrement)
16091
- return r(c, e.activeDiscreteIncrement);
16092
- c.motionType === "translate" ? await e.jogger.startTCPTranslation({
16093
- axis: c.axis,
16094
- direction: c.direction,
16091
+ return a(d, e.activeDiscreteIncrement);
16092
+ d.motionType === "translate" ? await e.jogger.startTCPTranslation({
16093
+ axis: d.axis,
16094
+ direction: d.direction,
16095
16095
  velocityMmPerSec: e.translationVelocityMmPerSec
16096
16096
  }) : await e.jogger.startTCPRotation({
16097
- axis: c.axis,
16098
- direction: c.direction,
16097
+ axis: d.axis,
16098
+ direction: d.direction,
16099
16099
  velocityRadsPerSec: e.rotationVelocityRadsPerSec
16100
16100
  });
16101
16101
  }
16102
16102
  }
16103
- async function s() {
16103
+ async function i() {
16104
16104
  e.isLocked || e.activeDiscreteIncrement || await e.jogger.stop();
16105
16105
  }
16106
- const i = [
16106
+ const l = [
16107
16107
  {
16108
16108
  id: "x",
16109
16109
  color: "#F14D42",
@@ -16120,23 +16120,26 @@ const E_ = et((e) => {
16120
16120
  icon: /* @__PURE__ */ o.jsx(Cg, {})
16121
16121
  }
16122
16122
  ];
16123
- function l(c) {
16124
- return t("General.mm.variable", { amount: c.toFixed(1) });
16123
+ function u(d) {
16124
+ return n("General.mm.variable", { amount: d.toFixed(1) });
16125
16125
  }
16126
- function u(c) {
16127
- return t("General.degree.variable", {
16128
- amount: Pn(c).toFixed(1)
16126
+ function c(d) {
16127
+ return n("General.degree.variable", {
16128
+ amount: Pn(d).toFixed(1)
16129
16129
  });
16130
16130
  }
16131
- return /* @__PURE__ */ o.jsxs(ie, { children: [
16132
- /* @__PURE__ */ o.jsx(Og, { store: e }),
16133
- /* @__PURE__ */ o.jsx(u_, { store: e }),
16131
+ return /* @__PURE__ */ o.jsxs(oe, { flexGrow: 1, justifyContent: "space-between", children: [
16132
+ /* @__PURE__ */ o.jsxs(oe, { children: [
16133
+ /* @__PURE__ */ o.jsx(Og, { store: e }),
16134
+ /* @__PURE__ */ o.jsx(u_, { store: e })
16135
+ ] }),
16134
16136
  /* @__PURE__ */ o.jsxs(
16135
- ie,
16137
+ oe,
16136
16138
  {
16137
16139
  width: "80%",
16138
16140
  maxWidth: "296px",
16139
- margin: "auto",
16141
+ marginLeft: "auto",
16142
+ marginRight: "auto",
16140
16143
  marginTop: "16px",
16141
16144
  gap: "12px",
16142
16145
  children: [
@@ -16144,23 +16147,23 @@ const E_ = et((e) => {
16144
16147
  $i,
16145
16148
  {
16146
16149
  value: e.selectedCartesianMotionType,
16147
- onChange: n,
16150
+ onChange: r,
16148
16151
  exclusive: !0,
16149
- "aria-label": t("Jogging.Cartesian.MotionType.lb"),
16152
+ "aria-label": n("Jogging.Cartesian.MotionType.lb"),
16150
16153
  children: [
16151
- /* @__PURE__ */ o.jsx(Dn, { value: "translate", children: t("Jogging.Cartesian.Translation.bt") }),
16152
- /* @__PURE__ */ o.jsx(Dn, { value: "rotate", children: t("Jogging.Cartesian.Rotation.bt") })
16154
+ /* @__PURE__ */ o.jsx(Dn, { value: "translate", children: n("Jogging.Cartesian.Translation.bt") }),
16155
+ /* @__PURE__ */ o.jsx(Dn, { value: "rotate", children: n("Jogging.Cartesian.Rotation.bt") })
16153
16156
  ]
16154
16157
  }
16155
16158
  ),
16156
- /* @__PURE__ */ o.jsx(vu, { store: e, children: /* @__PURE__ */ o.jsxs(ie, { gap: "12px", children: [
16157
- e.selectedCartesianMotionType === "translate" && i.map((c) => /* @__PURE__ */ o.jsx(
16159
+ /* @__PURE__ */ o.jsx(vu, { store: e, children: /* @__PURE__ */ o.jsxs(oe, { gap: "12px", children: [
16160
+ e.selectedCartesianMotionType === "translate" && l.map((d) => /* @__PURE__ */ o.jsx(
16158
16161
  ni,
16159
16162
  {
16160
- color: c.color,
16163
+ color: d.color,
16161
16164
  disabled: e.isLocked,
16162
16165
  label: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
16163
- c.icon,
16166
+ d.icon,
16164
16167
  /* @__PURE__ */ o.jsx(
16165
16168
  pt,
16166
16169
  {
@@ -16168,29 +16171,29 @@ const E_ = et((e) => {
16168
16171
  fontSize: "24px",
16169
16172
  color: "white"
16170
16173
  },
16171
- children: c.id.toUpperCase()
16174
+ children: d.id.toUpperCase()
16172
16175
  }
16173
16176
  )
16174
16177
  ] }),
16175
16178
  getDisplayedValue: () => {
16176
- var d;
16177
- return l(
16178
- ((d = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : d.position[c.id]) || 0
16179
+ var m;
16180
+ return u(
16181
+ ((m = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : m.position[d.id]) || 0
16179
16182
  );
16180
16183
  },
16181
- startJogging: (d) => a({
16182
- axis: c.id,
16184
+ startJogging: (m) => s({
16185
+ axis: d.id,
16183
16186
  motionType: "translate",
16184
- direction: d
16187
+ direction: m
16185
16188
  }),
16186
- stopJogging: s
16189
+ stopJogging: i
16187
16190
  },
16188
- c.id
16191
+ d.id
16189
16192
  )),
16190
- e.selectedCartesianMotionType === "rotate" && i.map((c) => /* @__PURE__ */ o.jsx(
16193
+ e.selectedCartesianMotionType === "rotate" && l.map((d) => /* @__PURE__ */ o.jsx(
16191
16194
  ni,
16192
16195
  {
16193
- color: c.color,
16196
+ color: d.color,
16194
16197
  disabled: e.isLocked,
16195
16198
  label: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
16196
16199
  /* @__PURE__ */ o.jsx(Pg, {}),
@@ -16201,31 +16204,34 @@ const E_ = et((e) => {
16201
16204
  fontSize: "24px",
16202
16205
  color: "white"
16203
16206
  },
16204
- children: c.id.toUpperCase()
16207
+ children: d.id.toUpperCase()
16205
16208
  }
16206
16209
  )
16207
16210
  ] }),
16208
16211
  getDisplayedValue: () => {
16209
- var d, m;
16210
- return u(
16211
- ((m = (d = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : d.orientation) == null ? void 0 : m[c.id]) || 0
16212
+ var m, h;
16213
+ return c(
16214
+ ((h = (m = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : m.orientation) == null ? void 0 : h[d.id]) || 0
16212
16215
  );
16213
16216
  },
16214
- startJogging: (d) => a({
16215
- axis: c.id,
16217
+ startJogging: (m) => s({
16218
+ axis: d.id,
16216
16219
  motionType: "rotate",
16217
- direction: d
16220
+ direction: m
16218
16221
  }),
16219
- stopJogging: s
16222
+ stopJogging: i
16220
16223
  },
16221
- c.id
16224
+ d.id
16222
16225
  ))
16223
16226
  ] }) })
16224
16227
  ]
16225
16228
  }
16226
16229
  ),
16227
- /* @__PURE__ */ o.jsx(Iu, { store: e }),
16228
- /* @__PURE__ */ o.jsx(Lu, { store: e })
16230
+ /* @__PURE__ */ o.jsxs(oe, { children: [
16231
+ /* @__PURE__ */ o.jsx(Iu, { store: e }),
16232
+ /* @__PURE__ */ o.jsx(Lu, { store: e }),
16233
+ t
16234
+ ] })
16229
16235
  ] });
16230
16236
  }
16231
16237
  ), L_ = et(
@@ -16239,7 +16245,7 @@ const E_ = et((e) => {
16239
16245
  return on(() => {
16240
16246
  t.current && (t.current.textContent = n());
16241
16247
  }), /* @__PURE__ */ o.jsx(
16242
- ie,
16248
+ oe,
16243
16249
  {
16244
16250
  alignItems: "left",
16245
16251
  spacing: 2,
@@ -16263,25 +16269,25 @@ const E_ = et((e) => {
16263
16269
  );
16264
16270
  }
16265
16271
  ), $_ = et(
16266
- ({ store: e }) => {
16267
- async function t(r) {
16272
+ ({ store: e, children: t }) => {
16273
+ async function n(a) {
16268
16274
  await e.jogger.startJointRotation({
16269
- joint: r.joint,
16270
- direction: r.direction,
16275
+ joint: a.joint,
16276
+ direction: a.direction,
16271
16277
  velocityRadsPerSec: e.rotationVelocityRadsPerSec
16272
16278
  });
16273
16279
  }
16274
- async function n() {
16280
+ async function r() {
16275
16281
  await e.jogger.stop();
16276
16282
  }
16277
- return /* @__PURE__ */ o.jsxs(ie, { children: [
16283
+ return /* @__PURE__ */ o.jsxs(oe, { flexGrow: 1, justifyContent: "space-between", children: [
16278
16284
  /* @__PURE__ */ o.jsx(L_, { store: e }),
16279
- /* @__PURE__ */ o.jsx(ie, { marginTop: "0.8rem" }),
16280
- /* @__PURE__ */ o.jsx(vu, { store: e, children: /* @__PURE__ */ o.jsx(ie, { gap: "0.8rem", children: e.jogger.motionStream.joints.map((r) => {
16281
- var l;
16282
- const a = (l = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : l[r.index], s = (a == null ? void 0 : a.lower_limit) !== void 0 ? Pn(a.lower_limit) : void 0, i = (a == null ? void 0 : a.upper_limit) !== void 0 ? Pn(a.upper_limit) : void 0;
16285
+ /* @__PURE__ */ o.jsx(oe, { marginTop: "0.8rem" }),
16286
+ /* @__PURE__ */ o.jsx(vu, { store: e, children: /* @__PURE__ */ o.jsx(oe, { gap: "0.8rem", children: e.jogger.motionStream.joints.map((a) => {
16287
+ var u;
16288
+ const s = (u = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : u[a.index], i = (s == null ? void 0 : s.lower_limit) !== void 0 ? Pn(s.lower_limit) : void 0, l = (s == null ? void 0 : s.upper_limit) !== void 0 ? Pn(s.upper_limit) : void 0;
16283
16289
  return /* @__PURE__ */ o.jsxs(
16284
- ie,
16290
+ oe,
16285
16291
  {
16286
16292
  direction: "row",
16287
16293
  alignItems: "center",
@@ -16294,26 +16300,26 @@ const E_ = et((e) => {
16294
16300
  flexGrow: 1,
16295
16301
  textAlign: "right"
16296
16302
  },
16297
- children: `J${r.index + 1}`
16303
+ children: `J${a.index + 1}`
16298
16304
  }
16299
16305
  ),
16300
16306
  /* @__PURE__ */ o.jsx(
16301
16307
  bg,
16302
16308
  {
16303
16309
  disabled: e.isLocked,
16304
- lowerLimitDegs: s,
16305
- upperLimitDegs: i,
16310
+ lowerLimitDegs: i,
16311
+ upperLimitDegs: l,
16306
16312
  getValueDegs: () => {
16307
- const u = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[r.index];
16308
- return u !== void 0 ? Pn(u) : void 0;
16313
+ const c = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];
16314
+ return c !== void 0 ? Pn(c) : void 0;
16309
16315
  },
16310
- startJogging: (u) => t({
16311
- joint: r.index,
16312
- direction: u
16316
+ startJogging: (c) => n({
16317
+ joint: a.index,
16318
+ direction: c
16313
16319
  }),
16314
- stopJogging: n
16320
+ stopJogging: r
16315
16321
  },
16316
- r.index
16322
+ a.index
16317
16323
  ),
16318
16324
  /* @__PURE__ */ o.jsx(
16319
16325
  pt,
@@ -16325,7 +16331,7 @@ const E_ = et((e) => {
16325
16331
  )
16326
16332
  ]
16327
16333
  },
16328
- `joint-${r.index}`
16334
+ `joint-${a.index}`
16329
16335
  );
16330
16336
  }) }) }),
16331
16337
  /* @__PURE__ */ o.jsx(Iu, { store: e }),
@@ -16813,7 +16819,7 @@ const db = rn(
16813
16819
  const a = n.joggingStore;
16814
16820
  a && (e.locked ? a.locks.add("external") : a.locks.delete("external"));
16815
16821
  }, [e.locked]), /* @__PURE__ */ o.jsx(
16816
- ie,
16822
+ oe,
16817
16823
  {
16818
16824
  sx: {
16819
16825
  maxWidth: "460px",
@@ -16868,17 +16874,11 @@ const db = rn(
16868
16874
  );
16869
16875
  function n() {
16870
16876
  if (e.currentTab.id === "cartesian")
16871
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
16872
- /* @__PURE__ */ o.jsx(k_, { store: e }),
16873
- t
16874
- ] });
16877
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(k_, { store: e, children: t }) });
16875
16878
  if (e.currentTab.id === "joint")
16876
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
16877
- /* @__PURE__ */ o.jsx($_, { store: e }),
16878
- t
16879
- ] });
16879
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx($_, { store: e, children: t }) });
16880
16880
  }
16881
- return /* @__PURE__ */ o.jsxs(ie, { flexGrow: 1, height: "100%", children: [
16881
+ return /* @__PURE__ */ o.jsxs(oe, { flexGrow: 1, height: "100%", children: [
16882
16882
  /* @__PURE__ */ o.jsx(Yu, { value: e.tabIndex, onChange: e.onTabChange, children: e.tabs.map((r) => /* @__PURE__ */ o.jsx(
16883
16883
  Zu,
16884
16884
  {
@@ -16888,7 +16888,7 @@ const db = rn(
16888
16888
  },
16889
16889
  r.id
16890
16890
  )) }),
16891
- /* @__PURE__ */ o.jsx(ie, { flexGrow: 1, position: "relative", children: n() })
16891
+ /* @__PURE__ */ o.jsx(oe, { flexGrow: 1, position: "relative", children: n() })
16892
16892
  ] });
16893
16893
  }
16894
16894
  );
@@ -16939,7 +16939,7 @@ function hb({
16939
16939
  ]
16940
16940
  }
16941
16941
  ),
16942
- /* @__PURE__ */ o.jsx(rc, { children: /* @__PURE__ */ o.jsxs(ie, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
16942
+ /* @__PURE__ */ o.jsx(rc, { children: /* @__PURE__ */ o.jsxs(oe, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
16943
16943
  /* @__PURE__ */ o.jsx(
16944
16944
  Kr,
16945
16945
  {