@genai-fi/base 4.2.3 → 4.3.1

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 (44) hide show
  1. package/dist/{Button-BeUmwrlS.js → Button-BgSe1MyE.js} +4 -4
  2. package/dist/{Close-BGAFHd7i.js → Close-Cv_QwhIN.js} +1 -1
  3. package/dist/DialogQR-DoM8ZHBM.js +87 -0
  4. package/dist/Feedback.module-C2gI6YmB.js +21 -0
  5. package/dist/{FlashWifi-DkGhdWqj.js → FlashWifi-slUpI7sB.js} +1 -1
  6. package/dist/{Portal-CcDjyHU0.js → Portal-MiwrHMB_.js} +5 -5
  7. package/dist/assets/Feedback.css +1 -0
  8. package/dist/assets/Help.css +1 -0
  9. package/dist/assets/InfoPop.css +1 -0
  10. package/dist/{DialogQR-BIfoHwVy.js → browser-HW-wgeM2.js} +418 -501
  11. package/dist/components/AlertPara/AlertPara.js +1 -1
  12. package/dist/components/Application/Application.js +1 -1
  13. package/dist/components/Button/Button.js +1 -1
  14. package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
  15. package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
  16. package/dist/components/Feedback/Experience.d.ts +6 -0
  17. package/dist/components/Feedback/Experience.js +23 -0
  18. package/dist/components/Feedback/Feedback.d.ts +11 -0
  19. package/dist/components/Feedback/Feedback.js +68 -0
  20. package/dist/components/Feedback/FeedbackForm.d.ts +9 -0
  21. package/dist/components/Feedback/FeedbackForm.js +95 -0
  22. package/dist/components/Feedback/Rating.d.ts +6 -0
  23. package/dist/components/Feedback/Rating.js +31 -0
  24. package/dist/components/Feedback/Recommend.d.ts +6 -0
  25. package/dist/components/Feedback/Recommend.js +31 -0
  26. package/dist/components/Help/Help.d.ts +12 -0
  27. package/dist/components/Help/Help.js +75 -0
  28. package/dist/components/InfoPop/InfoPop.d.ts +10 -0
  29. package/dist/components/InfoPop/InfoPop.js +48 -0
  30. package/dist/components/LangSelect/LangSelect.js +1 -1
  31. package/dist/components/Motd/Motd.js +1 -1
  32. package/dist/components/PieScore/PieScore.js +3 -3
  33. package/dist/components/QRCode/DialogQR.js +3 -2
  34. package/dist/components/QRCode/QRCode.js +7 -6
  35. package/dist/components/SidePanel/SidePanel.js +1 -1
  36. package/dist/components/Webcam/Webcam.js +9 -9
  37. package/dist/components/WorkflowLayout/Widget.js +3 -3
  38. package/dist/{createSvgIcon-DQhMxTx4.js → createSvgIcon-BM4dw4Lw.js} +4 -4
  39. package/dist/hooks/peer.js +1 -1
  40. package/dist/main.d.ts +3 -0
  41. package/dist/main.js +25 -19
  42. package/dist/{react-D_xU5dL6.js → react-B9NW8BS7.js} +6 -6
  43. package/dist/util/Observer.js +1 -1
  44. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { c as a } from "../../createSvgIcon-DQhMxTx4.js";
2
+ import { c as a } from "../../createSvgIcon-BM4dw4Lw.js";
3
3
  import '../../assets/AlertPara.css';const _ = a(/* @__PURE__ */ t("path", {
4
4
  d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
5
5
  }), "InfoOutlined"), c = "_alert_ur25l_1", i = "_isolated_ur25l_13", f = "_none_ur25l_19 _alert_ur25l_1", u = "_info_ur25l_23 _alert_ur25l_1", n = {
@@ -6,7 +6,7 @@ import * as o from "react";
6
6
  import { Suspense as Be } from "react";
7
7
  import * as He from "react-dom";
8
8
  import je from "../Loading/Loading.js";
9
- import { P as Ve } from "../../react-D_xU5dL6.js";
9
+ import { P as Ve } from "../../react-B9NW8BS7.js";
10
10
  /**
11
11
  * react-router v7.13.0
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { s as t } from "../../DefaultPropsProvider-BurgXZzw.js";
2
- import { B as o } from "../../Button-BeUmwrlS.js";
2
+ import { B as o } from "../../Button-BgSe1MyE.js";
3
3
  const e = t(o)({
4
4
  textTransform: "none"
5
5
  }), s = t(o)({
@@ -2,12 +2,12 @@ import { jsx as r, Fragment as W, jsxs as q } from "react/jsx-runtime";
2
2
  import { iceConfig as F, webrtcActive as L } from "../../state/webrtcState.js";
3
3
  import { useRef as P, useState as _, useEffect as o } from "react";
4
4
  import { getRTConfig as z } from "./ice.js";
5
- import { W as E, F as R } from "../../FlashWifi-DkGhdWqj.js";
5
+ import { W as E, F as R } from "../../FlashWifi-slUpI7sB.js";
6
6
  import { useTranslation as b } from "react-i18next";
7
- import { c as j } from "../../createSvgIcon-DQhMxTx4.js";
7
+ import { c as j } from "../../createSvgIcon-BM4dw4Lw.js";
8
8
  import { checkP2P as x } from "./check.js";
9
9
  import { usePeerObject as A } from "../../hooks/peer.js";
10
- import { a as B } from "../../react-D_xU5dL6.js";
10
+ import { a as B } from "../../react-B9NW8BS7.js";
11
11
  import '../../assets/ConnectionStatus.css';const D = "_containerConnecting_1p4sr_15 _container_1p4sr_3", U = "_containerSuccess_1p4sr_20 _container_1p4sr_3", w = "_containerMedium_1p4sr_25 _container_1p4sr_3", O = "_containerBad_1p4sr_30 _container_1p4sr_3", $ = "_message_1p4sr_35", f = {
12
12
  containerConnecting: D,
13
13
  containerSuccess: U,
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { F as p } from "../../FlashWifi-DkGhdWqj.js";
3
+ import { F as p } from "../../FlashWifi-slUpI7sB.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ experience: string;
3
+ onChange: (experience: string) => void;
4
+ }
5
+ export default function Experience({ experience, onChange }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { TextField as l } from "@mui/material";
3
+ import { s as a } from "../../Feedback.module-C2gI6YmB.js";
4
+ import { useTranslation as s } from "react-i18next";
5
+ function p({ experience: r, onChange: t }) {
6
+ const { t: i } = s();
7
+ return /* @__PURE__ */ o("div", { className: a.experienceContainer, children: [
8
+ /* @__PURE__ */ e("h2", { children: i("feedback.experienceTitle") }),
9
+ /* @__PURE__ */ e(
10
+ l,
11
+ {
12
+ multiline: !0,
13
+ rows: 4,
14
+ value: r,
15
+ onChange: (n) => t(n.target.value),
16
+ fullWidth: !0
17
+ }
18
+ )
19
+ ] });
20
+ }
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ interface Props {
3
+ application: string;
4
+ apiUrl: string;
5
+ delay?: number;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ variant?: 'contained' | 'outlined' | 'text';
9
+ }
10
+ export default function Feedback({ application, apiUrl, delay, className, style, variant }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,68 @@
1
+ import { jsx as t, jsxs as S, Fragment as T } from "react/jsx-runtime";
2
+ import "../../state/webrtcState.js";
3
+ import { useState as r, useEffect as g } from "react";
4
+ import { useTranslation as w } from "react-i18next";
5
+ import "../../hooks/peer.js";
6
+ import { Button as F } from "../Button/Button.js";
7
+ import "../../index-SOhdqzHq.js";
8
+ import "../../style/theme.js";
9
+ import "../../util/canvas.js";
10
+ import "../../FileSaver.min-DhePf63e.js";
11
+ import "../BusyButton/BusyButton.js";
12
+ import "../../browser-HW-wgeM2.js";
13
+ import "@mui/material";
14
+ import "../WorkflowLayout/lines.js";
15
+ import "../WorkflowLayout/svgContext.js";
16
+ import "../WorkflowLayout/Widget.js";
17
+ import "../IconMenu/context.js";
18
+ import "@emotion/react";
19
+ import I from "./FeedbackForm.js";
20
+ import { c as v } from "../../createSvgIcon-BM4dw4Lw.js";
21
+ const j = v(/* @__PURE__ */ t("path", {
22
+ d: "M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5"
23
+ }), "ThumbsUpDown");
24
+ function R({ application: s, apiUrl: o, delay: n, className: a, style: p, variant: u }) {
25
+ const { t: f } = w(), [l, c] = r(!1), [d, h] = r(""), [b, m] = r(!1), i = localStorage.getItem("feedbackSubmitted") === "true";
26
+ return g(() => {
27
+ if (!i) {
28
+ const k = setTimeout(
29
+ () => {
30
+ o && fetch(`${o}`).then((e) => e.json()).then((e) => {
31
+ h(e.token), c(!0);
32
+ }).catch(() => {
33
+ console.warn("Feedback denied");
34
+ });
35
+ },
36
+ n ?? 3e5
37
+ );
38
+ return () => clearTimeout(k);
39
+ }
40
+ }, [i, n, o]), /* @__PURE__ */ S(T, { children: [
41
+ l && /* @__PURE__ */ t(
42
+ F,
43
+ {
44
+ variant: u ?? "contained",
45
+ onClick: () => m(!0),
46
+ className: a,
47
+ style: p,
48
+ startIcon: /* @__PURE__ */ t(j, {}),
49
+ children: f("feedback.button")
50
+ }
51
+ ),
52
+ /* @__PURE__ */ t(
53
+ I,
54
+ {
55
+ open: b,
56
+ onClose: () => m(!1),
57
+ onDone: () => {
58
+ localStorage.setItem("feedbackSubmitted", "true"), c(!1);
59
+ },
60
+ token: d,
61
+ application: s
62
+ }
63
+ )
64
+ ] });
65
+ }
66
+ export {
67
+ R as default
68
+ };
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ token: string;
3
+ application: string;
4
+ open?: boolean;
5
+ onClose?: () => void;
6
+ onDone?: () => void;
7
+ }
8
+ export default function FeedbackForm({ application, open, onClose, token, onDone }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,95 @@
1
+ import { jsxs as o, Fragment as N, jsx as e } from "react/jsx-runtime";
2
+ import { Dialog as T, DialogContent as Y, DialogActions as _ } from "@mui/material";
3
+ import { s as l } from "../../Feedback.module-C2gI6YmB.js";
4
+ import { useState as r, useRef as j, useEffect as A } from "react";
5
+ import { Button as b } from "../Button/Button.js";
6
+ import B from "./Rating.js";
7
+ import F from "./Recommend.js";
8
+ import y from "./Experience.js";
9
+ import { useTranslation as I } from "react-i18next";
10
+ const x = "https://store.gen-ai.fi/common/thank_you_graphic.jpg";
11
+ function M(c, n, a) {
12
+ return !(c <= 0 || c > 5 || n <= 0 || n > 5 || a.length > 1e3);
13
+ }
14
+ function L({ application: c, open: n, onClose: a, token: S, onDone: w }) {
15
+ const { t } = I(), [d, f] = r(0), [m, u] = r(0), [h, g] = r(""), [i, C] = r(!1), [s, v] = r(!1), p = j(!1);
16
+ A(() => {
17
+ if (!n || p.current) return;
18
+ const E = new Image();
19
+ E.src = x, p.current = !0;
20
+ }, [n]);
21
+ const R = M(d, m, h), D = () => {
22
+ }, k = () => {
23
+ a && a(), setTimeout(() => {
24
+ C(!1), v(!1), f(0), u(0), g("");
25
+ }, 500);
26
+ };
27
+ return /* @__PURE__ */ o(
28
+ T,
29
+ {
30
+ open: n ?? !1,
31
+ onClose: k,
32
+ children: [
33
+ /* @__PURE__ */ o(Y, { className: l.feedback, children: [
34
+ !i && !s && /* @__PURE__ */ o(N, { children: [
35
+ /* @__PURE__ */ e("h1", { children: t("feedback.title") }),
36
+ /* @__PURE__ */ e(
37
+ B,
38
+ {
39
+ rating: d,
40
+ onChange: f
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e(
44
+ F,
45
+ {
46
+ rating: m,
47
+ onChange: u
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e(
51
+ y,
52
+ {
53
+ experience: h,
54
+ onChange: g
55
+ }
56
+ )
57
+ ] }),
58
+ i && /* @__PURE__ */ e("div", { className: l.thankYouBox, children: /* @__PURE__ */ e(
59
+ "img",
60
+ {
61
+ src: x,
62
+ alt: t("feedback.thankYou")
63
+ }
64
+ ) }),
65
+ s && /* @__PURE__ */ o("div", { className: l.messageBox, children: [
66
+ /* @__PURE__ */ e("h1", { children: t("feedback.error") }),
67
+ /* @__PURE__ */ e("p", { children: t("feedback.errorMessage") })
68
+ ] })
69
+ ] }),
70
+ /* @__PURE__ */ o(_, { children: [
71
+ /* @__PURE__ */ e(
72
+ b,
73
+ {
74
+ variant: !i && !s ? "outlined" : "contained",
75
+ onClick: k,
76
+ children: t("feedback.close")
77
+ }
78
+ ),
79
+ !i && !s && /* @__PURE__ */ e(
80
+ b,
81
+ {
82
+ variant: "contained",
83
+ onClick: D,
84
+ disabled: !R,
85
+ children: t("feedback.send")
86
+ }
87
+ )
88
+ ] })
89
+ ]
90
+ }
91
+ );
92
+ }
93
+ export {
94
+ L as default
95
+ };
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ rating: number;
3
+ onChange: (rating: number) => void;
4
+ }
5
+ export default function Rating({ rating, onChange }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,31 @@
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { s as t } from "../../Feedback.module-C2gI6YmB.js";
3
+ import { c as n } from "../../createSvgIcon-BM4dw4Lw.js";
4
+ import { useTranslation as c } from "react-i18next";
5
+ const o = n(/* @__PURE__ */ e("path", {
6
+ d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
7
+ }), "Star"), d = n(/* @__PURE__ */ e("path", {
8
+ d: "m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"
9
+ }), "StarOutline");
10
+ function S({ rating: r, onChange: s }) {
11
+ const { t: i } = c();
12
+ return /* @__PURE__ */ l("div", { className: t.ratingContainer, children: [
13
+ /* @__PURE__ */ e("h2", { children: i("feedback.ratingTitle") }),
14
+ /* @__PURE__ */ e("div", { className: t.rating, children: [1, 2, 3, 4, 5].map((a) => /* @__PURE__ */ l(
15
+ "div",
16
+ {
17
+ className: `${t.star} ${a <= r ? t.filled : ""}`,
18
+ onClick: () => s(a),
19
+ children: [
20
+ a <= r ? /* @__PURE__ */ e(o, { fontSize: "inherit" }) : /* @__PURE__ */ e(d, { fontSize: "inherit" }),
21
+ a === 1 && /* @__PURE__ */ e("div", { className: t.label, children: i("feedback.ratingVeryDissatisfied") }),
22
+ a === 5 && /* @__PURE__ */ e("div", { className: t.label, children: i("feedback.ratingVerySatisfied") })
23
+ ]
24
+ },
25
+ a
26
+ )) })
27
+ ] });
28
+ }
29
+ export {
30
+ S as default
31
+ };
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ rating: number;
3
+ onChange: (rating: number) => void;
4
+ }
5
+ export default function Recommend({ rating, onChange }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,31 @@
1
+ import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
+ import { useTranslation as s } from "react-i18next";
3
+ import { s as e } from "../../Feedback.module-C2gI6YmB.js";
4
+ function t({ rating: c, onChange: d }) {
5
+ const { t: r } = s();
6
+ return /* @__PURE__ */ n("div", { className: e.ratingContainer, children: [
7
+ /* @__PURE__ */ l("h2", { children: r("feedback.recommendTitle") }),
8
+ /* @__PURE__ */ l("div", { className: e.rating, children: [1, 2, 3, 4, 5].map((a) => /* @__PURE__ */ n(
9
+ "div",
10
+ {
11
+ className: e.boxContainer,
12
+ children: [
13
+ /* @__PURE__ */ l(
14
+ "div",
15
+ {
16
+ className: `${e.box} ${e["box" + a]} ${a === c ? e.filled : ""}`,
17
+ onClick: () => d(a),
18
+ children: `${a}`
19
+ }
20
+ ),
21
+ a === 1 && /* @__PURE__ */ l("div", { className: e.label, children: r("feedback.recommendVeryUnlikely") }),
22
+ a === 5 && /* @__PURE__ */ l("div", { className: e.label, children: r("feedback.recommendVeryLikely") })
23
+ ]
24
+ },
25
+ a
26
+ )) })
27
+ ] });
28
+ }
29
+ export {
30
+ t as default
31
+ };
@@ -0,0 +1,12 @@
1
+ import { CSSProperties, PropsWithChildren } from 'react';
2
+ interface Props extends PropsWithChildren {
3
+ message: string;
4
+ widget?: string;
5
+ active?: boolean;
6
+ style?: CSSProperties;
7
+ placement?: 'top' | 'bottom' | 'left' | 'right';
8
+ inplace?: boolean;
9
+ inside?: boolean;
10
+ }
11
+ export default function Help({ message, children, widget, style: customStyle, active, placement, inplace, inside, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,75 @@
1
+ import { jsx as e, jsxs as I } from "react/jsx-runtime";
2
+ import { IconButton as s } from "@mui/material";
3
+ import f from "../InfoPop/InfoPop.js";
4
+ import { c as v } from "../../createSvgIcon-BM4dw4Lw.js";
5
+ import { useState as C } from "react";
6
+ import '../../assets/Help.css';const p = v(/* @__PURE__ */ e("path", {
7
+ d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
8
+ }), "HelpOutline"), S = "_helpButton_p1m35_1", g = "_helpButtonInplace_p1m35_12", $ = "_container_p1m35_23", k = "_inplaceContainer_p1m35_32", x = "_active_p1m35_41", y = "_helpButtonInside_p1m35_45", t = {
9
+ helpButton: S,
10
+ helpButtonInplace: g,
11
+ container: $,
12
+ inplaceContainer: k,
13
+ active: x,
14
+ helpButtonInside: y
15
+ };
16
+ function j({
17
+ message: u,
18
+ children: h,
19
+ widget: m,
20
+ style: _,
21
+ active: d,
22
+ placement: B,
23
+ inplace: n,
24
+ inside: o
25
+ }) {
26
+ const [c, l] = C(null), a = (i) => {
27
+ l(n || o ? i.currentTarget : i.currentTarget.parentElement);
28
+ }, r = () => {
29
+ l(null);
30
+ };
31
+ return /* @__PURE__ */ I(
32
+ "div",
33
+ {
34
+ className: `${n ? t.inplaceContainer : t.container} ${c && !n && !o ? t.active : ""}`,
35
+ "data-widget": m,
36
+ "data-active": d ? "true" : "false",
37
+ style: _,
38
+ children: [
39
+ !n && /* @__PURE__ */ e(
40
+ s,
41
+ {
42
+ onClick: a,
43
+ onMouseLeave: r,
44
+ className: `${t.helpButton} ${o ? t.helpButtonInside : ""}`,
45
+ color: "inherit",
46
+ children: /* @__PURE__ */ e(p, { fontSize: "medium" })
47
+ }
48
+ ),
49
+ h,
50
+ n && /* @__PURE__ */ e(
51
+ s,
52
+ {
53
+ onClick: a,
54
+ onMouseLeave: r,
55
+ className: t.helpButtonInplace,
56
+ color: "inherit",
57
+ children: /* @__PURE__ */ e(p, { fontSize: "medium" })
58
+ }
59
+ ),
60
+ /* @__PURE__ */ e(
61
+ f,
62
+ {
63
+ anchorEl: c,
64
+ open: !!c,
65
+ placement: B,
66
+ children: u
67
+ }
68
+ )
69
+ ]
70
+ }
71
+ );
72
+ }
73
+ export {
74
+ j as default
75
+ };
@@ -0,0 +1,10 @@
1
+ import { PopperProps } from '@mui/material';
2
+ import { PropsWithChildren } from 'react';
3
+ interface Props extends Omit<PopperProps, 'children'>, PropsWithChildren {
4
+ theme?: 'light' | 'dark';
5
+ offsetY?: number;
6
+ offsetX?: number;
7
+ delay?: number;
8
+ }
9
+ export default function InfoPop({ open, delay, children, offsetY, offsetX, ...props }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,48 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { Popper as u } from "@mui/material";
3
+ import { useState as d, useRef as h, useEffect as g } from "react";
4
+ import '../../assets/InfoPop.css';const I = "_popper_35oif_1", b = "_fadeIn_35oif_1", k = "_dark_35oif_12", x = "_light_35oif_17", O = "_bottom_35oif_22", $ = "_top_35oif_27", v = "_right_35oif_32", P = "_left_35oif_37", i = {
5
+ popper: I,
6
+ fadeIn: b,
7
+ dark: k,
8
+ light: x,
9
+ bottom: O,
10
+ top: $,
11
+ right: v,
12
+ left: P
13
+ };
14
+ function z({ open: t, delay: o, children: m, offsetY: f = 0, offsetX: r = 0, ...e }) {
15
+ const [p, s] = d(t), n = h(t);
16
+ n.current = t, g(() => {
17
+ if (t) {
18
+ const _ = o ? setTimeout(() => {
19
+ n.current && s(t);
20
+ }, o) : void 0;
21
+ return () => {
22
+ _ && clearTimeout(_);
23
+ };
24
+ } else
25
+ s(!1);
26
+ }, [t, o]);
27
+ const a = e.placement || "bottom", l = r || f ? [
28
+ {
29
+ name: "offset",
30
+ options: {
31
+ offset: [r, f]
32
+ }
33
+ }
34
+ ] : e.modifiers;
35
+ return /* @__PURE__ */ c(
36
+ u,
37
+ {
38
+ open: o ? p : t,
39
+ ...e,
40
+ modifiers: l,
41
+ sx: { zIndex: 10 },
42
+ children: /* @__PURE__ */ c("div", { className: `${i.popper} ${i[a]} ${i[e.theme || "dark"]}`, children: m })
43
+ }
44
+ );
45
+ }
46
+ export {
47
+ z as default
48
+ };
@@ -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-DQhMxTx4.js";
5
+ import { c as i } from "../../createSvgIcon-BM4dw4Lw.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 { jsxs as c, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as l, useEffect as d, useMemo as m } from "react";
3
- import { C as _ } from "../../Close-BGAFHd7i.js";
3
+ import { C as _ } from "../../Close-Cv_QwhIN.js";
4
4
  import { IconButton as a } from "@mui/material";
5
5
  import '../../assets/Motd.css';const g = "#e04f66", b = "#fd9d32", h = "#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,
@@ -4,9 +4,9 @@ import * as N from "react";
4
4
  import rr from "react";
5
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-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";
7
+ import { r as wo, d as uu, T as qs, g as Ye, u as Ws, c as Pe, a as Xe, s as ce, 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-MiwrHMB_.js";
9
+ import { B as xu } from "../../Button-BgSe1MyE.js";
10
10
  import '../../assets/PieScore.css';function Gs(e) {
11
11
  const {
12
12
  theme: t,
@@ -1,8 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { D as j } from "../../DialogQR-BIfoHwVy.js";
3
+ import "../../browser-HW-wgeM2.js";
4
4
  import "@mui/material";
5
5
  import "react-i18next";
6
+ import { D as k } from "../../DialogQR-DoM8ZHBM.js";
6
7
  import "../../state/webrtcState.js";
7
8
  import "../../hooks/peer.js";
8
9
  import "../Button/Button.js";
@@ -17,5 +18,5 @@ import "../WorkflowLayout/Widget.js";
17
18
  import "../IconMenu/context.js";
18
19
  import "@emotion/react";
19
20
  export {
20
- j as default
21
+ k as default
21
22
  };
@@ -1,10 +1,11 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
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-BIfoHwVy.js";
4
- function q({ url: a, size: r, code: c, label: l, dialog: d }) {
2
+ import { useRef as h, useState as m, useEffect as u, Suspense as p } from "react";
3
+ import { q as v } from "../../browser-HW-wgeM2.js";
4
+ import { s as o, D as b } from "../../DialogQR-DoM8ZHBM.js";
5
+ function w({ url: a, size: r, code: c, label: l, dialog: d }) {
5
6
  const t = h(null), [f, n] = m(!1);
6
7
  return u(() => {
7
- t.current && p.toCanvas(t.current, a, { width: r === "large" ? 350 : r === "normal" ? 250 : 164 }).catch(
8
+ t.current && v.toCanvas(t.current, a, { width: r === "large" ? 350 : r === "normal" ? 250 : 164 }).catch(
8
9
  (s) => console.error(s)
9
10
  );
10
11
  }, [a, r]), d ? /* @__PURE__ */ i("div", { className: o.container, children: [
@@ -25,7 +26,7 @@ function q({ url: a, size: r, code: c, label: l, dialog: d }) {
25
26
  }
26
27
  }
27
28
  ),
28
- /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
29
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
29
30
  b,
30
31
  {
31
32
  url: a,
@@ -57,5 +58,5 @@ function q({ url: a, size: r, code: c, label: l, dialog: d }) {
57
58
  );
58
59
  }
59
60
  export {
60
- q as default
61
+ w as default
61
62
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as g, jsx as a } from "react/jsx-runtime";
2
2
  import { useState as m, useRef as B, useEffect as w } from "react";
3
- import { C as A } from "../../Close-BGAFHd7i.js";
3
+ import { C as A } from "../../Close-Cv_QwhIN.js";
4
4
  import { IconButton as D } from "@mui/material";
5
5
  import '../../assets/SidePanel.css';const L = "_sidePanel_fhsa8_1", T = "_sidePanelHorizontal_fhsa8_14", C = "_closed_fhsa8_19", k = "_opening_fhsa8_24", V = "_open_fhsa8_24", W = "_resizer_fhsa8_33", Z = "_resizerHorizontal_fhsa8_44", U = "_resizerVertical_fhsa8_53", X = "_noSelect_fhsa8_61", j = "_resizerBar_fhsa8_65", K = "_resizing_fhsa8_87", O = "_resizerHandle_fhsa8_91", Y = "_minimised_fhsa8_117", F = "_content_fhsa8_183", G = "_closeButton_fhsa8_190", e = {
6
6
  sidePanel: L,