@tracktor/design-system 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useTheme as ge, Box as L, Skeleton as fe, Tab as Yt, Card as t1, GlobalStyles as tr, TextareaAutosize as Ut, InputAdornment as br, IconButton as
|
|
1
|
+
import { useTheme as ge, Box as L, Skeleton as fe, Tab as Yt, Card as t1, GlobalStyles as tr, TextareaAutosize as Ut, InputAdornment as br, IconButton as ke, SvgIcon as Me, TextField as n1, Toolbar as Gt, Stack as B, AppBar as Wr, Typography as q, List as yr, ListItem as _e, Chip as nr, useMediaQuery as ir, SwipeableDrawer as Xt, Alert as i1, alpha as ye, Button as a1, CircularProgress as q1, Modal as qt, Fade as Jt, Divider as J1, Collapse as T1, Tooltip as A1, CardContent as Kt, Avatar as vr, Menu as Qt, MenuItem as en, ListItemIcon as rn, ListItemText as $e, Backdrop as tn, responsiveFontSizes as o1, createTheme as De, getOverlayAlpha as jr, css as mr, CssBaseline as nn, ThemeProvider as an, InputLabel as on, ListItemButton as Yr, Checkbox as Ur, ListItemAvatar as sn, Autocomplete as ln, Badge as cn, Paper as K1, Slide as dn, Snackbar as pn } from "@mui/material";
|
|
2
2
|
export * from "@mui/material";
|
|
3
3
|
import * as Re from "react";
|
|
4
|
-
import Q1, { createContext as Sr, useContext as Te, useCallback as de, forwardRef as xe, useState as ae, useEffect as Rr, cloneElement as s1, isValidElement as Tr, memo as et, useMemo as
|
|
4
|
+
import Q1, { createContext as Sr, useContext as Te, useCallback as de, forwardRef as xe, useState as ae, useEffect as Rr, cloneElement as s1, isValidElement as Tr, memo as et, useMemo as Ar, useRef as wr, Children as un } from "react";
|
|
5
5
|
import { createElement as fn } from "@emotion/react";
|
|
6
6
|
const hn = {
|
|
7
7
|
disabledPermissions: void 0,
|
|
8
8
|
permissions: void 0,
|
|
9
9
|
setPermissions: () => {
|
|
10
10
|
}
|
|
11
|
-
}, rt = Sr(hn),
|
|
12
|
-
const { permissions: e, setPermissions: r, disabledPermissions: t } = Te(rt),
|
|
11
|
+
}, rt = Sr(hn), k1 = (e, r) => e === "" || !r.length ? !1 : r.some((t) => e === t), gn = () => {
|
|
12
|
+
const { permissions: e, setPermissions: r, disabledPermissions: t } = Te(rt), a = de(
|
|
13
13
|
(o, l) => {
|
|
14
14
|
const c = [...l || [], ...e || []].filter((f) => !(t != null && t.includes(f)));
|
|
15
|
-
return c ? Array.isArray(o) ? o.some((f) =>
|
|
15
|
+
return c ? Array.isArray(o) ? o.some((f) => k1(f, c)) : k1(o, c) : !1;
|
|
16
16
|
},
|
|
17
17
|
[t, e]
|
|
18
18
|
);
|
|
@@ -24,12 +24,12 @@ const hn = {
|
|
|
24
24
|
[r]
|
|
25
25
|
),
|
|
26
26
|
disabledPermissions: t,
|
|
27
|
-
hasPermission:
|
|
27
|
+
hasPermission: a,
|
|
28
28
|
permissions: e,
|
|
29
29
|
setPermissions: r
|
|
30
30
|
};
|
|
31
|
-
}, Ea = ({ children: e, fallback: r, name: t, additionalPermissions:
|
|
32
|
-
const { hasPermission:
|
|
31
|
+
}, Ea = ({ children: e, fallback: r, name: t, additionalPermissions: a }) => {
|
|
32
|
+
const { hasPermission: i } = gn(), o = i(t, a);
|
|
33
33
|
return o ? e : !o && r ? r : null;
|
|
34
34
|
};
|
|
35
35
|
var Gr = { exports: {} }, qe = {};
|
|
@@ -46,13 +46,13 @@ var _1;
|
|
|
46
46
|
function xn() {
|
|
47
47
|
if (_1) return qe;
|
|
48
48
|
_1 = 1;
|
|
49
|
-
var e = Q1, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"),
|
|
49
|
+
var e = Q1, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
50
50
|
function l(d, c, f) {
|
|
51
51
|
var g, C = {}, y = null, h = null;
|
|
52
52
|
f !== void 0 && (y = "" + f), c.key !== void 0 && (y = "" + c.key), c.ref !== void 0 && (h = c.ref);
|
|
53
|
-
for (g in c)
|
|
53
|
+
for (g in c) a.call(c, g) && !o.hasOwnProperty(g) && (C[g] = c[g]);
|
|
54
54
|
if (d && d.defaultProps) for (g in c = d.defaultProps, c) C[g] === void 0 && (C[g] = c[g]);
|
|
55
|
-
return { $$typeof: r, type: d, key: y, ref: h, props: C, _owner:
|
|
55
|
+
return { $$typeof: r, type: d, key: y, ref: h, props: C, _owner: i.current };
|
|
56
56
|
}
|
|
57
57
|
return qe.Fragment = t, qe.jsx = l, qe.jsxs = l, qe;
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ var Je = {};
|
|
|
69
69
|
var F1;
|
|
70
70
|
function Cn() {
|
|
71
71
|
return F1 || (F1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
72
|
-
var e = Q1, r = Symbol.for("react.element"), t = Symbol.for("react.portal"),
|
|
72
|
+
var e = Q1, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), M = Symbol.iterator, b = "@@iterator";
|
|
73
73
|
function u(s) {
|
|
74
74
|
if (s === null || typeof s != "object")
|
|
75
75
|
return null;
|
|
@@ -94,10 +94,10 @@ function Cn() {
|
|
|
94
94
|
U.unshift("Warning: " + x), Function.prototype.apply.call(console[s], console, U);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
var R = !1, p = !1, _ = !1,
|
|
97
|
+
var R = !1, p = !1, _ = !1, A = !1, j = !1, I;
|
|
98
98
|
I = Symbol.for("react.module.reference");
|
|
99
99
|
function Q(s) {
|
|
100
|
-
return !!(typeof s == "string" || typeof s == "function" || s ===
|
|
100
|
+
return !!(typeof s == "string" || typeof s == "function" || s === a || s === o || j || s === i || s === f || s === g || A || s === h || R || p || _ || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === C || s.$$typeof === l || s.$$typeof === d || s.$$typeof === c || // This needs to include all possible module reference object
|
|
101
101
|
// types supported by any Flight configuration anywhere since
|
|
102
102
|
// we don't know which Flight build this will end up being used
|
|
103
103
|
// with.
|
|
@@ -121,13 +121,13 @@ function Cn() {
|
|
|
121
121
|
if (typeof s == "string")
|
|
122
122
|
return s;
|
|
123
123
|
switch (s) {
|
|
124
|
-
case
|
|
124
|
+
case a:
|
|
125
125
|
return "Fragment";
|
|
126
126
|
case t:
|
|
127
127
|
return "Portal";
|
|
128
128
|
case o:
|
|
129
129
|
return "Profiler";
|
|
130
|
-
case
|
|
130
|
+
case i:
|
|
131
131
|
return "StrictMode";
|
|
132
132
|
case f:
|
|
133
133
|
return "Suspense";
|
|
@@ -158,14 +158,14 @@ function Cn() {
|
|
|
158
158
|
}
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
|
-
var K = Object.assign, oe = 0,
|
|
161
|
+
var K = Object.assign, oe = 0, Ae, z, k, G, re, le, Se;
|
|
162
162
|
function ve() {
|
|
163
163
|
}
|
|
164
164
|
ve.__reactDisabledLog = !0;
|
|
165
165
|
function Hr() {
|
|
166
166
|
{
|
|
167
167
|
if (oe === 0) {
|
|
168
|
-
|
|
168
|
+
Ae = console.log, z = console.info, k = console.warn, G = console.error, re = console.group, le = console.groupCollapsed, Se = console.groupEnd;
|
|
169
169
|
var s = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
@@ -195,13 +195,13 @@ function Cn() {
|
|
|
195
195
|
};
|
|
196
196
|
Object.defineProperties(console, {
|
|
197
197
|
log: K({}, s, {
|
|
198
|
-
value:
|
|
198
|
+
value: Ae
|
|
199
199
|
}),
|
|
200
200
|
info: K({}, s, {
|
|
201
201
|
value: z
|
|
202
202
|
}),
|
|
203
203
|
warn: K({}, s, {
|
|
204
|
-
value:
|
|
204
|
+
value: k
|
|
205
205
|
}),
|
|
206
206
|
error: K({}, s, {
|
|
207
207
|
value: G
|
|
@@ -397,14 +397,14 @@ function Cn() {
|
|
|
397
397
|
if (Tt(s))
|
|
398
398
|
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(s)), x1(s);
|
|
399
399
|
}
|
|
400
|
-
var Xe = v.ReactCurrentOwner,
|
|
400
|
+
var Xe = v.ReactCurrentOwner, At = {
|
|
401
401
|
key: !0,
|
|
402
402
|
ref: !0,
|
|
403
403
|
__self: !0,
|
|
404
404
|
__source: !0
|
|
405
405
|
}, b1, y1, Pr;
|
|
406
406
|
Pr = {};
|
|
407
|
-
function
|
|
407
|
+
function kt(s) {
|
|
408
408
|
if (Ge.call(s, "ref")) {
|
|
409
409
|
var x = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
410
410
|
if (x && x.isReactWarning)
|
|
@@ -480,9 +480,9 @@ function Cn() {
|
|
|
480
480
|
function Ot(s, x, m, F, Z) {
|
|
481
481
|
{
|
|
482
482
|
var U, V = {}, O = null, ce = null;
|
|
483
|
-
m !== void 0 && (C1(m), O = "" + m), _t(x) && (C1(x.key), O = "" + x.key),
|
|
483
|
+
m !== void 0 && (C1(m), O = "" + m), _t(x) && (C1(x.key), O = "" + x.key), kt(x) && (ce = x.ref, Ft(x, Z));
|
|
484
484
|
for (U in x)
|
|
485
|
-
Ge.call(x, U) && !
|
|
485
|
+
Ge.call(x, U) && !At.hasOwnProperty(U) && (V[U] = x[U]);
|
|
486
486
|
if (s && s.defaultProps) {
|
|
487
487
|
var ee = s.defaultProps;
|
|
488
488
|
for (U in ee)
|
|
@@ -647,7 +647,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
647
647
|
<%s key={someKey} {...props} />`, zr, Ie, Wt, Ie), S1[Ie + zr] = !0;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
return s ===
|
|
650
|
+
return s === a ? Dt(te) : $t(te), te;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
function Bt(s, x, m) {
|
|
@@ -657,7 +657,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
657
657
|
return R1(s, x, m, !1);
|
|
658
658
|
}
|
|
659
659
|
var Zt = zt, Nt = Bt;
|
|
660
|
-
Je.Fragment =
|
|
660
|
+
Je.Fragment = a, Je.jsx = Zt, Je.jsxs = Nt;
|
|
661
661
|
}()), Je;
|
|
662
662
|
}
|
|
663
663
|
process.env.NODE_ENV === "production" ? Gr.exports = xn() : Gr.exports = Cn();
|
|
@@ -675,34 +675,34 @@ function vn(e) {
|
|
|
675
675
|
}
|
|
676
676
|
var mn = /* @__PURE__ */ function() {
|
|
677
677
|
function e(t) {
|
|
678
|
-
var
|
|
679
|
-
this._insertTag = function(
|
|
678
|
+
var a = this;
|
|
679
|
+
this._insertTag = function(i) {
|
|
680
680
|
var o;
|
|
681
|
-
|
|
681
|
+
a.tags.length === 0 ? a.insertionPoint ? o = a.insertionPoint.nextSibling : a.prepend ? o = a.container.firstChild : o = a.before : o = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(i, o), a.tags.push(i);
|
|
682
682
|
}, this.isSpeedy = t.speedy === void 0 ? !bn : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
683
683
|
}
|
|
684
684
|
var r = e.prototype;
|
|
685
|
-
return r.hydrate = function(
|
|
686
|
-
|
|
687
|
-
}, r.insert = function(
|
|
685
|
+
return r.hydrate = function(a) {
|
|
686
|
+
a.forEach(this._insertTag);
|
|
687
|
+
}, r.insert = function(a) {
|
|
688
688
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(vn(this));
|
|
689
|
-
var
|
|
689
|
+
var i = this.tags[this.tags.length - 1];
|
|
690
690
|
if (this.isSpeedy) {
|
|
691
|
-
var o = yn(
|
|
691
|
+
var o = yn(i);
|
|
692
692
|
try {
|
|
693
|
-
o.insertRule(
|
|
693
|
+
o.insertRule(a, o.cssRules.length);
|
|
694
694
|
} catch {
|
|
695
695
|
}
|
|
696
696
|
} else
|
|
697
|
-
|
|
697
|
+
i.appendChild(document.createTextNode(a));
|
|
698
698
|
this.ctr++;
|
|
699
699
|
}, r.flush = function() {
|
|
700
|
-
this.tags.forEach(function(
|
|
701
|
-
var
|
|
702
|
-
return (
|
|
700
|
+
this.tags.forEach(function(a) {
|
|
701
|
+
var i;
|
|
702
|
+
return (i = a.parentNode) == null ? void 0 : i.removeChild(a);
|
|
703
703
|
}), this.tags = [], this.ctr = 0;
|
|
704
704
|
}, e;
|
|
705
|
-
}(), se = "-ms-", Er = "-moz-", $ = "-webkit-", tt = "comm", l1 = "rule", c1 = "decl", wn = "@import", nt = "@keyframes", En = "@layer", Mn = Math.abs,
|
|
705
|
+
}(), se = "-ms-", Er = "-moz-", $ = "-webkit-", tt = "comm", l1 = "rule", c1 = "decl", wn = "@import", nt = "@keyframes", En = "@layer", Mn = Math.abs, kr = String.fromCharCode, Sn = Object.assign;
|
|
706
706
|
function Rn(e, r) {
|
|
707
707
|
return ie(e, 0) ^ 45 ? (((r << 2 ^ ie(e, 0)) << 2 ^ ie(e, 1)) << 2 ^ ie(e, 2)) << 2 ^ ie(e, 3) : 0;
|
|
708
708
|
}
|
|
@@ -733,17 +733,17 @@ function d1(e) {
|
|
|
733
733
|
function pr(e, r) {
|
|
734
734
|
return r.push(e), e;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function An(e, r) {
|
|
737
737
|
return e.map(r).join("");
|
|
738
738
|
}
|
|
739
739
|
var _r = 1, ze = 1, at = 0, ue = 0, ne = 0, Ze = "";
|
|
740
|
-
function Fr(e, r, t,
|
|
741
|
-
return { value: e, root: r, parent: t, type:
|
|
740
|
+
function Fr(e, r, t, a, i, o, l) {
|
|
741
|
+
return { value: e, root: r, parent: t, type: a, props: i, children: o, line: _r, column: ze, length: l, return: "" };
|
|
742
742
|
}
|
|
743
743
|
function Ke(e, r) {
|
|
744
744
|
return Sn(Fr("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function kn() {
|
|
747
747
|
return ne;
|
|
748
748
|
}
|
|
749
749
|
function _n() {
|
|
@@ -834,7 +834,7 @@ function Hn(e, r) {
|
|
|
834
834
|
for (; he() && e + ne !== 57; )
|
|
835
835
|
if (e + ne === 84 && Ee() === 47)
|
|
836
836
|
break;
|
|
837
|
-
return "/*" + cr(r, ue - 1) + "*" +
|
|
837
|
+
return "/*" + cr(r, ue - 1) + "*" + kr(e === 47 ? e : he());
|
|
838
838
|
}
|
|
839
839
|
function Ln(e) {
|
|
840
840
|
for (; !sr(Ee()); )
|
|
@@ -844,27 +844,27 @@ function Ln(e) {
|
|
|
844
844
|
function On(e) {
|
|
845
845
|
return st(xr("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
846
846
|
}
|
|
847
|
-
function xr(e, r, t,
|
|
848
|
-
for (var f = 0, g = 0, C = l, y = 0, h = 0, M = 0, b = 1, u = 1, v = 1, S = 0, w = "", R =
|
|
847
|
+
function xr(e, r, t, a, i, o, l, d, c) {
|
|
848
|
+
for (var f = 0, g = 0, C = l, y = 0, h = 0, M = 0, b = 1, u = 1, v = 1, S = 0, w = "", R = i, p = o, _ = a, A = w; u; )
|
|
849
849
|
switch (M = S, S = he()) {
|
|
850
850
|
case 40:
|
|
851
|
-
if (M != 108 && ie(
|
|
852
|
-
Xr(
|
|
851
|
+
if (M != 108 && ie(A, C - 1) == 58) {
|
|
852
|
+
Xr(A += D(gr(S), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
853
853
|
break;
|
|
854
854
|
}
|
|
855
855
|
case 34:
|
|
856
856
|
case 39:
|
|
857
857
|
case 91:
|
|
858
|
-
|
|
858
|
+
A += gr(S);
|
|
859
859
|
break;
|
|
860
860
|
case 9:
|
|
861
861
|
case 10:
|
|
862
862
|
case 13:
|
|
863
863
|
case 32:
|
|
864
|
-
|
|
864
|
+
A += Fn(M);
|
|
865
865
|
break;
|
|
866
866
|
case 92:
|
|
867
|
-
|
|
867
|
+
A += In(hr() - 1, 7);
|
|
868
868
|
continue;
|
|
869
869
|
case 47:
|
|
870
870
|
switch (Ee()) {
|
|
@@ -873,11 +873,11 @@ function xr(e, r, t, i, a, o, l, d, c) {
|
|
|
873
873
|
pr(Vn(Hn(he(), hr()), r, t), c);
|
|
874
874
|
break;
|
|
875
875
|
default:
|
|
876
|
-
|
|
876
|
+
A += "/";
|
|
877
877
|
}
|
|
878
878
|
break;
|
|
879
879
|
case 123 * b:
|
|
880
|
-
d[f++] = me(
|
|
880
|
+
d[f++] = me(A) * v;
|
|
881
881
|
case 125 * b:
|
|
882
882
|
case 59:
|
|
883
883
|
case 0:
|
|
@@ -886,30 +886,30 @@ function xr(e, r, t, i, a, o, l, d, c) {
|
|
|
886
886
|
case 125:
|
|
887
887
|
u = 0;
|
|
888
888
|
case 59 + g:
|
|
889
|
-
v == -1 && (
|
|
889
|
+
v == -1 && (A = D(A, /\f/g, "")), h > 0 && me(A) - C && pr(h > 32 ? H1(A + ";", a, t, C - 1) : H1(D(A, " ", "") + ";", a, t, C - 2), c);
|
|
890
890
|
break;
|
|
891
891
|
case 59:
|
|
892
|
-
|
|
892
|
+
A += ";";
|
|
893
893
|
default:
|
|
894
|
-
if (pr(_ = I1(
|
|
894
|
+
if (pr(_ = I1(A, r, t, f, g, i, d, w, R = [], p = [], C), o), S === 123)
|
|
895
895
|
if (g === 0)
|
|
896
|
-
xr(
|
|
896
|
+
xr(A, r, _, _, R, o, C, d, p);
|
|
897
897
|
else
|
|
898
|
-
switch (y === 99 && ie(
|
|
898
|
+
switch (y === 99 && ie(A, 3) === 110 ? 100 : y) {
|
|
899
899
|
case 100:
|
|
900
900
|
case 108:
|
|
901
901
|
case 109:
|
|
902
902
|
case 115:
|
|
903
|
-
xr(e, _, _,
|
|
903
|
+
xr(e, _, _, a && pr(I1(e, _, _, 0, 0, i, d, w, i, R = [], C), p), i, p, C, d, a ? R : p);
|
|
904
904
|
break;
|
|
905
905
|
default:
|
|
906
|
-
xr(
|
|
906
|
+
xr(A, _, _, _, [""], p, 0, d, p);
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
f = g = h = 0, b = v = 1, w =
|
|
909
|
+
f = g = h = 0, b = v = 1, w = A = "", C = l;
|
|
910
910
|
break;
|
|
911
911
|
case 58:
|
|
912
|
-
C = 1 + me(
|
|
912
|
+
C = 1 + me(A), h = M;
|
|
913
913
|
default:
|
|
914
914
|
if (b < 1) {
|
|
915
915
|
if (S == 123)
|
|
@@ -917,40 +917,40 @@ function xr(e, r, t, i, a, o, l, d, c) {
|
|
|
917
917
|
else if (S == 125 && b++ == 0 && _n() == 125)
|
|
918
918
|
continue;
|
|
919
919
|
}
|
|
920
|
-
switch (
|
|
920
|
+
switch (A += kr(S), S * b) {
|
|
921
921
|
case 38:
|
|
922
|
-
v = g > 0 ? 1 : (
|
|
922
|
+
v = g > 0 ? 1 : (A += "\f", -1);
|
|
923
923
|
break;
|
|
924
924
|
case 44:
|
|
925
|
-
d[f++] = (me(
|
|
925
|
+
d[f++] = (me(A) - 1) * v, v = 1;
|
|
926
926
|
break;
|
|
927
927
|
case 64:
|
|
928
|
-
Ee() === 45 && (
|
|
928
|
+
Ee() === 45 && (A += gr(he())), y = Ee(), g = C = me(w = A += Ln(hr())), S++;
|
|
929
929
|
break;
|
|
930
930
|
case 45:
|
|
931
|
-
M === 45 && me(
|
|
931
|
+
M === 45 && me(A) == 2 && (b = 0);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
return o;
|
|
935
935
|
}
|
|
936
|
-
function I1(e, r, t,
|
|
937
|
-
for (var C =
|
|
936
|
+
function I1(e, r, t, a, i, o, l, d, c, f, g) {
|
|
937
|
+
for (var C = i - 1, y = i === 0 ? o : [""], h = d1(y), M = 0, b = 0, u = 0; M < a; ++M)
|
|
938
938
|
for (var v = 0, S = or(e, C + 1, C = Mn(b = l[M])), w = e; v < h; ++v)
|
|
939
939
|
(w = it(b > 0 ? y[v] + " " + S : D(S, /&\f/g, y[v]))) && (c[u++] = w);
|
|
940
|
-
return Fr(e, r, t,
|
|
940
|
+
return Fr(e, r, t, i === 0 ? l1 : d, c, f, g);
|
|
941
941
|
}
|
|
942
942
|
function Vn(e, r, t) {
|
|
943
|
-
return Fr(e, r, t, tt,
|
|
943
|
+
return Fr(e, r, t, tt, kr(kn()), or(e, 2, -2), 0);
|
|
944
944
|
}
|
|
945
|
-
function H1(e, r, t,
|
|
946
|
-
return Fr(e, r, t, c1, or(e, 0,
|
|
945
|
+
function H1(e, r, t, a) {
|
|
946
|
+
return Fr(e, r, t, c1, or(e, 0, a), or(e, a + 1, -1), a);
|
|
947
947
|
}
|
|
948
948
|
function Be(e, r) {
|
|
949
|
-
for (var t = "",
|
|
950
|
-
t += r(e[
|
|
949
|
+
for (var t = "", a = d1(e), i = 0; i < a; i++)
|
|
950
|
+
t += r(e[i], i, e, r) || "";
|
|
951
951
|
return t;
|
|
952
952
|
}
|
|
953
|
-
function Pn(e, r, t,
|
|
953
|
+
function Pn(e, r, t, a) {
|
|
954
954
|
switch (e.type) {
|
|
955
955
|
case En:
|
|
956
956
|
if (e.children.length) break;
|
|
@@ -960,17 +960,17 @@ function Pn(e, r, t, i) {
|
|
|
960
960
|
case tt:
|
|
961
961
|
return "";
|
|
962
962
|
case nt:
|
|
963
|
-
return e.return = e.value + "{" + Be(e.children,
|
|
963
|
+
return e.return = e.value + "{" + Be(e.children, a) + "}";
|
|
964
964
|
case l1:
|
|
965
965
|
e.value = e.props.join(",");
|
|
966
966
|
}
|
|
967
|
-
return me(t = Be(e.children,
|
|
967
|
+
return me(t = Be(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
|
|
968
968
|
}
|
|
969
969
|
function $n(e) {
|
|
970
970
|
var r = d1(e);
|
|
971
|
-
return function(t,
|
|
971
|
+
return function(t, a, i, o) {
|
|
972
972
|
for (var l = "", d = 0; d < r; d++)
|
|
973
|
-
l += e[d](t,
|
|
973
|
+
l += e[d](t, a, i, o) || "";
|
|
974
974
|
return l;
|
|
975
975
|
};
|
|
976
976
|
}
|
|
@@ -985,29 +985,29 @@ function Bn(e) {
|
|
|
985
985
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
var zn = function(r, t,
|
|
989
|
-
for (var
|
|
988
|
+
var zn = function(r, t, a) {
|
|
989
|
+
for (var i = 0, o = 0; i = o, o = Ee(), i === 38 && o === 12 && (t[a] = 1), !sr(o); )
|
|
990
990
|
he();
|
|
991
991
|
return cr(r, ue);
|
|
992
992
|
}, Zn = function(r, t) {
|
|
993
|
-
var
|
|
993
|
+
var a = -1, i = 44;
|
|
994
994
|
do
|
|
995
|
-
switch (sr(
|
|
995
|
+
switch (sr(i)) {
|
|
996
996
|
case 0:
|
|
997
|
-
|
|
997
|
+
i === 38 && Ee() === 12 && (t[a] = 1), r[a] += zn(ue - 1, t, a);
|
|
998
998
|
break;
|
|
999
999
|
case 2:
|
|
1000
|
-
r[
|
|
1000
|
+
r[a] += gr(i);
|
|
1001
1001
|
break;
|
|
1002
1002
|
case 4:
|
|
1003
|
-
if (
|
|
1004
|
-
r[++
|
|
1003
|
+
if (i === 44) {
|
|
1004
|
+
r[++a] = Ee() === 58 ? "&\f" : "", t[a] = r[a].length;
|
|
1005
1005
|
break;
|
|
1006
1006
|
}
|
|
1007
1007
|
default:
|
|
1008
|
-
r[
|
|
1008
|
+
r[a] += kr(i);
|
|
1009
1009
|
}
|
|
1010
|
-
while (
|
|
1010
|
+
while (i = he());
|
|
1011
1011
|
return r;
|
|
1012
1012
|
}, Nn = function(r, t) {
|
|
1013
1013
|
return st(Zn(ot(r), t));
|
|
@@ -1015,11 +1015,11 @@ var zn = function(r, t, i) {
|
|
|
1015
1015
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
1016
1016
|
// negative .length indicates that this rule has been already prefixed
|
|
1017
1017
|
r.length < 1)) {
|
|
1018
|
-
for (var t = r.value,
|
|
1019
|
-
if (
|
|
1020
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !L1.get(
|
|
1018
|
+
for (var t = r.value, a = r.parent, i = r.column === a.column && r.line === a.line; a.type !== "rule"; )
|
|
1019
|
+
if (a = a.parent, !a) return;
|
|
1020
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !L1.get(a)) && !i) {
|
|
1021
1021
|
L1.set(r, !0);
|
|
1022
|
-
for (var o = [], l = Nn(t, o), d =
|
|
1022
|
+
for (var o = [], l = Nn(t, o), d = a.props, c = 0, f = 0; c < l.length; c++)
|
|
1023
1023
|
for (var g = 0; g < d.length; g++, f++)
|
|
1024
1024
|
r.props[f] = o[c] ? l[c].replace(/&\f/g, d[g]) : d[g] + " " + l[c];
|
|
1025
1025
|
}
|
|
@@ -1143,7 +1143,7 @@ function lt(e, r) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return e;
|
|
1145
1145
|
}
|
|
1146
|
-
var Yn = function(r, t,
|
|
1146
|
+
var Yn = function(r, t, a, i) {
|
|
1147
1147
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
1148
1148
|
case c1:
|
|
1149
1149
|
r.return = lt(r.value, r.length);
|
|
@@ -1151,15 +1151,15 @@ var Yn = function(r, t, i, a) {
|
|
|
1151
1151
|
case nt:
|
|
1152
1152
|
return Be([Ke(r, {
|
|
1153
1153
|
value: D(r.value, "@", "@" + $)
|
|
1154
|
-
})],
|
|
1154
|
+
})], i);
|
|
1155
1155
|
case l1:
|
|
1156
|
-
if (r.length) return
|
|
1156
|
+
if (r.length) return An(r.props, function(o) {
|
|
1157
1157
|
switch (Tn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1158
1158
|
case ":read-only":
|
|
1159
1159
|
case ":read-write":
|
|
1160
1160
|
return Be([Ke(r, {
|
|
1161
1161
|
props: [D(o, /:(read-\w+)/, ":" + Er + "$1")]
|
|
1162
|
-
})],
|
|
1162
|
+
})], i);
|
|
1163
1163
|
case "::placeholder":
|
|
1164
1164
|
return Be([Ke(r, {
|
|
1165
1165
|
props: [D(o, /:(plac\w+)/, ":" + $ + "input-$1")]
|
|
@@ -1167,7 +1167,7 @@ var Yn = function(r, t, i, a) {
|
|
|
1167
1167
|
props: [D(o, /:(plac\w+)/, ":" + Er + "$1")]
|
|
1168
1168
|
}), Ke(r, {
|
|
1169
1169
|
props: [D(o, /:(plac\w+)/, se + "input-$1")]
|
|
1170
|
-
})],
|
|
1170
|
+
})], i);
|
|
1171
1171
|
}
|
|
1172
1172
|
return "";
|
|
1173
1173
|
});
|
|
@@ -1175,13 +1175,13 @@ var Yn = function(r, t, i, a) {
|
|
|
1175
1175
|
}, Un = [Yn], Gn = function(r) {
|
|
1176
1176
|
var t = r.key;
|
|
1177
1177
|
if (t === "css") {
|
|
1178
|
-
var
|
|
1179
|
-
Array.prototype.forEach.call(
|
|
1178
|
+
var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1179
|
+
Array.prototype.forEach.call(a, function(b) {
|
|
1180
1180
|
var u = b.getAttribute("data-emotion");
|
|
1181
1181
|
u.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
var
|
|
1184
|
+
var i = r.stylisPlugins || Un, o = {}, l, d = [];
|
|
1185
1185
|
l = r.container || document.head, Array.prototype.forEach.call(
|
|
1186
1186
|
// this means we will ignore elements which don't have a space in them which
|
|
1187
1187
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -1196,7 +1196,7 @@ var Yn = function(r, t, i, a) {
|
|
|
1196
1196
|
{
|
|
1197
1197
|
var g, C = [Pn, Dn(function(b) {
|
|
1198
1198
|
g.insert(b);
|
|
1199
|
-
})], y = $n(f.concat(
|
|
1199
|
+
})], y = $n(f.concat(i, C)), h = function(u) {
|
|
1200
1200
|
return Be(On(u), y);
|
|
1201
1201
|
};
|
|
1202
1202
|
c = function(u, v, S, w) {
|
|
@@ -1232,7 +1232,7 @@ var O1;
|
|
|
1232
1232
|
function Xn() {
|
|
1233
1233
|
if (O1) return N;
|
|
1234
1234
|
O1 = 1;
|
|
1235
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106,
|
|
1235
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
1236
1236
|
function w(p) {
|
|
1237
1237
|
if (typeof p == "object" && p !== null) {
|
|
1238
1238
|
var _ = p.$$typeof;
|
|
@@ -1241,9 +1241,9 @@ function Xn() {
|
|
|
1241
1241
|
switch (p = p.type, p) {
|
|
1242
1242
|
case c:
|
|
1243
1243
|
case f:
|
|
1244
|
-
case i:
|
|
1245
|
-
case o:
|
|
1246
1244
|
case a:
|
|
1245
|
+
case o:
|
|
1246
|
+
case i:
|
|
1247
1247
|
case C:
|
|
1248
1248
|
return p;
|
|
1249
1249
|
default:
|
|
@@ -1266,7 +1266,7 @@ function Xn() {
|
|
|
1266
1266
|
function R(p) {
|
|
1267
1267
|
return w(p) === f;
|
|
1268
1268
|
}
|
|
1269
|
-
return N.AsyncMode = c, N.ConcurrentMode = f, N.ContextConsumer = d, N.ContextProvider = l, N.Element = r, N.ForwardRef = g, N.Fragment =
|
|
1269
|
+
return N.AsyncMode = c, N.ConcurrentMode = f, N.ContextConsumer = d, N.ContextProvider = l, N.Element = r, N.ForwardRef = g, N.Fragment = a, N.Lazy = M, N.Memo = h, N.Portal = t, N.Profiler = o, N.StrictMode = i, N.Suspense = C, N.isAsyncMode = function(p) {
|
|
1270
1270
|
return R(p) || w(p) === c;
|
|
1271
1271
|
}, N.isConcurrentMode = R, N.isContextConsumer = function(p) {
|
|
1272
1272
|
return w(p) === d;
|
|
@@ -1277,7 +1277,7 @@ function Xn() {
|
|
|
1277
1277
|
}, N.isForwardRef = function(p) {
|
|
1278
1278
|
return w(p) === g;
|
|
1279
1279
|
}, N.isFragment = function(p) {
|
|
1280
|
-
return w(p) ===
|
|
1280
|
+
return w(p) === a;
|
|
1281
1281
|
}, N.isLazy = function(p) {
|
|
1282
1282
|
return w(p) === M;
|
|
1283
1283
|
}, N.isMemo = function(p) {
|
|
@@ -1287,11 +1287,11 @@ function Xn() {
|
|
|
1287
1287
|
}, N.isProfiler = function(p) {
|
|
1288
1288
|
return w(p) === o;
|
|
1289
1289
|
}, N.isStrictMode = function(p) {
|
|
1290
|
-
return w(p) ===
|
|
1290
|
+
return w(p) === i;
|
|
1291
1291
|
}, N.isSuspense = function(p) {
|
|
1292
1292
|
return w(p) === C;
|
|
1293
1293
|
}, N.isValidElementType = function(p) {
|
|
1294
|
-
return typeof p == "string" || typeof p == "function" || p ===
|
|
1294
|
+
return typeof p == "string" || typeof p == "function" || p === a || p === f || p === o || p === i || p === C || p === y || typeof p == "object" && p !== null && (p.$$typeof === M || p.$$typeof === h || p.$$typeof === l || p.$$typeof === d || p.$$typeof === g || p.$$typeof === u || p.$$typeof === v || p.$$typeof === S || p.$$typeof === b);
|
|
1295
1295
|
}, N.typeOf = w, N;
|
|
1296
1296
|
}
|
|
1297
1297
|
var W = {};
|
|
@@ -1306,10 +1306,10 @@ var W = {};
|
|
|
1306
1306
|
var V1;
|
|
1307
1307
|
function qn() {
|
|
1308
1308
|
return V1 || (V1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1309
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106,
|
|
1309
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
1310
1310
|
function w(T) {
|
|
1311
1311
|
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1312
|
-
T ===
|
|
1312
|
+
T === a || T === f || T === o || T === i || T === C || T === y || typeof T == "object" && T !== null && (T.$$typeof === M || T.$$typeof === h || T.$$typeof === l || T.$$typeof === d || T.$$typeof === g || T.$$typeof === u || T.$$typeof === v || T.$$typeof === S || T.$$typeof === b);
|
|
1313
1313
|
}
|
|
1314
1314
|
function R(T) {
|
|
1315
1315
|
if (typeof T == "object" && T !== null) {
|
|
@@ -1320,9 +1320,9 @@ function qn() {
|
|
|
1320
1320
|
switch (Oe) {
|
|
1321
1321
|
case c:
|
|
1322
1322
|
case f:
|
|
1323
|
-
case i:
|
|
1324
|
-
case o:
|
|
1325
1323
|
case a:
|
|
1324
|
+
case o:
|
|
1325
|
+
case i:
|
|
1326
1326
|
case C:
|
|
1327
1327
|
return Oe;
|
|
1328
1328
|
default:
|
|
@@ -1343,9 +1343,9 @@ function qn() {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
var p = c, _ = f,
|
|
1346
|
+
var p = c, _ = f, A = d, j = l, I = r, Q = g, X = a, Y = M, P = h, K = t, oe = o, Ae = i, z = C, k = !1;
|
|
1347
1347
|
function G(T) {
|
|
1348
|
-
return
|
|
1348
|
+
return k || (k = !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.")), re(T) || R(T) === c;
|
|
1349
1349
|
}
|
|
1350
1350
|
function re(T) {
|
|
1351
1351
|
return R(T) === f;
|
|
@@ -1363,7 +1363,7 @@ function qn() {
|
|
|
1363
1363
|
return R(T) === g;
|
|
1364
1364
|
}
|
|
1365
1365
|
function Lr(T) {
|
|
1366
|
-
return R(T) ===
|
|
1366
|
+
return R(T) === a;
|
|
1367
1367
|
}
|
|
1368
1368
|
function We(T) {
|
|
1369
1369
|
return R(T) === M;
|
|
@@ -1378,12 +1378,12 @@ function qn() {
|
|
|
1378
1378
|
return R(T) === o;
|
|
1379
1379
|
}
|
|
1380
1380
|
function Le(T) {
|
|
1381
|
-
return R(T) ===
|
|
1381
|
+
return R(T) === i;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Or(T) {
|
|
1384
1384
|
return R(T) === C;
|
|
1385
1385
|
}
|
|
1386
|
-
W.AsyncMode = p, W.ConcurrentMode = _, W.ContextConsumer =
|
|
1386
|
+
W.AsyncMode = p, W.ConcurrentMode = _, W.ContextConsumer = A, W.ContextProvider = j, W.Element = I, W.ForwardRef = Q, W.Fragment = X, W.Lazy = Y, W.Memo = P, W.Portal = K, W.Profiler = oe, W.StrictMode = Ae, W.Suspense = z, W.isAsyncMode = G, W.isConcurrentMode = re, W.isContextConsumer = le, W.isContextProvider = Se, W.isElement = ve, W.isForwardRef = Hr, W.isFragment = Lr, W.isLazy = We, W.isMemo = je, W.isPortal = He, W.isProfiler = Ye, W.isStrictMode = Le, W.isSuspense = Or, W.isValidElementType = w, W.typeOf = R;
|
|
1387
1387
|
}()), W;
|
|
1388
1388
|
}
|
|
1389
1389
|
process.env.NODE_ENV === "production" ? Jr.exports = Xn() : Jr.exports = qn();
|
|
@@ -1405,47 +1405,47 @@ dt[ct.ForwardRef] = Kn;
|
|
|
1405
1405
|
dt[ct.Memo] = Qn;
|
|
1406
1406
|
var ei = !0;
|
|
1407
1407
|
function ri(e, r, t) {
|
|
1408
|
-
var
|
|
1409
|
-
return t.split(" ").forEach(function(
|
|
1410
|
-
e[
|
|
1411
|
-
}),
|
|
1408
|
+
var a = "";
|
|
1409
|
+
return t.split(" ").forEach(function(i) {
|
|
1410
|
+
e[i] !== void 0 ? r.push(e[i] + ";") : i && (a += i + " ");
|
|
1411
|
+
}), a;
|
|
1412
1412
|
}
|
|
1413
|
-
var pt = function(r, t,
|
|
1414
|
-
var
|
|
1413
|
+
var pt = function(r, t, a) {
|
|
1414
|
+
var i = r.key + "-" + t.name;
|
|
1415
1415
|
// we only need to add the styles to the registered cache if the
|
|
1416
1416
|
// class name could be used further down
|
|
1417
1417
|
// the tree but if it's a string tag, we know it won't
|
|
1418
1418
|
// so we don't have to add it to registered cache.
|
|
1419
1419
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1420
|
-
(
|
|
1420
|
+
(a === !1 || // we need to always store it if we're in compat mode and
|
|
1421
1421
|
// in node since emotion-server relies on whether a style is in
|
|
1422
1422
|
// the registered cache to know whether a style is global or not
|
|
1423
1423
|
// also, note that this check will be dead code eliminated in the browser
|
|
1424
|
-
ei === !1) && r.registered[
|
|
1425
|
-
}, ti = function(r, t,
|
|
1426
|
-
pt(r, t,
|
|
1427
|
-
var
|
|
1424
|
+
ei === !1) && r.registered[i] === void 0 && (r.registered[i] = t.styles);
|
|
1425
|
+
}, ti = function(r, t, a) {
|
|
1426
|
+
pt(r, t, a);
|
|
1427
|
+
var i = r.key + "-" + t.name;
|
|
1428
1428
|
if (r.inserted[t.name] === void 0) {
|
|
1429
1429
|
var o = t;
|
|
1430
1430
|
do
|
|
1431
|
-
r.insert(t === o ? "." +
|
|
1431
|
+
r.insert(t === o ? "." + i : "", o, r.sheet, !0), o = o.next;
|
|
1432
1432
|
while (o !== void 0);
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
1435
|
function ni(e) {
|
|
1436
|
-
for (var r = 0, t,
|
|
1437
|
-
t = e.charCodeAt(
|
|
1436
|
+
for (var r = 0, t, a = 0, i = e.length; i >= 4; ++a, i -= 4)
|
|
1437
|
+
t = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, t = /* Math.imul(k, m): */
|
|
1438
1438
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
1439
1439
|
t >>> 24, r = /* Math.imul(k, m): */
|
|
1440
1440
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1441
1441
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
1442
|
-
switch (
|
|
1442
|
+
switch (i) {
|
|
1443
1443
|
case 3:
|
|
1444
|
-
r ^= (e.charCodeAt(
|
|
1444
|
+
r ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
1445
1445
|
case 2:
|
|
1446
|
-
r ^= (e.charCodeAt(
|
|
1446
|
+
r ^= (e.charCodeAt(a + 1) & 255) << 8;
|
|
1447
1447
|
case 1:
|
|
1448
|
-
r ^= e.charCodeAt(
|
|
1448
|
+
r ^= e.charCodeAt(a) & 255, r = /* Math.imul(h, m): */
|
|
1449
1449
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
1450
1450
|
}
|
|
1451
1451
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
@@ -1511,12 +1511,12 @@ var ii = {
|
|
|
1511
1511
|
case "animation":
|
|
1512
1512
|
case "animationName":
|
|
1513
1513
|
if (typeof t == "string")
|
|
1514
|
-
return t.replace(si, function(
|
|
1514
|
+
return t.replace(si, function(a, i, o) {
|
|
1515
1515
|
return we = {
|
|
1516
|
-
name:
|
|
1516
|
+
name: i,
|
|
1517
1517
|
styles: o,
|
|
1518
1518
|
next: we
|
|
1519
|
-
},
|
|
1519
|
+
}, i;
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
return ii[r] !== 1 && !ut(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
@@ -1524,20 +1524,20 @@ var ii = {
|
|
|
1524
1524
|
function lr(e, r, t) {
|
|
1525
1525
|
if (t == null)
|
|
1526
1526
|
return "";
|
|
1527
|
-
var
|
|
1528
|
-
if (
|
|
1529
|
-
return
|
|
1527
|
+
var a = t;
|
|
1528
|
+
if (a.__emotion_styles !== void 0)
|
|
1529
|
+
return a;
|
|
1530
1530
|
switch (typeof t) {
|
|
1531
1531
|
case "boolean":
|
|
1532
1532
|
return "";
|
|
1533
1533
|
case "object": {
|
|
1534
|
-
var
|
|
1535
|
-
if (
|
|
1534
|
+
var i = t;
|
|
1535
|
+
if (i.anim === 1)
|
|
1536
1536
|
return we = {
|
|
1537
|
-
name:
|
|
1538
|
-
styles:
|
|
1537
|
+
name: i.name,
|
|
1538
|
+
styles: i.styles,
|
|
1539
1539
|
next: we
|
|
1540
|
-
},
|
|
1540
|
+
}, i.name;
|
|
1541
1541
|
var o = t;
|
|
1542
1542
|
if (o.styles !== void 0) {
|
|
1543
1543
|
var l = o.next;
|
|
@@ -1565,63 +1565,63 @@ function lr(e, r, t) {
|
|
|
1565
1565
|
return g;
|
|
1566
1566
|
}
|
|
1567
1567
|
function ci(e, r, t) {
|
|
1568
|
-
var
|
|
1568
|
+
var a = "";
|
|
1569
1569
|
if (Array.isArray(t))
|
|
1570
|
-
for (var
|
|
1571
|
-
|
|
1570
|
+
for (var i = 0; i < t.length; i++)
|
|
1571
|
+
a += lr(e, r, t[i]) + ";";
|
|
1572
1572
|
else
|
|
1573
1573
|
for (var o in t) {
|
|
1574
1574
|
var l = t[o];
|
|
1575
1575
|
if (typeof l != "object") {
|
|
1576
1576
|
var d = l;
|
|
1577
|
-
P1(d) && (
|
|
1577
|
+
P1(d) && (a += Zr(o) + ":" + $1(o, d) + ";");
|
|
1578
1578
|
} else {
|
|
1579
1579
|
if (o === "NO_COMPONENT_SELECTOR" && ai)
|
|
1580
1580
|
throw new Error(li);
|
|
1581
1581
|
if (Array.isArray(l) && typeof l[0] == "string" && r == null)
|
|
1582
1582
|
for (var c = 0; c < l.length; c++)
|
|
1583
|
-
P1(l[c]) && (
|
|
1583
|
+
P1(l[c]) && (a += Zr(o) + ":" + $1(o, l[c]) + ";");
|
|
1584
1584
|
else {
|
|
1585
1585
|
var f = lr(e, r, l);
|
|
1586
1586
|
switch (o) {
|
|
1587
1587
|
case "animation":
|
|
1588
1588
|
case "animationName": {
|
|
1589
|
-
|
|
1589
|
+
a += Zr(o) + ":" + f + ";";
|
|
1590
1590
|
break;
|
|
1591
1591
|
}
|
|
1592
1592
|
default:
|
|
1593
|
-
|
|
1593
|
+
a += o + "{" + f + "}";
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
return
|
|
1598
|
+
return a;
|
|
1599
1599
|
}
|
|
1600
1600
|
var D1 = /label:\s*([^\s;{]+)\s*(;|$)/g, we;
|
|
1601
1601
|
function di(e, r, t) {
|
|
1602
1602
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1603
1603
|
return e[0];
|
|
1604
|
-
var
|
|
1604
|
+
var a = !0, i = "";
|
|
1605
1605
|
we = void 0;
|
|
1606
1606
|
var o = e[0];
|
|
1607
1607
|
if (o == null || o.raw === void 0)
|
|
1608
|
-
|
|
1608
|
+
a = !1, i += lr(t, r, o);
|
|
1609
1609
|
else {
|
|
1610
1610
|
var l = o;
|
|
1611
|
-
|
|
1611
|
+
i += l[0];
|
|
1612
1612
|
}
|
|
1613
1613
|
for (var d = 1; d < e.length; d++)
|
|
1614
|
-
if (
|
|
1614
|
+
if (i += lr(t, r, e[d]), a) {
|
|
1615
1615
|
var c = o;
|
|
1616
|
-
|
|
1616
|
+
i += c[d];
|
|
1617
1617
|
}
|
|
1618
1618
|
D1.lastIndex = 0;
|
|
1619
|
-
for (var f = "", g; (g = D1.exec(
|
|
1619
|
+
for (var f = "", g; (g = D1.exec(i)) !== null; )
|
|
1620
1620
|
f += "-" + g[1];
|
|
1621
|
-
var C = ni(
|
|
1621
|
+
var C = ni(i) + f;
|
|
1622
1622
|
return {
|
|
1623
1623
|
name: C,
|
|
1624
|
-
styles:
|
|
1624
|
+
styles: i,
|
|
1625
1625
|
next: we
|
|
1626
1626
|
};
|
|
1627
1627
|
}
|
|
@@ -1640,26 +1640,26 @@ var pi = function(r) {
|
|
|
1640
1640
|
);
|
|
1641
1641
|
ft.Provider;
|
|
1642
1642
|
var gi = function(r) {
|
|
1643
|
-
return /* @__PURE__ */ xe(function(t,
|
|
1644
|
-
var
|
|
1645
|
-
return r(t,
|
|
1643
|
+
return /* @__PURE__ */ xe(function(t, a) {
|
|
1644
|
+
var i = Te(ft);
|
|
1645
|
+
return r(t, i, a);
|
|
1646
1646
|
});
|
|
1647
1647
|
}, xi = /* @__PURE__ */ Re.createContext({}), Ir = {}.hasOwnProperty, Kr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ht = function(r, t) {
|
|
1648
|
-
var
|
|
1649
|
-
for (var
|
|
1650
|
-
Ir.call(t,
|
|
1651
|
-
return
|
|
1648
|
+
var a = {};
|
|
1649
|
+
for (var i in t)
|
|
1650
|
+
Ir.call(t, i) && (a[i] = t[i]);
|
|
1651
|
+
return a[Kr] = r, a;
|
|
1652
1652
|
}, Ci = function(r) {
|
|
1653
|
-
var t = r.cache,
|
|
1654
|
-
return pt(t,
|
|
1655
|
-
return ti(t,
|
|
1653
|
+
var t = r.cache, a = r.serialized, i = r.isStringTag;
|
|
1654
|
+
return pt(t, a, i), fi(function() {
|
|
1655
|
+
return ti(t, a, i);
|
|
1656
1656
|
}), null;
|
|
1657
1657
|
}, bi = /* @__PURE__ */ gi(
|
|
1658
1658
|
/* <any, any> */
|
|
1659
1659
|
function(e, r, t) {
|
|
1660
|
-
var
|
|
1661
|
-
typeof
|
|
1662
|
-
var
|
|
1660
|
+
var a = e.css;
|
|
1661
|
+
typeof a == "string" && r.registered[a] !== void 0 && (a = r.registered[a]);
|
|
1662
|
+
var i = e[Kr], o = [a], l = "";
|
|
1663
1663
|
typeof e.className == "string" ? l = ri(r.registered, o, e.className) : e.className != null && (l = e.className + " ");
|
|
1664
1664
|
var d = di(o, void 0, Re.useContext(xi));
|
|
1665
1665
|
l += r.key + "-" + d.name;
|
|
@@ -1669,8 +1669,8 @@ var gi = function(r) {
|
|
|
1669
1669
|
return c.className = l, t && (c.ref = t), /* @__PURE__ */ Re.createElement(Re.Fragment, null, /* @__PURE__ */ Re.createElement(Ci, {
|
|
1670
1670
|
cache: r,
|
|
1671
1671
|
serialized: d,
|
|
1672
|
-
isStringTag: typeof
|
|
1673
|
-
}), /* @__PURE__ */ Re.createElement(
|
|
1672
|
+
isStringTag: typeof i == "string"
|
|
1673
|
+
}), /* @__PURE__ */ Re.createElement(i, c));
|
|
1674
1674
|
}
|
|
1675
1675
|
), gt = bi, be = ar.Fragment;
|
|
1676
1676
|
function n(e, r, t) {
|
|
@@ -1686,10 +1686,10 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
1686
1686
|
), t = de(
|
|
1687
1687
|
(l) => l || e.primary.contrastText,
|
|
1688
1688
|
[e.primary.contrastText]
|
|
1689
|
-
),
|
|
1689
|
+
), a = de(
|
|
1690
1690
|
(l) => l || e.text.primary,
|
|
1691
1691
|
[e.text.primary]
|
|
1692
|
-
),
|
|
1692
|
+
), i = de(async (l, d, c) => {
|
|
1693
1693
|
if (c)
|
|
1694
1694
|
return import("./tracktor-logo-BZpNIZuZ.js");
|
|
1695
1695
|
switch (l) {
|
|
@@ -1722,14 +1722,14 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
1722
1722
|
[]
|
|
1723
1723
|
);
|
|
1724
1724
|
return {
|
|
1725
|
-
getImageModule:
|
|
1726
|
-
getShapeBackgroundColor:
|
|
1725
|
+
getImageModule: i,
|
|
1726
|
+
getShapeBackgroundColor: a,
|
|
1727
1727
|
getShapeColor: t,
|
|
1728
1728
|
getSize: o,
|
|
1729
1729
|
getTextColor: r
|
|
1730
1730
|
};
|
|
1731
|
-
}, Ri = ({ colorShape: e, shapeBackgroundColor: r, color: t, height:
|
|
1732
|
-
const [C, y] = ae(""), { palette: h } = ge(), { getTextColor: M, getImageModule: b, getSize: u, getShapeColor: v, getShapeBackgroundColor: S } = Si(), { height: w, width: R } = u({ height:
|
|
1731
|
+
}, Ri = ({ colorShape: e, shapeBackgroundColor: r, color: t, height: a, width: i, withoutText: o, mode: l, sx: d, variant: c = "default", component: f = "img" }, g) => {
|
|
1732
|
+
const [C, y] = ae(""), { palette: h } = ge(), { getTextColor: M, getImageModule: b, getSize: u, getShapeColor: v, getShapeBackgroundColor: S } = Si(), { height: w, width: R } = u({ height: a, variant: c, width: i, withoutText: o }), p = M(t), _ = v(e), A = S(r);
|
|
1733
1733
|
if (Rr(() => {
|
|
1734
1734
|
f !== "svg" && (async () => {
|
|
1735
1735
|
const j = await b(c, l || h.mode, o);
|
|
@@ -1885,7 +1885,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
1885
1885
|
"path",
|
|
1886
1886
|
{
|
|
1887
1887
|
d: "M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z",
|
|
1888
|
-
fill:
|
|
1888
|
+
fill: A
|
|
1889
1889
|
}
|
|
1890
1890
|
),
|
|
1891
1891
|
/* @__PURE__ */ E("g", { clipPath: "url(#clip0_14141_226706)", children: [
|
|
@@ -1999,7 +1999,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
1999
1999
|
"path",
|
|
2000
2000
|
{
|
|
2001
2001
|
d: "M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z",
|
|
2002
|
-
fill:
|
|
2002
|
+
fill: A
|
|
2003
2003
|
}
|
|
2004
2004
|
),
|
|
2005
2005
|
/* @__PURE__ */ E("g", { clipPath: "url(#clip0_14141_226601)", children: [
|
|
@@ -2094,7 +2094,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2094
2094
|
]
|
|
2095
2095
|
}
|
|
2096
2096
|
);
|
|
2097
|
-
}, Ti = xe(Ri), Ma = ({ component: e = "a", ...r }) => /* @__PURE__ */ n(Yt, { component: e, onClick: (t) => t.preventDefault(), ...r }),
|
|
2097
|
+
}, Ti = xe(Ri), Ma = ({ component: e = "a", ...r }) => /* @__PURE__ */ n(Yt, { component: e, onClick: (t) => t.preventDefault(), ...r }), Ai = ({ children: e, sx: r, ...t }, a) => /* @__PURE__ */ n(
|
|
2098
2098
|
t1,
|
|
2099
2099
|
{
|
|
2100
2100
|
sx: {
|
|
@@ -2110,11 +2110,11 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2110
2110
|
width: "100%",
|
|
2111
2111
|
...r
|
|
2112
2112
|
},
|
|
2113
|
-
ref:
|
|
2113
|
+
ref: a,
|
|
2114
2114
|
...t,
|
|
2115
2115
|
children: e
|
|
2116
2116
|
}
|
|
2117
|
-
), Sa = xe(
|
|
2117
|
+
), Sa = xe(Ai), ki = ({ className: e, style: r, minRows: t = 4, ...a }, i) => {
|
|
2118
2118
|
const { palette: o, shape: l, spacing: d } = ge();
|
|
2119
2119
|
return /* @__PURE__ */ E(be, { children: [
|
|
2120
2120
|
/* @__PURE__ */ n(
|
|
@@ -2134,7 +2134,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2134
2134
|
Ut,
|
|
2135
2135
|
{
|
|
2136
2136
|
className: [e, "MuiTextArea"].join(" ").trim(),
|
|
2137
|
-
ref:
|
|
2137
|
+
ref: i,
|
|
2138
2138
|
minRows: t,
|
|
2139
2139
|
style: {
|
|
2140
2140
|
backgroundColor: "transparent",
|
|
@@ -2147,27 +2147,27 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2147
2147
|
padding: d(1),
|
|
2148
2148
|
...r
|
|
2149
2149
|
},
|
|
2150
|
-
...
|
|
2150
|
+
...a
|
|
2151
2151
|
}
|
|
2152
2152
|
)
|
|
2153
2153
|
] });
|
|
2154
|
-
}, Ra = xe(
|
|
2154
|
+
}, Ra = xe(ki), Ta = ({ fullWidth: e, value: r, setValue: t, min: a = 1, max: i = 50, ...o }) => /* @__PURE__ */ n(
|
|
2155
2155
|
n1,
|
|
2156
2156
|
{
|
|
2157
2157
|
onChange: (C) => {
|
|
2158
2158
|
const { target: y } = C, h = +y.value;
|
|
2159
|
-
h <=
|
|
2159
|
+
h <= i && h >= a && (t == null || t(h));
|
|
2160
2160
|
},
|
|
2161
2161
|
autoComplete: "off",
|
|
2162
2162
|
InputProps: {
|
|
2163
|
-
endAdornment: /* @__PURE__ */ n(br, { position: "end", children: /* @__PURE__ */ n(
|
|
2163
|
+
endAdornment: /* @__PURE__ */ n(br, { position: "end", children: /* @__PURE__ */ n(ke, { disabled: r === i, onClick: () => {
|
|
2164
2164
|
const C = Number(r) + 1;
|
|
2165
|
-
t == null || t(C <=
|
|
2165
|
+
t == null || t(C <= i ? C : Number(r));
|
|
2166
2166
|
}, size: "small", "aria-label": "increment", children: /* @__PURE__ */ n(Me, { viewBox: "0 0 24 24", children: /* @__PURE__ */ n("path", { d: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z" }) }) }) }),
|
|
2167
|
-
startAdornment: /* @__PURE__ */ n(br, { position: "start", children: /* @__PURE__ */ n(
|
|
2167
|
+
startAdornment: /* @__PURE__ */ n(br, { position: "start", children: /* @__PURE__ */ n(ke, { onClick: () => {
|
|
2168
2168
|
const C = Number(r) - 1;
|
|
2169
|
-
t == null || t(C >=
|
|
2170
|
-
}, disabled: r ===
|
|
2169
|
+
t == null || t(C >= a ? C : Number(r));
|
|
2170
|
+
}, disabled: r === a || r === 0, size: "small", "aria-label": "decrement", children: /* @__PURE__ */ n(Me, { viewBox: "0 0 24 24", children: /* @__PURE__ */ n("path", { d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z" }) }) }) }),
|
|
2171
2171
|
sx: {
|
|
2172
2172
|
"& .MuiInputBase-input": {
|
|
2173
2173
|
textAlign: "center",
|
|
@@ -2186,17 +2186,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2186
2186
|
d: "M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"
|
|
2187
2187
|
}
|
|
2188
2188
|
) }), _i = () => {
|
|
2189
|
-
const { openDrawerMenu: e, AppBar: r } = Te(Ne), { palette: t } = ge(),
|
|
2190
|
-
return r ?
|
|
2189
|
+
const { openDrawerMenu: e, AppBar: r } = Te(Ne), { palette: t } = ge(), a = t.mode === "dark" ? t.background.default : t.primary.black, i = r && s1(r, { onClickBurger: e });
|
|
2190
|
+
return r ? i : /* @__PURE__ */ n(
|
|
2191
2191
|
Wr,
|
|
2192
2192
|
{
|
|
2193
2193
|
position: "fixed",
|
|
2194
2194
|
elevation: 0,
|
|
2195
2195
|
sx: {
|
|
2196
|
-
background:
|
|
2197
|
-
borderBottom: ({ palette: o }) => `1px solid ${o.mode === "dark" ? o.divider :
|
|
2196
|
+
background: a,
|
|
2197
|
+
borderBottom: ({ palette: o }) => `1px solid ${o.mode === "dark" ? o.divider : a}`
|
|
2198
2198
|
},
|
|
2199
|
-
children: /* @__PURE__ */ n(Gt, { component: B, direction: "row", spacing: 3, height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ n(
|
|
2199
|
+
children: /* @__PURE__ */ n(Gt, { component: B, direction: "row", spacing: 3, height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ n(ke, { onClick: e, edge: "end", color: "inherit", "aria-label": "menu", children: /* @__PURE__ */ n(xt, {}) }) })
|
|
2200
2200
|
}
|
|
2201
2201
|
);
|
|
2202
2202
|
}, p1 = ({ sx: e, color: r = "currentColor" }) => /* @__PURE__ */ n(
|
|
@@ -2210,9 +2210,9 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2210
2210
|
width: 24,
|
|
2211
2211
|
children: /* @__PURE__ */ n("path", { d: "M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" })
|
|
2212
2212
|
}
|
|
2213
|
-
), u1 = ({ url: e, end: r, children: t, active:
|
|
2213
|
+
), u1 = ({ url: e, end: r, children: t, active: a, state: i, component: o, disabled: l }) => {
|
|
2214
2214
|
const { closeDrawerMenu: d } = Te(Ne);
|
|
2215
|
-
return l ? /* @__PURE__ */ n(q, { component: "div", color: "text.disabled", "aria-disabled": "true", children: t }) : o ? /* @__PURE__ */ n(o, { onClick: d, to: e || "#", end: r, state:
|
|
2215
|
+
return l ? /* @__PURE__ */ n(q, { component: "div", color: "text.disabled", "aria-disabled": "true", children: t }) : o ? /* @__PURE__ */ n(o, { onClick: d, to: e || "#", end: r, state: i, children: t }) : /* @__PURE__ */ n(L, { component: "a", href: e, onClick: d, className: a ? "active" : void 0, "data-end": r, "data-state": i, children: t });
|
|
2216
2216
|
}, Qe = {
|
|
2217
2217
|
bottomLink: {
|
|
2218
2218
|
"& a": {
|
|
@@ -2270,8 +2270,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2270
2270
|
}, z1 = ({ children: e, ...r }) => {
|
|
2271
2271
|
const {
|
|
2272
2272
|
hideSearchDesktop: t,
|
|
2273
|
-
closeDrawerMenu:
|
|
2274
|
-
isMobile:
|
|
2273
|
+
closeDrawerMenu: a,
|
|
2274
|
+
isMobile: i,
|
|
2275
2275
|
isTablet: o,
|
|
2276
2276
|
isDrawerOpen: l,
|
|
2277
2277
|
sideBarWidth: d,
|
|
@@ -2280,7 +2280,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2280
2280
|
Footer: g,
|
|
2281
2281
|
Search: C = r.Logo,
|
|
2282
2282
|
Logo: y = r.Logo
|
|
2283
|
-
} = Te(Ne), { palette: h } = ge(), M = h.mode === "dark" ? h.background.default : h.primary.black, b =
|
|
2283
|
+
} = Te(Ne), { palette: h } = ge(), M = h.mode === "dark" ? h.background.default : h.primary.black, b = i && l ? "none" : `solid 1px ${h.divider}`, v = t ? !(!i && !o) : !0;
|
|
2284
2284
|
return /* @__PURE__ */ E(
|
|
2285
2285
|
L,
|
|
2286
2286
|
{
|
|
@@ -2288,7 +2288,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2288
2288
|
...Qe.container,
|
|
2289
2289
|
borderRight: b,
|
|
2290
2290
|
overflowX: "auto",
|
|
2291
|
-
width:
|
|
2291
|
+
width: i ? "100%" : d || "auto"
|
|
2292
2292
|
},
|
|
2293
2293
|
component: "aside",
|
|
2294
2294
|
children: [
|
|
@@ -2308,7 +2308,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2308
2308
|
{
|
|
2309
2309
|
sx: {
|
|
2310
2310
|
...Qe.logo,
|
|
2311
|
-
...
|
|
2311
|
+
...i && {
|
|
2312
2312
|
"& svg, & img": {
|
|
2313
2313
|
...Qe.logo["& svg, & img"],
|
|
2314
2314
|
maxHeight: 25,
|
|
@@ -2319,7 +2319,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2319
2319
|
children: y
|
|
2320
2320
|
}
|
|
2321
2321
|
),
|
|
2322
|
-
|
|
2322
|
+
i && /* @__PURE__ */ n(ke, { onClick: a, children: /* @__PURE__ */ n(p1, { color: h.getContrastText(M) }) })
|
|
2323
2323
|
]
|
|
2324
2324
|
}
|
|
2325
2325
|
),
|
|
@@ -2376,12 +2376,15 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2376
2376
|
mt: 3
|
|
2377
2377
|
}
|
|
2378
2378
|
}, Z1 = ({ items: e, ...r }) => {
|
|
2379
|
-
const { NavLink: t = r.NavLink, isMobile:
|
|
2380
|
-
return /* @__PURE__ */ n(L, { px: 2, component: "nav", children: /* @__PURE__ */ n(yr, { sx: { ...Fi.list }, children: e == null ? void 0 : e.filter((
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2379
|
+
const { NavLink: t = r.NavLink, isMobile: a } = Te(Ne);
|
|
2380
|
+
return /* @__PURE__ */ n(L, { px: 2, component: "nav", children: /* @__PURE__ */ n(yr, { sx: { ...Fi.list }, children: e == null ? void 0 : e.filter((i) => {
|
|
2381
|
+
const o = !(i && typeof i == "object" && "hideOnMobile" in i && a && i.hideOnMobile), l = !(i && typeof i == "object" && "hasAccess" in i && !i.hasAccess);
|
|
2382
|
+
return o && l;
|
|
2383
|
+
}).map((i, o) => {
|
|
2384
|
+
if (Tr(i))
|
|
2385
|
+
return i;
|
|
2386
|
+
if (i && typeof i == "object" && "label" in i) {
|
|
2387
|
+
const { count: l, url: d, label: c, icon: f, active: g, disabled: C } = i, y = `${d}-${c}-${o}`;
|
|
2385
2388
|
return /* @__PURE__ */ n(_e, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ n(u1, { url: d, component: t, active: g, disabled: C, children: /* @__PURE__ */ E(B, { direction: "row", component: "span", spacing: 1.5, width: "100%", alignItems: "center", children: [
|
|
2386
2389
|
f && /* @__PURE__ */ n(L, { component: "span", display: "flex", alignItems: "center", children: f }),
|
|
2387
2390
|
/* @__PURE__ */ E(B, { direction: "row", justifyContent: "space-between", flex: 1, children: [
|
|
@@ -2401,17 +2404,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2401
2404
|
openDrawerMenu: () => {
|
|
2402
2405
|
}
|
|
2403
2406
|
}, Ne = Sr(Ct), Ii = () => {
|
|
2404
|
-
const { items: e, disableResponsive: r, isMobile: t, isTablet:
|
|
2405
|
-
return (t ||
|
|
2407
|
+
const { items: e, disableResponsive: r, isMobile: t, isTablet: a, isDrawerOpen: i, closeDrawerMenu: o, sideBarWidth: l, openDrawerMenu: d } = Te(Ne);
|
|
2408
|
+
return (t || a) && !r ? /* @__PURE__ */ E(be, { children: [
|
|
2406
2409
|
/* @__PURE__ */ n(_i, {}),
|
|
2407
|
-
/* @__PURE__ */ n(Xt, { anchor: "left", open:
|
|
2410
|
+
/* @__PURE__ */ n(Xt, { anchor: "left", open: i, onClose: o, onOpen: d, children: /* @__PURE__ */ n(z1, { children: /* @__PURE__ */ n(Z1, { items: e }) }) })
|
|
2408
2411
|
] }) : /* @__PURE__ */ n(z1, { width: l, children: /* @__PURE__ */ n(Z1, { items: e }) });
|
|
2409
2412
|
}, Hi = ({
|
|
2410
2413
|
AppBar: e,
|
|
2411
2414
|
NavLink: r,
|
|
2412
2415
|
Search: t,
|
|
2413
|
-
Logo:
|
|
2414
|
-
Footer:
|
|
2416
|
+
Logo: a,
|
|
2417
|
+
Footer: i,
|
|
2415
2418
|
items: o,
|
|
2416
2419
|
enableSearchFocusShortcut: l,
|
|
2417
2420
|
disableResponsive: d,
|
|
@@ -2423,20 +2426,20 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2423
2426
|
b(!1);
|
|
2424
2427
|
}, []), v = de(() => {
|
|
2425
2428
|
b(!0);
|
|
2426
|
-
}, []), S =
|
|
2429
|
+
}, []), S = Ar(
|
|
2427
2430
|
() => ({
|
|
2428
2431
|
AppBar: e,
|
|
2429
2432
|
bottomLink: f,
|
|
2430
2433
|
closeDrawerMenu: u,
|
|
2431
2434
|
disableResponsive: d,
|
|
2432
2435
|
enableSearchFocusShortcut: l,
|
|
2433
|
-
Footer:
|
|
2436
|
+
Footer: i,
|
|
2434
2437
|
hideSearchDesktop: c,
|
|
2435
2438
|
isDrawerOpen: M,
|
|
2436
2439
|
isMobile: y,
|
|
2437
2440
|
isTablet: h,
|
|
2438
2441
|
items: o,
|
|
2439
|
-
Logo:
|
|
2442
|
+
Logo: a,
|
|
2440
2443
|
NavLink: r,
|
|
2441
2444
|
openDrawerMenu: v,
|
|
2442
2445
|
Search: t,
|
|
@@ -2451,22 +2454,22 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2451
2454
|
o,
|
|
2452
2455
|
v,
|
|
2453
2456
|
g,
|
|
2454
|
-
|
|
2457
|
+
a,
|
|
2455
2458
|
r,
|
|
2456
2459
|
l,
|
|
2457
2460
|
t,
|
|
2458
2461
|
c,
|
|
2459
2462
|
f,
|
|
2460
2463
|
e,
|
|
2461
|
-
|
|
2464
|
+
i
|
|
2462
2465
|
]
|
|
2463
2466
|
);
|
|
2464
2467
|
return /* @__PURE__ */ n(Ne.Provider, { value: S, children: /* @__PURE__ */ n(Ii, {}) });
|
|
2465
|
-
},
|
|
2468
|
+
}, Aa = et(Hi), Li = "No data", N1 = {
|
|
2466
2469
|
large: 80,
|
|
2467
2470
|
medium: 50,
|
|
2468
2471
|
small: 40
|
|
2469
|
-
}, Oi = ({ children: e, ...r }, t) => /* @__PURE__ */ n(t1, { component: "li", ref: t, ...r, children: e }), Vi = xe(Oi), Pi = ({ children: e, isEmpty: r, isLoading: t, emptyMessage:
|
|
2472
|
+
}, Oi = ({ children: e, ...r }, t) => /* @__PURE__ */ n(t1, { component: "li", ref: t, ...r, children: e }), Vi = xe(Oi), Pi = ({ children: e, isEmpty: r, isLoading: t, emptyMessage: a, sx: i, height: o, onClick: l, size: d = "medium", ...c }, f) => t ? /* @__PURE__ */ n(fe, { width: "100%", variant: "rounded", height: o || N1[d], sx: { marginBottom: 1 }, ref: f, component: "li" }) : r ? /* @__PURE__ */ n(_e, { disablePadding: !0, children: /* @__PURE__ */ n(i1, { severity: "info", sx: { width: "100%" }, ref: f, children: a || Li }) }) : /* @__PURE__ */ n(
|
|
2470
2473
|
_e,
|
|
2471
2474
|
{
|
|
2472
2475
|
component: Vi,
|
|
@@ -2485,23 +2488,23 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2485
2488
|
},
|
|
2486
2489
|
cursor: "pointer"
|
|
2487
2490
|
},
|
|
2488
|
-
...
|
|
2491
|
+
...i
|
|
2489
2492
|
},
|
|
2490
2493
|
...c,
|
|
2491
2494
|
children: /* @__PURE__ */ n(L, { flex: "auto", minWidth: 0, children: e })
|
|
2492
2495
|
}
|
|
2493
|
-
),
|
|
2496
|
+
), ka = et(xe(Pi)), $i = ["warning", "info", "success", "error", "primary", "secondary"], Di = (e) => $i.includes(e), Bi = ({ color: e, sx: r, variant: t = "filled", fontSize: a = "medium" }, i) => {
|
|
2494
2497
|
var g;
|
|
2495
2498
|
const { palette: o } = ge(), l = o.mode === "dark" ? o.text.disabled : o.grey[400], d = e || l, c = Di(e) ? (g = o == null ? void 0 : o[e]) == null ? void 0 : g.main : d, f = ye(c, 0.2);
|
|
2496
2499
|
return /* @__PURE__ */ E(
|
|
2497
2500
|
Me,
|
|
2498
2501
|
{
|
|
2499
2502
|
viewBox: "0 0 16 16",
|
|
2500
|
-
ref:
|
|
2501
|
-
fontSize:
|
|
2503
|
+
ref: i,
|
|
2504
|
+
fontSize: a,
|
|
2502
2505
|
sx: {
|
|
2503
|
-
...
|
|
2504
|
-
...
|
|
2506
|
+
...a === "small" && { fontSize: 16 },
|
|
2507
|
+
...a === "large" && { fontSize: 32 },
|
|
2505
2508
|
...r
|
|
2506
2509
|
},
|
|
2507
2510
|
children: [
|
|
@@ -2539,17 +2542,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2539
2542
|
children: e,
|
|
2540
2543
|
isLoading: r,
|
|
2541
2544
|
loadingIndicator: t,
|
|
2542
|
-
loadingPosition:
|
|
2543
|
-
size:
|
|
2545
|
+
loadingPosition: a,
|
|
2546
|
+
size: i,
|
|
2544
2547
|
startIcon: o,
|
|
2545
2548
|
endIcon: l
|
|
2546
2549
|
}) => {
|
|
2547
2550
|
const d = o || l;
|
|
2548
|
-
return r &&
|
|
2549
|
-
/* @__PURE__ */ n(Mr, { size:
|
|
2551
|
+
return r && a ? /* @__PURE__ */ E(B, { direction: a === "start" ? "row" : "row-reverse", alignItems: "center", children: [
|
|
2552
|
+
/* @__PURE__ */ n(Mr, { size: i, position: "relative", loadingPosition: a }),
|
|
2550
2553
|
/* @__PURE__ */ n(L, { component: "span", children: e })
|
|
2551
2554
|
] }) : r && !t && !d ? /* @__PURE__ */ E(be, { children: [
|
|
2552
|
-
r && !t && /* @__PURE__ */ n(Mr, { size:
|
|
2555
|
+
r && !t && /* @__PURE__ */ n(Mr, { size: i }),
|
|
2553
2556
|
/* @__PURE__ */ n(L, { component: "span", sx: { opacity: 0 }, children: e })
|
|
2554
2557
|
] }) : r && t ? /* @__PURE__ */ E(be, { children: [
|
|
2555
2558
|
" ",
|
|
@@ -2559,8 +2562,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2559
2562
|
}, Ni = (e, r) => {
|
|
2560
2563
|
const {
|
|
2561
2564
|
children: t,
|
|
2562
|
-
disabled:
|
|
2563
|
-
disableRipple:
|
|
2565
|
+
disabled: a,
|
|
2566
|
+
disableRipple: i,
|
|
2564
2567
|
isLoading: o,
|
|
2565
2568
|
loadingIndicator: l,
|
|
2566
2569
|
loadingPosition: d,
|
|
@@ -2573,11 +2576,11 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2573
2576
|
return /* @__PURE__ */ n(
|
|
2574
2577
|
a1,
|
|
2575
2578
|
{
|
|
2576
|
-
disabled:
|
|
2579
|
+
disabled: a || o,
|
|
2577
2580
|
ref: r,
|
|
2578
2581
|
size: c,
|
|
2579
2582
|
variant: f,
|
|
2580
|
-
disableRipple:
|
|
2583
|
+
disableRipple: i || f === "link",
|
|
2581
2584
|
startIcon: o && g ? /* @__PURE__ */ n(Mr, { position: "relative", size: c }) : g,
|
|
2582
2585
|
endIcon: o && C ? /* @__PURE__ */ n(Mr, { position: "relative", size: c }) : C,
|
|
2583
2586
|
...y,
|
|
@@ -2595,15 +2598,15 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2595
2598
|
)
|
|
2596
2599
|
}
|
|
2597
2600
|
);
|
|
2598
|
-
}, _a = xe(Ni), bt = ({ children: e, open: r, onClose: t, src:
|
|
2601
|
+
}, _a = xe(Ni), bt = ({ children: e, open: r, onClose: t, src: a, ...i }) => {
|
|
2599
2602
|
const [o, l] = ae(!1), d = () => {
|
|
2600
2603
|
l(!0);
|
|
2601
2604
|
}, c = (f, g) => (f && (t == null || t(f, g), l(!1)), (C) => {
|
|
2602
2605
|
t == null || t(C, g), l(!1);
|
|
2603
2606
|
});
|
|
2604
|
-
return /* @__PURE__ */ n(qt, { open: r, onClose: c, ...
|
|
2607
|
+
return /* @__PURE__ */ n(qt, { open: r, onClose: c, ...i, children: /* @__PURE__ */ E(be, { children: [
|
|
2605
2608
|
/* @__PURE__ */ n(
|
|
2606
|
-
|
|
2609
|
+
ke,
|
|
2607
2610
|
{
|
|
2608
2611
|
size: "small",
|
|
2609
2612
|
"aria-label": "close",
|
|
@@ -2635,12 +2638,12 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2635
2638
|
top: "50%",
|
|
2636
2639
|
transform: "translate(-50%, -50%)"
|
|
2637
2640
|
},
|
|
2638
|
-
children: e || /* @__PURE__ */ n(Jt, { in: r && o, children: /* @__PURE__ */ n(L, { component: "img", src:
|
|
2641
|
+
children: e || /* @__PURE__ */ n(Jt, { in: r && o, children: /* @__PURE__ */ n(L, { component: "img", src: a, width: "100%", onLoad: d }) })
|
|
2639
2642
|
}
|
|
2640
2643
|
)
|
|
2641
2644
|
] }) });
|
|
2642
2645
|
}, Fa = ({ onClick: e }) => /* @__PURE__ */ n(
|
|
2643
|
-
|
|
2646
|
+
ke,
|
|
2644
2647
|
{
|
|
2645
2648
|
"aria-label": "close",
|
|
2646
2649
|
onClick: e,
|
|
@@ -2651,8 +2654,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2651
2654
|
},
|
|
2652
2655
|
children: /* @__PURE__ */ n(p1, {})
|
|
2653
2656
|
}
|
|
2654
|
-
), Wi = ({ children: e, value: r, index: t, orientation:
|
|
2655
|
-
const f =
|
|
2657
|
+
), Wi = ({ children: e, value: r, index: t, orientation: a, paddingY: i, paddingX: o, fullHeight: l, sx: d }, c) => {
|
|
2658
|
+
const f = i || 3, g = o || a === "vertical" ? 3 : 0;
|
|
2656
2659
|
return r === t ? /* @__PURE__ */ n(
|
|
2657
2660
|
L,
|
|
2658
2661
|
{
|
|
@@ -2671,24 +2674,24 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2671
2674
|
isLoading: e,
|
|
2672
2675
|
children: r,
|
|
2673
2676
|
emptyText: t,
|
|
2674
|
-
typographyProps:
|
|
2675
|
-
skeletonProps:
|
|
2676
|
-
}) => e ? /* @__PURE__ */ n(q, { ...
|
|
2677
|
-
const { w:
|
|
2678
|
-
return
|
|
2679
|
-
}, W1 = ({ width: e, height: r, sx: t }) => /* @__PURE__ */ n(fe, { variant: "rounded", width: e, height: r, sx: t }), La = ({ src: e, isLoading: r, sx: t, width:
|
|
2680
|
-
const [l, d] = ae(), [c, f] = ae(), { shape: g } = ge(), { borderRadius: C, padding: y } = ji(
|
|
2677
|
+
typographyProps: a = { color: "text.secondary", variant: "body2" },
|
|
2678
|
+
skeletonProps: i
|
|
2679
|
+
}) => e ? /* @__PURE__ */ n(q, { ...a, children: /* @__PURE__ */ n(fe, { ...i }) }) : r ? /* @__PURE__ */ n(q, { ...a, children: r }) : /* @__PURE__ */ n(q, { ...a, color: "text.disabled", children: t }), ji = (e, r, t) => {
|
|
2680
|
+
const { w: a, h: i } = { h: Number(r), w: Number(e) };
|
|
2681
|
+
return a < 25 || i < 25 ? { borderRadius: `${t.borderRadiusS}px`, padding: 0.5 } : a < 50 || i < 50 ? { borderRadius: `${t.borderRadius}px`, padding: 1 } : { borderRadius: `${t.borderRadiusL}px`, padding: 1.5 };
|
|
2682
|
+
}, W1 = ({ width: e, height: r, sx: t }) => /* @__PURE__ */ n(fe, { variant: "rounded", width: e, height: r, sx: t }), La = ({ src: e, isLoading: r, sx: t, width: a = 64, height: i = 64, alt: o = "Article" }) => {
|
|
2683
|
+
const [l, d] = ae(), [c, f] = ae(), { shape: g } = ge(), { borderRadius: C, padding: y } = ji(a, i, g), h = { borderRadius: C, flexShrink: 0 }, M = e && !l && !c, b = !e || c && !l || c && l, u = (v) => {
|
|
2681
2684
|
f(void 0), d(v);
|
|
2682
2685
|
};
|
|
2683
|
-
return r ? /* @__PURE__ */ n(W1, { width:
|
|
2684
|
-
M && /* @__PURE__ */ n(W1, { width:
|
|
2686
|
+
return r ? /* @__PURE__ */ n(W1, { width: a, height: i, sx: h }) : /* @__PURE__ */ E(be, { children: [
|
|
2687
|
+
M && /* @__PURE__ */ n(W1, { width: a, height: i, sx: h }),
|
|
2685
2688
|
b && /* @__PURE__ */ n(
|
|
2686
2689
|
B,
|
|
2687
2690
|
{
|
|
2688
2691
|
justifyContent: "center",
|
|
2689
2692
|
alignItems: "center",
|
|
2690
|
-
width:
|
|
2691
|
-
height:
|
|
2693
|
+
width: a,
|
|
2694
|
+
height: i,
|
|
2692
2695
|
sx: {
|
|
2693
2696
|
background: ({ palette: v }) => v.background.paper,
|
|
2694
2697
|
padding: y,
|
|
@@ -2733,8 +2736,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2733
2736
|
component: "img",
|
|
2734
2737
|
src: e,
|
|
2735
2738
|
alt: o,
|
|
2736
|
-
width:
|
|
2737
|
-
height:
|
|
2739
|
+
width: a,
|
|
2740
|
+
height: i,
|
|
2738
2741
|
sx: h,
|
|
2739
2742
|
onError: f,
|
|
2740
2743
|
onLoad: u,
|
|
@@ -2778,8 +2781,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2778
2781
|
src: e,
|
|
2779
2782
|
srcThumb: r,
|
|
2780
2783
|
fileName: t,
|
|
2781
|
-
children:
|
|
2782
|
-
width:
|
|
2784
|
+
children: a,
|
|
2785
|
+
width: i,
|
|
2783
2786
|
height: o,
|
|
2784
2787
|
sx: l,
|
|
2785
2788
|
widthLightbox: d,
|
|
@@ -2792,7 +2795,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2792
2795
|
onClickThumb: M,
|
|
2793
2796
|
variant: b
|
|
2794
2797
|
}) => {
|
|
2795
|
-
const [u, v] = ae(!1), [S, w] = ae(!1), R = e == null ? void 0 : e.toLowerCase(), p = !(R != null && R.endsWith(".pdf")) && !(R != null && R.startsWith("blob:")), _ = R == null ? void 0 : R.endsWith(".pdf"),
|
|
2798
|
+
const [u, v] = ae(!1), [S, w] = ae(!1), R = e == null ? void 0 : e.toLowerCase(), p = !(R != null && R.endsWith(".pdf")) && !(R != null && R.startsWith("blob:")), _ = R == null ? void 0 : R.endsWith(".pdf"), A = wr(null), j = S ? Yi : r || e, I = g ? 1 : 0.8, Q = () => {
|
|
2796
2799
|
v((P) => !P);
|
|
2797
2800
|
}, X = () => {
|
|
2798
2801
|
v(!1), h == null || h();
|
|
@@ -2800,19 +2803,19 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2800
2803
|
w(!0);
|
|
2801
2804
|
}, []);
|
|
2802
2805
|
return Rr(() => {
|
|
2803
|
-
const P =
|
|
2806
|
+
const P = A.current;
|
|
2804
2807
|
return P == null || P.addEventListener("error", Y), () => {
|
|
2805
2808
|
P == null || P.removeEventListener("error", Y);
|
|
2806
2809
|
};
|
|
2807
|
-
}, [Y,
|
|
2808
|
-
!C && !
|
|
2810
|
+
}, [Y, A]), /* @__PURE__ */ E(be, { children: [
|
|
2811
|
+
!C && !a && /* @__PURE__ */ n(
|
|
2809
2812
|
L,
|
|
2810
2813
|
{
|
|
2811
2814
|
"data-test": "fileViewer",
|
|
2812
2815
|
onClick: () => {
|
|
2813
2816
|
M == null || M(), Q();
|
|
2814
2817
|
},
|
|
2815
|
-
width:
|
|
2818
|
+
width: i,
|
|
2816
2819
|
height: o,
|
|
2817
2820
|
sx: {
|
|
2818
2821
|
...ur.container,
|
|
@@ -2831,7 +2834,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2831
2834
|
height: p ? "100%" : "auto",
|
|
2832
2835
|
width: "100%",
|
|
2833
2836
|
src: j || void 0,
|
|
2834
|
-
ref:
|
|
2837
|
+
ref: A,
|
|
2835
2838
|
sx: ur.thumb
|
|
2836
2839
|
},
|
|
2837
2840
|
j
|
|
@@ -2851,7 +2854,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2851
2854
|
}
|
|
2852
2855
|
}
|
|
2853
2856
|
) }),
|
|
2854
|
-
|
|
2857
|
+
a && /* @__PURE__ */ n(
|
|
2855
2858
|
L,
|
|
2856
2859
|
{
|
|
2857
2860
|
onClick: Q,
|
|
@@ -2859,7 +2862,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2859
2862
|
":hover": { opacity: I },
|
|
2860
2863
|
cursor: "pointer"
|
|
2861
2864
|
},
|
|
2862
|
-
children:
|
|
2865
|
+
children: a
|
|
2863
2866
|
}
|
|
2864
2867
|
)
|
|
2865
2868
|
] });
|
|
@@ -2867,8 +2870,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2867
2870
|
title: e,
|
|
2868
2871
|
subtitle: r,
|
|
2869
2872
|
isLastElement: t,
|
|
2870
|
-
active:
|
|
2871
|
-
onClick:
|
|
2873
|
+
active: a,
|
|
2874
|
+
onClick: i,
|
|
2872
2875
|
variant: o,
|
|
2873
2876
|
tag: l,
|
|
2874
2877
|
collapseItems: d,
|
|
@@ -2883,13 +2886,13 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2883
2886
|
c && M(!0);
|
|
2884
2887
|
}, [c]), /* @__PURE__ */ E(B, { direction: "row", alignItems: "stretch", spacing: 0, mt: 0.5, children: [
|
|
2885
2888
|
/* @__PURE__ */ n(L, { mt: 1.5, textAlign: "center", children: /* @__PURE__ */ n(B, { spacing: 1, alignItems: "center", sx: { height: "100%", width: 32 }, children: /* @__PURE__ */ E(be, { children: [
|
|
2886
|
-
g || /* @__PURE__ */ n(Cr, { color:
|
|
2889
|
+
g || /* @__PURE__ */ n(Cr, { color: a ? "secondary" : "primary" }),
|
|
2887
2890
|
/* @__PURE__ */ n(L, { sx: { flex: 1 }, children: !t && /* @__PURE__ */ n(
|
|
2888
2891
|
J1,
|
|
2889
2892
|
{
|
|
2890
2893
|
sx: {
|
|
2891
|
-
borderColor: ({ palette: u }) =>
|
|
2892
|
-
borderStyle:
|
|
2894
|
+
borderColor: ({ palette: u }) => a ? u.secondary.main : u.divider,
|
|
2895
|
+
borderStyle: a ? "solid" : "dashed",
|
|
2893
2896
|
height: "100%"
|
|
2894
2897
|
},
|
|
2895
2898
|
flexItem: !0,
|
|
@@ -2928,12 +2931,12 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2928
2931
|
q,
|
|
2929
2932
|
{
|
|
2930
2933
|
component: "span",
|
|
2931
|
-
onClick:
|
|
2934
|
+
onClick: i,
|
|
2932
2935
|
variant: "h6",
|
|
2933
2936
|
sx: {
|
|
2934
|
-
cursor: b ||
|
|
2937
|
+
cursor: b || i ? "pointer" : "default",
|
|
2935
2938
|
marginRight: 1,
|
|
2936
|
-
textDecoration:
|
|
2939
|
+
textDecoration: i ? "underline" : "none"
|
|
2937
2940
|
},
|
|
2938
2941
|
children: e
|
|
2939
2942
|
}
|
|
@@ -2968,14 +2971,14 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
2968
2971
|
C,
|
|
2969
2972
|
y && /* @__PURE__ */ n(T1, { in: h, children: y }),
|
|
2970
2973
|
!!(d != null && d.length) && /* @__PURE__ */ n(T1, { in: h, children: /* @__PURE__ */ n(B, { marginTop: 3, spacing: 3, children: d == null ? void 0 : d.map((u, v) => {
|
|
2971
|
-
var R, p, _,
|
|
2974
|
+
var R, p, _, A;
|
|
2972
2975
|
const S = `${u.title}-${v}`, w = Array.isArray(u == null ? void 0 : u.file) ? u == null ? void 0 : u.file[0] : u == null ? void 0 : u.file;
|
|
2973
2976
|
return /* @__PURE__ */ E(B, { direction: "row", spacing: 1, minWidth: 0, children: [
|
|
2974
2977
|
/* @__PURE__ */ n(Ui, { sx: { height: 18, paddingTop: 0.5, width: 18 } }),
|
|
2975
2978
|
/* @__PURE__ */ E(B, { minWidth: 0, children: [
|
|
2976
2979
|
/* @__PURE__ */ E(B, { direction: "row", alignItems: "center", spacing: 1, overflow: "hidden", children: [
|
|
2977
2980
|
(u == null ? void 0 : u.title) && /* @__PURE__ */ n(
|
|
2978
|
-
|
|
2981
|
+
A1,
|
|
2979
2982
|
{
|
|
2980
2983
|
title: u == null ? void 0 : u.title,
|
|
2981
2984
|
enterDelay: j1,
|
|
@@ -3001,7 +3004,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3001
3004
|
),
|
|
3002
3005
|
(u == null ? void 0 : u.tag) && /* @__PURE__ */ n(nr, { color: ((R = u == null ? void 0 : u.tag) == null ? void 0 : R.color) || "default", label: (p = u == null ? void 0 : u.tag) == null ? void 0 : p.label, size: "xSmall", variant: "outlined" })
|
|
3003
3006
|
] }),
|
|
3004
|
-
(u == null ? void 0 : u.subtitle) && /* @__PURE__ */ n(
|
|
3007
|
+
(u == null ? void 0 : u.subtitle) && /* @__PURE__ */ n(A1, { title: u == null ? void 0 : u.subtitle, enterDelay: j1, children: /* @__PURE__ */ n(
|
|
3005
3008
|
q,
|
|
3006
3009
|
{
|
|
3007
3010
|
variant: "body2",
|
|
@@ -3038,7 +3041,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3038
3041
|
justifyContent: "center",
|
|
3039
3042
|
width: fr
|
|
3040
3043
|
},
|
|
3041
|
-
children: `${(((
|
|
3044
|
+
children: `${(((A = u == null ? void 0 : u.file) == null ? void 0 : A.length) || 0) - 1}+`
|
|
3042
3045
|
}
|
|
3043
3046
|
)
|
|
3044
3047
|
] })
|
|
@@ -3053,12 +3056,12 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3053
3056
|
children: e,
|
|
3054
3057
|
sx: r,
|
|
3055
3058
|
"data-test": t,
|
|
3056
|
-
"data-testid":
|
|
3059
|
+
"data-testid": a
|
|
3057
3060
|
}) => /* @__PURE__ */ n(
|
|
3058
3061
|
t1,
|
|
3059
3062
|
{
|
|
3060
3063
|
"data-test": t,
|
|
3061
|
-
"data-testid":
|
|
3064
|
+
"data-testid": a,
|
|
3062
3065
|
sx: {
|
|
3063
3066
|
width: "100%",
|
|
3064
3067
|
...r
|
|
@@ -3069,13 +3072,13 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3069
3072
|
items: e,
|
|
3070
3073
|
isLoading: r,
|
|
3071
3074
|
emptyMessage: t,
|
|
3072
|
-
containerStyle:
|
|
3073
|
-
variant:
|
|
3075
|
+
containerStyle: a,
|
|
3076
|
+
variant: i,
|
|
3074
3077
|
"data-test": o,
|
|
3075
3078
|
"data-testid": l
|
|
3076
3079
|
}) => {
|
|
3077
3080
|
const [d, c] = ae("");
|
|
3078
|
-
return r ? /* @__PURE__ */ n(Nr, { sx:
|
|
3081
|
+
return r ? /* @__PURE__ */ n(Nr, { sx: a, "data-test": o, "data-testid": l, children: /* @__PURE__ */ E(B, { spacing: 3, children: [
|
|
3079
3082
|
/* @__PURE__ */ E(B, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
|
|
3080
3083
|
/* @__PURE__ */ n(Cr, {}),
|
|
3081
3084
|
/* @__PURE__ */ E(B, { children: [
|
|
@@ -3097,10 +3100,10 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3097
3100
|
/* @__PURE__ */ n(q, { variant: "body2", children: /* @__PURE__ */ n(fe, { width: 110, height: 20 }) })
|
|
3098
3101
|
] })
|
|
3099
3102
|
] })
|
|
3100
|
-
] }) }) : !(e != null && e.length) && !r ? /* @__PURE__ */ n(Nr, { sx:
|
|
3101
|
-
/* @__PURE__ */ n(Nr, { sx:
|
|
3103
|
+
] }) }) : !(e != null && e.length) && !r ? /* @__PURE__ */ n(Nr, { sx: a, children: /* @__PURE__ */ n(i1, { severity: "info", children: t }) }) : /* @__PURE__ */ E(be, { children: [
|
|
3104
|
+
/* @__PURE__ */ n(Nr, { sx: a, "data-test": o, "data-testid": l, children: e == null ? void 0 : e.map(
|
|
3102
3105
|
({ Action: f, Collapse: g, collapseItems: C, collapseDefaultOpen: y, subtitle: h, key: M, active: b, Footer: u, Icon: v, onClick: S, tag: w, title: R }, p) => {
|
|
3103
|
-
const _ = `${M}-${p}-${R}`,
|
|
3106
|
+
const _ = `${M}-${p}-${R}`, A = p === e.length - 1;
|
|
3104
3107
|
return /* @__PURE__ */ n(
|
|
3105
3108
|
Xi,
|
|
3106
3109
|
{
|
|
@@ -3113,10 +3116,10 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3113
3116
|
title: R,
|
|
3114
3117
|
subtitle: h,
|
|
3115
3118
|
Icon: v,
|
|
3116
|
-
isLastElement:
|
|
3119
|
+
isLastElement: A,
|
|
3117
3120
|
onClick: S,
|
|
3118
3121
|
tag: w,
|
|
3119
|
-
variant:
|
|
3122
|
+
variant: i
|
|
3120
3123
|
},
|
|
3121
3124
|
_
|
|
3122
3125
|
);
|
|
@@ -3125,7 +3128,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3125
3128
|
/* @__PURE__ */ n(bt, { open: !!d, onClose: () => c(""), src: d })
|
|
3126
3129
|
] });
|
|
3127
3130
|
}, Va = ({ Main: e, Sidebar: r, AppBar: t }) => {
|
|
3128
|
-
const { breakpoints:
|
|
3131
|
+
const { breakpoints: a } = ge(), i = wr(null), o = ir(a.down("md")), l = r && s1(r, { AppBar: t });
|
|
3129
3132
|
return /* @__PURE__ */ E(B, { height: "100%", children: [
|
|
3130
3133
|
!o && t,
|
|
3131
3134
|
/* @__PURE__ */ E(B, { height: "100%", direction: o ? "column" : "row", minHeight: 0, children: [
|
|
@@ -3138,7 +3141,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3138
3141
|
maxHeight: "100%",
|
|
3139
3142
|
overflow: "auto"
|
|
3140
3143
|
},
|
|
3141
|
-
ref:
|
|
3144
|
+
ref: i,
|
|
3142
3145
|
children: /* @__PURE__ */ n(L, { component: "main", height: "100%", children: e })
|
|
3143
3146
|
}
|
|
3144
3147
|
)
|
|
@@ -3404,16 +3407,16 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3404
3407
|
}
|
|
3405
3408
|
}
|
|
3406
3409
|
}, Ji = ({ sx: e, ...r }) => {
|
|
3407
|
-
var t,
|
|
3410
|
+
var t, a, i, o, l, d;
|
|
3408
3411
|
return /* @__PURE__ */ n(
|
|
3409
3412
|
vr,
|
|
3410
3413
|
{
|
|
3411
3414
|
variant: "rounded",
|
|
3412
3415
|
sx: {
|
|
3413
3416
|
"& svg": {
|
|
3414
|
-
color: (
|
|
3417
|
+
color: (a = (t = H == null ? void 0 : H.palette) == null ? void 0 : t.text) == null ? void 0 : a.disabled
|
|
3415
3418
|
},
|
|
3416
|
-
backgroundColor: (o = (
|
|
3419
|
+
backgroundColor: (o = (i = H == null ? void 0 : H.palette) == null ? void 0 : i.grey) == null ? void 0 : o[100],
|
|
3417
3420
|
color: (d = (l = H == null ? void 0 : H.palette) == null ? void 0 : l.text) == null ? void 0 : d.primary,
|
|
3418
3421
|
...e
|
|
3419
3422
|
},
|
|
@@ -3421,7 +3424,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3421
3424
|
}
|
|
3422
3425
|
);
|
|
3423
3426
|
}, Y1 = ({ sx: e, ...r }) => {
|
|
3424
|
-
var t,
|
|
3427
|
+
var t, a, i, o, l, d, c, f;
|
|
3425
3428
|
return /* @__PURE__ */ n(
|
|
3426
3429
|
a1,
|
|
3427
3430
|
{
|
|
@@ -3429,8 +3432,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3429
3432
|
size: "small",
|
|
3430
3433
|
sx: {
|
|
3431
3434
|
"&:hover": {
|
|
3432
|
-
backgroundColor: (
|
|
3433
|
-
borderColor: (
|
|
3435
|
+
backgroundColor: (a = (t = H == null ? void 0 : H.palette) == null ? void 0 : t.action) == null ? void 0 : a.hover,
|
|
3436
|
+
borderColor: (i = H == null ? void 0 : H.palette) == null ? void 0 : i.primary.main
|
|
3434
3437
|
},
|
|
3435
3438
|
backgroundColor: (l = (o = H == null ? void 0 : H.palette) == null ? void 0 : o.grey) == null ? void 0 : l["100"],
|
|
3436
3439
|
borderColor: (d = H == null ? void 0 : H.palette) == null ? void 0 : d.divider,
|
|
@@ -3440,7 +3443,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3440
3443
|
...r
|
|
3441
3444
|
}
|
|
3442
3445
|
);
|
|
3443
|
-
}, Ki = xe(({ sx: e, slotProps: r, type: t = "search", ...
|
|
3446
|
+
}, Ki = xe(({ sx: e, slotProps: r, type: t = "search", ...a }, i) => {
|
|
3444
3447
|
var o, l, d, c, f, g, C, y, h, M;
|
|
3445
3448
|
return /* @__PURE__ */ n(
|
|
3446
3449
|
n1,
|
|
@@ -3448,7 +3451,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3448
3451
|
fullWidth: !0,
|
|
3449
3452
|
size: "xSmall",
|
|
3450
3453
|
type: t,
|
|
3451
|
-
ref:
|
|
3454
|
+
ref: i,
|
|
3452
3455
|
sx: {
|
|
3453
3456
|
"& .MuiInputBase-root": {
|
|
3454
3457
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
@@ -3493,27 +3496,27 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3493
3496
|
...r == null ? void 0 : r.input
|
|
3494
3497
|
}
|
|
3495
3498
|
},
|
|
3496
|
-
...
|
|
3499
|
+
...a
|
|
3497
3500
|
}
|
|
3498
3501
|
);
|
|
3499
3502
|
}), Qi = () => {
|
|
3500
|
-
const [e, r] = ae(null), t = !!e,
|
|
3503
|
+
const [e, r] = ae(null), t = !!e, a = de(() => {
|
|
3501
3504
|
r(null);
|
|
3502
|
-
}, []),
|
|
3505
|
+
}, []), i = de(({ currentTarget: o }) => {
|
|
3503
3506
|
r(o);
|
|
3504
3507
|
}, []);
|
|
3505
3508
|
return {
|
|
3506
3509
|
anchorMenu: e,
|
|
3507
|
-
closeMenu:
|
|
3510
|
+
closeMenu: a,
|
|
3508
3511
|
isMenuOpen: t,
|
|
3509
|
-
openMenu:
|
|
3512
|
+
openMenu: i
|
|
3510
3513
|
};
|
|
3511
3514
|
}, ea = "appBarAvatarMenu", Pa = ({
|
|
3512
3515
|
Avatar: e,
|
|
3513
3516
|
Search: r,
|
|
3514
3517
|
Action: t,
|
|
3515
|
-
Logo:
|
|
3516
|
-
NavLink:
|
|
3518
|
+
Logo: a,
|
|
3519
|
+
NavLink: i,
|
|
3517
3520
|
avatarProps: o,
|
|
3518
3521
|
searchProps: l,
|
|
3519
3522
|
actionProps: d,
|
|
@@ -3524,7 +3527,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3524
3527
|
position: y = "static",
|
|
3525
3528
|
elevation: h = 0
|
|
3526
3529
|
}) => {
|
|
3527
|
-
const { breakpoints: M } = ge(), { closeMenu: b, isMenuOpen: u, anchorMenu: v, openMenu: S } = Qi(), { menuItems: w, ...R } = o || {}, p = ir(M.down("sm")), _ = ir(M.between("sm", "md")),
|
|
3530
|
+
const { breakpoints: M } = ge(), { closeMenu: b, isMenuOpen: u, anchorMenu: v, openMenu: S } = Qi(), { menuItems: w, ...R } = o || {}, p = ir(M.down("sm")), _ = ir(M.between("sm", "md")), A = p || _, j = {
|
|
3528
3531
|
logoContainer: {
|
|
3529
3532
|
a: {
|
|
3530
3533
|
display: "flex"
|
|
@@ -3556,8 +3559,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3556
3559
|
};
|
|
3557
3560
|
return f ? /* @__PURE__ */ n(Wr, { position: y, elevation: h, sx: j, children: f }) : /* @__PURE__ */ E(be, { children: [
|
|
3558
3561
|
/* @__PURE__ */ n(Wr, { position: y, elevation: h, sx: j, children: /* @__PURE__ */ E(B, { direction: "row", sx: { alignItems: "center", height: "100%", width: "100%" }, spacing: 1, children: [
|
|
3559
|
-
|
|
3560
|
-
|
|
3562
|
+
A && /* @__PURE__ */ n(ke, { onClick: g, edge: "end", color: "inherit", "aria-label": "menu", children: /* @__PURE__ */ n(xt, {}) }),
|
|
3563
|
+
A || a === null ? null : /* @__PURE__ */ n(L, { sx: j.logoContainer, children: a || /* @__PURE__ */ n(Ti, { mode: "dark", ...c }) }),
|
|
3561
3564
|
/* @__PURE__ */ E(B, { alignItems: "center", direction: "row", justifyContent: p ? "flex-end" : "center", spacing: 1, flex: 1, children: [
|
|
3562
3565
|
p && (t === null ? null : t || /* @__PURE__ */ n(Y1, { ...d })),
|
|
3563
3566
|
r === null ? null : r || /* @__PURE__ */ n(Ki, { ...l })
|
|
@@ -3606,8 +3609,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3606
3609
|
return s1(I, { key: X });
|
|
3607
3610
|
}
|
|
3608
3611
|
if (I && typeof I == "object" && "url" in I) {
|
|
3609
|
-
const { url: X, label: Y, icon: P, active: K, end: oe, state:
|
|
3610
|
-
return /* @__PURE__ */ n(en, { sx: j.menuItem, onClick: b, children: /* @__PURE__ */ E(u1, { url: X, component:
|
|
3612
|
+
const { url: X, label: Y, icon: P, active: K, end: oe, state: Ae } = I, z = `${X}-${Y}-${Q}`;
|
|
3613
|
+
return /* @__PURE__ */ n(en, { sx: j.menuItem, onClick: b, children: /* @__PURE__ */ E(u1, { url: X, component: i, active: K, end: oe, state: Ae, children: [
|
|
3611
3614
|
P && /* @__PURE__ */ n(rn, { children: P }),
|
|
3612
3615
|
Y && /* @__PURE__ */ n($e, { children: Y })
|
|
3613
3616
|
] }, z) }, z);
|
|
@@ -3617,7 +3620,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3617
3620
|
}
|
|
3618
3621
|
) })
|
|
3619
3622
|
] });
|
|
3620
|
-
}, ra = ({ sx: e, fontSize: r, color: t = "currentColor" }) => /* @__PURE__ */ n(Me, { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: r, sx: e, children: /* @__PURE__ */ n("rect", { x: "1", y: "1", width: "6", height: "6", rx: "3", fill: t }) }), ta = ({ dot: e, color: r, variant: t, ...
|
|
3623
|
+
}, ra = ({ sx: e, fontSize: r, color: t = "currentColor" }) => /* @__PURE__ */ n(Me, { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: r, sx: e, children: /* @__PURE__ */ n("rect", { x: "1", y: "1", width: "6", height: "6", rx: "3", fill: t }) }), ta = ({ dot: e, color: r, variant: t, ...a }, i) => {
|
|
3621
3624
|
const { palette: o } = ge(), l = {
|
|
3622
3625
|
default: o.text.secondary,
|
|
3623
3626
|
error: o.error.main,
|
|
@@ -3630,7 +3633,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3630
3633
|
return /* @__PURE__ */ n(
|
|
3631
3634
|
nr,
|
|
3632
3635
|
{
|
|
3633
|
-
ref:
|
|
3636
|
+
ref: i,
|
|
3634
3637
|
variant: t,
|
|
3635
3638
|
color: r,
|
|
3636
3639
|
icon: e ? /* @__PURE__ */ n(
|
|
@@ -3645,7 +3648,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3645
3648
|
}
|
|
3646
3649
|
}
|
|
3647
3650
|
) : void 0,
|
|
3648
|
-
...
|
|
3651
|
+
...a
|
|
3649
3652
|
}
|
|
3650
3653
|
);
|
|
3651
3654
|
}, $a = xe(ta), na = ({ fontSize: e, sx: r, color: t = "currentColor" }) => /* @__PURE__ */ E(Me, { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: e, sx: r, children: [
|
|
@@ -3703,17 +3706,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3703
3706
|
}
|
|
3704
3707
|
}
|
|
3705
3708
|
}, aa = [400, 500, 600, 700], oa = "Poppins, sans-serif", J = (e, r = 16, t = 14) => {
|
|
3706
|
-
const
|
|
3707
|
-
return `${e / r *
|
|
3709
|
+
const a = t / 14;
|
|
3710
|
+
return `${e / r * a}rem`;
|
|
3708
3711
|
}, U1 = {
|
|
3709
3712
|
root: ({ theme: e, ownerState: r }) => {
|
|
3710
|
-
const t = un.toArray(r.children),
|
|
3711
|
-
if (Tr(
|
|
3712
|
-
if (
|
|
3713
|
+
const t = un.toArray(r.children), a = t[t.length - 1];
|
|
3714
|
+
if (Tr(a)) {
|
|
3715
|
+
if (a.props.variant === "contained" || a.props.variant === "outlined")
|
|
3713
3716
|
return {
|
|
3714
3717
|
padding: e.spacing(3)
|
|
3715
3718
|
};
|
|
3716
|
-
if (
|
|
3719
|
+
if (a.props.size === "small")
|
|
3717
3720
|
return {
|
|
3718
3721
|
paddingLeft: e.spacing(2),
|
|
3719
3722
|
paddingRight: e.spacing(2)
|
|
@@ -3821,7 +3824,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3821
3824
|
MuiBadge: {
|
|
3822
3825
|
styleOverrides: {
|
|
3823
3826
|
badge: ({ theme: e, ownerState: r }) => {
|
|
3824
|
-
const t = (
|
|
3827
|
+
const t = (a, i) => a === "dark" && i === "error" || a === "dark" && i === "default" ? e.palette.common.white : a === "light" && i === "secondary" || a === "light" && i === "default" || e.palette.mode === "dark" ? e.palette.common.black : e.palette.common.white;
|
|
3825
3828
|
return {
|
|
3826
3829
|
backgroundColor: e.palette.mode === "light" && r.color === "default" ? e.palette.grey[100] : r.color,
|
|
3827
3830
|
borderRadius: e.shape.borderRadiusS,
|
|
@@ -3910,8 +3913,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3910
3913
|
{
|
|
3911
3914
|
props: { variant: "link" },
|
|
3912
3915
|
style: ({ theme: e, ownerState: r }) => {
|
|
3913
|
-
var
|
|
3914
|
-
const t = (r == null ? void 0 : r.color) === "inherit" ? e.palette.text.primary : (
|
|
3916
|
+
var a, i;
|
|
3917
|
+
const t = (r == null ? void 0 : r.color) === "inherit" ? e.palette.text.primary : (i = (a = e.palette) == null ? void 0 : a[(r == null ? void 0 : r.color) || "primary"]) == null ? void 0 : i.main;
|
|
3915
3918
|
return {
|
|
3916
3919
|
"&:hover": {
|
|
3917
3920
|
backgroundColor: "transparent",
|
|
@@ -3976,42 +3979,42 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
3976
3979
|
MuiChip: {
|
|
3977
3980
|
styleOverrides: {
|
|
3978
3981
|
root: ({ theme: e, ownerState: r }) => {
|
|
3979
|
-
const t = r.color || "default",
|
|
3982
|
+
const t = r.color || "default", a = r.variant || "standard", i = ["outlined", "outlined-rounded"].includes(a);
|
|
3980
3983
|
return {
|
|
3981
3984
|
...t === "default" && {
|
|
3982
|
-
backgroundColor:
|
|
3983
|
-
border:
|
|
3985
|
+
backgroundColor: i ? e.palette.grey[50] : e.palette.grey[100],
|
|
3986
|
+
border: i ? `1px solid ${e.palette.divider}` : "transparent",
|
|
3984
3987
|
color: e.palette.text.primary
|
|
3985
3988
|
},
|
|
3986
3989
|
...t === "primary" && {
|
|
3987
3990
|
backgroundColor: e.palette.primary["4p"],
|
|
3988
|
-
border:
|
|
3991
|
+
border: i ? `1px solid ${e.palette.divider}` : "transparent",
|
|
3989
3992
|
color: e.palette.primary.black
|
|
3990
3993
|
},
|
|
3991
3994
|
...t === "secondary" && {
|
|
3992
|
-
backgroundColor:
|
|
3993
|
-
border:
|
|
3994
|
-
color:
|
|
3995
|
+
backgroundColor: i ? e.palette.secondary["8p"] : e.palette.secondary["16p"],
|
|
3996
|
+
border: i ? `1px solid ${e.palette.secondary["30p"]}` : "transparent",
|
|
3997
|
+
color: i ? e.palette.secondary.dark : e.palette.secondary.black
|
|
3995
3998
|
},
|
|
3996
3999
|
...t === "error" && {
|
|
3997
|
-
backgroundColor:
|
|
3998
|
-
border:
|
|
3999
|
-
color:
|
|
4000
|
+
backgroundColor: i ? e.palette.error["8p"] : e.palette.error["30p"],
|
|
4001
|
+
border: i ? `1px solid ${e.palette.error["30p"]}` : "transparent",
|
|
4002
|
+
color: i ? e.palette.error.dark : e.palette.error["160p"]
|
|
4000
4003
|
},
|
|
4001
4004
|
...t === "info" && {
|
|
4002
|
-
backgroundColor:
|
|
4003
|
-
border:
|
|
4004
|
-
color:
|
|
4005
|
+
backgroundColor: i ? e.palette.info["8p"] : e.palette.info["30p"],
|
|
4006
|
+
border: i ? `1px solid ${e.palette.info["30p"]}` : "transparent",
|
|
4007
|
+
color: i ? e.palette.info.dark : e.palette.info["160p"]
|
|
4005
4008
|
},
|
|
4006
4009
|
...t === "success" && {
|
|
4007
|
-
backgroundColor:
|
|
4008
|
-
border:
|
|
4009
|
-
color:
|
|
4010
|
+
backgroundColor: i ? e.palette.success["8p"] : e.palette.success["30p"],
|
|
4011
|
+
border: i ? `1px solid ${e.palette.success["30p"]}` : "transparent",
|
|
4012
|
+
color: i ? e.palette.success.dark : e.palette.success["160p"]
|
|
4010
4013
|
},
|
|
4011
4014
|
...t === "warning" && {
|
|
4012
|
-
backgroundColor:
|
|
4013
|
-
border:
|
|
4014
|
-
color:
|
|
4015
|
+
backgroundColor: i ? e.palette.warning["8p"] : e.palette.warning["30p"],
|
|
4016
|
+
border: i ? `1px solid ${e.palette.warning["30p"]}` : "transparent",
|
|
4017
|
+
color: i ? e.palette.warning.dark : e.palette.warning["160p"]
|
|
4015
4018
|
},
|
|
4016
4019
|
fontWeight: 500
|
|
4017
4020
|
};
|
|
@@ -4620,14 +4623,14 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4620
4623
|
children: e,
|
|
4621
4624
|
enableColorScheme: r,
|
|
4622
4625
|
includeCssBaseline: t = !0,
|
|
4623
|
-
includeScrollBarStyle:
|
|
4624
|
-
fullHeight:
|
|
4626
|
+
includeScrollBarStyle: a = !0,
|
|
4627
|
+
fullHeight: i = !0,
|
|
4625
4628
|
theme: o,
|
|
4626
4629
|
language: l = "en",
|
|
4627
4630
|
font: d = G1
|
|
4628
4631
|
}) => {
|
|
4629
4632
|
var h, M;
|
|
4630
|
-
const c = { ...G1, ...d }, f = (c == null ? void 0 : c.googleFontName) || ((h = e1.typography.fontFamily) == null ? void 0 : h.split(",")[0]), g = (M = c == null ? void 0 : c.fontWeight) == null ? void 0 : M.join(";"), C =
|
|
4633
|
+
const c = { ...G1, ...d }, f = (c == null ? void 0 : c.googleFontName) || ((h = e1.typography.fontFamily) == null ? void 0 : h.split(",")[0]), g = (M = c == null ? void 0 : c.fontWeight) == null ? void 0 : M.join(";"), C = Ar(() => ({ language: l }), [l]), y = () => {
|
|
4631
4634
|
var v, S;
|
|
4632
4635
|
const b = typeof o == "object" ? o : {}, u = {
|
|
4633
4636
|
...l === "fr" && ia
|
|
@@ -4654,8 +4657,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4654
4657
|
}
|
|
4655
4658
|
),
|
|
4656
4659
|
t && /* @__PURE__ */ n(nn, { enableColorScheme: r }),
|
|
4657
|
-
|
|
4658
|
-
|
|
4660
|
+
i && /* @__PURE__ */ n(la, {}),
|
|
4661
|
+
a && /* @__PURE__ */ n(sa, { theme: o }),
|
|
4659
4662
|
e
|
|
4660
4663
|
] }) });
|
|
4661
4664
|
}, ca = {
|
|
@@ -4682,17 +4685,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4682
4685
|
}, fa = (e) => {
|
|
4683
4686
|
if (!e)
|
|
4684
4687
|
return "";
|
|
4685
|
-
const r = e.length > 1,
|
|
4686
|
-
const o =
|
|
4687
|
-
return
|
|
4688
|
+
const r = e.length > 1, a = [...e || []].slice(0, 5).map(({ name: i }) => {
|
|
4689
|
+
const o = i.split(".").pop();
|
|
4690
|
+
return i.length > 10 && r ? `${i.substring(0, 10)}(...).${o}` : i;
|
|
4688
4691
|
}).join(" • ");
|
|
4689
|
-
return e.length > X1 ? `${
|
|
4692
|
+
return e.length > X1 ? `${a} + ${e.length - X1}` : a;
|
|
4690
4693
|
}, za = ({
|
|
4691
4694
|
accept: e,
|
|
4692
4695
|
name: r,
|
|
4693
4696
|
disabled: t,
|
|
4694
|
-
required:
|
|
4695
|
-
error:
|
|
4697
|
+
required: a,
|
|
4698
|
+
error: i,
|
|
4696
4699
|
localeText: o,
|
|
4697
4700
|
multiple: l,
|
|
4698
4701
|
id: d,
|
|
@@ -4704,7 +4707,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4704
4707
|
label: h,
|
|
4705
4708
|
variant: M = "vertical"
|
|
4706
4709
|
}) => {
|
|
4707
|
-
const { t: b } = wt(), { palette: u } = ge(), v = M === "vertical", S = d || r, w = wr(null), R = wr(null), [p, _] = ae(null),
|
|
4710
|
+
const { t: b } = wt(), { palette: u } = ge(), v = M === "vertical", S = d || r, w = wr(null), R = wr(null), [p, _] = ae(null), A = fa(p), j = (X) => {
|
|
4708
4711
|
y == null || y(X), _(X.target.files);
|
|
4709
4712
|
};
|
|
4710
4713
|
return /* @__PURE__ */ E(
|
|
@@ -4727,7 +4730,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4727
4730
|
"&:hover, &:focus": {
|
|
4728
4731
|
borderColor: u.primary.main
|
|
4729
4732
|
},
|
|
4730
|
-
border: `1px dashed ${
|
|
4733
|
+
border: `1px dashed ${i ? u.error.main : u.divider}`,
|
|
4731
4734
|
borderRadius: 1,
|
|
4732
4735
|
cursor: "pointer",
|
|
4733
4736
|
height: ua(c, M),
|
|
@@ -4749,7 +4752,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4749
4752
|
color: t ? "text.disabled" : "text.secondary",
|
|
4750
4753
|
children: [
|
|
4751
4754
|
C || /* @__PURE__ */ n(na, { sx: { height: 40, width: 40 } }),
|
|
4752
|
-
|
|
4755
|
+
A ? /* @__PURE__ */ E(be, { children: [
|
|
4753
4756
|
/* @__PURE__ */ E(q, { variant: "body2", color: "textSecondary", children: [
|
|
4754
4757
|
p == null ? void 0 : p.length,
|
|
4755
4758
|
" ",
|
|
@@ -4763,15 +4766,15 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4763
4766
|
whiteSpace: v ? "normal" : "nowrap",
|
|
4764
4767
|
textOverflow: "ellipsis",
|
|
4765
4768
|
overflow: "hidden",
|
|
4766
|
-
children:
|
|
4769
|
+
children: A
|
|
4767
4770
|
}
|
|
4768
4771
|
)
|
|
4769
4772
|
] }) : /* @__PURE__ */ E(q, { variant: "subtitle1", color: t ? "text.disabled" : "primary", children: [
|
|
4770
4773
|
h || b("clickToUpload"),
|
|
4771
4774
|
" ",
|
|
4772
|
-
|
|
4775
|
+
a && "*"
|
|
4773
4776
|
] }),
|
|
4774
|
-
f && /* @__PURE__ */ n(q, { color:
|
|
4777
|
+
f && /* @__PURE__ */ n(q, { color: i ? "error" : "textSecondary", variant: "body2", children: f })
|
|
4775
4778
|
]
|
|
4776
4779
|
}
|
|
4777
4780
|
),
|
|
@@ -4781,7 +4784,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4781
4784
|
ref: R,
|
|
4782
4785
|
type: "file",
|
|
4783
4786
|
disabled: t,
|
|
4784
|
-
required:
|
|
4787
|
+
required: a,
|
|
4785
4788
|
name: r,
|
|
4786
4789
|
multiple: l,
|
|
4787
4790
|
accept: e,
|
|
@@ -4815,8 +4818,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4815
4818
|
Empty: e,
|
|
4816
4819
|
action: r,
|
|
4817
4820
|
items: t,
|
|
4818
|
-
fullWidth:
|
|
4819
|
-
sx:
|
|
4821
|
+
fullWidth: a,
|
|
4822
|
+
sx: i,
|
|
4820
4823
|
alwaysDisplaySecondaryAction: o,
|
|
4821
4824
|
isLoading: l,
|
|
4822
4825
|
disableLightbox: d,
|
|
@@ -4829,7 +4832,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4829
4832
|
{
|
|
4830
4833
|
sx: {
|
|
4831
4834
|
...rr.list,
|
|
4832
|
-
...
|
|
4835
|
+
...a && { width: "100%" }
|
|
4833
4836
|
},
|
|
4834
4837
|
children: [...Array(c).keys()].map((y) => /* @__PURE__ */ E(_e, { sx: rr.listItem, children: [
|
|
4835
4838
|
/* @__PURE__ */ n(fe, { width: 40, height: 40, sx: { marginRight: er }, variant: "rounded" }),
|
|
@@ -4848,14 +4851,14 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4848
4851
|
{
|
|
4849
4852
|
sx: {
|
|
4850
4853
|
...rr.list,
|
|
4851
|
-
...
|
|
4852
|
-
...
|
|
4854
|
+
...a && { width: "100%" },
|
|
4855
|
+
...i
|
|
4853
4856
|
},
|
|
4854
4857
|
children: [
|
|
4855
4858
|
t == null ? void 0 : t.map(
|
|
4856
|
-
({ id: y, title: h, subtitle: M, image: b, thumbnail: u, secondaryAction: v, chipLabel: S, chipColor: w, onClick: R, icon: p, Avatar: _ },
|
|
4859
|
+
({ id: y, title: h, subtitle: M, image: b, thumbnail: u, secondaryAction: v, chipLabel: S, chipColor: w, onClick: R, icon: p, Avatar: _ }, A) => {
|
|
4857
4860
|
var G, re, le, Se;
|
|
4858
|
-
const j = `key-${
|
|
4861
|
+
const j = `key-${A}-${h}-${y}`, I = (G = b == null ? void 0 : b.toLowerCase()) == null ? void 0 : G.endsWith(".pdf"), Q = (re = b == null ? void 0 : b.toLowerCase()) == null ? void 0 : re.startsWith("http"), X = (le = u == null ? void 0 : u.toLowerCase()) == null ? void 0 : le.startsWith("http"), Y = R ? "none" : void 0, P = d || !!p || !Q, K = !!R || !!(!R && !d && (u || b)), oe = f === j, k = (X ? u : "") || (Q ? b : "") || "";
|
|
4859
4862
|
return /* @__PURE__ */ E(
|
|
4860
4863
|
_e,
|
|
4861
4864
|
{
|
|
@@ -4906,7 +4909,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4906
4909
|
disableLightbox: P,
|
|
4907
4910
|
open: oe,
|
|
4908
4911
|
onClose: () => g(""),
|
|
4909
|
-
children: /* @__PURE__ */ n(vr, { src:
|
|
4912
|
+
children: /* @__PURE__ */ n(vr, { src: k, variant: "rounded", sx: { marginRight: er }, children: p || typeof h == "string" && ((Se = h || "") == null ? void 0 : Se.charAt(0).toUpperCase()) })
|
|
4910
4913
|
}
|
|
4911
4914
|
),
|
|
4912
4915
|
/* @__PURE__ */ n(
|
|
@@ -4977,8 +4980,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4977
4980
|
children: e,
|
|
4978
4981
|
disableSelectAll: r,
|
|
4979
4982
|
localeText: t,
|
|
4980
|
-
disableReset:
|
|
4981
|
-
onChange:
|
|
4983
|
+
disableReset: a,
|
|
4984
|
+
onChange: i,
|
|
4982
4985
|
loading: o,
|
|
4983
4986
|
options: l,
|
|
4984
4987
|
value: d,
|
|
@@ -4996,15 +4999,15 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
4996
4999
|
role: "option",
|
|
4997
5000
|
onMouseDown: (h) => {
|
|
4998
5001
|
if (h.stopPropagation(), h.preventDefault(), C) {
|
|
4999
|
-
|
|
5002
|
+
i == null || i(h, [], "removeOption");
|
|
5000
5003
|
return;
|
|
5001
5004
|
}
|
|
5002
|
-
|
|
5005
|
+
i == null || i(h, l || [], "selectOption");
|
|
5003
5006
|
},
|
|
5004
5007
|
children: /* @__PURE__ */ E(Yr, { disableRipple: !0, children: [
|
|
5005
5008
|
/* @__PURE__ */ n(Ur, { disableRipple: !0, id: "select-all-checkbox", checked: C, sx: r1 }),
|
|
5006
5009
|
/* @__PURE__ */ n($e, { primary: (t == null ? void 0 : t.selectAll) || g("selectAll"), primaryTypographyProps: { variant: "body2" } }),
|
|
5007
|
-
!
|
|
5010
|
+
!a && /* @__PURE__ */ n(
|
|
5008
5011
|
a1,
|
|
5009
5012
|
{
|
|
5010
5013
|
variant: "link",
|
|
@@ -5014,7 +5017,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5014
5017
|
textDecoration: "none"
|
|
5015
5018
|
},
|
|
5016
5019
|
onClick: (h) => {
|
|
5017
|
-
|
|
5020
|
+
i == null || i(h, [], "removeOption");
|
|
5018
5021
|
},
|
|
5019
5022
|
onMouseDown: (h) => {
|
|
5020
5023
|
h.stopPropagation(), h.preventDefault();
|
|
@@ -5038,10 +5041,10 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5038
5041
|
const S = Array.isArray(d) ? d == null ? void 0 : d.filter(
|
|
5039
5042
|
(w) => !(JSON.stringify(w) === JSON.stringify(h) || w && typeof w == "object" && "id" in w && (w == null ? void 0 : w.id) === (h == null ? void 0 : h.id))
|
|
5040
5043
|
) : [];
|
|
5041
|
-
|
|
5044
|
+
i == null || i(v, S, "removeOption");
|
|
5042
5045
|
return;
|
|
5043
5046
|
}
|
|
5044
|
-
|
|
5047
|
+
i == null || i(v, [...Array.isArray(d) ? d : [], h], "selectOption");
|
|
5045
5048
|
},
|
|
5046
5049
|
children: /* @__PURE__ */ E(Yr, { disableRipple: !0, children: [
|
|
5047
5050
|
/* @__PURE__ */ n(Ur, { disableRipple: !0, checked: u, sx: r1 }),
|
|
@@ -5060,8 +5063,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5060
5063
|
onChange: e,
|
|
5061
5064
|
disableCheckbox: r,
|
|
5062
5065
|
placeholder: t,
|
|
5063
|
-
localeText:
|
|
5064
|
-
disableReset:
|
|
5066
|
+
localeText: a,
|
|
5067
|
+
disableReset: i,
|
|
5065
5068
|
disableSelectAll: o,
|
|
5066
5069
|
value: l,
|
|
5067
5070
|
onFocus: d,
|
|
@@ -5080,7 +5083,7 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5080
5083
|
options: R = [],
|
|
5081
5084
|
slotProps: p,
|
|
5082
5085
|
..._
|
|
5083
|
-
},
|
|
5086
|
+
}, A) => {
|
|
5084
5087
|
const { palette: j } = ge(), [I, Q] = ae(!1), [X, Y] = ae(""), P = j.mode === "light" ? "default" : "primary", K = C || X;
|
|
5085
5088
|
return /* @__PURE__ */ n(
|
|
5086
5089
|
ln,
|
|
@@ -5091,15 +5094,15 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5091
5094
|
value: w ? l || [] : l || null,
|
|
5092
5095
|
loading: h,
|
|
5093
5096
|
options: R,
|
|
5094
|
-
ref:
|
|
5097
|
+
ref: A,
|
|
5095
5098
|
size: v,
|
|
5096
5099
|
disableCloseOnSelect: S,
|
|
5097
|
-
onChange: (z,
|
|
5098
|
-
if (
|
|
5100
|
+
onChange: (z, k, G, re) => {
|
|
5101
|
+
if (k === null) {
|
|
5099
5102
|
e == null || e(z, w ? [] : null, G, re);
|
|
5100
5103
|
return;
|
|
5101
5104
|
}
|
|
5102
|
-
e == null || e(z,
|
|
5105
|
+
e == null || e(z, k, G, re), (!S || !w) && Q(!1);
|
|
5103
5106
|
},
|
|
5104
5107
|
getLimitTagsText: ga(P),
|
|
5105
5108
|
inputValue: K,
|
|
@@ -5111,10 +5114,10 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5111
5114
|
slotProps: {
|
|
5112
5115
|
...p,
|
|
5113
5116
|
paper: {
|
|
5114
|
-
disableReset:
|
|
5117
|
+
disableReset: i,
|
|
5115
5118
|
disableSelectAll: o,
|
|
5116
5119
|
loading: h,
|
|
5117
|
-
localeText:
|
|
5120
|
+
localeText: a,
|
|
5118
5121
|
multiple: w,
|
|
5119
5122
|
onChange: e,
|
|
5120
5123
|
options: R,
|
|
@@ -5122,8 +5125,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5122
5125
|
...p == null ? void 0 : p.paper
|
|
5123
5126
|
}
|
|
5124
5127
|
},
|
|
5125
|
-
onInputChange: (z,
|
|
5126
|
-
G === "reset" && I && !M || G === "selectOption" && !M || G === "removeOption" && !M || (C || Y(
|
|
5128
|
+
onInputChange: (z, k, G) => {
|
|
5129
|
+
G === "reset" && I && !M || G === "selectOption" && !M || G === "removeOption" && !M || (C || Y(k), g == null || g(z, k, G));
|
|
5127
5130
|
},
|
|
5128
5131
|
onFocus: (z) => {
|
|
5129
5132
|
Q(!0), d == null || d(z);
|
|
@@ -5131,12 +5134,12 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5131
5134
|
onBlur: (z) => {
|
|
5132
5135
|
Q(!1), c == null || c(z);
|
|
5133
5136
|
},
|
|
5134
|
-
renderOption: b || ((z,
|
|
5137
|
+
renderOption: b || ((z, k, { selected: G }) => {
|
|
5135
5138
|
var le;
|
|
5136
|
-
if (h ||
|
|
5139
|
+
if (h || k != null && k.isHeader)
|
|
5137
5140
|
return null;
|
|
5138
|
-
const re = `${
|
|
5139
|
-
return /* @__PURE__ */ fn(_e, { ...z, key: re }, !r && /* @__PURE__ */ n(Ur, { disableRipple: !0, checked: G, sx: r1 }), (
|
|
5141
|
+
const re = `${k == null ? void 0 : k.id}-${z == null ? void 0 : z.key}`;
|
|
5142
|
+
return /* @__PURE__ */ fn(_e, { ...z, key: re }, !r && /* @__PURE__ */ n(Ur, { disableRipple: !0, checked: G, sx: r1 }), (k == null ? void 0 : k.image) && /* @__PURE__ */ n(
|
|
5140
5143
|
sn,
|
|
5141
5144
|
{
|
|
5142
5145
|
sx: {
|
|
@@ -5145,18 +5148,18 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5145
5148
|
minWidth: "auto",
|
|
5146
5149
|
width: 24
|
|
5147
5150
|
},
|
|
5148
|
-
children: /* @__PURE__ */ n(vr, { variant: "rounded", src:
|
|
5151
|
+
children: /* @__PURE__ */ n(vr, { variant: "rounded", src: k == null ? void 0 : k.image, sx: { height: 24, width: 24 }, children: (k == null ? void 0 : k.image) === "letter" && typeof (k == null ? void 0 : k.label) == "string" && ((le = k == null ? void 0 : k.label) == null ? void 0 : le.charAt(0).toUpperCase()) })
|
|
5149
5152
|
}
|
|
5150
|
-
), typeof (
|
|
5153
|
+
), typeof (k == null ? void 0 : k.label) == "string" ? /* @__PURE__ */ n(q, { variant: "body2", whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", title: k == null ? void 0 : k.label, children: k.label }) : k == null ? void 0 : k.label);
|
|
5151
5154
|
}),
|
|
5152
|
-
renderTags: u || ((z,
|
|
5153
|
-
const { key: Se } =
|
|
5155
|
+
renderTags: u || ((z, k, G) => Array.isArray(z) ? z.map((re, le) => {
|
|
5156
|
+
const { key: Se } = k({ index: le });
|
|
5154
5157
|
return G != null && G.focused ? null : /* @__PURE__ */ n(q, { marginX: 1, whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", children: re == null ? void 0 : re.label }, Se);
|
|
5155
5158
|
}) : null),
|
|
5156
5159
|
..._,
|
|
5157
5160
|
renderInput: (z) => {
|
|
5158
5161
|
var re, le;
|
|
5159
|
-
const
|
|
5162
|
+
const k = () => {
|
|
5160
5163
|
if (!(!I && (Array.isArray(l) && l.length || !Array.isArray(l) && l)))
|
|
5161
5164
|
return t;
|
|
5162
5165
|
}, G = Tr((re = z.InputProps) == null ? void 0 : re.endAdornment) ? (le = z.InputProps) == null ? void 0 : le.endAdornment : null;
|
|
@@ -5182,14 +5185,14 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5182
5185
|
right: 9
|
|
5183
5186
|
},
|
|
5184
5187
|
children: [
|
|
5185
|
-
I && K && !y && /* @__PURE__ */ n(
|
|
5188
|
+
I && K && !y && /* @__PURE__ */ n(ke, { size: "small", onClick: () => Y(""), sx: { marginRight: "-3px" }, children: /* @__PURE__ */ n(p1, { sx: { fontSize: J(20) } }) }),
|
|
5186
5189
|
G == null ? void 0 : G.props.children[1]
|
|
5187
5190
|
]
|
|
5188
5191
|
}
|
|
5189
5192
|
) : G
|
|
5190
5193
|
}
|
|
5191
5194
|
},
|
|
5192
|
-
placeholder:
|
|
5195
|
+
placeholder: k()
|
|
5193
5196
|
}
|
|
5194
5197
|
);
|
|
5195
5198
|
}
|
|
@@ -5199,8 +5202,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5199
5202
|
in: e,
|
|
5200
5203
|
children: r,
|
|
5201
5204
|
sx: t,
|
|
5202
|
-
padding:
|
|
5203
|
-
direction:
|
|
5205
|
+
padding: a,
|
|
5206
|
+
direction: i,
|
|
5204
5207
|
position: o = "fixed",
|
|
5205
5208
|
mountOnEnter: l = !0,
|
|
5206
5209
|
unmountOnExit: d = !0,
|
|
@@ -5215,17 +5218,17 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5215
5218
|
borderTop: ({ palette: g }) => `1px solid ${g.divider}`,
|
|
5216
5219
|
bottom: 0,
|
|
5217
5220
|
left: 0,
|
|
5218
|
-
padding:
|
|
5219
|
-
paddingX:
|
|
5220
|
-
paddingY:
|
|
5221
|
+
padding: a,
|
|
5222
|
+
paddingX: a ? void 0 : 2,
|
|
5223
|
+
paddingY: a ? void 0 : 3,
|
|
5221
5224
|
position: o,
|
|
5222
5225
|
right: 0,
|
|
5223
5226
|
zIndex: 10,
|
|
5224
|
-
...
|
|
5227
|
+
...i === "column" && {
|
|
5225
5228
|
display: "flex",
|
|
5226
5229
|
flexDirection: "column"
|
|
5227
5230
|
},
|
|
5228
|
-
...
|
|
5231
|
+
...i === "row" && {
|
|
5229
5232
|
display: "flex",
|
|
5230
5233
|
flexDirection: "row"
|
|
5231
5234
|
},
|
|
@@ -5235,16 +5238,16 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5235
5238
|
children: r
|
|
5236
5239
|
}
|
|
5237
5240
|
) }), Wa = xe(ba), ja = ({ children: e, permissions: r, disabledPermissions: t }) => {
|
|
5238
|
-
const [
|
|
5241
|
+
const [a, i] = ae(), o = Ar(
|
|
5239
5242
|
() => ({
|
|
5240
5243
|
disabledPermissions: t,
|
|
5241
|
-
permissions:
|
|
5242
|
-
setPermissions:
|
|
5244
|
+
permissions: a,
|
|
5245
|
+
setPermissions: i
|
|
5243
5246
|
}),
|
|
5244
|
-
[t,
|
|
5247
|
+
[t, a]
|
|
5245
5248
|
);
|
|
5246
5249
|
return Rr(() => {
|
|
5247
|
-
|
|
5250
|
+
i(r);
|
|
5248
5251
|
}, [r]), /* @__PURE__ */ n(rt.Provider, { value: o, children: e });
|
|
5249
5252
|
}, ya = {
|
|
5250
5253
|
component: void 0,
|
|
@@ -5263,8 +5266,8 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5263
5266
|
autoHideDuration: r = 5e3,
|
|
5264
5267
|
anchorOrigin: t = { horizontal: "center", vertical: "bottom" }
|
|
5265
5268
|
}) => {
|
|
5266
|
-
const [
|
|
5267
|
-
|
|
5269
|
+
const [a, i] = ae(ya), o = de((c) => {
|
|
5270
|
+
i({
|
|
5268
5271
|
component: c == null ? void 0 : c.component,
|
|
5269
5272
|
isOpen: !0,
|
|
5270
5273
|
message: (c == null ? void 0 : c.message) || "",
|
|
@@ -5272,43 +5275,43 @@ const B1 = 32, yi = 24, vi = 105, mi = 24, wi = 195, Ei = 44, Mi = 147, Si = ()
|
|
|
5272
5275
|
variant: (c == null ? void 0 : c.variant) || "standard"
|
|
5273
5276
|
});
|
|
5274
5277
|
}, []), l = de((c, f) => {
|
|
5275
|
-
f !== "clickaway" &&
|
|
5276
|
-
}, []), d =
|
|
5278
|
+
f !== "clickaway" && i((g) => ({ ...g, isOpen: !1 }));
|
|
5279
|
+
}, []), d = Ar(
|
|
5277
5280
|
() => ({
|
|
5278
5281
|
closeSnackbar: l,
|
|
5279
|
-
isOpen:
|
|
5282
|
+
isOpen: a.isOpen,
|
|
5280
5283
|
openSnackbar: o
|
|
5281
5284
|
}),
|
|
5282
|
-
[l, o,
|
|
5285
|
+
[l, o, a.isOpen]
|
|
5283
5286
|
);
|
|
5284
5287
|
return /* @__PURE__ */ E(Et.Provider, { value: d, children: [
|
|
5285
5288
|
/* @__PURE__ */ n(
|
|
5286
5289
|
pn,
|
|
5287
5290
|
{
|
|
5288
|
-
open:
|
|
5291
|
+
open: a.isOpen,
|
|
5289
5292
|
onClose: l,
|
|
5290
5293
|
autoHideDuration: r,
|
|
5291
5294
|
anchorOrigin: t,
|
|
5292
|
-
children:
|
|
5295
|
+
children: a.component ? /* @__PURE__ */ n(a.component, {}) : /* @__PURE__ */ n(i1, { severity: a.severity, variant: a.variant, children: a.message })
|
|
5293
5296
|
},
|
|
5294
|
-
|
|
5297
|
+
a.message
|
|
5295
5298
|
),
|
|
5296
5299
|
e
|
|
5297
5300
|
] });
|
|
5298
5301
|
}, Ua = () => {
|
|
5299
|
-
const e = Te(Et), { isOpen: r, closeSnackbar: t, openSnackbar:
|
|
5302
|
+
const e = Te(Et), { isOpen: r, closeSnackbar: t, openSnackbar: a } = e;
|
|
5300
5303
|
if (e === void 0)
|
|
5301
5304
|
throw new Error("SnackbarProvider must be used within a useSnackBar hook");
|
|
5302
5305
|
return {
|
|
5303
5306
|
closeSnackbar: t,
|
|
5304
5307
|
isOpen: r,
|
|
5305
|
-
openSnackbar:
|
|
5308
|
+
openSnackbar: a
|
|
5306
5309
|
};
|
|
5307
5310
|
}, Ga = () => {
|
|
5308
5311
|
const [e, r] = ae(0);
|
|
5309
5312
|
return {
|
|
5310
|
-
handleChange: de((
|
|
5311
|
-
r(
|
|
5313
|
+
handleChange: de((a, i) => {
|
|
5314
|
+
r(i);
|
|
5312
5315
|
}, []),
|
|
5313
5316
|
value: e
|
|
5314
5317
|
};
|
|
@@ -5332,9 +5335,9 @@ export {
|
|
|
5332
5335
|
Ma as LinkTab,
|
|
5333
5336
|
Za as ListAvatar,
|
|
5334
5337
|
Za as ListAvatars,
|
|
5335
|
-
|
|
5338
|
+
ka as ListItemCard,
|
|
5336
5339
|
Ti as Logo,
|
|
5337
|
-
|
|
5340
|
+
Aa as NavigationMenu,
|
|
5338
5341
|
Ne as NavigationMenuContext,
|
|
5339
5342
|
ja as PermissionProvider,
|
|
5340
5343
|
Ta as QuantityField,
|