@genai-fi/base 4.3.7 → 4.3.9
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/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
- package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
- package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
- package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
- package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
- package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
- package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
- package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
- package/dist/assets/SidePanel.css +1 -1
- package/dist/assets/SvgLayer.css +1 -1
- package/dist/assets/Widget.css +1 -1
- package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +724 -689
- package/dist/components/BusyButton/BusyButton.d.ts +4 -4
- package/dist/components/BusyButton/BusyButton.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/Feedback/Feedback.js +4 -4
- package/dist/components/Feedback/Rating.js +1 -1
- package/dist/components/Help/Help.js +5 -5
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +9609 -6092
- package/dist/components/QRCode/DialogQR.js +4 -4
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/SidePanel/SidePanel.d.ts +2 -1
- package/dist/components/SidePanel/SidePanel.js +91 -73
- package/dist/components/Webcam/Webcam.js +3 -3
- package/dist/components/WorkflowLayout/Widget.js +1460 -1438
- package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
- package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
- package/dist/hooks/peer.js +1 -1
- package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
- package/dist/react-CiLnfHJp.js +140 -0
- package/dist/services/peer2peer/Incoming.js +1 -1
- package/dist/services/peer2peer/Outgoing.js +1 -1
- package/dist/services/peer2peer/Peer2Peer.js +538 -541
- package/dist/services/peer2peer/PeerConnection.js +1 -1
- package/dist/state/webrtcState.js +1 -1
- package/dist/style/theme.js +1 -1
- package/dist/util/Observer.js +1 -1
- package/dist/util/zip.js +1 -1
- package/dist/vanilla-OLGM3aAq.js +439 -0
- package/package.json +3 -3
- package/dist/react-B9NW8BS7.js +0 -112
- package/dist/vanilla-BJxibF1U.js +0 -404
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { i as H, d as L, P as s, b as W, g as A, a as m } from "./createTheme-
|
|
2
|
+
import { i as H, d as L, P as s, b as W, g as A, a as m } from "./createTheme-DnBeI7Zz.js";
|
|
3
3
|
import { jsx as y, jsxs as G } from "react/jsx-runtime";
|
|
4
|
-
import { i as U, T as
|
|
4
|
+
import { i as U, T as x, d as D, g as Z, u as Y, c as N, a as q, s as $, m as C } from "./DefaultPropsProvider-B_x1hwuY.js";
|
|
5
5
|
import { Global as J, ThemeContext as K } from "@emotion/react";
|
|
6
|
-
import { u as Q, B as X, c as R, C as F, a as ee, b as
|
|
7
|
-
import * as
|
|
8
|
-
const
|
|
6
|
+
import { u as Q, B as X, c as R, C as F, a as ee, b as k, d as B } from "./CircularProgress-DZ8YZ0Dt.js";
|
|
7
|
+
import * as te from "react-dom";
|
|
8
|
+
const ne = (e) => {
|
|
9
9
|
var o;
|
|
10
|
-
const
|
|
10
|
+
const t = {
|
|
11
11
|
systemProps: {},
|
|
12
12
|
otherProps: {}
|
|
13
|
-
},
|
|
13
|
+
}, n = ((o = e == null ? void 0 : e.theme) == null ? void 0 : o.unstable_sxConfig) ?? L;
|
|
14
14
|
return Object.keys(e).forEach((r) => {
|
|
15
|
-
|
|
16
|
-
}),
|
|
15
|
+
n[r] ? t.systemProps[r] = e[r] : t.otherProps[r] = e[r];
|
|
16
|
+
}), t;
|
|
17
17
|
};
|
|
18
18
|
function oe(e) {
|
|
19
19
|
const {
|
|
20
|
-
sx:
|
|
21
|
-
...
|
|
20
|
+
sx: t,
|
|
21
|
+
...n
|
|
22
22
|
} = e, {
|
|
23
23
|
systemProps: o,
|
|
24
24
|
otherProps: r
|
|
25
|
-
} =
|
|
25
|
+
} = ne(n);
|
|
26
26
|
let a;
|
|
27
|
-
return Array.isArray(
|
|
28
|
-
const u =
|
|
27
|
+
return Array.isArray(t) ? a = [o, ...t] : typeof t == "function" ? a = (...i) => {
|
|
28
|
+
const u = t(...i);
|
|
29
29
|
return H(u) ? {
|
|
30
30
|
...o,
|
|
31
31
|
...u
|
|
32
32
|
} : o;
|
|
33
33
|
} : a = {
|
|
34
34
|
...o,
|
|
35
|
-
...
|
|
35
|
+
...t
|
|
36
36
|
}, {
|
|
37
37
|
...r,
|
|
38
38
|
sx: a
|
|
@@ -43,11 +43,11 @@ function se(e) {
|
|
|
43
43
|
}
|
|
44
44
|
function V(e) {
|
|
45
45
|
const {
|
|
46
|
-
styles:
|
|
47
|
-
defaultTheme:
|
|
46
|
+
styles: t,
|
|
47
|
+
defaultTheme: n = {}
|
|
48
48
|
} = e;
|
|
49
49
|
return /* @__PURE__ */ y(J, {
|
|
50
|
-
styles: typeof
|
|
50
|
+
styles: typeof t == "function" ? (r) => t(se(r) ? n : r) : t
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
@@ -58,25 +58,25 @@ function re(e) {
|
|
|
58
58
|
return Object.keys(e).length === 0;
|
|
59
59
|
}
|
|
60
60
|
function ae(e = null) {
|
|
61
|
-
const
|
|
62
|
-
return !
|
|
61
|
+
const t = c.useContext(K);
|
|
62
|
+
return !t || re(t) ? e : t;
|
|
63
63
|
}
|
|
64
64
|
const ie = W();
|
|
65
65
|
function P(e = ie) {
|
|
66
66
|
return ae(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
return e !==
|
|
68
|
+
function T(e) {
|
|
69
|
+
const t = U(e);
|
|
70
|
+
return e !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : e;
|
|
71
71
|
}
|
|
72
72
|
function _({
|
|
73
73
|
styles: e,
|
|
74
|
-
themeId:
|
|
75
|
-
defaultTheme:
|
|
74
|
+
themeId: t,
|
|
75
|
+
defaultTheme: n = {}
|
|
76
76
|
}) {
|
|
77
|
-
const o = P(
|
|
77
|
+
const o = P(n), r = t && o[t] || o;
|
|
78
78
|
let a = typeof e == "function" ? e(r) : e;
|
|
79
|
-
return r.modularCssLayers && (Array.isArray(a) ? a = a.map((i) =>
|
|
79
|
+
return r.modularCssLayers && (Array.isArray(a) ? a = a.map((i) => T(typeof i == "function" ? i(r) : i)) : a = T(a)), /* @__PURE__ */ y(V, {
|
|
80
80
|
styles: a
|
|
81
81
|
});
|
|
82
82
|
}
|
|
@@ -102,24 +102,24 @@ const le = "exact-prop: ";
|
|
|
102
102
|
function ce(e) {
|
|
103
103
|
return process.env.NODE_ENV === "production" ? e : {
|
|
104
104
|
...e,
|
|
105
|
-
[le]: (
|
|
106
|
-
const
|
|
107
|
-
return
|
|
105
|
+
[le]: (t) => {
|
|
106
|
+
const n = Object.keys(t).filter((o) => !e.hasOwnProperty(o));
|
|
107
|
+
return n.length > 0 ? new Error(`The following props are not supported: ${n.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
const ue = /* @__PURE__ */ c.createContext();
|
|
112
112
|
process.env.NODE_ENV !== "production" && (s.node, s.bool);
|
|
113
|
-
const
|
|
114
|
-
function
|
|
115
|
-
const e = P(
|
|
116
|
-
return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[
|
|
113
|
+
const ze = () => c.useContext(ue) ?? !1;
|
|
114
|
+
function we() {
|
|
115
|
+
const e = P(D);
|
|
116
|
+
return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[x] || e;
|
|
117
117
|
}
|
|
118
118
|
function M(e) {
|
|
119
119
|
return /* @__PURE__ */ y(_, {
|
|
120
120
|
...e,
|
|
121
|
-
defaultTheme:
|
|
122
|
-
themeId:
|
|
121
|
+
defaultTheme: D,
|
|
122
|
+
themeId: x
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
@@ -132,56 +132,56 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
|
132
132
|
*/
|
|
133
133
|
styles: s.oneOfType([s.array, s.func, s.number, s.object, s.string, s.bool])
|
|
134
134
|
});
|
|
135
|
-
function
|
|
136
|
-
return function(
|
|
135
|
+
function xe(e) {
|
|
136
|
+
return function(n) {
|
|
137
137
|
return (
|
|
138
138
|
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
139
139
|
/* @__PURE__ */ y(M, {
|
|
140
140
|
styles: typeof e == "function" ? (o) => e({
|
|
141
141
|
theme: o,
|
|
142
|
-
...
|
|
142
|
+
...n
|
|
143
143
|
}) : e
|
|
144
144
|
})
|
|
145
145
|
);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function De() {
|
|
149
149
|
return oe;
|
|
150
150
|
}
|
|
151
151
|
function fe(e) {
|
|
152
152
|
return e && e.ownerDocument || document;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function $e(e) {
|
|
155
155
|
return fe(e).defaultView || window;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
typeof e == "function" ? e(
|
|
157
|
+
function j(e, t) {
|
|
158
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
159
159
|
}
|
|
160
160
|
function de(e) {
|
|
161
161
|
return A("MuiIconButton", e);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const z = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), pe = (e) => {
|
|
164
164
|
const {
|
|
165
|
-
classes:
|
|
166
|
-
disabled:
|
|
165
|
+
classes: t,
|
|
166
|
+
disabled: n,
|
|
167
167
|
color: o,
|
|
168
168
|
edge: r,
|
|
169
169
|
size: a,
|
|
170
170
|
loading: i
|
|
171
171
|
} = e, u = {
|
|
172
|
-
root: ["root", i && "loading",
|
|
172
|
+
root: ["root", i && "loading", n && "disabled", o !== "default" && `color${m(o)}`, r && `edge${m(r)}`, `size${m(a)}`],
|
|
173
173
|
loadingIndicator: ["loadingIndicator"],
|
|
174
174
|
loadingWrapper: ["loadingWrapper"]
|
|
175
175
|
};
|
|
176
|
-
return q(u, de,
|
|
177
|
-
}, ye =
|
|
176
|
+
return q(u, de, t);
|
|
177
|
+
}, ye = $(X, {
|
|
178
178
|
name: "MuiIconButton",
|
|
179
179
|
slot: "Root",
|
|
180
|
-
overridesResolver: (e,
|
|
180
|
+
overridesResolver: (e, t) => {
|
|
181
181
|
const {
|
|
182
|
-
ownerState:
|
|
182
|
+
ownerState: n
|
|
183
183
|
} = e;
|
|
184
|
-
return [
|
|
184
|
+
return [t.root, n.loading && t.loading, n.color !== "default" && t[`color${m(n.color)}`], n.edge && t[`edge${m(n.edge)}`], t[`size${m(n.size)}`]];
|
|
185
185
|
}
|
|
186
186
|
})(C(({
|
|
187
187
|
theme: e
|
|
@@ -196,7 +196,7 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
196
196
|
duration: e.transitions.duration.shortest
|
|
197
197
|
}),
|
|
198
198
|
variants: [{
|
|
199
|
-
props: (
|
|
199
|
+
props: (t) => !t.disableRipple,
|
|
200
200
|
style: {
|
|
201
201
|
"--IconButton-hoverBg": e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity),
|
|
202
202
|
"&:hover": {
|
|
@@ -248,19 +248,19 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
248
248
|
style: {
|
|
249
249
|
color: "inherit"
|
|
250
250
|
}
|
|
251
|
-
}, ...Object.entries(e.palette).filter(R()).map(([
|
|
251
|
+
}, ...Object.entries(e.palette).filter(R()).map(([t]) => ({
|
|
252
252
|
props: {
|
|
253
|
-
color:
|
|
253
|
+
color: t
|
|
254
254
|
},
|
|
255
255
|
style: {
|
|
256
|
-
color: (e.vars || e).palette[
|
|
256
|
+
color: (e.vars || e).palette[t].main
|
|
257
257
|
}
|
|
258
|
-
})), ...Object.entries(e.palette).filter(R()).map(([
|
|
258
|
+
})), ...Object.entries(e.palette).filter(R()).map(([t]) => ({
|
|
259
259
|
props: {
|
|
260
|
-
color:
|
|
260
|
+
color: t
|
|
261
261
|
},
|
|
262
262
|
style: {
|
|
263
|
-
"--IconButton-hoverBg": e.alpha((e.vars || e).palette[
|
|
263
|
+
"--IconButton-hoverBg": e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity)
|
|
264
264
|
}
|
|
265
265
|
})), {
|
|
266
266
|
props: {
|
|
@@ -279,14 +279,14 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
279
279
|
fontSize: e.typography.pxToRem(28)
|
|
280
280
|
}
|
|
281
281
|
}],
|
|
282
|
-
[`&.${
|
|
282
|
+
[`&.${z.disabled}`]: {
|
|
283
283
|
backgroundColor: "transparent",
|
|
284
284
|
color: (e.vars || e).palette.action.disabled
|
|
285
285
|
},
|
|
286
|
-
[`&.${
|
|
286
|
+
[`&.${z.loading}`]: {
|
|
287
287
|
color: "transparent"
|
|
288
288
|
}
|
|
289
|
-
}))), ge =
|
|
289
|
+
}))), ge = $("span", {
|
|
290
290
|
name: "MuiIconButton",
|
|
291
291
|
slot: "LoadingIndicator"
|
|
292
292
|
})(({
|
|
@@ -307,9 +307,9 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
307
307
|
display: "flex"
|
|
308
308
|
}
|
|
309
309
|
}]
|
|
310
|
-
})), me = /* @__PURE__ */ c.forwardRef(function(
|
|
310
|
+
})), me = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
311
311
|
const o = Y({
|
|
312
|
-
props:
|
|
312
|
+
props: t,
|
|
313
313
|
name: "MuiIconButton"
|
|
314
314
|
}), {
|
|
315
315
|
edge: r = !1,
|
|
@@ -321,9 +321,9 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
321
321
|
size: b = "medium",
|
|
322
322
|
id: p,
|
|
323
323
|
loading: f = null,
|
|
324
|
-
loadingIndicator:
|
|
325
|
-
...
|
|
326
|
-
} = o, g = Q(p), S =
|
|
324
|
+
loadingIndicator: v,
|
|
325
|
+
...h
|
|
326
|
+
} = o, g = Q(p), S = v ?? /* @__PURE__ */ y(F, {
|
|
327
327
|
"aria-labelledby": g,
|
|
328
328
|
color: "inherit",
|
|
329
329
|
size: 16
|
|
@@ -336,24 +336,24 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
336
336
|
loading: f,
|
|
337
337
|
loadingIndicator: S,
|
|
338
338
|
size: b
|
|
339
|
-
},
|
|
339
|
+
}, O = pe(E);
|
|
340
340
|
return /* @__PURE__ */ G(ye, {
|
|
341
341
|
id: f ? g : p,
|
|
342
|
-
className: N(
|
|
342
|
+
className: N(O.root, i),
|
|
343
343
|
centerRipple: !0,
|
|
344
344
|
focusRipple: !l,
|
|
345
345
|
disabled: d || f,
|
|
346
|
-
ref:
|
|
347
|
-
...
|
|
346
|
+
ref: n,
|
|
347
|
+
...h,
|
|
348
348
|
ownerState: E,
|
|
349
349
|
children: [typeof f == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
350
350
|
/* @__PURE__ */ y("span", {
|
|
351
|
-
className:
|
|
351
|
+
className: O.loadingWrapper,
|
|
352
352
|
style: {
|
|
353
353
|
display: "contents"
|
|
354
354
|
},
|
|
355
355
|
children: /* @__PURE__ */ y(ge, {
|
|
356
|
-
className:
|
|
356
|
+
className: O.loadingIndicator,
|
|
357
357
|
ownerState: E,
|
|
358
358
|
children: f && S
|
|
359
359
|
})
|
|
@@ -368,7 +368,7 @@ process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
|
368
368
|
/**
|
|
369
369
|
* The icon to display.
|
|
370
370
|
*/
|
|
371
|
-
children: ee(s.node, (e) => c.Children.toArray(e.children).some((
|
|
371
|
+
children: ee(s.node, (e) => c.Children.toArray(e.children).some((n) => /* @__PURE__ */ c.isValidElement(n) && n.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
372
372
|
`)) : null),
|
|
373
373
|
/**
|
|
374
374
|
* Override or extend the styles applied to the component.
|
|
@@ -442,53 +442,53 @@ process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
|
442
442
|
function be(e) {
|
|
443
443
|
return typeof e == "string";
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
return e === void 0 || be(e) ?
|
|
447
|
-
...
|
|
445
|
+
function ve(e, t, n) {
|
|
446
|
+
return e === void 0 || be(e) ? t : {
|
|
447
|
+
...t,
|
|
448
448
|
ownerState: {
|
|
449
|
-
...
|
|
450
|
-
...
|
|
449
|
+
...t.ownerState,
|
|
450
|
+
...n
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
return typeof e == "function" ? e(
|
|
454
|
+
function he(e, t, n) {
|
|
455
|
+
return typeof e == "function" ? e(t, n) : e;
|
|
456
456
|
}
|
|
457
|
-
function Ee(e,
|
|
457
|
+
function Ee(e, t = []) {
|
|
458
458
|
if (e === void 0)
|
|
459
459
|
return {};
|
|
460
|
-
const
|
|
461
|
-
return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !
|
|
462
|
-
|
|
463
|
-
}),
|
|
460
|
+
const n = {};
|
|
461
|
+
return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !t.includes(o)).forEach((o) => {
|
|
462
|
+
n[o] = e[o];
|
|
463
|
+
}), n;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function w(e) {
|
|
466
466
|
if (e === void 0)
|
|
467
467
|
return {};
|
|
468
|
-
const
|
|
469
|
-
return Object.keys(e).filter((
|
|
470
|
-
n
|
|
471
|
-
}),
|
|
468
|
+
const t = {};
|
|
469
|
+
return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
|
|
470
|
+
t[n] = e[n];
|
|
471
|
+
}), t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Oe(e) {
|
|
474
474
|
const {
|
|
475
|
-
getSlotProps:
|
|
476
|
-
additionalProps:
|
|
475
|
+
getSlotProps: t,
|
|
476
|
+
additionalProps: n,
|
|
477
477
|
externalSlotProps: o,
|
|
478
478
|
externalForwardedProps: r,
|
|
479
479
|
className: a
|
|
480
480
|
} = e;
|
|
481
|
-
if (!
|
|
482
|
-
const
|
|
483
|
-
...
|
|
481
|
+
if (!t) {
|
|
482
|
+
const v = N(n == null ? void 0 : n.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), h = {
|
|
483
|
+
...n == null ? void 0 : n.style,
|
|
484
484
|
...r == null ? void 0 : r.style,
|
|
485
485
|
...o == null ? void 0 : o.style
|
|
486
486
|
}, g = {
|
|
487
|
-
...
|
|
487
|
+
...n,
|
|
488
488
|
...r,
|
|
489
489
|
...o
|
|
490
490
|
};
|
|
491
|
-
return
|
|
491
|
+
return v.length > 0 && (g.className = v), Object.keys(h).length > 0 && (g.style = h), {
|
|
492
492
|
props: g,
|
|
493
493
|
internalRef: void 0
|
|
494
494
|
};
|
|
@@ -496,14 +496,14 @@ function Te(e) {
|
|
|
496
496
|
const i = Ee({
|
|
497
497
|
...r,
|
|
498
498
|
...o
|
|
499
|
-
}), u =
|
|
499
|
+
}), u = w(o), d = w(r), l = t(i), b = N(l == null ? void 0 : l.className, n == null ? void 0 : n.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), p = {
|
|
500
500
|
...l == null ? void 0 : l.style,
|
|
501
|
-
...
|
|
501
|
+
...n == null ? void 0 : n.style,
|
|
502
502
|
...r == null ? void 0 : r.style,
|
|
503
503
|
...o == null ? void 0 : o.style
|
|
504
504
|
}, f = {
|
|
505
505
|
...l,
|
|
506
|
-
...
|
|
506
|
+
...n,
|
|
507
507
|
...d,
|
|
508
508
|
...u
|
|
509
509
|
};
|
|
@@ -512,53 +512,58 @@ function Te(e) {
|
|
|
512
512
|
internalRef: l.ref
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
var
|
|
517
|
-
return parseInt(c.version, 10) >= 19 ? ((
|
|
515
|
+
function Te(e) {
|
|
516
|
+
var t;
|
|
517
|
+
return parseInt(c.version, 10) >= 19 ? ((t = e == null ? void 0 : e.props) == null ? void 0 : t.ref) || null : (e == null ? void 0 : e.ref) || null;
|
|
518
518
|
}
|
|
519
|
-
function Ne(e,
|
|
519
|
+
function Ne(e, t, n, o, r) {
|
|
520
520
|
if (process.env.NODE_ENV === "production")
|
|
521
521
|
return null;
|
|
522
|
-
const a = e[
|
|
523
|
-
return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${
|
|
522
|
+
const a = e[t], i = r || t;
|
|
523
|
+
return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function ke(e) {
|
|
526
526
|
var p;
|
|
527
527
|
const {
|
|
528
|
-
elementType:
|
|
529
|
-
externalSlotProps:
|
|
528
|
+
elementType: t,
|
|
529
|
+
externalSlotProps: n,
|
|
530
530
|
ownerState: o,
|
|
531
531
|
skipResolvingSlotProps: r = !1,
|
|
532
532
|
...a
|
|
533
|
-
} = e, i = r ? {} :
|
|
533
|
+
} = e, i = r ? {} : he(n, o), {
|
|
534
534
|
props: u,
|
|
535
535
|
internalRef: d
|
|
536
|
-
} =
|
|
536
|
+
} = Oe({
|
|
537
537
|
...a,
|
|
538
538
|
externalSlotProps: i
|
|
539
|
-
}), l =
|
|
540
|
-
return
|
|
539
|
+
}), l = k(d, i == null ? void 0 : i.ref, (p = e.additionalProps) == null ? void 0 : p.ref);
|
|
540
|
+
return ve(t, {
|
|
541
541
|
...u,
|
|
542
542
|
ref: l
|
|
543
543
|
}, o);
|
|
544
544
|
}
|
|
545
|
+
function Ve() {
|
|
546
|
+
return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) || // TODO(v9): Remove the test environment check
|
|
547
|
+
// eslint-disable-next-line mui/consistent-production-guard
|
|
548
|
+
process.env.NODE_ENV === "test");
|
|
549
|
+
}
|
|
545
550
|
function Ie(e) {
|
|
546
551
|
return typeof e == "function" ? e() : e;
|
|
547
552
|
}
|
|
548
|
-
const I = /* @__PURE__ */ c.forwardRef(function(
|
|
553
|
+
const I = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
549
554
|
const {
|
|
550
555
|
children: o,
|
|
551
556
|
container: r,
|
|
552
557
|
disablePortal: a = !1
|
|
553
|
-
} =
|
|
558
|
+
} = t, [i, u] = c.useState(null), d = k(/* @__PURE__ */ c.isValidElement(o) ? Te(o) : null, n);
|
|
554
559
|
if (B(() => {
|
|
555
560
|
a || u(Ie(r) || document.body);
|
|
556
561
|
}, [r, a]), B(() => {
|
|
557
562
|
if (i && !a)
|
|
558
|
-
return
|
|
559
|
-
|
|
563
|
+
return j(n, i), () => {
|
|
564
|
+
j(n, null);
|
|
560
565
|
};
|
|
561
|
-
}, [
|
|
566
|
+
}, [n, i, a]), a) {
|
|
562
567
|
if (/* @__PURE__ */ c.isValidElement(o)) {
|
|
563
568
|
const l = {
|
|
564
569
|
ref: d
|
|
@@ -567,7 +572,7 @@ const I = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
|
567
572
|
}
|
|
568
573
|
return o;
|
|
569
574
|
}
|
|
570
|
-
return i && /* @__PURE__ */
|
|
575
|
+
return i && /* @__PURE__ */ te.createPortal(o, i);
|
|
571
576
|
});
|
|
572
577
|
process.env.NODE_ENV !== "production" && (I.propTypes = {
|
|
573
578
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -600,19 +605,21 @@ export {
|
|
|
600
605
|
Ne as H,
|
|
601
606
|
me as I,
|
|
602
607
|
I as P,
|
|
603
|
-
|
|
608
|
+
ve as a,
|
|
604
609
|
fe as b,
|
|
605
|
-
|
|
610
|
+
Te as c,
|
|
606
611
|
Ee as d,
|
|
607
612
|
ce as e,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
613
|
+
Ve as f,
|
|
614
|
+
xe as g,
|
|
615
|
+
ze as h,
|
|
616
|
+
be as i,
|
|
617
|
+
ke as j,
|
|
618
|
+
P as k,
|
|
619
|
+
ae as l,
|
|
620
|
+
Oe as m,
|
|
621
|
+
De as n,
|
|
622
|
+
$e as o,
|
|
623
|
+
he as r,
|
|
624
|
+
we as u
|
|
618
625
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sidePanel_dklbs_1{background:#fff;display:flex;z-index:2;flex-shrink:0;position:relative;transition:opacity .3s ease-in;opacity:0;width:0}._sidePanel_dklbs_1._dark_dklbs_15{background:#444;color:#fff}._sidePanelHorizontal_dklbs_20{flex-direction:column;width:100%}._sidePanelVertical_dklbs_25{flex-direction:row}._sidePanel_dklbs_1._closed_dklbs_29{opacity:0;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-out}._sidePanel_dklbs_1._opening_dklbs_37{opacity:1;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-in}@media(prefers-reduced-motion:reduce){._sidePanel_dklbs_1,._sidePanel_dklbs_1._closed_dklbs_29,._sidePanel_dklbs_1._opening_dklbs_37{transition:none}}._sidePanel_dklbs_1._open_dklbs_37{opacity:1}._resizer_dklbs_57{background-color:transparent;box-sizing:border-box;position:absolute;opacity:1;touch-action:none;-webkit-user-select:none;user-select:none;z-index:2}._resizerHorizontal_dklbs_68{height:30px;width:100%;cursor:ns-resize;left:0;top:-8px;right:0}._resizerVertical_dklbs_77{width:30px;cursor:ew-resize;left:-8px;top:0;bottom:0}._noSelect_dklbs_85{-webkit-user-select:none;user-select:none}._resizerBar_dklbs_89{position:absolute;top:0;left:7px;width:4px;height:100%;background-color:#fff;touch-action:none;-webkit-user-select:none;user-select:none}._resizerDark_dklbs_100 ._resizerBar_dklbs_89{background-color:#444}._resizerHorizontal_dklbs_68 ._resizerBar_dklbs_89{top:7px;left:0;width:100%;height:4px}._resizer_dklbs_57:hover ._resizerBar_dklbs_89{background-color:#75a4e288}._resizer_dklbs_57._resizing_dklbs_115 ._resizerBar_dklbs_89{background-color:#75a4e2}._resizerHandle_dklbs_119{position:absolute;top:50%;left:2px;width:10px;height:60px;transform:translateY(-50%);background-color:#fff;border-radius:3px;border:2px solid #bbb;box-shadow:0 0 4px #ccc;display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}._resizerDark_dklbs_100 ._resizerHandle_dklbs_119{background-color:#444;border-color:#333;box-shadow:0 0 4px #333;color:#fff}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119{top:2px;left:50%;width:60px;height:10px;transform:translate(-50%)}._resizerHandle_dklbs_119._minimised_dklbs_152{left:-15px;width:20px}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119._minimised_dklbs_152{top:-15px;height:20px;left:50%;width:60px;transform:translate(-50%)}._resizerHandle_dklbs_119:focus{outline:2px solid #75a4e2;outline-offset:2px}._resizerVertical_dklbs_77 ._resizerHandle_dklbs_119:before{content:"";display:block;width:4px;height:20px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 2px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 8px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 14px;background-repeat:no-repeat;background-size:4px 4px}._resizerDark_dklbs_100._resizerVertical_dklbs_77 ._resizerHandle_dklbs_119:before{background:radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 2px,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 8px,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 14px}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119:before{content:"";display:block;width:20px;height:4px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 2px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 8px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 14px 0;background-repeat:no-repeat;background-size:4px 4px}._resizerDark_dklbs_100._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119:before{background:radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 2px 0,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 8px 0,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 14px 0}._resizer_dklbs_57:hover ._resizerHandle_dklbs_119,._resizer_dklbs_57._resizing_dklbs_115 ._resizerHandle_dklbs_119{border-color:#75a4e2}._expand_dklbs_218{position:absolute;top:2rem;right:0;height:40px;width:30px;background-color:#fff;border-radius:3px;border:2px solid #aaa;cursor:pointer;display:flex;align-items:center;justify-content:center}._content_dklbs_234{flex-grow:1;overflow:auto;min-width:300px;scrollbar-width:thin}._closeButton_dklbs_242{position:absolute;top:.5rem;right:.5rem;width:min-content;z-index:100}
|
package/dist/assets/SvgLayer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._svglayer_qfgw7_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_qfgw7_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_qfgw7_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height:
|
|
1
|
+
._svglayer_qfgw7_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_qfgw7_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_qfgw7_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height:500px),(max-width:700px){._svglayer_qfgw7_3{display:none}._container_qfgw7_19{display:flex;flex-direction:column;padding:1rem 0;width:100%}}._annotation_qfgw7_48{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-align:center}
|
package/dist/assets/Widget.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._widget_9aoli_3{background:#fff;border-radius:6px;padding:0;display:flex;flex-direction:column;box-shadow:2px 2px 4px #bbb;flex-shrink:0;animation:_fadein_9aoli_1 .5s 1;box-sizing:border-box;position:relative;overflow:hidden}@media only screen and (max-height:
|
|
1
|
+
._widget_9aoli_3{background:#fff;border-radius:6px;padding:0;display:flex;flex-direction:column;box-shadow:2px 2px 4px #bbb;flex-shrink:0;animation:_fadein_9aoli_1 .5s 1;box-sizing:border-box;position:relative;overflow:hidden}@media only screen and (max-height:500px),(max-width:700px){._widget_9aoli_3{max-width:100%}}@keyframes _fadein_9aoli_1{0%{opacity:.1}to{opacity:1}}._widgetDisabled_9aoli_33{pointer-events:none;opacity:.5}._widgetActive_9aoli_39{border:1px dashed #008297}._widget_title_9aoli_44{font-size:14pt;font-weight:700;margin:0}._widget_header_9aoli_50{display:flex;justify-content:left;padding:.6rem 1rem;align-items:center}._widget_header_9aoli_50 input{padding:.2rem;height:initial;box-sizing:border-box;border:2px solid transparent;cursor:pointer;margin-right:1rem}._widget_header_9aoli_50 input:focus{border:2px solid #008297;border-radius:5px;cursor:initial}._widget_header_9aoli_50 fieldset{border:none}._widget_menu_9aoli_77{flex-grow:1;text-align:right}._widget_content_9aoli_82{padding:1rem;display:flex;flex-direction:column}._widget_content_9aoli_82>p{color:#444;font-size:12pt;margin:1rem 1.4rem}
|