@ukpc-lib/react 0.7.5 → 0.7.7
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/components/FavoriteMenu/components/MenuIconComponent.d.ts +6 -0
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +0 -5
- package/dist/components/index.cjs +22 -22
- package/dist/components/index.js +507 -534
- package/dist/{index.module-eec974f6.cjs → index.module-088c3cbc.cjs} +118 -118
- package/dist/{index.module-38bd66dc.js → index.module-6b3abe9f.js} +20794 -20730
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +7 -7
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-e5c23c52.js → index-a7f8f3fa.js} +17583 -17547
package/dist/components/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as N, Fragment as ke, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import we, { useState as
|
|
4
|
-
import { c as Ce, a as Pe, C as $e, p as Ar, u as Ao,
|
|
5
|
-
import {
|
|
3
|
+
import we, { useState as L, useContext as Oe, useEffect as Q, useCallback as Ye, useRef as ue, useLayoutEffect as Io, createElement as St, forwardRef as Mo, PureComponent as $o } from "react";
|
|
4
|
+
import { c as Ce, a as Pe, C as $e, p as Ar, u as Ao, S as Pr, b as Po, L as Ro, d as zn, e as Do, Q as Rr, f as vt, g as zo, m as Fo, h as it, I as Lo, i as jo, j as Vo, k as Ho, s as Bo, l as pn, n as Wo, o as bt, _ as F, q as Te, P as I, r as xe, t as Uo, v as Yo, w as qo, x as Go, y as Fn, z as Ln, A as Ko, B as Zo, D as jn, E as Jo, F as Dr, G as zr, H as Xo, J as Qo, K as Me, M as ei, N as xt } from "../index.module-6b3abe9f.js";
|
|
5
|
+
import { O as l1, T as c1, R as d1 } from "../index.module-6b3abe9f.js";
|
|
6
6
|
import J from "moment";
|
|
7
7
|
import { Stack as oe, Dialog as ti, DialogTitle as ni, Typography as Se, DialogContent as ri, DialogActions as oi, Button as Mt, Box as ii, Tooltip as Vn, ClickAwayListener as ai, TextField as Fr, IconButton as si, CircularProgress as li, Fade as ci, Paper as di, Checkbox as ui } from "@mui/material";
|
|
8
8
|
import "@r2wc/react-to-web-component";
|
|
9
9
|
import "axios";
|
|
10
|
-
import { useParams as fi, Link as
|
|
10
|
+
import { useParams as fi, Link as gn, useLocation as hi } from "react-router-dom";
|
|
11
11
|
import "react-query";
|
|
12
12
|
import { createPortal as mi } from "react-dom";
|
|
13
13
|
const pi = (e) => {
|
|
@@ -75,7 +75,7 @@ const pi = (e) => {
|
|
|
75
75
|
/* @__PURE__ */ c("div", { className: "tab-content", children: t.map((i, a) => /* @__PURE__ */ c("div", { children: e.currentTab === `${i.id}` && /* @__PURE__ */ c("div", { children: i.children }) }, a)) })
|
|
76
76
|
] })
|
|
77
77
|
] });
|
|
78
|
-
},
|
|
78
|
+
}, yn = ({
|
|
79
79
|
baseUrl: e,
|
|
80
80
|
notiPath: t,
|
|
81
81
|
setNotiData: n
|
|
@@ -89,7 +89,7 @@ const pi = (e) => {
|
|
|
89
89
|
notificationFilterType: "all"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
})).data) == null ? void 0 : u.rows, d = s == null ? void 0 : s.filter((
|
|
92
|
+
})).data) == null ? void 0 : u.rows, d = s == null ? void 0 : s.filter((h) => h.isRead === !1);
|
|
93
93
|
n({
|
|
94
94
|
all: { rows: s ?? [], total: (s == null ? void 0 : s.length) ?? 0 },
|
|
95
95
|
unread: {
|
|
@@ -105,13 +105,13 @@ const pi = (e) => {
|
|
|
105
105
|
brandColors: o
|
|
106
106
|
}) => {
|
|
107
107
|
var b;
|
|
108
|
-
const [i, a] =
|
|
108
|
+
const [i, a] = L(!1), [s, d] = L({
|
|
109
109
|
id: e.id,
|
|
110
110
|
isRead: e.isRead
|
|
111
|
-
}), u = s.isRead === !1 ? "unread" : "read",
|
|
111
|
+
}), u = s.isRead === !1 ? "unread" : "read", h = {
|
|
112
112
|
borderColor: s.isRead ? "#c5c5c5" : (o == null ? void 0 : o.primary500) || Ce.primary500,
|
|
113
113
|
backgroundColor: s.isRead ? "#c5c5c5" : (o == null ? void 0 : o.primary500) || Ce.primary500
|
|
114
|
-
}, { setNotiData:
|
|
114
|
+
}, { setNotiData: m } = Oe($e), p = yn({ baseUrl: t, notiPath: n, setNotiData: m }), v = async (_, x) => {
|
|
115
115
|
try {
|
|
116
116
|
const S = n || `/notification-management/api/v1/notifications/${_}`, g = t + S;
|
|
117
117
|
await Pe.put(g, { isRead: x });
|
|
@@ -141,7 +141,7 @@ const pi = (e) => {
|
|
|
141
141
|
}, [r, e.id, e.isRead]);
|
|
142
142
|
const l = () => {
|
|
143
143
|
a(!i);
|
|
144
|
-
},
|
|
144
|
+
}, f = (_) => {
|
|
145
145
|
const x = J(), S = J(_), g = x.diff(S, "days"), w = x.diff(S, "minutes"), C = x.diff(S, "months"), T = x.diff(S, "years");
|
|
146
146
|
if (console.log("diffInMonths", C), w < 1)
|
|
147
147
|
return "Just now";
|
|
@@ -195,13 +195,13 @@ const pi = (e) => {
|
|
|
195
195
|
}
|
|
196
196
|
)
|
|
197
197
|
] }),
|
|
198
|
-
/* @__PURE__ */ c("div", { className: "notification-item__time", children: /* @__PURE__ */ c("p", { children:
|
|
198
|
+
/* @__PURE__ */ c("div", { className: "notification-item__time", children: /* @__PURE__ */ c("p", { children: f(e.createdAt) }) }),
|
|
199
199
|
/* @__PURE__ */ c(
|
|
200
200
|
"button",
|
|
201
201
|
{
|
|
202
202
|
className: `${u} notification-item__read-at`,
|
|
203
203
|
"aria-label": "Mark as read",
|
|
204
|
-
style:
|
|
204
|
+
style: h,
|
|
205
205
|
onClick: () => y(e.id, e.isRead)
|
|
206
206
|
}
|
|
207
207
|
)
|
|
@@ -248,32 +248,32 @@ const pi = (e) => {
|
|
|
248
248
|
brandColors: r,
|
|
249
249
|
notiUnreadNumber: o
|
|
250
250
|
}) => {
|
|
251
|
-
const [i, a] =
|
|
251
|
+
const [i, a] = L(!1);
|
|
252
252
|
console.log(i);
|
|
253
|
-
const { setNotiData: s } = Oe($e), d =
|
|
253
|
+
const { setNotiData: s } = Oe($e), d = yn({ baseUrl: t, notiPath: n, setNotiData: s }), u = async () => {
|
|
254
254
|
try {
|
|
255
255
|
const p = t + (n || "/notification-management/api/v1/notifications");
|
|
256
256
|
await Pe.put(p);
|
|
257
|
-
} catch (
|
|
258
|
-
console.log(
|
|
257
|
+
} catch (m) {
|
|
258
|
+
console.log(m);
|
|
259
259
|
}
|
|
260
260
|
await d(), a(!1);
|
|
261
|
-
},
|
|
261
|
+
}, h = () => {
|
|
262
262
|
a(!0), u();
|
|
263
263
|
};
|
|
264
264
|
return console.log("notiUnreadNumber", o), /* @__PURE__ */ N("div", { children: [
|
|
265
265
|
/* @__PURE__ */ c("div", { className: "mark-all-read", children: /* @__PURE__ */ c(
|
|
266
266
|
"button",
|
|
267
267
|
{
|
|
268
|
-
onClick:
|
|
268
|
+
onClick: h,
|
|
269
269
|
style: { visibility: o === 0 ? "hidden" : "visible" },
|
|
270
270
|
children: "Mark all as read"
|
|
271
271
|
}
|
|
272
272
|
) }),
|
|
273
|
-
/* @__PURE__ */ c("div", { className: "notification-items__wrapper", children: /* @__PURE__ */ c("div", { className: "notification-items__content", children: Object.values(e).map((
|
|
273
|
+
/* @__PURE__ */ c("div", { className: "notification-items__wrapper", children: /* @__PURE__ */ c("div", { className: "notification-items__content", children: Object.values(e).map((m, p) => /* @__PURE__ */ c(
|
|
274
274
|
gi,
|
|
275
275
|
{
|
|
276
|
-
notification:
|
|
276
|
+
notification: m,
|
|
277
277
|
baseUrl: t,
|
|
278
278
|
notiPath: n,
|
|
279
279
|
markAllAsReadState: i,
|
|
@@ -287,10 +287,10 @@ const pi = (e) => {
|
|
|
287
287
|
notiPath: t,
|
|
288
288
|
brandColors: n
|
|
289
289
|
}) => {
|
|
290
|
-
var d, u,
|
|
290
|
+
var d, u, h, m;
|
|
291
291
|
const { setShowModalFalse: r } = Oe($e), { notidata: o } = Oe($e);
|
|
292
292
|
console.log(o);
|
|
293
|
-
const [i, a] =
|
|
293
|
+
const [i, a] = L("all"), s = [
|
|
294
294
|
{
|
|
295
295
|
id: "all",
|
|
296
296
|
tabTitle: `All (${((d = o == null ? void 0 : o.all) == null ? void 0 : d.total) || 0})`,
|
|
@@ -307,11 +307,11 @@ const pi = (e) => {
|
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
id: "unread",
|
|
310
|
-
tabTitle: `Unread (${((
|
|
310
|
+
tabTitle: `Unread (${((h = o == null ? void 0 : o.unread) == null ? void 0 : h.total) || 0})`,
|
|
311
311
|
children: /* @__PURE__ */ c(
|
|
312
312
|
Hn,
|
|
313
313
|
{
|
|
314
|
-
notidata: ((
|
|
314
|
+
notidata: ((m = o == null ? void 0 : o.unread) == null ? void 0 : m.rows) || [],
|
|
315
315
|
baseUrl: e,
|
|
316
316
|
notiPath: t,
|
|
317
317
|
brandColors: n,
|
|
@@ -391,7 +391,7 @@ const pi = (e) => {
|
|
|
391
391
|
}
|
|
392
392
|
) });
|
|
393
393
|
};
|
|
394
|
-
function
|
|
394
|
+
function vn({
|
|
395
395
|
childrenClass: e,
|
|
396
396
|
action: t,
|
|
397
397
|
childrenOpenClass: n
|
|
@@ -399,12 +399,12 @@ function bn({
|
|
|
399
399
|
const r = document.querySelector("#topbar-wrapper"), o = r == null ? void 0 : r.shadowRoot, i = o == null ? void 0 : o.querySelector(`.${e}`), a = o == null ? void 0 : o.querySelector(
|
|
400
400
|
`.${n}`
|
|
401
401
|
), s = o == null ? void 0 : o.querySelector("nav"), d = (u) => {
|
|
402
|
-
s == null || s.addEventListener("click", function(
|
|
403
|
-
if (n && a && a.contains(
|
|
404
|
-
if (i && !i.contains(
|
|
402
|
+
s == null || s.addEventListener("click", function(h) {
|
|
403
|
+
if (n && a && a.contains(h.target)) {
|
|
404
|
+
if (i && !i.contains(h.target))
|
|
405
405
|
return;
|
|
406
406
|
} else
|
|
407
|
-
i && !i.contains(
|
|
407
|
+
i && !i.contains(h.target) && t();
|
|
408
408
|
}), r && !r.contains(u.target) && t();
|
|
409
409
|
};
|
|
410
410
|
document.addEventListener("click", d, !0);
|
|
@@ -415,8 +415,8 @@ function bi({
|
|
|
415
415
|
notiPath: n,
|
|
416
416
|
brandColors: r
|
|
417
417
|
}) {
|
|
418
|
-
var
|
|
419
|
-
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } = Oe($e), { notidata: s, setNotiData: d } = Oe($e), u =
|
|
418
|
+
var m, p;
|
|
419
|
+
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } = Oe($e), { notidata: s, setNotiData: d } = Oe($e), u = yn({ baseUrl: t, notiPath: n, setNotiData: d }), h = async () => {
|
|
420
420
|
var v, y;
|
|
421
421
|
try {
|
|
422
422
|
await u();
|
|
@@ -427,9 +427,9 @@ function bi({
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
return Q(() => {
|
|
430
|
-
|
|
430
|
+
h();
|
|
431
431
|
}, [o]), Q(() => {
|
|
432
|
-
|
|
432
|
+
vn({
|
|
433
433
|
childrenClass: "noti-container",
|
|
434
434
|
childrenOpenClass: "noti-list-container",
|
|
435
435
|
action() {
|
|
@@ -493,7 +493,7 @@ function bi({
|
|
|
493
493
|
backgroundColor: Ce.danger
|
|
494
494
|
},
|
|
495
495
|
className: "notification-badge",
|
|
496
|
-
children: ((
|
|
496
|
+
children: ((m = s == null ? void 0 : s.unread) == null ? void 0 : m.total) > 9 ? "9+" : `${(p = s == null ? void 0 : s.unread) == null ? void 0 : p.total}`
|
|
497
497
|
}
|
|
498
498
|
)
|
|
499
499
|
] }),
|
|
@@ -624,12 +624,12 @@ function Oi({ baseColor: e, highlightColor: t, width: n, height: r, borderRadius
|
|
|
624
624
|
return a === "rtl" && (u["--animation-direction"] = "reverse"), typeof s == "number" && (u["--animation-duration"] = `${s}s`), d || (u["--pseudo-element-display"] = "none"), (typeof n == "string" || typeof n == "number") && (u.width = n), (typeof r == "string" || typeof r == "number") && (u.height = r), (typeof o == "string" || typeof o == "number") && (u.borderRadius = o), i && (u.borderRadius = "50%"), typeof e < "u" && (u["--base-color"] = e), typeof t < "u" && (u["--highlight-color"] = t), u;
|
|
625
625
|
}
|
|
626
626
|
function Ti({ count: e = 1, wrapper: t, className: n, containerClassName: r, containerTestId: o, circle: i = !1, style: a, ...s }) {
|
|
627
|
-
var d, u,
|
|
628
|
-
const
|
|
627
|
+
var d, u, h;
|
|
628
|
+
const m = we.useContext(Ni), p = { ...s };
|
|
629
629
|
for (const [x, S] of Object.entries(s))
|
|
630
630
|
typeof S > "u" && delete p[x];
|
|
631
631
|
const v = {
|
|
632
|
-
...
|
|
632
|
+
...m,
|
|
633
633
|
...p,
|
|
634
634
|
circle: i
|
|
635
635
|
}, y = {
|
|
@@ -638,7 +638,7 @@ function Ti({ count: e = 1, wrapper: t, className: n, containerClassName: r, con
|
|
|
638
638
|
};
|
|
639
639
|
let l = "react-loading-skeleton";
|
|
640
640
|
n && (l += ` ${n}`);
|
|
641
|
-
const
|
|
641
|
+
const f = (d = v.inline) !== null && d !== void 0 ? d : !1, b = [], _ = Math.ceil(e);
|
|
642
642
|
for (let x = 0; x < _; x++) {
|
|
643
643
|
let S = y;
|
|
644
644
|
if (_ > e && x === _ - 1) {
|
|
@@ -646,21 +646,21 @@ function Ti({ count: e = 1, wrapper: t, className: n, containerClassName: r, con
|
|
|
646
646
|
S = { ...S, width: T };
|
|
647
647
|
}
|
|
648
648
|
const g = we.createElement("span", { className: l, style: S, key: x }, "");
|
|
649
|
-
|
|
649
|
+
f ? b.push(g) : b.push(we.createElement(
|
|
650
650
|
we.Fragment,
|
|
651
651
|
{ key: x },
|
|
652
652
|
g,
|
|
653
653
|
we.createElement("br", null)
|
|
654
654
|
));
|
|
655
655
|
}
|
|
656
|
-
return we.createElement("span", { className: r, "data-testid": o, "aria-live": "polite", "aria-busy": (
|
|
656
|
+
return we.createElement("span", { className: r, "data-testid": o, "aria-live": "polite", "aria-busy": (h = v.enableAnimation) !== null && h !== void 0 ? h : Lr }, t ? b.map((x, S) => we.createElement(t, { key: S }, x)) : b);
|
|
657
657
|
}
|
|
658
658
|
const Ii = `@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}
|
|
659
659
|
`, Mi = ({
|
|
660
660
|
baseUrl: e,
|
|
661
661
|
searchPath: t
|
|
662
662
|
}) => {
|
|
663
|
-
const [n, r] =
|
|
663
|
+
const [n, r] = L(!1);
|
|
664
664
|
console.log("hasPermission state", n);
|
|
665
665
|
const o = async () => {
|
|
666
666
|
const a = e + (t || "/user-management/api/v1/users/my-account/access-stella-search");
|
|
@@ -696,21 +696,18 @@ function Ai({ classNames: e = "", ...t }) {
|
|
|
696
696
|
customColors: s,
|
|
697
697
|
notiprops: d,
|
|
698
698
|
isBrand: u,
|
|
699
|
-
logout:
|
|
700
|
-
} = t,
|
|
699
|
+
logout: h
|
|
700
|
+
} = t, m = n || "https://ukpcsaprod.blob.core.windows.net/lib/images/logo-header.png", p = {
|
|
701
701
|
...a,
|
|
702
702
|
color: (s == null ? void 0 : s.headerTextColor) || "white",
|
|
703
703
|
backgroundColor: (s == null ? void 0 : s.headerBgColor) || "black"
|
|
704
|
-
}, [v, y] =
|
|
705
|
-
console.log("term",
|
|
706
|
-
const [b, _] =
|
|
704
|
+
}, [v, y] = L(!1), l = ue(null), { Term: f } = fi();
|
|
705
|
+
console.log("term", f);
|
|
706
|
+
const [b, _] = L(f || ""), x = Mi({ baseUrl: o });
|
|
707
707
|
console.log("searchPermission", x.hasPermission);
|
|
708
|
-
const S = $i(o, b), g = Ye(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}, 500),
|
|
712
|
-
[]
|
|
713
|
-
);
|
|
708
|
+
const S = $i(o, b), g = Ye((w) => {
|
|
709
|
+
_(w);
|
|
710
|
+
}, []);
|
|
714
711
|
return /* @__PURE__ */ N(
|
|
715
712
|
Pr,
|
|
716
713
|
{
|
|
@@ -731,7 +728,7 @@ function Ai({ classNames: e = "", ...t }) {
|
|
|
731
728
|
className: `navbar ${e}`,
|
|
732
729
|
style: s ? p : a,
|
|
733
730
|
children: /* @__PURE__ */ N("div", { className: "navbar-container", children: [
|
|
734
|
-
/* @__PURE__ */ c("div", { className: "logo-container", children: /* @__PURE__ */ c("img", { src:
|
|
731
|
+
/* @__PURE__ */ c("div", { className: "logo-container", children: /* @__PURE__ */ c("img", { src: m, alt: "logo-header", style: { height: "40px" } }) }),
|
|
735
732
|
/* @__PURE__ */ N("div", { className: "right-side-container", children: [
|
|
736
733
|
u && x.hasPermission ? /* @__PURE__ */ c("span", { children: /* @__PURE__ */ N(
|
|
737
734
|
"label",
|
|
@@ -826,7 +823,7 @@ function Ai({ classNames: e = "", ...t }) {
|
|
|
826
823
|
{
|
|
827
824
|
isOpen: v,
|
|
828
825
|
onClose: () => y(!1),
|
|
829
|
-
onConfirm:
|
|
826
|
+
onConfirm: h
|
|
830
827
|
}
|
|
831
828
|
)
|
|
832
829
|
]
|
|
@@ -837,20 +834,20 @@ function Pi() {
|
|
|
837
834
|
var a;
|
|
838
835
|
const e = [
|
|
839
836
|
{
|
|
840
|
-
value:
|
|
837
|
+
value: zn.en,
|
|
841
838
|
element: /* @__PURE__ */ c(Ei, {})
|
|
842
839
|
},
|
|
843
840
|
{
|
|
844
|
-
value:
|
|
841
|
+
value: zn.de,
|
|
845
842
|
element: /* @__PURE__ */ c(ki, {})
|
|
846
843
|
}
|
|
847
|
-
], [t, n] =
|
|
848
|
-
|
|
844
|
+
], [t, n] = L(!1);
|
|
845
|
+
L(
|
|
849
846
|
new Array(e.length).fill(!1)
|
|
850
847
|
);
|
|
851
848
|
const { language: r, setLanguage: o } = Do();
|
|
852
849
|
Q(() => {
|
|
853
|
-
|
|
850
|
+
vn({
|
|
854
851
|
childrenClass: "languageDropdown",
|
|
855
852
|
action() {
|
|
856
853
|
n(!1);
|
|
@@ -880,9 +877,9 @@ function Ri({
|
|
|
880
877
|
avatarUrl: e,
|
|
881
878
|
userName: t
|
|
882
879
|
}) {
|
|
883
|
-
const [n, r] =
|
|
884
|
-
return ue(null),
|
|
885
|
-
|
|
880
|
+
const [n, r] = L(!1), o = ue(null);
|
|
881
|
+
return ue(null), L(!1), L(!1), Q(() => {
|
|
882
|
+
vn({
|
|
886
883
|
childrenClass: "userAvatar",
|
|
887
884
|
action() {
|
|
888
885
|
r(!1);
|
|
@@ -1282,7 +1279,7 @@ function Di() {
|
|
|
1282
1279
|
var zi = typeof vt == "object" && vt && vt.Object === Object && vt, Fi = typeof self == "object" && self && self.Object === Object && self;
|
|
1283
1280
|
zi || Fi || Function("return this")();
|
|
1284
1281
|
function Li(e) {
|
|
1285
|
-
const [t, n] =
|
|
1282
|
+
const [t, n] = L(!!e), r = Ye(() => {
|
|
1286
1283
|
n(!0);
|
|
1287
1284
|
}, []), o = Ye(() => {
|
|
1288
1285
|
n(!1);
|
|
@@ -1370,7 +1367,7 @@ function Zc({ rootPath: e }) {
|
|
|
1370
1367
|
/* @__PURE__ */ c("h1", { children: "404 - Not Found" }),
|
|
1371
1368
|
/* @__PURE__ */ c("p", { children: "Sorry, the page you are looking for does not exist." }),
|
|
1372
1369
|
/* @__PURE__ */ c(ii, { height: "16px" }),
|
|
1373
|
-
/* @__PURE__ */ c(
|
|
1370
|
+
/* @__PURE__ */ c(gn, { to: e, children: /* @__PURE__ */ c(Mt, { variant: "contained", color: "primary", children: "Go to Home" }) })
|
|
1374
1371
|
]
|
|
1375
1372
|
}
|
|
1376
1373
|
);
|
|
@@ -1396,17 +1393,17 @@ function ji(e) {
|
|
|
1396
1393
|
);
|
|
1397
1394
|
}
|
|
1398
1395
|
function Vi(e) {
|
|
1399
|
-
const { renderChildren: t, parentRef: n, onlyChild: r, dropdownLevel: o } = e, [i, a] =
|
|
1396
|
+
const { renderChildren: t, parentRef: n, onlyChild: r, dropdownLevel: o } = e, [i, a] = L({ top: 0, left: 0 }), s = ue(null), [d, u] = L("auto");
|
|
1400
1397
|
return Io(() => {
|
|
1401
1398
|
if (n.current && s.current) {
|
|
1402
|
-
const
|
|
1399
|
+
const h = n.current.getBoundingClientRect(), m = s.current.getBoundingClientRect();
|
|
1403
1400
|
let p, v;
|
|
1404
1401
|
if (o === 1)
|
|
1405
|
-
p =
|
|
1402
|
+
p = h.bottom, v = h.left, m.height + p > window.innerHeight ? (console.log("overbottom"), u(window.innerHeight - p - 50), p = h.bottom - m.height) : p = h.bottom;
|
|
1406
1403
|
else if (o > 1) {
|
|
1407
|
-
p =
|
|
1408
|
-
const y =
|
|
1409
|
-
y && (console.log("overtop"), u(window.innerHeight -
|
|
1404
|
+
p = h.top, v = h.left + h.width;
|
|
1405
|
+
const y = m.height + (window.innerHeight - h.top) > window.innerHeight;
|
|
1406
|
+
y && (console.log("overtop"), u(window.innerHeight - h.top - 50)), h.top + m.height > window.innerHeight && !y && (p = h.top - m.height + h.height);
|
|
1410
1407
|
}
|
|
1411
1408
|
a({
|
|
1412
1409
|
top: p,
|
|
@@ -1432,9 +1429,9 @@ function Vi(e) {
|
|
|
1432
1429
|
}
|
|
1433
1430
|
function jr({ ...e }) {
|
|
1434
1431
|
var V, z, H, G, re;
|
|
1435
|
-
const t = e.item, n = e.level || 0, r = !!((V = e.item.children) != null && V.length), { isActive: o } = e, i = `level-${n}`, a = o(t.id) ? "active" : "", s = (K, te = i) => `${K} ${te} ${a}`, [d, u] =
|
|
1432
|
+
const t = e.item, n = e.level || 0, r = !!((V = e.item.children) != null && V.length), { isActive: o } = e, i = `level-${n}`, a = o(t.id) ? "active" : "", s = (K, te = i) => `${K} ${te} ${a}`, [d, u] = L(!1), [h, m] = L(t.isFavorite || !1), p = ue(), v = ue();
|
|
1436
1433
|
v != null && v.current && ((z = v == null ? void 0 : v.current) == null ? void 0 : z.scrollWidth) > ((H = v == null ? void 0 : v.current) == null ? void 0 : H.clientWidth);
|
|
1437
|
-
const y = window.location.origin, l = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" },
|
|
1434
|
+
const y = window.location.origin, l = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" }, f = window.location.pathname.split("/")[1], b = l.pathname.split("/")[1], _ = e.ssr || !y.includes("local") && y !== l.origin || b !== f, x = r || n === 0 ? "div" : _ ? "a" : gn, S = t.path || "#", g = n + 1, w = r && d && n > 0, C = () => {
|
|
1438
1435
|
u(!0);
|
|
1439
1436
|
}, T = () => {
|
|
1440
1437
|
u(!1);
|
|
@@ -1493,7 +1490,7 @@ function jr({ ...e }) {
|
|
|
1493
1490
|
menuLevel: n,
|
|
1494
1491
|
hasChildren: r,
|
|
1495
1492
|
isHovered: d,
|
|
1496
|
-
isFavorite:
|
|
1493
|
+
isFavorite: h,
|
|
1497
1494
|
onClick: (K) => {
|
|
1498
1495
|
const te = {
|
|
1499
1496
|
menuConfigId: t.id,
|
|
@@ -1501,7 +1498,7 @@ function jr({ ...e }) {
|
|
|
1501
1498
|
}, me = e.baseUrl + O;
|
|
1502
1499
|
Pe.post(me, te).then((se) => {
|
|
1503
1500
|
var le;
|
|
1504
|
-
|
|
1501
|
+
m(K), zo("Set favorite menu item successfully"), (le = e.onSetFavoriteSuccess) == null || le.call(e, e.item.id, K);
|
|
1505
1502
|
}).catch((se) => {
|
|
1506
1503
|
var le, ge;
|
|
1507
1504
|
Ar(
|
|
@@ -1553,43 +1550,7 @@ function jr({ ...e }) {
|
|
|
1553
1550
|
);
|
|
1554
1551
|
}
|
|
1555
1552
|
function Hi({ item: e, cls: t }) {
|
|
1556
|
-
|
|
1557
|
-
const [n, r] = F(!e.icon), o = () => {
|
|
1558
|
-
r(!0);
|
|
1559
|
-
}, i = (a = e.icon) == null ? void 0 : a.endsWith(".svg");
|
|
1560
|
-
return /* @__PURE__ */ c("div", { className: t("menu-item__icon"), children: n ? /* @__PURE__ */ c(
|
|
1561
|
-
"div",
|
|
1562
|
-
{
|
|
1563
|
-
style: {
|
|
1564
|
-
width: 24,
|
|
1565
|
-
height: 24,
|
|
1566
|
-
backgroundColor: "#dadada",
|
|
1567
|
-
borderRadius: "5px",
|
|
1568
|
-
display: "flex",
|
|
1569
|
-
justifyContent: "center",
|
|
1570
|
-
alignItems: "center"
|
|
1571
|
-
},
|
|
1572
|
-
children: (s = e.name.trim().at(0)) == null ? void 0 : s.toUpperCase()
|
|
1573
|
-
}
|
|
1574
|
-
) : i ? /* @__PURE__ */ c(
|
|
1575
|
-
Lo,
|
|
1576
|
-
{
|
|
1577
|
-
src: e.icon,
|
|
1578
|
-
beforeInjection: (d) => {
|
|
1579
|
-
d.setAttribute("style", "margin: 0 auto;"), d.querySelectorAll("path").forEach((f) => {
|
|
1580
|
-
f.hasAttribute("fill") && f.setAttribute("fill", "currentColor"), f.hasAttribute("stroke") && f.setAttribute("stroke", "currentColor");
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
) : /* @__PURE__ */ c(
|
|
1585
|
-
"img",
|
|
1586
|
-
{
|
|
1587
|
-
src: e.icon || "/",
|
|
1588
|
-
alt: " ",
|
|
1589
|
-
style: { height: 24, maxHeight: 24 },
|
|
1590
|
-
onError: o
|
|
1591
|
-
}
|
|
1592
|
-
) });
|
|
1553
|
+
return /* @__PURE__ */ c("div", { className: t("menu-item__icon"), children: /* @__PURE__ */ c(Lo, { item: e }) });
|
|
1593
1554
|
}
|
|
1594
1555
|
function Bi(e) {
|
|
1595
1556
|
const t = {
|
|
@@ -1644,39 +1605,51 @@ function Yi(e) {
|
|
|
1644
1605
|
window.dispatchEvent(t);
|
|
1645
1606
|
}
|
|
1646
1607
|
function qi(e) {
|
|
1647
|
-
const t = hi(), [n, r] =
|
|
1608
|
+
const t = hi(), [n, r] = L([]), [o, i] = L(window.location.href);
|
|
1648
1609
|
Q(() => {
|
|
1649
1610
|
i(window.location.href);
|
|
1650
1611
|
}, [t]);
|
|
1651
|
-
const a = (
|
|
1652
|
-
function s(
|
|
1653
|
-
|
|
1654
|
-
|
|
1612
|
+
const a = (p) => `${p}`;
|
|
1613
|
+
function s(p, v) {
|
|
1614
|
+
for (const y of p) {
|
|
1615
|
+
if (y.id === v)
|
|
1616
|
+
return y;
|
|
1617
|
+
if (y.children) {
|
|
1618
|
+
const l = s(y.children, v);
|
|
1619
|
+
if (l)
|
|
1620
|
+
return l;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
return null;
|
|
1655
1624
|
}
|
|
1656
|
-
|
|
1657
|
-
|
|
1625
|
+
function d(p, v) {
|
|
1626
|
+
const y = s(n, p);
|
|
1627
|
+
console.log("updatedMenuItem:", y), y ? (y.isFavorite = v, Yi(y)) : console.error(`Item with id ${p} not found`);
|
|
1628
|
+
}
|
|
1629
|
+
const u = (p) => {
|
|
1630
|
+
console.log("Favorite menus changed", p), r(p.detail.favoriteMenus || []);
|
|
1658
1631
|
};
|
|
1659
|
-
Q(() => (window.addEventListener("favoriteMenusChange",
|
|
1632
|
+
Q(() => (window.addEventListener("favoriteMenusChange", u), () => {
|
|
1660
1633
|
window.removeEventListener(
|
|
1661
1634
|
"favoriteMenusChange",
|
|
1662
|
-
|
|
1635
|
+
u
|
|
1663
1636
|
);
|
|
1664
1637
|
}), []), console.log("favoriteItems", n);
|
|
1665
|
-
function
|
|
1666
|
-
return !
|
|
1667
|
-
|
|
1668
|
-
n.find((
|
|
1638
|
+
function h(p, v) {
|
|
1639
|
+
return !v || n.indexOf(v) === -1 ? 1 : h(
|
|
1640
|
+
v,
|
|
1641
|
+
n.find((l) => l.id === v.parentKey)
|
|
1669
1642
|
) + 1;
|
|
1670
1643
|
}
|
|
1671
|
-
const
|
|
1644
|
+
const m = (p, v, y) => /* @__PURE__ */ c(
|
|
1672
1645
|
jr,
|
|
1673
1646
|
{
|
|
1674
|
-
isActive: (
|
|
1647
|
+
isActive: (f) => y.some((b) => b.id === f),
|
|
1675
1648
|
brandColors: e.brandColors,
|
|
1676
1649
|
baseUrl: e.baseUrl,
|
|
1677
|
-
item:
|
|
1678
|
-
level:
|
|
1679
|
-
onSetFavoriteSuccess:
|
|
1650
|
+
item: p,
|
|
1651
|
+
level: v,
|
|
1652
|
+
onSetFavoriteSuccess: d
|
|
1680
1653
|
}
|
|
1681
1654
|
);
|
|
1682
1655
|
return /* @__PURE__ */ c(ke, { children: n.length ? /* @__PURE__ */ c("div", { className: a("side-bar"), children: /* @__PURE__ */ c(
|
|
@@ -1694,7 +1667,7 @@ function qi(e) {
|
|
|
1694
1667
|
scrollbarWidth: "thin"
|
|
1695
1668
|
},
|
|
1696
1669
|
children: n.map(
|
|
1697
|
-
(
|
|
1670
|
+
(p) => /* @__PURE__ */ c("div", { children: m(p, h(), []) }, p.id)
|
|
1698
1671
|
)
|
|
1699
1672
|
}
|
|
1700
1673
|
) }) : "" });
|
|
@@ -1709,7 +1682,7 @@ function Jc(e) {
|
|
|
1709
1682
|
) });
|
|
1710
1683
|
}
|
|
1711
1684
|
function Xc() {
|
|
1712
|
-
const { colors: e } =
|
|
1685
|
+
const { colors: e } = pn();
|
|
1713
1686
|
return /* @__PURE__ */ c(
|
|
1714
1687
|
"div",
|
|
1715
1688
|
{
|
|
@@ -1847,7 +1820,7 @@ function Vr(e) {
|
|
|
1847
1820
|
function ve(e, t, n = {
|
|
1848
1821
|
clone: !0
|
|
1849
1822
|
}) {
|
|
1850
|
-
const r = n.clone ?
|
|
1823
|
+
const r = n.clone ? F({}, e) : e;
|
|
1851
1824
|
return Ne(e) && Ne(t) && Object.keys(t).forEach((o) => {
|
|
1852
1825
|
o !== "__proto__" && (Ne(t[o]) && o in e && Ne(e[o]) ? r[o] = ve(e[o], t[o], n) : n.clone ? r[o] = Ne(t[o]) ? Vr(t[o]) : t[o] : r[o] = t[o]);
|
|
1853
1826
|
}), r;
|
|
@@ -1867,7 +1840,7 @@ const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1867
1840
|
__proto__: null,
|
|
1868
1841
|
default: st
|
|
1869
1842
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1870
|
-
var
|
|
1843
|
+
var ln = { exports: {} }, A = {};
|
|
1871
1844
|
/**
|
|
1872
1845
|
* @license React
|
|
1873
1846
|
* react-is.production.min.js
|
|
@@ -1882,29 +1855,29 @@ function Ji() {
|
|
|
1882
1855
|
if (Bn)
|
|
1883
1856
|
return A;
|
|
1884
1857
|
Bn = 1;
|
|
1885
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"),
|
|
1858
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y;
|
|
1886
1859
|
y = Symbol.for("react.module.reference");
|
|
1887
|
-
function l(
|
|
1888
|
-
if (typeof
|
|
1889
|
-
var b =
|
|
1860
|
+
function l(f) {
|
|
1861
|
+
if (typeof f == "object" && f !== null) {
|
|
1862
|
+
var b = f.$$typeof;
|
|
1890
1863
|
switch (b) {
|
|
1891
1864
|
case e:
|
|
1892
|
-
switch (
|
|
1865
|
+
switch (f = f.type, f) {
|
|
1893
1866
|
case n:
|
|
1894
1867
|
case o:
|
|
1895
1868
|
case r:
|
|
1896
1869
|
case u:
|
|
1897
|
-
case
|
|
1898
|
-
return
|
|
1870
|
+
case h:
|
|
1871
|
+
return f;
|
|
1899
1872
|
default:
|
|
1900
|
-
switch (
|
|
1873
|
+
switch (f = f && f.$$typeof, f) {
|
|
1901
1874
|
case s:
|
|
1902
1875
|
case a:
|
|
1903
1876
|
case d:
|
|
1904
1877
|
case p:
|
|
1905
|
-
case
|
|
1878
|
+
case m:
|
|
1906
1879
|
case i:
|
|
1907
|
-
return
|
|
1880
|
+
return f;
|
|
1908
1881
|
default:
|
|
1909
1882
|
return b;
|
|
1910
1883
|
}
|
|
@@ -1914,36 +1887,36 @@ function Ji() {
|
|
|
1914
1887
|
}
|
|
1915
1888
|
}
|
|
1916
1889
|
}
|
|
1917
|
-
return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef = d, A.Fragment = n, A.Lazy = p, A.Memo =
|
|
1890
|
+
return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef = d, A.Fragment = n, A.Lazy = p, A.Memo = m, A.Portal = t, A.Profiler = o, A.StrictMode = r, A.Suspense = u, A.SuspenseList = h, A.isAsyncMode = function() {
|
|
1918
1891
|
return !1;
|
|
1919
1892
|
}, A.isConcurrentMode = function() {
|
|
1920
1893
|
return !1;
|
|
1921
|
-
}, A.isContextConsumer = function(
|
|
1922
|
-
return l(
|
|
1923
|
-
}, A.isContextProvider = function(
|
|
1924
|
-
return l(
|
|
1925
|
-
}, A.isElement = function(
|
|
1926
|
-
return typeof
|
|
1927
|
-
}, A.isForwardRef = function(
|
|
1928
|
-
return l(
|
|
1929
|
-
}, A.isFragment = function(
|
|
1930
|
-
return l(
|
|
1931
|
-
}, A.isLazy = function(
|
|
1932
|
-
return l(
|
|
1933
|
-
}, A.isMemo = function(
|
|
1934
|
-
return l(
|
|
1935
|
-
}, A.isPortal = function(
|
|
1936
|
-
return l(
|
|
1937
|
-
}, A.isProfiler = function(
|
|
1938
|
-
return l(
|
|
1939
|
-
}, A.isStrictMode = function(
|
|
1940
|
-
return l(
|
|
1941
|
-
}, A.isSuspense = function(
|
|
1942
|
-
return l(
|
|
1943
|
-
}, A.isSuspenseList = function(
|
|
1944
|
-
return l(
|
|
1945
|
-
}, A.isValidElementType = function(
|
|
1946
|
-
return typeof
|
|
1894
|
+
}, A.isContextConsumer = function(f) {
|
|
1895
|
+
return l(f) === a;
|
|
1896
|
+
}, A.isContextProvider = function(f) {
|
|
1897
|
+
return l(f) === i;
|
|
1898
|
+
}, A.isElement = function(f) {
|
|
1899
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
1900
|
+
}, A.isForwardRef = function(f) {
|
|
1901
|
+
return l(f) === d;
|
|
1902
|
+
}, A.isFragment = function(f) {
|
|
1903
|
+
return l(f) === n;
|
|
1904
|
+
}, A.isLazy = function(f) {
|
|
1905
|
+
return l(f) === p;
|
|
1906
|
+
}, A.isMemo = function(f) {
|
|
1907
|
+
return l(f) === m;
|
|
1908
|
+
}, A.isPortal = function(f) {
|
|
1909
|
+
return l(f) === t;
|
|
1910
|
+
}, A.isProfiler = function(f) {
|
|
1911
|
+
return l(f) === o;
|
|
1912
|
+
}, A.isStrictMode = function(f) {
|
|
1913
|
+
return l(f) === r;
|
|
1914
|
+
}, A.isSuspense = function(f) {
|
|
1915
|
+
return l(f) === u;
|
|
1916
|
+
}, A.isSuspenseList = function(f) {
|
|
1917
|
+
return l(f) === h;
|
|
1918
|
+
}, A.isValidElementType = function(f) {
|
|
1919
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === o || f === r || f === u || f === h || f === v || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === m || f.$$typeof === i || f.$$typeof === a || f.$$typeof === d || f.$$typeof === y || f.getModuleId !== void 0);
|
|
1947
1920
|
}, A.typeOf = l, A;
|
|
1948
1921
|
}
|
|
1949
1922
|
var P = {};
|
|
@@ -1959,10 +1932,10 @@ var P = {};
|
|
|
1959
1932
|
var Wn;
|
|
1960
1933
|
function Xi() {
|
|
1961
1934
|
return Wn || (Wn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1962
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"),
|
|
1935
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y = !1, l = !1, f = !1, b = !1, _ = !1, x;
|
|
1963
1936
|
x = Symbol.for("react.module.reference");
|
|
1964
1937
|
function S(k) {
|
|
1965
|
-
return !!(typeof k == "string" || typeof k == "function" || k === n || k === o || _ || k === r || k === u || k ===
|
|
1938
|
+
return !!(typeof k == "string" || typeof k == "function" || k === n || k === o || _ || k === r || k === u || k === h || b || k === v || y || l || f || typeof k == "object" && k !== null && (k.$$typeof === p || k.$$typeof === m || k.$$typeof === i || k.$$typeof === a || k.$$typeof === d || // This needs to include all possible module reference object
|
|
1966
1939
|
// types supported by any Flight configuration anywhere since
|
|
1967
1940
|
// we don't know which Flight build this will end up being used
|
|
1968
1941
|
// with.
|
|
@@ -1979,18 +1952,18 @@ function Xi() {
|
|
|
1979
1952
|
case o:
|
|
1980
1953
|
case r:
|
|
1981
1954
|
case u:
|
|
1982
|
-
case
|
|
1955
|
+
case h:
|
|
1983
1956
|
return yt;
|
|
1984
1957
|
default:
|
|
1985
|
-
var
|
|
1986
|
-
switch (
|
|
1958
|
+
var Dn = yt && yt.$$typeof;
|
|
1959
|
+
switch (Dn) {
|
|
1987
1960
|
case s:
|
|
1988
1961
|
case a:
|
|
1989
1962
|
case d:
|
|
1990
1963
|
case p:
|
|
1991
|
-
case
|
|
1964
|
+
case m:
|
|
1992
1965
|
case i:
|
|
1993
|
-
return
|
|
1966
|
+
return Dn;
|
|
1994
1967
|
default:
|
|
1995
1968
|
return Fe;
|
|
1996
1969
|
}
|
|
@@ -2000,7 +1973,7 @@ function Xi() {
|
|
|
2000
1973
|
}
|
|
2001
1974
|
}
|
|
2002
1975
|
}
|
|
2003
|
-
var w = a, C = i, T = e, O = d, V = n, z = p, H =
|
|
1976
|
+
var w = a, C = i, T = e, O = d, V = n, z = p, H = m, G = t, re = o, K = r, te = u, me = h, se = !1, le = !1;
|
|
2004
1977
|
function ge(k) {
|
|
2005
1978
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2006
1979
|
}
|
|
@@ -2026,7 +1999,7 @@ function Xi() {
|
|
|
2026
1999
|
return g(k) === p;
|
|
2027
2000
|
}
|
|
2028
2001
|
function Qt(k) {
|
|
2029
|
-
return g(k) ===
|
|
2002
|
+
return g(k) === m;
|
|
2030
2003
|
}
|
|
2031
2004
|
function en(k) {
|
|
2032
2005
|
return g(k) === t;
|
|
@@ -2041,13 +2014,13 @@ function Xi() {
|
|
|
2041
2014
|
return g(k) === u;
|
|
2042
2015
|
}
|
|
2043
2016
|
function nt(k) {
|
|
2044
|
-
return g(k) ===
|
|
2017
|
+
return g(k) === h;
|
|
2045
2018
|
}
|
|
2046
2019
|
P.ContextConsumer = w, P.ContextProvider = C, P.Element = T, P.ForwardRef = O, P.Fragment = V, P.Lazy = z, P.Memo = H, P.Portal = G, P.Profiler = re, P.StrictMode = K, P.Suspense = te, P.SuspenseList = me, P.isAsyncMode = ge, P.isConcurrentMode = et, P.isContextConsumer = tt, P.isContextProvider = De, P.isElement = _e, P.isForwardRef = ze, P.isFragment = Jt, P.isLazy = Xt, P.isMemo = Qt, P.isPortal = en, P.isProfiler = tn, P.isStrictMode = nn, P.isSuspense = E, P.isSuspenseList = nt, P.isValidElementType = S, P.typeOf = g;
|
|
2047
2020
|
}()), P;
|
|
2048
2021
|
}
|
|
2049
|
-
process.env.NODE_ENV === "production" ?
|
|
2050
|
-
var Un =
|
|
2022
|
+
process.env.NODE_ENV === "production" ? ln.exports = Ji() : ln.exports = Xi();
|
|
2023
|
+
var Un = ln.exports;
|
|
2051
2024
|
const Qi = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
2052
2025
|
function Hr(e) {
|
|
2053
2026
|
const t = `${e}`.match(Qi);
|
|
@@ -2092,13 +2065,13 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2092
2065
|
default: Ae
|
|
2093
2066
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2094
2067
|
function Wr(e, t) {
|
|
2095
|
-
const n =
|
|
2068
|
+
const n = F({}, t);
|
|
2096
2069
|
return Object.keys(e).forEach((r) => {
|
|
2097
2070
|
if (r.toString().match(/^(components|slots)$/))
|
|
2098
|
-
n[r] =
|
|
2071
|
+
n[r] = F({}, e[r], n[r]);
|
|
2099
2072
|
else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
2100
2073
|
const o = e[r] || {}, i = t[r];
|
|
2101
|
-
n[r] = {}, !i || !Object.keys(i) ? n[r] = o : !o || !Object.keys(o) ? n[r] = i : (n[r] =
|
|
2074
|
+
n[r] = {}, !i || !Object.keys(i) ? n[r] = o : !o || !Object.keys(o) ? n[r] = i : (n[r] = F({}, i), Object.keys(o).forEach((a) => {
|
|
2102
2075
|
n[r][a] = Wr(o[a], i[a]);
|
|
2103
2076
|
}));
|
|
2104
2077
|
} else
|
|
@@ -2148,14 +2121,14 @@ const qn = (e) => e, oa = () => {
|
|
|
2148
2121
|
required: "required",
|
|
2149
2122
|
selected: "selected"
|
|
2150
2123
|
};
|
|
2151
|
-
function
|
|
2124
|
+
function bn(e, t, n = "Mui") {
|
|
2152
2125
|
const r = sa[t];
|
|
2153
2126
|
return r ? `${n}-${r}` : `${aa.generate(e)}-${t}`;
|
|
2154
2127
|
}
|
|
2155
2128
|
function la(e, t, n = "Mui") {
|
|
2156
2129
|
const r = {};
|
|
2157
2130
|
return t.forEach((o) => {
|
|
2158
|
-
r[o] =
|
|
2131
|
+
r[o] = bn(e, o, n);
|
|
2159
2132
|
}), r;
|
|
2160
2133
|
}
|
|
2161
2134
|
function ca(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
|
|
@@ -2178,7 +2151,7 @@ const fa = ["values", "unit", "step"], ha = (e) => {
|
|
|
2178
2151
|
key: n,
|
|
2179
2152
|
val: e[n]
|
|
2180
2153
|
})) || [];
|
|
2181
|
-
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) =>
|
|
2154
|
+
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => F({}, n, {
|
|
2182
2155
|
[r.key]: r.val
|
|
2183
2156
|
}), {});
|
|
2184
2157
|
};
|
|
@@ -2211,21 +2184,21 @@ function Ur(e) {
|
|
|
2211
2184
|
const y = a.indexOf(v);
|
|
2212
2185
|
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${n}) and (max-width:${(y !== -1 && typeof t[a[y]] == "number" ? t[a[y]] : v) - r / 100}${n})`;
|
|
2213
2186
|
}
|
|
2214
|
-
function
|
|
2187
|
+
function h(p) {
|
|
2215
2188
|
return a.indexOf(p) + 1 < a.length ? u(p, a[a.indexOf(p) + 1]) : s(p);
|
|
2216
2189
|
}
|
|
2217
|
-
function
|
|
2190
|
+
function m(p) {
|
|
2218
2191
|
const v = a.indexOf(p);
|
|
2219
2192
|
return v === 0 ? s(a[1]) : v === a.length - 1 ? d(a[v]) : u(p, a[a.indexOf(p) + 1]).replace("@media", "@media not all and");
|
|
2220
2193
|
}
|
|
2221
|
-
return
|
|
2194
|
+
return F({
|
|
2222
2195
|
keys: a,
|
|
2223
2196
|
values: i,
|
|
2224
2197
|
up: s,
|
|
2225
2198
|
down: d,
|
|
2226
2199
|
between: u,
|
|
2227
|
-
only:
|
|
2228
|
-
not:
|
|
2200
|
+
only: h,
|
|
2201
|
+
not: m,
|
|
2229
2202
|
unit: n
|
|
2230
2203
|
}, o);
|
|
2231
2204
|
}
|
|
@@ -2238,7 +2211,7 @@ function at(e, t) {
|
|
|
2238
2211
|
// No need to clone deep, it's way faster.
|
|
2239
2212
|
}) : e;
|
|
2240
2213
|
}
|
|
2241
|
-
const
|
|
2214
|
+
const xn = {
|
|
2242
2215
|
xs: 0,
|
|
2243
2216
|
// phone
|
|
2244
2217
|
sm: 600,
|
|
@@ -2253,7 +2226,7 @@ const _n = {
|
|
|
2253
2226
|
// Sorted ASC by size. That's important.
|
|
2254
2227
|
// It can't be configured as it's used statically for propTypes.
|
|
2255
2228
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
2256
|
-
up: (e) => `@media (min-width:${
|
|
2229
|
+
up: (e) => `@media (min-width:${xn[e]}px)`
|
|
2257
2230
|
};
|
|
2258
2231
|
function Ee(e, t, n) {
|
|
2259
2232
|
const r = e.theme || {};
|
|
@@ -2264,7 +2237,7 @@ function Ee(e, t, n) {
|
|
|
2264
2237
|
if (typeof t == "object") {
|
|
2265
2238
|
const i = r.breakpoints || Gn;
|
|
2266
2239
|
return Object.keys(t).reduce((a, s) => {
|
|
2267
|
-
if (Object.keys(i.values ||
|
|
2240
|
+
if (Object.keys(i.values || xn).indexOf(s) !== -1) {
|
|
2268
2241
|
const d = i.up(s);
|
|
2269
2242
|
a[d] = n(t[s], s);
|
|
2270
2243
|
} else {
|
|
@@ -2313,9 +2286,9 @@ function Y(e) {
|
|
|
2313
2286
|
if (a[t] == null)
|
|
2314
2287
|
return null;
|
|
2315
2288
|
const s = a[t], d = a.theme, u = zt(d, r) || {};
|
|
2316
|
-
return Ee(a, s, (
|
|
2317
|
-
let p = $t(u, o,
|
|
2318
|
-
return
|
|
2289
|
+
return Ee(a, s, (m) => {
|
|
2290
|
+
let p = $t(u, o, m);
|
|
2291
|
+
return m === p && typeof m == "string" && (p = $t(u, o, `${t}${m === "default" ? "" : Ae(m)}`, m)), n === !1 ? p : {
|
|
2319
2292
|
[n]: p
|
|
2320
2293
|
};
|
|
2321
2294
|
});
|
|
@@ -2518,11 +2491,11 @@ function ie(e) {
|
|
|
2518
2491
|
const Ja = Y({
|
|
2519
2492
|
prop: "width",
|
|
2520
2493
|
transform: ie
|
|
2521
|
-
}),
|
|
2494
|
+
}), _n = (e) => {
|
|
2522
2495
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
2523
2496
|
const t = (n) => {
|
|
2524
2497
|
var r, o;
|
|
2525
|
-
const i = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) ||
|
|
2498
|
+
const i = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) || xn[n];
|
|
2526
2499
|
return i ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? {
|
|
2527
2500
|
maxWidth: `${i}${e.theme.breakpoints.unit}`
|
|
2528
2501
|
} : {
|
|
@@ -2535,7 +2508,7 @@ const Ja = Y({
|
|
|
2535
2508
|
}
|
|
2536
2509
|
return null;
|
|
2537
2510
|
};
|
|
2538
|
-
|
|
2511
|
+
_n.filterProps = ["maxWidth"];
|
|
2539
2512
|
const Xa = Y({
|
|
2540
2513
|
prop: "minWidth",
|
|
2541
2514
|
transform: ie
|
|
@@ -2562,7 +2535,7 @@ Y({
|
|
|
2562
2535
|
const ns = Y({
|
|
2563
2536
|
prop: "boxSizing"
|
|
2564
2537
|
});
|
|
2565
|
-
jt(Ja,
|
|
2538
|
+
jt(Ja, _n, Xa, Qa, es, ts, ns);
|
|
2566
2539
|
const rs = {
|
|
2567
2540
|
// borders
|
|
2568
2541
|
border: {
|
|
@@ -2811,7 +2784,7 @@ const rs = {
|
|
|
2811
2784
|
transform: ie
|
|
2812
2785
|
},
|
|
2813
2786
|
maxWidth: {
|
|
2814
|
-
style:
|
|
2787
|
+
style: _n
|
|
2815
2788
|
},
|
|
2816
2789
|
minWidth: {
|
|
2817
2790
|
transform: ie
|
|
@@ -2868,8 +2841,8 @@ function Gr() {
|
|
|
2868
2841
|
const {
|
|
2869
2842
|
cssProperty: d = n,
|
|
2870
2843
|
themeKey: u,
|
|
2871
|
-
transform:
|
|
2872
|
-
style:
|
|
2844
|
+
transform: h,
|
|
2845
|
+
style: m
|
|
2873
2846
|
} = s;
|
|
2874
2847
|
if (r == null)
|
|
2875
2848
|
return null;
|
|
@@ -2878,9 +2851,9 @@ function Gr() {
|
|
|
2878
2851
|
[n]: r
|
|
2879
2852
|
};
|
|
2880
2853
|
const p = zt(o, u) || {};
|
|
2881
|
-
return
|
|
2882
|
-
let l = $t(p,
|
|
2883
|
-
return y === l && typeof y == "string" && (l = $t(p,
|
|
2854
|
+
return m ? m(a) : Ee(a, r, (y) => {
|
|
2855
|
+
let l = $t(p, h, y);
|
|
2856
|
+
return y === l && typeof y == "string" && (l = $t(p, h, `${n}${y === "default" ? "" : Ae(y)}`, y)), d === !1 ? l : {
|
|
2884
2857
|
[d]: l
|
|
2885
2858
|
};
|
|
2886
2859
|
});
|
|
@@ -2902,8 +2875,8 @@ function Gr() {
|
|
|
2902
2875
|
return d;
|
|
2903
2876
|
if (!u)
|
|
2904
2877
|
return null;
|
|
2905
|
-
const
|
|
2906
|
-
let p =
|
|
2878
|
+
const h = ya(i.breakpoints), m = Object.keys(h);
|
|
2879
|
+
let p = h;
|
|
2907
2880
|
return Object.keys(u).forEach((v) => {
|
|
2908
2881
|
const y = is(u[v], i);
|
|
2909
2882
|
if (y != null)
|
|
@@ -2913,8 +2886,8 @@ function Gr() {
|
|
|
2913
2886
|
else {
|
|
2914
2887
|
const l = Ee({
|
|
2915
2888
|
theme: i
|
|
2916
|
-
}, y, (
|
|
2917
|
-
[v]:
|
|
2889
|
+
}, y, (f) => ({
|
|
2890
|
+
[v]: f
|
|
2918
2891
|
}));
|
|
2919
2892
|
os(l, y) ? p[v] = t({
|
|
2920
2893
|
sx: y,
|
|
@@ -2923,7 +2896,7 @@ function Gr() {
|
|
|
2923
2896
|
}
|
|
2924
2897
|
else
|
|
2925
2898
|
p = at(p, e(v, y, i, a));
|
|
2926
|
-
}), va(
|
|
2899
|
+
}), va(m, p);
|
|
2927
2900
|
}
|
|
2928
2901
|
return Array.isArray(o) ? o.map(s) : s(o);
|
|
2929
2902
|
}
|
|
@@ -2931,7 +2904,7 @@ function Gr() {
|
|
|
2931
2904
|
}
|
|
2932
2905
|
const Kr = Gr();
|
|
2933
2906
|
Kr.filterProps = ["sx"];
|
|
2934
|
-
const
|
|
2907
|
+
const wn = Kr;
|
|
2935
2908
|
function Zr(e, t) {
|
|
2936
2909
|
const n = this;
|
|
2937
2910
|
return n.vars && typeof n.getColorSchemeSelector == "function" ? {
|
|
@@ -2939,7 +2912,7 @@ function Zr(e, t) {
|
|
|
2939
2912
|
} : n.palette.mode === e ? t : {};
|
|
2940
2913
|
}
|
|
2941
2914
|
const as = ["breakpoints", "palette", "spacing", "shape"];
|
|
2942
|
-
function
|
|
2915
|
+
function Sn(e = {}, ...t) {
|
|
2943
2916
|
const {
|
|
2944
2917
|
breakpoints: n = {},
|
|
2945
2918
|
palette: r = {},
|
|
@@ -2951,22 +2924,22 @@ function Cn(e = {}, ...t) {
|
|
|
2951
2924
|
direction: "ltr",
|
|
2952
2925
|
components: {},
|
|
2953
2926
|
// Inject component definitions.
|
|
2954
|
-
palette:
|
|
2927
|
+
palette: F({
|
|
2955
2928
|
mode: "light"
|
|
2956
2929
|
}, r),
|
|
2957
2930
|
spacing: d,
|
|
2958
|
-
shape:
|
|
2931
|
+
shape: F({}, pa, i)
|
|
2959
2932
|
}, a);
|
|
2960
|
-
return u.applyStyles = Zr, u = t.reduce((
|
|
2961
|
-
return
|
|
2962
|
-
sx:
|
|
2933
|
+
return u.applyStyles = Zr, u = t.reduce((h, m) => ve(h, m), u), u.unstable_sxConfig = F({}, mt, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
2934
|
+
return wn({
|
|
2935
|
+
sx: m,
|
|
2963
2936
|
theme: this
|
|
2964
2937
|
});
|
|
2965
2938
|
}, u;
|
|
2966
2939
|
}
|
|
2967
2940
|
const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2968
2941
|
__proto__: null,
|
|
2969
|
-
default:
|
|
2942
|
+
default: Sn,
|
|
2970
2943
|
private_createBreakpoints: Ur,
|
|
2971
2944
|
unstable_applyStyles: Zr
|
|
2972
2945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -3027,7 +3000,7 @@ var fs = /* @__PURE__ */ function() {
|
|
|
3027
3000
|
return r.parentNode && r.parentNode.removeChild(r);
|
|
3028
3001
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
3029
3002
|
}, e;
|
|
3030
|
-
}(), ee = "-ms-", At = "-moz-", M = "-webkit-",
|
|
3003
|
+
}(), ee = "-ms-", At = "-moz-", M = "-webkit-", Cn = "comm", En = "rule", kn = "decl", hs = "@import", Xr = "@keyframes", ms = "@layer", ps = Math.abs, Ut = String.fromCharCode, gs = Object.assign;
|
|
3031
3004
|
function ys(e, t) {
|
|
3032
3005
|
return X(e, 0) ^ 45 ? (((t << 2 ^ X(e, 0)) << 2 ^ X(e, 1)) << 2 ^ X(e, 2)) << 2 ^ X(e, 3) : 0;
|
|
3033
3006
|
}
|
|
@@ -3040,7 +3013,7 @@ function vs(e, t) {
|
|
|
3040
3013
|
function $(e, t, n) {
|
|
3041
3014
|
return e.replace(t, n);
|
|
3042
3015
|
}
|
|
3043
|
-
function
|
|
3016
|
+
function cn(e, t) {
|
|
3044
3017
|
return e.indexOf(t);
|
|
3045
3018
|
}
|
|
3046
3019
|
function X(e, t) {
|
|
@@ -3052,7 +3025,7 @@ function lt(e, t, n) {
|
|
|
3052
3025
|
function ye(e) {
|
|
3053
3026
|
return e.length;
|
|
3054
3027
|
}
|
|
3055
|
-
function
|
|
3028
|
+
function Nn(e) {
|
|
3056
3029
|
return e.length;
|
|
3057
3030
|
}
|
|
3058
3031
|
function _t(e, t) {
|
|
@@ -3125,7 +3098,7 @@ function no(e) {
|
|
|
3125
3098
|
return Je = "", e;
|
|
3126
3099
|
}
|
|
3127
3100
|
function Et(e) {
|
|
3128
|
-
return Qr(pt(ne - 1,
|
|
3101
|
+
return Qr(pt(ne - 1, dn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3129
3102
|
}
|
|
3130
3103
|
function ws(e) {
|
|
3131
3104
|
for (; (Z = be()) && Z < 33; )
|
|
@@ -3137,17 +3110,17 @@ function Ss(e, t) {
|
|
|
3137
3110
|
;
|
|
3138
3111
|
return pt(e, Ct() + (t < 6 && be() == 32 && ae() == 32));
|
|
3139
3112
|
}
|
|
3140
|
-
function
|
|
3113
|
+
function dn(e) {
|
|
3141
3114
|
for (; ae(); )
|
|
3142
3115
|
switch (Z) {
|
|
3143
3116
|
case e:
|
|
3144
3117
|
return ne;
|
|
3145
3118
|
case 34:
|
|
3146
3119
|
case 39:
|
|
3147
|
-
e !== 34 && e !== 39 &&
|
|
3120
|
+
e !== 34 && e !== 39 && dn(Z);
|
|
3148
3121
|
break;
|
|
3149
3122
|
case 40:
|
|
3150
|
-
e === 41 &&
|
|
3123
|
+
e === 41 && dn(e);
|
|
3151
3124
|
break;
|
|
3152
3125
|
case 92:
|
|
3153
3126
|
ae();
|
|
@@ -3170,11 +3143,11 @@ function ks(e) {
|
|
|
3170
3143
|
return no(kt("", null, null, null, [""], e = to(e), 0, [0], e));
|
|
3171
3144
|
}
|
|
3172
3145
|
function kt(e, t, n, r, o, i, a, s, d) {
|
|
3173
|
-
for (var u = 0,
|
|
3146
|
+
for (var u = 0, h = 0, m = a, p = 0, v = 0, y = 0, l = 1, f = 1, b = 1, _ = 0, x = "", S = o, g = i, w = r, C = x; f; )
|
|
3174
3147
|
switch (y = _, _ = ae()) {
|
|
3175
3148
|
case 40:
|
|
3176
|
-
if (y != 108 && X(C,
|
|
3177
|
-
|
|
3149
|
+
if (y != 108 && X(C, m - 1) == 58) {
|
|
3150
|
+
cn(C += $(Et(_), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
3178
3151
|
break;
|
|
3179
3152
|
}
|
|
3180
3153
|
case 34:
|
|
@@ -3209,32 +3182,32 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3209
3182
|
switch (_) {
|
|
3210
3183
|
case 0:
|
|
3211
3184
|
case 125:
|
|
3212
|
-
|
|
3213
|
-
case 59 +
|
|
3214
|
-
b == -1 && (C = $(C, /\f/g, "")), v > 0 && ye(C) -
|
|
3185
|
+
f = 0;
|
|
3186
|
+
case 59 + h:
|
|
3187
|
+
b == -1 && (C = $(C, /\f/g, "")), v > 0 && ye(C) - m && _t(v > 32 ? Jn(C + ";", r, n, m - 1) : Jn($(C, " ", "") + ";", r, n, m - 2), d);
|
|
3215
3188
|
break;
|
|
3216
3189
|
case 59:
|
|
3217
3190
|
C += ";";
|
|
3218
3191
|
default:
|
|
3219
|
-
if (_t(w = Zn(C, t, n, u,
|
|
3220
|
-
if (
|
|
3221
|
-
kt(C, t, w, w, S, i,
|
|
3192
|
+
if (_t(w = Zn(C, t, n, u, h, o, s, x, S = [], g = [], m), i), _ === 123)
|
|
3193
|
+
if (h === 0)
|
|
3194
|
+
kt(C, t, w, w, S, i, m, s, g);
|
|
3222
3195
|
else
|
|
3223
3196
|
switch (p === 99 && X(C, 3) === 110 ? 100 : p) {
|
|
3224
3197
|
case 100:
|
|
3225
3198
|
case 108:
|
|
3226
3199
|
case 109:
|
|
3227
3200
|
case 115:
|
|
3228
|
-
kt(e, w, w, r && _t(Zn(e, w, w, 0, 0, o, s, x, o, S = [],
|
|
3201
|
+
kt(e, w, w, r && _t(Zn(e, w, w, 0, 0, o, s, x, o, S = [], m), g), o, g, m, s, r ? S : g);
|
|
3229
3202
|
break;
|
|
3230
3203
|
default:
|
|
3231
3204
|
kt(C, w, w, w, [""], g, 0, s, g);
|
|
3232
3205
|
}
|
|
3233
3206
|
}
|
|
3234
|
-
u =
|
|
3207
|
+
u = h = v = 0, l = b = 1, x = C = "", m = a;
|
|
3235
3208
|
break;
|
|
3236
3209
|
case 58:
|
|
3237
|
-
|
|
3210
|
+
m = 1 + ye(C), v = y;
|
|
3238
3211
|
default:
|
|
3239
3212
|
if (l < 1) {
|
|
3240
3213
|
if (_ == 123)
|
|
@@ -3244,13 +3217,13 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3244
3217
|
}
|
|
3245
3218
|
switch (C += Ut(_), _ * l) {
|
|
3246
3219
|
case 38:
|
|
3247
|
-
b =
|
|
3220
|
+
b = h > 0 ? 1 : (C += "\f", -1);
|
|
3248
3221
|
break;
|
|
3249
3222
|
case 44:
|
|
3250
3223
|
s[u++] = (ye(C) - 1) * b, b = 1;
|
|
3251
3224
|
break;
|
|
3252
3225
|
case 64:
|
|
3253
|
-
be() === 45 && (C += Et(ae())), p = be(),
|
|
3226
|
+
be() === 45 && (C += Et(ae())), p = be(), h = m = ye(x = C += Es(Ct())), _++;
|
|
3254
3227
|
break;
|
|
3255
3228
|
case 45:
|
|
3256
3229
|
y === 45 && ye(C) == 2 && (l = 0);
|
|
@@ -3258,20 +3231,20 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3258
3231
|
}
|
|
3259
3232
|
return i;
|
|
3260
3233
|
}
|
|
3261
|
-
function Zn(e, t, n, r, o, i, a, s, d, u,
|
|
3262
|
-
for (var
|
|
3263
|
-
for (var b = 0, _ = lt(e,
|
|
3264
|
-
(x = Qr(l > 0 ? p[b] + " " + _ : $(_, /&\f/g, p[b]))) && (d[
|
|
3265
|
-
return qt(e, t, n, o === 0 ?
|
|
3234
|
+
function Zn(e, t, n, r, o, i, a, s, d, u, h) {
|
|
3235
|
+
for (var m = o - 1, p = o === 0 ? i : [""], v = Nn(p), y = 0, l = 0, f = 0; y < r; ++y)
|
|
3236
|
+
for (var b = 0, _ = lt(e, m + 1, m = ps(l = a[y])), x = e; b < v; ++b)
|
|
3237
|
+
(x = Qr(l > 0 ? p[b] + " " + _ : $(_, /&\f/g, p[b]))) && (d[f++] = x);
|
|
3238
|
+
return qt(e, t, n, o === 0 ? En : s, d, u, h);
|
|
3266
3239
|
}
|
|
3267
3240
|
function Ns(e, t, n) {
|
|
3268
|
-
return qt(e, t, n,
|
|
3241
|
+
return qt(e, t, n, Cn, Ut(xs()), lt(e, 2, -2), 0);
|
|
3269
3242
|
}
|
|
3270
3243
|
function Jn(e, t, n, r) {
|
|
3271
|
-
return qt(e, t, n,
|
|
3244
|
+
return qt(e, t, n, kn, lt(e, 0, r), lt(e, r + 1, -1), r);
|
|
3272
3245
|
}
|
|
3273
3246
|
function Ge(e, t) {
|
|
3274
|
-
for (var n = "", r =
|
|
3247
|
+
for (var n = "", r = Nn(e), o = 0; o < r; o++)
|
|
3275
3248
|
n += t(e[o], o, e, t) || "";
|
|
3276
3249
|
return n;
|
|
3277
3250
|
}
|
|
@@ -3281,19 +3254,19 @@ function Os(e, t, n, r) {
|
|
|
3281
3254
|
if (e.children.length)
|
|
3282
3255
|
break;
|
|
3283
3256
|
case hs:
|
|
3284
|
-
case
|
|
3257
|
+
case kn:
|
|
3285
3258
|
return e.return = e.return || e.value;
|
|
3286
|
-
case
|
|
3259
|
+
case Cn:
|
|
3287
3260
|
return "";
|
|
3288
3261
|
case Xr:
|
|
3289
3262
|
return e.return = e.value + "{" + Ge(e.children, r) + "}";
|
|
3290
|
-
case
|
|
3263
|
+
case En:
|
|
3291
3264
|
e.value = e.props.join(",");
|
|
3292
3265
|
}
|
|
3293
3266
|
return ye(n = Ge(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
3294
3267
|
}
|
|
3295
3268
|
function Ts(e) {
|
|
3296
|
-
var t =
|
|
3269
|
+
var t = Nn(e);
|
|
3297
3270
|
return function(n, r, o, i) {
|
|
3298
3271
|
for (var a = "", s = 0; s < t; s++)
|
|
3299
3272
|
a += e[s](n, r, o, i) || "";
|
|
@@ -3341,8 +3314,8 @@ var Ms = function(t, n, r) {
|
|
|
3341
3314
|
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Xn.get(r)) && !o) {
|
|
3342
3315
|
Xn.set(t, !0);
|
|
3343
3316
|
for (var i = [], a = As(n, i), s = r.props, d = 0, u = 0; d < a.length; d++)
|
|
3344
|
-
for (var
|
|
3345
|
-
t.props[u] = i[d] ? a[d].replace(/&\f/g, s[
|
|
3317
|
+
for (var h = 0; h < s.length; h++, u++)
|
|
3318
|
+
t.props[u] = i[d] ? a[d].replace(/&\f/g, s[h]) : s[h] + " " + a[d];
|
|
3346
3319
|
}
|
|
3347
3320
|
}
|
|
3348
3321
|
}, Rs = function(t) {
|
|
@@ -3372,8 +3345,8 @@ var Ms = function(t, n, r) {
|
|
|
3372
3345
|
break;
|
|
3373
3346
|
}
|
|
3374
3347
|
}
|
|
3375
|
-
i.forEach(function(
|
|
3376
|
-
console.error('The pseudo class "' +
|
|
3348
|
+
i.forEach(function(h) {
|
|
3349
|
+
console.error('The pseudo class "' + h + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + h.split("-child")[0] + '-of-type".');
|
|
3377
3350
|
});
|
|
3378
3351
|
}
|
|
3379
3352
|
}
|
|
@@ -3477,14 +3450,14 @@ function oo(e, t) {
|
|
|
3477
3450
|
case 102:
|
|
3478
3451
|
return $(e, /(.+:)(.+)-([^]+)/, "$1" + M + "$2-$3$1" + At + (X(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3479
3452
|
case 115:
|
|
3480
|
-
return ~
|
|
3453
|
+
return ~cn(e, "stretch") ? oo($(e, "stretch", "fill-available"), t) + e : e;
|
|
3481
3454
|
}
|
|
3482
3455
|
break;
|
|
3483
3456
|
case 4949:
|
|
3484
3457
|
if (X(e, t + 1) !== 115)
|
|
3485
3458
|
break;
|
|
3486
3459
|
case 6444:
|
|
3487
|
-
switch (X(e, ye(e) - 3 - (~
|
|
3460
|
+
switch (X(e, ye(e) - 3 - (~cn(e, "!important") && 10))) {
|
|
3488
3461
|
case 107:
|
|
3489
3462
|
return $(e, ":", ":" + M) + e;
|
|
3490
3463
|
case 101:
|
|
@@ -3507,14 +3480,14 @@ function oo(e, t) {
|
|
|
3507
3480
|
var Vs = function(t, n, r, o) {
|
|
3508
3481
|
if (t.length > -1 && !t.return)
|
|
3509
3482
|
switch (t.type) {
|
|
3510
|
-
case
|
|
3483
|
+
case kn:
|
|
3511
3484
|
t.return = oo(t.value, t.length);
|
|
3512
3485
|
break;
|
|
3513
3486
|
case Xr:
|
|
3514
3487
|
return Ge([rt(t, {
|
|
3515
3488
|
value: $(t.value, "@", "@" + M)
|
|
3516
3489
|
})], o);
|
|
3517
|
-
case
|
|
3490
|
+
case En:
|
|
3518
3491
|
if (t.length)
|
|
3519
3492
|
return bs(t.props, function(i) {
|
|
3520
3493
|
switch (vs(i, /(::plac\w+|:read-\w+)/)) {
|
|
@@ -3543,8 +3516,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3543
3516
|
if (n === "css") {
|
|
3544
3517
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
3545
3518
|
Array.prototype.forEach.call(r, function(l) {
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3519
|
+
var f = l.getAttribute("data-emotion");
|
|
3520
|
+
f.indexOf(" ") !== -1 && (document.head.appendChild(l), l.setAttribute("data-s", ""));
|
|
3548
3521
|
});
|
|
3549
3522
|
}
|
|
3550
3523
|
var o = t.stylisPlugins || Hs;
|
|
@@ -3556,8 +3529,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3556
3529
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
3557
3530
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
3558
3531
|
function(l) {
|
|
3559
|
-
for (var
|
|
3560
|
-
i[
|
|
3532
|
+
for (var f = l.getAttribute("data-emotion").split(" "), b = 1; b < f.length; b++)
|
|
3533
|
+
i[f[b]] = !0;
|
|
3561
3534
|
s.push(l);
|
|
3562
3535
|
}
|
|
3563
3536
|
);
|
|
@@ -3568,19 +3541,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3568
3541
|
}
|
|
3569
3542
|
}), js);
|
|
3570
3543
|
{
|
|
3571
|
-
var
|
|
3572
|
-
l.root || (l.return ?
|
|
3544
|
+
var h, m = [Os, process.env.NODE_ENV !== "production" ? function(l) {
|
|
3545
|
+
l.root || (l.return ? h.insert(l.return) : l.value && l.type !== Cn && h.insert(l.value + "{}"));
|
|
3573
3546
|
} : Is(function(l) {
|
|
3574
|
-
|
|
3575
|
-
})], p = Ts(u.concat(o,
|
|
3576
|
-
return Ge(ks(
|
|
3547
|
+
h.insert(l);
|
|
3548
|
+
})], p = Ts(u.concat(o, m)), v = function(f) {
|
|
3549
|
+
return Ge(ks(f), p);
|
|
3577
3550
|
};
|
|
3578
|
-
d = function(
|
|
3579
|
-
|
|
3551
|
+
d = function(f, b, _, x) {
|
|
3552
|
+
h = _, process.env.NODE_ENV !== "production" && b.map !== void 0 && (h = {
|
|
3580
3553
|
insert: function(g) {
|
|
3581
3554
|
_.insert(g + b.map);
|
|
3582
3555
|
}
|
|
3583
|
-
}), v(
|
|
3556
|
+
}), v(f ? f + "{" + b.styles + "}" : b.styles), x && (y.inserted[b.name] = !0);
|
|
3584
3557
|
};
|
|
3585
3558
|
}
|
|
3586
3559
|
var y = {
|
|
@@ -3599,7 +3572,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3599
3572
|
insert: d
|
|
3600
3573
|
};
|
|
3601
3574
|
return y.sheet.hydrate(s), y;
|
|
3602
|
-
},
|
|
3575
|
+
}, un = { exports: {} }, R = {};
|
|
3603
3576
|
/** @license React v16.13.1
|
|
3604
3577
|
* react-is.production.min.js
|
|
3605
3578
|
*
|
|
@@ -3613,7 +3586,7 @@ function Bs() {
|
|
|
3613
3586
|
if (er)
|
|
3614
3587
|
return R;
|
|
3615
3588
|
er = 1;
|
|
3616
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
3589
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
3617
3590
|
function x(g) {
|
|
3618
3591
|
if (typeof g == "object" && g !== null) {
|
|
3619
3592
|
var w = g.$$typeof;
|
|
@@ -3625,12 +3598,12 @@ function Bs() {
|
|
|
3625
3598
|
case r:
|
|
3626
3599
|
case i:
|
|
3627
3600
|
case o:
|
|
3628
|
-
case
|
|
3601
|
+
case m:
|
|
3629
3602
|
return g;
|
|
3630
3603
|
default:
|
|
3631
3604
|
switch (g = g && g.$$typeof, g) {
|
|
3632
3605
|
case s:
|
|
3633
|
-
case
|
|
3606
|
+
case h:
|
|
3634
3607
|
case y:
|
|
3635
3608
|
case v:
|
|
3636
3609
|
case a:
|
|
@@ -3647,7 +3620,7 @@ function Bs() {
|
|
|
3647
3620
|
function S(g) {
|
|
3648
3621
|
return x(g) === u;
|
|
3649
3622
|
}
|
|
3650
|
-
return R.AsyncMode = d, R.ConcurrentMode = u, R.ContextConsumer = s, R.ContextProvider = a, R.Element = t, R.ForwardRef =
|
|
3623
|
+
return R.AsyncMode = d, R.ConcurrentMode = u, R.ContextConsumer = s, R.ContextProvider = a, R.Element = t, R.ForwardRef = h, R.Fragment = r, R.Lazy = y, R.Memo = v, R.Portal = n, R.Profiler = i, R.StrictMode = o, R.Suspense = m, R.isAsyncMode = function(g) {
|
|
3651
3624
|
return S(g) || x(g) === d;
|
|
3652
3625
|
}, R.isConcurrentMode = S, R.isContextConsumer = function(g) {
|
|
3653
3626
|
return x(g) === s;
|
|
@@ -3656,7 +3629,7 @@ function Bs() {
|
|
|
3656
3629
|
}, R.isElement = function(g) {
|
|
3657
3630
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
3658
3631
|
}, R.isForwardRef = function(g) {
|
|
3659
|
-
return x(g) ===
|
|
3632
|
+
return x(g) === h;
|
|
3660
3633
|
}, R.isFragment = function(g) {
|
|
3661
3634
|
return x(g) === r;
|
|
3662
3635
|
}, R.isLazy = function(g) {
|
|
@@ -3670,9 +3643,9 @@ function Bs() {
|
|
|
3670
3643
|
}, R.isStrictMode = function(g) {
|
|
3671
3644
|
return x(g) === o;
|
|
3672
3645
|
}, R.isSuspense = function(g) {
|
|
3673
|
-
return x(g) ===
|
|
3646
|
+
return x(g) === m;
|
|
3674
3647
|
}, R.isValidElementType = function(g) {
|
|
3675
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === i || g === o || g ===
|
|
3648
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === i || g === o || g === m || g === p || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === v || g.$$typeof === a || g.$$typeof === s || g.$$typeof === h || g.$$typeof === f || g.$$typeof === b || g.$$typeof === _ || g.$$typeof === l);
|
|
3676
3649
|
}, R.typeOf = x, R;
|
|
3677
3650
|
}
|
|
3678
3651
|
var D = {};
|
|
@@ -3687,10 +3660,10 @@ var D = {};
|
|
|
3687
3660
|
var tr;
|
|
3688
3661
|
function Ws() {
|
|
3689
3662
|
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3690
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
3663
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
3691
3664
|
function x(E) {
|
|
3692
3665
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3693
|
-
E === r || E === u || E === i || E === o || E ===
|
|
3666
|
+
E === r || E === u || E === i || E === o || E === m || E === p || typeof E == "object" && E !== null && (E.$$typeof === y || E.$$typeof === v || E.$$typeof === a || E.$$typeof === s || E.$$typeof === h || E.$$typeof === f || E.$$typeof === b || E.$$typeof === _ || E.$$typeof === l);
|
|
3694
3667
|
}
|
|
3695
3668
|
function S(E) {
|
|
3696
3669
|
if (typeof E == "object" && E !== null) {
|
|
@@ -3704,13 +3677,13 @@ function Ws() {
|
|
|
3704
3677
|
case r:
|
|
3705
3678
|
case i:
|
|
3706
3679
|
case o:
|
|
3707
|
-
case
|
|
3680
|
+
case m:
|
|
3708
3681
|
return k;
|
|
3709
3682
|
default:
|
|
3710
3683
|
var Fe = k && k.$$typeof;
|
|
3711
3684
|
switch (Fe) {
|
|
3712
3685
|
case s:
|
|
3713
|
-
case
|
|
3686
|
+
case h:
|
|
3714
3687
|
case y:
|
|
3715
3688
|
case v:
|
|
3716
3689
|
case a:
|
|
@@ -3724,7 +3697,7 @@ function Ws() {
|
|
|
3724
3697
|
}
|
|
3725
3698
|
}
|
|
3726
3699
|
}
|
|
3727
|
-
var g = d, w = u, C = s, T = a, O = t, V =
|
|
3700
|
+
var g = d, w = u, C = s, T = a, O = t, V = h, z = r, H = y, G = v, re = n, K = i, te = o, me = m, se = !1;
|
|
3728
3701
|
function le(E) {
|
|
3729
3702
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ge(E) || S(E) === d;
|
|
3730
3703
|
}
|
|
@@ -3741,7 +3714,7 @@ function Ws() {
|
|
|
3741
3714
|
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
3742
3715
|
}
|
|
3743
3716
|
function _e(E) {
|
|
3744
|
-
return S(E) ===
|
|
3717
|
+
return S(E) === h;
|
|
3745
3718
|
}
|
|
3746
3719
|
function ze(E) {
|
|
3747
3720
|
return S(E) === r;
|
|
@@ -3762,13 +3735,13 @@ function Ws() {
|
|
|
3762
3735
|
return S(E) === o;
|
|
3763
3736
|
}
|
|
3764
3737
|
function nn(E) {
|
|
3765
|
-
return S(E) ===
|
|
3738
|
+
return S(E) === m;
|
|
3766
3739
|
}
|
|
3767
3740
|
D.AsyncMode = g, D.ConcurrentMode = w, D.ContextConsumer = C, D.ContextProvider = T, D.Element = O, D.ForwardRef = V, D.Fragment = z, D.Lazy = H, D.Memo = G, D.Portal = re, D.Profiler = K, D.StrictMode = te, D.Suspense = me, D.isAsyncMode = le, D.isConcurrentMode = ge, D.isContextConsumer = et, D.isContextProvider = tt, D.isElement = De, D.isForwardRef = _e, D.isFragment = ze, D.isLazy = Jt, D.isMemo = Xt, D.isPortal = Qt, D.isProfiler = en, D.isStrictMode = tn, D.isSuspense = nn, D.isValidElementType = x, D.typeOf = S;
|
|
3768
3741
|
}()), D;
|
|
3769
3742
|
}
|
|
3770
|
-
process.env.NODE_ENV === "production" ?
|
|
3771
|
-
var Us =
|
|
3743
|
+
process.env.NODE_ENV === "production" ? un.exports = Bs() : un.exports = Ws();
|
|
3744
|
+
var Us = un.exports, ao = Us, Ys = {
|
|
3772
3745
|
$$typeof: !0,
|
|
3773
3746
|
render: !0,
|
|
3774
3747
|
defaultProps: !0,
|
|
@@ -3785,7 +3758,7 @@ var Us = fn.exports, ao = Us, Ys = {
|
|
|
3785
3758
|
so[ao.ForwardRef] = Ys;
|
|
3786
3759
|
so[ao.Memo] = qs;
|
|
3787
3760
|
var Gs = !0;
|
|
3788
|
-
function
|
|
3761
|
+
function On(e, t, n) {
|
|
3789
3762
|
var r = "";
|
|
3790
3763
|
return n.split(" ").forEach(function(o) {
|
|
3791
3764
|
e[o] !== void 0 ? t.push(e[o] + ";") : r += o + " ";
|
|
@@ -3883,12 +3856,12 @@ var Zs = {
|
|
|
3883
3856
|
}, nr = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
3884
3857
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
3885
3858
|
You can read more about this here:
|
|
3886
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Js = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Xs = /[A-Z]|^ms/g, lo = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
3859
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Js = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Xs = /[A-Z]|^ms/g, lo = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Tn = function(t) {
|
|
3887
3860
|
return t.charCodeAt(1) === 45;
|
|
3888
3861
|
}, rr = function(t) {
|
|
3889
3862
|
return t != null && typeof t != "boolean";
|
|
3890
3863
|
}, rn = /* @__PURE__ */ Jr(function(e) {
|
|
3891
|
-
return
|
|
3864
|
+
return Tn(e) ? e : e.replace(Xs, "-$&").toLowerCase();
|
|
3892
3865
|
}), Pt = function(t, n) {
|
|
3893
3866
|
switch (t) {
|
|
3894
3867
|
case "animation":
|
|
@@ -3902,7 +3875,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3902
3875
|
}, o;
|
|
3903
3876
|
});
|
|
3904
3877
|
}
|
|
3905
|
-
return Zs[t] !== 1 && !
|
|
3878
|
+
return Zs[t] !== 1 && !Tn(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
3906
3879
|
};
|
|
3907
3880
|
if (process.env.NODE_ENV !== "production") {
|
|
3908
3881
|
var Qs = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, el = ["normal", "none", "initial", "inherit", "unset"], tl = Pt, nl = /^-ms-/, rl = /-(.)/g, or = {};
|
|
@@ -3910,7 +3883,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
3910
3883
|
if (t === "content" && (typeof n != "string" || el.indexOf(n) === -1 && !Qs.test(n) && (n.charAt(0) !== n.charAt(n.length - 1) || n.charAt(0) !== '"' && n.charAt(0) !== "'")))
|
|
3911
3884
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + n + "\"'`");
|
|
3912
3885
|
var r = tl(t, n);
|
|
3913
|
-
return r !== "" && !
|
|
3886
|
+
return r !== "" && !Tn(t) && t.indexOf("-") !== -1 && or[t] === void 0 && (or[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(nl, "ms-").replace(rl, function(o, i) {
|
|
3914
3887
|
return i.toUpperCase();
|
|
3915
3888
|
}) + "?")), r;
|
|
3916
3889
|
};
|
|
@@ -3958,7 +3931,7 @@ function dt(e, t, n) {
|
|
|
3958
3931
|
}
|
|
3959
3932
|
case "string":
|
|
3960
3933
|
if (process.env.NODE_ENV !== "production") {
|
|
3961
|
-
var s = [], d = n.replace(lo, function(
|
|
3934
|
+
var s = [], d = n.replace(lo, function(h, m, p) {
|
|
3962
3935
|
var v = "animation" + s.length;
|
|
3963
3936
|
return s.push("const " + v + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + v + "}";
|
|
3964
3937
|
});
|
|
@@ -4023,12 +3996,12 @@ var pe, Ze = function(t, n, r) {
|
|
|
4023
3996
|
process.env.NODE_ENV !== "production" && (i = i.replace(uo, function(p) {
|
|
4024
3997
|
return d = p, "";
|
|
4025
3998
|
})), ir.lastIndex = 0;
|
|
4026
|
-
for (var u = "",
|
|
3999
|
+
for (var u = "", h; (h = ir.exec(i)) !== null; )
|
|
4027
4000
|
u += "-" + // $FlowFixMe we know it's not null
|
|
4028
|
-
|
|
4029
|
-
var
|
|
4001
|
+
h[1];
|
|
4002
|
+
var m = Ks(i) + u;
|
|
4030
4003
|
return process.env.NODE_ENV !== "production" ? {
|
|
4031
|
-
name:
|
|
4004
|
+
name: m,
|
|
4032
4005
|
styles: i,
|
|
4033
4006
|
map: d,
|
|
4034
4007
|
next: pe,
|
|
@@ -4036,13 +4009,13 @@ var pe, Ze = function(t, n, r) {
|
|
|
4036
4009
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
4037
4010
|
}
|
|
4038
4011
|
} : {
|
|
4039
|
-
name:
|
|
4012
|
+
name: m,
|
|
4040
4013
|
styles: i,
|
|
4041
4014
|
next: pe
|
|
4042
4015
|
};
|
|
4043
4016
|
}, il = function(t) {
|
|
4044
4017
|
return t();
|
|
4045
|
-
}, fo = j["useInsertionEffect"] ? j["useInsertionEffect"] : !1,
|
|
4018
|
+
}, fo = j["useInsertionEffect"] ? j["useInsertionEffect"] : !1, In = fo || il, ar = fo || j.useLayoutEffect, al = {}.hasOwnProperty, Mn = /* @__PURE__ */ j.createContext(
|
|
4046
4019
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
4047
4020
|
// because this module is primarily intended for the browser and node
|
|
4048
4021
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -4053,24 +4026,24 @@ var pe, Ze = function(t, n, r) {
|
|
|
4053
4026
|
key: "css"
|
|
4054
4027
|
}) : null
|
|
4055
4028
|
);
|
|
4056
|
-
process.env.NODE_ENV !== "production" && (
|
|
4057
|
-
var sl =
|
|
4029
|
+
process.env.NODE_ENV !== "production" && (Mn.displayName = "EmotionCacheContext");
|
|
4030
|
+
var sl = Mn.Provider, Zt = function(t) {
|
|
4058
4031
|
return /* @__PURE__ */ Mo(function(n, r) {
|
|
4059
|
-
var o = Oe(
|
|
4032
|
+
var o = Oe(Mn);
|
|
4060
4033
|
return t(n, o, r);
|
|
4061
4034
|
});
|
|
4062
4035
|
}, Re = /* @__PURE__ */ j.createContext({});
|
|
4063
4036
|
process.env.NODE_ENV !== "production" && (Re.displayName = "EmotionThemeContext");
|
|
4064
4037
|
var sr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", lr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", ll = function(t) {
|
|
4065
4038
|
var n = t.cache, r = t.serialized, o = t.isStringTag;
|
|
4066
|
-
return Gt(n, r, o),
|
|
4039
|
+
return Gt(n, r, o), In(function() {
|
|
4067
4040
|
return Kt(n, r, o);
|
|
4068
4041
|
}), null;
|
|
4069
4042
|
}, cl = /* @__PURE__ */ Zt(function(e, t, n) {
|
|
4070
4043
|
var r = e.css;
|
|
4071
4044
|
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
|
4072
4045
|
var o = e[sr], i = [r], a = "";
|
|
4073
|
-
typeof e.className == "string" ? a =
|
|
4046
|
+
typeof e.className == "string" ? a = On(t.registered, i, e.className) : e.className != null && (a = e.className + " ");
|
|
4074
4047
|
var s = Ze(i, void 0, j.useContext(Re));
|
|
4075
4048
|
if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) {
|
|
4076
4049
|
var d = e[lr];
|
|
@@ -4078,8 +4051,8 @@ var sr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", lr = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
4078
4051
|
}
|
|
4079
4052
|
a += t.key + "-" + s.name;
|
|
4080
4053
|
var u = {};
|
|
4081
|
-
for (var
|
|
4082
|
-
al.call(e,
|
|
4054
|
+
for (var h in e)
|
|
4055
|
+
al.call(e, h) && h !== "css" && h !== sr && (process.env.NODE_ENV === "production" || h !== lr) && (u[h] = e[h]);
|
|
4083
4056
|
return u.ref = n, u.className = a, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(ll, {
|
|
4084
4057
|
cache: t,
|
|
4085
4058
|
serialized: s,
|
|
@@ -4290,12 +4263,12 @@ var ul = function() {
|
|
|
4290
4263
|
return o;
|
|
4291
4264
|
};
|
|
4292
4265
|
function hl(e, t, n) {
|
|
4293
|
-
var r = [], o =
|
|
4266
|
+
var r = [], o = On(e, r, n);
|
|
4294
4267
|
return r.length < 2 ? n : o + t(r);
|
|
4295
4268
|
}
|
|
4296
4269
|
var ml = function(t) {
|
|
4297
4270
|
var n = t.cache, r = t.serializedArr;
|
|
4298
|
-
return
|
|
4271
|
+
return In(function() {
|
|
4299
4272
|
for (var o = 0; o < r.length; o++)
|
|
4300
4273
|
Kt(n, r[o], !1);
|
|
4301
4274
|
}), null;
|
|
@@ -4303,16 +4276,16 @@ var ml = function(t) {
|
|
|
4303
4276
|
var n = !1, r = [], o = function() {
|
|
4304
4277
|
if (n && process.env.NODE_ENV !== "production")
|
|
4305
4278
|
throw new Error("css can only be used during render");
|
|
4306
|
-
for (var u = arguments.length,
|
|
4307
|
-
|
|
4308
|
-
var p = Ze(
|
|
4279
|
+
for (var u = arguments.length, h = new Array(u), m = 0; m < u; m++)
|
|
4280
|
+
h[m] = arguments[m];
|
|
4281
|
+
var p = Ze(h, t.registered);
|
|
4309
4282
|
return r.push(p), Gt(t, p, !1), t.key + "-" + p.name;
|
|
4310
4283
|
}, i = function() {
|
|
4311
4284
|
if (n && process.env.NODE_ENV !== "production")
|
|
4312
4285
|
throw new Error("cx can only be used during render");
|
|
4313
|
-
for (var u = arguments.length,
|
|
4314
|
-
|
|
4315
|
-
return hl(t.registered, o, fl(
|
|
4286
|
+
for (var u = arguments.length, h = new Array(u), m = 0; m < u; m++)
|
|
4287
|
+
h[m] = arguments[m];
|
|
4288
|
+
return hl(t.registered, o, fl(h));
|
|
4316
4289
|
}, a = {
|
|
4317
4290
|
css: o,
|
|
4318
4291
|
cx: i,
|
|
@@ -4355,7 +4328,7 @@ Because you write your CSS inside a JavaScript string you actually have to do do
|
|
|
4355
4328
|
You can read more about this here:
|
|
4356
4329
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, bl = function(t) {
|
|
4357
4330
|
var n = t.cache, r = t.serialized, o = t.isStringTag;
|
|
4358
|
-
return Gt(n, r, o),
|
|
4331
|
+
return Gt(n, r, o), In(function() {
|
|
4359
4332
|
return Kt(n, r, o);
|
|
4360
4333
|
}), null;
|
|
4361
4334
|
}, xl = function e(t, n) {
|
|
@@ -4366,15 +4339,15 @@ You may have forgotten to import it.`);
|
|
|
4366
4339
|
n !== void 0 && (i = n.label, a = n.target);
|
|
4367
4340
|
var s = mr(t, n, r), d = s || hr(o), u = !d("as");
|
|
4368
4341
|
return function() {
|
|
4369
|
-
var
|
|
4370
|
-
if (i !== void 0 &&
|
|
4371
|
-
|
|
4342
|
+
var h = arguments, m = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
4343
|
+
if (i !== void 0 && m.push("label:" + i + ";"), h[0] == null || h[0].raw === void 0)
|
|
4344
|
+
m.push.apply(m, h);
|
|
4372
4345
|
else {
|
|
4373
|
-
process.env.NODE_ENV !== "production" &&
|
|
4374
|
-
for (var p =
|
|
4375
|
-
process.env.NODE_ENV !== "production" &&
|
|
4346
|
+
process.env.NODE_ENV !== "production" && h[0][0] === void 0 && console.error(pr), m.push(h[0][0]);
|
|
4347
|
+
for (var p = h.length, v = 1; v < p; v++)
|
|
4348
|
+
process.env.NODE_ENV !== "production" && h[0][v] === void 0 && console.error(pr), m.push(h[v], h[0][v]);
|
|
4376
4349
|
}
|
|
4377
|
-
var y = Zt(function(l,
|
|
4350
|
+
var y = Zt(function(l, f, b) {
|
|
4378
4351
|
var _ = u && l.as || o, x = "", S = [], g = l;
|
|
4379
4352
|
if (l.theme == null) {
|
|
4380
4353
|
g = {};
|
|
@@ -4382,27 +4355,27 @@ You may have forgotten to import it.`);
|
|
|
4382
4355
|
g[w] = l[w];
|
|
4383
4356
|
g.theme = j.useContext(Re);
|
|
4384
4357
|
}
|
|
4385
|
-
typeof l.className == "string" ? x =
|
|
4386
|
-
var C = Ze(
|
|
4387
|
-
x +=
|
|
4358
|
+
typeof l.className == "string" ? x = On(f.registered, S, l.className) : l.className != null && (x = l.className + " ");
|
|
4359
|
+
var C = Ze(m.concat(S), f.registered, g);
|
|
4360
|
+
x += f.key + "-" + C.name, a !== void 0 && (x += " " + a);
|
|
4388
4361
|
var T = u && s === void 0 ? hr(_) : d, O = {};
|
|
4389
4362
|
for (var V in l)
|
|
4390
4363
|
u && V === "as" || // $FlowFixMe
|
|
4391
4364
|
T(V) && (O[V] = l[V]);
|
|
4392
4365
|
return O.className = x, O.ref = b, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(bl, {
|
|
4393
|
-
cache:
|
|
4366
|
+
cache: f,
|
|
4394
4367
|
serialized: C,
|
|
4395
4368
|
isStringTag: typeof _ == "string"
|
|
4396
4369
|
}), /* @__PURE__ */ j.createElement(_, O));
|
|
4397
4370
|
});
|
|
4398
|
-
return y.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles =
|
|
4371
|
+
return y.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles = m, y.__emotion_forwardProp = s, Object.defineProperty(y, "toString", {
|
|
4399
4372
|
value: function() {
|
|
4400
4373
|
return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a;
|
|
4401
4374
|
}
|
|
4402
|
-
}), y.withComponent = function(l,
|
|
4403
|
-
return e(l,
|
|
4404
|
-
shouldForwardProp: mr(y,
|
|
4405
|
-
})).apply(void 0,
|
|
4375
|
+
}), y.withComponent = function(l, f) {
|
|
4376
|
+
return e(l, F({}, n, f, {
|
|
4377
|
+
shouldForwardProp: mr(y, f, !0)
|
|
4378
|
+
})).apply(void 0, m);
|
|
4406
4379
|
}, y;
|
|
4407
4380
|
};
|
|
4408
4381
|
}, _l = [
|
|
@@ -4541,12 +4514,12 @@ You may have forgotten to import it.`);
|
|
|
4541
4514
|
"svg",
|
|
4542
4515
|
"text",
|
|
4543
4516
|
"tspan"
|
|
4544
|
-
],
|
|
4517
|
+
], fn = xl.bind();
|
|
4545
4518
|
_l.forEach(function(e) {
|
|
4546
|
-
|
|
4519
|
+
fn[e] = fn(e);
|
|
4547
4520
|
});
|
|
4548
|
-
let
|
|
4549
|
-
typeof document == "object" && (
|
|
4521
|
+
let hn;
|
|
4522
|
+
typeof document == "object" && (hn = io({
|
|
4550
4523
|
key: "css",
|
|
4551
4524
|
prepend: !0
|
|
4552
4525
|
}));
|
|
@@ -4555,8 +4528,8 @@ function po(e) {
|
|
|
4555
4528
|
injectFirst: t,
|
|
4556
4529
|
children: n
|
|
4557
4530
|
} = e;
|
|
4558
|
-
return t &&
|
|
4559
|
-
value:
|
|
4531
|
+
return t && hn ? /* @__PURE__ */ c(sl, {
|
|
4532
|
+
value: hn,
|
|
4560
4533
|
children: n
|
|
4561
4534
|
}) : n;
|
|
4562
4535
|
}
|
|
@@ -4596,7 +4569,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
4596
4569
|
* LICENSE file in the root directory of this source tree.
|
|
4597
4570
|
*/
|
|
4598
4571
|
function Sl(e, t) {
|
|
4599
|
-
const n =
|
|
4572
|
+
const n = fn(e, t);
|
|
4600
4573
|
return process.env.NODE_ENV !== "production" ? (...r) => {
|
|
4601
4574
|
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
4602
4575
|
return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
@@ -4622,7 +4595,7 @@ function Nl(e = null) {
|
|
|
4622
4595
|
const t = j.useContext(Re);
|
|
4623
4596
|
return !t || kl(t) ? e : t;
|
|
4624
4597
|
}
|
|
4625
|
-
const Ol =
|
|
4598
|
+
const Ol = Sn();
|
|
4626
4599
|
function Tl(e = Ol) {
|
|
4627
4600
|
return Nl(e);
|
|
4628
4601
|
}
|
|
@@ -4659,20 +4632,20 @@ function Al(e) {
|
|
|
4659
4632
|
let i;
|
|
4660
4633
|
return Array.isArray(t) ? i = [r, ...t] : typeof t == "function" ? i = (...a) => {
|
|
4661
4634
|
const s = t(...a);
|
|
4662
|
-
return Ne(s) ?
|
|
4663
|
-
} : i =
|
|
4635
|
+
return Ne(s) ? F({}, r, s) : r;
|
|
4636
|
+
} : i = F({}, r, t), F({}, o, {
|
|
4664
4637
|
sx: i
|
|
4665
4638
|
});
|
|
4666
4639
|
}
|
|
4667
4640
|
const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4668
4641
|
__proto__: null,
|
|
4669
|
-
default:
|
|
4642
|
+
default: wn,
|
|
4670
4643
|
extendSxProp: Al,
|
|
4671
4644
|
unstable_createStyleFunctionSx: Gr,
|
|
4672
4645
|
unstable_defaultSxConfig: mt
|
|
4673
4646
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4674
4647
|
function Rl(e, t) {
|
|
4675
|
-
return
|
|
4648
|
+
return F({
|
|
4676
4649
|
toolbar: {
|
|
4677
4650
|
minHeight: 56,
|
|
4678
4651
|
[e.up("xs")]: {
|
|
@@ -4704,14 +4677,14 @@ Object.defineProperty(q, "__esModule", {
|
|
|
4704
4677
|
q.alpha = So;
|
|
4705
4678
|
q.blend = Kl;
|
|
4706
4679
|
q.colorChannel = void 0;
|
|
4707
|
-
var Fl = q.darken =
|
|
4680
|
+
var Fl = q.darken = An;
|
|
4708
4681
|
q.decomposeColor = fe;
|
|
4709
4682
|
q.emphasize = Gl;
|
|
4710
4683
|
var gr = q.getContrastRatio = Wl;
|
|
4711
4684
|
q.getLuminance = Rt;
|
|
4712
4685
|
q.hexToRgb = xo;
|
|
4713
4686
|
q.hslToRgb = wo;
|
|
4714
|
-
var Ll = q.lighten =
|
|
4687
|
+
var Ll = q.lighten = Pn;
|
|
4715
4688
|
q.private_safeAlpha = Ul;
|
|
4716
4689
|
q.private_safeColorChannel = void 0;
|
|
4717
4690
|
q.private_safeDarken = Yl;
|
|
@@ -4720,7 +4693,7 @@ q.private_safeLighten = ql;
|
|
|
4720
4693
|
q.recomposeColor = Xe;
|
|
4721
4694
|
q.rgbToHex = Bl;
|
|
4722
4695
|
var yr = bo(Dl), jl = bo(zl);
|
|
4723
|
-
function
|
|
4696
|
+
function $n(e, t = 0, n = 1) {
|
|
4724
4697
|
return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), (0, jl.default)(e, t, n);
|
|
4725
4698
|
}
|
|
4726
4699
|
function xo(e) {
|
|
@@ -4790,7 +4763,7 @@ function wo(e) {
|
|
|
4790
4763
|
e = fe(e);
|
|
4791
4764
|
const {
|
|
4792
4765
|
values: t
|
|
4793
|
-
} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u,
|
|
4766
|
+
} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u, h = (u + n / 30) % 12) => o - i * Math.max(Math.min(h - 3, 9 - h, 1), -1);
|
|
4794
4767
|
let s = "rgb";
|
|
4795
4768
|
const d = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
|
|
4796
4769
|
return e.type === "hsla" && (s += "a", d.push(t[3])), Xe({
|
|
@@ -4808,7 +4781,7 @@ function Wl(e, t) {
|
|
|
4808
4781
|
return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
|
|
4809
4782
|
}
|
|
4810
4783
|
function So(e, t) {
|
|
4811
|
-
return e = fe(e), t =
|
|
4784
|
+
return e = fe(e), t = $n(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Xe(e);
|
|
4812
4785
|
}
|
|
4813
4786
|
function Ul(e, t, n) {
|
|
4814
4787
|
try {
|
|
@@ -4817,8 +4790,8 @@ function Ul(e, t, n) {
|
|
|
4817
4790
|
return n && process.env.NODE_ENV !== "production" && console.warn(n), e;
|
|
4818
4791
|
}
|
|
4819
4792
|
}
|
|
4820
|
-
function
|
|
4821
|
-
if (e = fe(e), t =
|
|
4793
|
+
function An(e, t) {
|
|
4794
|
+
if (e = fe(e), t = $n(t), e.type.indexOf("hsl") !== -1)
|
|
4822
4795
|
e.values[2] *= 1 - t;
|
|
4823
4796
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
4824
4797
|
for (let n = 0; n < 3; n += 1)
|
|
@@ -4827,13 +4800,13 @@ function Pn(e, t) {
|
|
|
4827
4800
|
}
|
|
4828
4801
|
function Yl(e, t, n) {
|
|
4829
4802
|
try {
|
|
4830
|
-
return
|
|
4803
|
+
return An(e, t);
|
|
4831
4804
|
} catch {
|
|
4832
4805
|
return n && process.env.NODE_ENV !== "production" && console.warn(n), e;
|
|
4833
4806
|
}
|
|
4834
4807
|
}
|
|
4835
|
-
function
|
|
4836
|
-
if (e = fe(e), t =
|
|
4808
|
+
function Pn(e, t) {
|
|
4809
|
+
if (e = fe(e), t = $n(t), e.type.indexOf("hsl") !== -1)
|
|
4837
4810
|
e.values[2] += (100 - e.values[2]) * t;
|
|
4838
4811
|
else if (e.type.indexOf("rgb") !== -1)
|
|
4839
4812
|
for (let n = 0; n < 3; n += 1)
|
|
@@ -4845,13 +4818,13 @@ function Rn(e, t) {
|
|
|
4845
4818
|
}
|
|
4846
4819
|
function ql(e, t, n) {
|
|
4847
4820
|
try {
|
|
4848
|
-
return
|
|
4821
|
+
return Pn(e, t);
|
|
4849
4822
|
} catch {
|
|
4850
4823
|
return n && process.env.NODE_ENV !== "production" && console.warn(n), e;
|
|
4851
4824
|
}
|
|
4852
4825
|
}
|
|
4853
4826
|
function Gl(e, t = 0.15) {
|
|
4854
|
-
return Rt(e) > 0.5 ?
|
|
4827
|
+
return Rt(e) > 0.5 ? An(e, t) : Pn(e, t);
|
|
4855
4828
|
}
|
|
4856
4829
|
function Co(e, t, n) {
|
|
4857
4830
|
try {
|
|
@@ -5114,28 +5087,28 @@ function f0(e) {
|
|
|
5114
5087
|
mode: t = "light",
|
|
5115
5088
|
contrastThreshold: n = 3,
|
|
5116
5089
|
tonalOffset: r = 0.2
|
|
5117
|
-
} = e, o = Te(e, i0), i = e.primary || a0(t), a = e.secondary || s0(t), s = e.error || l0(t), d = e.info || c0(t), u = e.success || d0(t),
|
|
5118
|
-
function
|
|
5119
|
-
const
|
|
5090
|
+
} = e, o = Te(e, i0), i = e.primary || a0(t), a = e.secondary || s0(t), s = e.error || l0(t), d = e.info || c0(t), u = e.success || d0(t), h = e.warning || u0(t);
|
|
5091
|
+
function m(l) {
|
|
5092
|
+
const f = gr(l, on.text.primary) >= n ? on.text.primary : vr.text.primary;
|
|
5120
5093
|
if (process.env.NODE_ENV !== "production") {
|
|
5121
|
-
const b = gr(l,
|
|
5122
|
-
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${
|
|
5094
|
+
const b = gr(l, f);
|
|
5095
|
+
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${f} 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(`
|
|
5123
5096
|
`));
|
|
5124
5097
|
}
|
|
5125
|
-
return
|
|
5098
|
+
return f;
|
|
5126
5099
|
}
|
|
5127
5100
|
const p = ({
|
|
5128
5101
|
color: l,
|
|
5129
|
-
name:
|
|
5102
|
+
name: f,
|
|
5130
5103
|
mainShade: b = 500,
|
|
5131
5104
|
lightShade: _ = 300,
|
|
5132
5105
|
darkShade: x = 700
|
|
5133
5106
|
}) => {
|
|
5134
|
-
if (l =
|
|
5135
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
5136
|
-
The color object needs to have a \`main\` property or a \`${b}\` property.` : st(11,
|
|
5107
|
+
if (l = F({}, l), !l.main && l[b] && (l.main = l[b]), !l.hasOwnProperty("main"))
|
|
5108
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${f ? ` (${f})` : ""} provided to augmentColor(color) is invalid.
|
|
5109
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.` : st(11, f ? ` (${f})` : "", b));
|
|
5137
5110
|
if (typeof l.main != "string")
|
|
5138
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
5111
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${f ? ` (${f})` : ""} provided to augmentColor(color) is invalid.
|
|
5139
5112
|
\`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
|
|
5140
5113
|
|
|
5141
5114
|
Did you intend to use one of the following approaches?
|
|
@@ -5148,15 +5121,15 @@ const theme1 = createTheme({ palette: {
|
|
|
5148
5121
|
|
|
5149
5122
|
const theme2 = createTheme({ palette: {
|
|
5150
5123
|
primary: { main: green[500] },
|
|
5151
|
-
} });` : st(12,
|
|
5152
|
-
return br(l, "light", _, r), br(l, "dark", x, r), l.contrastText || (l.contrastText =
|
|
5124
|
+
} });` : st(12, f ? ` (${f})` : "", JSON.stringify(l.main)));
|
|
5125
|
+
return br(l, "light", _, r), br(l, "dark", x, r), l.contrastText || (l.contrastText = m(l.main)), l;
|
|
5153
5126
|
}, v = {
|
|
5154
5127
|
dark: on,
|
|
5155
5128
|
light: vr
|
|
5156
5129
|
};
|
|
5157
|
-
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve(
|
|
5130
|
+
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve(F({
|
|
5158
5131
|
// A collection of common colors.
|
|
5159
|
-
common:
|
|
5132
|
+
common: F({}, ut),
|
|
5160
5133
|
// prevent mutable object.
|
|
5161
5134
|
// The palette mode, can be light or dark.
|
|
5162
5135
|
mode: t,
|
|
@@ -5180,7 +5153,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5180
5153
|
}),
|
|
5181
5154
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
5182
5155
|
warning: p({
|
|
5183
|
-
color:
|
|
5156
|
+
color: h,
|
|
5184
5157
|
name: "warning"
|
|
5185
5158
|
}),
|
|
5186
5159
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
@@ -5199,7 +5172,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5199
5172
|
// the background and the text.
|
|
5200
5173
|
contrastThreshold: n,
|
|
5201
5174
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
5202
|
-
getContrastText:
|
|
5175
|
+
getContrastText: m,
|
|
5203
5176
|
// Generate a rich color object.
|
|
5204
5177
|
augmentColor: p,
|
|
5205
5178
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -5229,11 +5202,11 @@ function p0(e, t) {
|
|
|
5229
5202
|
// 16px is the default font-size used by browsers.
|
|
5230
5203
|
htmlFontSize: u = 16,
|
|
5231
5204
|
// Apply the CSS properties to all the variants.
|
|
5232
|
-
allVariants:
|
|
5233
|
-
pxToRem:
|
|
5205
|
+
allVariants: h,
|
|
5206
|
+
pxToRem: m
|
|
5234
5207
|
} = n, p = Te(n, h0);
|
|
5235
5208
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
5236
|
-
const v = o / 14, y =
|
|
5209
|
+
const v = o / 14, y = m || ((b) => `${b / u * v}rem`), l = (b, _, x, S, g) => F({
|
|
5237
5210
|
fontFamily: r,
|
|
5238
5211
|
fontWeight: b,
|
|
5239
5212
|
fontSize: y(_),
|
|
@@ -5241,7 +5214,7 @@ function p0(e, t) {
|
|
|
5241
5214
|
lineHeight: x
|
|
5242
5215
|
}, r === _r ? {
|
|
5243
5216
|
letterSpacing: `${m0(S / _)}em`
|
|
5244
|
-
} : {}, g,
|
|
5217
|
+
} : {}, g, h), f = {
|
|
5245
5218
|
h1: l(i, 96, 1.167, -1.5),
|
|
5246
5219
|
h2: l(i, 60, 1.2, -0.5),
|
|
5247
5220
|
h3: l(a, 48, 1.167, 0),
|
|
@@ -5264,7 +5237,7 @@ function p0(e, t) {
|
|
|
5264
5237
|
letterSpacing: "inherit"
|
|
5265
5238
|
}
|
|
5266
5239
|
};
|
|
5267
|
-
return ve(
|
|
5240
|
+
return ve(F({
|
|
5268
5241
|
htmlFontSize: u,
|
|
5269
5242
|
pxToRem: y,
|
|
5270
5243
|
fontFamily: r,
|
|
@@ -5273,7 +5246,7 @@ function p0(e, t) {
|
|
|
5273
5246
|
fontWeightRegular: a,
|
|
5274
5247
|
fontWeightMedium: s,
|
|
5275
5248
|
fontWeightBold: d
|
|
5276
|
-
},
|
|
5249
|
+
}, f), p, {
|
|
5277
5250
|
clone: !1
|
|
5278
5251
|
// No need to clone deep
|
|
5279
5252
|
});
|
|
@@ -5315,8 +5288,8 @@ function C0(e) {
|
|
|
5315
5288
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
5316
5289
|
}
|
|
5317
5290
|
function E0(e) {
|
|
5318
|
-
const t =
|
|
5319
|
-
return
|
|
5291
|
+
const t = F({}, w0, e.easing), n = F({}, S0, e.duration);
|
|
5292
|
+
return F({
|
|
5320
5293
|
getAutoHeightDuration: C0,
|
|
5321
5294
|
create: (o = ["all"], i = {}) => {
|
|
5322
5295
|
const {
|
|
@@ -5325,11 +5298,11 @@ function E0(e) {
|
|
|
5325
5298
|
delay: d = 0
|
|
5326
5299
|
} = i, u = Te(i, _0);
|
|
5327
5300
|
if (process.env.NODE_ENV !== "production") {
|
|
5328
|
-
const
|
|
5329
|
-
!
|
|
5301
|
+
const h = (p) => typeof p == "string", m = (p) => !isNaN(parseFloat(p));
|
|
5302
|
+
!h(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(a) && !h(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), h(s) || console.error('MUI: Argument "easing" must be a string.'), !m(d) && !h(d) && 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(`
|
|
5330
5303
|
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
5331
5304
|
}
|
|
5332
|
-
return (Array.isArray(o) ? o : [o]).map((
|
|
5305
|
+
return (Array.isArray(o) ? o : [o]).map((h) => `${h} ${typeof a == "string" ? a : wr(a)} ${s} ${typeof d == "string" ? d : wr(d)}`).join(",");
|
|
5333
5306
|
}
|
|
5334
5307
|
}, e, {
|
|
5335
5308
|
easing: t,
|
|
@@ -5355,7 +5328,7 @@ function T0(e = {}, ...t) {
|
|
|
5355
5328
|
} = e, a = Te(e, O0);
|
|
5356
5329
|
if (e.vars)
|
|
5357
5330
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : st(18));
|
|
5358
|
-
const s = f0(r), d =
|
|
5331
|
+
const s = f0(r), d = Sn(e);
|
|
5359
5332
|
let u = ve(d, {
|
|
5360
5333
|
mixins: Rl(d.breakpoints, n),
|
|
5361
5334
|
palette: s,
|
|
@@ -5363,19 +5336,19 @@ function T0(e = {}, ...t) {
|
|
|
5363
5336
|
shadows: x0.slice(),
|
|
5364
5337
|
typography: p0(s, i),
|
|
5365
5338
|
transitions: E0(o),
|
|
5366
|
-
zIndex:
|
|
5339
|
+
zIndex: F({}, N0)
|
|
5367
5340
|
});
|
|
5368
|
-
if (u = ve(u, a), u = t.reduce((
|
|
5369
|
-
const
|
|
5341
|
+
if (u = ve(u, a), u = t.reduce((h, m) => ve(h, m), u), process.env.NODE_ENV !== "production") {
|
|
5342
|
+
const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (p, v) => {
|
|
5370
5343
|
let y;
|
|
5371
5344
|
for (y in p) {
|
|
5372
5345
|
const l = p[y];
|
|
5373
|
-
if (
|
|
5346
|
+
if (h.indexOf(y) !== -1 && Object.keys(l).length > 0) {
|
|
5374
5347
|
if (process.env.NODE_ENV !== "production") {
|
|
5375
|
-
const
|
|
5376
|
-
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${
|
|
5348
|
+
const f = bn("", y);
|
|
5349
|
+
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${f}' syntax:`, JSON.stringify({
|
|
5377
5350
|
root: {
|
|
5378
|
-
[`&.${
|
|
5351
|
+
[`&.${f}`]: l
|
|
5379
5352
|
}
|
|
5380
5353
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
5381
5354
|
`));
|
|
@@ -5386,12 +5359,12 @@ function T0(e = {}, ...t) {
|
|
|
5386
5359
|
};
|
|
5387
5360
|
Object.keys(u.components).forEach((p) => {
|
|
5388
5361
|
const v = u.components[p].styleOverrides;
|
|
5389
|
-
v && p.indexOf("Mui") === 0 &&
|
|
5362
|
+
v && p.indexOf("Mui") === 0 && m(v, p);
|
|
5390
5363
|
});
|
|
5391
5364
|
}
|
|
5392
|
-
return u.unstable_sxConfig =
|
|
5393
|
-
return
|
|
5394
|
-
sx:
|
|
5365
|
+
return u.unstable_sxConfig = F({}, mt, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
5366
|
+
return wn({
|
|
5367
|
+
sx: m,
|
|
5395
5368
|
theme: this
|
|
5396
5369
|
});
|
|
5397
5370
|
}, u;
|
|
@@ -5416,7 +5389,7 @@ Object.defineProperty(gt, "__esModule", {
|
|
|
5416
5389
|
});
|
|
5417
5390
|
var j0 = gt.default = tc, V0 = gt.shouldForwardProp = Nt;
|
|
5418
5391
|
gt.systemDefaultTheme = void 0;
|
|
5419
|
-
var ce = Qe($0),
|
|
5392
|
+
var ce = Qe($0), mn = Qe(A0), Sr = Z0(P0), H0 = R0, B0 = Qe(D0), W0 = Qe(z0), U0 = Qe(F0), Y0 = Qe(L0);
|
|
5420
5393
|
const q0 = ["ownerState"], G0 = ["variants"], K0 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
5421
5394
|
function No(e) {
|
|
5422
5395
|
if (typeof WeakMap != "function")
|
|
@@ -5468,7 +5441,7 @@ function ec(e) {
|
|
|
5468
5441
|
function Ot(e, t) {
|
|
5469
5442
|
let {
|
|
5470
5443
|
ownerState: n
|
|
5471
|
-
} = t, r = (0,
|
|
5444
|
+
} = t, r = (0, mn.default)(t, q0);
|
|
5472
5445
|
const o = typeof e == "function" ? e((0, ce.default)({
|
|
5473
5446
|
ownerState: n
|
|
5474
5447
|
}, r)) : e;
|
|
@@ -5480,13 +5453,13 @@ function Ot(e, t) {
|
|
|
5480
5453
|
const {
|
|
5481
5454
|
variants: i = []
|
|
5482
5455
|
} = o;
|
|
5483
|
-
let s = (0,
|
|
5456
|
+
let s = (0, mn.default)(o, G0);
|
|
5484
5457
|
return i.forEach((d) => {
|
|
5485
5458
|
let u = !0;
|
|
5486
5459
|
typeof d.props == "function" ? u = d.props((0, ce.default)({
|
|
5487
5460
|
ownerState: n
|
|
5488
|
-
}, r, n)) : Object.keys(d.props).forEach((
|
|
5489
|
-
(n == null ? void 0 : n[
|
|
5461
|
+
}, r, n)) : Object.keys(d.props).forEach((h) => {
|
|
5462
|
+
(n == null ? void 0 : n[h]) !== d.props[h] && r[h] !== d.props[h] && (u = !1);
|
|
5490
5463
|
}), u && (Array.isArray(s) || (s = [s]), s.push(typeof d.style == "function" ? d.style((0, ce.default)({
|
|
5491
5464
|
ownerState: n
|
|
5492
5465
|
}, r, n)) : d.style));
|
|
@@ -5511,23 +5484,23 @@ function tc(e = {}) {
|
|
|
5511
5484
|
const {
|
|
5512
5485
|
name: d,
|
|
5513
5486
|
slot: u,
|
|
5514
|
-
skipVariantsResolver:
|
|
5515
|
-
skipSx:
|
|
5487
|
+
skipVariantsResolver: h,
|
|
5488
|
+
skipSx: m,
|
|
5516
5489
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
5517
5490
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
5518
5491
|
overridesResolver: p = ec(Cr(u))
|
|
5519
|
-
} = s, v = (0,
|
|
5492
|
+
} = s, v = (0, mn.default)(s, K0), y = h !== void 0 ? h : (
|
|
5520
5493
|
// TODO v6: remove `Root` in the next major release
|
|
5521
5494
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
5522
5495
|
u && u !== "Root" && u !== "root" || !1
|
|
5523
|
-
), l =
|
|
5524
|
-
let
|
|
5525
|
-
process.env.NODE_ENV !== "production" && d && (
|
|
5496
|
+
), l = m || !1;
|
|
5497
|
+
let f;
|
|
5498
|
+
process.env.NODE_ENV !== "production" && d && (f = `${d}-${Cr(u || "Root")}`);
|
|
5526
5499
|
let b = Nt;
|
|
5527
5500
|
u === "Root" || u === "root" ? b = r : u ? b = o : X0(a) && (b = void 0);
|
|
5528
5501
|
const _ = (0, Sr.default)(a, (0, ce.default)({
|
|
5529
5502
|
shouldForwardProp: b,
|
|
5530
|
-
label:
|
|
5503
|
+
label: f
|
|
5531
5504
|
}, v)), x = (g) => typeof g == "function" && g.__emotion_real !== g || (0, H0.isPlainObject)(g) ? (w) => Ot(g, (0, ce.default)({}, w, {
|
|
5532
5505
|
theme: wt({
|
|
5533
5506
|
theme: w.theme,
|
|
@@ -5583,7 +5556,7 @@ const nc = (e) => V0(e) && e !== "classes", rc = j0({
|
|
|
5583
5556
|
rootShouldForwardProp: nc
|
|
5584
5557
|
}), oc = rc;
|
|
5585
5558
|
function ic(e) {
|
|
5586
|
-
return
|
|
5559
|
+
return bn("MuiSvgIcon", e);
|
|
5587
5560
|
}
|
|
5588
5561
|
la("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
5589
5562
|
const ac = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], sc = (e) => {
|
|
@@ -5608,7 +5581,7 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5608
5581
|
theme: e,
|
|
5609
5582
|
ownerState: t
|
|
5610
5583
|
}) => {
|
|
5611
|
-
var n, r, o, i, a, s, d, u,
|
|
5584
|
+
var n, r, o, i, a, s, d, u, h, m, p, v, y;
|
|
5612
5585
|
return {
|
|
5613
5586
|
userSelect: "none",
|
|
5614
5587
|
width: "1em",
|
|
@@ -5625,16 +5598,16 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5625
5598
|
inherit: "inherit",
|
|
5626
5599
|
small: ((i = e.typography) == null || (a = i.pxToRem) == null ? void 0 : a.call(i, 20)) || "1.25rem",
|
|
5627
5600
|
medium: ((s = e.typography) == null || (d = s.pxToRem) == null ? void 0 : d.call(s, 24)) || "1.5rem",
|
|
5628
|
-
large: ((u = e.typography) == null || (
|
|
5601
|
+
large: ((u = e.typography) == null || (h = u.pxToRem) == null ? void 0 : h.call(u, 35)) || "2.1875rem"
|
|
5629
5602
|
}[t.fontSize],
|
|
5630
5603
|
// TODO v5 deprecate, v6 remove for sx
|
|
5631
|
-
color: (
|
|
5604
|
+
color: (m = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? m : {
|
|
5632
5605
|
action: (v = (e.vars || e).palette) == null || (v = v.action) == null ? void 0 : v.active,
|
|
5633
5606
|
disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
|
|
5634
5607
|
inherit: void 0
|
|
5635
5608
|
}[t.color]
|
|
5636
5609
|
};
|
|
5637
|
-
}),
|
|
5610
|
+
}), Rn = /* @__PURE__ */ j.forwardRef(function(t, n) {
|
|
5638
5611
|
const r = M0({
|
|
5639
5612
|
props: t,
|
|
5640
5613
|
name: "MuiSvgIcon"
|
|
@@ -5645,36 +5618,36 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5645
5618
|
component: s = "svg",
|
|
5646
5619
|
fontSize: d = "medium",
|
|
5647
5620
|
htmlColor: u,
|
|
5648
|
-
inheritViewBox:
|
|
5649
|
-
titleAccess:
|
|
5621
|
+
inheritViewBox: h = !1,
|
|
5622
|
+
titleAccess: m,
|
|
5650
5623
|
viewBox: p = "0 0 24 24"
|
|
5651
|
-
} = r, v = Te(r, ac), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l =
|
|
5624
|
+
} = r, v = Te(r, ac), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l = F({}, r, {
|
|
5652
5625
|
color: a,
|
|
5653
5626
|
component: s,
|
|
5654
5627
|
fontSize: d,
|
|
5655
5628
|
instanceFontSize: t.fontSize,
|
|
5656
|
-
inheritViewBox:
|
|
5629
|
+
inheritViewBox: h,
|
|
5657
5630
|
viewBox: p,
|
|
5658
5631
|
hasSvgAsChild: y
|
|
5659
|
-
}),
|
|
5660
|
-
|
|
5632
|
+
}), f = {};
|
|
5633
|
+
h || (f.viewBox = p);
|
|
5661
5634
|
const b = sc(l);
|
|
5662
|
-
return /* @__PURE__ */ N(lc,
|
|
5635
|
+
return /* @__PURE__ */ N(lc, F({
|
|
5663
5636
|
as: s,
|
|
5664
5637
|
className: qo(b.root, i),
|
|
5665
5638
|
focusable: "false",
|
|
5666
5639
|
color: u,
|
|
5667
|
-
"aria-hidden":
|
|
5668
|
-
role:
|
|
5640
|
+
"aria-hidden": m ? void 0 : !0,
|
|
5641
|
+
role: m ? "img" : void 0,
|
|
5669
5642
|
ref: n
|
|
5670
|
-
},
|
|
5643
|
+
}, f, v, y && o.props, {
|
|
5671
5644
|
ownerState: l,
|
|
5672
|
-
children: [y ? o.props.children : o,
|
|
5673
|
-
children:
|
|
5645
|
+
children: [y ? o.props.children : o, m ? /* @__PURE__ */ c("title", {
|
|
5646
|
+
children: m
|
|
5674
5647
|
}) : null]
|
|
5675
5648
|
}));
|
|
5676
5649
|
});
|
|
5677
|
-
process.env.NODE_ENV !== "production" && (
|
|
5650
|
+
process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
5678
5651
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
5679
5652
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
5680
5653
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -5746,11 +5719,11 @@ process.env.NODE_ENV !== "production" && (Dn.propTypes = {
|
|
|
5746
5719
|
*/
|
|
5747
5720
|
viewBox: I.string
|
|
5748
5721
|
});
|
|
5749
|
-
|
|
5750
|
-
const Er =
|
|
5722
|
+
Rn.muiName = "SvgIcon";
|
|
5723
|
+
const Er = Rn;
|
|
5751
5724
|
function cc(e, t) {
|
|
5752
5725
|
function n(r, o) {
|
|
5753
|
-
return /* @__PURE__ */ c(Er,
|
|
5726
|
+
return /* @__PURE__ */ c(Er, F({
|
|
5754
5727
|
"data-testid": `${t}Icon`,
|
|
5755
5728
|
ref: o
|
|
5756
5729
|
}, r, {
|
|
@@ -5828,37 +5801,37 @@ var pc = 150, gc = function(t, n) {
|
|
|
5828
5801
|
}, Tt = null, It = null;
|
|
5829
5802
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Tt = /* @__PURE__ */ new WeakSet(), It = /* @__PURE__ */ new WeakSet());
|
|
5830
5803
|
function yc(e) {
|
|
5831
|
-
var t, n = e.getItemOffset, r = e.getEstimatedTotalSize, o = e.getItemSize, i = e.getOffsetForIndexAndAlignment, a = e.getStartIndexForOffset, s = e.getStopIndexForStartIndex, d = e.initInstanceProps, u = e.shouldResetStyleCacheOnItemSizeChange,
|
|
5832
|
-
return t = /* @__PURE__ */ function(
|
|
5833
|
-
Go(p,
|
|
5804
|
+
var t, n = e.getItemOffset, r = e.getEstimatedTotalSize, o = e.getItemSize, i = e.getOffsetForIndexAndAlignment, a = e.getStartIndexForOffset, s = e.getStopIndexForStartIndex, d = e.initInstanceProps, u = e.shouldResetStyleCacheOnItemSizeChange, h = e.validateProps;
|
|
5805
|
+
return t = /* @__PURE__ */ function(m) {
|
|
5806
|
+
Go(p, m);
|
|
5834
5807
|
function p(y) {
|
|
5835
5808
|
var l;
|
|
5836
|
-
return l =
|
|
5837
|
-
instance:
|
|
5809
|
+
return l = m.call(this, y) || this, l._instanceProps = d(l.props, Fn(l)), l._outerRef = void 0, l._resetIsScrollingTimeoutId = null, l.state = {
|
|
5810
|
+
instance: Fn(l),
|
|
5838
5811
|
isScrolling: !1,
|
|
5839
5812
|
scrollDirection: "forward",
|
|
5840
5813
|
scrollOffset: typeof l.props.initialScrollOffset == "number" ? l.props.initialScrollOffset : 0,
|
|
5841
5814
|
scrollUpdateWasRequested: !1
|
|
5842
|
-
}, l._callOnItemsRendered = void 0, l._callOnItemsRendered = an(function(
|
|
5815
|
+
}, l._callOnItemsRendered = void 0, l._callOnItemsRendered = an(function(f, b, _, x) {
|
|
5843
5816
|
return l.props.onItemsRendered({
|
|
5844
|
-
overscanStartIndex:
|
|
5817
|
+
overscanStartIndex: f,
|
|
5845
5818
|
overscanStopIndex: b,
|
|
5846
5819
|
visibleStartIndex: _,
|
|
5847
5820
|
visibleStopIndex: x
|
|
5848
5821
|
});
|
|
5849
|
-
}), l._callOnScroll = void 0, l._callOnScroll = an(function(
|
|
5822
|
+
}), l._callOnScroll = void 0, l._callOnScroll = an(function(f, b, _) {
|
|
5850
5823
|
return l.props.onScroll({
|
|
5851
|
-
scrollDirection:
|
|
5824
|
+
scrollDirection: f,
|
|
5852
5825
|
scrollOffset: b,
|
|
5853
5826
|
scrollUpdateWasRequested: _
|
|
5854
5827
|
});
|
|
5855
|
-
}), l._getItemStyle = void 0, l._getItemStyle = function(
|
|
5828
|
+
}), l._getItemStyle = void 0, l._getItemStyle = function(f) {
|
|
5856
5829
|
var b = l.props, _ = b.direction, x = b.itemSize, S = b.layout, g = l._getItemStyleCache(u && x, u && S, u && _), w;
|
|
5857
|
-
if (g.hasOwnProperty(
|
|
5858
|
-
w = g[
|
|
5830
|
+
if (g.hasOwnProperty(f))
|
|
5831
|
+
w = g[f];
|
|
5859
5832
|
else {
|
|
5860
|
-
var C = n(l.props,
|
|
5861
|
-
g[
|
|
5833
|
+
var C = n(l.props, f, l._instanceProps), T = o(l.props, f, l._instanceProps), O = _ === "horizontal" || S === "horizontal", V = _ === "rtl", z = O ? C : 0;
|
|
5834
|
+
g[f] = w = {
|
|
5862
5835
|
position: "absolute",
|
|
5863
5836
|
left: V ? void 0 : z,
|
|
5864
5837
|
right: V ? z : void 0,
|
|
@@ -5868,10 +5841,10 @@ function yc(e) {
|
|
|
5868
5841
|
};
|
|
5869
5842
|
}
|
|
5870
5843
|
return w;
|
|
5871
|
-
}, l._getItemStyleCache = void 0, l._getItemStyleCache = an(function(
|
|
5844
|
+
}, l._getItemStyleCache = void 0, l._getItemStyleCache = an(function(f, b, _) {
|
|
5872
5845
|
return {};
|
|
5873
|
-
}), l._onScrollHorizontal = function(
|
|
5874
|
-
var b =
|
|
5846
|
+
}), l._onScrollHorizontal = function(f) {
|
|
5847
|
+
var b = f.currentTarget, _ = b.clientWidth, x = b.scrollLeft, S = b.scrollWidth;
|
|
5875
5848
|
l.setState(function(g) {
|
|
5876
5849
|
if (g.scrollOffset === x)
|
|
5877
5850
|
return null;
|
|
@@ -5892,8 +5865,8 @@ function yc(e) {
|
|
|
5892
5865
|
scrollUpdateWasRequested: !1
|
|
5893
5866
|
};
|
|
5894
5867
|
}, l._resetIsScrollingDebounced);
|
|
5895
|
-
}, l._onScrollVertical = function(
|
|
5896
|
-
var b =
|
|
5868
|
+
}, l._onScrollVertical = function(f) {
|
|
5869
|
+
var b = f.currentTarget, _ = b.clientHeight, x = b.scrollHeight, S = b.scrollTop;
|
|
5897
5870
|
l.setState(function(g) {
|
|
5898
5871
|
if (g.scrollOffset === S)
|
|
5899
5872
|
return null;
|
|
@@ -5905,9 +5878,9 @@ function yc(e) {
|
|
|
5905
5878
|
scrollUpdateWasRequested: !1
|
|
5906
5879
|
};
|
|
5907
5880
|
}, l._resetIsScrollingDebounced);
|
|
5908
|
-
}, l._outerRefSetter = function(
|
|
5881
|
+
}, l._outerRefSetter = function(f) {
|
|
5909
5882
|
var b = l.props.outerRef;
|
|
5910
|
-
l._outerRef =
|
|
5883
|
+
l._outerRef = f, typeof b == "function" ? b(f) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = f);
|
|
5911
5884
|
}, l._resetIsScrollingDebounced = function() {
|
|
5912
5885
|
l._resetIsScrollingTimeoutId !== null && Or(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = mc(l._resetIsScrolling, pc);
|
|
5913
5886
|
}, l._resetIsScrolling = function() {
|
|
@@ -5918,20 +5891,20 @@ function yc(e) {
|
|
|
5918
5891
|
});
|
|
5919
5892
|
}, l;
|
|
5920
5893
|
}
|
|
5921
|
-
p.getDerivedStateFromProps = function(l,
|
|
5922
|
-
return vc(l,
|
|
5894
|
+
p.getDerivedStateFromProps = function(l, f) {
|
|
5895
|
+
return vc(l, f), h(l), null;
|
|
5923
5896
|
};
|
|
5924
5897
|
var v = p.prototype;
|
|
5925
5898
|
return v.scrollTo = function(l) {
|
|
5926
|
-
l = Math.max(0, l), this.setState(function(
|
|
5927
|
-
return
|
|
5928
|
-
scrollDirection:
|
|
5899
|
+
l = Math.max(0, l), this.setState(function(f) {
|
|
5900
|
+
return f.scrollOffset === l ? null : {
|
|
5901
|
+
scrollDirection: f.scrollOffset < l ? "forward" : "backward",
|
|
5929
5902
|
scrollOffset: l,
|
|
5930
5903
|
scrollUpdateWasRequested: !0
|
|
5931
5904
|
};
|
|
5932
5905
|
}, this._resetIsScrollingDebounced);
|
|
5933
|
-
}, v.scrollToItem = function(l,
|
|
5934
|
-
|
|
5906
|
+
}, v.scrollToItem = function(l, f) {
|
|
5907
|
+
f === void 0 && (f = "auto");
|
|
5935
5908
|
var b = this.props, _ = b.itemCount, x = b.layout, S = this.state.scrollOffset;
|
|
5936
5909
|
l = Math.max(0, Math.min(l, _ - 1));
|
|
5937
5910
|
var g = 0;
|
|
@@ -5939,20 +5912,20 @@ function yc(e) {
|
|
|
5939
5912
|
var w = this._outerRef;
|
|
5940
5913
|
x === "vertical" ? g = w.scrollWidth > w.clientWidth ? Tr() : 0 : g = w.scrollHeight > w.clientHeight ? Tr() : 0;
|
|
5941
5914
|
}
|
|
5942
|
-
this.scrollTo(i(this.props, l,
|
|
5915
|
+
this.scrollTo(i(this.props, l, f, S, this._instanceProps, g));
|
|
5943
5916
|
}, v.componentDidMount = function() {
|
|
5944
|
-
var l = this.props,
|
|
5917
|
+
var l = this.props, f = l.direction, b = l.initialScrollOffset, _ = l.layout;
|
|
5945
5918
|
if (typeof b == "number" && this._outerRef != null) {
|
|
5946
5919
|
var x = this._outerRef;
|
|
5947
|
-
|
|
5920
|
+
f === "horizontal" || _ === "horizontal" ? x.scrollLeft = b : x.scrollTop = b;
|
|
5948
5921
|
}
|
|
5949
5922
|
this._callPropsCallbacks();
|
|
5950
5923
|
}, v.componentDidUpdate = function() {
|
|
5951
|
-
var l = this.props,
|
|
5924
|
+
var l = this.props, f = l.direction, b = l.layout, _ = this.state, x = _.scrollOffset, S = _.scrollUpdateWasRequested;
|
|
5952
5925
|
if (S && this._outerRef != null) {
|
|
5953
5926
|
var g = this._outerRef;
|
|
5954
|
-
if (
|
|
5955
|
-
if (
|
|
5927
|
+
if (f === "horizontal" || b === "horizontal")
|
|
5928
|
+
if (f === "rtl")
|
|
5956
5929
|
switch (Ir()) {
|
|
5957
5930
|
case "negative":
|
|
5958
5931
|
g.scrollLeft = -x;
|
|
@@ -5974,10 +5947,10 @@ function yc(e) {
|
|
|
5974
5947
|
}, v.componentWillUnmount = function() {
|
|
5975
5948
|
this._resetIsScrollingTimeoutId !== null && Or(this._resetIsScrollingTimeoutId);
|
|
5976
5949
|
}, v.render = function() {
|
|
5977
|
-
var l = this.props,
|
|
5950
|
+
var l = this.props, f = l.children, b = l.className, _ = l.direction, x = l.height, S = l.innerRef, g = l.innerElementType, w = l.innerTagName, C = l.itemCount, T = l.itemData, O = l.itemKey, V = O === void 0 ? gc : O, z = l.layout, H = l.outerElementType, G = l.outerTagName, re = l.style, K = l.useIsScrolling, te = l.width, me = this.state.isScrolling, se = _ === "horizontal" || z === "horizontal", le = se ? this._onScrollHorizontal : this._onScrollVertical, ge = this._getRangeToRender(), et = ge[0], tt = ge[1], De = [];
|
|
5978
5951
|
if (C > 0)
|
|
5979
5952
|
for (var _e = et; _e <= tt; _e++)
|
|
5980
|
-
De.push(St(
|
|
5953
|
+
De.push(St(f, {
|
|
5981
5954
|
data: T,
|
|
5982
5955
|
key: V(_e, T),
|
|
5983
5956
|
index: _e,
|
|
@@ -5989,7 +5962,7 @@ function yc(e) {
|
|
|
5989
5962
|
className: b,
|
|
5990
5963
|
onScroll: le,
|
|
5991
5964
|
ref: this._outerRefSetter,
|
|
5992
|
-
style:
|
|
5965
|
+
style: F({
|
|
5993
5966
|
position: "relative",
|
|
5994
5967
|
height: x,
|
|
5995
5968
|
width: te,
|
|
@@ -6011,7 +5984,7 @@ function yc(e) {
|
|
|
6011
5984
|
if (typeof this.props.onItemsRendered == "function") {
|
|
6012
5985
|
var l = this.props.itemCount;
|
|
6013
5986
|
if (l > 0) {
|
|
6014
|
-
var
|
|
5987
|
+
var f = this._getRangeToRender(), b = f[0], _ = f[1], x = f[2], S = f[3];
|
|
6015
5988
|
this._callOnItemsRendered(b, _, x, S);
|
|
6016
5989
|
}
|
|
6017
5990
|
}
|
|
@@ -6020,11 +5993,11 @@ function yc(e) {
|
|
|
6020
5993
|
this._callOnScroll(w, C, T);
|
|
6021
5994
|
}
|
|
6022
5995
|
}, v._getRangeToRender = function() {
|
|
6023
|
-
var l = this.props,
|
|
6024
|
-
if (
|
|
5996
|
+
var l = this.props, f = l.itemCount, b = l.overscanCount, _ = this.state, x = _.isScrolling, S = _.scrollDirection, g = _.scrollOffset;
|
|
5997
|
+
if (f === 0)
|
|
6025
5998
|
return [0, 0, 0, 0];
|
|
6026
5999
|
var w = a(this.props, g, this._instanceProps), C = s(this.props, w, g, this._instanceProps), T = !x || S === "backward" ? Math.max(1, b) : 1, O = !x || S === "forward" ? Math.max(1, b) : 1;
|
|
6027
|
-
return [Math.max(0, w - T), Math.max(0, Math.min(
|
|
6000
|
+
return [Math.max(0, w - T), Math.max(0, Math.min(f - 1, C + O)), w, C];
|
|
6028
6001
|
}, p;
|
|
6029
6002
|
}($o), t.defaultProps = {
|
|
6030
6003
|
direction: "ltr",
|
|
@@ -6035,14 +6008,14 @@ function yc(e) {
|
|
|
6035
6008
|
}, t;
|
|
6036
6009
|
}
|
|
6037
6010
|
var vc = function(t, n) {
|
|
6038
|
-
var r = t.children, o = t.direction, i = t.height, a = t.layout, s = t.innerTagName, d = t.outerTagName, u = t.width,
|
|
6011
|
+
var r = t.children, o = t.direction, i = t.height, a = t.layout, s = t.innerTagName, d = t.outerTagName, u = t.width, h = n.instance;
|
|
6039
6012
|
if (process.env.NODE_ENV !== "production") {
|
|
6040
|
-
(s != null || d != null) && It && !It.has(
|
|
6041
|
-
var
|
|
6013
|
+
(s != null || d != null) && It && !It.has(h) && (It.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
|
|
6014
|
+
var m = o === "horizontal" || a === "horizontal";
|
|
6042
6015
|
switch (o) {
|
|
6043
6016
|
case "horizontal":
|
|
6044
6017
|
case "vertical":
|
|
6045
|
-
Tt && !Tt.has(
|
|
6018
|
+
Tt && !Tt.has(h) && (Tt.add(h), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
|
|
6046
6019
|
break;
|
|
6047
6020
|
case "ltr":
|
|
6048
6021
|
case "rtl":
|
|
@@ -6059,9 +6032,9 @@ var vc = function(t, n) {
|
|
|
6059
6032
|
}
|
|
6060
6033
|
if (r == null)
|
|
6061
6034
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
|
|
6062
|
-
if (
|
|
6035
|
+
if (m && typeof u != "number")
|
|
6063
6036
|
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (u === null ? "null" : typeof u) + '" was specified.'));
|
|
6064
|
-
if (!
|
|
6037
|
+
if (!m && typeof i != "number")
|
|
6065
6038
|
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
|
|
6066
6039
|
}
|
|
6067
6040
|
}, bc = 50, Ue = function(t, n, r) {
|
|
@@ -6072,12 +6045,12 @@ var vc = function(t, n) {
|
|
|
6072
6045
|
var u = a[s];
|
|
6073
6046
|
d = u.offset + u.size;
|
|
6074
6047
|
}
|
|
6075
|
-
for (var
|
|
6076
|
-
var
|
|
6077
|
-
a[
|
|
6048
|
+
for (var h = s + 1; h <= n; h++) {
|
|
6049
|
+
var m = i(h);
|
|
6050
|
+
a[h] = {
|
|
6078
6051
|
offset: d,
|
|
6079
|
-
size:
|
|
6080
|
-
}, d +=
|
|
6052
|
+
size: m
|
|
6053
|
+
}, d += m;
|
|
6081
6054
|
}
|
|
6082
6055
|
r.lastMeasuredIndex = n;
|
|
6083
6056
|
}
|
|
@@ -6103,8 +6076,8 @@ var vc = function(t, n) {
|
|
|
6103
6076
|
var d = o[a];
|
|
6104
6077
|
s = d.offset + d.size;
|
|
6105
6078
|
}
|
|
6106
|
-
var u = r - a - 1,
|
|
6107
|
-
return s +
|
|
6079
|
+
var u = r - a - 1, h = u * i;
|
|
6080
|
+
return s + h;
|
|
6108
6081
|
}, wc = /* @__PURE__ */ yc({
|
|
6109
6082
|
getItemOffset: function(t, n, r) {
|
|
6110
6083
|
return Ue(t, n, r).offset;
|
|
@@ -6114,24 +6087,24 @@ var vc = function(t, n) {
|
|
|
6114
6087
|
},
|
|
6115
6088
|
getEstimatedTotalSize: Mr,
|
|
6116
6089
|
getOffsetForIndexAndAlignment: function(t, n, r, o, i, a) {
|
|
6117
|
-
var s = t.direction, d = t.height, u = t.layout,
|
|
6118
|
-
switch (r === "smart" && (o >=
|
|
6090
|
+
var s = t.direction, d = t.height, u = t.layout, h = t.width, m = s === "horizontal" || u === "horizontal", p = m ? h : d, v = Ue(t, n, i), y = Mr(t, i), l = Math.max(0, Math.min(y - p, v.offset)), f = Math.max(0, v.offset - p + v.size + a);
|
|
6091
|
+
switch (r === "smart" && (o >= f - p && o <= l + p ? r = "auto" : r = "center"), r) {
|
|
6119
6092
|
case "start":
|
|
6120
6093
|
return l;
|
|
6121
6094
|
case "end":
|
|
6122
|
-
return
|
|
6095
|
+
return f;
|
|
6123
6096
|
case "center":
|
|
6124
|
-
return Math.round(
|
|
6097
|
+
return Math.round(f + (l - f) / 2);
|
|
6125
6098
|
case "auto":
|
|
6126
6099
|
default:
|
|
6127
|
-
return o >=
|
|
6100
|
+
return o >= f && o <= l ? o : o < f ? f : l;
|
|
6128
6101
|
}
|
|
6129
6102
|
},
|
|
6130
6103
|
getStartIndexForOffset: function(t, n, r) {
|
|
6131
6104
|
return xc(t, r, n);
|
|
6132
6105
|
},
|
|
6133
6106
|
getStopIndexForStartIndex: function(t, n, r, o) {
|
|
6134
|
-
for (var i = t.direction, a = t.height, s = t.itemCount, d = t.layout, u = t.width,
|
|
6107
|
+
for (var i = t.direction, a = t.height, s = t.itemCount, d = t.layout, u = t.width, h = i === "horizontal" || d === "horizontal", m = h ? u : a, p = Ue(t, n, o), v = r + m, y = p.offset + p.size, l = n; l < s - 1 && y < v; )
|
|
6135
6108
|
l++, y += Ue(t, l, o).size;
|
|
6136
6109
|
return l;
|
|
6137
6110
|
},
|
|
@@ -6153,7 +6126,7 @@ var vc = function(t, n) {
|
|
|
6153
6126
|
}
|
|
6154
6127
|
});
|
|
6155
6128
|
function $r(e) {
|
|
6156
|
-
const { colors: t } =
|
|
6129
|
+
const { colors: t } = pn();
|
|
6157
6130
|
return /* @__PURE__ */ c(
|
|
6158
6131
|
oe,
|
|
6159
6132
|
{
|
|
@@ -6191,16 +6164,16 @@ const Dt = 37, Sc = (e, t) => {
|
|
|
6191
6164
|
return document.body.removeChild(a), s > 21 ? Dt + 21 : Dt;
|
|
6192
6165
|
};
|
|
6193
6166
|
function e1(e) {
|
|
6194
|
-
const [t, n] =
|
|
6195
|
-
|
|
6167
|
+
const [t, n] = L(!1), [r, o] = L(""), [i, a] = L(""), [s, d] = L(!1), { isRequired: u = !1 } = e, h = Ye(
|
|
6168
|
+
Ln.debounce((w) => {
|
|
6196
6169
|
var C;
|
|
6197
6170
|
(C = e.handleChangeSearch) == null || C.call(e, w);
|
|
6198
6171
|
}, 300),
|
|
6199
6172
|
[e.handleChangeSearch]
|
|
6200
|
-
),
|
|
6173
|
+
), m = () => {
|
|
6201
6174
|
n(!t);
|
|
6202
6175
|
}, p = () => {
|
|
6203
|
-
n(!1), a(""),
|
|
6176
|
+
n(!1), a(""), h("");
|
|
6204
6177
|
};
|
|
6205
6178
|
Q(() => {
|
|
6206
6179
|
o(e.value ? e.getOptionLabel(e.value) : "");
|
|
@@ -6209,8 +6182,8 @@ function e1(e) {
|
|
|
6209
6182
|
}, [t]), Q(() => {
|
|
6210
6183
|
d(e.searchLoading);
|
|
6211
6184
|
}, [e.paging.rows, e.searchLoading]);
|
|
6212
|
-
const v = e.paging.rows, { hasNextPage: y } = e, l = y ? v.length + 1 : v.length,
|
|
6213
|
-
o(w.target.value), t && (a(w.target.value),
|
|
6185
|
+
const v = e.paging.rows, { hasNextPage: y } = e, l = y ? v.length + 1 : v.length, f = () => e.isNextPageLoading ? void 0 : e.loadNextPage(i), b = (w) => !y || w < v.length, _ = (w) => {
|
|
6186
|
+
o(w.target.value), t && (a(w.target.value), h(w.target.value), d(!0));
|
|
6214
6187
|
}, x = ue(null), S = ue(null), g = ue(null);
|
|
6215
6188
|
return Q(() => {
|
|
6216
6189
|
var w, C, T, O;
|
|
@@ -6269,7 +6242,7 @@ function e1(e) {
|
|
|
6269
6242
|
},
|
|
6270
6243
|
onClick: (w) => {
|
|
6271
6244
|
var C;
|
|
6272
|
-
w.preventDefault(), w.stopPropagation(),
|
|
6245
|
+
w.preventDefault(), w.stopPropagation(), m(), (C = x.current) == null || C.focus();
|
|
6273
6246
|
},
|
|
6274
6247
|
disabled: e.loading || e.disabled || e.readOnly,
|
|
6275
6248
|
children: e.loading ? /* @__PURE__ */ c(li, { size: "16px" }) : /* @__PURE__ */ c(
|
|
@@ -6325,7 +6298,7 @@ function e1(e) {
|
|
|
6325
6298
|
{
|
|
6326
6299
|
isItemLoaded: b,
|
|
6327
6300
|
itemCount: l,
|
|
6328
|
-
loadMoreItems:
|
|
6301
|
+
loadMoreItems: f,
|
|
6329
6302
|
threshold: 5,
|
|
6330
6303
|
children: ({ onItemsRendered: w, ref: C }) => /* @__PURE__ */ c(
|
|
6331
6304
|
wc,
|
|
@@ -6370,7 +6343,7 @@ function e1(e) {
|
|
|
6370
6343
|
var G;
|
|
6371
6344
|
p(), (G = e.onChange) == null || G.call(e, H);
|
|
6372
6345
|
},
|
|
6373
|
-
select: ((z = e.isEqual) == null ? void 0 : z.call(e, V, e.value)) ??
|
|
6346
|
+
select: ((z = e.isEqual) == null ? void 0 : z.call(e, V, e.value)) ?? Ln.isEqual(V, e.value)
|
|
6374
6347
|
}
|
|
6375
6348
|
) : /* @__PURE__ */ c(
|
|
6376
6349
|
oe,
|
|
@@ -6425,25 +6398,25 @@ function e1(e) {
|
|
|
6425
6398
|
);
|
|
6426
6399
|
}
|
|
6427
6400
|
function t1(e) {
|
|
6428
|
-
var
|
|
6429
|
-
const { listProps: t } = e, [n, r] =
|
|
6401
|
+
var h;
|
|
6402
|
+
const { listProps: t } = e, [n, r] = L({
|
|
6430
6403
|
initLoading: !e.disabled,
|
|
6431
6404
|
searchLoading: !1,
|
|
6432
6405
|
hasNextPage: !1,
|
|
6433
6406
|
isNextPageLoading: !1,
|
|
6434
6407
|
paging: {
|
|
6435
6408
|
page: 1,
|
|
6436
|
-
pageSize: ((
|
|
6409
|
+
pageSize: ((h = e.listProps) == null ? void 0 : h.pageSize) || 20,
|
|
6437
6410
|
rows: [],
|
|
6438
6411
|
total: 0,
|
|
6439
6412
|
totalPages: 1
|
|
6440
6413
|
}
|
|
6441
|
-
}), o = async (
|
|
6414
|
+
}), o = async (m, p) => {
|
|
6442
6415
|
var v, y;
|
|
6443
6416
|
if (e.list)
|
|
6444
6417
|
r(() => {
|
|
6445
6418
|
var b;
|
|
6446
|
-
const l = ((b =
|
|
6419
|
+
const l = ((b = m == null ? void 0 : m.search) == null ? void 0 : b.content) || "";
|
|
6447
6420
|
return {
|
|
6448
6421
|
hasNextPage: !1,
|
|
6449
6422
|
isNextPageLoading: !1,
|
|
@@ -6468,43 +6441,43 @@ function t1(e) {
|
|
|
6468
6441
|
pageSize: 20,
|
|
6469
6442
|
filter: {
|
|
6470
6443
|
...t == null ? void 0 : t.filter,
|
|
6471
|
-
...
|
|
6444
|
+
...m == null ? void 0 : m.filter
|
|
6472
6445
|
},
|
|
6473
6446
|
...jn.omit(t, "filter"),
|
|
6474
|
-
...jn.omit(
|
|
6447
|
+
...jn.omit(m, "filter"),
|
|
6475
6448
|
search: {
|
|
6476
6449
|
fields: ((v = t == null ? void 0 : t.search) == null ? void 0 : v.fields) ?? [],
|
|
6477
|
-
content: ((y =
|
|
6450
|
+
content: ((y = m == null ? void 0 : m.search) == null ? void 0 : y.content) ?? ""
|
|
6478
6451
|
}
|
|
6479
6452
|
};
|
|
6480
6453
|
p && (l.filter = {}, l.search && (l.search.content = ""), l.page = 1);
|
|
6481
|
-
const
|
|
6454
|
+
const f = await e.getList(l);
|
|
6482
6455
|
r((b) => ({
|
|
6483
6456
|
initLoading: !1,
|
|
6484
6457
|
searchLoading: !1,
|
|
6485
6458
|
isNextPageLoading: !1,
|
|
6486
6459
|
paging: {
|
|
6487
|
-
...
|
|
6488
|
-
rows: (
|
|
6460
|
+
...f,
|
|
6461
|
+
rows: (m == null ? void 0 : m.page) === 1 ? f.rows : b.paging.rows.concat(f.rows)
|
|
6489
6462
|
},
|
|
6490
|
-
hasNextPage:
|
|
6463
|
+
hasNextPage: f.page < f.totalPages
|
|
6491
6464
|
}));
|
|
6492
6465
|
} catch {
|
|
6493
6466
|
}
|
|
6494
6467
|
}
|
|
6495
|
-
}, i = () => (r((
|
|
6468
|
+
}, i = () => (r((m) => ({ ...m, initLoading: !0 })), o(void 0, !0)), a = (m) => (r((p) => ({ ...p, initLoading: !0 })), o(m)), s = (m) => {
|
|
6496
6469
|
o({
|
|
6497
6470
|
page: n.paging.page + 1,
|
|
6498
|
-
search: { content:
|
|
6471
|
+
search: { content: m }
|
|
6499
6472
|
});
|
|
6500
|
-
}, d = (
|
|
6501
|
-
r((p) => ({ ...p, searchLoading: !0 })), o({ page: 1, search: { content:
|
|
6473
|
+
}, d = (m) => {
|
|
6474
|
+
r((p) => ({ ...p, searchLoading: !0 })), o({ page: 1, search: { content: m } });
|
|
6502
6475
|
};
|
|
6503
6476
|
Q(() => {
|
|
6504
|
-
e.disabled || (r((
|
|
6477
|
+
e.disabled || (r((m) => ({ ...m, initLoading: !0 })), o({ page: 1 }));
|
|
6505
6478
|
}, [...e.dependencyList || []]);
|
|
6506
6479
|
const u = () => {
|
|
6507
|
-
r((
|
|
6480
|
+
r((m) => ({ ...m, initLoading: !m.initLoading }));
|
|
6508
6481
|
};
|
|
6509
6482
|
return {
|
|
6510
6483
|
...e,
|
|
@@ -6597,7 +6570,7 @@ function Cc(e) {
|
|
|
6597
6570
|
const Ec = "Reset date";
|
|
6598
6571
|
function n1(e) {
|
|
6599
6572
|
var s, d;
|
|
6600
|
-
const [t, n] =
|
|
6573
|
+
const [t, n] = L(e.value), r = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : J(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + J(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
|
|
6601
6574
|
Q(() => {
|
|
6602
6575
|
n(e.value);
|
|
6603
6576
|
}, [e.value]);
|
|
@@ -6632,9 +6605,9 @@ function n1(e) {
|
|
|
6632
6605
|
maxDate: J(),
|
|
6633
6606
|
...e.initialSettings
|
|
6634
6607
|
},
|
|
6635
|
-
onApply: (u,
|
|
6636
|
-
var
|
|
6637
|
-
const
|
|
6608
|
+
onApply: (u, h) => {
|
|
6609
|
+
var f, b, _;
|
|
6610
|
+
const m = h.chosenLabel === Ec, { startDate: p, endDate: v } = h, y = m ? ((f = e.dateReset) == null ? void 0 : f.startDate) ?? void 0 : p.toDate(), l = m ? ((b = e.dateReset) == null ? void 0 : b.endDate) ?? void 0 : v.toDate();
|
|
6638
6611
|
n({ startDate: y, endDate: l }), (_ = e.onChange) == null || _.call(e, { startDate: y, endDate: l });
|
|
6639
6612
|
},
|
|
6640
6613
|
children: /* @__PURE__ */ c(
|
|
@@ -6818,7 +6791,7 @@ const To = (e) => {
|
|
|
6818
6791
|
console.log("payload", r), t(r);
|
|
6819
6792
|
});
|
|
6820
6793
|
}), Ic = ["granted", "denied"], Mc = (e) => {
|
|
6821
|
-
const [t, n] =
|
|
6794
|
+
const [t, n] = L(!1), r = () => {
|
|
6822
6795
|
Notification.requestPermission(function(i) {
|
|
6823
6796
|
i === "granted" && To(e), Ic.includes(i) && n(!0);
|
|
6824
6797
|
});
|
|
@@ -6841,7 +6814,7 @@ const To = (e) => {
|
|
|
6841
6814
|
] })
|
|
6842
6815
|
] }) }) });
|
|
6843
6816
|
}, $c = (e) => {
|
|
6844
|
-
const [t, n] =
|
|
6817
|
+
const [t, n] = L({
|
|
6845
6818
|
actorName: "",
|
|
6846
6819
|
message: "",
|
|
6847
6820
|
context: "",
|
|
@@ -6888,13 +6861,13 @@ const To = (e) => {
|
|
|
6888
6861
|
message: (s = i == null ? void 0 : i.data) == null ? void 0 : s.message,
|
|
6889
6862
|
context: (d = i == null ? void 0 : i.data) == null ? void 0 : d.context,
|
|
6890
6863
|
contextUrl: (u = i == null ? void 0 : i.data) == null ? void 0 : u.contextUrl
|
|
6891
|
-
}), r((
|
|
6892
|
-
var
|
|
6864
|
+
}), r((h) => {
|
|
6865
|
+
var m;
|
|
6893
6866
|
return {
|
|
6894
|
-
...
|
|
6867
|
+
...h,
|
|
6895
6868
|
unread: {
|
|
6896
|
-
...
|
|
6897
|
-
total: ((
|
|
6869
|
+
...h.unread,
|
|
6870
|
+
total: ((m = h.unread) == null ? void 0 : m.total) + 1
|
|
6898
6871
|
}
|
|
6899
6872
|
};
|
|
6900
6873
|
});
|
|
@@ -6903,7 +6876,7 @@ const To = (e) => {
|
|
|
6903
6876
|
children: e,
|
|
6904
6877
|
providers: t
|
|
6905
6878
|
}) => /* @__PURE__ */ c(ke, { children: t.reduceRight(Ac, e) }), i1 = ({ rootPath: e }) => {
|
|
6906
|
-
const { colors: t } =
|
|
6879
|
+
const { colors: t } = pn();
|
|
6907
6880
|
return /* @__PURE__ */ N(oe, { py: 2, gap: 2, style: { alignItems: "center" }, children: [
|
|
6908
6881
|
/* @__PURE__ */ c(
|
|
6909
6882
|
"img",
|
|
@@ -6922,7 +6895,7 @@ const To = (e) => {
|
|
|
6922
6895
|
"Please go back to the home page"
|
|
6923
6896
|
] }),
|
|
6924
6897
|
/* @__PURE__ */ c(
|
|
6925
|
-
|
|
6898
|
+
gn,
|
|
6926
6899
|
{
|
|
6927
6900
|
to: e,
|
|
6928
6901
|
style: {
|