@wandelbots/wandelbots-js-react-components 5.6.1-pr.dev-new-nova-js-client.614.9eca4b1 → 5.6.1-pr.dev-new-nova-js-client.614.cca8782
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/chunks/{theming-0c4oqtVL.js → theming-CV0XkY9x.js} +108 -108
- package/dist/chunks/{theming-yiP4EVro.cjs → theming-D6iYJhiY.cjs} +3 -3
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/ConnectedMotionGroup.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx as a, jsxs as S, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import { alpha as
|
|
2
|
+
import { alpha as It, useTheme as B, styled as pt, createTheme as Bt } from "@mui/material/styles";
|
|
3
3
|
import oe from "@mui/material/AppBar";
|
|
4
|
-
import
|
|
4
|
+
import Lt from "@mui/material/Backdrop";
|
|
5
5
|
import w from "@mui/material/Box";
|
|
6
6
|
import q from "@mui/material/IconButton";
|
|
7
7
|
import ne from "@mui/material/Menu";
|
|
8
8
|
import Y from "@mui/material/MenuItem";
|
|
9
9
|
import ie from "@mui/material/Toolbar";
|
|
10
10
|
import R from "@mui/material/Typography";
|
|
11
|
-
import { observer as J, useLocalObservable as
|
|
11
|
+
import { observer as J, useLocalObservable as $t } from "mobx-react-lite";
|
|
12
12
|
import { useState as L, useRef as A, useCallback as P, useEffect as F, useMemo as rt, useId as re } from "react";
|
|
13
13
|
import { e as $ } from "./externalizeComponent-EDymnaGR.js";
|
|
14
14
|
import ae from "@mui/material/SvgIcon";
|
|
15
15
|
import H from "@mui/material/Fade";
|
|
16
16
|
import { Gauge as se } from "@mui/x-charts/Gauge";
|
|
17
17
|
import { useTranslation as z } from "react-i18next";
|
|
18
|
-
import { f as
|
|
18
|
+
import { f as zt, e as mt } from "./interpolation-DG8VTxzS.js";
|
|
19
19
|
import le from "@mui/icons-material/Clear";
|
|
20
20
|
import ce from "@mui/icons-material/FilterList";
|
|
21
|
-
import
|
|
21
|
+
import kt from "@mui/icons-material/Search";
|
|
22
22
|
import U from "@mui/material/Divider";
|
|
23
23
|
import { useGridApiRef as de, DataGrid as ge, Toolbar as ue, FilterPanelTrigger as pe, ToolbarButton as lt, QuickFilter as me, QuickFilterTrigger as he, QuickFilterControl as fe, QuickFilterClear as be } from "@mui/x-data-grid";
|
|
24
24
|
import xe from "@mui/icons-material/OpenWith";
|
|
25
25
|
import ye from "@mui/icons-material/Share";
|
|
26
26
|
import _ from "@mui/material/Stack";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import Vt from "@mui/material/Tab";
|
|
28
|
+
import Nt from "@mui/material/Tabs";
|
|
29
29
|
import { JointTypeEnum as G, Nova as Se, poseToWandelscriptString as ve } from "@wandelbots/nova-js/v2";
|
|
30
30
|
import { lowerFirst as Ce, countBy as we, isString as Te } from "lodash-es";
|
|
31
|
-
import { runInAction as D, makeAutoObservable as
|
|
32
|
-
import { radiansToDegrees as
|
|
31
|
+
import { runInAction as D, makeAutoObservable as ht, when as at, autorun as Rt, makeObservable as Me, action as jt, observable as Ie } from "mobx";
|
|
32
|
+
import { radiansToDegrees as Wt, tryParseJson as W, XYZ_TO_VECTOR as tt, degreesToRadians as ke } from "@wandelbots/nova-js";
|
|
33
33
|
import { Vector3 as ct } from "three/src/math/Vector3.js";
|
|
34
|
-
import
|
|
34
|
+
import Gt from "@mui/material/CircularProgress";
|
|
35
35
|
import { capitalize as Re } from "@mui/material/utils";
|
|
36
36
|
import { m as je } from "./SafetyBar-CxxIVVeR.js";
|
|
37
37
|
import Ee from "@mui/material/Alert";
|
|
38
38
|
import Pe from "@mui/material/AlertTitle";
|
|
39
39
|
import Z from "@mui/material/Button";
|
|
40
|
-
import
|
|
40
|
+
import Et from "@mui/material/ToggleButton";
|
|
41
41
|
import { c as _e, d as Oe, F as De, a as Ae, b as Je, f as Fe, e as Be } from "./robot-Cy9ST5-m.js";
|
|
42
42
|
import Le from "lodash-es/isEqual.js";
|
|
43
43
|
import $e from "@mui/material/InputAdornment";
|
|
@@ -47,7 +47,7 @@ import Ne from "@mui/material/Select";
|
|
|
47
47
|
import nt from "lodash-es/keyBy.js";
|
|
48
48
|
import We from "lodash-es/uniqueId.js";
|
|
49
49
|
import Ge from "@mui/material/ToggleButtonGroup";
|
|
50
|
-
import
|
|
50
|
+
import Ut from "@mui/material/Slider";
|
|
51
51
|
import Ue from "lodash-es/isNumber.js";
|
|
52
52
|
import He from "@mui/icons-material/ChevronLeft";
|
|
53
53
|
import qe from "@mui/icons-material/ChevronRight";
|
|
@@ -67,8 +67,8 @@ import so from "@mui/material/Chip";
|
|
|
67
67
|
import lo from "@mui/material/Fab";
|
|
68
68
|
import co from "@mui/material/Badge";
|
|
69
69
|
import { Gauge as go } from "@mui/x-charts";
|
|
70
|
-
import * as
|
|
71
|
-
import { Vector3 as
|
|
70
|
+
import * as Pt from "three";
|
|
71
|
+
import { Vector3 as _t } from "three";
|
|
72
72
|
const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /* @__PURE__ */ a(
|
|
73
73
|
"path",
|
|
74
74
|
{
|
|
@@ -135,10 +135,10 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
135
135
|
height: 28,
|
|
136
136
|
borderRadius: "6px",
|
|
137
137
|
padding: 0,
|
|
138
|
-
backgroundColor: (g) =>
|
|
138
|
+
backgroundColor: (g) => It(g.palette.common.white, 0.1),
|
|
139
139
|
opacity: 1,
|
|
140
140
|
"&:hover": {
|
|
141
|
-
backgroundColor: (g) =>
|
|
141
|
+
backgroundColor: (g) => It(g.palette.common.white, 0.16)
|
|
142
142
|
},
|
|
143
143
|
"& .MuiSvgIcon-root": {
|
|
144
144
|
fontSize: "8px",
|
|
@@ -154,7 +154,7 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
/* @__PURE__ */ a(
|
|
157
|
-
|
|
157
|
+
Lt,
|
|
158
158
|
{
|
|
159
159
|
open: d,
|
|
160
160
|
onClick: u,
|
|
@@ -760,7 +760,7 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
760
760
|
isPausedState: !1,
|
|
761
761
|
currentProgress: 0,
|
|
762
762
|
wasRunningBeforeError: !1
|
|
763
|
-
}), m = A(null), u = A(null), p = A(0), [g] =
|
|
763
|
+
}), m = A(null), u = A(null), p = A(0), [g] = zt([0], {
|
|
764
764
|
tension: 80,
|
|
765
765
|
friction: 18,
|
|
766
766
|
onChange: ([C]) => {
|
|
@@ -1122,7 +1122,7 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1122
1122
|
!E.expanded && /* @__PURE__ */ a(
|
|
1123
1123
|
he,
|
|
1124
1124
|
{
|
|
1125
|
-
render: /* @__PURE__ */ a(lt, { "aria-label": "Search", children: /* @__PURE__ */ a(
|
|
1125
|
+
render: /* @__PURE__ */ a(lt, { "aria-label": "Search", children: /* @__PURE__ */ a(kt, { fontSize: "small" }) })
|
|
1126
1126
|
}
|
|
1127
1127
|
),
|
|
1128
1128
|
/* @__PURE__ */ S(
|
|
@@ -1222,7 +1222,7 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1222
1222
|
},
|
|
1223
1223
|
children: [
|
|
1224
1224
|
E.expanded && /* @__PURE__ */ a(
|
|
1225
|
-
|
|
1225
|
+
kt,
|
|
1226
1226
|
{
|
|
1227
1227
|
fontSize: "small",
|
|
1228
1228
|
sx: {
|
|
@@ -1515,7 +1515,7 @@ const uo = (t) => /* @__PURE__ */ a(ae, { ...t, viewBox: "0 0 10 8", children: /
|
|
|
1515
1515
|
)
|
|
1516
1516
|
);
|
|
1517
1517
|
yo.displayName = "WandelbotsDataGrid";
|
|
1518
|
-
const
|
|
1518
|
+
const Ot = $(
|
|
1519
1519
|
J(
|
|
1520
1520
|
({
|
|
1521
1521
|
colors: t,
|
|
@@ -1528,7 +1528,7 @@ const _t = $(
|
|
|
1528
1528
|
...s
|
|
1529
1529
|
}) => {
|
|
1530
1530
|
var x, T, C, M, I, j, k;
|
|
1531
|
-
|
|
1531
|
+
mt(() => {
|
|
1532
1532
|
const E = o(), V = p.current;
|
|
1533
1533
|
V && (V.textContent = E);
|
|
1534
1534
|
});
|
|
@@ -1696,11 +1696,11 @@ const _t = $(
|
|
|
1696
1696
|
disabled: c,
|
|
1697
1697
|
...s
|
|
1698
1698
|
}) => {
|
|
1699
|
-
var M, I, j, k, E, V, Q, ot,
|
|
1699
|
+
var M, I, j, k, E, V, Q, ot, yt, St, vt, Ct, wt, Tt, Mt;
|
|
1700
1700
|
const { t: l } = z(), [d, m] = L(), u = B(), p = {
|
|
1701
1701
|
background: (M = u.palette.backgroundPaperElevation) == null ? void 0 : M[4],
|
|
1702
1702
|
color: (I = u.palette.backgroundPaperElevation) == null ? void 0 : I[11]
|
|
1703
|
-
}, g =
|
|
1703
|
+
}, g = $t(() => ({
|
|
1704
1704
|
activeJoggingDir: null,
|
|
1705
1705
|
startJogging(O) {
|
|
1706
1706
|
this.activeJoggingDir = O, t(O);
|
|
@@ -1712,10 +1712,10 @@ const _t = $(
|
|
|
1712
1712
|
const O = i ? y(n()) : n();
|
|
1713
1713
|
(O === void 0 || d === void 0 || Math.abs(d - O) > 1e-9) && m(O);
|
|
1714
1714
|
}, 50);
|
|
1715
|
-
|
|
1715
|
+
mt(f);
|
|
1716
1716
|
function y(O) {
|
|
1717
1717
|
if (O !== void 0)
|
|
1718
|
-
return
|
|
1718
|
+
return Wt(O);
|
|
1719
1719
|
}
|
|
1720
1720
|
function b(O) {
|
|
1721
1721
|
O.button === 0 && g.startJogging("-");
|
|
@@ -1792,7 +1792,7 @@ const _t = $(
|
|
|
1792
1792
|
{
|
|
1793
1793
|
sx: {
|
|
1794
1794
|
pointerEvents: "none",
|
|
1795
|
-
color: (
|
|
1795
|
+
color: (yt = (ot = (Q = (V = u.componentsExt) == null ? void 0 : V.JoggingPanel) == null ? void 0 : Q.JoggingJoint) == null ? void 0 : ot.Joint) == null ? void 0 : yt.arrowColor
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
)
|
|
@@ -1809,7 +1809,7 @@ const _t = $(
|
|
|
1809
1809
|
borderLeftWidth: 0,
|
|
1810
1810
|
borderRightWidth: 0,
|
|
1811
1811
|
border: "none",
|
|
1812
|
-
backgroundColor: (
|
|
1812
|
+
backgroundColor: (St = u.palette.backgroundPaperElevation) == null ? void 0 : St[11],
|
|
1813
1813
|
paddingLeft: "20px",
|
|
1814
1814
|
paddingRight: "20px",
|
|
1815
1815
|
zIndex: 1
|
|
@@ -1832,7 +1832,7 @@ const _t = $(
|
|
|
1832
1832
|
}
|
|
1833
1833
|
),
|
|
1834
1834
|
/* @__PURE__ */ a(
|
|
1835
|
-
|
|
1835
|
+
Ut,
|
|
1836
1836
|
{
|
|
1837
1837
|
disabled: !0,
|
|
1838
1838
|
"aria-label": "Joint position",
|
|
@@ -1856,7 +1856,7 @@ const _t = $(
|
|
|
1856
1856
|
color: c ? u.palette.action.disabled : u.palette.text.secondary
|
|
1857
1857
|
},
|
|
1858
1858
|
"& .MuiSlider-rail": {
|
|
1859
|
-
backgroundColor: (
|
|
1859
|
+
backgroundColor: (vt = u.palette.backgroundPaperElevation) == null ? void 0 : vt[5],
|
|
1860
1860
|
opacity: 1
|
|
1861
1861
|
}
|
|
1862
1862
|
},
|
|
@@ -1892,7 +1892,7 @@ const _t = $(
|
|
|
1892
1892
|
{
|
|
1893
1893
|
sx: {
|
|
1894
1894
|
pointerEvents: "none",
|
|
1895
|
-
color: (
|
|
1895
|
+
color: (Mt = (Tt = (wt = (Ct = u.componentsExt) == null ? void 0 : Ct.JoggingPanel) == null ? void 0 : wt.JoggingJoint) == null ? void 0 : Tt.Joint) == null ? void 0 : Mt.arrowColor
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
1898
|
)
|
|
@@ -1904,7 +1904,7 @@ const _t = $(
|
|
|
1904
1904
|
}
|
|
1905
1905
|
)
|
|
1906
1906
|
);
|
|
1907
|
-
function
|
|
1907
|
+
function Ht(t, e, o) {
|
|
1908
1908
|
if (e.length !== t.length)
|
|
1909
1909
|
return !0;
|
|
1910
1910
|
for (let r = 0; r < e.length; r++)
|
|
@@ -1923,7 +1923,7 @@ function vo(t, e, o) {
|
|
|
1923
1923
|
let r = 0;
|
|
1924
1924
|
return r += Math.abs(t.orientation[0] - e.orientation[0]), r += Math.abs(t.orientation[1] - e.orientation[1]), r += Math.abs(t.orientation[2] - e.orientation[2]), r += Math.abs(t.position[0] - e.position[0]), r += Math.abs(t.position[1] - e.position[1]), r += Math.abs(t.position[2] - e.position[2]), r <= o;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function qt(t, e, o) {
|
|
1927
1927
|
return t.coordinate_system === e.coordinate_system && t.tcp === e.tcp && vo(
|
|
1928
1928
|
t.tcp_pose,
|
|
1929
1929
|
e.tcp_pose,
|
|
@@ -1931,11 +1931,11 @@ function Ht(t, e, o) {
|
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
1933
|
function Co(t, e) {
|
|
1934
|
-
const o = new
|
|
1934
|
+
const o = new _t(
|
|
1935
1935
|
e[0],
|
|
1936
1936
|
e[1],
|
|
1937
1937
|
e[2]
|
|
1938
|
-
), r = new
|
|
1938
|
+
), r = new _t(
|
|
1939
1939
|
t[0],
|
|
1940
1940
|
t[1],
|
|
1941
1941
|
t[2]
|
|
@@ -1948,7 +1948,7 @@ function Co(t, e) {
|
|
|
1948
1948
|
function wo(t) {
|
|
1949
1949
|
return "cellId" in t.api;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function dt(t) {
|
|
1952
1952
|
if (!wo(t))
|
|
1953
1953
|
return t;
|
|
1954
1954
|
const e = t, o = new Proxy(e.api, {
|
|
@@ -1968,8 +1968,8 @@ function qt(t) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
const
|
|
1972
|
-
class
|
|
1971
|
+
const Dt = 1e-4;
|
|
1972
|
+
class ft {
|
|
1973
1973
|
constructor(e, o, r, i, n, c, s) {
|
|
1974
1974
|
this.nova = e, this.cellId = o, this.controller = r, this.motionGroup = i, this.description = n, this.initialMotionState = c, this.motionStateSocket = s, this.rapidlyChangingMotionState = c, s.addEventListener("message", (l) => {
|
|
1975
1975
|
var p;
|
|
@@ -1978,16 +1978,16 @@ class ht {
|
|
|
1978
1978
|
throw new Error(
|
|
1979
1979
|
`Failed to get motion state for ${this.motionGroupId}: ${l.data}`
|
|
1980
1980
|
);
|
|
1981
|
-
|
|
1981
|
+
Ht(
|
|
1982
1982
|
this.rapidlyChangingMotionState.joint_position,
|
|
1983
1983
|
d.joint_position,
|
|
1984
|
-
|
|
1984
|
+
Dt
|
|
1985
1985
|
) || D(() => {
|
|
1986
1986
|
this.rapidlyChangingMotionState.joint_position = d.joint_position;
|
|
1987
|
-
}),
|
|
1987
|
+
}), qt(
|
|
1988
1988
|
this.rapidlyChangingMotionState,
|
|
1989
1989
|
d,
|
|
1990
|
-
|
|
1990
|
+
Dt
|
|
1991
1991
|
) || D(() => {
|
|
1992
1992
|
var g, f, y;
|
|
1993
1993
|
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = d.tcp_pose : (g = d.tcp_pose) != null && g.orientation && ((f = d.tcp_pose) != null && f.position) && ((y = this.rapidlyChangingMotionState.tcp_pose) != null && y.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
|
|
@@ -2011,11 +2011,11 @@ class ht {
|
|
|
2011
2011
|
}), this.rapidlyChangingMotionState.execute !== d.execute && D(() => {
|
|
2012
2012
|
this.rapidlyChangingMotionState.execute = d.execute;
|
|
2013
2013
|
});
|
|
2014
|
-
}),
|
|
2014
|
+
}), ht(this);
|
|
2015
2015
|
}
|
|
2016
2016
|
static async open(e, o, r = {}) {
|
|
2017
2017
|
var f;
|
|
2018
|
-
const i =
|
|
2018
|
+
const i = dt(e), n = r.cellId ?? "cell", [c, s] = o.split("@"), l = await i.api.controller.getCurrentRobotControllerState(
|
|
2019
2019
|
n,
|
|
2020
2020
|
s
|
|
2021
2021
|
), d = l == null ? void 0 : l.motion_groups.find(
|
|
@@ -2042,7 +2042,7 @@ class ht {
|
|
|
2042
2042
|
s,
|
|
2043
2043
|
d.motion_group
|
|
2044
2044
|
);
|
|
2045
|
-
return new
|
|
2045
|
+
return new ft(
|
|
2046
2046
|
i,
|
|
2047
2047
|
n,
|
|
2048
2048
|
l,
|
|
@@ -2067,8 +2067,8 @@ class ht {
|
|
|
2067
2067
|
this.motionStateSocket.close();
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
|
-
const
|
|
2071
|
-
class
|
|
2070
|
+
const At = "Movement request rejected. Another client is currently executing a 'Jogging' motion!";
|
|
2071
|
+
class bt {
|
|
2072
2072
|
constructor(e, o = {}) {
|
|
2073
2073
|
this.motionStream = e, this.options = o, this.DEFAULT_MODE = "off", this.DEFAULT_TCP = "Flange", this.NO_TCP = void 0, this.DEFAULT_INIT_TIMEOUT = 5e3, this.DEFAULT_ORIENTATION = "coordsys", this.mode = "off", this.joggingSocket = null, this.trajectorySocket = null, this.timeout = this.DEFAULT_INIT_TIMEOUT, this.tcp = (o == null ? void 0 : o.tcp) || e.motionGroup.tcp || this.getDefaultTcp(e), this.orientation = (o == null ? void 0 : o.orientation) || this.DEFAULT_ORIENTATION, this.timeout = (o == null ? void 0 : o.timeout) || this.DEFAULT_INIT_TIMEOUT, this.mode = (o == null ? void 0 : o.mode) || this.DEFAULT_MODE, this.onError = o == null ? void 0 : o.onError;
|
|
2074
2074
|
}
|
|
@@ -2090,13 +2090,13 @@ class ft {
|
|
|
2090
2090
|
* @returns Promise resolving to initialized JoggerConnection instance
|
|
2091
2091
|
*/
|
|
2092
2092
|
static async open(e, o, r = {}) {
|
|
2093
|
-
const i = await
|
|
2093
|
+
const i = await ft.open(
|
|
2094
2094
|
e,
|
|
2095
2095
|
o,
|
|
2096
2096
|
{
|
|
2097
2097
|
cellId: r.cellId
|
|
2098
2098
|
}
|
|
2099
|
-
), n = new
|
|
2099
|
+
), n = new bt(i, r);
|
|
2100
2100
|
return await n.setJoggingMode(n.mode), n;
|
|
2101
2101
|
}
|
|
2102
2102
|
getDefaultTcp(e) {
|
|
@@ -2175,7 +2175,7 @@ class ft {
|
|
|
2175
2175
|
return;
|
|
2176
2176
|
}
|
|
2177
2177
|
if (((s = n == null ? void 0 : n.result) == null ? void 0 : s.kind) === "MOTION_ERROR")
|
|
2178
|
-
if (clearTimeout(r), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(
|
|
2178
|
+
if (clearTimeout(r), this.onBlocked && ((l = n == null ? void 0 : n.result) != null && l.message.includes(At))) {
|
|
2179
2179
|
(d = this.joggingSocket) == null || d.dispose(), this.onBlocked();
|
|
2180
2180
|
return;
|
|
2181
2181
|
} else this.onError ? this.onError(i.data) : o(new Error(i.data));
|
|
@@ -2381,7 +2381,7 @@ class ft {
|
|
|
2381
2381
|
throw new Error(
|
|
2382
2382
|
`Failed to execute trajectory: Received invalid message ${b.data}`
|
|
2383
2383
|
);
|
|
2384
|
-
if (this.onBlocked && ((x = h.result.message) != null && x.includes(
|
|
2384
|
+
if (this.onBlocked && ((x = h.result.message) != null && x.includes(At))) {
|
|
2385
2385
|
this.onBlocked();
|
|
2386
2386
|
return;
|
|
2387
2387
|
}
|
|
@@ -2432,7 +2432,7 @@ const To = (t) => {
|
|
|
2432
2432
|
error: t.error
|
|
2433
2433
|
}
|
|
2434
2434
|
) : /* @__PURE__ */ S(et, { children: [
|
|
2435
|
-
/* @__PURE__ */ a(
|
|
2435
|
+
/* @__PURE__ */ a(Gt, { sx: { marginBottom: "24px" } }),
|
|
2436
2436
|
!!t.message && /* @__PURE__ */ a("div", { children: t.message }),
|
|
2437
2437
|
/* @__PURE__ */ a(
|
|
2438
2438
|
_,
|
|
@@ -2475,7 +2475,7 @@ const To = (t) => {
|
|
|
2475
2475
|
}, Io = J(({ store: t }) => {
|
|
2476
2476
|
const { t: e } = z();
|
|
2477
2477
|
return /* @__PURE__ */ a(
|
|
2478
|
-
|
|
2478
|
+
Lt,
|
|
2479
2479
|
{
|
|
2480
2480
|
"data-testid": "jogging-blocked",
|
|
2481
2481
|
"aria-label": "jogging-blocked",
|
|
@@ -2510,7 +2510,7 @@ const To = (t) => {
|
|
|
2510
2510
|
const { t: e } = z(), [o, r] = L(
|
|
2511
2511
|
t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached
|
|
2512
2512
|
), i = A(o);
|
|
2513
|
-
|
|
2513
|
+
mt(() => {
|
|
2514
2514
|
const c = t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
|
|
2515
2515
|
Le(i.current, c) || (i.current = c, r(c));
|
|
2516
2516
|
});
|
|
@@ -2545,7 +2545,7 @@ const To = (t) => {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
);
|
|
2547
2547
|
}
|
|
2548
|
-
), ko =
|
|
2548
|
+
), ko = pt(ze)(({ theme: t }) => ({
|
|
2549
2549
|
"&.MuiFormControl-root": {
|
|
2550
2550
|
".MuiSelect-select": {
|
|
2551
2551
|
paddingTop: "20px",
|
|
@@ -2571,16 +2571,16 @@ function it({
|
|
|
2571
2571
|
/* @__PURE__ */ a(Ne, { ...e })
|
|
2572
2572
|
] });
|
|
2573
2573
|
}
|
|
2574
|
-
const
|
|
2574
|
+
const gt = [
|
|
2575
2575
|
{ id: "0.1", mm: 0.1, degrees: 0.05 },
|
|
2576
2576
|
{ id: "1", mm: 1, degrees: 0.5 },
|
|
2577
2577
|
{ id: "5", mm: 5, degrees: 2.5 },
|
|
2578
2578
|
{ id: "10", mm: 10, degrees: 5 }
|
|
2579
2579
|
], Ro = [
|
|
2580
2580
|
{ id: "continuous" },
|
|
2581
|
-
...
|
|
2581
|
+
...gt
|
|
2582
2582
|
], jo = ["coordsys", "tool"];
|
|
2583
|
-
class
|
|
2583
|
+
class xt {
|
|
2584
2584
|
constructor(e, o, r, i, n) {
|
|
2585
2585
|
var c, s, l;
|
|
2586
2586
|
this.jogger = e, this.coordSystems = o, this.motionGroupDescription = r, this.tcps = i, this.inverseSolverValue = n, this.selectedTabId = "cartesian", this.locks = /* @__PURE__ */ new Set(), this.blocked = !1, this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.tcpChangeInProgress = !1, this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !1, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [], this.inverseSolver = void 0, this.jointType = G.RevoluteJoint;
|
|
@@ -2589,10 +2589,10 @@ class bt {
|
|
|
2589
2589
|
d.coordinate_system = "world";
|
|
2590
2590
|
break;
|
|
2591
2591
|
}
|
|
2592
|
-
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = e.motionStream.rapidlyChangingMotionState.tcp ?? "", this.tcpChangeInProgress = this.tcps.length > 0 && !this.selectedTcpId, this.inverseSolver = n, this.jointType = ((l = (s = r == null ? void 0 : r.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint,
|
|
2592
|
+
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = e.motionStream.rapidlyChangingMotionState.tcp ?? "", this.tcpChangeInProgress = this.tcps.length > 0 && !this.selectedTcpId, this.inverseSolver = n, this.jointType = ((l = (s = r == null ? void 0 : r.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint, ht(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
|
|
2593
2593
|
this.block();
|
|
2594
|
-
}, this.loadFromLocalStorage(), this.disposers.push(
|
|
2595
|
-
|
|
2594
|
+
}, this.loadFromLocalStorage(), this.disposers.push(Rt(() => this.saveToLocalStorage())), this.disposers.push(
|
|
2595
|
+
Rt(() => {
|
|
2596
2596
|
const d = this.jogger.motionStream.rapidlyChangingMotionState.tcp;
|
|
2597
2597
|
d && d !== this.selectedTcpId && D(() => {
|
|
2598
2598
|
this.selectedTcpId = d, this.tcpChangeInProgress = !1;
|
|
@@ -2626,7 +2626,7 @@ class bt {
|
|
|
2626
2626
|
position: d.pose.position,
|
|
2627
2627
|
orientation: d.pose.orientation
|
|
2628
2628
|
}));
|
|
2629
|
-
return new
|
|
2629
|
+
return new xt(
|
|
2630
2630
|
e,
|
|
2631
2631
|
i || [],
|
|
2632
2632
|
n,
|
|
@@ -2690,7 +2690,7 @@ class bt {
|
|
|
2690
2690
|
return Ro;
|
|
2691
2691
|
}
|
|
2692
2692
|
get discreteIncrementOptions() {
|
|
2693
|
-
return
|
|
2693
|
+
return gt;
|
|
2694
2694
|
}
|
|
2695
2695
|
get incrementOptionsById() {
|
|
2696
2696
|
return nt(this.incrementOptions, (e) => e.id);
|
|
@@ -2719,7 +2719,7 @@ class bt {
|
|
|
2719
2719
|
return nt(this.tcps, (e) => e.id);
|
|
2720
2720
|
}
|
|
2721
2721
|
get activeDiscreteIncrement() {
|
|
2722
|
-
return this.selectedOrientation === "tool" ? void 0 :
|
|
2722
|
+
return this.selectedOrientation === "tool" ? void 0 : gt.find((e) => e.id === this.selectedIncrementId);
|
|
2723
2723
|
}
|
|
2724
2724
|
/** The selected rotation velocity converted to radians per second */
|
|
2725
2725
|
get rotationVelocityRadsPerSec() {
|
|
@@ -2879,7 +2879,7 @@ const Eo = J(
|
|
|
2879
2879
|
});
|
|
2880
2880
|
},
|
|
2881
2881
|
disabled: t.isLocked || t.tcpChangeInProgress,
|
|
2882
|
-
endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ a($e, { position: "end", children: /* @__PURE__ */ a(
|
|
2882
|
+
endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ a($e, { position: "end", children: /* @__PURE__ */ a(Gt, { size: 16 }) }) : void 0,
|
|
2883
2883
|
children: t.tcps.map((s) => /* @__PURE__ */ a(Y, { value: s.id, children: s.id }, s.id))
|
|
2884
2884
|
},
|
|
2885
2885
|
"tcp"
|
|
@@ -2943,7 +2943,7 @@ const Eo = J(
|
|
|
2943
2943
|
}
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
2946
|
-
), Po =
|
|
2946
|
+
), Po = pt(Ge)(({ theme: t }) => {
|
|
2947
2947
|
var e;
|
|
2948
2948
|
return {
|
|
2949
2949
|
"&.MuiToggleButtonGroup-root": {
|
|
@@ -2991,7 +2991,7 @@ const Eo = J(
|
|
|
2991
2991
|
}
|
|
2992
2992
|
),
|
|
2993
2993
|
/* @__PURE__ */ a(
|
|
2994
|
-
|
|
2994
|
+
Ut,
|
|
2995
2995
|
{
|
|
2996
2996
|
value: t.velocity,
|
|
2997
2997
|
color: "secondary",
|
|
@@ -3202,7 +3202,7 @@ const Qt = J(
|
|
|
3202
3202
|
}
|
|
3203
3203
|
function u(p) {
|
|
3204
3204
|
return o("General.degree.variable", {
|
|
3205
|
-
amount:
|
|
3205
|
+
amount: Wt(p).toFixed(1)
|
|
3206
3206
|
});
|
|
3207
3207
|
}
|
|
3208
3208
|
return /* @__PURE__ */ S(
|
|
@@ -3256,15 +3256,15 @@ const Qt = J(
|
|
|
3256
3256
|
"aria-label": o("Jogging.Cartesian.MotionType.lb"),
|
|
3257
3257
|
sx: { justifyContent: "center" },
|
|
3258
3258
|
children: [
|
|
3259
|
-
/* @__PURE__ */ a(
|
|
3260
|
-
/* @__PURE__ */ a(
|
|
3259
|
+
/* @__PURE__ */ a(Et, { value: "translate", children: o("Jogging.Cartesian.Translation.bt") }),
|
|
3260
|
+
/* @__PURE__ */ a(Et, { value: "rotate", children: o("Jogging.Cartesian.Rotation.bt") })
|
|
3261
3261
|
]
|
|
3262
3262
|
}
|
|
3263
3263
|
),
|
|
3264
3264
|
t.selectedCartesianMotionType === "translate" && d.map((p) => {
|
|
3265
3265
|
var g, f;
|
|
3266
3266
|
return /* @__PURE__ */ a(
|
|
3267
|
-
|
|
3267
|
+
Ot,
|
|
3268
3268
|
{
|
|
3269
3269
|
"data-testid": `jogging-cartesian-axis-control-${p.id}`,
|
|
3270
3270
|
"aria-label": `jogging-cartesian-axis-control-${p.id}`,
|
|
@@ -3303,7 +3303,7 @@ const Qt = J(
|
|
|
3303
3303
|
t.selectedCartesianMotionType === "rotate" && d.map((p) => {
|
|
3304
3304
|
var g, f;
|
|
3305
3305
|
return /* @__PURE__ */ a(
|
|
3306
|
-
|
|
3306
|
+
Ot,
|
|
3307
3307
|
{
|
|
3308
3308
|
"data-testid": `jogging-cartesian-axis-control-${p.id}`,
|
|
3309
3309
|
"aria-label": `jogging-cartesian-axis-control-${p.id}`,
|
|
@@ -3456,7 +3456,7 @@ const Qt = J(
|
|
|
3456
3456
|
}
|
|
3457
3457
|
), hi = $(
|
|
3458
3458
|
J((t) => {
|
|
3459
|
-
const e = Te(t.nova) ? new Se({ instanceUrl: t.nova }) : t.nova, o =
|
|
3459
|
+
const e = Te(t.nova) ? new Se({ instanceUrl: t.nova }) : t.nova, o = $t(() => ({
|
|
3460
3460
|
joggingStore: null,
|
|
3461
3461
|
loadingError: null
|
|
3462
3462
|
}));
|
|
@@ -3467,14 +3467,14 @@ const Qt = J(
|
|
|
3467
3467
|
try {
|
|
3468
3468
|
let i = t.store;
|
|
3469
3469
|
if (!i) {
|
|
3470
|
-
const n = await
|
|
3470
|
+
const n = await bt.open(
|
|
3471
3471
|
e,
|
|
3472
3472
|
t.motionGroupId,
|
|
3473
3473
|
{
|
|
3474
3474
|
cellId: t.cellId
|
|
3475
3475
|
}
|
|
3476
3476
|
);
|
|
3477
|
-
i = await
|
|
3477
|
+
i = await xt.loadFor(n);
|
|
3478
3478
|
}
|
|
3479
3479
|
D(() => {
|
|
3480
3480
|
o.joggingStore = i;
|
|
@@ -3518,7 +3518,7 @@ const Qt = J(
|
|
|
3518
3518
|
}
|
|
3519
3519
|
return /* @__PURE__ */ S(_, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
|
|
3520
3520
|
/* @__PURE__ */ a(
|
|
3521
|
-
|
|
3521
|
+
Nt,
|
|
3522
3522
|
{
|
|
3523
3523
|
"data-testid": "jogging-tabs",
|
|
3524
3524
|
"aria-label": "jogging-tabs",
|
|
@@ -3528,7 +3528,7 @@ const Qt = J(
|
|
|
3528
3528
|
children: t.tabs.map((i) => {
|
|
3529
3529
|
const n = i.label === "Cartesian" ? o("Jogging.Cartesian.bt") : o("Jogging.Joints.bt"), c = i.label === "cartesian" ? /* @__PURE__ */ a(xe, { fontSize: "small", sx: { mr: 1 } }) : /* @__PURE__ */ a(ye, { fontSize: "small", sx: { mr: 1 } });
|
|
3530
3530
|
return /* @__PURE__ */ a(
|
|
3531
|
-
|
|
3531
|
+
Vt,
|
|
3532
3532
|
{
|
|
3533
3533
|
"data-testid": `jogging-tab-${i.id}`,
|
|
3534
3534
|
"aria-label": `jogging-tab-${i.id}`,
|
|
@@ -3706,8 +3706,8 @@ class Jo {
|
|
|
3706
3706
|
this.addMessage(e, "debug");
|
|
3707
3707
|
}, Me(this, {
|
|
3708
3708
|
messages: Ie,
|
|
3709
|
-
addMessage:
|
|
3710
|
-
clearMessages:
|
|
3709
|
+
addMessage: jt,
|
|
3710
|
+
clearMessages: jt
|
|
3711
3711
|
});
|
|
3712
3712
|
}
|
|
3713
3713
|
}
|
|
@@ -4300,7 +4300,7 @@ const Lo = $(
|
|
|
4300
4300
|
);
|
|
4301
4301
|
}
|
|
4302
4302
|
)
|
|
4303
|
-
), $o =
|
|
4303
|
+
), $o = pt(lo, {
|
|
4304
4304
|
shouldForwardProp: (t) => t !== "selected"
|
|
4305
4305
|
})(({ theme: t }) => {
|
|
4306
4306
|
var e, o, r;
|
|
@@ -4411,7 +4411,7 @@ const Ii = $(
|
|
|
4411
4411
|
// 20px
|
|
4412
4412
|
},
|
|
4413
4413
|
children: /* @__PURE__ */ a(
|
|
4414
|
-
|
|
4414
|
+
Nt,
|
|
4415
4415
|
{
|
|
4416
4416
|
value: m,
|
|
4417
4417
|
onChange: u,
|
|
@@ -4449,7 +4449,7 @@ const Ii = $(
|
|
|
4449
4449
|
}, b = f(), h = y(), v = () => {
|
|
4450
4450
|
s || d(g), i == null || i(g);
|
|
4451
4451
|
}, x = /* @__PURE__ */ a(
|
|
4452
|
-
|
|
4452
|
+
Vt,
|
|
4453
4453
|
{
|
|
4454
4454
|
label: p.label,
|
|
4455
4455
|
icon: p.icon,
|
|
@@ -4544,7 +4544,7 @@ const Ii = $(
|
|
|
4544
4544
|
), No = (t) => {
|
|
4545
4545
|
const e = Math.floor(t / 86400), o = Math.floor(t % 86400 / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, n = [];
|
|
4546
4546
|
return e > 0 ? (n.push(e.toString()), n.push(o.toString().padStart(2, "0")), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : o > 0 ? (n.push(o.toString()), n.push(r.toString().padStart(2, "0")), n.push(i.toString().padStart(2, "0"))) : (n.push(r.toString()), n.push(i.toString().padStart(2, "0"))), n.join(":");
|
|
4547
|
-
},
|
|
4547
|
+
}, Jt = (t, e) => {
|
|
4548
4548
|
const o = Math.floor(t / 86400), r = Math.floor(t % 86400 / 3600), i = Math.floor(t % 3600 / 60), n = t % 60;
|
|
4549
4549
|
if (typeof Intl < "u" && "DurationFormat" in Intl)
|
|
4550
4550
|
try {
|
|
@@ -4703,7 +4703,7 @@ const Ii = $(
|
|
|
4703
4703
|
fontSize: "14px",
|
|
4704
4704
|
transition: "color 0.5s ease-out"
|
|
4705
4705
|
},
|
|
4706
|
-
children: o ? n("timer.error") :
|
|
4706
|
+
children: o ? n("timer.error") : Jt(l, c.language)
|
|
4707
4707
|
}
|
|
4708
4708
|
)
|
|
4709
4709
|
}
|
|
@@ -4788,7 +4788,7 @@ const Ii = $(
|
|
|
4788
4788
|
letterSpacing: "normal",
|
|
4789
4789
|
transition: "color 0.8s ease-in-out, font-size 0.3s ease-out, opacity 2s ease-in-out"
|
|
4790
4790
|
},
|
|
4791
|
-
children: o ? n("timer.error") :
|
|
4791
|
+
children: o ? n("timer.error") : Jt(l, c.language)
|
|
4792
4792
|
}
|
|
4793
4793
|
)
|
|
4794
4794
|
]
|
|
@@ -4853,7 +4853,7 @@ const Ii = $(
|
|
|
4853
4853
|
isPausedState: !1,
|
|
4854
4854
|
currentProgress: 0,
|
|
4855
4855
|
wasRunningBeforeError: !1
|
|
4856
|
-
}), s = A(null), l = A(null), d = A(0), m = A(0), [u] =
|
|
4856
|
+
}), s = A(null), l = A(null), d = A(0), m = A(0), [u] = zt([0], {
|
|
4857
4857
|
tension: 80,
|
|
4858
4858
|
friction: 18,
|
|
4859
4859
|
onChange: ([h]) => {
|
|
@@ -5000,16 +5000,16 @@ const Ii = $(
|
|
|
5000
5000
|
);
|
|
5001
5001
|
}
|
|
5002
5002
|
)
|
|
5003
|
-
),
|
|
5003
|
+
), Ft = 1e-4, qo = {
|
|
5004
5004
|
a: 0,
|
|
5005
5005
|
d: 0,
|
|
5006
5006
|
alpha: 0,
|
|
5007
5007
|
theta: 0,
|
|
5008
5008
|
reverse_rotation_direction: !1
|
|
5009
5009
|
};
|
|
5010
|
-
class
|
|
5010
|
+
class ut {
|
|
5011
5011
|
constructor(e, o, r, i, n, c, s, l, d, m, u) {
|
|
5012
|
-
this.
|
|
5012
|
+
this.cellId = o, this.controller = r, this.motionGroup = i, this.initialMotionState = n, this.motionStateSocket = c, this.isVirtual = s, this.tcps = l, this.description = d, this.initialControllerState = m, this.controllerStateSocket = u, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.nova = dt(e), this.rapidlyChangingMotionState = n, this.controllerState = m, u.addEventListener("message", (p) => {
|
|
5013
5013
|
var f;
|
|
5014
5014
|
const g = (f = W(p.data)) == null ? void 0 : f.result;
|
|
5015
5015
|
g && D(() => {
|
|
@@ -5022,16 +5022,16 @@ class gt {
|
|
|
5022
5022
|
throw new Error(
|
|
5023
5023
|
`Failed to get motion state for ${this.motionGroupId}: ${p.data}`
|
|
5024
5024
|
);
|
|
5025
|
-
|
|
5025
|
+
Ht(
|
|
5026
5026
|
this.rapidlyChangingMotionState.joint_position,
|
|
5027
5027
|
g.joint_position,
|
|
5028
|
-
|
|
5028
|
+
Ft
|
|
5029
5029
|
) || D(() => {
|
|
5030
5030
|
this.rapidlyChangingMotionState.joint_position = g.joint_position;
|
|
5031
|
-
}),
|
|
5031
|
+
}), qt(
|
|
5032
5032
|
this.rapidlyChangingMotionState,
|
|
5033
5033
|
g,
|
|
5034
|
-
|
|
5034
|
+
Ft
|
|
5035
5035
|
) || D(() => {
|
|
5036
5036
|
this.rapidlyChangingMotionState.tcp_pose = g.tcp_pose;
|
|
5037
5037
|
}), g.tcp !== void 0 && this.rapidlyChangingMotionState.tcp !== g.tcp && D(() => {
|
|
@@ -5039,18 +5039,18 @@ class gt {
|
|
|
5039
5039
|
}), this.rapidlyChangingMotionState.standstill !== g.standstill && D(() => {
|
|
5040
5040
|
this.rapidlyChangingMotionState.standstill = g.standstill;
|
|
5041
5041
|
});
|
|
5042
|
-
}),
|
|
5042
|
+
}), ht(this);
|
|
5043
5043
|
}
|
|
5044
5044
|
static async connectMultiple(e, o, r = {}) {
|
|
5045
5045
|
return Promise.all(
|
|
5046
5046
|
o.map(
|
|
5047
|
-
(i) =>
|
|
5047
|
+
(i) => ut.connect(e, i, r)
|
|
5048
5048
|
)
|
|
5049
5049
|
);
|
|
5050
5050
|
}
|
|
5051
5051
|
static async connect(e, o, r = {}) {
|
|
5052
5052
|
var T, C;
|
|
5053
|
-
const i =
|
|
5053
|
+
const i = dt(e), n = r.cellId ?? "cell", [c, s] = o.split("@"), l = await i.api.controller.getCurrentRobotControllerState(
|
|
5054
5054
|
n,
|
|
5055
5055
|
s
|
|
5056
5056
|
), d = l == null ? void 0 : l.motion_groups.find(
|
|
@@ -5097,7 +5097,7 @@ class gt {
|
|
|
5097
5097
|
`Connected controller state websocket to controller ${l.controller}. Initial state:
|
|
5098
5098
|
`,
|
|
5099
5099
|
x
|
|
5100
|
-
), new
|
|
5100
|
+
), new ut(
|
|
5101
5101
|
i,
|
|
5102
5102
|
n,
|
|
5103
5103
|
l,
|
|
@@ -5152,12 +5152,12 @@ class gt {
|
|
|
5152
5152
|
/** Gets the robot mounting position rotation in 3D viz coordinates */
|
|
5153
5153
|
get mountingQuaternion() {
|
|
5154
5154
|
var i, n, c, s, l, d;
|
|
5155
|
-
const e = new
|
|
5155
|
+
const e = new Pt.Vector3(
|
|
5156
5156
|
((n = (i = this.description.mounting) == null ? void 0 : i.orientation) == null ? void 0 : n[0]) || 0,
|
|
5157
5157
|
((s = (c = this.description.mounting) == null ? void 0 : c.orientation) == null ? void 0 : s[1]) || 0,
|
|
5158
5158
|
((d = (l = this.description.mounting) == null ? void 0 : l.orientation) == null ? void 0 : d[2]) || 0
|
|
5159
5159
|
), o = e.length(), r = e.normalize();
|
|
5160
|
-
return new
|
|
5160
|
+
return new Pt.Quaternion().setFromAxisAngle(r, o);
|
|
5161
5161
|
}
|
|
5162
5162
|
/**
|
|
5163
5163
|
* Whether the controller is currently in a safety state
|
|
@@ -5253,7 +5253,7 @@ class gt {
|
|
|
5253
5253
|
}
|
|
5254
5254
|
function ee() {
|
|
5255
5255
|
var e, o, r, i, n, c;
|
|
5256
|
-
const t =
|
|
5256
|
+
const t = Bt({
|
|
5257
5257
|
palette: {
|
|
5258
5258
|
mode: "dark",
|
|
5259
5259
|
text: {
|
|
@@ -5599,14 +5599,14 @@ function Ri(t) {
|
|
|
5599
5599
|
let e = !0;
|
|
5600
5600
|
((r = t.palette) == null ? void 0 : r.mode) === "light" ? e = !1 : ((i = t.palette) == null ? void 0 : i.mode) !== "dark" && (e = !(typeof window < "u" && ((c = (n = window.matchMedia) == null ? void 0 : n.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : c.matches)));
|
|
5601
5601
|
const o = e ? ee() : Yo();
|
|
5602
|
-
return
|
|
5602
|
+
return Bt(o, t);
|
|
5603
5603
|
}
|
|
5604
5604
|
export {
|
|
5605
5605
|
pi as A,
|
|
5606
5606
|
mi as C,
|
|
5607
|
-
|
|
5607
|
+
xt as J,
|
|
5608
5608
|
Jo as L,
|
|
5609
|
-
|
|
5609
|
+
ft as M,
|
|
5610
5610
|
wi as N,
|
|
5611
5611
|
fi as P,
|
|
5612
5612
|
Ti as R,
|
|
@@ -5614,7 +5614,7 @@ export {
|
|
|
5614
5614
|
Ii as T,
|
|
5615
5615
|
_o as V,
|
|
5616
5616
|
yo as W,
|
|
5617
|
-
|
|
5617
|
+
Ot as a,
|
|
5618
5618
|
So as b,
|
|
5619
5619
|
Ri as c,
|
|
5620
5620
|
hi as d,
|
|
@@ -5632,10 +5632,10 @@ export {
|
|
|
5632
5632
|
Lo as p,
|
|
5633
5633
|
ki as q,
|
|
5634
5634
|
Zt as r,
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5635
|
+
ut as s,
|
|
5636
|
+
bt as t,
|
|
5637
|
+
Ht as u,
|
|
5638
5638
|
vo as v,
|
|
5639
|
-
|
|
5639
|
+
qt as w,
|
|
5640
5640
|
Co as x
|
|
5641
5641
|
};
|