@ukpc-lib/react 0.1.6 → 0.1.8
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/README.md +109 -2
- package/dist/components/GlobalMenu/index.d.ts +1 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +739 -739
- package/dist/{index-60dc34b2.js → interceptor.const-3d8c3adc.js} +11 -1
- package/dist/{index-e55ba232.cjs → interceptor.const-abe41a95.cjs} +2 -2
- package/dist/share/index.cjs +23 -23
- package/dist/share/index.js +108 -113
- package/package.json +2 -2
- package/web-components-bundle/global-menu/index.cjs +8 -8
- package/web-components-bundle/global-menu/index.js +815 -813
- /package/dist/{index.css → interceptor.css} +0 -0
package/dist/share/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as re, Fragment as Ht } from "react/jsx-runtime";
|
|
2
2
|
import * as I from "react";
|
|
3
3
|
import { forwardRef as Rn, useContext as Xt, createContext as An, useState as Mn, useEffect as In } from "react";
|
|
4
|
-
import { _, c as ne, P as y, d as Jt, p as jn } from "../
|
|
4
|
+
import { _, c as ne, P as y, d as Jt, E as ot, e as st, p as jn } from "../interceptor.const-3d8c3adc.js";
|
|
5
5
|
import Zt from "axios";
|
|
6
6
|
import { Navigate as Dn } from "react-router-dom";
|
|
7
7
|
import "react-dom";
|
|
@@ -362,12 +362,12 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
362
362
|
case 125:
|
|
363
363
|
p = 0;
|
|
364
364
|
case 59 + l:
|
|
365
|
-
v == -1 && (O = P(O, /\f/g, "")), b > 0 && oe(O) - m && Ge(b > 32 ?
|
|
365
|
+
v == -1 && (O = P(O, /\f/g, "")), b > 0 && oe(O) - m && Ge(b > 32 ? at(O + ";", n, t, m - 1) : at(P(O, " ", "") + ";", n, t, m - 2), c);
|
|
366
366
|
break;
|
|
367
367
|
case 59:
|
|
368
368
|
O += ";";
|
|
369
369
|
default:
|
|
370
|
-
if (Ge(N =
|
|
370
|
+
if (Ge(N = it(O, r, t, u, l, o, a, $, S = [], h = [], m), s), C === 123)
|
|
371
371
|
if (l === 0)
|
|
372
372
|
He(O, r, N, N, S, s, m, a, h);
|
|
373
373
|
else
|
|
@@ -376,7 +376,7 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
376
376
|
case 108:
|
|
377
377
|
case 109:
|
|
378
378
|
case 115:
|
|
379
|
-
He(e, N, N, n && Ge(
|
|
379
|
+
He(e, N, N, n && Ge(it(e, N, N, 0, 0, o, a, $, o, S = [], m), h), o, h, m, a, n ? S : h);
|
|
380
380
|
break;
|
|
381
381
|
default:
|
|
382
382
|
He(O, N, N, N, [""], h, 0, a, h);
|
|
@@ -409,7 +409,7 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
409
409
|
}
|
|
410
410
|
return s;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function it(e, r, t, n, o, s, i, a, c, u, l) {
|
|
413
413
|
for (var m = o - 1, d = o === 0 ? s : [""], b = Yr(d), g = 0, f = 0, p = 0; g < n; ++g)
|
|
414
414
|
for (var v = 0, C = je(e, m + 1, m = eo(f = i[g])), $ = e; v < b; ++v)
|
|
415
415
|
($ = rn(f > 0 ? d[v] + " " + C : P(C, /&\f/g, d[v]))) && (c[p++] = $);
|
|
@@ -418,7 +418,7 @@ function ot(e, r, t, n, o, s, i, a, c, u, l) {
|
|
|
418
418
|
function po(e, r, t) {
|
|
419
419
|
return sr(e, r, t, Ur, nr(so()), je(e, 2, -2), 0);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function at(e, r, t, n) {
|
|
422
422
|
return sr(e, r, t, Br, je(e, 0, n), je(e, n + 1, -1), n);
|
|
423
423
|
}
|
|
424
424
|
function be(e, r) {
|
|
@@ -482,15 +482,15 @@ var go = function(r, t, n) {
|
|
|
482
482
|
return r;
|
|
483
483
|
}, vo = function(r, t) {
|
|
484
484
|
return on(bo(nn(r), t));
|
|
485
|
-
},
|
|
485
|
+
}, ct = /* @__PURE__ */ new WeakMap(), Eo = function(r) {
|
|
486
486
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
487
487
|
// negative .length indicates that this rule has been already prefixed
|
|
488
488
|
r.length < 1)) {
|
|
489
489
|
for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== "rule"; )
|
|
490
490
|
if (n = n.parent, !n)
|
|
491
491
|
return;
|
|
492
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
493
|
-
|
|
492
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ct.get(n)) && !o) {
|
|
493
|
+
ct.set(r, !0);
|
|
494
494
|
for (var s = [], i = vo(t, s), a = n.props, c = 0, u = 0; c < i.length; c++)
|
|
495
495
|
for (var l = 0; l < a.length; l++, u++)
|
|
496
496
|
r.props[u] = s[c] ? i[c].replace(/&\f/g, a[l]) : a[l] + " " + i[c];
|
|
@@ -536,10 +536,10 @@ var go = function(r, t, n) {
|
|
|
536
536
|
if (!sn(t[n]))
|
|
537
537
|
return !0;
|
|
538
538
|
return !1;
|
|
539
|
-
},
|
|
539
|
+
}, ut = function(r) {
|
|
540
540
|
r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
|
|
541
541
|
}, Oo = function(r, t, n) {
|
|
542
|
-
sn(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),
|
|
542
|
+
sn(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), ut(r)) : $o(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), ut(r)));
|
|
543
543
|
};
|
|
544
544
|
function an(e, r) {
|
|
545
545
|
switch (to(e, r)) {
|
|
@@ -759,11 +759,11 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
759
759
|
* This source code is licensed under the MIT license found in the
|
|
760
760
|
* LICENSE file in the root directory of this source tree.
|
|
761
761
|
*/
|
|
762
|
-
var
|
|
762
|
+
var lt;
|
|
763
763
|
function No() {
|
|
764
|
-
if (
|
|
764
|
+
if (lt)
|
|
765
765
|
return k;
|
|
766
|
-
|
|
766
|
+
lt = 1;
|
|
767
767
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
768
768
|
function $(h) {
|
|
769
769
|
if (typeof h == "object" && h !== null) {
|
|
@@ -835,9 +835,9 @@ var R = {};
|
|
|
835
835
|
* This source code is licensed under the MIT license found in the
|
|
836
836
|
* LICENSE file in the root directory of this source tree.
|
|
837
837
|
*/
|
|
838
|
-
var
|
|
838
|
+
var ft;
|
|
839
839
|
function ko() {
|
|
840
|
-
return
|
|
840
|
+
return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
841
841
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
842
842
|
function $(E) {
|
|
843
843
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -1031,12 +1031,12 @@ var Do = {
|
|
|
1031
1031
|
strokeMiterlimit: 1,
|
|
1032
1032
|
strokeOpacity: 1,
|
|
1033
1033
|
strokeWidth: 1
|
|
1034
|
-
},
|
|
1034
|
+
}, dt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1035
1035
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
1036
1036
|
You can read more about this here:
|
|
1037
1037
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Fo = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Vo = /[A-Z]|^ms/g, ln = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kr = function(r) {
|
|
1038
1038
|
return r.charCodeAt(1) === 45;
|
|
1039
|
-
},
|
|
1039
|
+
}, pt = function(r) {
|
|
1040
1040
|
return r != null && typeof r != "boolean";
|
|
1041
1041
|
}, Mr = /* @__PURE__ */ Qt(function(e) {
|
|
1042
1042
|
return Kr(e) ? e : e.replace(Vo, "-$&").toLowerCase();
|
|
@@ -1056,12 +1056,12 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
1056
1056
|
return Do[r] !== 1 && !Kr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1057
1057
|
};
|
|
1058
1058
|
if (process.env.NODE_ENV !== "production") {
|
|
1059
|
-
var zo = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Lo = ["normal", "none", "initial", "inherit", "unset"], Uo = Qe, Wo = /^-ms-/, Bo = /-(.)/g,
|
|
1059
|
+
var zo = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Lo = ["normal", "none", "initial", "inherit", "unset"], Uo = Qe, Wo = /^-ms-/, Bo = /-(.)/g, mt = {};
|
|
1060
1060
|
Qe = function(r, t) {
|
|
1061
1061
|
if (r === "content" && (typeof t != "string" || Lo.indexOf(t) === -1 && !zo.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
|
|
1062
1062
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
|
|
1063
1063
|
var n = Uo(r, t);
|
|
1064
|
-
return n !== "" && !Kr(r) && r.indexOf("-") !== -1 &&
|
|
1064
|
+
return n !== "" && !Kr(r) && r.indexOf("-") !== -1 && mt[r] === void 0 && (mt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Wo, "ms-").replace(Bo, function(o, s) {
|
|
1065
1065
|
return s.toUpperCase();
|
|
1066
1066
|
}) + "?")), n;
|
|
1067
1067
|
};
|
|
@@ -1136,13 +1136,13 @@ function Yo(e, r, t) {
|
|
|
1136
1136
|
for (var s in t) {
|
|
1137
1137
|
var i = t[s];
|
|
1138
1138
|
if (typeof i != "object")
|
|
1139
|
-
r != null && r[i] !== void 0 ? n += s + "{" + r[i] + "}" :
|
|
1139
|
+
r != null && r[i] !== void 0 ? n += s + "{" + r[i] + "}" : pt(i) && (n += Mr(s) + ":" + Qe(s, i) + ";");
|
|
1140
1140
|
else {
|
|
1141
1141
|
if (s === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
1142
1142
|
throw new Error(fn);
|
|
1143
1143
|
if (Array.isArray(i) && typeof i[0] == "string" && (r == null || r[i[0]] === void 0))
|
|
1144
1144
|
for (var a = 0; a < i.length; a++)
|
|
1145
|
-
|
|
1145
|
+
pt(i[a]) && (n += Mr(s) + ":" + Qe(s, i[a]) + ";");
|
|
1146
1146
|
else {
|
|
1147
1147
|
var c = Fe(e, r, i);
|
|
1148
1148
|
switch (s) {
|
|
@@ -1159,7 +1159,7 @@ function Yo(e, r, t) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
return n;
|
|
1161
1161
|
}
|
|
1162
|
-
var
|
|
1162
|
+
var ht = /label:\s*([^\s;\n{]+)\s*(;|$)/g, dn;
|
|
1163
1163
|
process.env.NODE_ENV !== "production" && (dn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1164
1164
|
var ee, we = function(r, t, n) {
|
|
1165
1165
|
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
|
|
@@ -1167,14 +1167,14 @@ var ee, we = function(r, t, n) {
|
|
|
1167
1167
|
var o = !0, s = "";
|
|
1168
1168
|
ee = void 0;
|
|
1169
1169
|
var i = r[0];
|
|
1170
|
-
i == null || i.raw === void 0 ? (o = !1, s += Fe(n, t, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(
|
|
1170
|
+
i == null || i.raw === void 0 ? (o = !1, s += Fe(n, t, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(dt), s += i[0]);
|
|
1171
1171
|
for (var a = 1; a < r.length; a++)
|
|
1172
|
-
s += Fe(n, t, r[a]), o && (process.env.NODE_ENV !== "production" && i[a] === void 0 && console.error(
|
|
1172
|
+
s += Fe(n, t, r[a]), o && (process.env.NODE_ENV !== "production" && i[a] === void 0 && console.error(dt), s += i[a]);
|
|
1173
1173
|
var c;
|
|
1174
1174
|
process.env.NODE_ENV !== "production" && (s = s.replace(dn, function(d) {
|
|
1175
1175
|
return c = d, "";
|
|
1176
|
-
})),
|
|
1177
|
-
for (var u = "", l; (l =
|
|
1176
|
+
})), ht.lastIndex = 0;
|
|
1177
|
+
for (var u = "", l; (l = ht.exec(s)) !== null; )
|
|
1178
1178
|
u += "-" + // $FlowFixMe we know it's not null
|
|
1179
1179
|
l[1];
|
|
1180
1180
|
var m = jo(s) + u;
|
|
@@ -1193,7 +1193,7 @@ var ee, we = function(r, t, n) {
|
|
|
1193
1193
|
};
|
|
1194
1194
|
}, Go = function(r) {
|
|
1195
1195
|
return r();
|
|
1196
|
-
}, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn || Go,
|
|
1196
|
+
}, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn || Go, yt = pn || I.useLayoutEffect, Ko = {}.hasOwnProperty, Hr = /* @__PURE__ */ I.createContext(
|
|
1197
1197
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1198
1198
|
// because this module is primarily intended for the browser and node
|
|
1199
1199
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1213,7 +1213,7 @@ var cr = function(r) {
|
|
|
1213
1213
|
});
|
|
1214
1214
|
}, Oe = /* @__PURE__ */ I.createContext({});
|
|
1215
1215
|
process.env.NODE_ENV !== "production" && (Oe.displayName = "EmotionThemeContext");
|
|
1216
|
-
var
|
|
1216
|
+
var gt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", bt = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", qo = function(r) {
|
|
1217
1217
|
var t = r.cache, n = r.serialized, o = r.isStringTag;
|
|
1218
1218
|
return ir(t, n, o), qr(function() {
|
|
1219
1219
|
return ar(t, n, o);
|
|
@@ -1221,17 +1221,17 @@ var ht = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", yt = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
1221
1221
|
}, Ho = /* @__PURE__ */ cr(function(e, r, t) {
|
|
1222
1222
|
var n = e.css;
|
|
1223
1223
|
typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
|
|
1224
|
-
var o = e[
|
|
1224
|
+
var o = e[gt], s = [n], i = "";
|
|
1225
1225
|
typeof e.className == "string" ? i = Gr(r.registered, s, e.className) : e.className != null && (i = e.className + " ");
|
|
1226
1226
|
var a = we(s, void 0, I.useContext(Oe));
|
|
1227
1227
|
if (process.env.NODE_ENV !== "production" && a.name.indexOf("-") === -1) {
|
|
1228
|
-
var c = e[
|
|
1228
|
+
var c = e[bt];
|
|
1229
1229
|
c && (a = we([a, "label:" + c + ";"]));
|
|
1230
1230
|
}
|
|
1231
1231
|
i += r.key + "-" + a.name;
|
|
1232
1232
|
var u = {};
|
|
1233
1233
|
for (var l in e)
|
|
1234
|
-
Ko.call(e, l) && l !== "css" && l !==
|
|
1234
|
+
Ko.call(e, l) && l !== "css" && l !== gt && (process.env.NODE_ENV === "production" || l !== bt) && (u[l] = e[l]);
|
|
1235
1235
|
return u.ref = t, u.className = i, /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(qo, {
|
|
1236
1236
|
cache: r,
|
|
1237
1237
|
serialized: a,
|
|
@@ -1369,14 +1369,14 @@ var Xo = {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
},
|
|
1373
|
-
process.env.NODE_ENV !== "production" && !
|
|
1372
|
+
}, vt = !1, Jo = /* @__PURE__ */ cr(function(e, r) {
|
|
1373
|
+
process.env.NODE_ENV !== "production" && !vt && // check for className as well since the user is
|
|
1374
1374
|
// probably using the custom createElement which
|
|
1375
1375
|
// means it will be turned into a className prop
|
|
1376
1376
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
1377
|
-
(e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),
|
|
1377
|
+
(e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), vt = !0);
|
|
1378
1378
|
var t = e.styles, n = we([t], void 0, I.useContext(Oe)), o = I.useRef();
|
|
1379
|
-
return
|
|
1379
|
+
return yt(function() {
|
|
1380
1380
|
var s = r.key + "-global", i = new r.sheet.constructor({
|
|
1381
1381
|
key: s,
|
|
1382
1382
|
nonce: r.sheet.nonce,
|
|
@@ -1386,7 +1386,7 @@ var Xo = {
|
|
|
1386
1386
|
return r.sheet.tags.length && (i.before = r.sheet.tags[0]), c !== null && (a = !0, c.setAttribute("data-emotion", s), i.hydrate([c])), o.current = [i, a], function() {
|
|
1387
1387
|
i.flush();
|
|
1388
1388
|
};
|
|
1389
|
-
}, [r]),
|
|
1389
|
+
}, [r]), yt(function() {
|
|
1390
1390
|
var s = o.current, i = s[0], a = s[1];
|
|
1391
1391
|
if (a) {
|
|
1392
1392
|
s[1] = !1;
|
|
@@ -1477,23 +1477,23 @@ var es = function(r) {
|
|
|
1477
1477
|
});
|
|
1478
1478
|
process.env.NODE_ENV !== "production" && (rs.displayName = "EmotionClassNames");
|
|
1479
1479
|
if (process.env.NODE_ENV !== "production") {
|
|
1480
|
-
var
|
|
1481
|
-
if (
|
|
1482
|
-
var
|
|
1480
|
+
var Et = !0, ts = typeof jest < "u" || typeof vi < "u";
|
|
1481
|
+
if (Et && !ts) {
|
|
1482
|
+
var xt = (
|
|
1483
1483
|
// $FlowIgnore
|
|
1484
|
-
typeof globalThis < "u" ? globalThis :
|
|
1485
|
-
),
|
|
1486
|
-
|
|
1484
|
+
typeof globalThis < "u" ? globalThis : Et ? window : global
|
|
1485
|
+
), St = "__EMOTION_REACT_" + Xo.version.split(".")[0] + "__";
|
|
1486
|
+
xt[St] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), xt[St] = !0;
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
var ns = qn, os = function(r) {
|
|
1490
1490
|
return r !== "theme";
|
|
1491
|
-
},
|
|
1491
|
+
}, wt = function(r) {
|
|
1492
1492
|
return typeof r == "string" && // 96 is one less than the char code
|
|
1493
1493
|
// for "a" so this is checking that
|
|
1494
1494
|
// it's a lowercase character
|
|
1495
1495
|
r.charCodeAt(0) > 96 ? ns : os;
|
|
1496
|
-
},
|
|
1496
|
+
}, _t = function(r, t, n) {
|
|
1497
1497
|
var o;
|
|
1498
1498
|
if (t) {
|
|
1499
1499
|
var s = t.shouldForwardProp;
|
|
@@ -1502,7 +1502,7 @@ var ns = qn, os = function(r) {
|
|
|
1502
1502
|
} : s;
|
|
1503
1503
|
}
|
|
1504
1504
|
return typeof o != "function" && n && (o = r.__emotion_forwardProp), o;
|
|
1505
|
-
},
|
|
1505
|
+
}, $t = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1506
1506
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
1507
1507
|
You can read more about this here:
|
|
1508
1508
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ss = function(r) {
|
|
@@ -1516,15 +1516,15 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
1516
1516
|
You may have forgotten to import it.`);
|
|
1517
1517
|
var n = r.__emotion_real === r, o = n && r.__emotion_base || r, s, i;
|
|
1518
1518
|
t !== void 0 && (s = t.label, i = t.target);
|
|
1519
|
-
var a =
|
|
1519
|
+
var a = _t(r, t, n), c = a || wt(o), u = !c("as");
|
|
1520
1520
|
return function() {
|
|
1521
1521
|
var l = arguments, m = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1522
1522
|
if (s !== void 0 && m.push("label:" + s + ";"), l[0] == null || l[0].raw === void 0)
|
|
1523
1523
|
m.push.apply(m, l);
|
|
1524
1524
|
else {
|
|
1525
|
-
process.env.NODE_ENV !== "production" && l[0][0] === void 0 && console.error(
|
|
1525
|
+
process.env.NODE_ENV !== "production" && l[0][0] === void 0 && console.error($t), m.push(l[0][0]);
|
|
1526
1526
|
for (var d = l.length, b = 1; b < d; b++)
|
|
1527
|
-
process.env.NODE_ENV !== "production" && l[0][b] === void 0 && console.error(
|
|
1527
|
+
process.env.NODE_ENV !== "production" && l[0][b] === void 0 && console.error($t), m.push(l[b], l[0][b]);
|
|
1528
1528
|
}
|
|
1529
1529
|
var g = cr(function(f, p, v) {
|
|
1530
1530
|
var C = u && f.as || o, $ = "", S = [], h = f;
|
|
@@ -1537,7 +1537,7 @@ You may have forgotten to import it.`);
|
|
|
1537
1537
|
typeof f.className == "string" ? $ = Gr(p.registered, S, f.className) : f.className != null && ($ = f.className + " ");
|
|
1538
1538
|
var O = we(m.concat(S), p.registered, h);
|
|
1539
1539
|
$ += p.key + "-" + O.name, i !== void 0 && ($ += " " + i);
|
|
1540
|
-
var Z = u && a === void 0 ?
|
|
1540
|
+
var Z = u && a === void 0 ? wt(C) : c, B = {};
|
|
1541
1541
|
for (var w in f)
|
|
1542
1542
|
u && w === "as" || // $FlowFixMe
|
|
1543
1543
|
Z(w) && (B[w] = f[w]);
|
|
@@ -1553,7 +1553,7 @@ You may have forgotten to import it.`);
|
|
|
1553
1553
|
}
|
|
1554
1554
|
}), g.withComponent = function(f, p) {
|
|
1555
1555
|
return e(f, _({}, t, p, {
|
|
1556
|
-
shouldForwardProp:
|
|
1556
|
+
shouldForwardProp: _t(g, p, !0)
|
|
1557
1557
|
})).apply(void 0, m);
|
|
1558
1558
|
}, g;
|
|
1559
1559
|
};
|
|
@@ -1752,11 +1752,11 @@ var zr = { exports: {} }, A = {};
|
|
|
1752
1752
|
* This source code is licensed under the MIT license found in the
|
|
1753
1753
|
* LICENSE file in the root directory of this source tree.
|
|
1754
1754
|
*/
|
|
1755
|
-
var
|
|
1755
|
+
var Ot;
|
|
1756
1756
|
function fs() {
|
|
1757
|
-
if (
|
|
1757
|
+
if (Ot)
|
|
1758
1758
|
return A;
|
|
1759
|
-
|
|
1759
|
+
Ot = 1;
|
|
1760
1760
|
var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), g;
|
|
1761
1761
|
g = Symbol.for("react.module.reference");
|
|
1762
1762
|
function f(p) {
|
|
@@ -1831,9 +1831,9 @@ var M = {};
|
|
|
1831
1831
|
* This source code is licensed under the MIT license found in the
|
|
1832
1832
|
* LICENSE file in the root directory of this source tree.
|
|
1833
1833
|
*/
|
|
1834
|
-
var
|
|
1834
|
+
var Ct;
|
|
1835
1835
|
function ds() {
|
|
1836
|
-
return
|
|
1836
|
+
return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1837
1837
|
var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), g = !1, f = !1, p = !1, v = !1, C = !1, $;
|
|
1838
1838
|
$ = Symbol.for("react.module.reference");
|
|
1839
1839
|
function S(x) {
|
|
@@ -1922,7 +1922,7 @@ function ds() {
|
|
|
1922
1922
|
}()), M;
|
|
1923
1923
|
}
|
|
1924
1924
|
process.env.NODE_ENV === "production" ? zr.exports = fs() : zr.exports = ds();
|
|
1925
|
-
var
|
|
1925
|
+
var Tt = zr.exports;
|
|
1926
1926
|
const ps = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
1927
1927
|
function ms(e) {
|
|
1928
1928
|
const r = `${e}`.match(ps);
|
|
@@ -1931,7 +1931,7 @@ function ms(e) {
|
|
|
1931
1931
|
function yn(e, r = "") {
|
|
1932
1932
|
return e.displayName || e.name || ms(e) || r;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Pt(e, r, t) {
|
|
1935
1935
|
const n = yn(r);
|
|
1936
1936
|
return e.displayName || (n !== "" ? `${t}(${n})` : t);
|
|
1937
1937
|
}
|
|
@@ -1943,10 +1943,10 @@ function hs(e) {
|
|
|
1943
1943
|
return yn(e, "Component");
|
|
1944
1944
|
if (typeof e == "object")
|
|
1945
1945
|
switch (e.$$typeof) {
|
|
1946
|
-
case
|
|
1947
|
-
return
|
|
1948
|
-
case
|
|
1949
|
-
return
|
|
1946
|
+
case Tt.ForwardRef:
|
|
1947
|
+
return Pt(e, e.render, "ForwardRef");
|
|
1948
|
+
case Tt.Memo:
|
|
1949
|
+
return Pt(e, e.type, "memo");
|
|
1950
1950
|
default:
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
@@ -2001,8 +2001,8 @@ function bn(e, r, t = void 0) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
), n;
|
|
2003
2003
|
}
|
|
2004
|
-
const
|
|
2005
|
-
let e =
|
|
2004
|
+
const Nt = (e) => e, gs = () => {
|
|
2005
|
+
let e = Nt;
|
|
2006
2006
|
return {
|
|
2007
2007
|
configure(r) {
|
|
2008
2008
|
e = r;
|
|
@@ -2011,7 +2011,7 @@ const Tt = (e) => e, gs = () => {
|
|
|
2011
2011
|
return e(r);
|
|
2012
2012
|
},
|
|
2013
2013
|
reset() {
|
|
2014
|
-
e =
|
|
2014
|
+
e = Nt;
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
2017
|
}, bs = gs(), vs = bs, Es = {
|
|
@@ -2114,7 +2114,7 @@ const Jr = {
|
|
|
2114
2114
|
// desktop
|
|
2115
2115
|
xl: 1536
|
|
2116
2116
|
// large screen
|
|
2117
|
-
},
|
|
2117
|
+
}, kt = {
|
|
2118
2118
|
// Sorted ASC by size. That's important.
|
|
2119
2119
|
// It can't be configured as it's used statically for propTypes.
|
|
2120
2120
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
@@ -2123,11 +2123,11 @@ const Jr = {
|
|
|
2123
2123
|
function X(e, r, t) {
|
|
2124
2124
|
const n = e.theme || {};
|
|
2125
2125
|
if (Array.isArray(r)) {
|
|
2126
|
-
const s = n.breakpoints ||
|
|
2126
|
+
const s = n.breakpoints || kt;
|
|
2127
2127
|
return r.reduce((i, a, c) => (i[s.up(s.keys[c])] = t(r[c]), i), {});
|
|
2128
2128
|
}
|
|
2129
2129
|
if (typeof r == "object") {
|
|
2130
|
-
const s = n.breakpoints ||
|
|
2130
|
+
const s = n.breakpoints || kt;
|
|
2131
2131
|
return Object.keys(r).reduce((i, a) => {
|
|
2132
2132
|
if (Object.keys(s.values || Jr).indexOf(a) !== -1) {
|
|
2133
2133
|
const c = s.up(a);
|
|
@@ -2224,15 +2224,15 @@ const ks = {
|
|
|
2224
2224
|
l: "Left",
|
|
2225
2225
|
x: ["Left", "Right"],
|
|
2226
2226
|
y: ["Top", "Bottom"]
|
|
2227
|
-
},
|
|
2227
|
+
}, Rt = {
|
|
2228
2228
|
marginX: "mx",
|
|
2229
2229
|
marginY: "my",
|
|
2230
2230
|
paddingX: "px",
|
|
2231
2231
|
paddingY: "py"
|
|
2232
2232
|
}, As = Ns((e) => {
|
|
2233
2233
|
if (e.length > 2)
|
|
2234
|
-
if (
|
|
2235
|
-
e =
|
|
2234
|
+
if (Rt[e])
|
|
2235
|
+
e = Rt[e];
|
|
2236
2236
|
else
|
|
2237
2237
|
return [e];
|
|
2238
2238
|
const [r, t] = e.split(""), n = ks[r], o = Rs[t] || "";
|
|
@@ -2880,7 +2880,7 @@ function $i(e) {
|
|
|
2880
2880
|
});
|
|
2881
2881
|
}
|
|
2882
2882
|
const Oi = ["variant"];
|
|
2883
|
-
function
|
|
2883
|
+
function At(e) {
|
|
2884
2884
|
return e.length === 0;
|
|
2885
2885
|
}
|
|
2886
2886
|
function _n(e) {
|
|
@@ -2889,7 +2889,7 @@ function _n(e) {
|
|
|
2889
2889
|
} = e, t = ne(e, Oi);
|
|
2890
2890
|
let n = r || "";
|
|
2891
2891
|
return Object.keys(t).sort().forEach((o) => {
|
|
2892
|
-
o === "color" ? n +=
|
|
2892
|
+
o === "color" ? n += At(n) ? e[o] : ie(e[o]) : n += `${At(n) ? o : ie(o)}${ie(e[o].toString())}`;
|
|
2893
2893
|
}), n;
|
|
2894
2894
|
}
|
|
2895
2895
|
const Ci = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
@@ -2936,7 +2936,7 @@ const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOve
|
|
|
2936
2936
|
function Xe(e) {
|
|
2937
2937
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2938
2938
|
}
|
|
2939
|
-
const Ai = et(),
|
|
2939
|
+
const Ai = et(), Mt = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2940
2940
|
function Je({
|
|
2941
2941
|
defaultTheme: e,
|
|
2942
2942
|
theme: r,
|
|
@@ -2947,7 +2947,7 @@ function Je({
|
|
|
2947
2947
|
function Mi(e) {
|
|
2948
2948
|
return e ? (r, t) => t[e] : null;
|
|
2949
2949
|
}
|
|
2950
|
-
const
|
|
2950
|
+
const It = ({
|
|
2951
2951
|
styledArg: e,
|
|
2952
2952
|
props: r,
|
|
2953
2953
|
defaultTheme: t,
|
|
@@ -2987,14 +2987,14 @@ function Ii(e = {}) {
|
|
|
2987
2987
|
skipSx: m,
|
|
2988
2988
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2989
2989
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2990
|
-
overridesResolver: d = Mi(
|
|
2990
|
+
overridesResolver: d = Mi(Mt(u))
|
|
2991
2991
|
} = a, b = ne(a, Ci), g = l !== void 0 ? l : (
|
|
2992
2992
|
// TODO v6: remove `Root` in the next major release
|
|
2993
2993
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2994
2994
|
u && u !== "Root" && u !== "root" || !1
|
|
2995
2995
|
), f = m || !1;
|
|
2996
2996
|
let p;
|
|
2997
|
-
process.env.NODE_ENV !== "production" && c && (p = `${c}-${
|
|
2997
|
+
process.env.NODE_ENV !== "production" && c && (p = `${c}-${Mt(u || "Root")}`);
|
|
2998
2998
|
let v = Xe;
|
|
2999
2999
|
u === "Root" || u === "root" ? v = n : u ? v = o : Pi(i) && (v = void 0);
|
|
3000
3000
|
const C = cs(i, _({
|
|
@@ -3003,7 +3003,7 @@ function Ii(e = {}) {
|
|
|
3003
3003
|
}, b)), $ = (S, ...h) => {
|
|
3004
3004
|
const N = h ? h.map((w) => {
|
|
3005
3005
|
if (typeof w == "function" && w.__emotion_real !== w)
|
|
3006
|
-
return (L) =>
|
|
3006
|
+
return (L) => It({
|
|
3007
3007
|
styledArg: w,
|
|
3008
3008
|
props: L,
|
|
3009
3009
|
defaultTheme: t,
|
|
@@ -3033,7 +3033,7 @@ function Ii(e = {}) {
|
|
|
3033
3033
|
typeof S == "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
3034
3034
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
3035
3035
|
// which are basically components used as a selectors.
|
|
3036
|
-
S.__emotion_real !== S && (O = (w) =>
|
|
3036
|
+
S.__emotion_real !== S && (O = (w) => It({
|
|
3037
3037
|
styledArg: S,
|
|
3038
3038
|
props: w,
|
|
3039
3039
|
defaultTheme: t,
|
|
@@ -3149,13 +3149,13 @@ function Vi(e) {
|
|
|
3149
3149
|
values: c
|
|
3150
3150
|
});
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function jt(e) {
|
|
3153
3153
|
e = _e(e);
|
|
3154
3154
|
let r = e.type === "hsl" || e.type === "hsla" ? _e(Vi(e)).values : e.values;
|
|
3155
3155
|
return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3158
|
-
const t =
|
|
3157
|
+
function Dt(e, r) {
|
|
3158
|
+
const t = jt(e), n = jt(r);
|
|
3159
3159
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
3160
3160
|
}
|
|
3161
3161
|
function zi(e, r) {
|
|
@@ -3192,7 +3192,7 @@ function Ui(e, r) {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
}, r);
|
|
3194
3194
|
}
|
|
3195
|
-
const Wi = ["mode", "contrastThreshold", "tonalOffset"],
|
|
3195
|
+
const Wi = ["mode", "contrastThreshold", "tonalOffset"], Ft = {
|
|
3196
3196
|
// The colors used to style the text.
|
|
3197
3197
|
text: {
|
|
3198
3198
|
// The most important text.
|
|
@@ -3255,7 +3255,7 @@ const Wi = ["mode", "contrastThreshold", "tonalOffset"], jt = {
|
|
|
3255
3255
|
activatedOpacity: 0.24
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
|
-
function
|
|
3258
|
+
function Vt(e, r, t, n) {
|
|
3259
3259
|
const o = n.light || n, s = n.dark || n * 1.5;
|
|
3260
3260
|
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Li(e.main, o) : r === "dark" && (e.dark = zi(e.main, s)));
|
|
3261
3261
|
}
|
|
@@ -3333,9 +3333,9 @@ function Xi(e) {
|
|
|
3333
3333
|
tonalOffset: n = 0.2
|
|
3334
3334
|
} = e, o = ne(e, Wi), s = e.primary || Bi(r), i = e.secondary || Yi(r), a = e.error || Gi(r), c = e.info || Ki(r), u = e.success || qi(r), l = e.warning || Hi(r);
|
|
3335
3335
|
function m(f) {
|
|
3336
|
-
const p =
|
|
3336
|
+
const p = Dt(f, Ir.text.primary) >= t ? Ir.text.primary : Ft.text.primary;
|
|
3337
3337
|
if (process.env.NODE_ENV !== "production") {
|
|
3338
|
-
const v =
|
|
3338
|
+
const v = Dt(f, p);
|
|
3339
3339
|
v < 3 && console.error([`MUI: The contrast ratio of ${v}:1 for ${p} on ${f}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
3340
3340
|
`));
|
|
3341
3341
|
}
|
|
@@ -3366,10 +3366,10 @@ const theme1 = createTheme({ palette: {
|
|
|
3366
3366
|
const theme2 = createTheme({ palette: {
|
|
3367
3367
|
primary: { main: green[500] },
|
|
3368
3368
|
} });` : xe(12, p ? ` (${p})` : "", JSON.stringify(f.main)));
|
|
3369
|
-
return
|
|
3369
|
+
return Vt(f, "light", C, n), Vt(f, "dark", $, n), f.contrastText || (f.contrastText = m(f.main)), f;
|
|
3370
3370
|
}, b = {
|
|
3371
3371
|
dark: Ir,
|
|
3372
|
-
light:
|
|
3372
|
+
light: Ft
|
|
3373
3373
|
};
|
|
3374
3374
|
return process.env.NODE_ENV !== "production" && (b[r] || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), te(_({
|
|
3375
3375
|
// A collection of common colors.
|
|
@@ -3429,12 +3429,12 @@ const Ji = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "f
|
|
|
3429
3429
|
function Zi(e) {
|
|
3430
3430
|
return Math.round(e * 1e5) / 1e5;
|
|
3431
3431
|
}
|
|
3432
|
-
const
|
|
3432
|
+
const zt = {
|
|
3433
3433
|
textTransform: "uppercase"
|
|
3434
|
-
},
|
|
3434
|
+
}, Lt = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
3435
3435
|
function Qi(e, r) {
|
|
3436
3436
|
const t = typeof r == "function" ? r(e) : r, {
|
|
3437
|
-
fontFamily: n =
|
|
3437
|
+
fontFamily: n = Lt,
|
|
3438
3438
|
// The default font size of the Material Specification.
|
|
3439
3439
|
fontSize: o = 14,
|
|
3440
3440
|
// px
|
|
@@ -3456,7 +3456,7 @@ function Qi(e, r) {
|
|
|
3456
3456
|
fontSize: g(C),
|
|
3457
3457
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
3458
3458
|
lineHeight: $
|
|
3459
|
-
}, n ===
|
|
3459
|
+
}, n === Lt ? {
|
|
3460
3460
|
letterSpacing: `${Zi(S / C)}em`
|
|
3461
3461
|
} : {}, h, l), p = {
|
|
3462
3462
|
h1: f(s, 96, 1.167, -1.5),
|
|
@@ -3469,9 +3469,9 @@ function Qi(e, r) {
|
|
|
3469
3469
|
subtitle2: f(a, 14, 1.57, 0.1),
|
|
3470
3470
|
body1: f(i, 16, 1.5, 0.15),
|
|
3471
3471
|
body2: f(i, 14, 1.43, 0.15),
|
|
3472
|
-
button: f(a, 14, 1.75, 0.4,
|
|
3472
|
+
button: f(a, 14, 1.75, 0.4, zt),
|
|
3473
3473
|
caption: f(i, 12, 1.66, 0.4),
|
|
3474
|
-
overline: f(i, 12, 2.66, 1,
|
|
3474
|
+
overline: f(i, 12, 2.66, 1, zt),
|
|
3475
3475
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
3476
3476
|
inherit: {
|
|
3477
3477
|
fontFamily: "inherit",
|
|
@@ -3522,7 +3522,7 @@ const na = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2,
|
|
|
3522
3522
|
// recommended when something is leaving screen
|
|
3523
3523
|
leavingScreen: 195
|
|
3524
3524
|
};
|
|
3525
|
-
function
|
|
3525
|
+
function Ut(e) {
|
|
3526
3526
|
return `${Math.round(e)}ms`;
|
|
3527
3527
|
}
|
|
3528
3528
|
function ca(e) {
|
|
@@ -3546,7 +3546,7 @@ function ua(e) {
|
|
|
3546
3546
|
!l(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(i) && !l(i) && console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`), l(a) || console.error('MUI: Argument "easing" must be a string.'), !m(c) && !l(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
3547
3547
|
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
3548
3548
|
}
|
|
3549
|
-
return (Array.isArray(o) ? o : [o]).map((l) => `${l} ${typeof i == "string" ? i :
|
|
3549
|
+
return (Array.isArray(o) ? o : [o]).map((l) => `${l} ${typeof i == "string" ? i : Ut(i)} ${a} ${typeof c == "string" ? c : Ut(c)}`).join(",");
|
|
3550
3550
|
}
|
|
3551
3551
|
}, e, {
|
|
3552
3552
|
easing: r,
|
|
@@ -3639,8 +3639,8 @@ function ba(e) {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
vn("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
3641
3641
|
const va = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
3642
|
-
let xr = (e) => e,
|
|
3643
|
-
const le = 44, Ea = mn(
|
|
3642
|
+
let xr = (e) => e, Wt, Bt, Yt, Gt;
|
|
3643
|
+
const le = 44, Ea = mn(Wt || (Wt = xr`
|
|
3644
3644
|
0% {
|
|
3645
3645
|
transform: rotate(0deg);
|
|
3646
3646
|
}
|
|
@@ -3648,7 +3648,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3648
3648
|
100% {
|
|
3649
3649
|
transform: rotate(360deg);
|
|
3650
3650
|
}
|
|
3651
|
-
`)), xa = mn(
|
|
3651
|
+
`)), xa = mn(Bt || (Bt = xr`
|
|
3652
3652
|
0% {
|
|
3653
3653
|
stroke-dasharray: 1px, 200px;
|
|
3654
3654
|
stroke-dashoffset: 0;
|
|
@@ -3695,7 +3695,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3695
3695
|
color: (r.vars || r).palette[e.color].main
|
|
3696
3696
|
}), ({
|
|
3697
3697
|
ownerState: e
|
|
3698
|
-
}) => e.variant === "indeterminate" && Xr(
|
|
3698
|
+
}) => e.variant === "indeterminate" && Xr(Yt || (Yt = xr`
|
|
3699
3699
|
animation: ${0} 1.4s linear infinite;
|
|
3700
3700
|
`), Ea)), _a = Er("svg", {
|
|
3701
3701
|
name: "MuiCircularProgress",
|
|
@@ -3727,7 +3727,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3727
3727
|
// Add the unit to fix a Edge 16 and below bug.
|
|
3728
3728
|
}), ({
|
|
3729
3729
|
ownerState: e
|
|
3730
|
-
}) => e.variant === "indeterminate" && !e.disableShrink && Xr(
|
|
3730
|
+
}) => e.variant === "indeterminate" && !e.disableShrink && Xr(Gt || (Gt = xr`
|
|
3731
3731
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
3732
3732
|
`), xa)), Cn = /* @__PURE__ */ I.forwardRef(function(r, t) {
|
|
3733
3733
|
const n = On({
|
|
@@ -3842,7 +3842,7 @@ process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
|
3842
3842
|
});
|
|
3843
3843
|
const Oa = Cn, Tn = /* @__PURE__ */ I.createContext();
|
|
3844
3844
|
process.env.NODE_ENV !== "production" && (Tn.displayName = "GridContext");
|
|
3845
|
-
const
|
|
3845
|
+
const Kt = Tn;
|
|
3846
3846
|
function Ca(e) {
|
|
3847
3847
|
return ur("MuiGrid", e);
|
|
3848
3848
|
}
|
|
@@ -4131,7 +4131,7 @@ const Va = (e) => {
|
|
|
4131
4131
|
spacing: g = 0,
|
|
4132
4132
|
wrap: f = "wrap",
|
|
4133
4133
|
zeroMinWidth: p = !1
|
|
4134
|
-
} = s, v = ne(s, ka), C = b || g, $ = c || g, S = I.useContext(
|
|
4134
|
+
} = s, v = ne(s, ka), C = b || g, $ = c || g, S = I.useContext(Kt), h = l ? a || 12 : S, N = {}, O = _({}, v);
|
|
4135
4135
|
o.keys.forEach((w) => {
|
|
4136
4136
|
v[w] != null && (N[w] = v[w], delete O[w]);
|
|
4137
4137
|
});
|
|
@@ -4148,7 +4148,7 @@ const Va = (e) => {
|
|
|
4148
4148
|
}, N, {
|
|
4149
4149
|
breakpoints: o.keys
|
|
4150
4150
|
}), B = Va(Z);
|
|
4151
|
-
return /* @__PURE__ */ re(
|
|
4151
|
+
return /* @__PURE__ */ re(Kt.Provider, {
|
|
4152
4152
|
value: h,
|
|
4153
4153
|
children: /* @__PURE__ */ re(Da, _({
|
|
4154
4154
|
ownerState: Z,
|
|
@@ -4299,11 +4299,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4299
4299
|
zeroMinWidth: e("item")
|
|
4300
4300
|
});
|
|
4301
4301
|
}
|
|
4302
|
-
const za = Me,
|
|
4302
|
+
const za = Me, qt = window.location.href, Nn = An({}), qa = ({ children: e, baseUrl: r, userData: t }) => {
|
|
4303
4303
|
const n = () => {
|
|
4304
|
-
window.location.href = `${r}/authentication/login?callbackUrl=${
|
|
4304
|
+
window.location.href = `${r}/authentication/login?callbackUrl=${qt}`;
|
|
4305
4305
|
}, o = () => {
|
|
4306
|
-
window.location.href = `${r}/authentication/logout?callbackUrl=${
|
|
4306
|
+
window.location.href = `${r}/authentication/logout?callbackUrl=${qt}`;
|
|
4307
4307
|
};
|
|
4308
4308
|
return t != null && t.isFetching ? /* @__PURE__ */ re(
|
|
4309
4309
|
za,
|
|
@@ -4324,11 +4324,6 @@ const za = Me, Gt = window.location.href, Nn = An({}), qa = ({ children: e, base
|
|
|
4324
4324
|
}, Ha = () => {
|
|
4325
4325
|
const { login: e, logout: r, user: t } = Xt(Nn);
|
|
4326
4326
|
return { login: e, logout: r, user: t };
|
|
4327
|
-
}, Kt = {
|
|
4328
|
-
TOKEN_MALFORMED: "token_malformed",
|
|
4329
|
-
TOKEN_EXPIRED: "token_expired"
|
|
4330
|
-
}, qt = (e) => {
|
|
4331
|
-
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.href}`;
|
|
4332
4327
|
};
|
|
4333
4328
|
function Xa({
|
|
4334
4329
|
config: e,
|
|
@@ -4349,7 +4344,7 @@ function Xa({
|
|
|
4349
4344
|
var i, a, c, u, l, m;
|
|
4350
4345
|
console.error("Error 🚨:", o);
|
|
4351
4346
|
const s = o == null ? void 0 : o.config;
|
|
4352
|
-
if (((i = o.response) == null ? void 0 : i.status) === 401 && o.response.data.errorMessage ===
|
|
4347
|
+
if (((i = o.response) == null ? void 0 : i.status) === 401 && o.response.data.errorMessage === ot.TOKEN_EXPIRED && !s._retry && (s._retry = !0, t.post("/authentication/api/v1/auth/refresh-token").then(() => t(s)).catch(() => st(e.baseURL))), ((a = o.response) == null ? void 0 : a.status) === 401 && (((c = o.response) == null ? void 0 : c.data.errorMessage) !== ot.TOKEN_EXPIRED || !((u = o.response) != null && u.data.errorMessage)) && st(e.baseURL), o.response.status !== 401) {
|
|
4353
4348
|
const d = ((l = o.response) == null ? void 0 : l.data) && ((m = o.response.data) == null ? void 0 : m.errorMessage) || "Something went wrong!";
|
|
4354
4349
|
return r(d), Promise.reject(o.response.data);
|
|
4355
4350
|
}
|