@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.
@@ -0,0 +1,533 @@
1
+ import { g as ie, r as L, b as ae, s as G, i as fe, a as ue, P as R, c as ce } from "./createTheme-DV959X3d.js";
2
+ import le from "@emotion/styled";
3
+ import "@emotion/react";
4
+ import * as Y from "react";
5
+ import "react/jsx-runtime";
6
+ function z(e) {
7
+ var t, n, r = "";
8
+ if (typeof e == "string" || typeof e == "number") r += e;
9
+ else if (typeof e == "object") if (Array.isArray(e)) {
10
+ var o = e.length;
11
+ for (t = 0; t < o; t++) e[t] && (n = z(e[t])) && (r && (r += " "), r += n);
12
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
13
+ return r;
14
+ }
15
+ function de() {
16
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = z(e)) && (r && (r += " "), r += t);
17
+ return r;
18
+ }
19
+ function He(e, t, n = void 0) {
20
+ const r = {};
21
+ for (const o in e) {
22
+ const s = e[o];
23
+ let a = "", i = !0;
24
+ for (let u = 0; u < s.length; u += 1) {
25
+ const f = s[u];
26
+ f && (a += (i === !0 ? "" : " ") + t(f), i = !1, n && n[f] && (a += " " + n[f]));
27
+ }
28
+ r[o] = a;
29
+ }
30
+ return r;
31
+ }
32
+ function me(e) {
33
+ for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
34
+ n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
35
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
36
+ n >>> 24, t = /* Math.imul(k, m): */
37
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
38
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
39
+ switch (o) {
40
+ case 3:
41
+ t ^= (e.charCodeAt(r + 2) & 255) << 16;
42
+ case 2:
43
+ t ^= (e.charCodeAt(r + 1) & 255) << 8;
44
+ case 1:
45
+ t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
46
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
47
+ }
48
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
49
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
50
+ }
51
+ var he = {
52
+ animationIterationCount: 1,
53
+ aspectRatio: 1,
54
+ borderImageOutset: 1,
55
+ borderImageSlice: 1,
56
+ borderImageWidth: 1,
57
+ boxFlex: 1,
58
+ boxFlexGroup: 1,
59
+ boxOrdinalGroup: 1,
60
+ columnCount: 1,
61
+ columns: 1,
62
+ flex: 1,
63
+ flexGrow: 1,
64
+ flexPositive: 1,
65
+ flexShrink: 1,
66
+ flexNegative: 1,
67
+ flexOrder: 1,
68
+ gridRow: 1,
69
+ gridRowEnd: 1,
70
+ gridRowSpan: 1,
71
+ gridRowStart: 1,
72
+ gridColumn: 1,
73
+ gridColumnEnd: 1,
74
+ gridColumnSpan: 1,
75
+ gridColumnStart: 1,
76
+ msGridRow: 1,
77
+ msGridRowSpan: 1,
78
+ msGridColumn: 1,
79
+ msGridColumnSpan: 1,
80
+ fontWeight: 1,
81
+ lineHeight: 1,
82
+ opacity: 1,
83
+ order: 1,
84
+ orphans: 1,
85
+ scale: 1,
86
+ tabSize: 1,
87
+ widows: 1,
88
+ zIndex: 1,
89
+ zoom: 1,
90
+ WebkitLineClamp: 1,
91
+ // SVG-related properties
92
+ fillOpacity: 1,
93
+ floodOpacity: 1,
94
+ stopOpacity: 1,
95
+ strokeDasharray: 1,
96
+ strokeDashoffset: 1,
97
+ strokeMiterlimit: 1,
98
+ strokeOpacity: 1,
99
+ strokeWidth: 1
100
+ };
101
+ function ye(e) {
102
+ var t = /* @__PURE__ */ Object.create(null);
103
+ return function(n) {
104
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
105
+ };
106
+ }
107
+ var ve = /[A-Z]|^ms/g, xe = /_EMO_([^_]+?)_([^]*?)_EMO_/g, B = function(t) {
108
+ return t.charCodeAt(1) === 45;
109
+ }, W = function(t) {
110
+ return t != null && typeof t != "boolean";
111
+ }, F = /* @__PURE__ */ ye(function(e) {
112
+ return B(e) ? e : e.replace(ve, "-$&").toLowerCase();
113
+ }), k = function(t, n) {
114
+ switch (t) {
115
+ case "animation":
116
+ case "animationName":
117
+ if (typeof n == "string")
118
+ return n.replace(xe, function(r, o, s) {
119
+ return v = {
120
+ name: o,
121
+ styles: s,
122
+ next: v
123
+ }, o;
124
+ });
125
+ }
126
+ return he[t] !== 1 && !B(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
127
+ };
128
+ function P(e, t, n) {
129
+ if (n == null)
130
+ return "";
131
+ var r = n;
132
+ if (r.__emotion_styles !== void 0)
133
+ return r;
134
+ switch (typeof n) {
135
+ case "boolean":
136
+ return "";
137
+ case "object": {
138
+ var o = n;
139
+ if (o.anim === 1)
140
+ return v = {
141
+ name: o.name,
142
+ styles: o.styles,
143
+ next: v
144
+ }, o.name;
145
+ var s = n;
146
+ if (s.styles !== void 0) {
147
+ var a = s.next;
148
+ if (a !== void 0)
149
+ for (; a !== void 0; )
150
+ v = {
151
+ name: a.name,
152
+ styles: a.styles,
153
+ next: v
154
+ }, a = a.next;
155
+ var i = s.styles + ";";
156
+ return i;
157
+ }
158
+ return Se(e, t, n);
159
+ }
160
+ }
161
+ var u = n;
162
+ return u;
163
+ }
164
+ function Se(e, t, n) {
165
+ var r = "";
166
+ if (Array.isArray(n))
167
+ for (var o = 0; o < n.length; o++)
168
+ r += P(e, t, n[o]) + ";";
169
+ else
170
+ for (var s in n) {
171
+ var a = n[s];
172
+ if (typeof a != "object") {
173
+ var i = a;
174
+ W(i) && (r += F(s) + ":" + k(s, i) + ";");
175
+ } else if (Array.isArray(a) && typeof a[0] == "string" && t == null)
176
+ for (var u = 0; u < a.length; u++)
177
+ W(a[u]) && (r += F(s) + ":" + k(s, a[u]) + ";");
178
+ else {
179
+ var f = P(e, t, a);
180
+ switch (s) {
181
+ case "animation":
182
+ case "animationName": {
183
+ r += F(s) + ":" + f + ";";
184
+ break;
185
+ }
186
+ default:
187
+ r += s + "{" + f + "}";
188
+ }
189
+ }
190
+ }
191
+ return r;
192
+ }
193
+ var H = /label:\s*([^\s;{]+)\s*(;|$)/g, v;
194
+ function pe(e, t, n) {
195
+ if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
196
+ return e[0];
197
+ var r = !0, o = "";
198
+ v = void 0;
199
+ var s = e[0];
200
+ if (s == null || s.raw === void 0)
201
+ r = !1, o += P(n, t, s);
202
+ else {
203
+ var a = s;
204
+ o += a[0];
205
+ }
206
+ for (var i = 1; i < e.length; i++)
207
+ if (o += P(n, t, e[i]), r) {
208
+ var u = s;
209
+ o += u[i];
210
+ }
211
+ H.lastIndex = 0;
212
+ for (var f = "", c; (c = H.exec(o)) !== null; )
213
+ f += "-" + c[1];
214
+ var O = me(o) + f;
215
+ return {
216
+ name: O,
217
+ styles: o,
218
+ next: v
219
+ };
220
+ }
221
+ /**
222
+ * @mui/styled-engine v7.3.1
223
+ *
224
+ * @license MIT
225
+ * This source code is licensed under the MIT license found in the
226
+ * LICENSE file in the root directory of this source tree.
227
+ */
228
+ function we(e, t) {
229
+ const n = le(e, t);
230
+ return process.env.NODE_ENV !== "production" ? (...r) => {
231
+ const o = typeof e == "string" ? `"${e}"` : "component";
232
+ return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
233
+ `)) : r.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), n(...r);
234
+ } : n;
235
+ }
236
+ function ge(e, t) {
237
+ Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
238
+ }
239
+ const U = [];
240
+ function w(e) {
241
+ return U[0] = e, pe(U);
242
+ }
243
+ function Ue(e, t, n = "Mui") {
244
+ const r = {};
245
+ return t.forEach((o) => {
246
+ r[o] = ie(e, o, n);
247
+ }), r;
248
+ }
249
+ function Z(e, t = "") {
250
+ return e.displayName || e.name || t;
251
+ }
252
+ function K(e, t, n) {
253
+ const r = Z(t);
254
+ return e.displayName || (r !== "" ? `${n}(${r})` : n);
255
+ }
256
+ function be(e) {
257
+ if (e != null) {
258
+ if (typeof e == "string")
259
+ return e;
260
+ if (typeof e == "function")
261
+ return Z(e, "Component");
262
+ if (typeof e == "object")
263
+ switch (e.$$typeof) {
264
+ case L.ForwardRef:
265
+ return K(e, e.render, "ForwardRef");
266
+ case L.Memo:
267
+ return K(e, e.type, "memo");
268
+ default:
269
+ return;
270
+ }
271
+ }
272
+ }
273
+ function J(e) {
274
+ const {
275
+ variants: t,
276
+ ...n
277
+ } = e, r = {
278
+ variants: t,
279
+ style: w(n),
280
+ isProcessed: !0
281
+ };
282
+ return r.style === n || t && t.forEach((o) => {
283
+ typeof o.style != "function" && (o.style = w(o.style));
284
+ }), r;
285
+ }
286
+ const Oe = ae();
287
+ function N(e) {
288
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
289
+ }
290
+ function p(e, t) {
291
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
292
+ }
293
+ function Ae(e) {
294
+ return e ? (t, n) => n[e] : null;
295
+ }
296
+ function _e(e, t, n) {
297
+ e.theme = $e(e.theme) ? n : e.theme[t] || e.theme;
298
+ }
299
+ function C(e, t, n) {
300
+ const r = typeof t == "function" ? t(e) : t;
301
+ if (Array.isArray(r))
302
+ return r.flatMap((o) => C(e, o, n));
303
+ if (Array.isArray(r == null ? void 0 : r.variants)) {
304
+ let o;
305
+ if (r.isProcessed)
306
+ o = n ? p(r.style, n) : r.style;
307
+ else {
308
+ const {
309
+ variants: s,
310
+ ...a
311
+ } = r;
312
+ o = n ? p(w(a), n) : a;
313
+ }
314
+ return Q(e, r.variants, [o], n);
315
+ }
316
+ return r != null && r.isProcessed ? n ? p(w(r.style), n) : r.style : n ? p(w(r), n) : r;
317
+ }
318
+ function Q(e, t, n = [], r = void 0) {
319
+ var s;
320
+ let o;
321
+ e: for (let a = 0; a < t.length; a += 1) {
322
+ const i = t[a];
323
+ if (typeof i.props == "function") {
324
+ if (o ?? (o = {
325
+ ...e,
326
+ ...e.ownerState,
327
+ ownerState: e.ownerState
328
+ }), !i.props(o))
329
+ continue;
330
+ } else
331
+ for (const u in i.props)
332
+ if (e[u] !== i.props[u] && ((s = e.ownerState) == null ? void 0 : s[u]) !== i.props[u])
333
+ continue e;
334
+ typeof i.style == "function" ? (o ?? (o = {
335
+ ...e,
336
+ ...e.ownerState,
337
+ ownerState: e.ownerState
338
+ }), n.push(r ? p(w(i.style(o)), r) : i.style(o))) : n.push(r ? p(w(i.style), r) : i.style);
339
+ }
340
+ return n;
341
+ }
342
+ function Ce(e = {}) {
343
+ const {
344
+ themeId: t,
345
+ defaultTheme: n = Oe,
346
+ rootShouldForwardProp: r = N,
347
+ slotShouldForwardProp: o = N
348
+ } = e;
349
+ function s(i) {
350
+ _e(i, t, n);
351
+ }
352
+ return (i, u = {}) => {
353
+ ge(i, (l) => l.filter((d) => d !== G));
354
+ const {
355
+ name: f,
356
+ slot: c,
357
+ skipVariantsResolver: O,
358
+ skipSx: ee,
359
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
360
+ // For more details: https://github.com/mui/material-ui/pull/37908
361
+ overridesResolver: I = Ae(X(c)),
362
+ ...te
363
+ } = u, $ = f && f.startsWith("Mui") || c ? "components" : "custom", ne = O !== void 0 ? O : (
364
+ // TODO v6: remove `Root` in the next major release
365
+ // For more details: https://github.com/mui/material-ui/pull/37908
366
+ c && c !== "Root" && c !== "root" || !1
367
+ ), re = ee || !1;
368
+ let A = N;
369
+ c === "Root" || c === "root" ? A = r : c ? A = o : Ee(i) && (A = void 0);
370
+ const E = we(i, {
371
+ shouldForwardProp: A,
372
+ label: Pe(f, c),
373
+ ...te
374
+ }), oe = (l) => {
375
+ if (l.__emotion_real === l)
376
+ return l;
377
+ if (typeof l == "function")
378
+ return function(x) {
379
+ return C(x, l, x.theme.modularCssLayers ? $ : void 0);
380
+ };
381
+ if (fe(l)) {
382
+ const d = J(l);
383
+ return function(y) {
384
+ return d.variants ? C(y, d, y.theme.modularCssLayers ? $ : void 0) : y.theme.modularCssLayers ? p(d.style, $) : d.style;
385
+ };
386
+ }
387
+ return l;
388
+ }, D = (...l) => {
389
+ const d = [], x = l.map(oe), y = [];
390
+ if (d.push(s), f && I && y.push(function(m) {
391
+ var b, j;
392
+ const h = (j = (b = m.theme.components) == null ? void 0 : b[f]) == null ? void 0 : j.styleOverrides;
393
+ if (!h)
394
+ return null;
395
+ const g = {};
396
+ for (const M in h)
397
+ g[M] = C(m, h[M], m.theme.modularCssLayers ? "theme" : void 0);
398
+ return I(m, g);
399
+ }), f && !ne && y.push(function(m) {
400
+ var g, b;
401
+ const S = m.theme, h = (b = (g = S == null ? void 0 : S.components) == null ? void 0 : g[f]) == null ? void 0 : b.variants;
402
+ return h ? Q(m, h, [], m.theme.modularCssLayers ? "theme" : void 0) : null;
403
+ }), re || y.push(G), Array.isArray(x[0])) {
404
+ const _ = x.shift(), m = new Array(d.length).fill(""), S = new Array(y.length).fill("");
405
+ let h;
406
+ h = [...m, ..._, ...S], h.raw = [...m, ..._.raw, ...S], d.unshift(h);
407
+ }
408
+ const se = [...d, ...x, ...y], T = E(...se);
409
+ return i.muiName && (T.muiName = i.muiName), process.env.NODE_ENV !== "production" && (T.displayName = Re(f, c, i)), T;
410
+ };
411
+ return E.withConfig && (D.withConfig = E.withConfig), D;
412
+ };
413
+ }
414
+ function Re(e, t, n) {
415
+ return e ? `${e}${ue(t || "")}` : `Styled(${be(n)})`;
416
+ }
417
+ function Pe(e, t) {
418
+ let n;
419
+ return process.env.NODE_ENV !== "production" && e && (n = `${e}-${X(t || "Root")}`), n;
420
+ }
421
+ function $e(e) {
422
+ for (const t in e)
423
+ return !1;
424
+ return !0;
425
+ }
426
+ function Ee(e) {
427
+ return typeof e == "string" && // 96 is one less than the char code
428
+ // for "a" so this is checking that
429
+ // it's a lowercase character
430
+ e.charCodeAt(0) > 96;
431
+ }
432
+ function X(e) {
433
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
434
+ }
435
+ function V(e, t, n = !1) {
436
+ const r = {
437
+ ...t
438
+ };
439
+ for (const o in e)
440
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
441
+ const s = o;
442
+ if (s === "components" || s === "slots")
443
+ r[s] = {
444
+ ...e[s],
445
+ ...r[s]
446
+ };
447
+ else if (s === "componentsProps" || s === "slotProps") {
448
+ const a = e[s], i = t[s];
449
+ if (!i)
450
+ r[s] = a || {};
451
+ else if (!a)
452
+ r[s] = i;
453
+ else {
454
+ r[s] = {
455
+ ...i
456
+ };
457
+ for (const u in a)
458
+ if (Object.prototype.hasOwnProperty.call(a, u)) {
459
+ const f = u;
460
+ r[s][f] = V(a[f], i[f], n);
461
+ }
462
+ }
463
+ } else s === "className" && n && t.className ? r.className = de(e == null ? void 0 : e.className, t == null ? void 0 : t.className) : s === "style" && n && t.style ? r.style = {
464
+ ...e == null ? void 0 : e.style,
465
+ ...t == null ? void 0 : t.style
466
+ } : r[s] === void 0 && (r[s] = e[s]);
467
+ }
468
+ return r;
469
+ }
470
+ const Te = /* @__PURE__ */ Y.createContext(void 0);
471
+ process.env.NODE_ENV !== "production" && (R.node, R.object);
472
+ function Fe(e) {
473
+ const {
474
+ theme: t,
475
+ name: n,
476
+ props: r
477
+ } = e;
478
+ if (!t || !t.components || !t.components[n])
479
+ return r;
480
+ const o = t.components[n];
481
+ return o.defaultProps ? V(o.defaultProps, r, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? V(o, r, t.components.mergeClassNameAndStyle) : r;
482
+ }
483
+ function Ne({
484
+ props: e,
485
+ name: t
486
+ }) {
487
+ const n = Y.useContext(Te);
488
+ return Fe({
489
+ props: e,
490
+ name: t,
491
+ theme: {
492
+ components: n
493
+ }
494
+ });
495
+ }
496
+ const q = {
497
+ theme: void 0
498
+ };
499
+ function Ve(e) {
500
+ let t, n;
501
+ return function(o) {
502
+ let s = t;
503
+ return (s === void 0 || o.theme !== n) && (q.theme = o.theme, s = J(e(q)), t = s, n = o.theme), s;
504
+ };
505
+ }
506
+ const Ie = ce(), De = "$$material";
507
+ function je(e) {
508
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
509
+ }
510
+ const Me = (e) => je(e) && e !== "classes", Ke = Ce({
511
+ themeId: De,
512
+ defaultTheme: Ie,
513
+ rootShouldForwardProp: Me
514
+ }), qe = Ve;
515
+ process.env.NODE_ENV !== "production" && (R.node, R.object.isRequired);
516
+ function Ye(e) {
517
+ return Ne(e);
518
+ }
519
+ export {
520
+ De as T,
521
+ He as a,
522
+ Me as b,
523
+ de as c,
524
+ Ie as d,
525
+ je as e,
526
+ N as f,
527
+ Ue as g,
528
+ w as i,
529
+ qe as m,
530
+ V as r,
531
+ Ke as s,
532
+ Ye as u
533
+ };
@@ -3,7 +3,7 @@ import { useRef as ue, useCallback as ae, useEffect as ce } from "react";
3
3
  import { g as le } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  import { Dialog as fe, DialogContent as de, DialogActions as ge } from "@mui/material";
5
5
  import { useTranslation as he } from "react-i18next";
6
- import { c as me } from "./createSvgIcon-DmrVEdN7.js";
6
+ import { c as me } from "./createSvgIcon-DQhMxTx4.js";
7
7
  import "./state/webrtcState.js";
8
8
  import "./hooks/peer.js";
9
9
  import { Button as It } from "./components/Button/Button.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useState as a, useEffect as c } from "react";
3
- import { c as r } from "./createSvgIcon-DmrVEdN7.js";
3
+ import { c as r } from "./createSvgIcon-DQhMxTx4.js";
4
4
  const f = r(/* @__PURE__ */ t("path", {
5
5
  d: "m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"
6
6
  }), "Wifi"), l = r(/* @__PURE__ */ t("path", {