@wandelbots/wandelbots-js-react-components 3.5.1 → 3.6.0-pr.feat-model-retrieval-from-rdp.463.014e7d3

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