@wandelbots/wandelbots-js-react-components 3.6.0-pr.feat-model-retrieval-from-rdp.463.38d5c81 → 3.6.0-pr.feat-add-abb-cobots.464.ab034a2

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.
Files changed (77) hide show
  1. package/README.md +0 -18
  2. package/dist/3d.cjs.js +1 -1
  3. package/dist/3d.es.js +1 -1
  4. package/dist/{LoadingCover-6gWr11KP.js → LoadingCover-Dr9hDTku.js} +10 -11
  5. package/dist/{LoadingCover-6gWr11KP.js.map → LoadingCover-Dr9hDTku.js.map} +1 -1
  6. package/dist/LoadingCover-r2yhJZF9.cjs +2 -0
  7. package/dist/{LoadingCover-CukpS_aj.cjs.map → LoadingCover-r2yhJZF9.cjs.map} +1 -1
  8. package/dist/WandelscriptEditor-Dj7TBCkF.cjs +2 -0
  9. package/dist/{WandelscriptEditor-D6_vS5Uk.cjs.map → WandelscriptEditor-Dj7TBCkF.cjs.map} +1 -1
  10. package/dist/{WandelscriptEditor-7eN-Yw7m.js → WandelscriptEditor-DnJvITTA.js} +3 -3
  11. package/dist/{WandelscriptEditor-7eN-Yw7m.js.map → WandelscriptEditor-DnJvITTA.js.map} +1 -1
  12. package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js +1438 -0
  13. package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js.map +1 -0
  14. package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs +5 -0
  15. package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs.map +1 -0
  16. package/dist/components/RobotCard.d.ts +1 -1
  17. package/dist/components/RobotCard.d.ts.map +1 -1
  18. package/dist/components/robots/GenericRobot.d.ts +2 -2
  19. package/dist/components/robots/GenericRobot.d.ts.map +1 -1
  20. package/dist/components/robots/Robot.d.ts +1 -1
  21. package/dist/components/robots/Robot.d.ts.map +1 -1
  22. package/dist/components/robots/SupportedRobot.d.ts +1 -1
  23. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  24. package/dist/components/robots/robotModelLogic.d.ts +1 -1
  25. package/dist/components/robots/robotModelLogic.d.ts.map +1 -1
  26. package/dist/core.cjs.js +1 -1
  27. package/dist/core.es.js +4 -4
  28. package/dist/index-CAib4NKw.js +2261 -0
  29. package/dist/index-CAib4NKw.js.map +1 -0
  30. package/dist/index-CqMZL0FV.cjs +2 -0
  31. package/dist/index-CqMZL0FV.cjs.map +1 -0
  32. package/dist/index-CxasuX80.js +5212 -0
  33. package/dist/index-CxasuX80.js.map +1 -0
  34. package/dist/index-DxwppshT.cjs +29 -0
  35. package/dist/index-DxwppshT.cjs.map +1 -0
  36. package/dist/index.cjs.js +1 -1
  37. package/dist/index.es.js +6 -6
  38. package/dist/lib/JoggerConnection.d.ts.map +1 -1
  39. package/dist/manufacturerHomePositions-Ca80ycLi.cjs +2 -0
  40. package/dist/manufacturerHomePositions-Ca80ycLi.cjs.map +1 -0
  41. package/dist/{manufacturerHomePositions-CtUNJexK.js → manufacturerHomePositions-CgaG5vaK.js} +290 -350
  42. package/dist/manufacturerHomePositions-CgaG5vaK.js.map +1 -0
  43. package/dist/{theming-B7ojcJTM.js → theming-Coh4zx7d.js} +6245 -4802
  44. package/dist/theming-Coh4zx7d.js.map +1 -0
  45. package/dist/theming-D4ztsmTr.cjs +133 -0
  46. package/dist/theming-D4ztsmTr.cjs.map +1 -0
  47. package/dist/wandelscript.cjs.js +1 -1
  48. package/dist/wandelscript.es.js +1 -1
  49. package/package.json +4 -14
  50. package/src/components/RobotCard.tsx +1 -1
  51. package/src/components/robots/GenericRobot.tsx +36 -98
  52. package/src/components/robots/Robot.tsx +1 -1
  53. package/src/components/robots/SupportedRobot.tsx +3 -11
  54. package/src/components/robots/robotModelLogic.ts +6 -40
  55. package/src/lib/JoggerConnection.ts +10 -10
  56. package/src/lib/MotionStreamConnection.ts +1 -1
  57. package/dist/LoadingCover-CukpS_aj.cjs +0 -2
  58. package/dist/WandelscriptEditor-D6_vS5Uk.cjs +0 -2
  59. package/dist/auth0-spa-js.production.esm-BMSlxZC5.js +0 -3877
  60. package/dist/auth0-spa-js.production.esm-BMSlxZC5.js.map +0 -1
  61. package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs +0 -5
  62. package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs.map +0 -1
  63. package/dist/externalizeComponent-CkVWk2F_.cjs +0 -24
  64. package/dist/externalizeComponent-CkVWk2F_.cjs.map +0 -1
  65. package/dist/externalizeComponent-Dc3fViZA.js +0 -489
  66. package/dist/externalizeComponent-Dc3fViZA.js.map +0 -1
  67. package/dist/interpolation-DAXKfoDS.cjs +0 -20
  68. package/dist/interpolation-DAXKfoDS.cjs.map +0 -1
  69. package/dist/interpolation-DcPbemBD.js +0 -6924
  70. package/dist/interpolation-DcPbemBD.js.map +0 -1
  71. package/dist/manufacturerHomePositions-Badt_vO2.cjs +0 -2
  72. package/dist/manufacturerHomePositions-Badt_vO2.cjs.map +0 -1
  73. package/dist/manufacturerHomePositions-CtUNJexK.js.map +0 -1
  74. package/dist/theming-B7ojcJTM.js.map +0 -1
  75. package/dist/theming-C9apy9Ov.cjs +0 -115
  76. package/dist/theming-C9apy9Ov.cjs.map +0 -1
  77. package/src/env.d.ts +0 -3
@@ -1,21 +1,21 @@
1
- import { j as t, e as K } from "./externalizeComponent-Dc3fViZA.js";
2
- import * as m from "three";
3
- import { Matrix4 as I, Vector3 as E, Quaternion as ie } from "three";
1
+ import { j as t, e as q } from "./index-CAib4NKw.js";
2
+ import * as d from "three";
3
+ import { Matrix4 as G, Vector3 as L, Quaternion as ie } from "three";
4
4
  import { ConvexGeometry as X } from "three-stdlib";
5
- import { useThree as ae, useFrame as le, Canvas as B } from "@react-three/fiber";
6
- import { Environment as ce, Lightformer as R, Line as Z, useGLTF as ue, Bounds as W } from "@react-three/drei";
7
- import { useTheme as fe, Card as de, Box as y, Typography as $, Divider as N, Button as H } from "@mui/material";
5
+ import { useThree as ae, useFrame as le, Canvas as W } from "@react-three/fiber";
6
+ import { Environment as ce, Lightformer as v, Line as Z, useGLTF as ue, Bounds as $ } from "@react-three/drei";
7
+ import { useTheme as fe, Card as de, Box as y, Typography as B, Divider as H, Button as U } from "@mui/material";
8
8
  import { observer as he } from "mobx-react-lite";
9
- import me, { useRef as v, useEffect as F, useState as _, useCallback as G, Suspense as pe } from "react";
9
+ import me, { useRef as R, useEffect as T, useCallback as _, useState as C, Suspense as pe } from "react";
10
10
  import { useTranslation as xe } from "react-i18next";
11
- import { N as ge, V as ye, c as je, b as J, M as j } from "./interpolation-DcPbemBD.js";
12
- import { ErrorBoundary as we } from "react-error-boundary";
13
- function be(e) {
11
+ import { V as ge, c as ye, b as J, M as j } from "./index-CxasuX80.js";
12
+ import { ErrorBoundary as je } from "react-error-boundary";
13
+ function we(e) {
14
14
  switch (e.shape_type) {
15
15
  case "convex_hull":
16
16
  return new X(
17
17
  e.vertices.map(
18
- (r) => new m.Vector3(
18
+ (r) => new d.Vector3(
19
19
  r[0] / 1e3,
20
20
  r[1] / 1e3,
21
21
  r[2] / 1e3
@@ -23,88 +23,88 @@ function be(e) {
23
23
  )
24
24
  );
25
25
  case "box":
26
- return new m.BoxGeometry(
26
+ return new d.BoxGeometry(
27
27
  e.size_x / 1e3,
28
28
  e.size_y / 1e3,
29
29
  e.size_z / 1e3
30
30
  );
31
31
  case "sphere":
32
- return new m.SphereGeometry(e.radius / 1e3);
32
+ return new d.SphereGeometry(e.radius / 1e3);
33
33
  case "capsule":
34
- return new m.CapsuleGeometry(
34
+ return new d.CapsuleGeometry(
35
35
  e.radius / 1e3,
36
36
  e.cylinder_height / 1e3
37
37
  );
38
38
  case "cylinder":
39
- return new m.CylinderGeometry(
39
+ return new d.CylinderGeometry(
40
40
  e.radius / 1e3,
41
41
  e.radius / 1e3,
42
42
  e.height / 1e3
43
43
  );
44
44
  case "rectangle":
45
- return new m.BoxGeometry(e.size_x / 1e3, e.size_y / 1e3, 0);
45
+ return new d.BoxGeometry(e.size_x / 1e3, e.size_y / 1e3, 0);
46
46
  default:
47
- return console.warn(`${e.shape_type} is not supported`), new m.BufferGeometry();
47
+ return console.warn(`${e.shape_type} is not supported`), new d.BufferGeometry();
48
48
  }
49
49
  }
50
- function Me({
50
+ function be({
51
51
  name: e,
52
52
  collider: n,
53
53
  children: r
54
54
  }) {
55
- var c, a;
56
- const s = ((c = n.pose) == null ? void 0 : c.position) ?? [0, 0, 0], o = ((a = n.pose) == null ? void 0 : a.orientation) ?? [0, 0, 0];
55
+ var u, l;
56
+ const s = ((u = n.pose) == null ? void 0 : u.position) ?? [0, 0, 0], o = ((l = n.pose) == null ? void 0 : l.orientation) ?? [0, 0, 0];
57
57
  return n.margin && console.warn(`${e} margin is not supported`), /* @__PURE__ */ t.jsx(
58
58
  "mesh",
59
59
  {
60
60
  name: e,
61
- position: new m.Vector3(
61
+ position: new d.Vector3(
62
62
  s[0],
63
63
  s[1],
64
64
  s[2]
65
65
  ).divideScalar(1e3),
66
- rotation: new m.Euler(o[0], o[1], o[2], "XYZ"),
67
- geometry: be(n.shape),
66
+ rotation: new d.Euler(o[0], o[1], o[2], "XYZ"),
67
+ geometry: we(n.shape),
68
68
  children: r
69
69
  }
70
70
  );
71
71
  }
72
- function Re({
72
+ function Me({
73
73
  name: e,
74
74
  colliders: n,
75
75
  meshChildrenProvider: r,
76
76
  ...s
77
77
  }) {
78
- return /* @__PURE__ */ t.jsx("group", { name: e, ...s, children: Object.entries(n).map(([o, c]) => /* @__PURE__ */ t.jsx(
79
- Me,
78
+ return /* @__PURE__ */ t.jsx("group", { name: e, ...s, children: Object.entries(n).map(([o, u]) => /* @__PURE__ */ t.jsx(
79
+ be,
80
80
  {
81
81
  name: o,
82
- collider: c,
83
- children: r(o, c)
82
+ collider: u,
83
+ children: r(o, u)
84
84
  },
85
85
  o
86
86
  )) });
87
87
  }
88
- function Qe({
88
+ function Xe({
89
89
  scene: e,
90
90
  meshChildrenProvider: n
91
91
  }) {
92
92
  const r = e.colliders;
93
93
  return /* @__PURE__ */ t.jsx("group", { children: r && /* @__PURE__ */ t.jsx(
94
- Re,
94
+ Me,
95
95
  {
96
96
  meshChildrenProvider: n,
97
97
  colliders: r
98
98
  }
99
99
  ) });
100
100
  }
101
- function Y() {
101
+ function N() {
102
102
  return /* @__PURE__ */ t.jsx(ce, { children: /* @__PURE__ */ t.jsx(ve, {}) });
103
103
  }
104
104
  function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
105
105
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
106
106
  /* @__PURE__ */ t.jsx(
107
- R,
107
+ v,
108
108
  {
109
109
  intensity: 5,
110
110
  "rotation-x": Math.PI / 2,
@@ -113,7 +113,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
113
113
  }
114
114
  ),
115
115
  /* @__PURE__ */ t.jsx("group", { rotation: [0, 0.5, 0], children: /* @__PURE__ */ t.jsx("group", { children: e.map((n, r) => /* @__PURE__ */ t.jsx(
116
- R,
116
+ v,
117
117
  {
118
118
  form: "circle",
119
119
  intensity: 5,
@@ -124,7 +124,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
124
124
  r
125
125
  )) }) }),
126
126
  /* @__PURE__ */ t.jsx(
127
- R,
127
+ v,
128
128
  {
129
129
  intensity: 40,
130
130
  "rotation-y": Math.PI / 2,
@@ -133,7 +133,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
133
133
  }
134
134
  ),
135
135
  /* @__PURE__ */ t.jsx(
136
- R,
136
+ v,
137
137
  {
138
138
  intensity: 20,
139
139
  "rotation-y": -Math.PI,
@@ -142,7 +142,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
142
142
  }
143
143
  ),
144
144
  /* @__PURE__ */ t.jsx(
145
- R,
145
+ v,
146
146
  {
147
147
  "rotation-y": Math.PI / 2,
148
148
  position: [-5, -1, -1],
@@ -151,7 +151,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
151
151
  }
152
152
  ),
153
153
  /* @__PURE__ */ t.jsx(
154
- R,
154
+ v,
155
155
  {
156
156
  "rotation-y": -Math.PI / 2,
157
157
  position: [10, 1, 0],
@@ -160,7 +160,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
160
160
  }
161
161
  ),
162
162
  /* @__PURE__ */ t.jsx(
163
- R,
163
+ v,
164
164
  {
165
165
  form: "ring",
166
166
  color: "white",
@@ -172,42 +172,42 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
172
172
  )
173
173
  ] });
174
174
  }
175
- function _e(e) {
175
+ function Re(e) {
176
176
  if (e.length < 3)
177
177
  return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
178
- const n = new m.Vector3(e[0].x, e[0].y, e[0].z), r = new m.Vector3(e[1].x, e[1].y, e[1].z), s = new m.Vector3(e[2].x, e[2].y, e[2].z), o = new m.Vector3().subVectors(r, n), c = new m.Vector3().subVectors(s, n), a = new m.Vector3().crossVectors(o, c).normalize();
179
- for (let f = 3; f < e.length; f++) {
180
- const i = new m.Vector3(e[f].x, e[f].y, e[f].z), d = new m.Vector3().subVectors(i, n), h = a.dot(d);
181
- if (Math.abs(h) > 1e-6)
178
+ const n = new d.Vector3(e[0].x, e[0].y, e[0].z), r = new d.Vector3(e[1].x, e[1].y, e[1].z), s = new d.Vector3(e[2].x, e[2].y, e[2].z), o = new d.Vector3().subVectors(r, n), u = new d.Vector3().subVectors(s, n), l = new d.Vector3().crossVectors(o, u).normalize();
179
+ for (let a = 3; a < e.length; a++) {
180
+ const p = new d.Vector3(e[a].x, e[a].y, e[a].z), h = new d.Vector3().subVectors(p, n), f = l.dot(h);
181
+ if (Math.abs(f) > 1e-6)
182
182
  return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
183
183
  }
184
- return { isCoplanar: !0, normal: a };
184
+ return { isCoplanar: !0, normal: l };
185
185
  }
186
- function et({
186
+ function Ze({
187
187
  safetyZones: e,
188
188
  ...n
189
189
  }) {
190
190
  return /* @__PURE__ */ t.jsx("group", { ...n, children: e.map((r, s) => {
191
191
  let o = [];
192
- return r.geometry && (r.geometry.compound ? o = r.geometry.compound.child_geometries : r.geometry.convex_hull && (o = [r.geometry])), o.map((c, a) => {
193
- if (!c.convex_hull) return null;
194
- const f = c.convex_hull.vertices.map(
195
- (h) => new m.Vector3(h.x / 1e3, h.y / 1e3, h.z / 1e3)
196
- ), i = _e(f);
197
- if (i.isCoplanar && i.normal) {
198
- const l = new m.Vector3().addVectors(
199
- f[0],
200
- i.normal.multiplyScalar(1e-4)
192
+ return r.geometry && (r.geometry.compound ? o = r.geometry.compound.child_geometries : r.geometry.convex_hull && (o = [r.geometry])), o.map((u, l) => {
193
+ if (!u.convex_hull) return null;
194
+ const a = u.convex_hull.vertices.map(
195
+ (f) => new d.Vector3(f.x / 1e3, f.y / 1e3, f.z / 1e3)
196
+ ), p = Re(a);
197
+ if (p.isCoplanar && p.normal) {
198
+ const i = new d.Vector3().addVectors(
199
+ a[0],
200
+ p.normal.multiplyScalar(1e-4)
201
201
  );
202
- f.push(l);
202
+ a.push(i);
203
203
  }
204
- let d;
204
+ let h;
205
205
  try {
206
- d = new X(f);
207
- } catch (h) {
208
- return console.log("Error creating ConvexGeometry:", h), null;
206
+ h = new X(a);
207
+ } catch (f) {
208
+ return console.log("Error creating ConvexGeometry:", f), null;
209
209
  }
210
- return /* @__PURE__ */ t.jsx("mesh", { geometry: d, children: /* @__PURE__ */ t.jsx(
210
+ return /* @__PURE__ */ t.jsx("mesh", { geometry: h, children: /* @__PURE__ */ t.jsx(
211
211
  "meshStandardMaterial",
212
212
  {
213
213
  attach: "material",
@@ -217,19 +217,19 @@ function et({
217
217
  depthWrite: !1,
218
218
  transparent: !0,
219
219
  polygonOffset: !0,
220
- polygonOffsetFactor: -a
220
+ polygonOffsetFactor: -l
221
221
  },
222
222
  s
223
- ) }, `${s}-${a}`);
223
+ ) }, `${s}-${l}`);
224
224
  });
225
225
  }) });
226
226
  }
227
- function tt({
227
+ function Qe({
228
228
  trajectory: e,
229
229
  ...n
230
230
  }) {
231
231
  var s;
232
- const r = ((s = e.trajectory) == null ? void 0 : s.map((o) => o.tcp_pose ? new m.Vector3(
232
+ const r = ((s = e.trajectory) == null ? void 0 : s.map((o) => o.tcp_pose ? new d.Vector3(
233
233
  o.tcp_pose.position.x / 1e3,
234
234
  o.tcp_pose.position.z / 1e3,
235
235
  -o.tcp_pose.position.y / 1e3
@@ -245,27 +245,12 @@ function tt({
245
245
  }
246
246
  ) });
247
247
  }
248
- const D = /* @__PURE__ */ new Map();
249
- async function Q(e) {
250
- if (D.has(e))
251
- return D.get(e);
252
- const n = (async () => {
253
- var c;
254
- const s = new ge({ instanceUrl: void 0 }), o = s.api.motionGroupModels;
255
- (c = o.axios) != null && c.interceptors && o.axios.interceptors.request.use((a) => {
256
- var f;
257
- return (f = a.url) != null && f.includes("/glb") && (a.responseType = "blob"), a;
258
- });
259
- try {
260
- const a = await s.api.motionGroupModels.getMotionGroupGlbModel(e);
261
- return URL.createObjectURL(a);
262
- } catch (a) {
263
- throw console.error("Failed to fetch model:", a), a;
264
- }
265
- })();
266
- return D.set(e, n), n;
248
+ const Y = "0.0.0-semantically-released";
249
+ function Q(e) {
250
+ let n = Y;
251
+ return Y.startsWith("0.") && (n = ""), `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${n ? `@${n}` : ""}/public/models/${e}.glb`;
267
252
  }
268
- function Ge(e) {
253
+ function _e(e) {
269
254
  function n(r) {
270
255
  return r.children.length === 0 ? [r] : [r, ...r.children.flatMap((s) => n(s))];
271
256
  }
@@ -277,7 +262,7 @@ function ee(e) {
277
262
  function te(e) {
278
263
  return /_J[0-9]+$/.test(e.name);
279
264
  }
280
- function Ie(e, n) {
265
+ function Ge(e, n) {
281
266
  let r;
282
267
  function s(o) {
283
268
  if (ee(o)) {
@@ -301,84 +286,84 @@ function re({
301
286
  onRotationChanged: r,
302
287
  children: s
303
288
  }) {
304
- const o = v([]), c = v([]), a = v(null), { invalidate: f } = ae();
305
- F(() => {
306
- const l = e.joint_position.filter(
307
- (u) => u !== void 0
289
+ const o = R([]), u = R([]), l = R(null), { invalidate: a } = ae();
290
+ T(() => {
291
+ const i = e.joint_position.filter(
292
+ (c) => c !== void 0
308
293
  );
309
- return a.current = new ye(l, {
294
+ return l.current = new ge(i, {
310
295
  tension: 120,
311
296
  // Controls spring stiffness - higher values create faster, more responsive motion
312
297
  friction: 20,
313
298
  // Controls damping - higher values reduce oscillation and create smoother settling
314
299
  threshold: 1e-3
315
300
  }), () => {
316
- var u;
317
- (u = a.current) == null || u.destroy();
301
+ var c;
302
+ (c = l.current) == null || c.destroy();
318
303
  };
319
- }, []), le((l, u) => {
320
- if (a.current) {
321
- const p = a.current.update(u);
322
- h(), p || f();
304
+ }, []), le((i, c) => {
305
+ if (l.current) {
306
+ const m = l.current.update(c);
307
+ f(), m || a();
323
308
  }
324
309
  });
325
- function i(l) {
326
- l && (c.current = Ge(l), h(), f());
310
+ function p(i) {
311
+ i && (u.current = _e(i), f(), a());
327
312
  }
328
- function d(l) {
329
- var u;
330
- o.current = l, (u = a.current) == null || u.setTarget(l);
313
+ function h(i) {
314
+ var c;
315
+ o.current = i, (c = l.current) == null || c.setTarget(i);
331
316
  }
332
- function h() {
333
- var u;
334
- const l = ((u = a.current) == null ? void 0 : u.getCurrentValues()) || [];
317
+ function f() {
318
+ var c;
319
+ const i = ((c = l.current) == null ? void 0 : c.getCurrentValues()) || [];
335
320
  if (r)
336
- r(c.current, l);
321
+ r(u.current, i);
337
322
  else
338
- for (const [p, x] of c.current.entries()) {
339
- const g = n[p], b = g.theta || 0, M = g.reverse_rotation_direction ? -1 : 1;
340
- x.rotation.y = M * (l[p] || 0) + b;
323
+ for (const [m, x] of u.current.entries()) {
324
+ const g = n[m], b = g.theta || 0, M = g.reverse_rotation_direction ? -1 : 1;
325
+ x.rotation.y = M * (i[m] || 0) + b;
341
326
  }
342
327
  }
343
- return je(() => {
344
- const l = e.joint_position.filter(
345
- (u) => u !== void 0
328
+ return ye(() => {
329
+ const i = e.joint_position.filter(
330
+ (c) => c !== void 0
346
331
  );
347
- requestAnimationFrame(() => d(l));
348
- }), /* @__PURE__ */ t.jsx("group", { ref: i, children: s });
332
+ requestAnimationFrame(() => h(i));
333
+ }), /* @__PURE__ */ t.jsx("group", { ref: p, children: s });
349
334
  }
350
- const Fe = "line", Se = "mesh";
351
- function Ve({
335
+ const Ce = "line", Fe = "mesh";
336
+ function Ie({
352
337
  rapidlyChangingMotionState: e,
353
338
  dhParameters: n,
354
339
  ...r
355
340
  }) {
356
- const s = new I(), o = v([]), c = v([]);
341
+ const s = new G(), o = R([]), u = R([]);
357
342
  me.useEffect(() => {
358
- o.current = new Array(n.length).fill(null), c.current = new Array(n.length).fill(null);
343
+ o.current = new Array(n.length).fill(null), u.current = new Array(n.length).fill(null);
359
344
  }, [n.length]);
360
- function a(d, h) {
361
- const l = new E(), u = new ie(), p = new E();
362
- s.decompose(l, u, p);
363
- const x = l.clone(), g = new I().makeRotationY(
364
- d.theta + h * (d.reverse_rotation_direction ? -1 : 1)
365
- ).multiply(new I().makeTranslation(0, d.d / 1e3, 0)).multiply(new I().makeTranslation(d.a / 1e3, 0, 0)).multiply(new I().makeRotationX(d.alpha));
366
- return s.multiply(g), s.decompose(l, u, p), { a: x, b: l };
345
+ function l(h, f) {
346
+ const i = new L(), c = new ie(), m = new L();
347
+ s.decompose(i, c, m);
348
+ const x = i.clone(), g = new G().makeRotationY(
349
+ h.theta + f * (h.reverse_rotation_direction ? -1 : 1)
350
+ ).multiply(new G().makeTranslation(0, h.d / 1e3, 0)).multiply(new G().makeTranslation(h.a / 1e3, 0, 0)).multiply(new G().makeRotationX(h.alpha));
351
+ return s.multiply(g), s.decompose(i, c, m), { a: x, b: i };
367
352
  }
368
- function f(d, h, l, u) {
353
+ function a(h, f, i, c) {
369
354
  if (!n)
370
355
  return;
371
- const p = n[d];
372
- if (!p)
356
+ const m = n[h];
357
+ if (!m)
373
358
  return;
374
- const { a: x, b: g } = a(p, u);
375
- h.geometry.setPositions([x.toArray(), g.toArray()].flat()), l.position.set(g.x, g.y, g.z);
359
+ const { a: x, b: g } = l(m, c);
360
+ f.geometry.setPositions([x.toArray(), g.toArray()].flat()), i.position.set(g.x, g.y, g.z);
376
361
  }
377
- function i(d, h) {
362
+ function p(h, f) {
378
363
  s.identity();
379
- for (let l = 0; l < Math.min(d.length, h.length); l++) {
380
- const u = o.current[l], p = c.current[l];
381
- u && p && f(l, u, p, h[l]);
364
+ for (let i = 0; i < Math.min(h.length, f.length); i++) {
365
+ const c = o.current[i], m = u.current[i];
366
+ c && m && a(i, c, m, f[i]);
382
367
  }
383
368
  }
384
369
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
@@ -386,26 +371,26 @@ function Ve({
386
371
  {
387
372
  rapidlyChangingMotionState: e,
388
373
  dhParameters: n,
389
- onRotationChanged: i,
374
+ onRotationChanged: p,
390
375
  children: /* @__PURE__ */ t.jsxs("group", { ...r, name: "Scene", children: [
391
376
  /* @__PURE__ */ t.jsxs("mesh", { children: [
392
377
  /* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
393
378
  /* @__PURE__ */ t.jsx("meshStandardMaterial", { color: "black", depthTest: !0 })
394
379
  ] }),
395
- n.map((d, h) => {
396
- const { a: l, b: u } = a(
397
- d,
398
- e.joint_position[h] ?? 0
399
- ), p = `dhrobot_J0${h}`;
400
- return /* @__PURE__ */ t.jsxs("group", { name: p, children: [
380
+ n.map((h, f) => {
381
+ const { a: i, b: c } = l(
382
+ h,
383
+ e.joint_position[f] ?? 0
384
+ ), m = `dhrobot_J0${f}`;
385
+ return /* @__PURE__ */ t.jsxs("group", { name: m, children: [
401
386
  /* @__PURE__ */ t.jsx(
402
387
  Z,
403
388
  {
404
389
  ref: (x) => {
405
- o.current[h] = x;
390
+ o.current[f] = x;
406
391
  },
407
- name: Fe,
408
- points: [l, u],
392
+ name: Ce,
393
+ points: [i, c],
409
394
  color: "white",
410
395
  lineWidth: 5
411
396
  }
@@ -414,125 +399,87 @@ function Ve({
414
399
  "mesh",
415
400
  {
416
401
  ref: (x) => {
417
- c.current[h] = x;
402
+ u.current[f] = x;
418
403
  },
419
- name: Se,
420
- position: u,
404
+ name: Fe,
405
+ position: c,
421
406
  children: [
422
407
  /* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
423
408
  /* @__PURE__ */ t.jsx("meshStandardMaterial", { color: "black", depthTest: !0 })
424
409
  ]
425
410
  },
426
- "mesh_" + h
411
+ "mesh_" + f
427
412
  )
428
- ] }, p);
413
+ ] }, m);
429
414
  })
430
415
  ] })
431
416
  }
432
417
  ) });
433
418
  }
434
- const Ce = console.warn;
435
- function Le() {
436
- return F(() => {
419
+ const Se = console.warn;
420
+ function Ve() {
421
+ return T(() => {
437
422
  console.warn = (e) => {
438
- e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && Ce(e);
423
+ e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && Se(e);
439
424
  };
440
425
  }, []), /* @__PURE__ */ t.jsx(t.Fragment, {});
441
426
  }
442
- function Te(e) {
427
+ function De(e) {
443
428
  return e.type === "Mesh";
444
429
  }
445
- function De({
446
- url: e,
430
+ function Te({
431
+ modelURL: e,
447
432
  flangeRef: n,
448
433
  postModelRender: r,
449
434
  ...s
450
435
  }) {
451
- const o = ue(e);
452
- let c;
453
- try {
454
- c = Ie(o, "robot.glb").gltf;
455
- } catch (i) {
456
- console.warn("parseRobotModel failed:", i), c = o;
457
- }
458
- const a = G(
459
- (i) => {
460
- i && r && r();
436
+ const { gltf: o } = Ge(
437
+ ue(e),
438
+ e.split("/").pop() || e
439
+ ), u = _(
440
+ (a) => {
441
+ a && r && r();
461
442
  },
462
- [r]
443
+ [e]
463
444
  );
464
- function f(i) {
465
- try {
466
- return Te(i) ? i.geometry ? /* @__PURE__ */ t.jsx(
467
- "mesh",
468
- {
469
- name: i.name,
470
- geometry: i.geometry,
471
- material: i.material,
472
- position: i.position,
473
- rotation: i.rotation
474
- },
475
- i.uuid
476
- ) : /* @__PURE__ */ t.jsx("group", { name: i.name, position: i.position, rotation: i.rotation }, i.uuid) : /* @__PURE__ */ t.jsx(
477
- "group",
478
- {
479
- name: i.name,
480
- position: i.position,
481
- rotation: i.rotation,
482
- ref: ee(i) ? n : void 0,
483
- children: i.children.map(f)
484
- },
485
- i.uuid
486
- );
487
- } catch (d) {
488
- return console.warn("Error rendering node", i.name, d), null;
489
- }
445
+ function l(a) {
446
+ return De(a) ? /* @__PURE__ */ t.jsx(
447
+ "mesh",
448
+ {
449
+ name: a.name,
450
+ geometry: a.geometry,
451
+ material: a.material,
452
+ position: a.position,
453
+ rotation: a.rotation
454
+ },
455
+ a.uuid
456
+ ) : /* @__PURE__ */ t.jsx(
457
+ "group",
458
+ {
459
+ name: a.name,
460
+ position: a.position,
461
+ rotation: a.rotation,
462
+ ref: ee(a) ? n : void 0,
463
+ children: a.children.map(l)
464
+ },
465
+ a.uuid
466
+ );
490
467
  }
491
- return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref: a, children: f(c.scene) });
492
- }
493
- function ke({
494
- modelURL: e,
495
- flangeRef: n,
496
- postModelRender: r,
497
- ...s
498
- }) {
499
- const [o, c] = _(null);
500
- return F(() => {
501
- (async () => {
502
- try {
503
- if (typeof e == "string")
504
- c(e);
505
- else {
506
- const f = await e;
507
- c(f);
508
- }
509
- } catch (f) {
510
- console.error("Failed to resolve model URL:", f);
511
- }
512
- })();
513
- }, [e]), o ? /* @__PURE__ */ t.jsx(
514
- De,
515
- {
516
- url: o,
517
- flangeRef: n,
518
- postModelRender: r,
519
- ...s
520
- }
521
- ) : null;
468
+ return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref: u, children: l(o.scene) });
522
469
  }
523
470
  const Ae = (e, n) => {
524
471
  e.userData.isGhost || (e.traverse((r) => {
525
- if (r instanceof m.Mesh) {
526
- r.material instanceof m.Material && (r.material.colorWrite = !1);
472
+ if (r instanceof d.Mesh) {
473
+ r.material instanceof d.Material && (r.material.colorWrite = !1);
527
474
  const s = r.clone(), o = r.clone();
528
- s.material = new m.MeshStandardMaterial({
475
+ s.material = new d.MeshStandardMaterial({
529
476
  depthTest: !0,
530
477
  depthWrite: !0,
531
478
  colorWrite: !1,
532
479
  polygonOffset: !0,
533
480
  polygonOffsetFactor: -1,
534
- side: m.DoubleSide
535
- }), s.userData.isGhost = !0, o.material = new m.MeshStandardMaterial({
481
+ side: d.DoubleSide
482
+ }), s.userData.isGhost = !0, o.material = new d.MeshStandardMaterial({
536
483
  color: n,
537
484
  opacity: 0.3,
538
485
  depthTest: !0,
@@ -540,88 +487,81 @@ const Ae = (e, n) => {
540
487
  transparent: !0,
541
488
  polygonOffset: !0,
542
489
  polygonOffsetFactor: -2,
543
- side: m.DoubleSide
490
+ side: d.DoubleSide
544
491
  }), o.userData.isGhost = !0, r.parent && (r.parent.add(s), r.parent.add(o));
545
492
  }
546
493
  }), e.userData.isGhost = !0);
547
- }, Pe = (e) => {
494
+ }, ke = (e) => {
548
495
  if (!e.userData.isGhost) return;
549
496
  const n = [];
550
497
  e.traverse((r) => {
551
498
  var s;
552
- r instanceof m.Mesh && ((s = r.userData) != null && s.isGhost ? n.push(r) : r.material instanceof m.Material && (r.material.colorWrite = !0));
499
+ r instanceof d.Mesh && ((s = r.userData) != null && s.isGhost ? n.push(r) : r.material instanceof d.Material && (r.material.colorWrite = !0));
553
500
  }), n.forEach((r) => {
554
501
  r.parent && r.parent.remove(r);
555
502
  }), e.userData.isGhost = !1;
556
- }, ze = K(
503
+ }, ze = q(
557
504
  ({
558
505
  rapidlyChangingMotionState: e,
559
506
  modelFromController: n,
560
507
  dhParameters: r,
561
508
  getModel: s = Q,
562
509
  flangeRef: o,
563
- postModelRender: c,
564
- transparentColor: a,
565
- ...f
510
+ postModelRender: u,
511
+ transparentColor: l,
512
+ ...a
566
513
  }) => {
567
- const [i, d] = _(null), h = G((u) => {
568
- d(u);
514
+ const [p, h] = C(null), f = _((c) => {
515
+ h(c);
569
516
  }, []);
570
- F(() => {
571
- i && (a ? Ae(i, a) : Pe(i));
572
- }, [i, a]);
573
- const l = /* @__PURE__ */ t.jsx(
574
- Ve,
517
+ T(() => {
518
+ p && (l ? Ae(p, l) : ke(p));
519
+ }, [p, l]);
520
+ const i = /* @__PURE__ */ t.jsx(
521
+ Ie,
575
522
  {
576
523
  rapidlyChangingMotionState: e,
577
524
  dhParameters: r,
578
- ...f
525
+ ...a
579
526
  }
580
527
  );
581
528
  return /* @__PURE__ */ t.jsxs(
582
- we,
529
+ je,
583
530
  {
584
- fallback: l,
585
- onError: (u) => {
586
- console.warn(u);
531
+ fallback: i,
532
+ onError: (c) => {
533
+ console.error(c);
587
534
  },
588
535
  children: [
589
- /* @__PURE__ */ t.jsx(pe, { fallback: l, children: /* @__PURE__ */ t.jsx("group", { ref: h, children: /* @__PURE__ */ t.jsx(
536
+ /* @__PURE__ */ t.jsx(pe, { fallback: i, children: /* @__PURE__ */ t.jsx("group", { ref: f, children: /* @__PURE__ */ t.jsx(
590
537
  re,
591
538
  {
592
539
  rapidlyChangingMotionState: e,
593
540
  dhParameters: r,
594
541
  children: /* @__PURE__ */ t.jsx(
595
- ke,
542
+ Te,
596
543
  {
597
- modelURL: (() => {
598
- const u = s(n);
599
- if (!u) {
600
- const p = new Blob([], { type: "model/gltf-binary" }), x = new File([p], `${n}.glb`, { type: "model/gltf-binary" });
601
- return Promise.resolve(URL.createObjectURL(x));
602
- }
603
- return u;
604
- })(),
605
- postModelRender: c,
544
+ modelURL: s(n),
545
+ postModelRender: u,
606
546
  flangeRef: o,
607
- ...f
547
+ ...a
608
548
  }
609
549
  )
610
550
  }
611
551
  ) }) }),
612
- /* @__PURE__ */ t.jsx(Le, {})
552
+ /* @__PURE__ */ t.jsx(Ve, {})
613
553
  ]
614
554
  }
615
555
  );
616
556
  }
617
557
  );
618
- function Oe({
558
+ function Pe({
619
559
  connectedMotionGroup: e,
620
560
  getModel: n = Q,
621
561
  flangeRef: r,
622
562
  transparentColor: s,
623
563
  postModelRender: o,
624
- ...c
564
+ ...u
625
565
  }) {
626
566
  return e.dhParameters ? /* @__PURE__ */ t.jsx(
627
567
  ze,
@@ -633,11 +573,11 @@ function Oe({
633
573
  flangeRef: r,
634
574
  transparentColor: s,
635
575
  postModelRender: o,
636
- ...c
576
+ ...u
637
577
  }
638
578
  ) : null;
639
579
  }
640
- const rt = K(
580
+ const et = q(
641
581
  he(
642
582
  ({
643
583
  robotName: e,
@@ -645,42 +585,42 @@ const rt = K(
645
585
  safetyState: r,
646
586
  operationMode: s,
647
587
  driveToHomeEnabled: o = !1,
648
- onDriveToHomePress: c,
649
- onDriveToHomeRelease: a,
650
- connectedMotionGroup: f,
651
- robotComponent: i = Oe,
652
- customContentComponent: d,
653
- className: h
588
+ onDriveToHomePress: u,
589
+ onDriveToHomeRelease: l,
590
+ connectedMotionGroup: a,
591
+ robotComponent: p = Pe,
592
+ customContentComponent: h,
593
+ className: f
654
594
  }) => {
655
- var P;
656
- const l = fe(), { t: u } = xe(), [p, x] = _(!1), g = v(null), b = v(null), [M, ne] = _(!1), [S, oe] = _({ width: 400, height: 600 }), [Ee, se] = _(0);
657
- F(() => {
658
- const T = () => {
595
+ var z;
596
+ const i = fe(), { t: c } = xe(), [m, x] = C(!1), g = R(null), b = R(null), [M, ne] = C(!1), [F, oe] = C({ width: 400, height: 600 }), [Ee, se] = C(0);
597
+ T(() => {
598
+ const D = () => {
659
599
  if (b.current) {
660
- const { offsetWidth: O, offsetHeight: U } = b.current;
661
- ne(O > U), oe({ width: O, height: U });
600
+ const { offsetWidth: O, offsetHeight: E } = b.current;
601
+ ne(O > E), oe({ width: O, height: E });
662
602
  }
663
603
  };
664
- T();
665
- const z = new ResizeObserver(T);
666
- return b.current && z.observe(b.current), () => {
667
- z.disconnect();
604
+ D();
605
+ const P = new ResizeObserver(D);
606
+ return b.current && P.observe(b.current), () => {
607
+ P.disconnect();
668
608
  };
669
609
  }, []);
670
- const k = G(() => {
671
- se((T) => T + 1);
672
- }, []), V = G(() => {
673
- !o || !c || (x(!0), c());
674
- }, [o, c]), C = G(() => {
675
- !o || !a || (x(!1), a());
676
- }, [o, a]), A = G(() => {
677
- p && a && (x(!1), a());
678
- }, [p, a]), w = M ? S.width < 350 : S.height < 200, L = M ? S.height < 310 : S.height < 450;
610
+ const A = _(() => {
611
+ se((D) => D + 1);
612
+ }, []), I = _(() => {
613
+ !o || !u || (x(!0), u());
614
+ }, [o, u]), S = _(() => {
615
+ !o || !l || (x(!1), l());
616
+ }, [o, l]), k = _(() => {
617
+ m && l && (x(!1), l());
618
+ }, [m, l]), w = M ? F.width < 350 : F.height < 200, V = M ? F.height < 310 : F.height < 450;
679
619
  return /* @__PURE__ */ t.jsx(
680
620
  de,
681
621
  {
682
622
  ref: b,
683
- className: h,
623
+ className: f,
684
624
  sx: {
685
625
  width: "100%",
686
626
  height: "100%",
@@ -691,10 +631,10 @@ const rt = K(
691
631
  minWidth: { xs: 180, sm: 220, md: 250 },
692
632
  minHeight: M ? { xs: 200, sm: 240, md: 260 } : { xs: 150, sm: 180, md: 220 },
693
633
  // Allow progressive hiding in portrait mode
694
- border: `1px solid ${l.palette.divider}`,
634
+ border: `1px solid ${i.palette.divider}`,
695
635
  borderRadius: "18px",
696
636
  boxShadow: "none",
697
- backgroundColor: ((P = l.palette.backgroundPaperElevation) == null ? void 0 : P[8]) || "#2A2A3F",
637
+ backgroundColor: ((z = i.palette.backgroundPaperElevation) == null ? void 0 : z[8]) || "#2A2A3F",
698
638
  backgroundImage: "none"
699
639
  // Override any gradient from elevation
700
640
  },
@@ -716,7 +656,7 @@ const rt = K(
716
656
  display: w ? "none" : "block"
717
657
  },
718
658
  children: !w && /* @__PURE__ */ t.jsxs(
719
- B,
659
+ W,
720
660
  {
721
661
  orthographic: !0,
722
662
  camera: {
@@ -726,7 +666,7 @@ const rt = K(
726
666
  shadows: !0,
727
667
  frameloop: "demand",
728
668
  style: {
729
- borderRadius: l.shape.borderRadius,
669
+ borderRadius: i.shape.borderRadius,
730
670
  width: "100%",
731
671
  height: "100%",
732
672
  background: "transparent",
@@ -737,12 +677,12 @@ const rt = K(
737
677
  dpr: [1, 2],
738
678
  gl: { alpha: !0, antialias: !0 },
739
679
  children: [
740
- /* @__PURE__ */ t.jsx(Y, {}),
741
- /* @__PURE__ */ t.jsx(W, { fit: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
742
- i,
680
+ /* @__PURE__ */ t.jsx(N, {}),
681
+ /* @__PURE__ */ t.jsx($, { fit: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
682
+ p,
743
683
  {
744
- connectedMotionGroup: f,
745
- postModelRender: k
684
+ connectedMotionGroup: a,
685
+ postModelRender: A
746
686
  }
747
687
  ) })
748
688
  ]
@@ -770,7 +710,7 @@ const rt = K(
770
710
  textAlign: "left"
771
711
  },
772
712
  children: [
773
- /* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
713
+ /* @__PURE__ */ t.jsx(B, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
774
714
  /* @__PURE__ */ t.jsx(
775
715
  J,
776
716
  {
@@ -794,15 +734,15 @@ const rt = K(
794
734
  justifyContent: "space-between"
795
735
  },
796
736
  children: [
797
- !L && d && /* @__PURE__ */ t.jsxs(y, { children: [
798
- /* @__PURE__ */ t.jsx(d, {}),
737
+ !V && h && /* @__PURE__ */ t.jsxs(y, { children: [
738
+ /* @__PURE__ */ t.jsx(h, {}),
799
739
  /* @__PURE__ */ t.jsx(
800
- N,
740
+ H,
801
741
  {
802
742
  sx: {
803
743
  mt: 1,
804
744
  mb: 0,
805
- borderColor: l.palette.divider,
745
+ borderColor: i.palette.divider,
806
746
  opacity: 0.5
807
747
  }
808
748
  }
@@ -812,7 +752,7 @@ const rt = K(
812
752
  y,
813
753
  {
814
754
  sx: {
815
- mt: !L && d ? "auto" : 0
755
+ mt: !V && h ? "auto" : 0
816
756
  },
817
757
  children: /* @__PURE__ */ t.jsx(
818
758
  y,
@@ -824,24 +764,24 @@ const rt = K(
824
764
  mb: { xs: 0.5, sm: 0.75, md: 1 }
825
765
  },
826
766
  children: /* @__PURE__ */ t.jsx(
827
- H,
767
+ U,
828
768
  {
829
769
  ref: g,
830
770
  variant: "contained",
831
771
  color: "secondary",
832
772
  size: "small",
833
773
  disabled: !o,
834
- onMouseDown: V,
835
- onMouseUp: C,
836
- onMouseLeave: A,
837
- onTouchStart: V,
838
- onTouchEnd: C,
774
+ onMouseDown: I,
775
+ onMouseUp: S,
776
+ onMouseLeave: k,
777
+ onTouchStart: I,
778
+ onTouchEnd: S,
839
779
  sx: {
840
780
  textTransform: "none",
841
781
  px: 1.5,
842
782
  py: 0.5
843
783
  },
844
- children: u("RobotCard.DriveToHome.bt")
784
+ children: c("RobotCard.DriveToHome.bt")
845
785
  }
846
786
  )
847
787
  }
@@ -865,7 +805,7 @@ const rt = K(
865
805
  },
866
806
  children: [
867
807
  /* @__PURE__ */ t.jsxs(y, { children: [
868
- /* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
808
+ /* @__PURE__ */ t.jsx(B, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
869
809
  /* @__PURE__ */ t.jsx(
870
810
  J,
871
811
  {
@@ -888,7 +828,7 @@ const rt = K(
888
828
  display: w ? "none" : "block"
889
829
  },
890
830
  children: !w && /* @__PURE__ */ t.jsxs(
891
- B,
831
+ W,
892
832
  {
893
833
  orthographic: !0,
894
834
  camera: {
@@ -898,7 +838,7 @@ const rt = K(
898
838
  shadows: !0,
899
839
  frameloop: "demand",
900
840
  style: {
901
- borderRadius: l.shape.borderRadius,
841
+ borderRadius: i.shape.borderRadius,
902
842
  width: "100%",
903
843
  height: "100%",
904
844
  background: "transparent",
@@ -907,12 +847,12 @@ const rt = K(
907
847
  dpr: [1, 2],
908
848
  gl: { alpha: !0, antialias: !0 },
909
849
  children: [
910
- /* @__PURE__ */ t.jsx(Y, {}),
911
- /* @__PURE__ */ t.jsx(W, { fit: !0, clip: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
912
- i,
850
+ /* @__PURE__ */ t.jsx(N, {}),
851
+ /* @__PURE__ */ t.jsx($, { fit: !0, clip: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
852
+ p,
913
853
  {
914
- connectedMotionGroup: f,
915
- postModelRender: k
854
+ connectedMotionGroup: a,
855
+ postModelRender: A
916
856
  }
917
857
  ) })
918
858
  ]
@@ -921,15 +861,15 @@ const rt = K(
921
861
  }
922
862
  ),
923
863
  /* @__PURE__ */ t.jsxs(y, { children: [
924
- !L && d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
925
- /* @__PURE__ */ t.jsx(d, {}),
864
+ !V && h && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
865
+ /* @__PURE__ */ t.jsx(h, {}),
926
866
  /* @__PURE__ */ t.jsx(
927
- N,
867
+ H,
928
868
  {
929
869
  sx: {
930
870
  mt: 1,
931
871
  mb: 0,
932
- borderColor: l.palette.divider,
872
+ borderColor: i.palette.divider,
933
873
  opacity: 0.5
934
874
  }
935
875
  }
@@ -941,28 +881,28 @@ const rt = K(
941
881
  sx: {
942
882
  display: "flex",
943
883
  justifyContent: "flex-start",
944
- mt: !L && d ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
884
+ mt: !V && h ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
945
885
  mb: { xs: 0.5, sm: 0.75, md: 1 }
946
886
  },
947
887
  children: /* @__PURE__ */ t.jsx(
948
- H,
888
+ U,
949
889
  {
950
890
  ref: g,
951
891
  variant: "contained",
952
892
  color: "secondary",
953
893
  size: "small",
954
894
  disabled: !o,
955
- onMouseDown: V,
956
- onMouseUp: C,
957
- onMouseLeave: A,
958
- onTouchStart: V,
959
- onTouchEnd: C,
895
+ onMouseDown: I,
896
+ onMouseUp: S,
897
+ onMouseLeave: k,
898
+ onTouchStart: I,
899
+ onTouchEnd: S,
960
900
  sx: {
961
901
  textTransform: "none",
962
902
  px: 1.5,
963
903
  py: 0.5
964
904
  },
965
- children: u("RobotCard.DriveToHome.bt")
905
+ children: c("RobotCard.DriveToHome.bt")
966
906
  }
967
907
  )
968
908
  }
@@ -975,7 +915,7 @@ const rt = K(
975
915
  );
976
916
  }
977
917
  )
978
- ), nt = Array(6).fill(2 * Math.PI), q = {
918
+ ), tt = Array(6).fill(2 * Math.PI), K = {
979
919
  [j.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
980
920
  [j.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
981
921
  [j.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
@@ -998,7 +938,7 @@ const rt = K(
998
938
  0
999
939
  ]
1000
940
  };
1001
- function Ue(e) {
941
+ function Oe(e) {
1002
942
  const [n] = e.split("_");
1003
943
  switch (n) {
1004
944
  case "ABB":
@@ -1015,22 +955,22 @@ function Ue(e) {
1015
955
  return null;
1016
956
  }
1017
957
  }
1018
- function ot(e, n) {
1019
- const r = Ue(e);
1020
- return r && r in q ? q[r] : n || null;
958
+ function rt(e, n) {
959
+ const r = Oe(e);
960
+ return r && r in K ? K[r] : n || null;
1021
961
  }
1022
962
  export {
1023
- Qe as C,
1024
- q as M,
1025
- Y as P,
1026
- Oe as R,
1027
- et as S,
1028
- tt as T,
1029
- rt as a,
1030
- ze as b,
1031
- Q as c,
1032
- nt as d,
1033
- Ue as e,
1034
- ot as g
963
+ Xe as C,
964
+ K as M,
965
+ N as P,
966
+ et as R,
967
+ Ze as S,
968
+ Qe as T,
969
+ tt as a,
970
+ Pe as b,
971
+ ze as c,
972
+ Q as d,
973
+ Oe as e,
974
+ rt as g
1035
975
  };
1036
- //# sourceMappingURL=manufacturerHomePositions-CtUNJexK.js.map
976
+ //# sourceMappingURL=manufacturerHomePositions-CgaG5vaK.js.map