@edusight/notification-widget 1.0.2 → 1.0.5
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/index.cjs.js +17 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +726 -716
- package/dist/index.esm.js.map +1 -1
- package/dist/polyfills/process.d.ts +8 -0
- package/dist/polyfills/process.d.ts.map +1 -0
- package/package.json +4 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import * as Ie from "react";
|
|
2
|
-
import
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { NotificationSocketClient as
|
|
5
|
-
import
|
|
2
|
+
import yn, { useState as Te, useCallback as $e, useEffect as Ze, useRef as uo } from "react";
|
|
3
|
+
import { IconButton as Tt, Badge as fo, ListItem as po, Box as ye, ListItemText as mo, Chip as ho, ListItemSecondaryAction as go, Typography as wt, Divider as bn, FormControlLabel as ht, Switch as gt, Button as kr, CircularProgress as yo, Alert as bo, Tabs as vo, Tab as $r, Popover as vn, List as So, Paper as Eo } from "@mui/material";
|
|
4
|
+
import { NotificationSocketClient as Co, Channel as xo, NotificationCategory as To, Priority as wo, NotificationStatus as Sn, NotificationType as _o } from "@edusight/notification-sdk";
|
|
5
|
+
import Oo from "@emotion/styled";
|
|
6
6
|
import "@emotion/react";
|
|
7
|
-
function
|
|
7
|
+
const Pr = typeof queueMicrotask == "function" ? (e) => queueMicrotask(e) : (e) => Promise.resolve().then(e), rt = globalThis.process;
|
|
8
|
+
if (rt)
|
|
9
|
+
rt.env || (rt.env = {}), typeof rt.nextTick != "function" && (rt.nextTick = Pr);
|
|
10
|
+
else {
|
|
11
|
+
const e = globalThis;
|
|
12
|
+
e.process = {
|
|
13
|
+
env: {},
|
|
14
|
+
nextTick: Pr
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function Ro(e) {
|
|
8
18
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
19
|
}
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
var e =
|
|
20
|
+
var yt = { exports: {} }, nt = {};
|
|
21
|
+
var Ir;
|
|
22
|
+
function Ao() {
|
|
23
|
+
if (Ir) return nt;
|
|
24
|
+
Ir = 1;
|
|
25
|
+
var e = yn, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
16
26
|
function c(u, f, d) {
|
|
17
27
|
var m, p = {}, h = null, y = null;
|
|
18
28
|
d !== void 0 && (h = "" + d), f.key !== void 0 && (h = "" + f.key), f.ref !== void 0 && (y = f.ref);
|
|
@@ -20,13 +30,13 @@ function Oo() {
|
|
|
20
30
|
if (u && u.defaultProps) for (m in f = u.defaultProps, f) p[m] === void 0 && (p[m] = f[m]);
|
|
21
31
|
return { $$typeof: t, type: u, key: h, ref: y, props: p, _owner: o.current };
|
|
22
32
|
}
|
|
23
|
-
return
|
|
33
|
+
return nt.Fragment = r, nt.jsx = c, nt.jsxs = c, nt;
|
|
24
34
|
}
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
var e =
|
|
35
|
+
var ot = {};
|
|
36
|
+
var jr;
|
|
37
|
+
function ko() {
|
|
38
|
+
return jr || (jr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var e = yn, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), u = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), y = /* @__PURE__ */ Symbol.for("react.offscreen"), b = Symbol.iterator, l = "@@iterator";
|
|
30
40
|
function T(s) {
|
|
31
41
|
if (s === null || typeof s != "object")
|
|
32
42
|
return null;
|
|
@@ -303,15 +313,15 @@ function Ro() {
|
|
|
303
313
|
}
|
|
304
314
|
return "";
|
|
305
315
|
}
|
|
306
|
-
var tt = Object.prototype.hasOwnProperty,
|
|
307
|
-
function
|
|
316
|
+
var tt = Object.prototype.hasOwnProperty, gr = {}, yr = S.ReactDebugCurrentFrame;
|
|
317
|
+
function mt(s) {
|
|
308
318
|
if (s) {
|
|
309
319
|
var v = s._owner, R = Be(s.type, s._source, v ? v.type : null);
|
|
310
|
-
|
|
320
|
+
yr.setExtraStackFrame(R);
|
|
311
321
|
} else
|
|
312
|
-
|
|
322
|
+
yr.setExtraStackFrame(null);
|
|
313
323
|
}
|
|
314
|
-
function
|
|
324
|
+
function Wn(s, v, R, P, H) {
|
|
315
325
|
{
|
|
316
326
|
var te = Function.call.bind(tt);
|
|
317
327
|
for (var Y in s)
|
|
@@ -326,41 +336,41 @@ function Ro() {
|
|
|
326
336
|
} catch (ue) {
|
|
327
337
|
V = ue;
|
|
328
338
|
}
|
|
329
|
-
V && !(V instanceof Error) && (
|
|
339
|
+
V && !(V instanceof Error) && (mt(H), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", R, Y, typeof V), mt(null)), V instanceof Error && !(V.message in gr) && (gr[V.message] = !0, mt(H), w("Failed %s type: %s", R, V.message), mt(null));
|
|
330
340
|
}
|
|
331
341
|
}
|
|
332
342
|
}
|
|
333
|
-
var
|
|
334
|
-
function
|
|
335
|
-
return
|
|
343
|
+
var zn = Array.isArray;
|
|
344
|
+
function Vt(s) {
|
|
345
|
+
return zn(s);
|
|
336
346
|
}
|
|
337
|
-
function
|
|
347
|
+
function Yn(s) {
|
|
338
348
|
{
|
|
339
349
|
var v = typeof Symbol == "function" && Symbol.toStringTag, R = v && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
340
350
|
return R;
|
|
341
351
|
}
|
|
342
352
|
}
|
|
343
|
-
function
|
|
353
|
+
function Un(s) {
|
|
344
354
|
try {
|
|
345
|
-
return
|
|
355
|
+
return br(s), !1;
|
|
346
356
|
} catch {
|
|
347
357
|
return !0;
|
|
348
358
|
}
|
|
349
359
|
}
|
|
350
|
-
function
|
|
360
|
+
function br(s) {
|
|
351
361
|
return "" + s;
|
|
352
362
|
}
|
|
353
|
-
function
|
|
354
|
-
if (
|
|
355
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
363
|
+
function vr(s) {
|
|
364
|
+
if (Un(s))
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Yn(s)), br(s);
|
|
356
366
|
}
|
|
357
|
-
var
|
|
367
|
+
var Sr = S.ReactCurrentOwner, Gn = {
|
|
358
368
|
key: !0,
|
|
359
369
|
ref: !0,
|
|
360
370
|
__self: !0,
|
|
361
371
|
__source: !0
|
|
362
|
-
},
|
|
363
|
-
function
|
|
372
|
+
}, Er, Cr;
|
|
373
|
+
function qn(s) {
|
|
364
374
|
if (tt.call(s, "ref")) {
|
|
365
375
|
var v = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
366
376
|
if (v && v.isReactWarning)
|
|
@@ -368,7 +378,7 @@ function Ro() {
|
|
|
368
378
|
}
|
|
369
379
|
return s.ref !== void 0;
|
|
370
380
|
}
|
|
371
|
-
function
|
|
381
|
+
function Kn(s) {
|
|
372
382
|
if (tt.call(s, "key")) {
|
|
373
383
|
var v = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
374
384
|
if (v && v.isReactWarning)
|
|
@@ -376,13 +386,13 @@ function Ro() {
|
|
|
376
386
|
}
|
|
377
387
|
return s.key !== void 0;
|
|
378
388
|
}
|
|
379
|
-
function
|
|
380
|
-
typeof s.ref == "string" &&
|
|
389
|
+
function Hn(s, v) {
|
|
390
|
+
typeof s.ref == "string" && Sr.current;
|
|
381
391
|
}
|
|
382
|
-
function
|
|
392
|
+
function Jn(s, v) {
|
|
383
393
|
{
|
|
384
394
|
var R = function() {
|
|
385
|
-
|
|
395
|
+
Er || (Er = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
386
396
|
};
|
|
387
397
|
R.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
388
398
|
get: R,
|
|
@@ -390,10 +400,10 @@ function Ro() {
|
|
|
390
400
|
});
|
|
391
401
|
}
|
|
392
402
|
}
|
|
393
|
-
function
|
|
403
|
+
function Xn(s, v) {
|
|
394
404
|
{
|
|
395
405
|
var R = function() {
|
|
396
|
-
|
|
406
|
+
Cr || (Cr = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
397
407
|
};
|
|
398
408
|
R.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
399
409
|
get: R,
|
|
@@ -401,7 +411,7 @@ function Ro() {
|
|
|
401
411
|
});
|
|
402
412
|
}
|
|
403
413
|
}
|
|
404
|
-
var
|
|
414
|
+
var Qn = function(s, v, R, P, H, te, Y) {
|
|
405
415
|
var V = {
|
|
406
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
407
417
|
$$typeof: t,
|
|
@@ -430,12 +440,12 @@ function Ro() {
|
|
|
430
440
|
value: H
|
|
431
441
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
432
442
|
};
|
|
433
|
-
function
|
|
443
|
+
function Zn(s, v, R, P, H) {
|
|
434
444
|
{
|
|
435
445
|
var te, Y = {}, V = null, he = null;
|
|
436
|
-
R !== void 0 && (
|
|
446
|
+
R !== void 0 && (vr(R), V = "" + R), Kn(v) && (vr(v.key), V = "" + v.key), qn(v) && (he = v.ref, Hn(v, H));
|
|
437
447
|
for (te in v)
|
|
438
|
-
tt.call(v, te) && !
|
|
448
|
+
tt.call(v, te) && !Gn.hasOwnProperty(te) && (Y[te] = v[te]);
|
|
439
449
|
if (s && s.defaultProps) {
|
|
440
450
|
var ue = s.defaultProps;
|
|
441
451
|
for (te in ue)
|
|
@@ -443,28 +453,28 @@ function Ro() {
|
|
|
443
453
|
}
|
|
444
454
|
if (V || he) {
|
|
445
455
|
var de = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
446
|
-
V &&
|
|
456
|
+
V && Jn(Y, de), he && Xn(Y, de);
|
|
447
457
|
}
|
|
448
|
-
return
|
|
458
|
+
return Qn(s, V, he, H, P, Sr.current, Y);
|
|
449
459
|
}
|
|
450
460
|
}
|
|
451
|
-
var
|
|
461
|
+
var Wt = S.ReactCurrentOwner, xr = S.ReactDebugCurrentFrame;
|
|
452
462
|
function Ue(s) {
|
|
453
463
|
if (s) {
|
|
454
464
|
var v = s._owner, R = Be(s.type, s._source, v ? v.type : null);
|
|
455
|
-
|
|
465
|
+
xr.setExtraStackFrame(R);
|
|
456
466
|
} else
|
|
457
|
-
|
|
467
|
+
xr.setExtraStackFrame(null);
|
|
458
468
|
}
|
|
459
|
-
var
|
|
460
|
-
|
|
461
|
-
function
|
|
469
|
+
var zt;
|
|
470
|
+
zt = !1;
|
|
471
|
+
function Yt(s) {
|
|
462
472
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
463
473
|
}
|
|
464
|
-
function
|
|
474
|
+
function Tr() {
|
|
465
475
|
{
|
|
466
|
-
if (
|
|
467
|
-
var s = N(
|
|
476
|
+
if (Wt.current) {
|
|
477
|
+
var s = N(Wt.current.type);
|
|
468
478
|
if (s)
|
|
469
479
|
return `
|
|
470
480
|
|
|
@@ -473,13 +483,13 @@ Check the render method of \`` + s + "`.";
|
|
|
473
483
|
return "";
|
|
474
484
|
}
|
|
475
485
|
}
|
|
476
|
-
function
|
|
486
|
+
function eo(s) {
|
|
477
487
|
return "";
|
|
478
488
|
}
|
|
479
|
-
var
|
|
480
|
-
function
|
|
489
|
+
var wr = {};
|
|
490
|
+
function to(s) {
|
|
481
491
|
{
|
|
482
|
-
var v =
|
|
492
|
+
var v = Tr();
|
|
483
493
|
if (!v) {
|
|
484
494
|
var R = typeof s == "string" ? s : s.displayName || s.name;
|
|
485
495
|
R && (v = `
|
|
@@ -489,39 +499,39 @@ Check the top-level render call using <` + R + ">.");
|
|
|
489
499
|
return v;
|
|
490
500
|
}
|
|
491
501
|
}
|
|
492
|
-
function
|
|
502
|
+
function _r(s, v) {
|
|
493
503
|
{
|
|
494
504
|
if (!s._store || s._store.validated || s.key != null)
|
|
495
505
|
return;
|
|
496
506
|
s._store.validated = !0;
|
|
497
|
-
var R =
|
|
498
|
-
if (
|
|
507
|
+
var R = to(v);
|
|
508
|
+
if (wr[R])
|
|
499
509
|
return;
|
|
500
|
-
|
|
510
|
+
wr[R] = !0;
|
|
501
511
|
var P = "";
|
|
502
|
-
s && s._owner && s._owner !==
|
|
512
|
+
s && s._owner && s._owner !== Wt.current && (P = " It was passed a child from " + N(s._owner.type) + "."), Ue(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, P), Ue(null);
|
|
503
513
|
}
|
|
504
514
|
}
|
|
505
|
-
function
|
|
515
|
+
function Or(s, v) {
|
|
506
516
|
{
|
|
507
517
|
if (typeof s != "object")
|
|
508
518
|
return;
|
|
509
|
-
if (
|
|
519
|
+
if (Vt(s))
|
|
510
520
|
for (var R = 0; R < s.length; R++) {
|
|
511
521
|
var P = s[R];
|
|
512
|
-
|
|
522
|
+
Yt(P) && _r(P, v);
|
|
513
523
|
}
|
|
514
|
-
else if (
|
|
524
|
+
else if (Yt(s))
|
|
515
525
|
s._store && (s._store.validated = !0);
|
|
516
526
|
else if (s) {
|
|
517
527
|
var H = T(s);
|
|
518
528
|
if (typeof H == "function" && H !== s.entries)
|
|
519
529
|
for (var te = H.call(s), Y; !(Y = te.next()).done; )
|
|
520
|
-
|
|
530
|
+
Yt(Y.value) && _r(Y.value, v);
|
|
521
531
|
}
|
|
522
532
|
}
|
|
523
533
|
}
|
|
524
|
-
function
|
|
534
|
+
function ro(s) {
|
|
525
535
|
{
|
|
526
536
|
var v = s.type;
|
|
527
537
|
if (v == null || typeof v == "string")
|
|
@@ -537,16 +547,16 @@ Check the top-level render call using <` + R + ">.");
|
|
|
537
547
|
return;
|
|
538
548
|
if (R) {
|
|
539
549
|
var P = N(v);
|
|
540
|
-
|
|
541
|
-
} else if (v.PropTypes !== void 0 && !
|
|
542
|
-
|
|
550
|
+
Wn(R, s.props, "prop", P, s);
|
|
551
|
+
} else if (v.PropTypes !== void 0 && !zt) {
|
|
552
|
+
zt = !0;
|
|
543
553
|
var H = N(v);
|
|
544
554
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
545
555
|
}
|
|
546
556
|
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
547
557
|
}
|
|
548
558
|
}
|
|
549
|
-
function
|
|
559
|
+
function no(s) {
|
|
550
560
|
{
|
|
551
561
|
for (var v = Object.keys(s.props), R = 0; R < v.length; R++) {
|
|
552
562
|
var P = v[R];
|
|
@@ -558,67 +568,67 @@ Check the top-level render call using <` + R + ">.");
|
|
|
558
568
|
s.ref !== null && (Ue(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
|
|
559
569
|
}
|
|
560
570
|
}
|
|
561
|
-
var
|
|
562
|
-
function
|
|
571
|
+
var Rr = {};
|
|
572
|
+
function Ar(s, v, R, P, H, te) {
|
|
563
573
|
{
|
|
564
574
|
var Y = a(s);
|
|
565
575
|
if (!Y) {
|
|
566
576
|
var V = "";
|
|
567
577
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
568
|
-
var he =
|
|
569
|
-
he ? V += he : V +=
|
|
578
|
+
var he = eo();
|
|
579
|
+
he ? V += he : V += Tr();
|
|
570
580
|
var ue;
|
|
571
|
-
s === null ? ue = "null" :
|
|
581
|
+
s === null ? ue = "null" : Vt(s) ? ue = "array" : s !== void 0 && s.$$typeof === t ? (ue = "<" + (N(s.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, V);
|
|
572
582
|
}
|
|
573
|
-
var de =
|
|
583
|
+
var de = Zn(s, v, R, H, te);
|
|
574
584
|
if (de == null)
|
|
575
585
|
return de;
|
|
576
586
|
if (Y) {
|
|
577
587
|
var Ce = v.children;
|
|
578
588
|
if (Ce !== void 0)
|
|
579
589
|
if (P)
|
|
580
|
-
if (
|
|
590
|
+
if (Vt(Ce)) {
|
|
581
591
|
for (var Ge = 0; Ge < Ce.length; Ge++)
|
|
582
|
-
|
|
592
|
+
Or(Ce[Ge], s);
|
|
583
593
|
Object.freeze && Object.freeze(Ce);
|
|
584
594
|
} else
|
|
585
595
|
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
586
596
|
else
|
|
587
|
-
|
|
597
|
+
Or(Ce, s);
|
|
588
598
|
}
|
|
589
599
|
if (tt.call(v, "key")) {
|
|
590
|
-
var Fe = N(s), ge = Object.keys(v).filter(function(
|
|
591
|
-
return
|
|
592
|
-
}),
|
|
593
|
-
if (!
|
|
594
|
-
var
|
|
600
|
+
var Fe = N(s), ge = Object.keys(v).filter(function(lo) {
|
|
601
|
+
return lo !== "key";
|
|
602
|
+
}), Ut = ge.length > 0 ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Rr[Fe + Ut]) {
|
|
604
|
+
var co = ge.length > 0 ? "{" + ge.join(": ..., ") + ": ...}" : "{}";
|
|
595
605
|
w(`A props object containing a "key" prop is being spread into JSX:
|
|
596
606
|
let props = %s;
|
|
597
607
|
<%s {...props} />
|
|
598
608
|
React keys must be passed directly to JSX without using spread:
|
|
599
609
|
let props = %s;
|
|
600
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, Ut, Fe, co, Fe), Rr[Fe + Ut] = !0;
|
|
601
611
|
}
|
|
602
612
|
}
|
|
603
|
-
return s === n ?
|
|
613
|
+
return s === n ? no(de) : ro(de), de;
|
|
604
614
|
}
|
|
605
615
|
}
|
|
606
|
-
function
|
|
607
|
-
return
|
|
616
|
+
function oo(s, v, R) {
|
|
617
|
+
return Ar(s, v, R, !0);
|
|
608
618
|
}
|
|
609
|
-
function
|
|
610
|
-
return
|
|
619
|
+
function io(s, v, R) {
|
|
620
|
+
return Ar(s, v, R, !1);
|
|
611
621
|
}
|
|
612
|
-
var
|
|
613
|
-
|
|
614
|
-
})()),
|
|
622
|
+
var ao = io, so = oo;
|
|
623
|
+
ot.Fragment = n, ot.jsx = ao, ot.jsxs = so;
|
|
624
|
+
})()), ot;
|
|
615
625
|
}
|
|
616
|
-
var
|
|
617
|
-
function
|
|
618
|
-
return
|
|
626
|
+
var Nr;
|
|
627
|
+
function $o() {
|
|
628
|
+
return Nr || (Nr = 1, process.env.NODE_ENV === "production" ? yt.exports = Ao() : yt.exports = ko()), yt.exports;
|
|
619
629
|
}
|
|
620
|
-
var x =
|
|
621
|
-
function
|
|
630
|
+
var x = $o();
|
|
631
|
+
function Po(e) {
|
|
622
632
|
const { client: t, tenantId: r, subscriberId: n, filters: o, pollInterval: i, autoFetch: c = !0 } = e, [u, f] = Te([]), [d, m] = Te(c), [p, h] = Te(null), y = $e(async () => {
|
|
623
633
|
try {
|
|
624
634
|
m(!0), h(null);
|
|
@@ -678,16 +688,16 @@ function ko(e) {
|
|
|
678
688
|
deleteNotification: T
|
|
679
689
|
};
|
|
680
690
|
}
|
|
681
|
-
const
|
|
682
|
-
function
|
|
691
|
+
const Io = "edusight:notification-widget:context";
|
|
692
|
+
function jo(e) {
|
|
683
693
|
try {
|
|
684
694
|
if (typeof window > "u" || !window.localStorage)
|
|
685
695
|
return;
|
|
686
|
-
window.localStorage.setItem(
|
|
696
|
+
window.localStorage.setItem(Io, JSON.stringify(e));
|
|
687
697
|
} catch {
|
|
688
698
|
}
|
|
689
699
|
}
|
|
690
|
-
class
|
|
700
|
+
class No {
|
|
691
701
|
constructor(t) {
|
|
692
702
|
this.listeners = /* @__PURE__ */ new Map();
|
|
693
703
|
const r = {
|
|
@@ -705,8 +715,8 @@ class Io {
|
|
|
705
715
|
tenantId: t.tenantId,
|
|
706
716
|
subscriberId: t.subscriberId,
|
|
707
717
|
environmentId: t.environmentId
|
|
708
|
-
}, this.socketClient = new
|
|
709
|
-
|
|
718
|
+
}, this.socketClient = new Co(r), this.socketClient.on("connect", () => {
|
|
719
|
+
jo({
|
|
710
720
|
environmentId: t.environmentId,
|
|
711
721
|
subscriberId: t.subscriberId,
|
|
712
722
|
tenantId: t.tenantId
|
|
@@ -754,26 +764,26 @@ class Io {
|
|
|
754
764
|
});
|
|
755
765
|
}
|
|
756
766
|
normalizeNotification(t) {
|
|
757
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), n = t.channel ||
|
|
767
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), n = t.channel || xo.IN_APP, o = t.renderedContent || {
|
|
758
768
|
inApp: {
|
|
759
769
|
title: t.title,
|
|
760
770
|
message: t.message,
|
|
761
771
|
action: t.action,
|
|
762
772
|
icon: t.icon
|
|
763
773
|
}
|
|
764
|
-
}, i = t.category ??
|
|
774
|
+
}, i = t.category ?? To.REAL_TIME;
|
|
765
775
|
return {
|
|
766
776
|
notificationId: t.notificationId,
|
|
767
777
|
tenantId: this.context.tenantId,
|
|
768
778
|
subscriberId: this.context.subscriberId,
|
|
769
779
|
templateId: t.templateId ?? "",
|
|
770
|
-
type: t.type ||
|
|
780
|
+
type: t.type || _o.CUSTOM,
|
|
771
781
|
category: i,
|
|
772
782
|
channels: [n],
|
|
773
783
|
payload: t.data || {},
|
|
774
784
|
renderedContent: o,
|
|
775
|
-
status:
|
|
776
|
-
priority:
|
|
785
|
+
status: Sn.PENDING,
|
|
786
|
+
priority: wo.MEDIUM,
|
|
777
787
|
scheduledFor: void 0,
|
|
778
788
|
sentAt: void 0,
|
|
779
789
|
retryCount: void 0,
|
|
@@ -785,7 +795,7 @@ class Io {
|
|
|
785
795
|
};
|
|
786
796
|
}
|
|
787
797
|
}
|
|
788
|
-
function
|
|
798
|
+
function Do(e) {
|
|
789
799
|
const {
|
|
790
800
|
client: t,
|
|
791
801
|
tenantId: r,
|
|
@@ -793,11 +803,11 @@ function jo(e) {
|
|
|
793
803
|
environmentId: o,
|
|
794
804
|
enabled: i = !0,
|
|
795
805
|
autoAck: c = !1
|
|
796
|
-
} = e, [u, f] = Te(!1), [d, m] = Te(null), p =
|
|
806
|
+
} = e, [u, f] = Te(!1), [d, m] = Te(null), p = uo(null);
|
|
797
807
|
Ze(() => {
|
|
798
808
|
if (!i)
|
|
799
809
|
return;
|
|
800
|
-
const S = new
|
|
810
|
+
const S = new No({
|
|
801
811
|
client: t,
|
|
802
812
|
tenantId: r,
|
|
803
813
|
subscriberId: n,
|
|
@@ -843,7 +853,7 @@ function jo(e) {
|
|
|
843
853
|
error: d
|
|
844
854
|
};
|
|
845
855
|
}
|
|
846
|
-
function
|
|
856
|
+
function Mo(e) {
|
|
847
857
|
const {
|
|
848
858
|
client: t,
|
|
849
859
|
tenantId: r,
|
|
@@ -865,7 +875,7 @@ function No(e) {
|
|
|
865
875
|
environmentId: o,
|
|
866
876
|
enabled: !0,
|
|
867
877
|
autoAck: u
|
|
868
|
-
}, m =
|
|
878
|
+
}, m = Po(f), p = Do(d), [h, y] = Te(m.notifications);
|
|
869
879
|
return Ze(() => {
|
|
870
880
|
y(m.notifications);
|
|
871
881
|
}, [m.notifications]), Ze(() => {
|
|
@@ -874,7 +884,7 @@ function No(e) {
|
|
|
874
884
|
}), l = p.onAck((T) => {
|
|
875
885
|
y(
|
|
876
886
|
(S) => S.map(
|
|
877
|
-
(w) => w.notificationId === T.notificationId ? { ...w, status:
|
|
887
|
+
(w) => w.notificationId === T.notificationId ? { ...w, status: Sn.DELIVERED } : w
|
|
878
888
|
)
|
|
879
889
|
);
|
|
880
890
|
});
|
|
@@ -892,11 +902,11 @@ function No(e) {
|
|
|
892
902
|
deleteNotification: m.deleteNotification
|
|
893
903
|
};
|
|
894
904
|
}
|
|
895
|
-
var
|
|
896
|
-
var
|
|
897
|
-
function
|
|
898
|
-
if (
|
|
899
|
-
|
|
905
|
+
var bt = { exports: {} }, Q = {};
|
|
906
|
+
var Dr;
|
|
907
|
+
function Bo() {
|
|
908
|
+
if (Dr) return Q;
|
|
909
|
+
Dr = 1;
|
|
900
910
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), c = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), f = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.view_transition"), y = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
901
911
|
function b(l) {
|
|
902
912
|
if (typeof l == "object" && l !== null) {
|
|
@@ -958,9 +968,9 @@ function Do() {
|
|
|
958
968
|
}, Q.typeOf = b, Q;
|
|
959
969
|
}
|
|
960
970
|
var Z = {};
|
|
961
|
-
var
|
|
962
|
-
function
|
|
963
|
-
return
|
|
971
|
+
var Mr;
|
|
972
|
+
function Fo() {
|
|
973
|
+
return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
964
974
|
function e(l) {
|
|
965
975
|
if (typeof l == "object" && l !== null) {
|
|
966
976
|
var T = l.$$typeof;
|
|
@@ -1022,23 +1032,23 @@ function Mo() {
|
|
|
1022
1032
|
}, Z.typeOf = e;
|
|
1023
1033
|
})()), Z;
|
|
1024
1034
|
}
|
|
1025
|
-
var
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1035
|
+
var Br;
|
|
1036
|
+
function Lo() {
|
|
1037
|
+
return Br || (Br = 1, process.env.NODE_ENV === "production" ? bt.exports = /* @__PURE__ */ Bo() : bt.exports = /* @__PURE__ */ Fo()), bt.exports;
|
|
1028
1038
|
}
|
|
1029
|
-
var
|
|
1039
|
+
var _t = /* @__PURE__ */ Lo();
|
|
1030
1040
|
function Ae(e) {
|
|
1031
1041
|
if (typeof e != "object" || e === null)
|
|
1032
1042
|
return !1;
|
|
1033
1043
|
const t = Object.getPrototypeOf(e);
|
|
1034
1044
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1035
1045
|
}
|
|
1036
|
-
function
|
|
1037
|
-
if (/* @__PURE__ */ Ie.isValidElement(e) ||
|
|
1046
|
+
function En(e) {
|
|
1047
|
+
if (/* @__PURE__ */ Ie.isValidElement(e) || _t.isValidElementType(e) || !Ae(e))
|
|
1038
1048
|
return e;
|
|
1039
1049
|
const t = {};
|
|
1040
1050
|
return Object.keys(e).forEach((r) => {
|
|
1041
|
-
t[r] =
|
|
1051
|
+
t[r] = En(e[r]);
|
|
1042
1052
|
}), t;
|
|
1043
1053
|
}
|
|
1044
1054
|
function Se(e, t, r = {
|
|
@@ -1048,15 +1058,15 @@ function Se(e, t, r = {
|
|
|
1048
1058
|
...e
|
|
1049
1059
|
} : e;
|
|
1050
1060
|
return Ae(e) && Ae(t) && Object.keys(t).forEach((o) => {
|
|
1051
|
-
/* @__PURE__ */ Ie.isValidElement(t[o]) ||
|
|
1052
|
-
Object.prototype.hasOwnProperty.call(e, o) && Ae(e[o]) ? n[o] = Se(e[o], t[o], r) : r.clone ? n[o] = Ae(t[o]) ?
|
|
1061
|
+
/* @__PURE__ */ Ie.isValidElement(t[o]) || _t.isValidElementType(t[o]) ? n[o] = t[o] : Ae(t[o]) && // Avoid prototype pollution
|
|
1062
|
+
Object.prototype.hasOwnProperty.call(e, o) && Ae(e[o]) ? n[o] = Se(e[o], t[o], r) : r.clone ? n[o] = Ae(t[o]) ? En(t[o]) : t[o] : n[o] = t[o];
|
|
1053
1063
|
}), n;
|
|
1054
1064
|
}
|
|
1055
|
-
var
|
|
1056
|
-
var
|
|
1057
|
-
function
|
|
1058
|
-
if (
|
|
1059
|
-
|
|
1065
|
+
var vt = { exports: {} }, St = { exports: {} }, J = {};
|
|
1066
|
+
var Fr;
|
|
1067
|
+
function Vo() {
|
|
1068
|
+
if (Fr) return J;
|
|
1069
|
+
Fr = 1;
|
|
1060
1070
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1061
1071
|
function A(E) {
|
|
1062
1072
|
if (typeof E == "object" && E !== null) {
|
|
@@ -1120,9 +1130,9 @@ function Fo() {
|
|
|
1120
1130
|
}, J.typeOf = A, J;
|
|
1121
1131
|
}
|
|
1122
1132
|
var X = {};
|
|
1123
|
-
var
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1133
|
+
var Lr;
|
|
1134
|
+
function Wo() {
|
|
1135
|
+
return Lr || (Lr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1126
1136
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1127
1137
|
function A(_) {
|
|
1128
1138
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -1203,14 +1213,14 @@ function Lo() {
|
|
|
1203
1213
|
X.AsyncMode = E, X.ConcurrentMode = q, X.ContextConsumer = oe, X.ContextProvider = ee, X.Element = W, X.ForwardRef = a, X.Fragment = O, X.Lazy = U, X.Memo = N, X.Portal = le, X.Profiler = ae, X.StrictMode = pe, X.Suspense = be, X.isAsyncMode = ze, X.isConcurrentMode = C, X.isContextConsumer = k, X.isContextProvider = B, X.isElement = M, X.isForwardRef = I, X.isFragment = z, X.isLazy = j, X.isMemo = D, X.isPortal = F, X.isProfiler = G, X.isStrictMode = L, X.isSuspense = me, X.isValidElementType = A, X.typeOf = $;
|
|
1204
1214
|
})()), X;
|
|
1205
1215
|
}
|
|
1206
|
-
var
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1216
|
+
var Vr;
|
|
1217
|
+
function Cn() {
|
|
1218
|
+
return Vr || (Vr = 1, process.env.NODE_ENV === "production" ? St.exports = Vo() : St.exports = Wo()), St.exports;
|
|
1209
1219
|
}
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1212
|
-
if (
|
|
1213
|
-
|
|
1220
|
+
var Gt, Wr;
|
|
1221
|
+
function zo() {
|
|
1222
|
+
if (Wr) return Gt;
|
|
1223
|
+
Wr = 1;
|
|
1214
1224
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
1215
1225
|
function n(i) {
|
|
1216
1226
|
if (i == null)
|
|
@@ -1239,7 +1249,7 @@ function Vo() {
|
|
|
1239
1249
|
return !1;
|
|
1240
1250
|
}
|
|
1241
1251
|
}
|
|
1242
|
-
return
|
|
1252
|
+
return Gt = o() ? Object.assign : function(i, c) {
|
|
1243
1253
|
for (var u, f = n(i), d, m = 1; m < arguments.length; m++) {
|
|
1244
1254
|
u = Object(arguments[m]);
|
|
1245
1255
|
for (var p in u)
|
|
@@ -1251,27 +1261,27 @@ function Vo() {
|
|
|
1251
1261
|
}
|
|
1252
1262
|
}
|
|
1253
1263
|
return f;
|
|
1254
|
-
},
|
|
1264
|
+
}, Gt;
|
|
1255
1265
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1258
|
-
if (
|
|
1259
|
-
|
|
1266
|
+
var qt, zr;
|
|
1267
|
+
function sr() {
|
|
1268
|
+
if (zr) return qt;
|
|
1269
|
+
zr = 1;
|
|
1260
1270
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1261
|
-
return
|
|
1271
|
+
return qt = e, qt;
|
|
1262
1272
|
}
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1265
|
-
return
|
|
1273
|
+
var Kt, Yr;
|
|
1274
|
+
function xn() {
|
|
1275
|
+
return Yr || (Yr = 1, Kt = Function.call.bind(Object.prototype.hasOwnProperty)), Kt;
|
|
1266
1276
|
}
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1269
|
-
if (
|
|
1270
|
-
|
|
1277
|
+
var Ht, Ur;
|
|
1278
|
+
function Yo() {
|
|
1279
|
+
if (Ur) return Ht;
|
|
1280
|
+
Ur = 1;
|
|
1271
1281
|
var e = function() {
|
|
1272
1282
|
};
|
|
1273
1283
|
if (process.env.NODE_ENV !== "production") {
|
|
1274
|
-
var t = /* @__PURE__ */
|
|
1284
|
+
var t = /* @__PURE__ */ sr(), r = {}, n = /* @__PURE__ */ xn();
|
|
1275
1285
|
e = function(i) {
|
|
1276
1286
|
var c = "Warning: " + i;
|
|
1277
1287
|
typeof console < "u" && console.error(c);
|
|
@@ -1311,13 +1321,13 @@ function Wo() {
|
|
|
1311
1321
|
}
|
|
1312
1322
|
return o.resetWarningCache = function() {
|
|
1313
1323
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
1314
|
-
},
|
|
1324
|
+
}, Ht = o, Ht;
|
|
1315
1325
|
}
|
|
1316
|
-
var
|
|
1317
|
-
function
|
|
1318
|
-
if (
|
|
1319
|
-
|
|
1320
|
-
var e =
|
|
1326
|
+
var Jt, Gr;
|
|
1327
|
+
function Uo() {
|
|
1328
|
+
if (Gr) return Jt;
|
|
1329
|
+
Gr = 1;
|
|
1330
|
+
var e = Cn(), t = zo(), r = /* @__PURE__ */ sr(), n = /* @__PURE__ */ xn(), o = /* @__PURE__ */ Yo(), i = function() {
|
|
1321
1331
|
};
|
|
1322
1332
|
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
1323
1333
|
var f = "Warning: " + u;
|
|
@@ -1330,7 +1340,7 @@ function zo() {
|
|
|
1330
1340
|
function c() {
|
|
1331
1341
|
return null;
|
|
1332
1342
|
}
|
|
1333
|
-
return
|
|
1343
|
+
return Jt = function(u, f) {
|
|
1334
1344
|
var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
1335
1345
|
function p(C) {
|
|
1336
1346
|
var k = C && (d && C[d] || C[m]);
|
|
@@ -1632,18 +1642,18 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
1632
1642
|
return !C.constructor || !C.constructor.name ? h : C.constructor.name;
|
|
1633
1643
|
}
|
|
1634
1644
|
return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
|
|
1635
|
-
},
|
|
1645
|
+
}, Jt;
|
|
1636
1646
|
}
|
|
1637
|
-
var
|
|
1638
|
-
function
|
|
1639
|
-
if (
|
|
1640
|
-
|
|
1641
|
-
var e = /* @__PURE__ */
|
|
1647
|
+
var Xt, qr;
|
|
1648
|
+
function Go() {
|
|
1649
|
+
if (qr) return Xt;
|
|
1650
|
+
qr = 1;
|
|
1651
|
+
var e = /* @__PURE__ */ sr();
|
|
1642
1652
|
function t() {
|
|
1643
1653
|
}
|
|
1644
1654
|
function r() {
|
|
1645
1655
|
}
|
|
1646
|
-
return r.resetWarningCache = t,
|
|
1656
|
+
return r.resetWarningCache = t, Xt = function() {
|
|
1647
1657
|
function n(c, u, f, d, m, p) {
|
|
1648
1658
|
if (p !== e) {
|
|
1649
1659
|
var h = new Error(
|
|
@@ -1680,43 +1690,43 @@ function Yo() {
|
|
|
1680
1690
|
resetWarningCache: t
|
|
1681
1691
|
};
|
|
1682
1692
|
return i.PropTypes = i, i;
|
|
1683
|
-
},
|
|
1684
|
-
}
|
|
1685
|
-
var
|
|
1686
|
-
function
|
|
1687
|
-
if (
|
|
1688
|
-
if (
|
|
1689
|
-
var e =
|
|
1690
|
-
|
|
1693
|
+
}, Xt;
|
|
1694
|
+
}
|
|
1695
|
+
var Kr;
|
|
1696
|
+
function qo() {
|
|
1697
|
+
if (Kr) return vt.exports;
|
|
1698
|
+
if (Kr = 1, process.env.NODE_ENV !== "production") {
|
|
1699
|
+
var e = Cn(), t = !0;
|
|
1700
|
+
vt.exports = /* @__PURE__ */ Uo()(e.isElement, t);
|
|
1691
1701
|
} else
|
|
1692
|
-
|
|
1693
|
-
return
|
|
1702
|
+
vt.exports = /* @__PURE__ */ Go()();
|
|
1703
|
+
return vt.exports;
|
|
1694
1704
|
}
|
|
1695
|
-
var
|
|
1696
|
-
const K = /* @__PURE__ */
|
|
1705
|
+
var Ko = /* @__PURE__ */ qo();
|
|
1706
|
+
const K = /* @__PURE__ */ Ro(Ko);
|
|
1697
1707
|
function je(e, ...t) {
|
|
1698
1708
|
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
1699
1709
|
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
1700
1710
|
}
|
|
1701
|
-
function
|
|
1711
|
+
function Tn(e, t = "") {
|
|
1702
1712
|
return e.displayName || e.name || t;
|
|
1703
1713
|
}
|
|
1704
|
-
function
|
|
1705
|
-
const n =
|
|
1714
|
+
function Hr(e, t, r) {
|
|
1715
|
+
const n = Tn(t);
|
|
1706
1716
|
return e.displayName || (n !== "" ? `${r}(${n})` : r);
|
|
1707
1717
|
}
|
|
1708
|
-
function
|
|
1718
|
+
function Ho(e) {
|
|
1709
1719
|
if (e != null) {
|
|
1710
1720
|
if (typeof e == "string")
|
|
1711
1721
|
return e;
|
|
1712
1722
|
if (typeof e == "function")
|
|
1713
|
-
return
|
|
1723
|
+
return Tn(e, "Component");
|
|
1714
1724
|
if (typeof e == "object")
|
|
1715
1725
|
switch (e.$$typeof) {
|
|
1716
|
-
case
|
|
1717
|
-
return
|
|
1718
|
-
case
|
|
1719
|
-
return
|
|
1726
|
+
case _t.ForwardRef:
|
|
1727
|
+
return Hr(e, e.render, "ForwardRef");
|
|
1728
|
+
case _t.Memo:
|
|
1729
|
+
return Hr(e, e.type, "memo");
|
|
1720
1730
|
default:
|
|
1721
1731
|
return;
|
|
1722
1732
|
}
|
|
@@ -1727,7 +1737,7 @@ function We(e) {
|
|
|
1727
1737
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : je(7));
|
|
1728
1738
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1729
1739
|
}
|
|
1730
|
-
function
|
|
1740
|
+
function rr(e, t) {
|
|
1731
1741
|
const r = {
|
|
1732
1742
|
...t
|
|
1733
1743
|
};
|
|
@@ -1752,14 +1762,14 @@ function tr(e, t) {
|
|
|
1752
1762
|
for (const u in i)
|
|
1753
1763
|
if (Object.prototype.hasOwnProperty.call(i, u)) {
|
|
1754
1764
|
const f = u;
|
|
1755
|
-
r[o][f] =
|
|
1765
|
+
r[o][f] = rr(i[f], c[f]);
|
|
1756
1766
|
}
|
|
1757
1767
|
}
|
|
1758
1768
|
} else r[o] === void 0 && (r[o] = e[o]);
|
|
1759
1769
|
}
|
|
1760
1770
|
return r;
|
|
1761
1771
|
}
|
|
1762
|
-
function
|
|
1772
|
+
function Jo(e, t, r = void 0) {
|
|
1763
1773
|
const n = {};
|
|
1764
1774
|
for (const o in e) {
|
|
1765
1775
|
const i = e[o];
|
|
@@ -1772,8 +1782,8 @@ function Ko(e, t, r = void 0) {
|
|
|
1772
1782
|
}
|
|
1773
1783
|
return n;
|
|
1774
1784
|
}
|
|
1775
|
-
const
|
|
1776
|
-
let e =
|
|
1785
|
+
const Jr = (e) => e, Xo = () => {
|
|
1786
|
+
let e = Jr;
|
|
1777
1787
|
return {
|
|
1778
1788
|
configure(t) {
|
|
1779
1789
|
e = t;
|
|
@@ -1782,10 +1792,10 @@ const Kr = (e) => e, Ho = () => {
|
|
|
1782
1792
|
return e(t);
|
|
1783
1793
|
},
|
|
1784
1794
|
reset() {
|
|
1785
|
-
e =
|
|
1795
|
+
e = Jr;
|
|
1786
1796
|
}
|
|
1787
1797
|
};
|
|
1788
|
-
},
|
|
1798
|
+
}, Qo = Xo(), Zo = {
|
|
1789
1799
|
active: "active",
|
|
1790
1800
|
checked: "checked",
|
|
1791
1801
|
completed: "completed",
|
|
@@ -1799,40 +1809,40 @@ const Kr = (e) => e, Ho = () => {
|
|
|
1799
1809
|
required: "required",
|
|
1800
1810
|
selected: "selected"
|
|
1801
1811
|
};
|
|
1802
|
-
function
|
|
1803
|
-
const n =
|
|
1804
|
-
return n ? `${r}-${n}` : `${
|
|
1812
|
+
function cr(e, t, r = "Mui") {
|
|
1813
|
+
const n = Zo[t];
|
|
1814
|
+
return n ? `${r}-${n}` : `${Qo.generate(e)}-${t}`;
|
|
1805
1815
|
}
|
|
1806
|
-
function
|
|
1816
|
+
function ei(e, t, r = "Mui") {
|
|
1807
1817
|
const n = {};
|
|
1808
1818
|
return t.forEach((o) => {
|
|
1809
|
-
n[o] =
|
|
1819
|
+
n[o] = cr(e, o, r);
|
|
1810
1820
|
}), n;
|
|
1811
1821
|
}
|
|
1812
|
-
function
|
|
1822
|
+
function ti(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
1813
1823
|
return Math.max(t, Math.min(e, r));
|
|
1814
1824
|
}
|
|
1815
|
-
function
|
|
1825
|
+
function wn(e) {
|
|
1816
1826
|
var t, r, n = "";
|
|
1817
1827
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
1818
1828
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1819
1829
|
var o = e.length;
|
|
1820
|
-
for (t = 0; t < o; t++) e[t] && (r =
|
|
1830
|
+
for (t = 0; t < o; t++) e[t] && (r = wn(e[t])) && (n && (n += " "), n += r);
|
|
1821
1831
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
1822
1832
|
return n;
|
|
1823
1833
|
}
|
|
1824
|
-
function
|
|
1825
|
-
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t =
|
|
1834
|
+
function ri() {
|
|
1835
|
+
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = wn(e)) && (n && (n += " "), n += t);
|
|
1826
1836
|
return n;
|
|
1827
1837
|
}
|
|
1828
|
-
function
|
|
1838
|
+
function ct(e, t) {
|
|
1829
1839
|
return t ? Se(e, t, {
|
|
1830
1840
|
clone: !1
|
|
1831
1841
|
// No need to clone deep, it's way faster.
|
|
1832
1842
|
}) : e;
|
|
1833
1843
|
}
|
|
1834
1844
|
const De = process.env.NODE_ENV !== "production" ? K.oneOfType([K.number, K.string, K.object, K.array]) : {};
|
|
1835
|
-
function
|
|
1845
|
+
function Xr(e, t) {
|
|
1836
1846
|
if (!e.containerQueries)
|
|
1837
1847
|
return t;
|
|
1838
1848
|
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
@@ -1846,10 +1856,10 @@ function Hr(e, t) {
|
|
|
1846
1856
|
...t
|
|
1847
1857
|
}) : t;
|
|
1848
1858
|
}
|
|
1849
|
-
function
|
|
1859
|
+
function ni(e, t) {
|
|
1850
1860
|
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
|
|
1851
1861
|
}
|
|
1852
|
-
function
|
|
1862
|
+
function oi(e, t) {
|
|
1853
1863
|
const r = t.match(/^@([^/]+)?\/?(.+)?$/);
|
|
1854
1864
|
if (!r) {
|
|
1855
1865
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -1860,7 +1870,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : je(18, `(${t})`));
|
|
|
1860
1870
|
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
|
|
1861
1871
|
return e.containerQueries(o).up(i);
|
|
1862
1872
|
}
|
|
1863
|
-
function
|
|
1873
|
+
function ii(e) {
|
|
1864
1874
|
const t = (i, c) => i.replace("@media", c ? `@container ${c}` : "@container");
|
|
1865
1875
|
function r(i, c) {
|
|
1866
1876
|
i.up = (...u) => t(e.breakpoints.up(...u), c), i.down = (...u) => t(e.breakpoints.down(...u), c), i.between = (...u) => t(e.breakpoints.between(...u), c), i.only = (...u) => t(e.breakpoints.only(...u), c), i.not = (...u) => {
|
|
@@ -1874,7 +1884,7 @@ function ni(e) {
|
|
|
1874
1884
|
containerQueries: o
|
|
1875
1885
|
};
|
|
1876
1886
|
}
|
|
1877
|
-
const
|
|
1887
|
+
const kt = {
|
|
1878
1888
|
xs: 0,
|
|
1879
1889
|
// phone
|
|
1880
1890
|
sm: 600,
|
|
@@ -1885,15 +1895,15 @@ const At = {
|
|
|
1885
1895
|
// desktop
|
|
1886
1896
|
xl: 1536
|
|
1887
1897
|
// large screen
|
|
1888
|
-
},
|
|
1898
|
+
}, Qr = {
|
|
1889
1899
|
// Sorted ASC by size. That's important.
|
|
1890
1900
|
// It can't be configured as it's used statically for propTypes.
|
|
1891
1901
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1892
|
-
up: (e) => `@media (min-width:${
|
|
1893
|
-
},
|
|
1902
|
+
up: (e) => `@media (min-width:${kt[e]}px)`
|
|
1903
|
+
}, ai = {
|
|
1894
1904
|
containerQueries: (e) => ({
|
|
1895
1905
|
up: (t) => {
|
|
1896
|
-
let r = typeof t == "number" ? t :
|
|
1906
|
+
let r = typeof t == "number" ? t : kt[t] || t;
|
|
1897
1907
|
return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
|
|
1898
1908
|
}
|
|
1899
1909
|
})
|
|
@@ -1901,16 +1911,16 @@ const At = {
|
|
|
1901
1911
|
function ke(e, t, r) {
|
|
1902
1912
|
const n = e.theme || {};
|
|
1903
1913
|
if (Array.isArray(t)) {
|
|
1904
|
-
const i = n.breakpoints ||
|
|
1914
|
+
const i = n.breakpoints || Qr;
|
|
1905
1915
|
return t.reduce((c, u, f) => (c[i.up(i.keys[f])] = r(t[f]), c), {});
|
|
1906
1916
|
}
|
|
1907
1917
|
if (typeof t == "object") {
|
|
1908
|
-
const i = n.breakpoints ||
|
|
1918
|
+
const i = n.breakpoints || Qr;
|
|
1909
1919
|
return Object.keys(t).reduce((c, u) => {
|
|
1910
|
-
if (
|
|
1911
|
-
const f =
|
|
1920
|
+
if (ni(i.keys, u)) {
|
|
1921
|
+
const f = oi(n.containerQueries ? n : ai, u);
|
|
1912
1922
|
f && (c[f] = r(t[u], u));
|
|
1913
|
-
} else if (Object.keys(i.values ||
|
|
1923
|
+
} else if (Object.keys(i.values || kt).includes(u)) {
|
|
1914
1924
|
const f = i.up(u);
|
|
1915
1925
|
c[f] = r(t[u], u);
|
|
1916
1926
|
} else {
|
|
@@ -1922,19 +1932,19 @@ function ke(e, t, r) {
|
|
|
1922
1932
|
}
|
|
1923
1933
|
return r(t);
|
|
1924
1934
|
}
|
|
1925
|
-
function
|
|
1935
|
+
function si(e = {}) {
|
|
1926
1936
|
return e.keys?.reduce((r, n) => {
|
|
1927
1937
|
const o = e.up(n);
|
|
1928
1938
|
return r[o] = {}, r;
|
|
1929
1939
|
}, {}) || {};
|
|
1930
1940
|
}
|
|
1931
|
-
function
|
|
1941
|
+
function Zr(e, t) {
|
|
1932
1942
|
return e.reduce((r, n) => {
|
|
1933
1943
|
const o = r[n];
|
|
1934
1944
|
return (!o || Object.keys(o).length === 0) && delete r[n], r;
|
|
1935
1945
|
}, t);
|
|
1936
1946
|
}
|
|
1937
|
-
function
|
|
1947
|
+
function $t(e, t, r = !0) {
|
|
1938
1948
|
if (!t || typeof t != "string")
|
|
1939
1949
|
return null;
|
|
1940
1950
|
if (e && e.vars && r) {
|
|
@@ -1944,9 +1954,9 @@ function kt(e, t, r = !0) {
|
|
|
1944
1954
|
}
|
|
1945
1955
|
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1946
1956
|
}
|
|
1947
|
-
function
|
|
1957
|
+
function Ot(e, t, r, n = r) {
|
|
1948
1958
|
let o;
|
|
1949
|
-
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o =
|
|
1959
|
+
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = $t(e, r) || n, t && (o = t(o, n, e)), o;
|
|
1950
1960
|
}
|
|
1951
1961
|
function fe(e) {
|
|
1952
1962
|
const {
|
|
@@ -1957,10 +1967,10 @@ function fe(e) {
|
|
|
1957
1967
|
} = e, i = (c) => {
|
|
1958
1968
|
if (c[t] == null)
|
|
1959
1969
|
return null;
|
|
1960
|
-
const u = c[t], f = c.theme, d =
|
|
1970
|
+
const u = c[t], f = c.theme, d = $t(f, n) || {};
|
|
1961
1971
|
return ke(c, u, (p) => {
|
|
1962
|
-
let h =
|
|
1963
|
-
return p === h && typeof p == "string" && (h =
|
|
1972
|
+
let h = Ot(d, o, p);
|
|
1973
|
+
return p === h && typeof p == "string" && (h = Ot(d, o, `${t}${p === "default" ? "" : We(p)}`, p)), r === !1 ? h : {
|
|
1964
1974
|
[r]: h
|
|
1965
1975
|
};
|
|
1966
1976
|
});
|
|
@@ -1969,36 +1979,36 @@ function fe(e) {
|
|
|
1969
1979
|
[t]: De
|
|
1970
1980
|
} : {}, i.filterProps = [t], i;
|
|
1971
1981
|
}
|
|
1972
|
-
function
|
|
1982
|
+
function ci(e) {
|
|
1973
1983
|
const t = {};
|
|
1974
1984
|
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
|
|
1975
1985
|
}
|
|
1976
|
-
const
|
|
1986
|
+
const li = {
|
|
1977
1987
|
m: "margin",
|
|
1978
1988
|
p: "padding"
|
|
1979
|
-
},
|
|
1989
|
+
}, ui = {
|
|
1980
1990
|
t: "Top",
|
|
1981
1991
|
r: "Right",
|
|
1982
1992
|
b: "Bottom",
|
|
1983
1993
|
l: "Left",
|
|
1984
1994
|
x: ["Left", "Right"],
|
|
1985
1995
|
y: ["Top", "Bottom"]
|
|
1986
|
-
},
|
|
1996
|
+
}, en = {
|
|
1987
1997
|
marginX: "mx",
|
|
1988
1998
|
marginY: "my",
|
|
1989
1999
|
paddingX: "px",
|
|
1990
2000
|
paddingY: "py"
|
|
1991
|
-
},
|
|
2001
|
+
}, fi = ci((e) => {
|
|
1992
2002
|
if (e.length > 2)
|
|
1993
|
-
if (
|
|
1994
|
-
e =
|
|
2003
|
+
if (en[e])
|
|
2004
|
+
e = en[e];
|
|
1995
2005
|
else
|
|
1996
2006
|
return [e];
|
|
1997
|
-
const [t, r] = e.split(""), n =
|
|
2007
|
+
const [t, r] = e.split(""), n = li[t], o = ui[r] || "";
|
|
1998
2008
|
return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
|
|
1999
|
-
}),
|
|
2000
|
-
function
|
|
2001
|
-
const o =
|
|
2009
|
+
}), Pt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], It = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], di = [...Pt, ...It];
|
|
2010
|
+
function ft(e, t, r, n) {
|
|
2011
|
+
const o = $t(e, t, !0) ?? r;
|
|
2002
2012
|
return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
|
|
2003
2013
|
if (typeof i == "string")
|
|
2004
2014
|
return i;
|
|
@@ -2012,40 +2022,40 @@ function ut(e, t, r, n) {
|
|
|
2012
2022
|
`)), () => {
|
|
2013
2023
|
});
|
|
2014
2024
|
}
|
|
2015
|
-
function
|
|
2016
|
-
return
|
|
2025
|
+
function lr(e) {
|
|
2026
|
+
return ft(e, "spacing", 8, "spacing");
|
|
2017
2027
|
}
|
|
2018
|
-
function
|
|
2028
|
+
function dt(e, t) {
|
|
2019
2029
|
return typeof t == "string" || t == null ? t : e(t);
|
|
2020
2030
|
}
|
|
2021
|
-
function
|
|
2022
|
-
return (r) => e.reduce((n, o) => (n[o] =
|
|
2031
|
+
function pi(e, t) {
|
|
2032
|
+
return (r) => e.reduce((n, o) => (n[o] = dt(t, r), n), {});
|
|
2023
2033
|
}
|
|
2024
|
-
function
|
|
2034
|
+
function mi(e, t, r, n) {
|
|
2025
2035
|
if (!t.includes(r))
|
|
2026
2036
|
return null;
|
|
2027
|
-
const o =
|
|
2037
|
+
const o = fi(r), i = pi(o, n), c = e[r];
|
|
2028
2038
|
return ke(e, c, i);
|
|
2029
2039
|
}
|
|
2030
|
-
function
|
|
2031
|
-
const r =
|
|
2032
|
-
return Object.keys(e).map((n) =>
|
|
2040
|
+
function _n(e, t) {
|
|
2041
|
+
const r = lr(e.theme);
|
|
2042
|
+
return Object.keys(e).map((n) => mi(e, t, n, r)).reduce(ct, {});
|
|
2033
2043
|
}
|
|
2034
2044
|
function se(e) {
|
|
2035
|
-
return
|
|
2045
|
+
return _n(e, Pt);
|
|
2036
2046
|
}
|
|
2037
|
-
se.propTypes = process.env.NODE_ENV !== "production" ?
|
|
2038
|
-
se.filterProps =
|
|
2047
|
+
se.propTypes = process.env.NODE_ENV !== "production" ? Pt.reduce((e, t) => (e[t] = De, e), {}) : {};
|
|
2048
|
+
se.filterProps = Pt;
|
|
2039
2049
|
function ce(e) {
|
|
2040
|
-
return
|
|
2050
|
+
return _n(e, It);
|
|
2041
2051
|
}
|
|
2042
|
-
ce.propTypes = process.env.NODE_ENV !== "production" ?
|
|
2043
|
-
ce.filterProps =
|
|
2044
|
-
process.env.NODE_ENV !== "production" &&
|
|
2045
|
-
function
|
|
2052
|
+
ce.propTypes = process.env.NODE_ENV !== "production" ? It.reduce((e, t) => (e[t] = De, e), {}) : {};
|
|
2053
|
+
ce.filterProps = It;
|
|
2054
|
+
process.env.NODE_ENV !== "production" && di.reduce((e, t) => (e[t] = De, e), {});
|
|
2055
|
+
function jt(...e) {
|
|
2046
2056
|
const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
|
|
2047
2057
|
n[i] = o;
|
|
2048
|
-
}), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ?
|
|
2058
|
+
}), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? ct(o, t[i](n)) : o, {});
|
|
2049
2059
|
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
|
|
2050
2060
|
}
|
|
2051
2061
|
function xe(e) {
|
|
@@ -2058,107 +2068,107 @@ function we(e, t) {
|
|
|
2058
2068
|
transform: t
|
|
2059
2069
|
});
|
|
2060
2070
|
}
|
|
2061
|
-
const
|
|
2071
|
+
const hi = we("border", xe), gi = we("borderTop", xe), yi = we("borderRight", xe), bi = we("borderBottom", xe), vi = we("borderLeft", xe), Si = we("borderColor"), Ei = we("borderTopColor"), Ci = we("borderRightColor"), xi = we("borderBottomColor"), Ti = we("borderLeftColor"), wi = we("outline", xe), _i = we("outlineColor"), Nt = (e) => {
|
|
2062
2072
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
2063
|
-
const t =
|
|
2064
|
-
borderRadius:
|
|
2073
|
+
const t = ft(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
2074
|
+
borderRadius: dt(t, n)
|
|
2065
2075
|
});
|
|
2066
2076
|
return ke(e, e.borderRadius, r);
|
|
2067
2077
|
}
|
|
2068
2078
|
return null;
|
|
2069
2079
|
};
|
|
2070
|
-
|
|
2080
|
+
Nt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2071
2081
|
borderRadius: De
|
|
2072
2082
|
} : {};
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
const
|
|
2083
|
+
Nt.filterProps = ["borderRadius"];
|
|
2084
|
+
jt(hi, gi, yi, bi, vi, Si, Ei, Ci, xi, Ti, Nt, wi, _i);
|
|
2085
|
+
const Dt = (e) => {
|
|
2076
2086
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
2077
|
-
const t =
|
|
2078
|
-
gap:
|
|
2087
|
+
const t = ft(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
2088
|
+
gap: dt(t, n)
|
|
2079
2089
|
});
|
|
2080
2090
|
return ke(e, e.gap, r);
|
|
2081
2091
|
}
|
|
2082
2092
|
return null;
|
|
2083
2093
|
};
|
|
2084
|
-
|
|
2094
|
+
Dt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2085
2095
|
gap: De
|
|
2086
2096
|
} : {};
|
|
2087
|
-
|
|
2088
|
-
const
|
|
2097
|
+
Dt.filterProps = ["gap"];
|
|
2098
|
+
const Mt = (e) => {
|
|
2089
2099
|
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
2090
|
-
const t =
|
|
2091
|
-
columnGap:
|
|
2100
|
+
const t = ft(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
2101
|
+
columnGap: dt(t, n)
|
|
2092
2102
|
});
|
|
2093
2103
|
return ke(e, e.columnGap, r);
|
|
2094
2104
|
}
|
|
2095
2105
|
return null;
|
|
2096
2106
|
};
|
|
2097
|
-
|
|
2107
|
+
Mt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2098
2108
|
columnGap: De
|
|
2099
2109
|
} : {};
|
|
2100
|
-
|
|
2101
|
-
const
|
|
2110
|
+
Mt.filterProps = ["columnGap"];
|
|
2111
|
+
const Bt = (e) => {
|
|
2102
2112
|
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
2103
|
-
const t =
|
|
2104
|
-
rowGap:
|
|
2113
|
+
const t = ft(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
2114
|
+
rowGap: dt(t, n)
|
|
2105
2115
|
});
|
|
2106
2116
|
return ke(e, e.rowGap, r);
|
|
2107
2117
|
}
|
|
2108
2118
|
return null;
|
|
2109
2119
|
};
|
|
2110
|
-
|
|
2120
|
+
Bt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2111
2121
|
rowGap: De
|
|
2112
2122
|
} : {};
|
|
2113
|
-
|
|
2114
|
-
const
|
|
2123
|
+
Bt.filterProps = ["rowGap"];
|
|
2124
|
+
const Oi = fe({
|
|
2115
2125
|
prop: "gridColumn"
|
|
2116
|
-
}),
|
|
2126
|
+
}), Ri = fe({
|
|
2117
2127
|
prop: "gridRow"
|
|
2118
|
-
}),
|
|
2128
|
+
}), Ai = fe({
|
|
2119
2129
|
prop: "gridAutoFlow"
|
|
2120
|
-
}),
|
|
2130
|
+
}), ki = fe({
|
|
2121
2131
|
prop: "gridAutoColumns"
|
|
2122
|
-
}),
|
|
2132
|
+
}), $i = fe({
|
|
2123
2133
|
prop: "gridAutoRows"
|
|
2124
|
-
}),
|
|
2134
|
+
}), Pi = fe({
|
|
2125
2135
|
prop: "gridTemplateColumns"
|
|
2126
|
-
}),
|
|
2136
|
+
}), Ii = fe({
|
|
2127
2137
|
prop: "gridTemplateRows"
|
|
2128
|
-
}),
|
|
2138
|
+
}), ji = fe({
|
|
2129
2139
|
prop: "gridTemplateAreas"
|
|
2130
|
-
}),
|
|
2140
|
+
}), Ni = fe({
|
|
2131
2141
|
prop: "gridArea"
|
|
2132
2142
|
});
|
|
2133
|
-
|
|
2143
|
+
jt(Dt, Mt, Bt, Oi, Ri, Ai, ki, $i, Pi, Ii, ji, Ni);
|
|
2134
2144
|
function Qe(e, t) {
|
|
2135
2145
|
return t === "grey" ? t : e;
|
|
2136
2146
|
}
|
|
2137
|
-
const
|
|
2147
|
+
const Di = fe({
|
|
2138
2148
|
prop: "color",
|
|
2139
2149
|
themeKey: "palette",
|
|
2140
2150
|
transform: Qe
|
|
2141
|
-
}),
|
|
2151
|
+
}), Mi = fe({
|
|
2142
2152
|
prop: "bgcolor",
|
|
2143
2153
|
cssProperty: "backgroundColor",
|
|
2144
2154
|
themeKey: "palette",
|
|
2145
2155
|
transform: Qe
|
|
2146
|
-
}),
|
|
2156
|
+
}), Bi = fe({
|
|
2147
2157
|
prop: "backgroundColor",
|
|
2148
2158
|
themeKey: "palette",
|
|
2149
2159
|
transform: Qe
|
|
2150
2160
|
});
|
|
2151
|
-
|
|
2161
|
+
jt(Di, Mi, Bi);
|
|
2152
2162
|
function ve(e) {
|
|
2153
2163
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
2154
2164
|
}
|
|
2155
|
-
const
|
|
2165
|
+
const Fi = fe({
|
|
2156
2166
|
prop: "width",
|
|
2157
2167
|
transform: ve
|
|
2158
|
-
}),
|
|
2168
|
+
}), ur = (e) => {
|
|
2159
2169
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
2160
2170
|
const t = (r) => {
|
|
2161
|
-
const n = e.theme?.breakpoints?.values?.[r] ||
|
|
2171
|
+
const n = e.theme?.breakpoints?.values?.[r] || kt[r];
|
|
2162
2172
|
return n ? e.theme?.breakpoints?.unit !== "px" ? {
|
|
2163
2173
|
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
2164
2174
|
} : {
|
|
@@ -2171,17 +2181,17 @@ const Mi = fe({
|
|
|
2171
2181
|
}
|
|
2172
2182
|
return null;
|
|
2173
2183
|
};
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2184
|
+
ur.filterProps = ["maxWidth"];
|
|
2185
|
+
const Li = fe({
|
|
2176
2186
|
prop: "minWidth",
|
|
2177
2187
|
transform: ve
|
|
2178
|
-
}),
|
|
2188
|
+
}), Vi = fe({
|
|
2179
2189
|
prop: "height",
|
|
2180
2190
|
transform: ve
|
|
2181
|
-
}),
|
|
2191
|
+
}), Wi = fe({
|
|
2182
2192
|
prop: "maxHeight",
|
|
2183
2193
|
transform: ve
|
|
2184
|
-
}),
|
|
2194
|
+
}), zi = fe({
|
|
2185
2195
|
prop: "minHeight",
|
|
2186
2196
|
transform: ve
|
|
2187
2197
|
});
|
|
@@ -2195,11 +2205,11 @@ fe({
|
|
|
2195
2205
|
cssProperty: "height",
|
|
2196
2206
|
transform: ve
|
|
2197
2207
|
});
|
|
2198
|
-
const
|
|
2208
|
+
const Yi = fe({
|
|
2199
2209
|
prop: "boxSizing"
|
|
2200
2210
|
});
|
|
2201
|
-
|
|
2202
|
-
const
|
|
2211
|
+
jt(Fi, ur, Li, Vi, Wi, zi, Yi);
|
|
2212
|
+
const Ft = {
|
|
2203
2213
|
// borders
|
|
2204
2214
|
border: {
|
|
2205
2215
|
themeKey: "borders",
|
|
@@ -2245,7 +2255,7 @@ const Bt = {
|
|
|
2245
2255
|
},
|
|
2246
2256
|
borderRadius: {
|
|
2247
2257
|
themeKey: "shape.borderRadius",
|
|
2248
|
-
style:
|
|
2258
|
+
style: Nt
|
|
2249
2259
|
},
|
|
2250
2260
|
// palette
|
|
2251
2261
|
color: {
|
|
@@ -2412,13 +2422,13 @@ const Bt = {
|
|
|
2412
2422
|
justifySelf: {},
|
|
2413
2423
|
// grid
|
|
2414
2424
|
gap: {
|
|
2415
|
-
style:
|
|
2425
|
+
style: Dt
|
|
2416
2426
|
},
|
|
2417
2427
|
rowGap: {
|
|
2418
|
-
style:
|
|
2428
|
+
style: Bt
|
|
2419
2429
|
},
|
|
2420
2430
|
columnGap: {
|
|
2421
|
-
style:
|
|
2431
|
+
style: Mt
|
|
2422
2432
|
},
|
|
2423
2433
|
gridColumn: {},
|
|
2424
2434
|
gridRow: {},
|
|
@@ -2447,7 +2457,7 @@ const Bt = {
|
|
|
2447
2457
|
transform: ve
|
|
2448
2458
|
},
|
|
2449
2459
|
maxWidth: {
|
|
2450
|
-
style:
|
|
2460
|
+
style: ur
|
|
2451
2461
|
},
|
|
2452
2462
|
minWidth: {
|
|
2453
2463
|
transform: ve
|
|
@@ -2487,14 +2497,14 @@ const Bt = {
|
|
|
2487
2497
|
themeKey: "typography"
|
|
2488
2498
|
}
|
|
2489
2499
|
};
|
|
2490
|
-
function
|
|
2500
|
+
function Ui(...e) {
|
|
2491
2501
|
const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
|
|
2492
2502
|
return e.every((n) => r.size === Object.keys(n).length);
|
|
2493
2503
|
}
|
|
2494
|
-
function
|
|
2504
|
+
function Gi(e, t) {
|
|
2495
2505
|
return typeof e == "function" ? e(t) : e;
|
|
2496
2506
|
}
|
|
2497
|
-
function
|
|
2507
|
+
function qi() {
|
|
2498
2508
|
function e(r, n, o, i) {
|
|
2499
2509
|
const c = {
|
|
2500
2510
|
[r]: n,
|
|
@@ -2516,10 +2526,10 @@ function Ui() {
|
|
|
2516
2526
|
return {
|
|
2517
2527
|
[r]: n
|
|
2518
2528
|
};
|
|
2519
|
-
const h =
|
|
2529
|
+
const h = $t(o, d) || {};
|
|
2520
2530
|
return p ? p(c) : ke(c, n, (b) => {
|
|
2521
|
-
let l =
|
|
2522
|
-
return b === l && typeof b == "string" && (l =
|
|
2531
|
+
let l = Ot(h, m, b);
|
|
2532
|
+
return b === l && typeof b == "string" && (l = Ot(h, m, `${r}${b === "default" ? "" : We(b)}`, b)), f === !1 ? l : {
|
|
2523
2533
|
[f]: l
|
|
2524
2534
|
};
|
|
2525
2535
|
});
|
|
@@ -2532,7 +2542,7 @@ function Ui() {
|
|
|
2532
2542
|
} = r || {};
|
|
2533
2543
|
if (!n)
|
|
2534
2544
|
return null;
|
|
2535
|
-
const c = o.unstable_sxConfig ??
|
|
2545
|
+
const c = o.unstable_sxConfig ?? Ft;
|
|
2536
2546
|
function u(f) {
|
|
2537
2547
|
let d = f;
|
|
2538
2548
|
if (typeof f == "function")
|
|
@@ -2541,39 +2551,39 @@ function Ui() {
|
|
|
2541
2551
|
return f;
|
|
2542
2552
|
if (!d)
|
|
2543
2553
|
return null;
|
|
2544
|
-
const m =
|
|
2554
|
+
const m = si(o.breakpoints), p = Object.keys(m);
|
|
2545
2555
|
let h = m;
|
|
2546
2556
|
return Object.keys(d).forEach((y) => {
|
|
2547
|
-
const b =
|
|
2557
|
+
const b = Gi(d[y], o);
|
|
2548
2558
|
if (b != null)
|
|
2549
2559
|
if (typeof b == "object")
|
|
2550
2560
|
if (c[y])
|
|
2551
|
-
h =
|
|
2561
|
+
h = ct(h, e(y, b, o, c));
|
|
2552
2562
|
else {
|
|
2553
2563
|
const l = ke({
|
|
2554
2564
|
theme: o
|
|
2555
2565
|
}, b, (T) => ({
|
|
2556
2566
|
[y]: T
|
|
2557
2567
|
}));
|
|
2558
|
-
|
|
2568
|
+
Ui(l, b) ? h[y] = t({
|
|
2559
2569
|
sx: b,
|
|
2560
2570
|
theme: o,
|
|
2561
2571
|
nested: !0
|
|
2562
|
-
}) : h =
|
|
2572
|
+
}) : h = ct(h, l);
|
|
2563
2573
|
}
|
|
2564
2574
|
else
|
|
2565
|
-
h =
|
|
2575
|
+
h = ct(h, e(y, b, o, c));
|
|
2566
2576
|
}), !i && o.modularCssLayers ? {
|
|
2567
|
-
"@layer sx":
|
|
2568
|
-
} :
|
|
2577
|
+
"@layer sx": Xr(o, Zr(p, h))
|
|
2578
|
+
} : Xr(o, Zr(p, h));
|
|
2569
2579
|
}
|
|
2570
2580
|
return Array.isArray(n) ? n.map(u) : u(n);
|
|
2571
2581
|
}
|
|
2572
2582
|
return t;
|
|
2573
2583
|
}
|
|
2574
|
-
const et =
|
|
2584
|
+
const et = qi();
|
|
2575
2585
|
et.filterProps = ["sx"];
|
|
2576
|
-
function
|
|
2586
|
+
function Ki(e) {
|
|
2577
2587
|
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
2578
2588
|
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
2579
2589
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
@@ -2592,7 +2602,7 @@ function Gi(e) {
|
|
|
2592
2602
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
2593
2603
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
2594
2604
|
}
|
|
2595
|
-
var
|
|
2605
|
+
var Hi = {
|
|
2596
2606
|
animationIterationCount: 1,
|
|
2597
2607
|
aspectRatio: 1,
|
|
2598
2608
|
borderImageOutset: 1,
|
|
@@ -2642,24 +2652,24 @@ var qi = {
|
|
|
2642
2652
|
strokeOpacity: 1,
|
|
2643
2653
|
strokeWidth: 1
|
|
2644
2654
|
};
|
|
2645
|
-
function
|
|
2655
|
+
function Ji(e) {
|
|
2646
2656
|
var t = /* @__PURE__ */ Object.create(null);
|
|
2647
2657
|
return function(r) {
|
|
2648
2658
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
2649
2659
|
};
|
|
2650
2660
|
}
|
|
2651
|
-
var
|
|
2661
|
+
var Xi = /[A-Z]|^ms/g, Qi = /_EMO_([^_]+?)_([^]*?)_EMO_/g, On = function(t) {
|
|
2652
2662
|
return t.charCodeAt(1) === 45;
|
|
2653
|
-
},
|
|
2663
|
+
}, tn = function(t) {
|
|
2654
2664
|
return t != null && typeof t != "boolean";
|
|
2655
|
-
},
|
|
2656
|
-
return
|
|
2657
|
-
}),
|
|
2665
|
+
}, Qt = /* @__PURE__ */ Ji(function(e) {
|
|
2666
|
+
return On(e) ? e : e.replace(Xi, "-$&").toLowerCase();
|
|
2667
|
+
}), rn = function(t, r) {
|
|
2658
2668
|
switch (t) {
|
|
2659
2669
|
case "animation":
|
|
2660
2670
|
case "animationName":
|
|
2661
2671
|
if (typeof r == "string")
|
|
2662
|
-
return r.replace(
|
|
2672
|
+
return r.replace(Qi, function(n, o, i) {
|
|
2663
2673
|
return Pe = {
|
|
2664
2674
|
name: o,
|
|
2665
2675
|
styles: i,
|
|
@@ -2667,9 +2677,9 @@ var Hi = /[A-Z]|^ms/g, Ji = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wn = function(t) {
|
|
|
2667
2677
|
}, o;
|
|
2668
2678
|
});
|
|
2669
2679
|
}
|
|
2670
|
-
return
|
|
2680
|
+
return Hi[t] !== 1 && !On(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
2671
2681
|
};
|
|
2672
|
-
function
|
|
2682
|
+
function Rt(e, t, r) {
|
|
2673
2683
|
if (r == null)
|
|
2674
2684
|
return "";
|
|
2675
2685
|
var n = r;
|
|
@@ -2699,32 +2709,32 @@ function Ot(e, t, r) {
|
|
|
2699
2709
|
var u = i.styles + ";";
|
|
2700
2710
|
return u;
|
|
2701
2711
|
}
|
|
2702
|
-
return
|
|
2712
|
+
return Zi(e, t, r);
|
|
2703
2713
|
}
|
|
2704
2714
|
}
|
|
2705
2715
|
var f = r;
|
|
2706
2716
|
return f;
|
|
2707
2717
|
}
|
|
2708
|
-
function
|
|
2718
|
+
function Zi(e, t, r) {
|
|
2709
2719
|
var n = "";
|
|
2710
2720
|
if (Array.isArray(r))
|
|
2711
2721
|
for (var o = 0; o < r.length; o++)
|
|
2712
|
-
n +=
|
|
2722
|
+
n += Rt(e, t, r[o]) + ";";
|
|
2713
2723
|
else
|
|
2714
2724
|
for (var i in r) {
|
|
2715
2725
|
var c = r[i];
|
|
2716
2726
|
if (typeof c != "object") {
|
|
2717
2727
|
var u = c;
|
|
2718
|
-
|
|
2728
|
+
tn(u) && (n += Qt(i) + ":" + rn(i, u) + ";");
|
|
2719
2729
|
} else if (Array.isArray(c) && typeof c[0] == "string" && t == null)
|
|
2720
2730
|
for (var f = 0; f < c.length; f++)
|
|
2721
|
-
|
|
2731
|
+
tn(c[f]) && (n += Qt(i) + ":" + rn(i, c[f]) + ";");
|
|
2722
2732
|
else {
|
|
2723
|
-
var d =
|
|
2733
|
+
var d = Rt(e, t, c);
|
|
2724
2734
|
switch (i) {
|
|
2725
2735
|
case "animation":
|
|
2726
2736
|
case "animationName": {
|
|
2727
|
-
n +=
|
|
2737
|
+
n += Qt(i) + ":" + d + ";";
|
|
2728
2738
|
break;
|
|
2729
2739
|
}
|
|
2730
2740
|
default:
|
|
@@ -2734,50 +2744,50 @@ function Xi(e, t, r) {
|
|
|
2734
2744
|
}
|
|
2735
2745
|
return n;
|
|
2736
2746
|
}
|
|
2737
|
-
var
|
|
2738
|
-
function
|
|
2747
|
+
var nn = /label:\s*([^\s;{]+)\s*(;|$)/g, Pe;
|
|
2748
|
+
function ea(e, t, r) {
|
|
2739
2749
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
2740
2750
|
return e[0];
|
|
2741
2751
|
var n = !0, o = "";
|
|
2742
2752
|
Pe = void 0;
|
|
2743
2753
|
var i = e[0];
|
|
2744
2754
|
if (i == null || i.raw === void 0)
|
|
2745
|
-
n = !1, o +=
|
|
2755
|
+
n = !1, o += Rt(r, t, i);
|
|
2746
2756
|
else {
|
|
2747
2757
|
var c = i;
|
|
2748
2758
|
o += c[0];
|
|
2749
2759
|
}
|
|
2750
2760
|
for (var u = 1; u < e.length; u++)
|
|
2751
|
-
if (o +=
|
|
2761
|
+
if (o += Rt(r, t, e[u]), n) {
|
|
2752
2762
|
var f = i;
|
|
2753
2763
|
o += f[u];
|
|
2754
2764
|
}
|
|
2755
|
-
|
|
2756
|
-
for (var d = "", m; (m =
|
|
2765
|
+
nn.lastIndex = 0;
|
|
2766
|
+
for (var d = "", m; (m = nn.exec(o)) !== null; )
|
|
2757
2767
|
d += "-" + m[1];
|
|
2758
|
-
var p =
|
|
2768
|
+
var p = Ki(o) + d;
|
|
2759
2769
|
return {
|
|
2760
2770
|
name: p,
|
|
2761
2771
|
styles: o,
|
|
2762
2772
|
next: Pe
|
|
2763
2773
|
};
|
|
2764
2774
|
}
|
|
2765
|
-
function
|
|
2766
|
-
const r =
|
|
2775
|
+
function ta(e, t) {
|
|
2776
|
+
const r = Oo(e, t);
|
|
2767
2777
|
return process.env.NODE_ENV !== "production" ? (...n) => {
|
|
2768
2778
|
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
2769
2779
|
return n.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(`
|
|
2770
2780
|
`)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
|
|
2771
2781
|
} : r;
|
|
2772
2782
|
}
|
|
2773
|
-
function
|
|
2783
|
+
function ra(e, t) {
|
|
2774
2784
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
2775
2785
|
}
|
|
2776
|
-
const
|
|
2786
|
+
const on = [];
|
|
2777
2787
|
function Ve(e) {
|
|
2778
|
-
return
|
|
2788
|
+
return on[0] = e, ea(on);
|
|
2779
2789
|
}
|
|
2780
|
-
const
|
|
2790
|
+
const na = (e) => {
|
|
2781
2791
|
const t = Object.keys(e).map((r) => ({
|
|
2782
2792
|
key: r,
|
|
2783
2793
|
val: e[r]
|
|
@@ -2787,7 +2797,7 @@ const ta = (e) => {
|
|
|
2787
2797
|
[n.key]: n.val
|
|
2788
2798
|
}), {});
|
|
2789
2799
|
};
|
|
2790
|
-
function
|
|
2800
|
+
function oa(e) {
|
|
2791
2801
|
const {
|
|
2792
2802
|
// The breakpoint **start** at this value.
|
|
2793
2803
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
@@ -2806,7 +2816,7 @@ function ra(e) {
|
|
|
2806
2816
|
unit: r = "px",
|
|
2807
2817
|
step: n = 5,
|
|
2808
2818
|
...o
|
|
2809
|
-
} = e, i =
|
|
2819
|
+
} = e, i = na(t), c = Object.keys(i);
|
|
2810
2820
|
function u(h) {
|
|
2811
2821
|
return `@media (min-width:${typeof t[h] == "number" ? t[h] : h}${r})`;
|
|
2812
2822
|
}
|
|
@@ -2836,10 +2846,10 @@ function ra(e) {
|
|
|
2836
2846
|
...o
|
|
2837
2847
|
};
|
|
2838
2848
|
}
|
|
2839
|
-
const
|
|
2849
|
+
const ia = {
|
|
2840
2850
|
borderRadius: 4
|
|
2841
2851
|
};
|
|
2842
|
-
function
|
|
2852
|
+
function Rn(e = 8, t = lr({
|
|
2843
2853
|
spacing: e
|
|
2844
2854
|
})) {
|
|
2845
2855
|
if (e.mui)
|
|
@@ -2850,7 +2860,7 @@ function _n(e = 8, t = cr({
|
|
|
2850
2860
|
}).join(" "));
|
|
2851
2861
|
return r.mui = !0, r;
|
|
2852
2862
|
}
|
|
2853
|
-
function
|
|
2863
|
+
function aa(e, t) {
|
|
2854
2864
|
const r = this;
|
|
2855
2865
|
if (r.vars) {
|
|
2856
2866
|
if (!r.colorSchemes?.[e] || typeof r.getColorSchemeSelector != "function")
|
|
@@ -2862,14 +2872,14 @@ function oa(e, t) {
|
|
|
2862
2872
|
}
|
|
2863
2873
|
return r.palette.mode === e ? t : {};
|
|
2864
2874
|
}
|
|
2865
|
-
function
|
|
2875
|
+
function An(e = {}, ...t) {
|
|
2866
2876
|
const {
|
|
2867
2877
|
breakpoints: r = {},
|
|
2868
2878
|
palette: n = {},
|
|
2869
2879
|
spacing: o,
|
|
2870
2880
|
shape: i = {},
|
|
2871
2881
|
...c
|
|
2872
|
-
} = e, u =
|
|
2882
|
+
} = e, u = oa(r), f = Rn(o);
|
|
2873
2883
|
let d = Se({
|
|
2874
2884
|
breakpoints: u,
|
|
2875
2885
|
direction: "ltr",
|
|
@@ -2881,12 +2891,12 @@ function On(e = {}, ...t) {
|
|
|
2881
2891
|
},
|
|
2882
2892
|
spacing: f,
|
|
2883
2893
|
shape: {
|
|
2884
|
-
...
|
|
2894
|
+
...ia,
|
|
2885
2895
|
...i
|
|
2886
2896
|
}
|
|
2887
2897
|
}, c);
|
|
2888
|
-
return d =
|
|
2889
|
-
...
|
|
2898
|
+
return d = ii(d), d.applyStyles = aa, d = t.reduce((m, p) => Se(m, p), d), d.unstable_sxConfig = {
|
|
2899
|
+
...Ft,
|
|
2890
2900
|
...c?.unstable_sxConfig
|
|
2891
2901
|
}, d.unstable_sx = function(p) {
|
|
2892
2902
|
return et({
|
|
@@ -2895,7 +2905,7 @@ function On(e = {}, ...t) {
|
|
|
2895
2905
|
});
|
|
2896
2906
|
}, d;
|
|
2897
2907
|
}
|
|
2898
|
-
function
|
|
2908
|
+
function kn(e) {
|
|
2899
2909
|
const {
|
|
2900
2910
|
variants: t,
|
|
2901
2911
|
...r
|
|
@@ -2908,23 +2918,23 @@ function Rn(e) {
|
|
|
2908
2918
|
typeof o.style != "function" && (o.style = Ve(o.style));
|
|
2909
2919
|
}), n;
|
|
2910
2920
|
}
|
|
2911
|
-
const
|
|
2912
|
-
function
|
|
2921
|
+
const sa = An();
|
|
2922
|
+
function Zt(e) {
|
|
2913
2923
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2914
2924
|
}
|
|
2915
2925
|
function Le(e, t) {
|
|
2916
2926
|
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
2917
2927
|
}
|
|
2918
|
-
function
|
|
2928
|
+
function ca(e) {
|
|
2919
2929
|
return e ? (t, r) => r[e] : null;
|
|
2920
2930
|
}
|
|
2921
|
-
function
|
|
2922
|
-
e.theme =
|
|
2931
|
+
function la(e, t, r) {
|
|
2932
|
+
e.theme = pa(e.theme) ? r : e.theme[t] || e.theme;
|
|
2923
2933
|
}
|
|
2924
|
-
function
|
|
2934
|
+
function xt(e, t, r) {
|
|
2925
2935
|
const n = typeof t == "function" ? t(e) : t;
|
|
2926
2936
|
if (Array.isArray(n))
|
|
2927
|
-
return n.flatMap((o) =>
|
|
2937
|
+
return n.flatMap((o) => xt(e, o, r));
|
|
2928
2938
|
if (Array.isArray(n?.variants)) {
|
|
2929
2939
|
let o;
|
|
2930
2940
|
if (n.isProcessed)
|
|
@@ -2936,11 +2946,11 @@ function Ct(e, t, r) {
|
|
|
2936
2946
|
} = n;
|
|
2937
2947
|
o = r ? Le(Ve(c), r) : c;
|
|
2938
2948
|
}
|
|
2939
|
-
return
|
|
2949
|
+
return $n(e, n.variants, [o], r);
|
|
2940
2950
|
}
|
|
2941
2951
|
return n?.isProcessed ? r ? Le(Ve(n.style), r) : n.style : r ? Le(Ve(n), r) : n;
|
|
2942
2952
|
}
|
|
2943
|
-
function
|
|
2953
|
+
function $n(e, t, r = [], n = void 0) {
|
|
2944
2954
|
let o;
|
|
2945
2955
|
e: for (let i = 0; i < t.length; i += 1) {
|
|
2946
2956
|
const c = t[i];
|
|
@@ -2963,18 +2973,18 @@ function An(e, t, r = [], n = void 0) {
|
|
|
2963
2973
|
}
|
|
2964
2974
|
return r;
|
|
2965
2975
|
}
|
|
2966
|
-
function
|
|
2976
|
+
function ua(e = {}) {
|
|
2967
2977
|
const {
|
|
2968
2978
|
themeId: t,
|
|
2969
|
-
defaultTheme: r =
|
|
2970
|
-
rootShouldForwardProp: n =
|
|
2971
|
-
slotShouldForwardProp: o =
|
|
2979
|
+
defaultTheme: r = sa,
|
|
2980
|
+
rootShouldForwardProp: n = Zt,
|
|
2981
|
+
slotShouldForwardProp: o = Zt
|
|
2972
2982
|
} = e;
|
|
2973
2983
|
function i(u) {
|
|
2974
|
-
|
|
2984
|
+
la(u, t, r);
|
|
2975
2985
|
}
|
|
2976
2986
|
return (u, f = {}) => {
|
|
2977
|
-
|
|
2987
|
+
ra(u, (q) => q.filter((oe) => oe !== et));
|
|
2978
2988
|
const {
|
|
2979
2989
|
name: d,
|
|
2980
2990
|
slot: m,
|
|
@@ -2982,30 +2992,30 @@ function ca(e = {}) {
|
|
|
2982
2992
|
skipSx: h,
|
|
2983
2993
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2984
2994
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2985
|
-
overridesResolver: y =
|
|
2995
|
+
overridesResolver: y = ca(Pn(m)),
|
|
2986
2996
|
...b
|
|
2987
2997
|
} = f, l = d && d.startsWith("Mui") || m ? "components" : "custom", T = p !== void 0 ? p : (
|
|
2988
2998
|
// TODO v6: remove `Root` in the next major release
|
|
2989
2999
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2990
3000
|
m && m !== "Root" && m !== "root" || !1
|
|
2991
3001
|
), S = h || !1;
|
|
2992
|
-
let w =
|
|
2993
|
-
m === "Root" || m === "root" ? w = n : m ? w = o :
|
|
2994
|
-
const A =
|
|
3002
|
+
let w = Zt;
|
|
3003
|
+
m === "Root" || m === "root" ? w = n : m ? w = o : ma(u) && (w = void 0);
|
|
3004
|
+
const A = ta(u, {
|
|
2995
3005
|
shouldForwardProp: w,
|
|
2996
|
-
label:
|
|
3006
|
+
label: da(d, m),
|
|
2997
3007
|
...b
|
|
2998
3008
|
}), $ = (q) => {
|
|
2999
3009
|
if (q.__emotion_real === q)
|
|
3000
3010
|
return q;
|
|
3001
3011
|
if (typeof q == "function")
|
|
3002
3012
|
return function(ee) {
|
|
3003
|
-
return
|
|
3013
|
+
return xt(ee, q, ee.theme.modularCssLayers ? l : void 0);
|
|
3004
3014
|
};
|
|
3005
3015
|
if (Ae(q)) {
|
|
3006
|
-
const oe =
|
|
3016
|
+
const oe = kn(q);
|
|
3007
3017
|
return function(W) {
|
|
3008
|
-
return oe.variants ?
|
|
3018
|
+
return oe.variants ? xt(W, oe, W.theme.modularCssLayers ? l : void 0) : W.theme.modularCssLayers ? Le(oe.style, l) : oe.style;
|
|
3009
3019
|
};
|
|
3010
3020
|
}
|
|
3011
3021
|
return q;
|
|
@@ -3017,47 +3027,47 @@ function ca(e = {}) {
|
|
|
3017
3027
|
return null;
|
|
3018
3028
|
const pe = {};
|
|
3019
3029
|
for (const be in ae)
|
|
3020
|
-
pe[be] =
|
|
3030
|
+
pe[be] = xt(N, ae[be], N.theme.modularCssLayers ? "theme" : void 0);
|
|
3021
3031
|
return y(N, pe);
|
|
3022
3032
|
}), d && !T && W.push(function(N) {
|
|
3023
3033
|
const ae = N.theme?.components?.[d]?.variants;
|
|
3024
|
-
return ae ?
|
|
3034
|
+
return ae ? $n(N, ae, [], N.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
3025
3035
|
}), S || W.push(et), Array.isArray(ee[0])) {
|
|
3026
3036
|
const U = ee.shift(), N = new Array(oe.length).fill(""), le = new Array(W.length).fill("");
|
|
3027
3037
|
let ae;
|
|
3028
3038
|
ae = [...N, ...U, ...le], ae.raw = [...N, ...U.raw, ...le], oe.unshift(ae);
|
|
3029
3039
|
}
|
|
3030
3040
|
const a = [...oe, ...ee, ...W], O = A(...a);
|
|
3031
|
-
return u.muiName && (O.muiName = u.muiName), process.env.NODE_ENV !== "production" && (O.displayName =
|
|
3041
|
+
return u.muiName && (O.muiName = u.muiName), process.env.NODE_ENV !== "production" && (O.displayName = fa(d, m, u)), O;
|
|
3032
3042
|
};
|
|
3033
3043
|
return A.withConfig && (E.withConfig = A.withConfig), E;
|
|
3034
3044
|
};
|
|
3035
3045
|
}
|
|
3036
|
-
function
|
|
3037
|
-
return e ? `${e}${We(t || "")}` : `Styled(${
|
|
3046
|
+
function fa(e, t, r) {
|
|
3047
|
+
return e ? `${e}${We(t || "")}` : `Styled(${Ho(r)})`;
|
|
3038
3048
|
}
|
|
3039
|
-
function
|
|
3049
|
+
function da(e, t) {
|
|
3040
3050
|
let r;
|
|
3041
|
-
return process.env.NODE_ENV !== "production" && e && (r = `${e}-${
|
|
3051
|
+
return process.env.NODE_ENV !== "production" && e && (r = `${e}-${Pn(t || "Root")}`), r;
|
|
3042
3052
|
}
|
|
3043
|
-
function
|
|
3053
|
+
function pa(e) {
|
|
3044
3054
|
for (const t in e)
|
|
3045
3055
|
return !1;
|
|
3046
3056
|
return !0;
|
|
3047
3057
|
}
|
|
3048
|
-
function
|
|
3058
|
+
function ma(e) {
|
|
3049
3059
|
return typeof e == "string" && // 96 is one less than the char code
|
|
3050
3060
|
// for "a" so this is checking that
|
|
3051
3061
|
// it's a lowercase character
|
|
3052
3062
|
e.charCodeAt(0) > 96;
|
|
3053
3063
|
}
|
|
3054
|
-
function
|
|
3064
|
+
function Pn(e) {
|
|
3055
3065
|
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
3056
3066
|
}
|
|
3057
|
-
function
|
|
3058
|
-
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),
|
|
3067
|
+
function fr(e, t = 0, r = 1) {
|
|
3068
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), ti(e, t, r);
|
|
3059
3069
|
}
|
|
3060
|
-
function
|
|
3070
|
+
function ha(e) {
|
|
3061
3071
|
e = e.slice(1);
|
|
3062
3072
|
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
3063
3073
|
let r = e.match(t);
|
|
@@ -3067,7 +3077,7 @@ function Ne(e) {
|
|
|
3067
3077
|
if (e.type)
|
|
3068
3078
|
return e;
|
|
3069
3079
|
if (e.charAt(0) === "#")
|
|
3070
|
-
return Ne(
|
|
3080
|
+
return Ne(ha(e));
|
|
3071
3081
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
3072
3082
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
3073
3083
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
@@ -3085,17 +3095,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
3085
3095
|
colorSpace: o
|
|
3086
3096
|
};
|
|
3087
3097
|
}
|
|
3088
|
-
const
|
|
3098
|
+
const ga = (e) => {
|
|
3089
3099
|
const t = Ne(e);
|
|
3090
3100
|
return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
|
|
3091
|
-
},
|
|
3101
|
+
}, at = (e, t) => {
|
|
3092
3102
|
try {
|
|
3093
|
-
return
|
|
3103
|
+
return ga(e);
|
|
3094
3104
|
} catch {
|
|
3095
3105
|
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
3096
3106
|
}
|
|
3097
3107
|
};
|
|
3098
|
-
function
|
|
3108
|
+
function Lt(e) {
|
|
3099
3109
|
const {
|
|
3100
3110
|
type: t,
|
|
3101
3111
|
colorSpace: r
|
|
@@ -3105,54 +3115,54 @@ function Ft(e) {
|
|
|
3105
3115
|
} = e;
|
|
3106
3116
|
return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
|
|
3107
3117
|
}
|
|
3108
|
-
function
|
|
3118
|
+
function In(e) {
|
|
3109
3119
|
e = Ne(e);
|
|
3110
3120
|
const {
|
|
3111
3121
|
values: t
|
|
3112
3122
|
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), c = (d, m = (d + r / 30) % 12) => o - i * Math.max(Math.min(m - 3, 9 - m, 1), -1);
|
|
3113
3123
|
let u = "rgb";
|
|
3114
3124
|
const f = [Math.round(c(0) * 255), Math.round(c(8) * 255), Math.round(c(4) * 255)];
|
|
3115
|
-
return e.type === "hsla" && (u += "a", f.push(t[3])),
|
|
3125
|
+
return e.type === "hsla" && (u += "a", f.push(t[3])), Lt({
|
|
3116
3126
|
type: u,
|
|
3117
3127
|
values: f
|
|
3118
3128
|
});
|
|
3119
3129
|
}
|
|
3120
|
-
function
|
|
3130
|
+
function nr(e) {
|
|
3121
3131
|
e = Ne(e);
|
|
3122
|
-
let t = e.type === "hsl" || e.type === "hsla" ? Ne(
|
|
3132
|
+
let t = e.type === "hsl" || e.type === "hsla" ? Ne(In(e)).values : e.values;
|
|
3123
3133
|
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
3124
3134
|
}
|
|
3125
|
-
function
|
|
3126
|
-
const r =
|
|
3135
|
+
function an(e, t) {
|
|
3136
|
+
const r = nr(e), n = nr(t);
|
|
3127
3137
|
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
3128
3138
|
}
|
|
3129
|
-
function
|
|
3130
|
-
return e = Ne(e), t =
|
|
3139
|
+
function ya(e, t) {
|
|
3140
|
+
return e = Ne(e), t = fr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Lt(e);
|
|
3131
3141
|
}
|
|
3132
|
-
function
|
|
3142
|
+
function Et(e, t, r) {
|
|
3133
3143
|
try {
|
|
3134
|
-
return
|
|
3144
|
+
return ya(e, t);
|
|
3135
3145
|
} catch {
|
|
3136
3146
|
return e;
|
|
3137
3147
|
}
|
|
3138
3148
|
}
|
|
3139
|
-
function
|
|
3140
|
-
if (e = Ne(e), t =
|
|
3149
|
+
function dr(e, t) {
|
|
3150
|
+
if (e = Ne(e), t = fr(t), e.type.includes("hsl"))
|
|
3141
3151
|
e.values[2] *= 1 - t;
|
|
3142
3152
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
3143
3153
|
for (let r = 0; r < 3; r += 1)
|
|
3144
3154
|
e.values[r] *= 1 - t;
|
|
3145
|
-
return
|
|
3155
|
+
return Lt(e);
|
|
3146
3156
|
}
|
|
3147
3157
|
function re(e, t, r) {
|
|
3148
3158
|
try {
|
|
3149
|
-
return
|
|
3159
|
+
return dr(e, t);
|
|
3150
3160
|
} catch {
|
|
3151
3161
|
return e;
|
|
3152
3162
|
}
|
|
3153
3163
|
}
|
|
3154
|
-
function
|
|
3155
|
-
if (e = Ne(e), t =
|
|
3164
|
+
function pr(e, t) {
|
|
3165
|
+
if (e = Ne(e), t = fr(t), e.type.includes("hsl"))
|
|
3156
3166
|
e.values[2] += (100 - e.values[2]) * t;
|
|
3157
3167
|
else if (e.type.includes("rgb"))
|
|
3158
3168
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -3160,28 +3170,28 @@ function dr(e, t) {
|
|
|
3160
3170
|
else if (e.type.includes("color"))
|
|
3161
3171
|
for (let r = 0; r < 3; r += 1)
|
|
3162
3172
|
e.values[r] += (1 - e.values[r]) * t;
|
|
3163
|
-
return
|
|
3173
|
+
return Lt(e);
|
|
3164
3174
|
}
|
|
3165
3175
|
function ne(e, t, r) {
|
|
3166
3176
|
try {
|
|
3167
|
-
return
|
|
3177
|
+
return pr(e, t);
|
|
3168
3178
|
} catch {
|
|
3169
3179
|
return e;
|
|
3170
3180
|
}
|
|
3171
3181
|
}
|
|
3172
|
-
function
|
|
3173
|
-
return
|
|
3182
|
+
function ba(e, t = 0.15) {
|
|
3183
|
+
return nr(e) > 0.5 ? dr(e, t) : pr(e, t);
|
|
3174
3184
|
}
|
|
3175
|
-
function
|
|
3185
|
+
function Ct(e, t, r) {
|
|
3176
3186
|
try {
|
|
3177
|
-
return
|
|
3187
|
+
return ba(e, t);
|
|
3178
3188
|
} catch {
|
|
3179
3189
|
return e;
|
|
3180
3190
|
}
|
|
3181
3191
|
}
|
|
3182
|
-
const
|
|
3192
|
+
const va = /* @__PURE__ */ Ie.createContext(void 0);
|
|
3183
3193
|
process.env.NODE_ENV !== "production" && (K.node, K.object);
|
|
3184
|
-
function
|
|
3194
|
+
function Sa(e) {
|
|
3185
3195
|
const {
|
|
3186
3196
|
theme: t,
|
|
3187
3197
|
name: r,
|
|
@@ -3190,14 +3200,14 @@ function ba(e) {
|
|
|
3190
3200
|
if (!t || !t.components || !t.components[r])
|
|
3191
3201
|
return n;
|
|
3192
3202
|
const o = t.components[r];
|
|
3193
|
-
return o.defaultProps ?
|
|
3203
|
+
return o.defaultProps ? rr(o.defaultProps, n) : !o.styleOverrides && !o.variants ? rr(o, n) : n;
|
|
3194
3204
|
}
|
|
3195
|
-
function
|
|
3205
|
+
function Ea({
|
|
3196
3206
|
props: e,
|
|
3197
3207
|
name: t
|
|
3198
3208
|
}) {
|
|
3199
|
-
const r = Ie.useContext(
|
|
3200
|
-
return
|
|
3209
|
+
const r = Ie.useContext(va);
|
|
3210
|
+
return Sa({
|
|
3201
3211
|
props: e,
|
|
3202
3212
|
name: t,
|
|
3203
3213
|
theme: {
|
|
@@ -3205,17 +3215,17 @@ function va({
|
|
|
3205
3215
|
}
|
|
3206
3216
|
});
|
|
3207
3217
|
}
|
|
3208
|
-
const
|
|
3218
|
+
const sn = {
|
|
3209
3219
|
theme: void 0
|
|
3210
3220
|
};
|
|
3211
|
-
function
|
|
3221
|
+
function Ca(e) {
|
|
3212
3222
|
let t, r;
|
|
3213
3223
|
return function(o) {
|
|
3214
3224
|
let i = t;
|
|
3215
|
-
return (i === void 0 || o.theme !== r) && (
|
|
3225
|
+
return (i === void 0 || o.theme !== r) && (sn.theme = o.theme, i = kn(e(sn)), t = i, r = o.theme), i;
|
|
3216
3226
|
};
|
|
3217
3227
|
}
|
|
3218
|
-
function
|
|
3228
|
+
function xa(e = "") {
|
|
3219
3229
|
function t(...n) {
|
|
3220
3230
|
if (!n.length)
|
|
3221
3231
|
return "";
|
|
@@ -3224,32 +3234,32 @@ function Ea(e = "") {
|
|
|
3224
3234
|
}
|
|
3225
3235
|
return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${t(...o)})`;
|
|
3226
3236
|
}
|
|
3227
|
-
const
|
|
3237
|
+
const cn = (e, t, r, n = []) => {
|
|
3228
3238
|
let o = e;
|
|
3229
3239
|
t.forEach((i, c) => {
|
|
3230
3240
|
c === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
|
|
3231
3241
|
});
|
|
3232
|
-
},
|
|
3242
|
+
}, Ta = (e, t, r) => {
|
|
3233
3243
|
function n(o, i = [], c = []) {
|
|
3234
3244
|
Object.entries(o).forEach(([u, f]) => {
|
|
3235
3245
|
(!r || r && !r([...i, u])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...i, u], Array.isArray(f) ? [...c, u] : c) : t([...i, u], f, c));
|
|
3236
3246
|
});
|
|
3237
3247
|
}
|
|
3238
3248
|
n(e);
|
|
3239
|
-
},
|
|
3240
|
-
function
|
|
3249
|
+
}, wa = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
|
|
3250
|
+
function er(e, t) {
|
|
3241
3251
|
const {
|
|
3242
3252
|
prefix: r,
|
|
3243
3253
|
shouldSkipGeneratingVar: n
|
|
3244
3254
|
} = t || {}, o = {}, i = {}, c = {};
|
|
3245
|
-
return
|
|
3255
|
+
return Ta(
|
|
3246
3256
|
e,
|
|
3247
3257
|
(u, f, d) => {
|
|
3248
3258
|
if ((typeof f == "string" || typeof f == "number") && (!n || !n(u, f))) {
|
|
3249
|
-
const m = `--${r ? `${r}-` : ""}${u.join("-")}`, p =
|
|
3259
|
+
const m = `--${r ? `${r}-` : ""}${u.join("-")}`, p = wa(u, f);
|
|
3250
3260
|
Object.assign(o, {
|
|
3251
3261
|
[m]: p
|
|
3252
|
-
}),
|
|
3262
|
+
}), cn(i, u, `var(${m})`, d), cn(c, u, `var(${m}, ${p})`, d);
|
|
3253
3263
|
}
|
|
3254
3264
|
},
|
|
3255
3265
|
(u) => u[0] === "vars"
|
|
@@ -3260,7 +3270,7 @@ function Zt(e, t) {
|
|
|
3260
3270
|
varsWithDefaults: c
|
|
3261
3271
|
};
|
|
3262
3272
|
}
|
|
3263
|
-
function
|
|
3273
|
+
function _a(e, t = {}) {
|
|
3264
3274
|
const {
|
|
3265
3275
|
getSelector: r = T,
|
|
3266
3276
|
disableCssColorScheme: n,
|
|
@@ -3274,7 +3284,7 @@ function Ta(e, t = {}) {
|
|
|
3274
3284
|
vars: d,
|
|
3275
3285
|
css: m,
|
|
3276
3286
|
varsWithDefaults: p
|
|
3277
|
-
} =
|
|
3287
|
+
} = er(f, t);
|
|
3278
3288
|
let h = p;
|
|
3279
3289
|
const y = {}, {
|
|
3280
3290
|
[u]: b,
|
|
@@ -3285,7 +3295,7 @@ function Ta(e, t = {}) {
|
|
|
3285
3295
|
vars: E,
|
|
3286
3296
|
css: q,
|
|
3287
3297
|
varsWithDefaults: oe
|
|
3288
|
-
} =
|
|
3298
|
+
} = er($, t);
|
|
3289
3299
|
h = Se(h, oe), y[A] = {
|
|
3290
3300
|
css: q,
|
|
3291
3301
|
vars: E
|
|
@@ -3295,7 +3305,7 @@ function Ta(e, t = {}) {
|
|
|
3295
3305
|
css: A,
|
|
3296
3306
|
vars: $,
|
|
3297
3307
|
varsWithDefaults: E
|
|
3298
|
-
} =
|
|
3308
|
+
} = er(b, t);
|
|
3299
3309
|
h = Se(h, E), y[u] = {
|
|
3300
3310
|
css: A,
|
|
3301
3311
|
vars: $
|
|
@@ -3372,15 +3382,15 @@ function Ta(e, t = {}) {
|
|
|
3372
3382
|
}
|
|
3373
3383
|
};
|
|
3374
3384
|
}
|
|
3375
|
-
function
|
|
3385
|
+
function Oa(e) {
|
|
3376
3386
|
return function(r) {
|
|
3377
3387
|
return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
|
|
3378
3388
|
};
|
|
3379
3389
|
}
|
|
3380
|
-
const
|
|
3390
|
+
const lt = {
|
|
3381
3391
|
black: "#000",
|
|
3382
3392
|
white: "#fff"
|
|
3383
|
-
},
|
|
3393
|
+
}, Ra = {
|
|
3384
3394
|
50: "#fafafa",
|
|
3385
3395
|
100: "#f5f5f5",
|
|
3386
3396
|
200: "#eeeeee",
|
|
@@ -3408,7 +3418,7 @@ const ct = {
|
|
|
3408
3418
|
500: "#f44336",
|
|
3409
3419
|
700: "#d32f2f",
|
|
3410
3420
|
800: "#c62828"
|
|
3411
|
-
},
|
|
3421
|
+
}, it = {
|
|
3412
3422
|
300: "#ffb74d",
|
|
3413
3423
|
400: "#ffa726",
|
|
3414
3424
|
500: "#ff9800",
|
|
@@ -3434,7 +3444,7 @@ const ct = {
|
|
|
3434
3444
|
800: "#2e7d32",
|
|
3435
3445
|
900: "#1b5e20"
|
|
3436
3446
|
};
|
|
3437
|
-
function
|
|
3447
|
+
function jn() {
|
|
3438
3448
|
return {
|
|
3439
3449
|
// The colors used to style the text.
|
|
3440
3450
|
text: {
|
|
@@ -3450,8 +3460,8 @@ function Pn() {
|
|
|
3450
3460
|
// The background colors used to style the surfaces.
|
|
3451
3461
|
// Consistency between these values is important.
|
|
3452
3462
|
background: {
|
|
3453
|
-
paper:
|
|
3454
|
-
default:
|
|
3463
|
+
paper: lt.white,
|
|
3464
|
+
default: lt.white
|
|
3455
3465
|
},
|
|
3456
3466
|
// The colors used to style the action elements.
|
|
3457
3467
|
action: {
|
|
@@ -3474,11 +3484,11 @@ function Pn() {
|
|
|
3474
3484
|
}
|
|
3475
3485
|
};
|
|
3476
3486
|
}
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3487
|
+
const Aa = jn();
|
|
3488
|
+
function Nn() {
|
|
3479
3489
|
return {
|
|
3480
3490
|
text: {
|
|
3481
|
-
primary:
|
|
3491
|
+
primary: lt.white,
|
|
3482
3492
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
3483
3493
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
3484
3494
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -3489,7 +3499,7 @@ function In() {
|
|
|
3489
3499
|
default: "#121212"
|
|
3490
3500
|
},
|
|
3491
3501
|
action: {
|
|
3492
|
-
active:
|
|
3502
|
+
active: lt.white,
|
|
3493
3503
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
3494
3504
|
hoverOpacity: 0.08,
|
|
3495
3505
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -3503,12 +3513,12 @@ function In() {
|
|
|
3503
3513
|
}
|
|
3504
3514
|
};
|
|
3505
3515
|
}
|
|
3506
|
-
const
|
|
3507
|
-
function
|
|
3516
|
+
const ln = Nn();
|
|
3517
|
+
function un(e, t, r, n) {
|
|
3508
3518
|
const o = n.light || n, i = n.dark || n * 1.5;
|
|
3509
|
-
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light =
|
|
3519
|
+
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = pr(e.main, o) : t === "dark" && (e.dark = dr(e.main, i)));
|
|
3510
3520
|
}
|
|
3511
|
-
function
|
|
3521
|
+
function ka(e = "light") {
|
|
3512
3522
|
return e === "dark" ? {
|
|
3513
3523
|
main: He[200],
|
|
3514
3524
|
light: He[50],
|
|
@@ -3519,7 +3529,7 @@ function Ra(e = "light") {
|
|
|
3519
3529
|
dark: He[800]
|
|
3520
3530
|
};
|
|
3521
3531
|
}
|
|
3522
|
-
function
|
|
3532
|
+
function $a(e = "light") {
|
|
3523
3533
|
return e === "dark" ? {
|
|
3524
3534
|
main: qe[200],
|
|
3525
3535
|
light: qe[50],
|
|
@@ -3530,7 +3540,7 @@ function Aa(e = "light") {
|
|
|
3530
3540
|
dark: qe[700]
|
|
3531
3541
|
};
|
|
3532
3542
|
}
|
|
3533
|
-
function
|
|
3543
|
+
function Pa(e = "light") {
|
|
3534
3544
|
return e === "dark" ? {
|
|
3535
3545
|
main: Ke[500],
|
|
3536
3546
|
light: Ke[300],
|
|
@@ -3541,7 +3551,7 @@ function ka(e = "light") {
|
|
|
3541
3551
|
dark: Ke[800]
|
|
3542
3552
|
};
|
|
3543
3553
|
}
|
|
3544
|
-
function
|
|
3554
|
+
function Ia(e = "light") {
|
|
3545
3555
|
return e === "dark" ? {
|
|
3546
3556
|
main: Je[400],
|
|
3547
3557
|
light: Je[300],
|
|
@@ -3552,7 +3562,7 @@ function $a(e = "light") {
|
|
|
3552
3562
|
dark: Je[900]
|
|
3553
3563
|
};
|
|
3554
3564
|
}
|
|
3555
|
-
function
|
|
3565
|
+
function ja(e = "light") {
|
|
3556
3566
|
return e === "dark" ? {
|
|
3557
3567
|
main: Xe[400],
|
|
3558
3568
|
light: Xe[300],
|
|
@@ -3563,29 +3573,29 @@ function Pa(e = "light") {
|
|
|
3563
3573
|
dark: Xe[900]
|
|
3564
3574
|
};
|
|
3565
3575
|
}
|
|
3566
|
-
function
|
|
3576
|
+
function Na(e = "light") {
|
|
3567
3577
|
return e === "dark" ? {
|
|
3568
|
-
main:
|
|
3569
|
-
light:
|
|
3570
|
-
dark:
|
|
3578
|
+
main: it[400],
|
|
3579
|
+
light: it[300],
|
|
3580
|
+
dark: it[700]
|
|
3571
3581
|
} : {
|
|
3572
3582
|
main: "#ed6c02",
|
|
3573
3583
|
// closest to orange[800] that pass 3:1.
|
|
3574
|
-
light:
|
|
3575
|
-
dark:
|
|
3584
|
+
light: it[500],
|
|
3585
|
+
dark: it[900]
|
|
3576
3586
|
};
|
|
3577
3587
|
}
|
|
3578
|
-
function
|
|
3588
|
+
function mr(e) {
|
|
3579
3589
|
const {
|
|
3580
3590
|
mode: t = "light",
|
|
3581
3591
|
contrastThreshold: r = 3,
|
|
3582
3592
|
tonalOffset: n = 0.2,
|
|
3583
3593
|
...o
|
|
3584
|
-
} = e, i = e.primary ||
|
|
3594
|
+
} = e, i = e.primary || ka(t), c = e.secondary || $a(t), u = e.error || Pa(t), f = e.info || Ia(t), d = e.success || ja(t), m = e.warning || Na(t);
|
|
3585
3595
|
function p(l) {
|
|
3586
|
-
const T =
|
|
3596
|
+
const T = an(l, ln.text.primary) >= r ? ln.text.primary : Aa.text.primary;
|
|
3587
3597
|
if (process.env.NODE_ENV !== "production") {
|
|
3588
|
-
const S =
|
|
3598
|
+
const S = an(l, T);
|
|
3589
3599
|
S < 3 && console.error([`MUI: The contrast ratio of ${S}:1 for ${T} on ${l}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
3590
3600
|
`));
|
|
3591
3601
|
}
|
|
@@ -3618,13 +3628,13 @@ const theme1 = createTheme({ palette: {
|
|
|
3618
3628
|
const theme2 = createTheme({ palette: {
|
|
3619
3629
|
primary: { main: green[500] },
|
|
3620
3630
|
} });` : je(12, T ? ` (${T})` : "", JSON.stringify(l.main)));
|
|
3621
|
-
return
|
|
3631
|
+
return un(l, "light", w, n), un(l, "dark", A, n), l.contrastText || (l.contrastText = p(l.main)), l;
|
|
3622
3632
|
};
|
|
3623
3633
|
let y;
|
|
3624
|
-
return t === "light" ? y =
|
|
3634
|
+
return t === "light" ? y = jn() : t === "dark" && (y = Nn()), process.env.NODE_ENV !== "production" && (y || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Se({
|
|
3625
3635
|
// A collection of common colors.
|
|
3626
3636
|
common: {
|
|
3627
|
-
...
|
|
3637
|
+
...lt
|
|
3628
3638
|
},
|
|
3629
3639
|
// prevent mutable object.
|
|
3630
3640
|
// The palette mode, can be light or dark.
|
|
@@ -3663,7 +3673,7 @@ const theme2 = createTheme({ palette: {
|
|
|
3663
3673
|
name: "success"
|
|
3664
3674
|
}),
|
|
3665
3675
|
// The grey colors.
|
|
3666
|
-
grey:
|
|
3676
|
+
grey: Ra,
|
|
3667
3677
|
// Used by `getContrastText()` to maximize the contrast between
|
|
3668
3678
|
// the background and the text.
|
|
3669
3679
|
contrastThreshold: r,
|
|
@@ -3679,14 +3689,14 @@ const theme2 = createTheme({ palette: {
|
|
|
3679
3689
|
...y
|
|
3680
3690
|
}, o);
|
|
3681
3691
|
}
|
|
3682
|
-
function
|
|
3692
|
+
function Da(e) {
|
|
3683
3693
|
const t = {};
|
|
3684
3694
|
return Object.entries(e).forEach((n) => {
|
|
3685
3695
|
const [o, i] = n;
|
|
3686
3696
|
typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
|
|
3687
3697
|
}), t;
|
|
3688
3698
|
}
|
|
3689
|
-
function
|
|
3699
|
+
function Ma(e, t) {
|
|
3690
3700
|
return {
|
|
3691
3701
|
toolbar: {
|
|
3692
3702
|
minHeight: 56,
|
|
@@ -3702,15 +3712,15 @@ function Na(e, t) {
|
|
|
3702
3712
|
...t
|
|
3703
3713
|
};
|
|
3704
3714
|
}
|
|
3705
|
-
function
|
|
3715
|
+
function Ba(e) {
|
|
3706
3716
|
return Math.round(e * 1e5) / 1e5;
|
|
3707
3717
|
}
|
|
3708
|
-
const
|
|
3718
|
+
const fn = {
|
|
3709
3719
|
textTransform: "uppercase"
|
|
3710
|
-
},
|
|
3711
|
-
function
|
|
3720
|
+
}, dn = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
3721
|
+
function Fa(e, t) {
|
|
3712
3722
|
const {
|
|
3713
|
-
fontFamily: r =
|
|
3723
|
+
fontFamily: r = dn,
|
|
3714
3724
|
// The default font size of the Material Specification.
|
|
3715
3725
|
fontSize: n = 14,
|
|
3716
3726
|
// px
|
|
@@ -3735,8 +3745,8 @@ function Ma(e, t) {
|
|
|
3735
3745
|
lineHeight: w,
|
|
3736
3746
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
3737
3747
|
// across font-families can cause issues with the kerning.
|
|
3738
|
-
...r ===
|
|
3739
|
-
letterSpacing: `${
|
|
3748
|
+
...r === dn ? {
|
|
3749
|
+
letterSpacing: `${Ba(A / S)}em`
|
|
3740
3750
|
} : {},
|
|
3741
3751
|
...$,
|
|
3742
3752
|
...d
|
|
@@ -3751,9 +3761,9 @@ function Ma(e, t) {
|
|
|
3751
3761
|
subtitle2: b(c, 14, 1.57, 0.1),
|
|
3752
3762
|
body1: b(i, 16, 1.5, 0.15),
|
|
3753
3763
|
body2: b(i, 14, 1.43, 0.15),
|
|
3754
|
-
button: b(c, 14, 1.75, 0.4,
|
|
3764
|
+
button: b(c, 14, 1.75, 0.4, fn),
|
|
3755
3765
|
caption: b(i, 12, 1.66, 0.4),
|
|
3756
|
-
overline: b(i, 12, 2.66, 1,
|
|
3766
|
+
overline: b(i, 12, 2.66, 1, fn),
|
|
3757
3767
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
3758
3768
|
inherit: {
|
|
3759
3769
|
fontFamily: "inherit",
|
|
@@ -3778,11 +3788,11 @@ function Ma(e, t) {
|
|
|
3778
3788
|
// No need to clone deep
|
|
3779
3789
|
});
|
|
3780
3790
|
}
|
|
3781
|
-
const
|
|
3791
|
+
const La = 0.2, Va = 0.14, Wa = 0.12;
|
|
3782
3792
|
function ie(...e) {
|
|
3783
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
3793
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${La})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Va})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Wa})`].join(",");
|
|
3784
3794
|
}
|
|
3785
|
-
const
|
|
3795
|
+
const za = ["none", ie(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ie(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ie(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ie(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ie(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ie(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ie(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ie(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ie(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ie(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ie(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ie(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ie(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ie(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ie(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ie(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ie(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ie(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ie(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ie(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ie(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ie(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ie(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ie(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ya = {
|
|
3786
3796
|
// This is the most common easing curve.
|
|
3787
3797
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3788
3798
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -3792,7 +3802,7 @@ const Va = ["none", ie(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ie(0, 3, 1, -2, 0,
|
|
|
3792
3802
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
3793
3803
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
3794
3804
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
3795
|
-
},
|
|
3805
|
+
}, Ua = {
|
|
3796
3806
|
shortest: 150,
|
|
3797
3807
|
shorter: 200,
|
|
3798
3808
|
short: 250,
|
|
@@ -3805,25 +3815,25 @@ const Va = ["none", ie(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ie(0, 3, 1, -2, 0,
|
|
|
3805
3815
|
// recommended when something is leaving screen
|
|
3806
3816
|
leavingScreen: 195
|
|
3807
3817
|
};
|
|
3808
|
-
function
|
|
3818
|
+
function pn(e) {
|
|
3809
3819
|
return `${Math.round(e)}ms`;
|
|
3810
3820
|
}
|
|
3811
|
-
function
|
|
3821
|
+
function Ga(e) {
|
|
3812
3822
|
if (!e)
|
|
3813
3823
|
return 0;
|
|
3814
3824
|
const t = e / 36;
|
|
3815
3825
|
return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
|
|
3816
3826
|
}
|
|
3817
|
-
function
|
|
3827
|
+
function qa(e) {
|
|
3818
3828
|
const t = {
|
|
3819
|
-
...
|
|
3829
|
+
...Ya,
|
|
3820
3830
|
...e.easing
|
|
3821
3831
|
}, r = {
|
|
3822
|
-
...
|
|
3832
|
+
...Ua,
|
|
3823
3833
|
...e.duration
|
|
3824
3834
|
};
|
|
3825
3835
|
return {
|
|
3826
|
-
getAutoHeightDuration:
|
|
3836
|
+
getAutoHeightDuration: Ga,
|
|
3827
3837
|
create: (o = ["all"], i = {}) => {
|
|
3828
3838
|
const {
|
|
3829
3839
|
duration: c = r.standard,
|
|
@@ -3836,14 +3846,14 @@ function Ua(e) {
|
|
|
3836
3846
|
!m(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(c) && !m(c) && console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`), m(u) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !m(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
3837
3847
|
`)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
|
|
3838
3848
|
}
|
|
3839
|
-
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof c == "string" ? c :
|
|
3849
|
+
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof c == "string" ? c : pn(c)} ${u} ${typeof f == "string" ? f : pn(f)}`).join(",");
|
|
3840
3850
|
},
|
|
3841
3851
|
...e,
|
|
3842
3852
|
easing: t,
|
|
3843
3853
|
duration: r
|
|
3844
3854
|
};
|
|
3845
3855
|
}
|
|
3846
|
-
const
|
|
3856
|
+
const Ka = {
|
|
3847
3857
|
mobileStepper: 1e3,
|
|
3848
3858
|
fab: 1050,
|
|
3849
3859
|
speedDial: 1050,
|
|
@@ -3853,10 +3863,10 @@ const Ga = {
|
|
|
3853
3863
|
snackbar: 1400,
|
|
3854
3864
|
tooltip: 1500
|
|
3855
3865
|
};
|
|
3856
|
-
function
|
|
3866
|
+
function Ha(e) {
|
|
3857
3867
|
return Ae(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
3858
3868
|
}
|
|
3859
|
-
function
|
|
3869
|
+
function Dn(e = {}) {
|
|
3860
3870
|
const t = {
|
|
3861
3871
|
...e
|
|
3862
3872
|
};
|
|
@@ -3864,7 +3874,7 @@ function jn(e = {}) {
|
|
|
3864
3874
|
const o = Object.entries(n);
|
|
3865
3875
|
for (let i = 0; i < o.length; i++) {
|
|
3866
3876
|
const [c, u] = o[i];
|
|
3867
|
-
!
|
|
3877
|
+
!Ha(u) || c.startsWith("unstable_") ? delete n[c] : Ae(u) && (n[c] = {
|
|
3868
3878
|
...u
|
|
3869
3879
|
}, r(n[c]));
|
|
3870
3880
|
}
|
|
@@ -3878,7 +3888,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
3878
3888
|
|
|
3879
3889
|
export default theme;`;
|
|
3880
3890
|
}
|
|
3881
|
-
function
|
|
3891
|
+
function or(e = {}, ...t) {
|
|
3882
3892
|
const {
|
|
3883
3893
|
breakpoints: r,
|
|
3884
3894
|
mixins: n = {},
|
|
@@ -3893,16 +3903,16 @@ function nr(e = {}, ...t) {
|
|
|
3893
3903
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
3894
3904
|
e.generateThemeVars === void 0)
|
|
3895
3905
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : je(20));
|
|
3896
|
-
const m =
|
|
3906
|
+
const m = mr(i), p = An(e);
|
|
3897
3907
|
let h = Se(p, {
|
|
3898
|
-
mixins:
|
|
3908
|
+
mixins: Ma(p.breakpoints, n),
|
|
3899
3909
|
palette: m,
|
|
3900
3910
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
3901
|
-
shadows:
|
|
3902
|
-
typography:
|
|
3903
|
-
transitions:
|
|
3911
|
+
shadows: za.slice(),
|
|
3912
|
+
typography: Fa(m, u),
|
|
3913
|
+
transitions: qa(c),
|
|
3904
3914
|
zIndex: {
|
|
3905
|
-
...
|
|
3915
|
+
...Ka
|
|
3906
3916
|
}
|
|
3907
3917
|
});
|
|
3908
3918
|
if (h = Se(h, d), h = t.reduce((y, b) => Se(y, b), h), process.env.NODE_ENV !== "production") {
|
|
@@ -3912,7 +3922,7 @@ function nr(e = {}, ...t) {
|
|
|
3912
3922
|
const w = l[S];
|
|
3913
3923
|
if (y.includes(S) && Object.keys(w).length > 0) {
|
|
3914
3924
|
if (process.env.NODE_ENV !== "production") {
|
|
3915
|
-
const A =
|
|
3925
|
+
const A = cr("", S);
|
|
3916
3926
|
console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${S}\` internal state.`, "You can not override it like this: ", JSON.stringify(l, null, 2), "", `Instead, you need to use the '&.${A}' syntax:`, JSON.stringify({
|
|
3917
3927
|
root: {
|
|
3918
3928
|
[`&.${A}`]: w
|
|
@@ -3930,26 +3940,26 @@ function nr(e = {}, ...t) {
|
|
|
3930
3940
|
});
|
|
3931
3941
|
}
|
|
3932
3942
|
return h.unstable_sxConfig = {
|
|
3933
|
-
...
|
|
3943
|
+
...Ft,
|
|
3934
3944
|
...d?.unstable_sxConfig
|
|
3935
3945
|
}, h.unstable_sx = function(b) {
|
|
3936
3946
|
return et({
|
|
3937
3947
|
sx: b,
|
|
3938
3948
|
theme: this
|
|
3939
3949
|
});
|
|
3940
|
-
}, h.toRuntimeSource =
|
|
3950
|
+
}, h.toRuntimeSource = Dn, h;
|
|
3941
3951
|
}
|
|
3942
|
-
function
|
|
3952
|
+
function Ja(e) {
|
|
3943
3953
|
let t;
|
|
3944
3954
|
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
3945
3955
|
}
|
|
3946
|
-
const
|
|
3956
|
+
const Xa = [...Array(25)].map((e, t) => {
|
|
3947
3957
|
if (t === 0)
|
|
3948
3958
|
return "none";
|
|
3949
|
-
const r =
|
|
3959
|
+
const r = Ja(t);
|
|
3950
3960
|
return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
|
|
3951
3961
|
});
|
|
3952
|
-
function
|
|
3962
|
+
function Mn(e) {
|
|
3953
3963
|
return {
|
|
3954
3964
|
inputPlaceholder: e === "dark" ? 0.5 : 0.42,
|
|
3955
3965
|
inputUnderline: e === "dark" ? 0.7 : 0.42,
|
|
@@ -3957,10 +3967,10 @@ function Nn(e) {
|
|
|
3957
3967
|
switchTrack: e === "dark" ? 0.3 : 0.38
|
|
3958
3968
|
};
|
|
3959
3969
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return e === "dark" ?
|
|
3970
|
+
function Bn(e) {
|
|
3971
|
+
return e === "dark" ? Xa : [];
|
|
3962
3972
|
}
|
|
3963
|
-
function
|
|
3973
|
+
function Qa(e) {
|
|
3964
3974
|
const {
|
|
3965
3975
|
palette: t = {
|
|
3966
3976
|
mode: "light"
|
|
@@ -3969,28 +3979,28 @@ function Ja(e) {
|
|
|
3969
3979
|
opacity: r,
|
|
3970
3980
|
overlays: n,
|
|
3971
3981
|
...o
|
|
3972
|
-
} = e, i =
|
|
3982
|
+
} = e, i = mr(t);
|
|
3973
3983
|
return {
|
|
3974
3984
|
palette: i,
|
|
3975
3985
|
opacity: {
|
|
3976
|
-
...
|
|
3986
|
+
...Mn(i.mode),
|
|
3977
3987
|
...r
|
|
3978
3988
|
},
|
|
3979
|
-
overlays: n ||
|
|
3989
|
+
overlays: n || Bn(i.mode),
|
|
3980
3990
|
...o
|
|
3981
3991
|
};
|
|
3982
3992
|
}
|
|
3983
|
-
function
|
|
3993
|
+
function Za(e) {
|
|
3984
3994
|
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
3985
3995
|
e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
3986
3996
|
}
|
|
3987
|
-
const
|
|
3997
|
+
const es = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], ts = (e) => (t, r) => {
|
|
3988
3998
|
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
3989
3999
|
let i = o;
|
|
3990
4000
|
if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
|
|
3991
4001
|
if (t === "dark") {
|
|
3992
4002
|
const c = {};
|
|
3993
|
-
return
|
|
4003
|
+
return es(e.cssVarPrefix).forEach((u) => {
|
|
3994
4004
|
c[u] = r[u], delete r[u];
|
|
3995
4005
|
}), i === "media" ? {
|
|
3996
4006
|
[n]: r,
|
|
@@ -4021,7 +4031,7 @@ const Qa = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlay
|
|
|
4021
4031
|
}
|
|
4022
4032
|
return n;
|
|
4023
4033
|
};
|
|
4024
|
-
function
|
|
4034
|
+
function rs(e, t) {
|
|
4025
4035
|
t.forEach((r) => {
|
|
4026
4036
|
e[r] || (e[r] = {});
|
|
4027
4037
|
});
|
|
@@ -4029,14 +4039,14 @@ function es(e, t) {
|
|
|
4029
4039
|
function g(e, t, r) {
|
|
4030
4040
|
!e[t] && r && (e[t] = r);
|
|
4031
4041
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return typeof e != "string" || !e.startsWith("hsl") ? e :
|
|
4042
|
+
function st(e) {
|
|
4043
|
+
return typeof e != "string" || !e.startsWith("hsl") ? e : In(e);
|
|
4034
4044
|
}
|
|
4035
4045
|
function Re(e, t) {
|
|
4036
|
-
`${t}Channel` in e || (e[`${t}Channel`] =
|
|
4046
|
+
`${t}Channel` in e || (e[`${t}Channel`] = at(st(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
4037
4047
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
4038
4048
|
}
|
|
4039
|
-
function
|
|
4049
|
+
function ns(e) {
|
|
4040
4050
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
4041
4051
|
}
|
|
4042
4052
|
const Oe = (e) => {
|
|
@@ -4044,14 +4054,14 @@ const Oe = (e) => {
|
|
|
4044
4054
|
return e();
|
|
4045
4055
|
} catch {
|
|
4046
4056
|
}
|
|
4047
|
-
},
|
|
4048
|
-
function
|
|
4057
|
+
}, os = (e = "mui") => xa(e);
|
|
4058
|
+
function tr(e, t, r, n) {
|
|
4049
4059
|
if (!t)
|
|
4050
4060
|
return;
|
|
4051
4061
|
t = t === !0 ? {} : t;
|
|
4052
4062
|
const o = n === "dark" ? "dark" : "light";
|
|
4053
4063
|
if (!r) {
|
|
4054
|
-
e[n] =
|
|
4064
|
+
e[n] = Qa({
|
|
4055
4065
|
...t,
|
|
4056
4066
|
palette: {
|
|
4057
4067
|
mode: o,
|
|
@@ -4063,7 +4073,7 @@ function er(e, t, r, n) {
|
|
|
4063
4073
|
const {
|
|
4064
4074
|
palette: i,
|
|
4065
4075
|
...c
|
|
4066
|
-
} =
|
|
4076
|
+
} = or({
|
|
4067
4077
|
...r,
|
|
4068
4078
|
palette: {
|
|
4069
4079
|
mode: o,
|
|
@@ -4074,13 +4084,13 @@ function er(e, t, r, n) {
|
|
|
4074
4084
|
...t,
|
|
4075
4085
|
palette: i,
|
|
4076
4086
|
opacity: {
|
|
4077
|
-
...
|
|
4087
|
+
...Mn(o),
|
|
4078
4088
|
...t?.opacity
|
|
4079
4089
|
},
|
|
4080
|
-
overlays: t?.overlays ||
|
|
4090
|
+
overlays: t?.overlays || Bn(o)
|
|
4081
4091
|
}, c;
|
|
4082
4092
|
}
|
|
4083
|
-
function
|
|
4093
|
+
function is(e = {}, ...t) {
|
|
4084
4094
|
const {
|
|
4085
4095
|
colorSchemes: r = {
|
|
4086
4096
|
light: !0
|
|
@@ -4088,11 +4098,11 @@ function ns(e = {}, ...t) {
|
|
|
4088
4098
|
defaultColorScheme: n,
|
|
4089
4099
|
disableCssColorScheme: o = !1,
|
|
4090
4100
|
cssVarPrefix: i = "mui",
|
|
4091
|
-
shouldSkipGeneratingVar: c =
|
|
4101
|
+
shouldSkipGeneratingVar: c = Za,
|
|
4092
4102
|
colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
|
|
4093
4103
|
rootSelector: f = ":root",
|
|
4094
4104
|
...d
|
|
4095
|
-
} = e, m = Object.keys(r)[0], p = n || (r.light && m !== "light" ? "light" : m), h =
|
|
4105
|
+
} = e, m = Object.keys(r)[0], p = n || (r.light && m !== "light" ? "light" : m), h = os(i), {
|
|
4096
4106
|
[p]: y,
|
|
4097
4107
|
light: b,
|
|
4098
4108
|
dark: l,
|
|
@@ -4103,8 +4113,8 @@ function ns(e = {}, ...t) {
|
|
|
4103
4113
|
let w = y;
|
|
4104
4114
|
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (w = !0), !w)
|
|
4105
4115
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : je(21, p));
|
|
4106
|
-
const A =
|
|
4107
|
-
b && !S.light &&
|
|
4116
|
+
const A = tr(S, w, d, p);
|
|
4117
|
+
b && !S.light && tr(S, b, void 0, "light"), l && !S.dark && tr(S, l, void 0, "dark");
|
|
4108
4118
|
let $ = {
|
|
4109
4119
|
defaultColorScheme: p,
|
|
4110
4120
|
...A,
|
|
@@ -4114,66 +4124,66 @@ function ns(e = {}, ...t) {
|
|
|
4114
4124
|
getCssVar: h,
|
|
4115
4125
|
colorSchemes: S,
|
|
4116
4126
|
font: {
|
|
4117
|
-
...
|
|
4127
|
+
...Da(A.typography),
|
|
4118
4128
|
...A.font
|
|
4119
4129
|
},
|
|
4120
|
-
spacing:
|
|
4130
|
+
spacing: ns(d.spacing)
|
|
4121
4131
|
};
|
|
4122
4132
|
Object.keys($.colorSchemes).forEach((W) => {
|
|
4123
4133
|
const a = $.colorSchemes[W].palette, O = (U) => {
|
|
4124
4134
|
const N = U.split("-"), le = N[1], ae = N[2];
|
|
4125
4135
|
return h(U, a[le][ae]);
|
|
4126
4136
|
};
|
|
4127
|
-
if (a.mode === "light" && (g(a.common, "background", "#fff"), g(a.common, "onBackground", "#000")), a.mode === "dark" && (g(a.common, "background", "#000"), g(a.common, "onBackground", "#fff")),
|
|
4137
|
+
if (a.mode === "light" && (g(a.common, "background", "#fff"), g(a.common, "onBackground", "#000")), a.mode === "dark" && (g(a.common, "background", "#000"), g(a.common, "onBackground", "#fff")), rs(a, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), a.mode === "light") {
|
|
4128
4138
|
g(a.Alert, "errorColor", re(a.error.light, 0.6)), g(a.Alert, "infoColor", re(a.info.light, 0.6)), g(a.Alert, "successColor", re(a.success.light, 0.6)), g(a.Alert, "warningColor", re(a.warning.light, 0.6)), g(a.Alert, "errorFilledBg", O("palette-error-main")), g(a.Alert, "infoFilledBg", O("palette-info-main")), g(a.Alert, "successFilledBg", O("palette-success-main")), g(a.Alert, "warningFilledBg", O("palette-warning-main")), g(a.Alert, "errorFilledColor", Oe(() => a.getContrastText(a.error.main))), g(a.Alert, "infoFilledColor", Oe(() => a.getContrastText(a.info.main))), g(a.Alert, "successFilledColor", Oe(() => a.getContrastText(a.success.main))), g(a.Alert, "warningFilledColor", Oe(() => a.getContrastText(a.warning.main))), g(a.Alert, "errorStandardBg", ne(a.error.light, 0.9)), g(a.Alert, "infoStandardBg", ne(a.info.light, 0.9)), g(a.Alert, "successStandardBg", ne(a.success.light, 0.9)), g(a.Alert, "warningStandardBg", ne(a.warning.light, 0.9)), g(a.Alert, "errorIconColor", O("palette-error-main")), g(a.Alert, "infoIconColor", O("palette-info-main")), g(a.Alert, "successIconColor", O("palette-success-main")), g(a.Alert, "warningIconColor", O("palette-warning-main")), g(a.AppBar, "defaultBg", O("palette-grey-100")), g(a.Avatar, "defaultBg", O("palette-grey-400")), g(a.Button, "inheritContainedBg", O("palette-grey-300")), g(a.Button, "inheritContainedHoverBg", O("palette-grey-A100")), g(a.Chip, "defaultBorder", O("palette-grey-400")), g(a.Chip, "defaultAvatarColor", O("palette-grey-700")), g(a.Chip, "defaultIconColor", O("palette-grey-700")), g(a.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), g(a.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), g(a.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), g(a.LinearProgress, "primaryBg", ne(a.primary.main, 0.62)), g(a.LinearProgress, "secondaryBg", ne(a.secondary.main, 0.62)), g(a.LinearProgress, "errorBg", ne(a.error.main, 0.62)), g(a.LinearProgress, "infoBg", ne(a.info.main, 0.62)), g(a.LinearProgress, "successBg", ne(a.success.main, 0.62)), g(a.LinearProgress, "warningBg", ne(a.warning.main, 0.62)), g(a.Skeleton, "bg", `rgba(${O("palette-text-primaryChannel")} / 0.11)`), g(a.Slider, "primaryTrack", ne(a.primary.main, 0.62)), g(a.Slider, "secondaryTrack", ne(a.secondary.main, 0.62)), g(a.Slider, "errorTrack", ne(a.error.main, 0.62)), g(a.Slider, "infoTrack", ne(a.info.main, 0.62)), g(a.Slider, "successTrack", ne(a.success.main, 0.62)), g(a.Slider, "warningTrack", ne(a.warning.main, 0.62));
|
|
4129
|
-
const U =
|
|
4130
|
-
g(a.SnackbarContent, "bg", U), g(a.SnackbarContent, "color", Oe(() => a.getContrastText(U))), g(a.SpeedDialAction, "fabHoverBg",
|
|
4139
|
+
const U = Ct(a.background.default, 0.8);
|
|
4140
|
+
g(a.SnackbarContent, "bg", U), g(a.SnackbarContent, "color", Oe(() => a.getContrastText(U))), g(a.SpeedDialAction, "fabHoverBg", Ct(a.background.paper, 0.15)), g(a.StepConnector, "border", O("palette-grey-400")), g(a.StepContent, "border", O("palette-grey-400")), g(a.Switch, "defaultColor", O("palette-common-white")), g(a.Switch, "defaultDisabledColor", O("palette-grey-100")), g(a.Switch, "primaryDisabledColor", ne(a.primary.main, 0.62)), g(a.Switch, "secondaryDisabledColor", ne(a.secondary.main, 0.62)), g(a.Switch, "errorDisabledColor", ne(a.error.main, 0.62)), g(a.Switch, "infoDisabledColor", ne(a.info.main, 0.62)), g(a.Switch, "successDisabledColor", ne(a.success.main, 0.62)), g(a.Switch, "warningDisabledColor", ne(a.warning.main, 0.62)), g(a.TableCell, "border", ne(Et(a.divider, 1), 0.88)), g(a.Tooltip, "bg", Et(a.grey[700], 0.92));
|
|
4131
4141
|
}
|
|
4132
4142
|
if (a.mode === "dark") {
|
|
4133
4143
|
g(a.Alert, "errorColor", ne(a.error.light, 0.6)), g(a.Alert, "infoColor", ne(a.info.light, 0.6)), g(a.Alert, "successColor", ne(a.success.light, 0.6)), g(a.Alert, "warningColor", ne(a.warning.light, 0.6)), g(a.Alert, "errorFilledBg", O("palette-error-dark")), g(a.Alert, "infoFilledBg", O("palette-info-dark")), g(a.Alert, "successFilledBg", O("palette-success-dark")), g(a.Alert, "warningFilledBg", O("palette-warning-dark")), g(a.Alert, "errorFilledColor", Oe(() => a.getContrastText(a.error.dark))), g(a.Alert, "infoFilledColor", Oe(() => a.getContrastText(a.info.dark))), g(a.Alert, "successFilledColor", Oe(() => a.getContrastText(a.success.dark))), g(a.Alert, "warningFilledColor", Oe(() => a.getContrastText(a.warning.dark))), g(a.Alert, "errorStandardBg", re(a.error.light, 0.9)), g(a.Alert, "infoStandardBg", re(a.info.light, 0.9)), g(a.Alert, "successStandardBg", re(a.success.light, 0.9)), g(a.Alert, "warningStandardBg", re(a.warning.light, 0.9)), g(a.Alert, "errorIconColor", O("palette-error-main")), g(a.Alert, "infoIconColor", O("palette-info-main")), g(a.Alert, "successIconColor", O("palette-success-main")), g(a.Alert, "warningIconColor", O("palette-warning-main")), g(a.AppBar, "defaultBg", O("palette-grey-900")), g(a.AppBar, "darkBg", O("palette-background-paper")), g(a.AppBar, "darkColor", O("palette-text-primary")), g(a.Avatar, "defaultBg", O("palette-grey-600")), g(a.Button, "inheritContainedBg", O("palette-grey-800")), g(a.Button, "inheritContainedHoverBg", O("palette-grey-700")), g(a.Chip, "defaultBorder", O("palette-grey-700")), g(a.Chip, "defaultAvatarColor", O("palette-grey-300")), g(a.Chip, "defaultIconColor", O("palette-grey-300")), g(a.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), g(a.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), g(a.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), g(a.LinearProgress, "primaryBg", re(a.primary.main, 0.5)), g(a.LinearProgress, "secondaryBg", re(a.secondary.main, 0.5)), g(a.LinearProgress, "errorBg", re(a.error.main, 0.5)), g(a.LinearProgress, "infoBg", re(a.info.main, 0.5)), g(a.LinearProgress, "successBg", re(a.success.main, 0.5)), g(a.LinearProgress, "warningBg", re(a.warning.main, 0.5)), g(a.Skeleton, "bg", `rgba(${O("palette-text-primaryChannel")} / 0.13)`), g(a.Slider, "primaryTrack", re(a.primary.main, 0.5)), g(a.Slider, "secondaryTrack", re(a.secondary.main, 0.5)), g(a.Slider, "errorTrack", re(a.error.main, 0.5)), g(a.Slider, "infoTrack", re(a.info.main, 0.5)), g(a.Slider, "successTrack", re(a.success.main, 0.5)), g(a.Slider, "warningTrack", re(a.warning.main, 0.5));
|
|
4134
|
-
const U =
|
|
4135
|
-
g(a.SnackbarContent, "bg", U), g(a.SnackbarContent, "color", Oe(() => a.getContrastText(U))), g(a.SpeedDialAction, "fabHoverBg",
|
|
4144
|
+
const U = Ct(a.background.default, 0.98);
|
|
4145
|
+
g(a.SnackbarContent, "bg", U), g(a.SnackbarContent, "color", Oe(() => a.getContrastText(U))), g(a.SpeedDialAction, "fabHoverBg", Ct(a.background.paper, 0.15)), g(a.StepConnector, "border", O("palette-grey-600")), g(a.StepContent, "border", O("palette-grey-600")), g(a.Switch, "defaultColor", O("palette-grey-300")), g(a.Switch, "defaultDisabledColor", O("palette-grey-600")), g(a.Switch, "primaryDisabledColor", re(a.primary.main, 0.55)), g(a.Switch, "secondaryDisabledColor", re(a.secondary.main, 0.55)), g(a.Switch, "errorDisabledColor", re(a.error.main, 0.55)), g(a.Switch, "infoDisabledColor", re(a.info.main, 0.55)), g(a.Switch, "successDisabledColor", re(a.success.main, 0.55)), g(a.Switch, "warningDisabledColor", re(a.warning.main, 0.55)), g(a.TableCell, "border", re(Et(a.divider, 1), 0.68)), g(a.Tooltip, "bg", Et(a.grey[700], 0.92));
|
|
4136
4146
|
}
|
|
4137
4147
|
Re(a.background, "default"), Re(a.background, "paper"), Re(a.common, "background"), Re(a.common, "onBackground"), Re(a, "divider"), Object.keys(a).forEach((U) => {
|
|
4138
4148
|
const N = a[U];
|
|
4139
|
-
U !== "tonalOffset" && N && typeof N == "object" && (N.main && g(a[U], "mainChannel",
|
|
4149
|
+
U !== "tonalOffset" && N && typeof N == "object" && (N.main && g(a[U], "mainChannel", at(st(N.main))), N.light && g(a[U], "lightChannel", at(st(N.light))), N.dark && g(a[U], "darkChannel", at(st(N.dark))), N.contrastText && g(a[U], "contrastTextChannel", at(st(N.contrastText))), U === "text" && (Re(a[U], "primary"), Re(a[U], "secondary")), U === "action" && (N.active && Re(a[U], "active"), N.selected && Re(a[U], "selected")));
|
|
4140
4150
|
});
|
|
4141
4151
|
}), $ = t.reduce((W, a) => Se(W, a), $);
|
|
4142
4152
|
const E = {
|
|
4143
4153
|
prefix: i,
|
|
4144
4154
|
disableCssColorScheme: o,
|
|
4145
4155
|
shouldSkipGeneratingVar: c,
|
|
4146
|
-
getSelector:
|
|
4156
|
+
getSelector: ts($)
|
|
4147
4157
|
}, {
|
|
4148
4158
|
vars: q,
|
|
4149
4159
|
generateThemeVars: oe,
|
|
4150
4160
|
generateStyleSheets: ee
|
|
4151
|
-
} =
|
|
4161
|
+
} = _a($, E);
|
|
4152
4162
|
return $.vars = q, Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([W, a]) => {
|
|
4153
4163
|
$[W] = a;
|
|
4154
4164
|
}), $.generateThemeVars = oe, $.generateStyleSheets = ee, $.generateSpacing = function() {
|
|
4155
|
-
return
|
|
4156
|
-
}, $.getColorSchemeSelector =
|
|
4157
|
-
...
|
|
4165
|
+
return Rn(d.spacing, lr(this));
|
|
4166
|
+
}, $.getColorSchemeSelector = Oa(u), $.spacing = $.generateSpacing(), $.shouldSkipGeneratingVar = c, $.unstable_sxConfig = {
|
|
4167
|
+
...Ft,
|
|
4158
4168
|
...d?.unstable_sxConfig
|
|
4159
4169
|
}, $.unstable_sx = function(a) {
|
|
4160
4170
|
return et({
|
|
4161
4171
|
sx: a,
|
|
4162
4172
|
theme: this
|
|
4163
4173
|
});
|
|
4164
|
-
}, $.toRuntimeSource =
|
|
4174
|
+
}, $.toRuntimeSource = Dn, $;
|
|
4165
4175
|
}
|
|
4166
|
-
function
|
|
4176
|
+
function mn(e, t, r) {
|
|
4167
4177
|
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
4168
4178
|
...r !== !0 && r,
|
|
4169
|
-
palette:
|
|
4179
|
+
palette: mr({
|
|
4170
4180
|
...r === !0 ? {} : r.palette,
|
|
4171
4181
|
mode: t
|
|
4172
4182
|
})
|
|
4173
4183
|
// cast type to skip module augmentation test
|
|
4174
4184
|
});
|
|
4175
4185
|
}
|
|
4176
|
-
function
|
|
4186
|
+
function Fn(e = {}, ...t) {
|
|
4177
4187
|
const {
|
|
4178
4188
|
palette: r,
|
|
4179
4189
|
cssVariables: n = !1,
|
|
@@ -4193,48 +4203,48 @@ function Mn(e = {}, ...t) {
|
|
|
4193
4203
|
};
|
|
4194
4204
|
if (n === !1) {
|
|
4195
4205
|
if (!("colorSchemes" in e))
|
|
4196
|
-
return
|
|
4206
|
+
return or(e, ...t);
|
|
4197
4207
|
let m = r;
|
|
4198
4208
|
"palette" in e || d[u] && (d[u] !== !0 ? m = d[u].palette : u === "dark" && (m = {
|
|
4199
4209
|
mode: "dark"
|
|
4200
4210
|
}));
|
|
4201
|
-
const p =
|
|
4211
|
+
const p = or({
|
|
4202
4212
|
...e,
|
|
4203
4213
|
palette: m
|
|
4204
4214
|
}, ...t);
|
|
4205
4215
|
return p.defaultColorScheme = u, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
|
|
4206
4216
|
...d.light !== !0 && d.light,
|
|
4207
4217
|
palette: p.palette
|
|
4208
|
-
},
|
|
4218
|
+
}, mn(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
|
|
4209
4219
|
...d.dark !== !0 && d.dark,
|
|
4210
4220
|
palette: p.palette
|
|
4211
|
-
},
|
|
4221
|
+
}, mn(p, "light", d.light)), p;
|
|
4212
4222
|
}
|
|
4213
|
-
return !r && !("light" in d) && u === "light" && (d.light = !0),
|
|
4223
|
+
return !r && !("light" in d) && u === "light" && (d.light = !0), is({
|
|
4214
4224
|
...c,
|
|
4215
4225
|
colorSchemes: d,
|
|
4216
4226
|
defaultColorScheme: u,
|
|
4217
4227
|
...typeof n != "boolean" && n
|
|
4218
4228
|
}, ...t);
|
|
4219
4229
|
}
|
|
4220
|
-
const
|
|
4221
|
-
function
|
|
4230
|
+
const as = Fn(), ss = "$$material";
|
|
4231
|
+
function cs(e) {
|
|
4222
4232
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
4223
4233
|
}
|
|
4224
|
-
const
|
|
4225
|
-
themeId:
|
|
4226
|
-
defaultTheme:
|
|
4227
|
-
rootShouldForwardProp:
|
|
4228
|
-
}),
|
|
4234
|
+
const ls = (e) => cs(e) && e !== "classes", us = ua({
|
|
4235
|
+
themeId: ss,
|
|
4236
|
+
defaultTheme: as,
|
|
4237
|
+
rootShouldForwardProp: ls
|
|
4238
|
+
}), fs = Ca;
|
|
4229
4239
|
process.env.NODE_ENV !== "production" && (K.node, K.object.isRequired);
|
|
4230
|
-
function
|
|
4231
|
-
return
|
|
4240
|
+
function ds(e) {
|
|
4241
|
+
return Ea(e);
|
|
4232
4242
|
}
|
|
4233
|
-
function
|
|
4234
|
-
return
|
|
4243
|
+
function ps(e) {
|
|
4244
|
+
return cr("MuiSvgIcon", e);
|
|
4235
4245
|
}
|
|
4236
|
-
|
|
4237
|
-
const
|
|
4246
|
+
ei("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
4247
|
+
const ms = (e) => {
|
|
4238
4248
|
const {
|
|
4239
4249
|
color: t,
|
|
4240
4250
|
fontSize: r,
|
|
@@ -4242,8 +4252,8 @@ const ds = (e) => {
|
|
|
4242
4252
|
} = e, o = {
|
|
4243
4253
|
root: ["root", t !== "inherit" && `color${We(t)}`, `fontSize${We(r)}`]
|
|
4244
4254
|
};
|
|
4245
|
-
return
|
|
4246
|
-
},
|
|
4255
|
+
return Jo(o, ps, n);
|
|
4256
|
+
}, hs = us("svg", {
|
|
4247
4257
|
name: "MuiSvgIcon",
|
|
4248
4258
|
slot: "Root",
|
|
4249
4259
|
overridesResolver: (e, t) => {
|
|
@@ -4252,7 +4262,7 @@ const ds = (e) => {
|
|
|
4252
4262
|
} = e;
|
|
4253
4263
|
return [t.root, r.color !== "inherit" && t[`color${We(r.color)}`], t[`fontSize${We(r.fontSize)}`]];
|
|
4254
4264
|
}
|
|
4255
|
-
})(
|
|
4265
|
+
})(fs(({
|
|
4256
4266
|
theme: e
|
|
4257
4267
|
}) => ({
|
|
4258
4268
|
userSelect: "none",
|
|
@@ -4338,8 +4348,8 @@ const ds = (e) => {
|
|
|
4338
4348
|
}
|
|
4339
4349
|
}
|
|
4340
4350
|
]
|
|
4341
|
-
}))),
|
|
4342
|
-
const n =
|
|
4351
|
+
}))), At = /* @__PURE__ */ Ie.forwardRef(function(t, r) {
|
|
4352
|
+
const n = ds({
|
|
4343
4353
|
props: t,
|
|
4344
4354
|
name: "MuiSvgIcon"
|
|
4345
4355
|
}), {
|
|
@@ -4364,10 +4374,10 @@ const ds = (e) => {
|
|
|
4364
4374
|
hasSvgAsChild: b
|
|
4365
4375
|
}, T = {};
|
|
4366
4376
|
m || (T.viewBox = h);
|
|
4367
|
-
const S =
|
|
4368
|
-
return /* @__PURE__ */ x.jsxs(
|
|
4377
|
+
const S = ms(l);
|
|
4378
|
+
return /* @__PURE__ */ x.jsxs(hs, {
|
|
4369
4379
|
as: u,
|
|
4370
|
-
className:
|
|
4380
|
+
className: ri(S.root, i),
|
|
4371
4381
|
focusable: "false",
|
|
4372
4382
|
color: d,
|
|
4373
4383
|
"aria-hidden": p ? void 0 : !0,
|
|
@@ -4382,7 +4392,7 @@ const ds = (e) => {
|
|
|
4382
4392
|
}) : null]
|
|
4383
4393
|
});
|
|
4384
4394
|
});
|
|
4385
|
-
process.env.NODE_ENV !== "production" && (
|
|
4395
|
+
process.env.NODE_ENV !== "production" && (At.propTypes = {
|
|
4386
4396
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
4387
4397
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
4388
4398
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -4454,31 +4464,31 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
4454
4464
|
*/
|
|
4455
4465
|
viewBox: K.string
|
|
4456
4466
|
});
|
|
4457
|
-
|
|
4458
|
-
function
|
|
4467
|
+
At.muiName = "SvgIcon";
|
|
4468
|
+
function pt(e, t) {
|
|
4459
4469
|
function r(n, o) {
|
|
4460
|
-
return /* @__PURE__ */ x.jsx(
|
|
4470
|
+
return /* @__PURE__ */ x.jsx(At, {
|
|
4461
4471
|
"data-testid": `${t}Icon`,
|
|
4462
4472
|
ref: o,
|
|
4463
4473
|
...n,
|
|
4464
4474
|
children: e
|
|
4465
4475
|
});
|
|
4466
4476
|
}
|
|
4467
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName =
|
|
4477
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = At.muiName, /* @__PURE__ */ Ie.memo(/* @__PURE__ */ Ie.forwardRef(r));
|
|
4468
4478
|
}
|
|
4469
|
-
const
|
|
4479
|
+
const ir = pt(/* @__PURE__ */ x.jsx("path", {
|
|
4470
4480
|
d: "M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"
|
|
4471
|
-
}), "Notifications"),
|
|
4481
|
+
}), "Notifications"), gs = ({
|
|
4472
4482
|
unreadCount: e = 0,
|
|
4473
4483
|
onClick: t,
|
|
4474
4484
|
showBadge: r = !0
|
|
4475
|
-
}) => /* @__PURE__ */ x.jsx(
|
|
4485
|
+
}) => /* @__PURE__ */ x.jsx(Tt, { onClick: t, color: "inherit", className: "relative", children: r && e > 0 ? /* @__PURE__ */ x.jsx(fo, { badgeContent: e > 99 ? "99+" : e, color: "error", children: /* @__PURE__ */ x.jsx(ir, {}) }) : /* @__PURE__ */ x.jsx(ir, {}) }), ys = pt(/* @__PURE__ */ x.jsx("path", {
|
|
4476
4486
|
d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"
|
|
4477
|
-
}), "Settings"),
|
|
4487
|
+
}), "Settings"), bs = pt(/* @__PURE__ */ x.jsx("path", {
|
|
4478
4488
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
|
|
4479
|
-
}), "CheckCircle"),
|
|
4489
|
+
}), "CheckCircle"), vs = pt(/* @__PURE__ */ x.jsx("path", {
|
|
4480
4490
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
4481
|
-
}), "Delete"),
|
|
4491
|
+
}), "Delete"), Ln = ({
|
|
4482
4492
|
notification: e,
|
|
4483
4493
|
onMarkAsRead: t,
|
|
4484
4494
|
onDelete: r,
|
|
@@ -4492,7 +4502,7 @@ const or = dt(/* @__PURE__ */ x.jsx("path", {
|
|
|
4492
4502
|
p.stopPropagation(), r && r(e.notificationId);
|
|
4493
4503
|
}, f = e.payload || {}, d = e.renderedContent?.inApp?.title || e.renderedContent?.push?.title || f.title || f.message || "Notification", m = e.renderedContent?.inApp?.message || e.renderedContent?.push?.body || f.message || "";
|
|
4494
4504
|
return /* @__PURE__ */ x.jsxs(
|
|
4495
|
-
|
|
4505
|
+
po,
|
|
4496
4506
|
{
|
|
4497
4507
|
className: `cursor-pointer hover:bg-gray-50 ${o ? "bg-blue-50" : ""}`,
|
|
4498
4508
|
onClick: i,
|
|
@@ -4504,13 +4514,13 @@ const or = dt(/* @__PURE__ */ x.jsx("path", {
|
|
|
4504
4514
|
}
|
|
4505
4515
|
},
|
|
4506
4516
|
children: [
|
|
4507
|
-
/* @__PURE__ */ x.jsx(ye, { className: "mr-2", children: /* @__PURE__ */ x.jsx(
|
|
4517
|
+
/* @__PURE__ */ x.jsx(ye, { className: "mr-2", children: /* @__PURE__ */ x.jsx(ir, { color: o ? "primary" : "disabled" }) }),
|
|
4508
4518
|
/* @__PURE__ */ x.jsx(
|
|
4509
|
-
|
|
4519
|
+
mo,
|
|
4510
4520
|
{
|
|
4511
4521
|
primary: /* @__PURE__ */ x.jsxs(ye, { className: "flex items-center gap-2", children: [
|
|
4512
4522
|
/* @__PURE__ */ x.jsx("span", { className: "font-medium", children: d }),
|
|
4513
|
-
o && /* @__PURE__ */ x.jsx(
|
|
4523
|
+
o && /* @__PURE__ */ x.jsx(ho, { label: "New", size: "small", color: "primary", className: "h-5 text-xs" })
|
|
4514
4524
|
] }),
|
|
4515
4525
|
secondary: m,
|
|
4516
4526
|
primaryTypographyProps: {
|
|
@@ -4518,16 +4528,16 @@ const or = dt(/* @__PURE__ */ x.jsx("path", {
|
|
|
4518
4528
|
}
|
|
4519
4529
|
}
|
|
4520
4530
|
),
|
|
4521
|
-
/* @__PURE__ */ x.jsx(
|
|
4522
|
-
o && /* @__PURE__ */ x.jsx(
|
|
4523
|
-
/* @__PURE__ */ x.jsx(
|
|
4531
|
+
/* @__PURE__ */ x.jsx(go, { children: /* @__PURE__ */ x.jsxs(ye, { className: "flex items-center gap-1", children: [
|
|
4532
|
+
o && /* @__PURE__ */ x.jsx(Tt, { edge: "end", size: "small", onClick: c, title: "Mark as read", children: /* @__PURE__ */ x.jsx(bs, { fontSize: "small" }) }),
|
|
4533
|
+
/* @__PURE__ */ x.jsx(Tt, { edge: "end", size: "small", onClick: u, title: "Delete", children: /* @__PURE__ */ x.jsx(vs, { fontSize: "small" }) })
|
|
4524
4534
|
] }) })
|
|
4525
4535
|
]
|
|
4526
4536
|
}
|
|
4527
4537
|
);
|
|
4528
|
-
},
|
|
4538
|
+
}, Ss = pt(/* @__PURE__ */ x.jsx("path", {
|
|
4529
4539
|
d: "M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"
|
|
4530
|
-
}), "NotificationsNone"),
|
|
4540
|
+
}), "NotificationsNone"), Es = ({
|
|
4531
4541
|
message: e = "No notifications",
|
|
4532
4542
|
icon: t
|
|
4533
4543
|
}) => /* @__PURE__ */ x.jsxs(
|
|
@@ -4536,20 +4546,20 @@ const or = dt(/* @__PURE__ */ x.jsx("path", {
|
|
|
4536
4546
|
className: "flex flex-col items-center justify-center p-8 text-center",
|
|
4537
4547
|
sx: { minHeight: "200px" },
|
|
4538
4548
|
children: [
|
|
4539
|
-
t || /* @__PURE__ */ x.jsx(
|
|
4540
|
-
/* @__PURE__ */ x.jsx(
|
|
4549
|
+
t || /* @__PURE__ */ x.jsx(Ss, { sx: { fontSize: 48, color: "text.secondary", mb: 2 } }),
|
|
4550
|
+
/* @__PURE__ */ x.jsx(wt, { variant: "body2", color: "text.secondary", children: e })
|
|
4541
4551
|
]
|
|
4542
4552
|
}
|
|
4543
4553
|
);
|
|
4544
|
-
function
|
|
4554
|
+
function ar(e) {
|
|
4545
4555
|
"@babel/helpers - typeof";
|
|
4546
|
-
return
|
|
4556
|
+
return ar = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4547
4557
|
return typeof t;
|
|
4548
4558
|
} : function(t) {
|
|
4549
4559
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4550
|
-
},
|
|
4560
|
+
}, ar(e);
|
|
4551
4561
|
}
|
|
4552
|
-
function
|
|
4562
|
+
function hr(e) {
|
|
4553
4563
|
if (e === null || e === !0 || e === !1)
|
|
4554
4564
|
return NaN;
|
|
4555
4565
|
var t = Number(e);
|
|
@@ -4559,77 +4569,77 @@ function _e(e, t) {
|
|
|
4559
4569
|
if (t.length < e)
|
|
4560
4570
|
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
4561
4571
|
}
|
|
4562
|
-
function
|
|
4572
|
+
function ut(e) {
|
|
4563
4573
|
_e(1, arguments);
|
|
4564
4574
|
var t = Object.prototype.toString.call(e);
|
|
4565
|
-
return e instanceof Date ||
|
|
4575
|
+
return e instanceof Date || ar(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
4566
4576
|
}
|
|
4567
|
-
function
|
|
4577
|
+
function Cs(e, t) {
|
|
4568
4578
|
_e(2, arguments);
|
|
4569
|
-
var r =
|
|
4579
|
+
var r = ut(e), n = hr(t);
|
|
4570
4580
|
return isNaN(n) ? /* @__PURE__ */ new Date(NaN) : (n && r.setDate(r.getDate() + n), r);
|
|
4571
4581
|
}
|
|
4572
|
-
var
|
|
4573
|
-
function
|
|
4574
|
-
return
|
|
4582
|
+
var xs = {};
|
|
4583
|
+
function Ts() {
|
|
4584
|
+
return xs;
|
|
4575
4585
|
}
|
|
4576
|
-
function
|
|
4586
|
+
function hn(e, t) {
|
|
4577
4587
|
var r, n, o, i, c, u;
|
|
4578
4588
|
_e(1, arguments);
|
|
4579
|
-
var f =
|
|
4589
|
+
var f = Ts(), d = hr((r = (n = (o = (i = void 0) !== null && i !== void 0 ? i : void 0) !== null && o !== void 0 ? o : f.weekStartsOn) !== null && n !== void 0 ? n : (c = f.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : 0);
|
|
4580
4590
|
if (!(d >= 0 && d <= 6))
|
|
4581
4591
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
4582
|
-
var m =
|
|
4592
|
+
var m = ut(e), p = m.getDay(), h = (p < d ? 7 : 0) + p - d;
|
|
4583
4593
|
return m.setDate(m.getDate() - h), m.setHours(0, 0, 0, 0), m;
|
|
4584
4594
|
}
|
|
4585
|
-
function
|
|
4595
|
+
function gn(e) {
|
|
4586
4596
|
_e(1, arguments);
|
|
4587
|
-
var t =
|
|
4597
|
+
var t = ut(e);
|
|
4588
4598
|
return t.setHours(0, 0, 0, 0), t;
|
|
4589
4599
|
}
|
|
4590
|
-
function
|
|
4600
|
+
function Vn(e, t) {
|
|
4591
4601
|
_e(2, arguments);
|
|
4592
|
-
var r =
|
|
4602
|
+
var r = gn(e), n = gn(t);
|
|
4593
4603
|
return r.getTime() === n.getTime();
|
|
4594
4604
|
}
|
|
4595
|
-
function
|
|
4605
|
+
function ws(e, t, r) {
|
|
4596
4606
|
_e(2, arguments);
|
|
4597
|
-
var n =
|
|
4607
|
+
var n = hn(e, r), o = hn(t, r);
|
|
4598
4608
|
return n.getTime() === o.getTime();
|
|
4599
4609
|
}
|
|
4600
|
-
function
|
|
4610
|
+
function _s(e, t) {
|
|
4601
4611
|
_e(2, arguments);
|
|
4602
|
-
var r =
|
|
4612
|
+
var r = ut(e), n = ut(t);
|
|
4603
4613
|
return r.getFullYear() === n.getFullYear() && r.getMonth() === n.getMonth();
|
|
4604
4614
|
}
|
|
4605
|
-
function ws(e) {
|
|
4606
|
-
return _e(1, arguments), Ts(Date.now(), e);
|
|
4607
|
-
}
|
|
4608
|
-
function _s(e, t) {
|
|
4609
|
-
return _e(1, arguments), xs(e, Date.now(), t);
|
|
4610
|
-
}
|
|
4611
4615
|
function Os(e) {
|
|
4612
|
-
return _e(1, arguments),
|
|
4616
|
+
return _e(1, arguments), _s(Date.now(), e);
|
|
4613
4617
|
}
|
|
4614
4618
|
function Rs(e, t) {
|
|
4615
|
-
_e(
|
|
4616
|
-
var r = mr(t);
|
|
4617
|
-
return Ss(e, -r);
|
|
4619
|
+
return _e(1, arguments), ws(e, Date.now(), t);
|
|
4618
4620
|
}
|
|
4619
4621
|
function As(e) {
|
|
4620
|
-
return _e(1, arguments),
|
|
4622
|
+
return _e(1, arguments), Vn(e, Date.now());
|
|
4623
|
+
}
|
|
4624
|
+
function ks(e, t) {
|
|
4625
|
+
_e(2, arguments);
|
|
4626
|
+
var r = hr(t);
|
|
4627
|
+
return Cs(e, -r);
|
|
4628
|
+
}
|
|
4629
|
+
function $s(e) {
|
|
4630
|
+
return _e(1, arguments), Vn(e, ks(Date.now(), 1));
|
|
4621
4631
|
}
|
|
4622
|
-
const
|
|
4632
|
+
const Ps = ({
|
|
4623
4633
|
groupLabel: e,
|
|
4624
4634
|
notifications: t,
|
|
4625
4635
|
onMarkAsRead: r,
|
|
4626
4636
|
onDelete: n,
|
|
4627
4637
|
onClick: o
|
|
4628
4638
|
}) => t.length === 0 ? null : /* @__PURE__ */ x.jsxs(ye, { sx: { mb: 2 }, children: [
|
|
4629
|
-
/* @__PURE__ */ x.jsx(
|
|
4630
|
-
/* @__PURE__ */ x.jsx(
|
|
4639
|
+
/* @__PURE__ */ x.jsx(wt, { variant: "caption", sx: { color: "text.secondary", px: 2, py: 1, display: "block" }, children: e }),
|
|
4640
|
+
/* @__PURE__ */ x.jsx(bn, { sx: { mb: 1 } }),
|
|
4631
4641
|
t.map((i) => /* @__PURE__ */ x.jsx(
|
|
4632
|
-
|
|
4642
|
+
Ln,
|
|
4633
4643
|
{
|
|
4634
4644
|
notification: i,
|
|
4635
4645
|
onMarkAsRead: r,
|
|
@@ -4639,7 +4649,7 @@ const ks = ({
|
|
|
4639
4649
|
i.notificationId
|
|
4640
4650
|
))
|
|
4641
4651
|
] });
|
|
4642
|
-
function
|
|
4652
|
+
function Is(e) {
|
|
4643
4653
|
const t = {
|
|
4644
4654
|
today: [],
|
|
4645
4655
|
yesterday: [],
|
|
@@ -4649,10 +4659,10 @@ function $s(e) {
|
|
|
4649
4659
|
};
|
|
4650
4660
|
return e.forEach((r) => {
|
|
4651
4661
|
const n = r.createdAt ? new Date(r.createdAt) : /* @__PURE__ */ new Date();
|
|
4652
|
-
|
|
4662
|
+
As(n) ? t.today.push(r) : $s(n) ? t.yesterday.push(r) : Rs(n) ? t.thisWeek.push(r) : Os(n) ? t.thisMonth.push(r) : t.older.push(r);
|
|
4653
4663
|
}), t;
|
|
4654
4664
|
}
|
|
4655
|
-
function
|
|
4665
|
+
function js(e) {
|
|
4656
4666
|
switch (e) {
|
|
4657
4667
|
case "today":
|
|
4658
4668
|
return "Today";
|
|
@@ -4668,7 +4678,7 @@ function Ps(e) {
|
|
|
4668
4678
|
return e;
|
|
4669
4679
|
}
|
|
4670
4680
|
}
|
|
4671
|
-
const
|
|
4681
|
+
const Ns = ({
|
|
4672
4682
|
client: e,
|
|
4673
4683
|
subscriberId: t,
|
|
4674
4684
|
tenantId: r,
|
|
@@ -4726,14 +4736,14 @@ const Is = ({
|
|
|
4726
4736
|
}
|
|
4727
4737
|
};
|
|
4728
4738
|
return /* @__PURE__ */ x.jsxs(ye, { sx: { p: 3, minWidth: 300 }, children: [
|
|
4729
|
-
/* @__PURE__ */ x.jsx(
|
|
4730
|
-
/* @__PURE__ */ x.jsx(
|
|
4731
|
-
/* @__PURE__ */ x.jsx(
|
|
4739
|
+
/* @__PURE__ */ x.jsx(wt, { variant: "h6", gutterBottom: !0, children: "Notification Preferences" }),
|
|
4740
|
+
/* @__PURE__ */ x.jsx(bn, { sx: { my: 2 } }),
|
|
4741
|
+
/* @__PURE__ */ x.jsx(wt, { variant: "subtitle2", sx: { mb: 2, fontWeight: "bold" }, children: "Channels" }),
|
|
4732
4742
|
/* @__PURE__ */ x.jsx(
|
|
4733
|
-
|
|
4743
|
+
ht,
|
|
4734
4744
|
{
|
|
4735
4745
|
control: /* @__PURE__ */ x.jsx(
|
|
4736
|
-
|
|
4746
|
+
gt,
|
|
4737
4747
|
{
|
|
4738
4748
|
checked: o.email,
|
|
4739
4749
|
onChange: (y) => p("email", y.target.checked),
|
|
@@ -4744,10 +4754,10 @@ const Is = ({
|
|
|
4744
4754
|
}
|
|
4745
4755
|
),
|
|
4746
4756
|
/* @__PURE__ */ x.jsx(
|
|
4747
|
-
|
|
4757
|
+
ht,
|
|
4748
4758
|
{
|
|
4749
4759
|
control: /* @__PURE__ */ x.jsx(
|
|
4750
|
-
|
|
4760
|
+
gt,
|
|
4751
4761
|
{
|
|
4752
4762
|
checked: o.push,
|
|
4753
4763
|
onChange: (y) => p("push", y.target.checked),
|
|
@@ -4758,10 +4768,10 @@ const Is = ({
|
|
|
4758
4768
|
}
|
|
4759
4769
|
),
|
|
4760
4770
|
/* @__PURE__ */ x.jsx(
|
|
4761
|
-
|
|
4771
|
+
ht,
|
|
4762
4772
|
{
|
|
4763
4773
|
control: /* @__PURE__ */ x.jsx(
|
|
4764
|
-
|
|
4774
|
+
gt,
|
|
4765
4775
|
{
|
|
4766
4776
|
checked: o.sms,
|
|
4767
4777
|
onChange: (y) => p("sms", y.target.checked),
|
|
@@ -4772,10 +4782,10 @@ const Is = ({
|
|
|
4772
4782
|
}
|
|
4773
4783
|
),
|
|
4774
4784
|
/* @__PURE__ */ x.jsx(
|
|
4775
|
-
|
|
4785
|
+
ht,
|
|
4776
4786
|
{
|
|
4777
4787
|
control: /* @__PURE__ */ x.jsx(
|
|
4778
|
-
|
|
4788
|
+
gt,
|
|
4779
4789
|
{
|
|
4780
4790
|
checked: o.in_app,
|
|
4781
4791
|
onChange: (y) => p("in_app", y.target.checked),
|
|
@@ -4786,11 +4796,11 @@ const Is = ({
|
|
|
4786
4796
|
}
|
|
4787
4797
|
),
|
|
4788
4798
|
/* @__PURE__ */ x.jsxs(ye, { sx: { mt: 3, display: "flex", justifyContent: "flex-end", gap: 1 }, children: [
|
|
4789
|
-
n && /* @__PURE__ */ x.jsx(
|
|
4790
|
-
/* @__PURE__ */ x.jsx(
|
|
4799
|
+
n && /* @__PURE__ */ x.jsx(kr, { onClick: n, variant: "outlined", size: "small", children: "Cancel" }),
|
|
4800
|
+
/* @__PURE__ */ x.jsx(kr, { onClick: h, variant: "contained", size: "small", disabled: f, children: "Save" })
|
|
4791
4801
|
] })
|
|
4792
4802
|
] });
|
|
4793
|
-
},
|
|
4803
|
+
}, Ds = ({
|
|
4794
4804
|
notifications: e,
|
|
4795
4805
|
loading: t = !1,
|
|
4796
4806
|
error: r = null,
|
|
@@ -4804,41 +4814,41 @@ const Is = ({
|
|
|
4804
4814
|
}) => {
|
|
4805
4815
|
const [m, p] = Te("all"), [h, y] = Te(null), b = m === "unread" ? e.filter((w) => w.read !== !0) : e;
|
|
4806
4816
|
if (t)
|
|
4807
|
-
return /* @__PURE__ */ x.jsx(ye, { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ x.jsx(
|
|
4817
|
+
return /* @__PURE__ */ x.jsx(ye, { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ x.jsx(yo, { size: 40 }) });
|
|
4808
4818
|
if (r)
|
|
4809
|
-
return /* @__PURE__ */ x.jsx(
|
|
4819
|
+
return /* @__PURE__ */ x.jsx(bo, { severity: "error", className: "m-4", children: r.message || "Failed to load notifications" });
|
|
4810
4820
|
if (e.length === 0)
|
|
4811
|
-
return /* @__PURE__ */ x.jsx(
|
|
4821
|
+
return /* @__PURE__ */ x.jsx(Es, {});
|
|
4812
4822
|
const l = async (w) => {
|
|
4813
4823
|
o && await o(w);
|
|
4814
4824
|
}, T = async (w) => {
|
|
4815
4825
|
i && await i(w);
|
|
4816
|
-
}, S = d ?
|
|
4826
|
+
}, S = d ? Is(b) : { all: b };
|
|
4817
4827
|
return /* @__PURE__ */ x.jsxs(ye, { children: [
|
|
4818
4828
|
/* @__PURE__ */ x.jsxs(ye, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", px: 2, py: 1, borderBottom: 1, borderColor: "divider" }, children: [
|
|
4819
|
-
/* @__PURE__ */ x.jsxs(
|
|
4820
|
-
/* @__PURE__ */ x.jsx(
|
|
4821
|
-
/* @__PURE__ */ x.jsx(
|
|
4829
|
+
/* @__PURE__ */ x.jsxs(vo, { value: m, onChange: (w, A) => p(A), children: [
|
|
4830
|
+
/* @__PURE__ */ x.jsx($r, { label: "All", value: "all" }),
|
|
4831
|
+
/* @__PURE__ */ x.jsx($r, { label: "Unread", value: "unread" })
|
|
4822
4832
|
] }),
|
|
4823
4833
|
f && c && u && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
4824
4834
|
/* @__PURE__ */ x.jsx(
|
|
4825
|
-
|
|
4835
|
+
Tt,
|
|
4826
4836
|
{
|
|
4827
4837
|
size: "small",
|
|
4828
4838
|
onClick: (w) => y(w.currentTarget),
|
|
4829
4839
|
title: "Preferences",
|
|
4830
|
-
children: /* @__PURE__ */ x.jsx(
|
|
4840
|
+
children: /* @__PURE__ */ x.jsx(ys, { fontSize: "small" })
|
|
4831
4841
|
}
|
|
4832
4842
|
),
|
|
4833
4843
|
/* @__PURE__ */ x.jsx(
|
|
4834
|
-
|
|
4844
|
+
vn,
|
|
4835
4845
|
{
|
|
4836
4846
|
open: !!h,
|
|
4837
4847
|
anchorEl: h,
|
|
4838
4848
|
onClose: () => y(null),
|
|
4839
4849
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
4840
4850
|
children: /* @__PURE__ */ x.jsx(
|
|
4841
|
-
|
|
4851
|
+
Ns,
|
|
4842
4852
|
{
|
|
4843
4853
|
client: f,
|
|
4844
4854
|
subscriberId: c,
|
|
@@ -4850,10 +4860,10 @@ const Is = ({
|
|
|
4850
4860
|
)
|
|
4851
4861
|
] })
|
|
4852
4862
|
] }),
|
|
4853
|
-
/* @__PURE__ */ x.jsx(
|
|
4854
|
-
|
|
4863
|
+
/* @__PURE__ */ x.jsx(So, { className: "max-h-96 overflow-y-auto", sx: { padding: 0 }, children: d ? Object.entries(S).map(([w, A]) => /* @__PURE__ */ x.jsx(
|
|
4864
|
+
Ps,
|
|
4855
4865
|
{
|
|
4856
|
-
groupLabel:
|
|
4866
|
+
groupLabel: js(w),
|
|
4857
4867
|
notifications: A,
|
|
4858
4868
|
onMarkAsRead: l,
|
|
4859
4869
|
onDelete: T,
|
|
@@ -4861,7 +4871,7 @@ const Is = ({
|
|
|
4861
4871
|
},
|
|
4862
4872
|
w
|
|
4863
4873
|
)) : b.map((w) => /* @__PURE__ */ x.jsx(
|
|
4864
|
-
|
|
4874
|
+
Ln,
|
|
4865
4875
|
{
|
|
4866
4876
|
notification: w,
|
|
4867
4877
|
onMarkAsRead: l,
|
|
@@ -4871,7 +4881,7 @@ const Is = ({
|
|
|
4871
4881
|
w.notificationId
|
|
4872
4882
|
)) })
|
|
4873
4883
|
] });
|
|
4874
|
-
},
|
|
4884
|
+
}, Ws = ({
|
|
4875
4885
|
client: e,
|
|
4876
4886
|
tenantId: t,
|
|
4877
4887
|
subscriberId: r,
|
|
@@ -4892,7 +4902,7 @@ const Is = ({
|
|
|
4892
4902
|
connected: w,
|
|
4893
4903
|
markAsRead: A,
|
|
4894
4904
|
deleteNotification: $
|
|
4895
|
-
} =
|
|
4905
|
+
} = Mo({
|
|
4896
4906
|
client: e,
|
|
4897
4907
|
tenantId: t,
|
|
4898
4908
|
subscriberId: r,
|
|
@@ -4912,7 +4922,7 @@ const Is = ({
|
|
|
4912
4922
|
};
|
|
4913
4923
|
return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
4914
4924
|
/* @__PURE__ */ x.jsx(
|
|
4915
|
-
|
|
4925
|
+
gs,
|
|
4916
4926
|
{
|
|
4917
4927
|
unreadCount: S,
|
|
4918
4928
|
onClick: E,
|
|
@@ -4920,7 +4930,7 @@ const Is = ({
|
|
|
4920
4930
|
}
|
|
4921
4931
|
),
|
|
4922
4932
|
/* @__PURE__ */ x.jsx(
|
|
4923
|
-
|
|
4933
|
+
vn,
|
|
4924
4934
|
{
|
|
4925
4935
|
open: y,
|
|
4926
4936
|
anchorEl: p,
|
|
@@ -4941,7 +4951,7 @@ const Is = ({
|
|
|
4941
4951
|
...a()
|
|
4942
4952
|
}
|
|
4943
4953
|
},
|
|
4944
|
-
children: /* @__PURE__ */ x.jsxs(
|
|
4954
|
+
children: /* @__PURE__ */ x.jsxs(Eo, { className: "notification-center", sx: { borderRadius: "15px", overflow: "hidden" }, children: [
|
|
4945
4955
|
/* @__PURE__ */ x.jsx(ye, { className: "p-4 border-b border-gray-200", children: /* @__PURE__ */ x.jsxs(ye, { className: "flex items-center justify-between", children: [
|
|
4946
4956
|
/* @__PURE__ */ x.jsx("h3", { className: "text-lg font-semibold", children: "Notifications" }),
|
|
4947
4957
|
w && /* @__PURE__ */ x.jsxs(ye, { className: "flex items-center gap-2", children: [
|
|
@@ -4950,7 +4960,7 @@ const Is = ({
|
|
|
4950
4960
|
] })
|
|
4951
4961
|
] }) }),
|
|
4952
4962
|
/* @__PURE__ */ x.jsx(
|
|
4953
|
-
|
|
4963
|
+
Ds,
|
|
4954
4964
|
{
|
|
4955
4965
|
notifications: W,
|
|
4956
4966
|
loading: l,
|
|
@@ -4968,7 +4978,7 @@ const Is = ({
|
|
|
4968
4978
|
}
|
|
4969
4979
|
)
|
|
4970
4980
|
] });
|
|
4971
|
-
},
|
|
4981
|
+
}, zs = Fn({
|
|
4972
4982
|
palette: {
|
|
4973
4983
|
primary: {
|
|
4974
4984
|
main: "#1E3A8A"
|
|
@@ -5025,14 +5035,14 @@ const Is = ({
|
|
|
5025
5035
|
}
|
|
5026
5036
|
});
|
|
5027
5037
|
export {
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5038
|
+
Es as EmptyState,
|
|
5039
|
+
gs as NotificationBell,
|
|
5040
|
+
Ws as NotificationCenter,
|
|
5041
|
+
Ln as NotificationItem,
|
|
5042
|
+
Ds as NotificationList,
|
|
5043
|
+
zs as notificationTheme,
|
|
5044
|
+
Mo as useNotificationCenter,
|
|
5045
|
+
Po as useNotifications,
|
|
5046
|
+
Do as useWebSocket
|
|
5037
5047
|
};
|
|
5038
5048
|
//# sourceMappingURL=index.esm.js.map
|