@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.
@@ -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-C6sMwjDC.js";
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-D2IJ8Qbs.js";
2
- import { B as o } from "../../Button-CGKw9sMz.js";
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-CYp0UP0B.js";
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-DmrVEdN7.js";
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";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { F as p } from "../../FlashWifi-CYp0UP0B.js";
3
+ import { F as p } from "../../FlashWifi-DkGhdWqj.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -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-DmrVEdN7.js";
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-DmrVEdN7.js";
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-C6sMwjDC.js";
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-a85zdZWm.js";
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-D2IJ8Qbs.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-BqkDy0Wc.js";
9
- import { B as xu } from "../../Button-CGKw9sMz.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";
10
10
  import '../../assets/PieScore.css';function Gs(e) {
11
11
  const {
12
12
  theme: t,
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { D as h } from "../../DialogQR-wJru73YO.js";
3
+ import { D as h } from "../../DialogQR-C2SNQ9Uf.js";
4
4
  import "@mui/material";
5
5
  import "react-i18next";
6
6
  import "../../state/webrtcState.js";
@@ -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-wJru73YO.js";
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-DmrVEdN7.js";
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 ee, m as te } from "../../DefaultPropsProvider-D2IJ8Qbs.js";
9
- import { g as ae, b as ne, P as a } from "../../createTheme-a85zdZWm.js";
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 re(e) {
12
- return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
11
+ import '../../assets/Webcam.css';function nt(t) {
12
+ return String(t).match(/[\d.\-+]*\s*(.*)/)[1] || "";
13
13
  }
14
- function ie(e) {
15
- return parseFloat(e);
14
+ function rt(t) {
15
+ return parseFloat(t);
16
16
  }
17
- const oe = "_container_u6uf5_1", se = "_wrapContainer_u6uf5_5", ce = "_flipButton_u6uf5_10", N = {
18
- container: oe,
19
- wrapContainer: se,
20
- flipButton: ce
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 le(e) {
23
- return ae("MuiSkeleton", e);
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 ue = (e) => {
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
- } = e;
35
- return ee({
34
+ } = t;
35
+ return tt({
36
36
  root: ["root", r, o, u && "withChildren", u && !v && "fitContent", u && !f && "heightAuto"]
37
- }, le, i);
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
- `, fe = typeof $ != "string" ? A`
63
+ `, ut = typeof $ != "string" ? A`
64
64
  animation: ${$} 2s ease-in-out 0.5s infinite;
65
- ` : null, pe = typeof j != "string" ? A`
65
+ ` : null, ft = typeof j != "string" ? A`
66
66
  &::after {
67
67
  animation: ${j} 2s linear 0.5s infinite;
68
68
  }
69
- ` : null, de = P("span", {
69
+ ` : null, pt = P("span", {
70
70
  name: "MuiSkeleton",
71
71
  slot: "Root",
72
- overridesResolver: (e, i) => {
72
+ overridesResolver: (t, i) => {
73
73
  const {
74
74
  ownerState: r
75
- } = e;
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
- })(te(({
79
- theme: e
78
+ })(et(({
79
+ theme: t
80
80
  }) => {
81
- const i = re(e.shape.borderRadius) || "px", r = ie(e.shape.borderRadius);
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: e.vars ? e.vars.palette.Skeleton.bg : ne(e.palette.text.primary, e.palette.mode === "light" ? 0.11 : 0.13),
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: (e.vars || e).shape.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: fe || {
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
- ${(e.vars || e).palette.action.hover},
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: pe || {
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, t = {
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 = ue(t);
202
- return /* @__PURE__ */ s(de, {
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: t,
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 Re({
273
- interval: e,
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(), [t, T] = M(null), b = O(null), C = O(-1), _ = O(0), d = O(), [k, L] = M(!1), [R, D] = M(!1);
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 (t && t.canvas) {
294
- t.update();
295
- const x = e !== void 0 ? e : 1e3;
296
- if (f && await f(t.canvas), i && r && n - _.current >= x) {
297
- if (u && t.canvas)
298
- await r(t.canvas);
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 = t.canvas.width, g.height = t.canvas.height;
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(t.canvas, 0, 0), await r(g);
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(t.canvas, 0, 0), m && b.current && await m(b.current));
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
- }, [t, e, i, r, u, o, m, f]);
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 = t == null ? void 0 : t.webcam) != null && n.srcObject && t.stop();
339
- }, [t]), y(() => {
340
- t && (o ? t.pause() : t.play());
341
- }, [t, o]);
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
- !t && /* @__PURE__ */ s(
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
- t && /* @__PURE__ */ F("div", { className: N.wrapContainer, children: [
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
- Re as default
396
+ kt as default
397
397
  };