@genai-fi/base 4.0.2 → 4.0.3
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-CGKw9sMz.js → Button-BeUmwrlS.js} +91 -91
- package/dist/{CircularProgress-C6sMwjDC.js → CircularProgress-DgKnRiq7.js} +2 -2
- package/dist/DefaultPropsProvider-BurgXZzw.js +533 -0
- package/dist/{DialogQR-wJru73YO.js → DialogQR-C2SNQ9Uf.js} +1 -1
- package/dist/{FlashWifi-CYp0UP0B.js → FlashWifi-DkGhdWqj.js} +1 -1
- package/dist/{Portal-BqkDy0Wc.js → Portal-CcDjyHU0.js} +183 -178
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +774 -892
- package/dist/components/BusyButton/BusyButton.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/ConnectionStatus/ConnectionStatus.js +2 -2
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +5 -5
- package/dist/components/QRCode/DialogQR.js +1 -1
- package/dist/components/QRCode/QRCode.js +1 -1
- package/dist/components/Webcam/Webcam.js +54 -54
- package/dist/components/WorkflowLayout/Widget.js +794 -784
- package/dist/{createSvgIcon-DmrVEdN7.js → createSvgIcon-DQhMxTx4.js} +2 -2
- package/dist/createTheme-DV959X3d.js +2974 -0
- package/dist/style/theme.js +1 -1
- package/package.json +13 -13
- package/dist/DefaultPropsProvider-D2IJ8Qbs.js +0 -524
- package/dist/createTheme-a85zdZWm.js +0 -2899
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
3
|
import { Button as a } from "../Button/Button.js";
|
|
4
|
-
import { C as e } from "../../CircularProgress-
|
|
4
|
+
import { C as e } from "../../CircularProgress-DgKnRiq7.js";
|
|
5
5
|
const f = n(function({ busy: r, ...t }, i) {
|
|
6
6
|
return /* @__PURE__ */ o(
|
|
7
7
|
a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as t } from "../../DefaultPropsProvider-
|
|
2
|
-
import { B as o } from "../../Button-
|
|
1
|
+
import { s as t } from "../../DefaultPropsProvider-BurgXZzw.js";
|
|
2
|
+
import { B as o } from "../../Button-BeUmwrlS.js";
|
|
3
3
|
const e = t(o)({
|
|
4
4
|
textTransform: "none"
|
|
5
5
|
}), s = t(o)({
|
|
@@ -2,9 +2,9 @@ import { jsx as r, Fragment as I, jsxs as L } from "react/jsx-runtime";
|
|
|
2
2
|
import { iceConfig as W, webrtcActive as q } from "../../state/webrtcState.js";
|
|
3
3
|
import { useRef as F, useState as g, useEffect as o } from "react";
|
|
4
4
|
import { getRTConfig as P } from "./ice.js";
|
|
5
|
-
import { W as R, F as z } from "../../FlashWifi-
|
|
5
|
+
import { W as R, F as z } from "../../FlashWifi-DkGhdWqj.js";
|
|
6
6
|
import { useTranslation as E } from "react-i18next";
|
|
7
|
-
import { c as b } from "../../createSvgIcon-
|
|
7
|
+
import { c as b } from "../../createSvgIcon-DQhMxTx4.js";
|
|
8
8
|
import { checkP2P as j } from "./check.js";
|
|
9
9
|
import { usePeerObject as x } from "../../hooks/peer.js";
|
|
10
10
|
import { a as T } from "../../react-D_xU5dL6.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { NativeSelect as s } from "@mui/material";
|
|
3
3
|
import { useTranslation as m } from "react-i18next";
|
|
4
4
|
import { useCallback as g } from "react";
|
|
5
|
-
import { c as i } from "../../createSvgIcon-
|
|
5
|
+
import { c as i } from "../../createSvgIcon-DQhMxTx4.js";
|
|
6
6
|
import '../../assets/LangSelect.css';const r = "_lang_1mspu_3", u = {
|
|
7
7
|
lang: r
|
|
8
8
|
}, h = i(/* @__PURE__ */ e("path", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l, useEffect as d, useMemo as m } from "react";
|
|
3
|
-
import { c as _ } from "../../createSvgIcon-
|
|
3
|
+
import { c as _ } from "../../createSvgIcon-DQhMxTx4.js";
|
|
4
4
|
import { IconButton as a } from "@mui/material";
|
|
5
5
|
import '../../assets/Motd.css';const g = "#e04f66", h = "#fd9d32", b = "#e8f0fe", j = "_motd_1rn2j_3", v = "_info_1rn2j_15 _motd_1rn2j_3", w = "_warn_1rn2j_21 _motd_1rn2j_3", C = "_error_1rn2j_26 _motd_1rn2j_3", M = {
|
|
6
6
|
bgColourful3: g,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as D, jsxs as re } from "react/jsx-runtime";
|
|
2
|
-
import { d as Re, i as E, e as ee, u as ou, f as Be, b as Nn, c as iu, r as Hs, a as su, j as au } from "../../CircularProgress-
|
|
2
|
+
import { d as Re, i as E, e as ee, u as ou, f as Be, b as Nn, c as iu, r as Hs, a as su, j as au } from "../../CircularProgress-DgKnRiq7.js";
|
|
3
3
|
import * as N from "react";
|
|
4
4
|
import rr from "react";
|
|
5
|
-
import { P as d, g as Ge, a as no } from "../../createTheme-
|
|
5
|
+
import { P as d, g as Ge, a as no } from "../../createTheme-DV959X3d.js";
|
|
6
6
|
import { g as lu } from "../../_commonjsHelpers-DaMA6jEr.js";
|
|
7
|
-
import { r as wo, d as uu, T as qs, g as Ye, u as Ws, s as ce, c as Pe, a as Xe, m as cu, f as fu } from "../../DefaultPropsProvider-
|
|
8
|
-
import { i as du, j as hu, o as pu, k as gu, u as Ao, b as bi, P as mu, h as Bs, H as It, f as yu, e as bu, I as vu } from "../../Portal-
|
|
9
|
-
import { B as xu } from "../../Button-
|
|
7
|
+
import { r as wo, d as uu, T as qs, g as Ye, u as Ws, s as ce, c as Pe, a as Xe, m as cu, f as fu } from "../../DefaultPropsProvider-BurgXZzw.js";
|
|
8
|
+
import { i as du, j as hu, o as pu, k as gu, u as Ao, b as bi, P as mu, h as Bs, H as It, f as yu, e as bu, I as vu } from "../../Portal-CcDjyHU0.js";
|
|
9
|
+
import { B as xu } from "../../Button-BeUmwrlS.js";
|
|
10
10
|
import '../../assets/PieScore.css';function Gs(e) {
|
|
11
11
|
const {
|
|
12
12
|
theme: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as h, useState as m, useEffect as u, Suspense as v } from "react";
|
|
3
|
-
import { q as p, s as o, D as b } from "../../DialogQR-
|
|
3
|
+
import { q as p, s as o, D as b } from "../../DialogQR-C2SNQ9Uf.js";
|
|
4
4
|
function q({ url: a, size: r, code: c, label: l, dialog: d }) {
|
|
5
5
|
const t = h(null), [f, n] = m(!1);
|
|
6
6
|
return u(() => {
|
|
@@ -3,27 +3,27 @@ import * as G from "react";
|
|
|
3
3
|
import { useState as M, useRef as O, useEffect as y, useCallback as E } from "react";
|
|
4
4
|
import { useTranslation as J } from "react-i18next";
|
|
5
5
|
import { IconButton as V } from "@mui/material";
|
|
6
|
-
import { c as Q } from "../../createSvgIcon-
|
|
6
|
+
import { c as Q } from "../../createSvgIcon-DQhMxTx4.js";
|
|
7
7
|
import { WebcamClass as Y } from "./webcamClass.js";
|
|
8
|
-
import { g as Z, u as z, s as P, c as W, a as
|
|
9
|
-
import { g as
|
|
8
|
+
import { g as Z, u as z, s as P, c as W, a as tt, m as et } from "../../DefaultPropsProvider-BurgXZzw.js";
|
|
9
|
+
import { g as at, P as a } from "../../createTheme-DV959X3d.js";
|
|
10
10
|
import { css as A, keyframes as H } from "@emotion/react";
|
|
11
|
-
import '../../assets/Webcam.css';function
|
|
12
|
-
return String(
|
|
11
|
+
import '../../assets/Webcam.css';function nt(t) {
|
|
12
|
+
return String(t).match(/[\d.\-+]*\s*(.*)/)[1] || "";
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return parseFloat(
|
|
14
|
+
function rt(t) {
|
|
15
|
+
return parseFloat(t);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
container:
|
|
19
|
-
wrapContainer:
|
|
20
|
-
flipButton:
|
|
17
|
+
const it = "_container_u6uf5_1", ot = "_wrapContainer_u6uf5_5", st = "_flipButton_u6uf5_10", N = {
|
|
18
|
+
container: it,
|
|
19
|
+
wrapContainer: ot,
|
|
20
|
+
flipButton: st
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
return
|
|
22
|
+
function ct(t) {
|
|
23
|
+
return at("MuiSkeleton", t);
|
|
24
24
|
}
|
|
25
25
|
Z("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
|
|
26
|
-
const
|
|
26
|
+
const lt = (t) => {
|
|
27
27
|
const {
|
|
28
28
|
classes: i,
|
|
29
29
|
variant: r,
|
|
@@ -31,10 +31,10 @@ const ue = (e) => {
|
|
|
31
31
|
hasChildren: u,
|
|
32
32
|
width: v,
|
|
33
33
|
height: f
|
|
34
|
-
} =
|
|
35
|
-
return
|
|
34
|
+
} = t;
|
|
35
|
+
return tt({
|
|
36
36
|
root: ["root", r, o, u && "withChildren", u && !v && "fitContent", u && !f && "heightAuto"]
|
|
37
|
-
},
|
|
37
|
+
}, ct, i);
|
|
38
38
|
}, $ = H`
|
|
39
39
|
0% {
|
|
40
40
|
opacity: 1;
|
|
@@ -60,29 +60,29 @@ const ue = (e) => {
|
|
|
60
60
|
100% {
|
|
61
61
|
transform: translateX(100%);
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`, ut = typeof $ != "string" ? A`
|
|
64
64
|
animation: ${$} 2s ease-in-out 0.5s infinite;
|
|
65
|
-
` : null,
|
|
65
|
+
` : null, ft = typeof j != "string" ? A`
|
|
66
66
|
&::after {
|
|
67
67
|
animation: ${j} 2s linear 0.5s infinite;
|
|
68
68
|
}
|
|
69
|
-
` : null,
|
|
69
|
+
` : null, pt = P("span", {
|
|
70
70
|
name: "MuiSkeleton",
|
|
71
71
|
slot: "Root",
|
|
72
|
-
overridesResolver: (
|
|
72
|
+
overridesResolver: (t, i) => {
|
|
73
73
|
const {
|
|
74
74
|
ownerState: r
|
|
75
|
-
} =
|
|
75
|
+
} = t;
|
|
76
76
|
return [i.root, i[r.variant], r.animation !== !1 && i[r.animation], r.hasChildren && i.withChildren, r.hasChildren && !r.width && i.fitContent, r.hasChildren && !r.height && i.heightAuto];
|
|
77
77
|
}
|
|
78
|
-
})(
|
|
79
|
-
theme:
|
|
78
|
+
})(et(({
|
|
79
|
+
theme: t
|
|
80
80
|
}) => {
|
|
81
|
-
const i =
|
|
81
|
+
const i = nt(t.shape.borderRadius) || "px", r = rt(t.shape.borderRadius);
|
|
82
82
|
return {
|
|
83
83
|
display: "block",
|
|
84
84
|
// Create a "on paper" color with sufficient contrast retaining the color
|
|
85
|
-
backgroundColor:
|
|
85
|
+
backgroundColor: t.vars ? t.vars.palette.Skeleton.bg : t.alpha(t.palette.text.primary, t.palette.mode === "light" ? 0.11 : 0.13),
|
|
86
86
|
height: "1.2em",
|
|
87
87
|
variants: [{
|
|
88
88
|
props: {
|
|
@@ -111,7 +111,7 @@ const ue = (e) => {
|
|
|
111
111
|
variant: "rounded"
|
|
112
112
|
},
|
|
113
113
|
style: {
|
|
114
|
-
borderRadius: (
|
|
114
|
+
borderRadius: (t.vars || t).shape.borderRadius
|
|
115
115
|
}
|
|
116
116
|
}, {
|
|
117
117
|
props: ({
|
|
@@ -140,7 +140,7 @@ const ue = (e) => {
|
|
|
140
140
|
props: {
|
|
141
141
|
animation: "pulse"
|
|
142
142
|
},
|
|
143
|
-
style:
|
|
143
|
+
style: ut || {
|
|
144
144
|
animation: `${$} 2s ease-in-out 0.5s infinite`
|
|
145
145
|
}
|
|
146
146
|
}, {
|
|
@@ -156,7 +156,7 @@ const ue = (e) => {
|
|
|
156
156
|
background: `linear-gradient(
|
|
157
157
|
90deg,
|
|
158
158
|
transparent,
|
|
159
|
-
${(
|
|
159
|
+
${(t.vars || t).palette.action.hover},
|
|
160
160
|
transparent
|
|
161
161
|
)`,
|
|
162
162
|
content: '""',
|
|
@@ -172,7 +172,7 @@ const ue = (e) => {
|
|
|
172
172
|
props: {
|
|
173
173
|
animation: "wave"
|
|
174
174
|
},
|
|
175
|
-
style:
|
|
175
|
+
style: ft || {
|
|
176
176
|
"&::after": {
|
|
177
177
|
animation: `${j} 2s linear 0.5s infinite`
|
|
178
178
|
}
|
|
@@ -192,18 +192,18 @@ const ue = (e) => {
|
|
|
192
192
|
variant: w = "text",
|
|
193
193
|
width: l,
|
|
194
194
|
...h
|
|
195
|
-
} = o,
|
|
195
|
+
} = o, e = {
|
|
196
196
|
...o,
|
|
197
197
|
animation: u,
|
|
198
198
|
component: f,
|
|
199
199
|
variant: w,
|
|
200
200
|
hasChildren: !!h.children
|
|
201
|
-
}, T =
|
|
202
|
-
return /* @__PURE__ */ s(
|
|
201
|
+
}, T = lt(e);
|
|
202
|
+
return /* @__PURE__ */ s(pt, {
|
|
203
203
|
as: f,
|
|
204
204
|
ref: r,
|
|
205
205
|
className: W(T.root, v),
|
|
206
|
-
ownerState:
|
|
206
|
+
ownerState: e,
|
|
207
207
|
...h,
|
|
208
208
|
style: {
|
|
209
209
|
width: l,
|
|
@@ -269,8 +269,8 @@ const X = Q([/* @__PURE__ */ s("path", {
|
|
|
269
269
|
}, "0"), /* @__PURE__ */ s("path", {
|
|
270
270
|
d: "m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51m2.38 21.45c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48z"
|
|
271
271
|
}, "1")], "Cameraswitch");
|
|
272
|
-
function
|
|
273
|
-
interval:
|
|
272
|
+
function kt({
|
|
273
|
+
interval: t,
|
|
274
274
|
capture: i,
|
|
275
275
|
onCapture: r,
|
|
276
276
|
disable: o,
|
|
@@ -282,7 +282,7 @@ function Re({
|
|
|
282
282
|
onFatal: w,
|
|
283
283
|
size: l
|
|
284
284
|
}) {
|
|
285
|
-
const { t: h } = J(), [
|
|
285
|
+
const { t: h } = J(), [e, T] = M(null), b = O(null), C = O(-1), _ = O(0), d = O(), [k, L] = M(!1), [R, D] = M(!1);
|
|
286
286
|
y(() => {
|
|
287
287
|
d.current = async (n) => {
|
|
288
288
|
var c;
|
|
@@ -290,26 +290,26 @@ function Re({
|
|
|
290
290
|
d.current && (C.current = window.requestAnimationFrame(d.current));
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
|
-
if (
|
|
294
|
-
|
|
295
|
-
const x =
|
|
296
|
-
if (f && await f(
|
|
297
|
-
if (u &&
|
|
298
|
-
await r(
|
|
293
|
+
if (e && e.canvas) {
|
|
294
|
+
e.update();
|
|
295
|
+
const x = t !== void 0 ? t : 1e3;
|
|
296
|
+
if (f && await f(e.canvas), i && r && n - _.current >= x) {
|
|
297
|
+
if (u && e.canvas)
|
|
298
|
+
await r(e.canvas);
|
|
299
299
|
else {
|
|
300
300
|
const g = document.createElement("canvas");
|
|
301
|
-
g.width =
|
|
301
|
+
g.width = e.canvas.width, g.height = e.canvas.height;
|
|
302
302
|
const S = g.getContext("2d");
|
|
303
|
-
S || console.error("Failed to get context"), S == null || S.drawImage(
|
|
303
|
+
S || console.error("Failed to get context"), S == null || S.drawImage(e.canvas, 0, 0), await r(g);
|
|
304
304
|
}
|
|
305
305
|
_.current = n;
|
|
306
306
|
}
|
|
307
307
|
const I = (c = b.current) == null ? void 0 : c.getContext("2d");
|
|
308
|
-
I && (I.drawImage(
|
|
308
|
+
I && (I.drawImage(e.canvas, 0, 0), m && b.current && await m(b.current));
|
|
309
309
|
}
|
|
310
310
|
d.current && (C.current = window.requestAnimationFrame(d.current));
|
|
311
311
|
}, C.current === -1 && (C.current = window.requestAnimationFrame(d.current));
|
|
312
|
-
}, [
|
|
312
|
+
}, [e, t, i, r, u, o, m, f]);
|
|
313
313
|
const B = E(
|
|
314
314
|
async (n) => {
|
|
315
315
|
var c;
|
|
@@ -335,10 +335,10 @@ function Re({
|
|
|
335
335
|
};
|
|
336
336
|
}, [R, p, B, w, l]), y(() => () => {
|
|
337
337
|
var n;
|
|
338
|
-
d.current = void 0, (n =
|
|
339
|
-
}, [
|
|
340
|
-
|
|
341
|
-
}, [
|
|
338
|
+
d.current = void 0, (n = e == null ? void 0 : e.webcam) != null && n.srcObject && e.stop();
|
|
339
|
+
}, [e]), y(() => {
|
|
340
|
+
e && (o ? e.pause() : e.play());
|
|
341
|
+
}, [e, o]);
|
|
342
342
|
const U = E(() => {
|
|
343
343
|
D((n) => !n);
|
|
344
344
|
}, [D]);
|
|
@@ -352,7 +352,7 @@ function Re({
|
|
|
352
352
|
children: /* @__PURE__ */ s(X, { fontSize: "large" })
|
|
353
353
|
}
|
|
354
354
|
) }) : /* @__PURE__ */ F(q, { children: [
|
|
355
|
-
!
|
|
355
|
+
!e && /* @__PURE__ */ s(
|
|
356
356
|
K,
|
|
357
357
|
{
|
|
358
358
|
variant: "rounded",
|
|
@@ -360,7 +360,7 @@ function Re({
|
|
|
360
360
|
height: l
|
|
361
361
|
}
|
|
362
362
|
),
|
|
363
|
-
|
|
363
|
+
e && /* @__PURE__ */ F("div", { className: N.wrapContainer, children: [
|
|
364
364
|
k && /* @__PURE__ */ s(
|
|
365
365
|
V,
|
|
366
366
|
{
|
|
@@ -393,5 +393,5 @@ function Re({
|
|
|
393
393
|
] });
|
|
394
394
|
}
|
|
395
395
|
export {
|
|
396
|
-
|
|
396
|
+
kt as default
|
|
397
397
|
};
|