@ukpc-lib/react 0.7.5 → 0.7.6
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 +401 -425
- package/dist/{index.module-38bd66dc.js → index.module-bbb31b2d.js} +4897 -4833
- package/dist/{index.module-eec974f6.cjs → index.module-eefe092e.cjs} +95 -95
- 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-dbccd273.js} +11756 -11713
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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, _ as ln, S as Pr, b as Po, L as Ro, d as Fn, e as Do, Q as Rr, f as vt, g as zo, m as Fo, h as it,
|
|
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, _ as ln, S as Pr, b as Po, L as Ro, d as Fn, 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 gn, n as Wo, o as bt, q as F, r as Te, P as I, t as xe, v as Uo, w as Yo, x as qo, y as Go, 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-bbb31b2d.js";
|
|
5
|
+
import { O as l1, T as c1, R as d1 } from "../index.module-bbb31b2d.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";
|
|
@@ -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 = vn({ 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
253
|
const { setNotiData: s } = Oe($e), d = vn({ 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,
|
|
@@ -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 = vn({ baseUrl: t, notiPath: n, setNotiData: d }),
|
|
418
|
+
var m, p;
|
|
419
|
+
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } = Oe($e), { notidata: s, setNotiData: d } = Oe($e), u = vn({ baseUrl: t, notiPath: n, setNotiData: d }), h = async () => {
|
|
420
420
|
var v, y;
|
|
421
421
|
try {
|
|
422
422
|
await u();
|
|
@@ -427,7 +427,7 @@ function bi({
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
return Q(() => {
|
|
430
|
-
|
|
430
|
+
h();
|
|
431
431
|
}, [o]), Q(() => {
|
|
432
432
|
bn({
|
|
433
433
|
childrenClass: "noti-container",
|
|
@@ -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,14 +696,14 @@ 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
708
|
const S = $i(o, b), g = Ye(
|
|
709
709
|
ln.debounce((w) => {
|
|
@@ -731,7 +731,7 @@ function Ai({ classNames: e = "", ...t }) {
|
|
|
731
731
|
className: `navbar ${e}`,
|
|
732
732
|
style: s ? p : a,
|
|
733
733
|
children: /* @__PURE__ */ N("div", { className: "navbar-container", children: [
|
|
734
|
-
/* @__PURE__ */ c("div", { className: "logo-container", children: /* @__PURE__ */ c("img", { src:
|
|
734
|
+
/* @__PURE__ */ c("div", { className: "logo-container", children: /* @__PURE__ */ c("img", { src: m, alt: "logo-header", style: { height: "40px" } }) }),
|
|
735
735
|
/* @__PURE__ */ N("div", { className: "right-side-container", children: [
|
|
736
736
|
u && x.hasPermission ? /* @__PURE__ */ c("span", { children: /* @__PURE__ */ N(
|
|
737
737
|
"label",
|
|
@@ -826,7 +826,7 @@ function Ai({ classNames: e = "", ...t }) {
|
|
|
826
826
|
{
|
|
827
827
|
isOpen: v,
|
|
828
828
|
onClose: () => y(!1),
|
|
829
|
-
onConfirm:
|
|
829
|
+
onConfirm: h
|
|
830
830
|
}
|
|
831
831
|
)
|
|
832
832
|
]
|
|
@@ -844,8 +844,8 @@ function Pi() {
|
|
|
844
844
|
value: Fn.de,
|
|
845
845
|
element: /* @__PURE__ */ c(ki, {})
|
|
846
846
|
}
|
|
847
|
-
], [t, n] =
|
|
848
|
-
|
|
847
|
+
], [t, n] = L(!1);
|
|
848
|
+
L(
|
|
849
849
|
new Array(e.length).fill(!1)
|
|
850
850
|
);
|
|
851
851
|
const { language: r, setLanguage: o } = Do();
|
|
@@ -880,8 +880,8 @@ function Ri({
|
|
|
880
880
|
avatarUrl: e,
|
|
881
881
|
userName: t
|
|
882
882
|
}) {
|
|
883
|
-
const [n, r] =
|
|
884
|
-
return ue(null),
|
|
883
|
+
const [n, r] = L(!1), o = ue(null);
|
|
884
|
+
return ue(null), L(!1), L(!1), Q(() => {
|
|
885
885
|
bn({
|
|
886
886
|
childrenClass: "userAvatar",
|
|
887
887
|
action() {
|
|
@@ -1282,7 +1282,7 @@ function Di() {
|
|
|
1282
1282
|
var zi = typeof vt == "object" && vt && vt.Object === Object && vt, Fi = typeof self == "object" && self && self.Object === Object && self;
|
|
1283
1283
|
zi || Fi || Function("return this")();
|
|
1284
1284
|
function Li(e) {
|
|
1285
|
-
const [t, n] =
|
|
1285
|
+
const [t, n] = L(!!e), r = Ye(() => {
|
|
1286
1286
|
n(!0);
|
|
1287
1287
|
}, []), o = Ye(() => {
|
|
1288
1288
|
n(!1);
|
|
@@ -1396,17 +1396,17 @@ function ji(e) {
|
|
|
1396
1396
|
);
|
|
1397
1397
|
}
|
|
1398
1398
|
function Vi(e) {
|
|
1399
|
-
const { renderChildren: t, parentRef: n, onlyChild: r, dropdownLevel: o } = e, [i, a] =
|
|
1399
|
+
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
1400
|
return Io(() => {
|
|
1401
1401
|
if (n.current && s.current) {
|
|
1402
|
-
const
|
|
1402
|
+
const h = n.current.getBoundingClientRect(), m = s.current.getBoundingClientRect();
|
|
1403
1403
|
let p, v;
|
|
1404
1404
|
if (o === 1)
|
|
1405
|
-
p =
|
|
1405
|
+
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
1406
|
else if (o > 1) {
|
|
1407
|
-
p =
|
|
1408
|
-
const y =
|
|
1409
|
-
y && (console.log("overtop"), u(window.innerHeight -
|
|
1407
|
+
p = h.top, v = h.left + h.width;
|
|
1408
|
+
const y = m.height + (window.innerHeight - h.top) > window.innerHeight;
|
|
1409
|
+
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
1410
|
}
|
|
1411
1411
|
a({
|
|
1412
1412
|
top: p,
|
|
@@ -1432,9 +1432,9 @@ function Vi(e) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
function jr({ ...e }) {
|
|
1434
1434
|
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] =
|
|
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] = L(!1), [h, m] = L(t.isFavorite || !1), p = ue(), v = ue();
|
|
1436
1436
|
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: "" },
|
|
1437
|
+
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" : yn, S = t.path || "#", g = n + 1, w = r && d && n > 0, C = () => {
|
|
1438
1438
|
u(!0);
|
|
1439
1439
|
}, T = () => {
|
|
1440
1440
|
u(!1);
|
|
@@ -1493,7 +1493,7 @@ function jr({ ...e }) {
|
|
|
1493
1493
|
menuLevel: n,
|
|
1494
1494
|
hasChildren: r,
|
|
1495
1495
|
isHovered: d,
|
|
1496
|
-
isFavorite:
|
|
1496
|
+
isFavorite: h,
|
|
1497
1497
|
onClick: (K) => {
|
|
1498
1498
|
const te = {
|
|
1499
1499
|
menuConfigId: t.id,
|
|
@@ -1501,7 +1501,7 @@ function jr({ ...e }) {
|
|
|
1501
1501
|
}, me = e.baseUrl + O;
|
|
1502
1502
|
Pe.post(me, te).then((se) => {
|
|
1503
1503
|
var le;
|
|
1504
|
-
|
|
1504
|
+
m(K), zo("Set favorite menu item successfully"), (le = e.onSetFavoriteSuccess) == null || le.call(e, e.item.id, K);
|
|
1505
1505
|
}).catch((se) => {
|
|
1506
1506
|
var le, ge;
|
|
1507
1507
|
Ar(
|
|
@@ -1553,43 +1553,7 @@ function jr({ ...e }) {
|
|
|
1553
1553
|
);
|
|
1554
1554
|
}
|
|
1555
1555
|
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
|
-
) });
|
|
1556
|
+
return /* @__PURE__ */ c("div", { className: t("menu-item__icon"), children: /* @__PURE__ */ c(Lo, { item: e }) });
|
|
1593
1557
|
}
|
|
1594
1558
|
function Bi(e) {
|
|
1595
1559
|
const t = {
|
|
@@ -1644,39 +1608,51 @@ function Yi(e) {
|
|
|
1644
1608
|
window.dispatchEvent(t);
|
|
1645
1609
|
}
|
|
1646
1610
|
function qi(e) {
|
|
1647
|
-
const t = hi(), [n, r] =
|
|
1611
|
+
const t = hi(), [n, r] = L([]), [o, i] = L(window.location.href);
|
|
1648
1612
|
Q(() => {
|
|
1649
1613
|
i(window.location.href);
|
|
1650
1614
|
}, [t]);
|
|
1651
|
-
const a = (
|
|
1652
|
-
function s(
|
|
1653
|
-
|
|
1654
|
-
|
|
1615
|
+
const a = (p) => `${p}`;
|
|
1616
|
+
function s(p, v) {
|
|
1617
|
+
for (const y of p) {
|
|
1618
|
+
if (y.id === v)
|
|
1619
|
+
return y;
|
|
1620
|
+
if (y.children) {
|
|
1621
|
+
const l = s(y.children, v);
|
|
1622
|
+
if (l)
|
|
1623
|
+
return l;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
return null;
|
|
1627
|
+
}
|
|
1628
|
+
function d(p, v) {
|
|
1629
|
+
const y = s(n, p);
|
|
1630
|
+
console.log("updatedMenuItem:", y), y ? (y.isFavorite = v, Yi(y)) : console.error(`Item with id ${p} not found`);
|
|
1655
1631
|
}
|
|
1656
|
-
const
|
|
1657
|
-
console.log("Favorite menus changed",
|
|
1632
|
+
const u = (p) => {
|
|
1633
|
+
console.log("Favorite menus changed", p), r(p.detail.favoriteMenus || []);
|
|
1658
1634
|
};
|
|
1659
|
-
Q(() => (window.addEventListener("favoriteMenusChange",
|
|
1635
|
+
Q(() => (window.addEventListener("favoriteMenusChange", u), () => {
|
|
1660
1636
|
window.removeEventListener(
|
|
1661
1637
|
"favoriteMenusChange",
|
|
1662
|
-
|
|
1638
|
+
u
|
|
1663
1639
|
);
|
|
1664
1640
|
}), []), console.log("favoriteItems", n);
|
|
1665
|
-
function
|
|
1666
|
-
return !
|
|
1667
|
-
|
|
1668
|
-
n.find((
|
|
1641
|
+
function h(p, v) {
|
|
1642
|
+
return !v || n.indexOf(v) === -1 ? 1 : h(
|
|
1643
|
+
v,
|
|
1644
|
+
n.find((l) => l.id === v.parentKey)
|
|
1669
1645
|
) + 1;
|
|
1670
1646
|
}
|
|
1671
|
-
const
|
|
1647
|
+
const m = (p, v, y) => /* @__PURE__ */ c(
|
|
1672
1648
|
jr,
|
|
1673
1649
|
{
|
|
1674
|
-
isActive: (
|
|
1650
|
+
isActive: (f) => y.some((b) => b.id === f),
|
|
1675
1651
|
brandColors: e.brandColors,
|
|
1676
1652
|
baseUrl: e.baseUrl,
|
|
1677
|
-
item:
|
|
1678
|
-
level:
|
|
1679
|
-
onSetFavoriteSuccess:
|
|
1653
|
+
item: p,
|
|
1654
|
+
level: v,
|
|
1655
|
+
onSetFavoriteSuccess: d
|
|
1680
1656
|
}
|
|
1681
1657
|
);
|
|
1682
1658
|
return /* @__PURE__ */ c(ke, { children: n.length ? /* @__PURE__ */ c("div", { className: a("side-bar"), children: /* @__PURE__ */ c(
|
|
@@ -1694,7 +1670,7 @@ function qi(e) {
|
|
|
1694
1670
|
scrollbarWidth: "thin"
|
|
1695
1671
|
},
|
|
1696
1672
|
children: n.map(
|
|
1697
|
-
(
|
|
1673
|
+
(p) => /* @__PURE__ */ c("div", { children: m(p, h(), []) }, p.id)
|
|
1698
1674
|
)
|
|
1699
1675
|
}
|
|
1700
1676
|
) }) : "" });
|
|
@@ -1847,7 +1823,7 @@ function Vr(e) {
|
|
|
1847
1823
|
function ve(e, t, n = {
|
|
1848
1824
|
clone: !0
|
|
1849
1825
|
}) {
|
|
1850
|
-
const r = n.clone ?
|
|
1826
|
+
const r = n.clone ? F({}, e) : e;
|
|
1851
1827
|
return Ne(e) && Ne(t) && Object.keys(t).forEach((o) => {
|
|
1852
1828
|
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
1829
|
}), r;
|
|
@@ -1882,29 +1858,29 @@ function Ji() {
|
|
|
1882
1858
|
if (Bn)
|
|
1883
1859
|
return A;
|
|
1884
1860
|
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"),
|
|
1861
|
+
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
1862
|
y = Symbol.for("react.module.reference");
|
|
1887
|
-
function l(
|
|
1888
|
-
if (typeof
|
|
1889
|
-
var b =
|
|
1863
|
+
function l(f) {
|
|
1864
|
+
if (typeof f == "object" && f !== null) {
|
|
1865
|
+
var b = f.$$typeof;
|
|
1890
1866
|
switch (b) {
|
|
1891
1867
|
case e:
|
|
1892
|
-
switch (
|
|
1868
|
+
switch (f = f.type, f) {
|
|
1893
1869
|
case n:
|
|
1894
1870
|
case o:
|
|
1895
1871
|
case r:
|
|
1896
1872
|
case u:
|
|
1897
|
-
case
|
|
1898
|
-
return
|
|
1873
|
+
case h:
|
|
1874
|
+
return f;
|
|
1899
1875
|
default:
|
|
1900
|
-
switch (
|
|
1876
|
+
switch (f = f && f.$$typeof, f) {
|
|
1901
1877
|
case s:
|
|
1902
1878
|
case a:
|
|
1903
1879
|
case d:
|
|
1904
1880
|
case p:
|
|
1905
|
-
case
|
|
1881
|
+
case m:
|
|
1906
1882
|
case i:
|
|
1907
|
-
return
|
|
1883
|
+
return f;
|
|
1908
1884
|
default:
|
|
1909
1885
|
return b;
|
|
1910
1886
|
}
|
|
@@ -1914,36 +1890,36 @@ function Ji() {
|
|
|
1914
1890
|
}
|
|
1915
1891
|
}
|
|
1916
1892
|
}
|
|
1917
|
-
return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef = d, A.Fragment = n, A.Lazy = p, A.Memo =
|
|
1893
|
+
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
1894
|
return !1;
|
|
1919
1895
|
}, A.isConcurrentMode = function() {
|
|
1920
1896
|
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
|
|
1897
|
+
}, A.isContextConsumer = function(f) {
|
|
1898
|
+
return l(f) === a;
|
|
1899
|
+
}, A.isContextProvider = function(f) {
|
|
1900
|
+
return l(f) === i;
|
|
1901
|
+
}, A.isElement = function(f) {
|
|
1902
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
1903
|
+
}, A.isForwardRef = function(f) {
|
|
1904
|
+
return l(f) === d;
|
|
1905
|
+
}, A.isFragment = function(f) {
|
|
1906
|
+
return l(f) === n;
|
|
1907
|
+
}, A.isLazy = function(f) {
|
|
1908
|
+
return l(f) === p;
|
|
1909
|
+
}, A.isMemo = function(f) {
|
|
1910
|
+
return l(f) === m;
|
|
1911
|
+
}, A.isPortal = function(f) {
|
|
1912
|
+
return l(f) === t;
|
|
1913
|
+
}, A.isProfiler = function(f) {
|
|
1914
|
+
return l(f) === o;
|
|
1915
|
+
}, A.isStrictMode = function(f) {
|
|
1916
|
+
return l(f) === r;
|
|
1917
|
+
}, A.isSuspense = function(f) {
|
|
1918
|
+
return l(f) === u;
|
|
1919
|
+
}, A.isSuspenseList = function(f) {
|
|
1920
|
+
return l(f) === h;
|
|
1921
|
+
}, A.isValidElementType = function(f) {
|
|
1922
|
+
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
1923
|
}, A.typeOf = l, A;
|
|
1948
1924
|
}
|
|
1949
1925
|
var P = {};
|
|
@@ -1959,10 +1935,10 @@ var P = {};
|
|
|
1959
1935
|
var Wn;
|
|
1960
1936
|
function Xi() {
|
|
1961
1937
|
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"),
|
|
1938
|
+
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
1939
|
x = Symbol.for("react.module.reference");
|
|
1964
1940
|
function S(k) {
|
|
1965
|
-
return !!(typeof k == "string" || typeof k == "function" || k === n || k === o || _ || k === r || k === u || k ===
|
|
1941
|
+
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
1942
|
// types supported by any Flight configuration anywhere since
|
|
1967
1943
|
// we don't know which Flight build this will end up being used
|
|
1968
1944
|
// with.
|
|
@@ -1979,7 +1955,7 @@ function Xi() {
|
|
|
1979
1955
|
case o:
|
|
1980
1956
|
case r:
|
|
1981
1957
|
case u:
|
|
1982
|
-
case
|
|
1958
|
+
case h:
|
|
1983
1959
|
return yt;
|
|
1984
1960
|
default:
|
|
1985
1961
|
var zn = yt && yt.$$typeof;
|
|
@@ -1988,7 +1964,7 @@ function Xi() {
|
|
|
1988
1964
|
case a:
|
|
1989
1965
|
case d:
|
|
1990
1966
|
case p:
|
|
1991
|
-
case
|
|
1967
|
+
case m:
|
|
1992
1968
|
case i:
|
|
1993
1969
|
return zn;
|
|
1994
1970
|
default:
|
|
@@ -2000,7 +1976,7 @@ function Xi() {
|
|
|
2000
1976
|
}
|
|
2001
1977
|
}
|
|
2002
1978
|
}
|
|
2003
|
-
var w = a, C = i, T = e, O = d, V = n, z = p, H =
|
|
1979
|
+
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
1980
|
function ge(k) {
|
|
2005
1981
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2006
1982
|
}
|
|
@@ -2026,7 +2002,7 @@ function Xi() {
|
|
|
2026
2002
|
return g(k) === p;
|
|
2027
2003
|
}
|
|
2028
2004
|
function Qt(k) {
|
|
2029
|
-
return g(k) ===
|
|
2005
|
+
return g(k) === m;
|
|
2030
2006
|
}
|
|
2031
2007
|
function en(k) {
|
|
2032
2008
|
return g(k) === t;
|
|
@@ -2041,7 +2017,7 @@ function Xi() {
|
|
|
2041
2017
|
return g(k) === u;
|
|
2042
2018
|
}
|
|
2043
2019
|
function nt(k) {
|
|
2044
|
-
return g(k) ===
|
|
2020
|
+
return g(k) === h;
|
|
2045
2021
|
}
|
|
2046
2022
|
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
2023
|
}()), P;
|
|
@@ -2092,13 +2068,13 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2092
2068
|
default: Ae
|
|
2093
2069
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2094
2070
|
function Wr(e, t) {
|
|
2095
|
-
const n =
|
|
2071
|
+
const n = F({}, t);
|
|
2096
2072
|
return Object.keys(e).forEach((r) => {
|
|
2097
2073
|
if (r.toString().match(/^(components|slots)$/))
|
|
2098
|
-
n[r] =
|
|
2074
|
+
n[r] = F({}, e[r], n[r]);
|
|
2099
2075
|
else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
2100
2076
|
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] =
|
|
2077
|
+
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
2078
|
n[r][a] = Wr(o[a], i[a]);
|
|
2103
2079
|
}));
|
|
2104
2080
|
} else
|
|
@@ -2178,7 +2154,7 @@ const fa = ["values", "unit", "step"], ha = (e) => {
|
|
|
2178
2154
|
key: n,
|
|
2179
2155
|
val: e[n]
|
|
2180
2156
|
})) || [];
|
|
2181
|
-
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) =>
|
|
2157
|
+
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => F({}, n, {
|
|
2182
2158
|
[r.key]: r.val
|
|
2183
2159
|
}), {});
|
|
2184
2160
|
};
|
|
@@ -2211,21 +2187,21 @@ function Ur(e) {
|
|
|
2211
2187
|
const y = a.indexOf(v);
|
|
2212
2188
|
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
2189
|
}
|
|
2214
|
-
function
|
|
2190
|
+
function h(p) {
|
|
2215
2191
|
return a.indexOf(p) + 1 < a.length ? u(p, a[a.indexOf(p) + 1]) : s(p);
|
|
2216
2192
|
}
|
|
2217
|
-
function
|
|
2193
|
+
function m(p) {
|
|
2218
2194
|
const v = a.indexOf(p);
|
|
2219
2195
|
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
2196
|
}
|
|
2221
|
-
return
|
|
2197
|
+
return F({
|
|
2222
2198
|
keys: a,
|
|
2223
2199
|
values: i,
|
|
2224
2200
|
up: s,
|
|
2225
2201
|
down: d,
|
|
2226
2202
|
between: u,
|
|
2227
|
-
only:
|
|
2228
|
-
not:
|
|
2203
|
+
only: h,
|
|
2204
|
+
not: m,
|
|
2229
2205
|
unit: n
|
|
2230
2206
|
}, o);
|
|
2231
2207
|
}
|
|
@@ -2313,9 +2289,9 @@ function Y(e) {
|
|
|
2313
2289
|
if (a[t] == null)
|
|
2314
2290
|
return null;
|
|
2315
2291
|
const s = a[t], d = a.theme, u = zt(d, r) || {};
|
|
2316
|
-
return Ee(a, s, (
|
|
2317
|
-
let p = $t(u, o,
|
|
2318
|
-
return
|
|
2292
|
+
return Ee(a, s, (m) => {
|
|
2293
|
+
let p = $t(u, o, m);
|
|
2294
|
+
return m === p && typeof m == "string" && (p = $t(u, o, `${t}${m === "default" ? "" : Ae(m)}`, m)), n === !1 ? p : {
|
|
2319
2295
|
[n]: p
|
|
2320
2296
|
};
|
|
2321
2297
|
});
|
|
@@ -2868,8 +2844,8 @@ function Gr() {
|
|
|
2868
2844
|
const {
|
|
2869
2845
|
cssProperty: d = n,
|
|
2870
2846
|
themeKey: u,
|
|
2871
|
-
transform:
|
|
2872
|
-
style:
|
|
2847
|
+
transform: h,
|
|
2848
|
+
style: m
|
|
2873
2849
|
} = s;
|
|
2874
2850
|
if (r == null)
|
|
2875
2851
|
return null;
|
|
@@ -2878,9 +2854,9 @@ function Gr() {
|
|
|
2878
2854
|
[n]: r
|
|
2879
2855
|
};
|
|
2880
2856
|
const p = zt(o, u) || {};
|
|
2881
|
-
return
|
|
2882
|
-
let l = $t(p,
|
|
2883
|
-
return y === l && typeof y == "string" && (l = $t(p,
|
|
2857
|
+
return m ? m(a) : Ee(a, r, (y) => {
|
|
2858
|
+
let l = $t(p, h, y);
|
|
2859
|
+
return y === l && typeof y == "string" && (l = $t(p, h, `${n}${y === "default" ? "" : Ae(y)}`, y)), d === !1 ? l : {
|
|
2884
2860
|
[d]: l
|
|
2885
2861
|
};
|
|
2886
2862
|
});
|
|
@@ -2902,8 +2878,8 @@ function Gr() {
|
|
|
2902
2878
|
return d;
|
|
2903
2879
|
if (!u)
|
|
2904
2880
|
return null;
|
|
2905
|
-
const
|
|
2906
|
-
let p =
|
|
2881
|
+
const h = ya(i.breakpoints), m = Object.keys(h);
|
|
2882
|
+
let p = h;
|
|
2907
2883
|
return Object.keys(u).forEach((v) => {
|
|
2908
2884
|
const y = is(u[v], i);
|
|
2909
2885
|
if (y != null)
|
|
@@ -2913,8 +2889,8 @@ function Gr() {
|
|
|
2913
2889
|
else {
|
|
2914
2890
|
const l = Ee({
|
|
2915
2891
|
theme: i
|
|
2916
|
-
}, y, (
|
|
2917
|
-
[v]:
|
|
2892
|
+
}, y, (f) => ({
|
|
2893
|
+
[v]: f
|
|
2918
2894
|
}));
|
|
2919
2895
|
os(l, y) ? p[v] = t({
|
|
2920
2896
|
sx: y,
|
|
@@ -2923,7 +2899,7 @@ function Gr() {
|
|
|
2923
2899
|
}
|
|
2924
2900
|
else
|
|
2925
2901
|
p = at(p, e(v, y, i, a));
|
|
2926
|
-
}), va(
|
|
2902
|
+
}), va(m, p);
|
|
2927
2903
|
}
|
|
2928
2904
|
return Array.isArray(o) ? o.map(s) : s(o);
|
|
2929
2905
|
}
|
|
@@ -2951,15 +2927,15 @@ function Cn(e = {}, ...t) {
|
|
|
2951
2927
|
direction: "ltr",
|
|
2952
2928
|
components: {},
|
|
2953
2929
|
// Inject component definitions.
|
|
2954
|
-
palette:
|
|
2930
|
+
palette: F({
|
|
2955
2931
|
mode: "light"
|
|
2956
2932
|
}, r),
|
|
2957
2933
|
spacing: d,
|
|
2958
|
-
shape:
|
|
2934
|
+
shape: F({}, pa, i)
|
|
2959
2935
|
}, a);
|
|
2960
|
-
return u.applyStyles = Zr, u = t.reduce((
|
|
2936
|
+
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) {
|
|
2961
2937
|
return Sn({
|
|
2962
|
-
sx:
|
|
2938
|
+
sx: m,
|
|
2963
2939
|
theme: this
|
|
2964
2940
|
});
|
|
2965
2941
|
}, u;
|
|
@@ -3170,10 +3146,10 @@ function ks(e) {
|
|
|
3170
3146
|
return no(kt("", null, null, null, [""], e = to(e), 0, [0], e));
|
|
3171
3147
|
}
|
|
3172
3148
|
function kt(e, t, n, r, o, i, a, s, d) {
|
|
3173
|
-
for (var u = 0,
|
|
3149
|
+
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
3150
|
switch (y = _, _ = ae()) {
|
|
3175
3151
|
case 40:
|
|
3176
|
-
if (y != 108 && X(C,
|
|
3152
|
+
if (y != 108 && X(C, m - 1) == 58) {
|
|
3177
3153
|
dn(C += $(Et(_), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
3178
3154
|
break;
|
|
3179
3155
|
}
|
|
@@ -3209,32 +3185,32 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3209
3185
|
switch (_) {
|
|
3210
3186
|
case 0:
|
|
3211
3187
|
case 125:
|
|
3212
|
-
|
|
3213
|
-
case 59 +
|
|
3214
|
-
b == -1 && (C = $(C, /\f/g, "")), v > 0 && ye(C) -
|
|
3188
|
+
f = 0;
|
|
3189
|
+
case 59 + h:
|
|
3190
|
+
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
3191
|
break;
|
|
3216
3192
|
case 59:
|
|
3217
3193
|
C += ";";
|
|
3218
3194
|
default:
|
|
3219
|
-
if (_t(w = Zn(C, t, n, u,
|
|
3220
|
-
if (
|
|
3221
|
-
kt(C, t, w, w, S, i,
|
|
3195
|
+
if (_t(w = Zn(C, t, n, u, h, o, s, x, S = [], g = [], m), i), _ === 123)
|
|
3196
|
+
if (h === 0)
|
|
3197
|
+
kt(C, t, w, w, S, i, m, s, g);
|
|
3222
3198
|
else
|
|
3223
3199
|
switch (p === 99 && X(C, 3) === 110 ? 100 : p) {
|
|
3224
3200
|
case 100:
|
|
3225
3201
|
case 108:
|
|
3226
3202
|
case 109:
|
|
3227
3203
|
case 115:
|
|
3228
|
-
kt(e, w, w, r && _t(Zn(e, w, w, 0, 0, o, s, x, o, S = [],
|
|
3204
|
+
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
3205
|
break;
|
|
3230
3206
|
default:
|
|
3231
3207
|
kt(C, w, w, w, [""], g, 0, s, g);
|
|
3232
3208
|
}
|
|
3233
3209
|
}
|
|
3234
|
-
u =
|
|
3210
|
+
u = h = v = 0, l = b = 1, x = C = "", m = a;
|
|
3235
3211
|
break;
|
|
3236
3212
|
case 58:
|
|
3237
|
-
|
|
3213
|
+
m = 1 + ye(C), v = y;
|
|
3238
3214
|
default:
|
|
3239
3215
|
if (l < 1) {
|
|
3240
3216
|
if (_ == 123)
|
|
@@ -3244,13 +3220,13 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3244
3220
|
}
|
|
3245
3221
|
switch (C += Ut(_), _ * l) {
|
|
3246
3222
|
case 38:
|
|
3247
|
-
b =
|
|
3223
|
+
b = h > 0 ? 1 : (C += "\f", -1);
|
|
3248
3224
|
break;
|
|
3249
3225
|
case 44:
|
|
3250
3226
|
s[u++] = (ye(C) - 1) * b, b = 1;
|
|
3251
3227
|
break;
|
|
3252
3228
|
case 64:
|
|
3253
|
-
be() === 45 && (C += Et(ae())), p = be(),
|
|
3229
|
+
be() === 45 && (C += Et(ae())), p = be(), h = m = ye(x = C += Es(Ct())), _++;
|
|
3254
3230
|
break;
|
|
3255
3231
|
case 45:
|
|
3256
3232
|
y === 45 && ye(C) == 2 && (l = 0);
|
|
@@ -3258,11 +3234,11 @@ function kt(e, t, n, r, o, i, a, s, d) {
|
|
|
3258
3234
|
}
|
|
3259
3235
|
return i;
|
|
3260
3236
|
}
|
|
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 ? kn : s, d, u,
|
|
3237
|
+
function Zn(e, t, n, r, o, i, a, s, d, u, h) {
|
|
3238
|
+
for (var m = o - 1, p = o === 0 ? i : [""], v = On(p), y = 0, l = 0, f = 0; y < r; ++y)
|
|
3239
|
+
for (var b = 0, _ = lt(e, m + 1, m = ps(l = a[y])), x = e; b < v; ++b)
|
|
3240
|
+
(x = Qr(l > 0 ? p[b] + " " + _ : $(_, /&\f/g, p[b]))) && (d[f++] = x);
|
|
3241
|
+
return qt(e, t, n, o === 0 ? kn : s, d, u, h);
|
|
3266
3242
|
}
|
|
3267
3243
|
function Ns(e, t, n) {
|
|
3268
3244
|
return qt(e, t, n, En, Ut(xs()), lt(e, 2, -2), 0);
|
|
@@ -3341,8 +3317,8 @@ var Ms = function(t, n, r) {
|
|
|
3341
3317
|
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Xn.get(r)) && !o) {
|
|
3342
3318
|
Xn.set(t, !0);
|
|
3343
3319
|
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[
|
|
3320
|
+
for (var h = 0; h < s.length; h++, u++)
|
|
3321
|
+
t.props[u] = i[d] ? a[d].replace(/&\f/g, s[h]) : s[h] + " " + a[d];
|
|
3346
3322
|
}
|
|
3347
3323
|
}
|
|
3348
3324
|
}, Rs = function(t) {
|
|
@@ -3372,8 +3348,8 @@ var Ms = function(t, n, r) {
|
|
|
3372
3348
|
break;
|
|
3373
3349
|
}
|
|
3374
3350
|
}
|
|
3375
|
-
i.forEach(function(
|
|
3376
|
-
console.error('The pseudo class "' +
|
|
3351
|
+
i.forEach(function(h) {
|
|
3352
|
+
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
3353
|
});
|
|
3378
3354
|
}
|
|
3379
3355
|
}
|
|
@@ -3543,8 +3519,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3543
3519
|
if (n === "css") {
|
|
3544
3520
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
3545
3521
|
Array.prototype.forEach.call(r, function(l) {
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3522
|
+
var f = l.getAttribute("data-emotion");
|
|
3523
|
+
f.indexOf(" ") !== -1 && (document.head.appendChild(l), l.setAttribute("data-s", ""));
|
|
3548
3524
|
});
|
|
3549
3525
|
}
|
|
3550
3526
|
var o = t.stylisPlugins || Hs;
|
|
@@ -3556,8 +3532,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3556
3532
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
3557
3533
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
3558
3534
|
function(l) {
|
|
3559
|
-
for (var
|
|
3560
|
-
i[
|
|
3535
|
+
for (var f = l.getAttribute("data-emotion").split(" "), b = 1; b < f.length; b++)
|
|
3536
|
+
i[f[b]] = !0;
|
|
3561
3537
|
s.push(l);
|
|
3562
3538
|
}
|
|
3563
3539
|
);
|
|
@@ -3568,19 +3544,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
3568
3544
|
}
|
|
3569
3545
|
}), js);
|
|
3570
3546
|
{
|
|
3571
|
-
var
|
|
3572
|
-
l.root || (l.return ?
|
|
3547
|
+
var h, m = [Os, process.env.NODE_ENV !== "production" ? function(l) {
|
|
3548
|
+
l.root || (l.return ? h.insert(l.return) : l.value && l.type !== En && h.insert(l.value + "{}"));
|
|
3573
3549
|
} : Is(function(l) {
|
|
3574
|
-
|
|
3575
|
-
})], p = Ts(u.concat(o,
|
|
3576
|
-
return Ge(ks(
|
|
3550
|
+
h.insert(l);
|
|
3551
|
+
})], p = Ts(u.concat(o, m)), v = function(f) {
|
|
3552
|
+
return Ge(ks(f), p);
|
|
3577
3553
|
};
|
|
3578
|
-
d = function(
|
|
3579
|
-
|
|
3554
|
+
d = function(f, b, _, x) {
|
|
3555
|
+
h = _, process.env.NODE_ENV !== "production" && b.map !== void 0 && (h = {
|
|
3580
3556
|
insert: function(g) {
|
|
3581
3557
|
_.insert(g + b.map);
|
|
3582
3558
|
}
|
|
3583
|
-
}), v(
|
|
3559
|
+
}), v(f ? f + "{" + b.styles + "}" : b.styles), x && (y.inserted[b.name] = !0);
|
|
3584
3560
|
};
|
|
3585
3561
|
}
|
|
3586
3562
|
var y = {
|
|
@@ -3613,7 +3589,7 @@ function Bs() {
|
|
|
3613
3589
|
if (er)
|
|
3614
3590
|
return R;
|
|
3615
3591
|
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,
|
|
3592
|
+
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
3593
|
function x(g) {
|
|
3618
3594
|
if (typeof g == "object" && g !== null) {
|
|
3619
3595
|
var w = g.$$typeof;
|
|
@@ -3625,12 +3601,12 @@ function Bs() {
|
|
|
3625
3601
|
case r:
|
|
3626
3602
|
case i:
|
|
3627
3603
|
case o:
|
|
3628
|
-
case
|
|
3604
|
+
case m:
|
|
3629
3605
|
return g;
|
|
3630
3606
|
default:
|
|
3631
3607
|
switch (g = g && g.$$typeof, g) {
|
|
3632
3608
|
case s:
|
|
3633
|
-
case
|
|
3609
|
+
case h:
|
|
3634
3610
|
case y:
|
|
3635
3611
|
case v:
|
|
3636
3612
|
case a:
|
|
@@ -3647,7 +3623,7 @@ function Bs() {
|
|
|
3647
3623
|
function S(g) {
|
|
3648
3624
|
return x(g) === u;
|
|
3649
3625
|
}
|
|
3650
|
-
return R.AsyncMode = d, R.ConcurrentMode = u, R.ContextConsumer = s, R.ContextProvider = a, R.Element = t, R.ForwardRef =
|
|
3626
|
+
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
3627
|
return S(g) || x(g) === d;
|
|
3652
3628
|
}, R.isConcurrentMode = S, R.isContextConsumer = function(g) {
|
|
3653
3629
|
return x(g) === s;
|
|
@@ -3656,7 +3632,7 @@ function Bs() {
|
|
|
3656
3632
|
}, R.isElement = function(g) {
|
|
3657
3633
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
3658
3634
|
}, R.isForwardRef = function(g) {
|
|
3659
|
-
return x(g) ===
|
|
3635
|
+
return x(g) === h;
|
|
3660
3636
|
}, R.isFragment = function(g) {
|
|
3661
3637
|
return x(g) === r;
|
|
3662
3638
|
}, R.isLazy = function(g) {
|
|
@@ -3670,9 +3646,9 @@ function Bs() {
|
|
|
3670
3646
|
}, R.isStrictMode = function(g) {
|
|
3671
3647
|
return x(g) === o;
|
|
3672
3648
|
}, R.isSuspense = function(g) {
|
|
3673
|
-
return x(g) ===
|
|
3649
|
+
return x(g) === m;
|
|
3674
3650
|
}, R.isValidElementType = function(g) {
|
|
3675
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === i || g === o || g ===
|
|
3651
|
+
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
3652
|
}, R.typeOf = x, R;
|
|
3677
3653
|
}
|
|
3678
3654
|
var D = {};
|
|
@@ -3687,10 +3663,10 @@ var D = {};
|
|
|
3687
3663
|
var tr;
|
|
3688
3664
|
function Ws() {
|
|
3689
3665
|
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,
|
|
3666
|
+
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
3667
|
function x(E) {
|
|
3692
3668
|
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 ===
|
|
3669
|
+
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
3670
|
}
|
|
3695
3671
|
function S(E) {
|
|
3696
3672
|
if (typeof E == "object" && E !== null) {
|
|
@@ -3704,13 +3680,13 @@ function Ws() {
|
|
|
3704
3680
|
case r:
|
|
3705
3681
|
case i:
|
|
3706
3682
|
case o:
|
|
3707
|
-
case
|
|
3683
|
+
case m:
|
|
3708
3684
|
return k;
|
|
3709
3685
|
default:
|
|
3710
3686
|
var Fe = k && k.$$typeof;
|
|
3711
3687
|
switch (Fe) {
|
|
3712
3688
|
case s:
|
|
3713
|
-
case
|
|
3689
|
+
case h:
|
|
3714
3690
|
case y:
|
|
3715
3691
|
case v:
|
|
3716
3692
|
case a:
|
|
@@ -3724,7 +3700,7 @@ function Ws() {
|
|
|
3724
3700
|
}
|
|
3725
3701
|
}
|
|
3726
3702
|
}
|
|
3727
|
-
var g = d, w = u, C = s, T = a, O = t, V =
|
|
3703
|
+
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
3704
|
function le(E) {
|
|
3729
3705
|
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
3706
|
}
|
|
@@ -3741,7 +3717,7 @@ function Ws() {
|
|
|
3741
3717
|
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
3742
3718
|
}
|
|
3743
3719
|
function _e(E) {
|
|
3744
|
-
return S(E) ===
|
|
3720
|
+
return S(E) === h;
|
|
3745
3721
|
}
|
|
3746
3722
|
function ze(E) {
|
|
3747
3723
|
return S(E) === r;
|
|
@@ -3762,7 +3738,7 @@ function Ws() {
|
|
|
3762
3738
|
return S(E) === o;
|
|
3763
3739
|
}
|
|
3764
3740
|
function nn(E) {
|
|
3765
|
-
return S(E) ===
|
|
3741
|
+
return S(E) === m;
|
|
3766
3742
|
}
|
|
3767
3743
|
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
3744
|
}()), D;
|
|
@@ -3958,7 +3934,7 @@ function dt(e, t, n) {
|
|
|
3958
3934
|
}
|
|
3959
3935
|
case "string":
|
|
3960
3936
|
if (process.env.NODE_ENV !== "production") {
|
|
3961
|
-
var s = [], d = n.replace(lo, function(
|
|
3937
|
+
var s = [], d = n.replace(lo, function(h, m, p) {
|
|
3962
3938
|
var v = "animation" + s.length;
|
|
3963
3939
|
return s.push("const " + v + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + v + "}";
|
|
3964
3940
|
});
|
|
@@ -4023,12 +3999,12 @@ var pe, Ze = function(t, n, r) {
|
|
|
4023
3999
|
process.env.NODE_ENV !== "production" && (i = i.replace(uo, function(p) {
|
|
4024
4000
|
return d = p, "";
|
|
4025
4001
|
})), ir.lastIndex = 0;
|
|
4026
|
-
for (var u = "",
|
|
4002
|
+
for (var u = "", h; (h = ir.exec(i)) !== null; )
|
|
4027
4003
|
u += "-" + // $FlowFixMe we know it's not null
|
|
4028
|
-
|
|
4029
|
-
var
|
|
4004
|
+
h[1];
|
|
4005
|
+
var m = Ks(i) + u;
|
|
4030
4006
|
return process.env.NODE_ENV !== "production" ? {
|
|
4031
|
-
name:
|
|
4007
|
+
name: m,
|
|
4032
4008
|
styles: i,
|
|
4033
4009
|
map: d,
|
|
4034
4010
|
next: pe,
|
|
@@ -4036,7 +4012,7 @@ var pe, Ze = function(t, n, r) {
|
|
|
4036
4012
|
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
4013
|
}
|
|
4038
4014
|
} : {
|
|
4039
|
-
name:
|
|
4015
|
+
name: m,
|
|
4040
4016
|
styles: i,
|
|
4041
4017
|
next: pe
|
|
4042
4018
|
};
|
|
@@ -4078,8 +4054,8 @@ var sr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", lr = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
4078
4054
|
}
|
|
4079
4055
|
a += t.key + "-" + s.name;
|
|
4080
4056
|
var u = {};
|
|
4081
|
-
for (var
|
|
4082
|
-
al.call(e,
|
|
4057
|
+
for (var h in e)
|
|
4058
|
+
al.call(e, h) && h !== "css" && h !== sr && (process.env.NODE_ENV === "production" || h !== lr) && (u[h] = e[h]);
|
|
4083
4059
|
return u.ref = n, u.className = a, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(ll, {
|
|
4084
4060
|
cache: t,
|
|
4085
4061
|
serialized: s,
|
|
@@ -4303,16 +4279,16 @@ var ml = function(t) {
|
|
|
4303
4279
|
var n = !1, r = [], o = function() {
|
|
4304
4280
|
if (n && process.env.NODE_ENV !== "production")
|
|
4305
4281
|
throw new Error("css can only be used during render");
|
|
4306
|
-
for (var u = arguments.length,
|
|
4307
|
-
|
|
4308
|
-
var p = Ze(
|
|
4282
|
+
for (var u = arguments.length, h = new Array(u), m = 0; m < u; m++)
|
|
4283
|
+
h[m] = arguments[m];
|
|
4284
|
+
var p = Ze(h, t.registered);
|
|
4309
4285
|
return r.push(p), Gt(t, p, !1), t.key + "-" + p.name;
|
|
4310
4286
|
}, i = function() {
|
|
4311
4287
|
if (n && process.env.NODE_ENV !== "production")
|
|
4312
4288
|
throw new Error("cx can only be used during render");
|
|
4313
|
-
for (var u = arguments.length,
|
|
4314
|
-
|
|
4315
|
-
return hl(t.registered, o, fl(
|
|
4289
|
+
for (var u = arguments.length, h = new Array(u), m = 0; m < u; m++)
|
|
4290
|
+
h[m] = arguments[m];
|
|
4291
|
+
return hl(t.registered, o, fl(h));
|
|
4316
4292
|
}, a = {
|
|
4317
4293
|
css: o,
|
|
4318
4294
|
cx: i,
|
|
@@ -4366,15 +4342,15 @@ You may have forgotten to import it.`);
|
|
|
4366
4342
|
n !== void 0 && (i = n.label, a = n.target);
|
|
4367
4343
|
var s = mr(t, n, r), d = s || hr(o), u = !d("as");
|
|
4368
4344
|
return function() {
|
|
4369
|
-
var
|
|
4370
|
-
if (i !== void 0 &&
|
|
4371
|
-
|
|
4345
|
+
var h = arguments, m = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
4346
|
+
if (i !== void 0 && m.push("label:" + i + ";"), h[0] == null || h[0].raw === void 0)
|
|
4347
|
+
m.push.apply(m, h);
|
|
4372
4348
|
else {
|
|
4373
|
-
process.env.NODE_ENV !== "production" &&
|
|
4374
|
-
for (var p =
|
|
4375
|
-
process.env.NODE_ENV !== "production" &&
|
|
4349
|
+
process.env.NODE_ENV !== "production" && h[0][0] === void 0 && console.error(pr), m.push(h[0][0]);
|
|
4350
|
+
for (var p = h.length, v = 1; v < p; v++)
|
|
4351
|
+
process.env.NODE_ENV !== "production" && h[0][v] === void 0 && console.error(pr), m.push(h[v], h[0][v]);
|
|
4376
4352
|
}
|
|
4377
|
-
var y = Zt(function(l,
|
|
4353
|
+
var y = Zt(function(l, f, b) {
|
|
4378
4354
|
var _ = u && l.as || o, x = "", S = [], g = l;
|
|
4379
4355
|
if (l.theme == null) {
|
|
4380
4356
|
g = {};
|
|
@@ -4382,27 +4358,27 @@ You may have forgotten to import it.`);
|
|
|
4382
4358
|
g[w] = l[w];
|
|
4383
4359
|
g.theme = j.useContext(Re);
|
|
4384
4360
|
}
|
|
4385
|
-
typeof l.className == "string" ? x = Tn(
|
|
4386
|
-
var C = Ze(
|
|
4387
|
-
x +=
|
|
4361
|
+
typeof l.className == "string" ? x = Tn(f.registered, S, l.className) : l.className != null && (x = l.className + " ");
|
|
4362
|
+
var C = Ze(m.concat(S), f.registered, g);
|
|
4363
|
+
x += f.key + "-" + C.name, a !== void 0 && (x += " " + a);
|
|
4388
4364
|
var T = u && s === void 0 ? hr(_) : d, O = {};
|
|
4389
4365
|
for (var V in l)
|
|
4390
4366
|
u && V === "as" || // $FlowFixMe
|
|
4391
4367
|
T(V) && (O[V] = l[V]);
|
|
4392
4368
|
return O.className = x, O.ref = b, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(bl, {
|
|
4393
|
-
cache:
|
|
4369
|
+
cache: f,
|
|
4394
4370
|
serialized: C,
|
|
4395
4371
|
isStringTag: typeof _ == "string"
|
|
4396
4372
|
}), /* @__PURE__ */ j.createElement(_, O));
|
|
4397
4373
|
});
|
|
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 =
|
|
4374
|
+
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
4375
|
value: function() {
|
|
4400
4376
|
return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a;
|
|
4401
4377
|
}
|
|
4402
|
-
}), y.withComponent = function(l,
|
|
4403
|
-
return e(l,
|
|
4404
|
-
shouldForwardProp: mr(y,
|
|
4405
|
-
})).apply(void 0,
|
|
4378
|
+
}), y.withComponent = function(l, f) {
|
|
4379
|
+
return e(l, F({}, n, f, {
|
|
4380
|
+
shouldForwardProp: mr(y, f, !0)
|
|
4381
|
+
})).apply(void 0, m);
|
|
4406
4382
|
}, y;
|
|
4407
4383
|
};
|
|
4408
4384
|
}, _l = [
|
|
@@ -4659,8 +4635,8 @@ function Al(e) {
|
|
|
4659
4635
|
let i;
|
|
4660
4636
|
return Array.isArray(t) ? i = [r, ...t] : typeof t == "function" ? i = (...a) => {
|
|
4661
4637
|
const s = t(...a);
|
|
4662
|
-
return Ne(s) ?
|
|
4663
|
-
} : i =
|
|
4638
|
+
return Ne(s) ? F({}, r, s) : r;
|
|
4639
|
+
} : i = F({}, r, t), F({}, o, {
|
|
4664
4640
|
sx: i
|
|
4665
4641
|
});
|
|
4666
4642
|
}
|
|
@@ -4672,7 +4648,7 @@ const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4672
4648
|
unstable_defaultSxConfig: mt
|
|
4673
4649
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4674
4650
|
function Rl(e, t) {
|
|
4675
|
-
return
|
|
4651
|
+
return F({
|
|
4676
4652
|
toolbar: {
|
|
4677
4653
|
minHeight: 56,
|
|
4678
4654
|
[e.up("xs")]: {
|
|
@@ -4790,7 +4766,7 @@ function wo(e) {
|
|
|
4790
4766
|
e = fe(e);
|
|
4791
4767
|
const {
|
|
4792
4768
|
values: t
|
|
4793
|
-
} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (u,
|
|
4769
|
+
} = 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
4770
|
let s = "rgb";
|
|
4795
4771
|
const d = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
|
|
4796
4772
|
return e.type === "hsla" && (s += "a", d.push(t[3])), Xe({
|
|
@@ -5114,28 +5090,28 @@ function f0(e) {
|
|
|
5114
5090
|
mode: t = "light",
|
|
5115
5091
|
contrastThreshold: n = 3,
|
|
5116
5092
|
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
|
|
5093
|
+
} = 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);
|
|
5094
|
+
function m(l) {
|
|
5095
|
+
const f = gr(l, on.text.primary) >= n ? on.text.primary : vr.text.primary;
|
|
5120
5096
|
if (process.env.NODE_ENV !== "production") {
|
|
5121
|
-
const b = gr(l,
|
|
5122
|
-
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${
|
|
5097
|
+
const b = gr(l, f);
|
|
5098
|
+
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
5099
|
`));
|
|
5124
5100
|
}
|
|
5125
|
-
return
|
|
5101
|
+
return f;
|
|
5126
5102
|
}
|
|
5127
5103
|
const p = ({
|
|
5128
5104
|
color: l,
|
|
5129
|
-
name:
|
|
5105
|
+
name: f,
|
|
5130
5106
|
mainShade: b = 500,
|
|
5131
5107
|
lightShade: _ = 300,
|
|
5132
5108
|
darkShade: x = 700
|
|
5133
5109
|
}) => {
|
|
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,
|
|
5110
|
+
if (l = F({}, l), !l.main && l[b] && (l.main = l[b]), !l.hasOwnProperty("main"))
|
|
5111
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${f ? ` (${f})` : ""} provided to augmentColor(color) is invalid.
|
|
5112
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.` : st(11, f ? ` (${f})` : "", b));
|
|
5137
5113
|
if (typeof l.main != "string")
|
|
5138
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
5114
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${f ? ` (${f})` : ""} provided to augmentColor(color) is invalid.
|
|
5139
5115
|
\`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
|
|
5140
5116
|
|
|
5141
5117
|
Did you intend to use one of the following approaches?
|
|
@@ -5148,15 +5124,15 @@ const theme1 = createTheme({ palette: {
|
|
|
5148
5124
|
|
|
5149
5125
|
const theme2 = createTheme({ palette: {
|
|
5150
5126
|
primary: { main: green[500] },
|
|
5151
|
-
} });` : st(12,
|
|
5152
|
-
return br(l, "light", _, r), br(l, "dark", x, r), l.contrastText || (l.contrastText =
|
|
5127
|
+
} });` : st(12, f ? ` (${f})` : "", JSON.stringify(l.main)));
|
|
5128
|
+
return br(l, "light", _, r), br(l, "dark", x, r), l.contrastText || (l.contrastText = m(l.main)), l;
|
|
5153
5129
|
}, v = {
|
|
5154
5130
|
dark: on,
|
|
5155
5131
|
light: vr
|
|
5156
5132
|
};
|
|
5157
|
-
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve(
|
|
5133
|
+
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve(F({
|
|
5158
5134
|
// A collection of common colors.
|
|
5159
|
-
common:
|
|
5135
|
+
common: F({}, ut),
|
|
5160
5136
|
// prevent mutable object.
|
|
5161
5137
|
// The palette mode, can be light or dark.
|
|
5162
5138
|
mode: t,
|
|
@@ -5180,7 +5156,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5180
5156
|
}),
|
|
5181
5157
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
5182
5158
|
warning: p({
|
|
5183
|
-
color:
|
|
5159
|
+
color: h,
|
|
5184
5160
|
name: "warning"
|
|
5185
5161
|
}),
|
|
5186
5162
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
@@ -5199,7 +5175,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5199
5175
|
// the background and the text.
|
|
5200
5176
|
contrastThreshold: n,
|
|
5201
5177
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
5202
|
-
getContrastText:
|
|
5178
|
+
getContrastText: m,
|
|
5203
5179
|
// Generate a rich color object.
|
|
5204
5180
|
augmentColor: p,
|
|
5205
5181
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -5229,11 +5205,11 @@ function p0(e, t) {
|
|
|
5229
5205
|
// 16px is the default font-size used by browsers.
|
|
5230
5206
|
htmlFontSize: u = 16,
|
|
5231
5207
|
// Apply the CSS properties to all the variants.
|
|
5232
|
-
allVariants:
|
|
5233
|
-
pxToRem:
|
|
5208
|
+
allVariants: h,
|
|
5209
|
+
pxToRem: m
|
|
5234
5210
|
} = n, p = Te(n, h0);
|
|
5235
5211
|
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 =
|
|
5212
|
+
const v = o / 14, y = m || ((b) => `${b / u * v}rem`), l = (b, _, x, S, g) => F({
|
|
5237
5213
|
fontFamily: r,
|
|
5238
5214
|
fontWeight: b,
|
|
5239
5215
|
fontSize: y(_),
|
|
@@ -5241,7 +5217,7 @@ function p0(e, t) {
|
|
|
5241
5217
|
lineHeight: x
|
|
5242
5218
|
}, r === _r ? {
|
|
5243
5219
|
letterSpacing: `${m0(S / _)}em`
|
|
5244
|
-
} : {}, g,
|
|
5220
|
+
} : {}, g, h), f = {
|
|
5245
5221
|
h1: l(i, 96, 1.167, -1.5),
|
|
5246
5222
|
h2: l(i, 60, 1.2, -0.5),
|
|
5247
5223
|
h3: l(a, 48, 1.167, 0),
|
|
@@ -5264,7 +5240,7 @@ function p0(e, t) {
|
|
|
5264
5240
|
letterSpacing: "inherit"
|
|
5265
5241
|
}
|
|
5266
5242
|
};
|
|
5267
|
-
return ve(
|
|
5243
|
+
return ve(F({
|
|
5268
5244
|
htmlFontSize: u,
|
|
5269
5245
|
pxToRem: y,
|
|
5270
5246
|
fontFamily: r,
|
|
@@ -5273,7 +5249,7 @@ function p0(e, t) {
|
|
|
5273
5249
|
fontWeightRegular: a,
|
|
5274
5250
|
fontWeightMedium: s,
|
|
5275
5251
|
fontWeightBold: d
|
|
5276
|
-
},
|
|
5252
|
+
}, f), p, {
|
|
5277
5253
|
clone: !1
|
|
5278
5254
|
// No need to clone deep
|
|
5279
5255
|
});
|
|
@@ -5315,8 +5291,8 @@ function C0(e) {
|
|
|
5315
5291
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
5316
5292
|
}
|
|
5317
5293
|
function E0(e) {
|
|
5318
|
-
const t =
|
|
5319
|
-
return
|
|
5294
|
+
const t = F({}, w0, e.easing), n = F({}, S0, e.duration);
|
|
5295
|
+
return F({
|
|
5320
5296
|
getAutoHeightDuration: C0,
|
|
5321
5297
|
create: (o = ["all"], i = {}) => {
|
|
5322
5298
|
const {
|
|
@@ -5325,11 +5301,11 @@ function E0(e) {
|
|
|
5325
5301
|
delay: d = 0
|
|
5326
5302
|
} = i, u = Te(i, _0);
|
|
5327
5303
|
if (process.env.NODE_ENV !== "production") {
|
|
5328
|
-
const
|
|
5329
|
-
!
|
|
5304
|
+
const h = (p) => typeof p == "string", m = (p) => !isNaN(parseFloat(p));
|
|
5305
|
+
!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
5306
|
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
5331
5307
|
}
|
|
5332
|
-
return (Array.isArray(o) ? o : [o]).map((
|
|
5308
|
+
return (Array.isArray(o) ? o : [o]).map((h) => `${h} ${typeof a == "string" ? a : wr(a)} ${s} ${typeof d == "string" ? d : wr(d)}`).join(",");
|
|
5333
5309
|
}
|
|
5334
5310
|
}, e, {
|
|
5335
5311
|
easing: t,
|
|
@@ -5363,19 +5339,19 @@ function T0(e = {}, ...t) {
|
|
|
5363
5339
|
shadows: x0.slice(),
|
|
5364
5340
|
typography: p0(s, i),
|
|
5365
5341
|
transitions: E0(o),
|
|
5366
|
-
zIndex:
|
|
5342
|
+
zIndex: F({}, N0)
|
|
5367
5343
|
});
|
|
5368
|
-
if (u = ve(u, a), u = t.reduce((
|
|
5369
|
-
const
|
|
5344
|
+
if (u = ve(u, a), u = t.reduce((h, m) => ve(h, m), u), process.env.NODE_ENV !== "production") {
|
|
5345
|
+
const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (p, v) => {
|
|
5370
5346
|
let y;
|
|
5371
5347
|
for (y in p) {
|
|
5372
5348
|
const l = p[y];
|
|
5373
|
-
if (
|
|
5349
|
+
if (h.indexOf(y) !== -1 && Object.keys(l).length > 0) {
|
|
5374
5350
|
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 '&.${
|
|
5351
|
+
const f = xn("", y);
|
|
5352
|
+
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
5353
|
root: {
|
|
5378
|
-
[`&.${
|
|
5354
|
+
[`&.${f}`]: l
|
|
5379
5355
|
}
|
|
5380
5356
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
5381
5357
|
`));
|
|
@@ -5386,12 +5362,12 @@ function T0(e = {}, ...t) {
|
|
|
5386
5362
|
};
|
|
5387
5363
|
Object.keys(u.components).forEach((p) => {
|
|
5388
5364
|
const v = u.components[p].styleOverrides;
|
|
5389
|
-
v && p.indexOf("Mui") === 0 &&
|
|
5365
|
+
v && p.indexOf("Mui") === 0 && m(v, p);
|
|
5390
5366
|
});
|
|
5391
5367
|
}
|
|
5392
|
-
return u.unstable_sxConfig =
|
|
5368
|
+
return u.unstable_sxConfig = F({}, mt, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
5393
5369
|
return Sn({
|
|
5394
|
-
sx:
|
|
5370
|
+
sx: m,
|
|
5395
5371
|
theme: this
|
|
5396
5372
|
});
|
|
5397
5373
|
}, u;
|
|
@@ -5485,8 +5461,8 @@ function Ot(e, t) {
|
|
|
5485
5461
|
let u = !0;
|
|
5486
5462
|
typeof d.props == "function" ? u = d.props((0, ce.default)({
|
|
5487
5463
|
ownerState: n
|
|
5488
|
-
}, r, n)) : Object.keys(d.props).forEach((
|
|
5489
|
-
(n == null ? void 0 : n[
|
|
5464
|
+
}, r, n)) : Object.keys(d.props).forEach((h) => {
|
|
5465
|
+
(n == null ? void 0 : n[h]) !== d.props[h] && r[h] !== d.props[h] && (u = !1);
|
|
5490
5466
|
}), u && (Array.isArray(s) || (s = [s]), s.push(typeof d.style == "function" ? d.style((0, ce.default)({
|
|
5491
5467
|
ownerState: n
|
|
5492
5468
|
}, r, n)) : d.style));
|
|
@@ -5511,23 +5487,23 @@ function tc(e = {}) {
|
|
|
5511
5487
|
const {
|
|
5512
5488
|
name: d,
|
|
5513
5489
|
slot: u,
|
|
5514
|
-
skipVariantsResolver:
|
|
5515
|
-
skipSx:
|
|
5490
|
+
skipVariantsResolver: h,
|
|
5491
|
+
skipSx: m,
|
|
5516
5492
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
5517
5493
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
5518
5494
|
overridesResolver: p = ec(Cr(u))
|
|
5519
|
-
} = s, v = (0, pn.default)(s, K0), y =
|
|
5495
|
+
} = s, v = (0, pn.default)(s, K0), y = h !== void 0 ? h : (
|
|
5520
5496
|
// TODO v6: remove `Root` in the next major release
|
|
5521
5497
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
5522
5498
|
u && u !== "Root" && u !== "root" || !1
|
|
5523
|
-
), l =
|
|
5524
|
-
let
|
|
5525
|
-
process.env.NODE_ENV !== "production" && d && (
|
|
5499
|
+
), l = m || !1;
|
|
5500
|
+
let f;
|
|
5501
|
+
process.env.NODE_ENV !== "production" && d && (f = `${d}-${Cr(u || "Root")}`);
|
|
5526
5502
|
let b = Nt;
|
|
5527
5503
|
u === "Root" || u === "root" ? b = r : u ? b = o : X0(a) && (b = void 0);
|
|
5528
5504
|
const _ = (0, Sr.default)(a, (0, ce.default)({
|
|
5529
5505
|
shouldForwardProp: b,
|
|
5530
|
-
label:
|
|
5506
|
+
label: f
|
|
5531
5507
|
}, v)), x = (g) => typeof g == "function" && g.__emotion_real !== g || (0, H0.isPlainObject)(g) ? (w) => Ot(g, (0, ce.default)({}, w, {
|
|
5532
5508
|
theme: wt({
|
|
5533
5509
|
theme: w.theme,
|
|
@@ -5608,7 +5584,7 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5608
5584
|
theme: e,
|
|
5609
5585
|
ownerState: t
|
|
5610
5586
|
}) => {
|
|
5611
|
-
var n, r, o, i, a, s, d, u,
|
|
5587
|
+
var n, r, o, i, a, s, d, u, h, m, p, v, y;
|
|
5612
5588
|
return {
|
|
5613
5589
|
userSelect: "none",
|
|
5614
5590
|
width: "1em",
|
|
@@ -5625,10 +5601,10 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5625
5601
|
inherit: "inherit",
|
|
5626
5602
|
small: ((i = e.typography) == null || (a = i.pxToRem) == null ? void 0 : a.call(i, 20)) || "1.25rem",
|
|
5627
5603
|
medium: ((s = e.typography) == null || (d = s.pxToRem) == null ? void 0 : d.call(s, 24)) || "1.5rem",
|
|
5628
|
-
large: ((u = e.typography) == null || (
|
|
5604
|
+
large: ((u = e.typography) == null || (h = u.pxToRem) == null ? void 0 : h.call(u, 35)) || "2.1875rem"
|
|
5629
5605
|
}[t.fontSize],
|
|
5630
5606
|
// TODO v5 deprecate, v6 remove for sx
|
|
5631
|
-
color: (
|
|
5607
|
+
color: (m = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? m : {
|
|
5632
5608
|
action: (v = (e.vars || e).palette) == null || (v = v.action) == null ? void 0 : v.active,
|
|
5633
5609
|
disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
|
|
5634
5610
|
inherit: void 0
|
|
@@ -5645,32 +5621,32 @@ const ac = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5645
5621
|
component: s = "svg",
|
|
5646
5622
|
fontSize: d = "medium",
|
|
5647
5623
|
htmlColor: u,
|
|
5648
|
-
inheritViewBox:
|
|
5649
|
-
titleAccess:
|
|
5624
|
+
inheritViewBox: h = !1,
|
|
5625
|
+
titleAccess: m,
|
|
5650
5626
|
viewBox: p = "0 0 24 24"
|
|
5651
|
-
} = r, v = Te(r, ac), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l =
|
|
5627
|
+
} = r, v = Te(r, ac), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l = F({}, r, {
|
|
5652
5628
|
color: a,
|
|
5653
5629
|
component: s,
|
|
5654
5630
|
fontSize: d,
|
|
5655
5631
|
instanceFontSize: t.fontSize,
|
|
5656
|
-
inheritViewBox:
|
|
5632
|
+
inheritViewBox: h,
|
|
5657
5633
|
viewBox: p,
|
|
5658
5634
|
hasSvgAsChild: y
|
|
5659
|
-
}),
|
|
5660
|
-
|
|
5635
|
+
}), f = {};
|
|
5636
|
+
h || (f.viewBox = p);
|
|
5661
5637
|
const b = sc(l);
|
|
5662
|
-
return /* @__PURE__ */ N(lc,
|
|
5638
|
+
return /* @__PURE__ */ N(lc, F({
|
|
5663
5639
|
as: s,
|
|
5664
5640
|
className: qo(b.root, i),
|
|
5665
5641
|
focusable: "false",
|
|
5666
5642
|
color: u,
|
|
5667
|
-
"aria-hidden":
|
|
5668
|
-
role:
|
|
5643
|
+
"aria-hidden": m ? void 0 : !0,
|
|
5644
|
+
role: m ? "img" : void 0,
|
|
5669
5645
|
ref: n
|
|
5670
|
-
},
|
|
5646
|
+
}, f, v, y && o.props, {
|
|
5671
5647
|
ownerState: l,
|
|
5672
|
-
children: [y ? o.props.children : o,
|
|
5673
|
-
children:
|
|
5648
|
+
children: [y ? o.props.children : o, m ? /* @__PURE__ */ c("title", {
|
|
5649
|
+
children: m
|
|
5674
5650
|
}) : null]
|
|
5675
5651
|
}));
|
|
5676
5652
|
});
|
|
@@ -5750,7 +5726,7 @@ Dn.muiName = "SvgIcon";
|
|
|
5750
5726
|
const Er = Dn;
|
|
5751
5727
|
function cc(e, t) {
|
|
5752
5728
|
function n(r, o) {
|
|
5753
|
-
return /* @__PURE__ */ c(Er,
|
|
5729
|
+
return /* @__PURE__ */ c(Er, F({
|
|
5754
5730
|
"data-testid": `${t}Icon`,
|
|
5755
5731
|
ref: o
|
|
5756
5732
|
}, r, {
|
|
@@ -5828,37 +5804,37 @@ var pc = 150, gc = function(t, n) {
|
|
|
5828
5804
|
}, Tt = null, It = null;
|
|
5829
5805
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Tt = /* @__PURE__ */ new WeakSet(), It = /* @__PURE__ */ new WeakSet());
|
|
5830
5806
|
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,
|
|
5807
|
+
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;
|
|
5808
|
+
return t = /* @__PURE__ */ function(m) {
|
|
5809
|
+
Go(p, m);
|
|
5834
5810
|
function p(y) {
|
|
5835
5811
|
var l;
|
|
5836
|
-
return l =
|
|
5812
|
+
return l = m.call(this, y) || this, l._instanceProps = d(l.props, Ln(l)), l._outerRef = void 0, l._resetIsScrollingTimeoutId = null, l.state = {
|
|
5837
5813
|
instance: Ln(l),
|
|
5838
5814
|
isScrolling: !1,
|
|
5839
5815
|
scrollDirection: "forward",
|
|
5840
5816
|
scrollOffset: typeof l.props.initialScrollOffset == "number" ? l.props.initialScrollOffset : 0,
|
|
5841
5817
|
scrollUpdateWasRequested: !1
|
|
5842
|
-
}, l._callOnItemsRendered = void 0, l._callOnItemsRendered = an(function(
|
|
5818
|
+
}, l._callOnItemsRendered = void 0, l._callOnItemsRendered = an(function(f, b, _, x) {
|
|
5843
5819
|
return l.props.onItemsRendered({
|
|
5844
|
-
overscanStartIndex:
|
|
5820
|
+
overscanStartIndex: f,
|
|
5845
5821
|
overscanStopIndex: b,
|
|
5846
5822
|
visibleStartIndex: _,
|
|
5847
5823
|
visibleStopIndex: x
|
|
5848
5824
|
});
|
|
5849
|
-
}), l._callOnScroll = void 0, l._callOnScroll = an(function(
|
|
5825
|
+
}), l._callOnScroll = void 0, l._callOnScroll = an(function(f, b, _) {
|
|
5850
5826
|
return l.props.onScroll({
|
|
5851
|
-
scrollDirection:
|
|
5827
|
+
scrollDirection: f,
|
|
5852
5828
|
scrollOffset: b,
|
|
5853
5829
|
scrollUpdateWasRequested: _
|
|
5854
5830
|
});
|
|
5855
|
-
}), l._getItemStyle = void 0, l._getItemStyle = function(
|
|
5831
|
+
}), l._getItemStyle = void 0, l._getItemStyle = function(f) {
|
|
5856
5832
|
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[
|
|
5833
|
+
if (g.hasOwnProperty(f))
|
|
5834
|
+
w = g[f];
|
|
5859
5835
|
else {
|
|
5860
|
-
var C = n(l.props,
|
|
5861
|
-
g[
|
|
5836
|
+
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;
|
|
5837
|
+
g[f] = w = {
|
|
5862
5838
|
position: "absolute",
|
|
5863
5839
|
left: V ? void 0 : z,
|
|
5864
5840
|
right: V ? z : void 0,
|
|
@@ -5868,10 +5844,10 @@ function yc(e) {
|
|
|
5868
5844
|
};
|
|
5869
5845
|
}
|
|
5870
5846
|
return w;
|
|
5871
|
-
}, l._getItemStyleCache = void 0, l._getItemStyleCache = an(function(
|
|
5847
|
+
}, l._getItemStyleCache = void 0, l._getItemStyleCache = an(function(f, b, _) {
|
|
5872
5848
|
return {};
|
|
5873
|
-
}), l._onScrollHorizontal = function(
|
|
5874
|
-
var b =
|
|
5849
|
+
}), l._onScrollHorizontal = function(f) {
|
|
5850
|
+
var b = f.currentTarget, _ = b.clientWidth, x = b.scrollLeft, S = b.scrollWidth;
|
|
5875
5851
|
l.setState(function(g) {
|
|
5876
5852
|
if (g.scrollOffset === x)
|
|
5877
5853
|
return null;
|
|
@@ -5892,8 +5868,8 @@ function yc(e) {
|
|
|
5892
5868
|
scrollUpdateWasRequested: !1
|
|
5893
5869
|
};
|
|
5894
5870
|
}, l._resetIsScrollingDebounced);
|
|
5895
|
-
}, l._onScrollVertical = function(
|
|
5896
|
-
var b =
|
|
5871
|
+
}, l._onScrollVertical = function(f) {
|
|
5872
|
+
var b = f.currentTarget, _ = b.clientHeight, x = b.scrollHeight, S = b.scrollTop;
|
|
5897
5873
|
l.setState(function(g) {
|
|
5898
5874
|
if (g.scrollOffset === S)
|
|
5899
5875
|
return null;
|
|
@@ -5905,9 +5881,9 @@ function yc(e) {
|
|
|
5905
5881
|
scrollUpdateWasRequested: !1
|
|
5906
5882
|
};
|
|
5907
5883
|
}, l._resetIsScrollingDebounced);
|
|
5908
|
-
}, l._outerRefSetter = function(
|
|
5884
|
+
}, l._outerRefSetter = function(f) {
|
|
5909
5885
|
var b = l.props.outerRef;
|
|
5910
|
-
l._outerRef =
|
|
5886
|
+
l._outerRef = f, typeof b == "function" ? b(f) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = f);
|
|
5911
5887
|
}, l._resetIsScrollingDebounced = function() {
|
|
5912
5888
|
l._resetIsScrollingTimeoutId !== null && Or(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = mc(l._resetIsScrolling, pc);
|
|
5913
5889
|
}, l._resetIsScrolling = function() {
|
|
@@ -5918,20 +5894,20 @@ function yc(e) {
|
|
|
5918
5894
|
});
|
|
5919
5895
|
}, l;
|
|
5920
5896
|
}
|
|
5921
|
-
p.getDerivedStateFromProps = function(l,
|
|
5922
|
-
return vc(l,
|
|
5897
|
+
p.getDerivedStateFromProps = function(l, f) {
|
|
5898
|
+
return vc(l, f), h(l), null;
|
|
5923
5899
|
};
|
|
5924
5900
|
var v = p.prototype;
|
|
5925
5901
|
return v.scrollTo = function(l) {
|
|
5926
|
-
l = Math.max(0, l), this.setState(function(
|
|
5927
|
-
return
|
|
5928
|
-
scrollDirection:
|
|
5902
|
+
l = Math.max(0, l), this.setState(function(f) {
|
|
5903
|
+
return f.scrollOffset === l ? null : {
|
|
5904
|
+
scrollDirection: f.scrollOffset < l ? "forward" : "backward",
|
|
5929
5905
|
scrollOffset: l,
|
|
5930
5906
|
scrollUpdateWasRequested: !0
|
|
5931
5907
|
};
|
|
5932
5908
|
}, this._resetIsScrollingDebounced);
|
|
5933
|
-
}, v.scrollToItem = function(l,
|
|
5934
|
-
|
|
5909
|
+
}, v.scrollToItem = function(l, f) {
|
|
5910
|
+
f === void 0 && (f = "auto");
|
|
5935
5911
|
var b = this.props, _ = b.itemCount, x = b.layout, S = this.state.scrollOffset;
|
|
5936
5912
|
l = Math.max(0, Math.min(l, _ - 1));
|
|
5937
5913
|
var g = 0;
|
|
@@ -5939,20 +5915,20 @@ function yc(e) {
|
|
|
5939
5915
|
var w = this._outerRef;
|
|
5940
5916
|
x === "vertical" ? g = w.scrollWidth > w.clientWidth ? Tr() : 0 : g = w.scrollHeight > w.clientHeight ? Tr() : 0;
|
|
5941
5917
|
}
|
|
5942
|
-
this.scrollTo(i(this.props, l,
|
|
5918
|
+
this.scrollTo(i(this.props, l, f, S, this._instanceProps, g));
|
|
5943
5919
|
}, v.componentDidMount = function() {
|
|
5944
|
-
var l = this.props,
|
|
5920
|
+
var l = this.props, f = l.direction, b = l.initialScrollOffset, _ = l.layout;
|
|
5945
5921
|
if (typeof b == "number" && this._outerRef != null) {
|
|
5946
5922
|
var x = this._outerRef;
|
|
5947
|
-
|
|
5923
|
+
f === "horizontal" || _ === "horizontal" ? x.scrollLeft = b : x.scrollTop = b;
|
|
5948
5924
|
}
|
|
5949
5925
|
this._callPropsCallbacks();
|
|
5950
5926
|
}, v.componentDidUpdate = function() {
|
|
5951
|
-
var l = this.props,
|
|
5927
|
+
var l = this.props, f = l.direction, b = l.layout, _ = this.state, x = _.scrollOffset, S = _.scrollUpdateWasRequested;
|
|
5952
5928
|
if (S && this._outerRef != null) {
|
|
5953
5929
|
var g = this._outerRef;
|
|
5954
|
-
if (
|
|
5955
|
-
if (
|
|
5930
|
+
if (f === "horizontal" || b === "horizontal")
|
|
5931
|
+
if (f === "rtl")
|
|
5956
5932
|
switch (Ir()) {
|
|
5957
5933
|
case "negative":
|
|
5958
5934
|
g.scrollLeft = -x;
|
|
@@ -5974,10 +5950,10 @@ function yc(e) {
|
|
|
5974
5950
|
}, v.componentWillUnmount = function() {
|
|
5975
5951
|
this._resetIsScrollingTimeoutId !== null && Or(this._resetIsScrollingTimeoutId);
|
|
5976
5952
|
}, v.render = function() {
|
|
5977
|
-
var l = this.props,
|
|
5953
|
+
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
5954
|
if (C > 0)
|
|
5979
5955
|
for (var _e = et; _e <= tt; _e++)
|
|
5980
|
-
De.push(St(
|
|
5956
|
+
De.push(St(f, {
|
|
5981
5957
|
data: T,
|
|
5982
5958
|
key: V(_e, T),
|
|
5983
5959
|
index: _e,
|
|
@@ -5989,7 +5965,7 @@ function yc(e) {
|
|
|
5989
5965
|
className: b,
|
|
5990
5966
|
onScroll: le,
|
|
5991
5967
|
ref: this._outerRefSetter,
|
|
5992
|
-
style:
|
|
5968
|
+
style: F({
|
|
5993
5969
|
position: "relative",
|
|
5994
5970
|
height: x,
|
|
5995
5971
|
width: te,
|
|
@@ -6011,7 +5987,7 @@ function yc(e) {
|
|
|
6011
5987
|
if (typeof this.props.onItemsRendered == "function") {
|
|
6012
5988
|
var l = this.props.itemCount;
|
|
6013
5989
|
if (l > 0) {
|
|
6014
|
-
var
|
|
5990
|
+
var f = this._getRangeToRender(), b = f[0], _ = f[1], x = f[2], S = f[3];
|
|
6015
5991
|
this._callOnItemsRendered(b, _, x, S);
|
|
6016
5992
|
}
|
|
6017
5993
|
}
|
|
@@ -6020,11 +5996,11 @@ function yc(e) {
|
|
|
6020
5996
|
this._callOnScroll(w, C, T);
|
|
6021
5997
|
}
|
|
6022
5998
|
}, v._getRangeToRender = function() {
|
|
6023
|
-
var l = this.props,
|
|
6024
|
-
if (
|
|
5999
|
+
var l = this.props, f = l.itemCount, b = l.overscanCount, _ = this.state, x = _.isScrolling, S = _.scrollDirection, g = _.scrollOffset;
|
|
6000
|
+
if (f === 0)
|
|
6025
6001
|
return [0, 0, 0, 0];
|
|
6026
6002
|
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(
|
|
6003
|
+
return [Math.max(0, w - T), Math.max(0, Math.min(f - 1, C + O)), w, C];
|
|
6028
6004
|
}, p;
|
|
6029
6005
|
}($o), t.defaultProps = {
|
|
6030
6006
|
direction: "ltr",
|
|
@@ -6035,14 +6011,14 @@ function yc(e) {
|
|
|
6035
6011
|
}, t;
|
|
6036
6012
|
}
|
|
6037
6013
|
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,
|
|
6014
|
+
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
6015
|
if (process.env.NODE_ENV !== "production") {
|
|
6040
|
-
(s != null || d != null) && It && !It.has(
|
|
6041
|
-
var
|
|
6016
|
+
(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."));
|
|
6017
|
+
var m = o === "horizontal" || a === "horizontal";
|
|
6042
6018
|
switch (o) {
|
|
6043
6019
|
case "horizontal":
|
|
6044
6020
|
case "vertical":
|
|
6045
|
-
Tt && !Tt.has(
|
|
6021
|
+
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
6022
|
break;
|
|
6047
6023
|
case "ltr":
|
|
6048
6024
|
case "rtl":
|
|
@@ -6059,9 +6035,9 @@ var vc = function(t, n) {
|
|
|
6059
6035
|
}
|
|
6060
6036
|
if (r == null)
|
|
6061
6037
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
|
|
6062
|
-
if (
|
|
6038
|
+
if (m && typeof u != "number")
|
|
6063
6039
|
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 (!
|
|
6040
|
+
if (!m && typeof i != "number")
|
|
6065
6041
|
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
6042
|
}
|
|
6067
6043
|
}, bc = 50, Ue = function(t, n, r) {
|
|
@@ -6072,12 +6048,12 @@ var vc = function(t, n) {
|
|
|
6072
6048
|
var u = a[s];
|
|
6073
6049
|
d = u.offset + u.size;
|
|
6074
6050
|
}
|
|
6075
|
-
for (var
|
|
6076
|
-
var
|
|
6077
|
-
a[
|
|
6051
|
+
for (var h = s + 1; h <= n; h++) {
|
|
6052
|
+
var m = i(h);
|
|
6053
|
+
a[h] = {
|
|
6078
6054
|
offset: d,
|
|
6079
|
-
size:
|
|
6080
|
-
}, d +=
|
|
6055
|
+
size: m
|
|
6056
|
+
}, d += m;
|
|
6081
6057
|
}
|
|
6082
6058
|
r.lastMeasuredIndex = n;
|
|
6083
6059
|
}
|
|
@@ -6103,8 +6079,8 @@ var vc = function(t, n) {
|
|
|
6103
6079
|
var d = o[a];
|
|
6104
6080
|
s = d.offset + d.size;
|
|
6105
6081
|
}
|
|
6106
|
-
var u = r - a - 1,
|
|
6107
|
-
return s +
|
|
6082
|
+
var u = r - a - 1, h = u * i;
|
|
6083
|
+
return s + h;
|
|
6108
6084
|
}, wc = /* @__PURE__ */ yc({
|
|
6109
6085
|
getItemOffset: function(t, n, r) {
|
|
6110
6086
|
return Ue(t, n, r).offset;
|
|
@@ -6114,24 +6090,24 @@ var vc = function(t, n) {
|
|
|
6114
6090
|
},
|
|
6115
6091
|
getEstimatedTotalSize: Mr,
|
|
6116
6092
|
getOffsetForIndexAndAlignment: function(t, n, r, o, i, a) {
|
|
6117
|
-
var s = t.direction, d = t.height, u = t.layout,
|
|
6118
|
-
switch (r === "smart" && (o >=
|
|
6093
|
+
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);
|
|
6094
|
+
switch (r === "smart" && (o >= f - p && o <= l + p ? r = "auto" : r = "center"), r) {
|
|
6119
6095
|
case "start":
|
|
6120
6096
|
return l;
|
|
6121
6097
|
case "end":
|
|
6122
|
-
return
|
|
6098
|
+
return f;
|
|
6123
6099
|
case "center":
|
|
6124
|
-
return Math.round(
|
|
6100
|
+
return Math.round(f + (l - f) / 2);
|
|
6125
6101
|
case "auto":
|
|
6126
6102
|
default:
|
|
6127
|
-
return o >=
|
|
6103
|
+
return o >= f && o <= l ? o : o < f ? f : l;
|
|
6128
6104
|
}
|
|
6129
6105
|
},
|
|
6130
6106
|
getStartIndexForOffset: function(t, n, r) {
|
|
6131
6107
|
return xc(t, r, n);
|
|
6132
6108
|
},
|
|
6133
6109
|
getStopIndexForStartIndex: function(t, n, r, o) {
|
|
6134
|
-
for (var i = t.direction, a = t.height, s = t.itemCount, d = t.layout, u = t.width,
|
|
6110
|
+
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
6111
|
l++, y += Ue(t, l, o).size;
|
|
6136
6112
|
return l;
|
|
6137
6113
|
},
|
|
@@ -6191,16 +6167,16 @@ const Dt = 37, Sc = (e, t) => {
|
|
|
6191
6167
|
return document.body.removeChild(a), s > 21 ? Dt + 21 : Dt;
|
|
6192
6168
|
};
|
|
6193
6169
|
function e1(e) {
|
|
6194
|
-
const [t, n] =
|
|
6170
|
+
const [t, n] = L(!1), [r, o] = L(""), [i, a] = L(""), [s, d] = L(!1), { isRequired: u = !1 } = e, h = Ye(
|
|
6195
6171
|
ln.debounce((w) => {
|
|
6196
6172
|
var C;
|
|
6197
6173
|
(C = e.handleChangeSearch) == null || C.call(e, w);
|
|
6198
6174
|
}, 300),
|
|
6199
6175
|
[e.handleChangeSearch]
|
|
6200
|
-
),
|
|
6176
|
+
), m = () => {
|
|
6201
6177
|
n(!t);
|
|
6202
6178
|
}, p = () => {
|
|
6203
|
-
n(!1), a(""),
|
|
6179
|
+
n(!1), a(""), h("");
|
|
6204
6180
|
};
|
|
6205
6181
|
Q(() => {
|
|
6206
6182
|
o(e.value ? e.getOptionLabel(e.value) : "");
|
|
@@ -6209,8 +6185,8 @@ function e1(e) {
|
|
|
6209
6185
|
}, [t]), Q(() => {
|
|
6210
6186
|
d(e.searchLoading);
|
|
6211
6187
|
}, [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),
|
|
6188
|
+
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) => {
|
|
6189
|
+
o(w.target.value), t && (a(w.target.value), h(w.target.value), d(!0));
|
|
6214
6190
|
}, x = ue(null), S = ue(null), g = ue(null);
|
|
6215
6191
|
return Q(() => {
|
|
6216
6192
|
var w, C, T, O;
|
|
@@ -6269,7 +6245,7 @@ function e1(e) {
|
|
|
6269
6245
|
},
|
|
6270
6246
|
onClick: (w) => {
|
|
6271
6247
|
var C;
|
|
6272
|
-
w.preventDefault(), w.stopPropagation(),
|
|
6248
|
+
w.preventDefault(), w.stopPropagation(), m(), (C = x.current) == null || C.focus();
|
|
6273
6249
|
},
|
|
6274
6250
|
disabled: e.loading || e.disabled || e.readOnly,
|
|
6275
6251
|
children: e.loading ? /* @__PURE__ */ c(li, { size: "16px" }) : /* @__PURE__ */ c(
|
|
@@ -6325,7 +6301,7 @@ function e1(e) {
|
|
|
6325
6301
|
{
|
|
6326
6302
|
isItemLoaded: b,
|
|
6327
6303
|
itemCount: l,
|
|
6328
|
-
loadMoreItems:
|
|
6304
|
+
loadMoreItems: f,
|
|
6329
6305
|
threshold: 5,
|
|
6330
6306
|
children: ({ onItemsRendered: w, ref: C }) => /* @__PURE__ */ c(
|
|
6331
6307
|
wc,
|
|
@@ -6425,25 +6401,25 @@ function e1(e) {
|
|
|
6425
6401
|
);
|
|
6426
6402
|
}
|
|
6427
6403
|
function t1(e) {
|
|
6428
|
-
var
|
|
6429
|
-
const { listProps: t } = e, [n, r] =
|
|
6404
|
+
var h;
|
|
6405
|
+
const { listProps: t } = e, [n, r] = L({
|
|
6430
6406
|
initLoading: !e.disabled,
|
|
6431
6407
|
searchLoading: !1,
|
|
6432
6408
|
hasNextPage: !1,
|
|
6433
6409
|
isNextPageLoading: !1,
|
|
6434
6410
|
paging: {
|
|
6435
6411
|
page: 1,
|
|
6436
|
-
pageSize: ((
|
|
6412
|
+
pageSize: ((h = e.listProps) == null ? void 0 : h.pageSize) || 20,
|
|
6437
6413
|
rows: [],
|
|
6438
6414
|
total: 0,
|
|
6439
6415
|
totalPages: 1
|
|
6440
6416
|
}
|
|
6441
|
-
}), o = async (
|
|
6417
|
+
}), o = async (m, p) => {
|
|
6442
6418
|
var v, y;
|
|
6443
6419
|
if (e.list)
|
|
6444
6420
|
r(() => {
|
|
6445
6421
|
var b;
|
|
6446
|
-
const l = ((b =
|
|
6422
|
+
const l = ((b = m == null ? void 0 : m.search) == null ? void 0 : b.content) || "";
|
|
6447
6423
|
return {
|
|
6448
6424
|
hasNextPage: !1,
|
|
6449
6425
|
isNextPageLoading: !1,
|
|
@@ -6468,43 +6444,43 @@ function t1(e) {
|
|
|
6468
6444
|
pageSize: 20,
|
|
6469
6445
|
filter: {
|
|
6470
6446
|
...t == null ? void 0 : t.filter,
|
|
6471
|
-
...
|
|
6447
|
+
...m == null ? void 0 : m.filter
|
|
6472
6448
|
},
|
|
6473
6449
|
...jn.omit(t, "filter"),
|
|
6474
|
-
...jn.omit(
|
|
6450
|
+
...jn.omit(m, "filter"),
|
|
6475
6451
|
search: {
|
|
6476
6452
|
fields: ((v = t == null ? void 0 : t.search) == null ? void 0 : v.fields) ?? [],
|
|
6477
|
-
content: ((y =
|
|
6453
|
+
content: ((y = m == null ? void 0 : m.search) == null ? void 0 : y.content) ?? ""
|
|
6478
6454
|
}
|
|
6479
6455
|
};
|
|
6480
6456
|
p && (l.filter = {}, l.search && (l.search.content = ""), l.page = 1);
|
|
6481
|
-
const
|
|
6457
|
+
const f = await e.getList(l);
|
|
6482
6458
|
r((b) => ({
|
|
6483
6459
|
initLoading: !1,
|
|
6484
6460
|
searchLoading: !1,
|
|
6485
6461
|
isNextPageLoading: !1,
|
|
6486
6462
|
paging: {
|
|
6487
|
-
...
|
|
6488
|
-
rows: (
|
|
6463
|
+
...f,
|
|
6464
|
+
rows: (m == null ? void 0 : m.page) === 1 ? f.rows : b.paging.rows.concat(f.rows)
|
|
6489
6465
|
},
|
|
6490
|
-
hasNextPage:
|
|
6466
|
+
hasNextPage: f.page < f.totalPages
|
|
6491
6467
|
}));
|
|
6492
6468
|
} catch {
|
|
6493
6469
|
}
|
|
6494
6470
|
}
|
|
6495
|
-
}, i = () => (r((
|
|
6471
|
+
}, i = () => (r((m) => ({ ...m, initLoading: !0 })), o(void 0, !0)), a = (m) => (r((p) => ({ ...p, initLoading: !0 })), o(m)), s = (m) => {
|
|
6496
6472
|
o({
|
|
6497
6473
|
page: n.paging.page + 1,
|
|
6498
|
-
search: { content:
|
|
6474
|
+
search: { content: m }
|
|
6499
6475
|
});
|
|
6500
|
-
}, d = (
|
|
6501
|
-
r((p) => ({ ...p, searchLoading: !0 })), o({ page: 1, search: { content:
|
|
6476
|
+
}, d = (m) => {
|
|
6477
|
+
r((p) => ({ ...p, searchLoading: !0 })), o({ page: 1, search: { content: m } });
|
|
6502
6478
|
};
|
|
6503
6479
|
Q(() => {
|
|
6504
|
-
e.disabled || (r((
|
|
6480
|
+
e.disabled || (r((m) => ({ ...m, initLoading: !0 })), o({ page: 1 }));
|
|
6505
6481
|
}, [...e.dependencyList || []]);
|
|
6506
6482
|
const u = () => {
|
|
6507
|
-
r((
|
|
6483
|
+
r((m) => ({ ...m, initLoading: !m.initLoading }));
|
|
6508
6484
|
};
|
|
6509
6485
|
return {
|
|
6510
6486
|
...e,
|
|
@@ -6597,7 +6573,7 @@ function Cc(e) {
|
|
|
6597
6573
|
const Ec = "Reset date";
|
|
6598
6574
|
function n1(e) {
|
|
6599
6575
|
var s, d;
|
|
6600
|
-
const [t, n] =
|
|
6576
|
+
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
6577
|
Q(() => {
|
|
6602
6578
|
n(e.value);
|
|
6603
6579
|
}, [e.value]);
|
|
@@ -6632,9 +6608,9 @@ function n1(e) {
|
|
|
6632
6608
|
maxDate: J(),
|
|
6633
6609
|
...e.initialSettings
|
|
6634
6610
|
},
|
|
6635
|
-
onApply: (u,
|
|
6636
|
-
var
|
|
6637
|
-
const
|
|
6611
|
+
onApply: (u, h) => {
|
|
6612
|
+
var f, b, _;
|
|
6613
|
+
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
6614
|
n({ startDate: y, endDate: l }), (_ = e.onChange) == null || _.call(e, { startDate: y, endDate: l });
|
|
6639
6615
|
},
|
|
6640
6616
|
children: /* @__PURE__ */ c(
|
|
@@ -6818,7 +6794,7 @@ const To = (e) => {
|
|
|
6818
6794
|
console.log("payload", r), t(r);
|
|
6819
6795
|
});
|
|
6820
6796
|
}), Ic = ["granted", "denied"], Mc = (e) => {
|
|
6821
|
-
const [t, n] =
|
|
6797
|
+
const [t, n] = L(!1), r = () => {
|
|
6822
6798
|
Notification.requestPermission(function(i) {
|
|
6823
6799
|
i === "granted" && To(e), Ic.includes(i) && n(!0);
|
|
6824
6800
|
});
|
|
@@ -6841,7 +6817,7 @@ const To = (e) => {
|
|
|
6841
6817
|
] })
|
|
6842
6818
|
] }) }) });
|
|
6843
6819
|
}, $c = (e) => {
|
|
6844
|
-
const [t, n] =
|
|
6820
|
+
const [t, n] = L({
|
|
6845
6821
|
actorName: "",
|
|
6846
6822
|
message: "",
|
|
6847
6823
|
context: "",
|
|
@@ -6888,13 +6864,13 @@ const To = (e) => {
|
|
|
6888
6864
|
message: (s = i == null ? void 0 : i.data) == null ? void 0 : s.message,
|
|
6889
6865
|
context: (d = i == null ? void 0 : i.data) == null ? void 0 : d.context,
|
|
6890
6866
|
contextUrl: (u = i == null ? void 0 : i.data) == null ? void 0 : u.contextUrl
|
|
6891
|
-
}), r((
|
|
6892
|
-
var
|
|
6867
|
+
}), r((h) => {
|
|
6868
|
+
var m;
|
|
6893
6869
|
return {
|
|
6894
|
-
...
|
|
6870
|
+
...h,
|
|
6895
6871
|
unread: {
|
|
6896
|
-
...
|
|
6897
|
-
total: ((
|
|
6872
|
+
...h.unread,
|
|
6873
|
+
total: ((m = h.unread) == null ? void 0 : m.total) + 1
|
|
6898
6874
|
}
|
|
6899
6875
|
};
|
|
6900
6876
|
});
|