@ukpc-lib/react 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +6 -6
- package/dist/components/index.js +488 -485
- package/dist/share/index.cjs +18 -18
- package/dist/share/index.js +257 -247
- package/package.json +3 -5
- package/web-components-bundle/global-menu/index.cjs +12 -11
- package/web-components-bundle/global-menu/index.js +655 -636
- package/web-components-bundle/global-topbar/index.cjs +2 -2
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/{index-fe58ccfa.cjs → index-447756c6.cjs} +16 -16
- package/web-components-bundle/{index-6fdc89ad.js → index-6ba7e1d4.js} +380 -377
package/dist/share/index.js
CHANGED
|
@@ -98,7 +98,7 @@ const Fn = {
|
|
|
98
98
|
A200: "#ffab40",
|
|
99
99
|
A400: "#ff9100",
|
|
100
100
|
A700: "#ff6d00"
|
|
101
|
-
}, Ne = Bn,
|
|
101
|
+
}, Ne = Bn, Gn = {
|
|
102
102
|
50: "#fafafa",
|
|
103
103
|
100: "#f5f5f5",
|
|
104
104
|
200: "#eeeeee",
|
|
@@ -113,7 +113,7 @@ const Fn = {
|
|
|
113
113
|
A200: "#eeeeee",
|
|
114
114
|
A400: "#bdbdbd",
|
|
115
115
|
A700: "#616161"
|
|
116
|
-
},
|
|
116
|
+
}, Yn = Gn;
|
|
117
117
|
function xe(e) {
|
|
118
118
|
let r = "https://mui.com/production-error/?code=" + e;
|
|
119
119
|
for (let t = 1; t < arguments.length; t += 1)
|
|
@@ -203,16 +203,16 @@ function je(e, r, t) {
|
|
|
203
203
|
function oe(e) {
|
|
204
204
|
return e.length;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Gr(e) {
|
|
207
207
|
return e.length;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ye(e, r) {
|
|
210
210
|
return r.push(e), e;
|
|
211
211
|
}
|
|
212
212
|
function oo(e, r) {
|
|
213
213
|
return e.map(r).join("");
|
|
214
214
|
}
|
|
215
|
-
var or = 1, Se = 1, tn = 0,
|
|
215
|
+
var or = 1, Se = 1, tn = 0, Y = 0, z = 0, $e = "";
|
|
216
216
|
function sr(e, r, t, n, o, s, i) {
|
|
217
217
|
return { value: e, root: r, parent: t, type: n, props: o, children: s, line: or, column: Se, length: i, return: "" };
|
|
218
218
|
}
|
|
@@ -223,16 +223,16 @@ function so() {
|
|
|
223
223
|
return z;
|
|
224
224
|
}
|
|
225
225
|
function io() {
|
|
226
|
-
return z =
|
|
226
|
+
return z = Y > 0 ? U($e, --Y) : 0, Se--, z === 10 && (Se = 1, or--), z;
|
|
227
227
|
}
|
|
228
228
|
function q() {
|
|
229
|
-
return z =
|
|
229
|
+
return z = Y < tn ? U($e, Y++) : 0, Se++, z === 10 && (Se = 1, or++), z;
|
|
230
230
|
}
|
|
231
231
|
function se() {
|
|
232
|
-
return U($e,
|
|
232
|
+
return U($e, Y);
|
|
233
233
|
}
|
|
234
234
|
function Ke() {
|
|
235
|
-
return
|
|
235
|
+
return Y;
|
|
236
236
|
}
|
|
237
237
|
function ze(e, r) {
|
|
238
238
|
return je($e, e, r);
|
|
@@ -270,13 +270,13 @@ function De(e) {
|
|
|
270
270
|
return 0;
|
|
271
271
|
}
|
|
272
272
|
function nn(e) {
|
|
273
|
-
return or = Se = 1, tn = oe($e = e),
|
|
273
|
+
return or = Se = 1, tn = oe($e = e), Y = 0, [];
|
|
274
274
|
}
|
|
275
275
|
function on(e) {
|
|
276
276
|
return $e = "", e;
|
|
277
277
|
}
|
|
278
278
|
function qe(e) {
|
|
279
|
-
return rn(ze(
|
|
279
|
+
return rn(ze(Y - 1, Dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
280
280
|
}
|
|
281
281
|
function ao(e) {
|
|
282
282
|
for (; (z = se()) && z < 33; )
|
|
@@ -292,7 +292,7 @@ function Dr(e) {
|
|
|
292
292
|
for (; q(); )
|
|
293
293
|
switch (z) {
|
|
294
294
|
case e:
|
|
295
|
-
return
|
|
295
|
+
return Y;
|
|
296
296
|
case 34:
|
|
297
297
|
case 39:
|
|
298
298
|
e !== 34 && e !== 39 && Dr(z);
|
|
@@ -304,18 +304,18 @@ function Dr(e) {
|
|
|
304
304
|
q();
|
|
305
305
|
break;
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return Y;
|
|
308
308
|
}
|
|
309
309
|
function uo(e, r) {
|
|
310
310
|
for (; q() && e + z !== 47 + 10; )
|
|
311
311
|
if (e + z === 42 + 42 && se() === 47)
|
|
312
312
|
break;
|
|
313
|
-
return "/*" + ze(r,
|
|
313
|
+
return "/*" + ze(r, Y - 1) + "*" + nr(e === 47 ? e : q());
|
|
314
314
|
}
|
|
315
315
|
function lo(e) {
|
|
316
316
|
for (; !De(se()); )
|
|
317
317
|
q();
|
|
318
|
-
return ze(e,
|
|
318
|
+
return ze(e, Y);
|
|
319
319
|
}
|
|
320
320
|
function fo(e) {
|
|
321
321
|
return on(He("", null, null, null, [""], e = nn(e), 0, [0], e));
|
|
@@ -346,7 +346,7 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
346
346
|
switch (se()) {
|
|
347
347
|
case 42:
|
|
348
348
|
case 47:
|
|
349
|
-
|
|
349
|
+
Ye(po(uo(q(), Ke()), r, t), c);
|
|
350
350
|
break;
|
|
351
351
|
default:
|
|
352
352
|
O += "/";
|
|
@@ -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 &&
|
|
365
|
+
v == -1 && (O = P(O, /\f/g, "")), b > 0 && oe(O) - m && Ye(b > 32 ? st(O + ";", n, t, m - 1) : st(P(O, " ", "") + ";", n, t, m - 2), c);
|
|
366
366
|
break;
|
|
367
367
|
case 59:
|
|
368
368
|
O += ";";
|
|
369
369
|
default:
|
|
370
|
-
if (
|
|
370
|
+
if (Ye(N = ot(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 &&
|
|
379
|
+
He(e, N, N, n && Ye(ot(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);
|
|
@@ -410,7 +410,7 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
410
410
|
return s;
|
|
411
411
|
}
|
|
412
412
|
function ot(e, r, t, n, o, s, i, a, c, u, l) {
|
|
413
|
-
for (var m = o - 1, d = o === 0 ? s : [""], b =
|
|
413
|
+
for (var m = o - 1, d = o === 0 ? s : [""], b = Gr(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++] = $);
|
|
416
416
|
return sr(e, r, t, o === 0 ? Wr : a, c, u, l);
|
|
@@ -422,7 +422,7 @@ function st(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) {
|
|
425
|
-
for (var t = "", n =
|
|
425
|
+
for (var t = "", n = Gr(e), o = 0; o < n; o++)
|
|
426
426
|
t += r(e[o], o, e, r) || "";
|
|
427
427
|
return t;
|
|
428
428
|
}
|
|
@@ -444,7 +444,7 @@ function mo(e, r, t, n) {
|
|
|
444
444
|
return oe(t = be(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
445
445
|
}
|
|
446
446
|
function ho(e) {
|
|
447
|
-
var r =
|
|
447
|
+
var r = Gr(e);
|
|
448
448
|
return function(t, n, o, s) {
|
|
449
449
|
for (var i = "", a = 0; a < r; a++)
|
|
450
450
|
i += e[a](t, n, o, s) || "";
|
|
@@ -459,13 +459,13 @@ function yo(e) {
|
|
|
459
459
|
var go = function(r, t, n) {
|
|
460
460
|
for (var o = 0, s = 0; o = s, s = se(), o === 38 && s === 12 && (t[n] = 1), !De(s); )
|
|
461
461
|
q();
|
|
462
|
-
return ze(r,
|
|
462
|
+
return ze(r, Y);
|
|
463
463
|
}, bo = function(r, t) {
|
|
464
464
|
var n = -1, o = 44;
|
|
465
465
|
do
|
|
466
466
|
switch (De(o)) {
|
|
467
467
|
case 0:
|
|
468
|
-
o === 38 && se() === 12 && (t[n] = 1), r[n] += go(
|
|
468
|
+
o === 38 && se() === 12 && (t[n] = 1), r[n] += go(Y - 1, t, n);
|
|
469
469
|
break;
|
|
470
470
|
case 2:
|
|
471
471
|
r[n] += qe(o);
|
|
@@ -875,7 +875,7 @@ function ko() {
|
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
var h = c, N = u, O = a, Z = i, B = r, w = l, L = n,
|
|
878
|
+
var h = c, N = u, O = a, Z = i, B = r, w = l, L = n, G = g, ae = b, Q = t, ue = s, Ce = o, Sr = m, Te = !1;
|
|
879
879
|
function We(E) {
|
|
880
880
|
return Te || (Te = !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.")), Be(E) || S(E) === c;
|
|
881
881
|
}
|
|
@@ -915,7 +915,7 @@ function ko() {
|
|
|
915
915
|
function Ar(E) {
|
|
916
916
|
return S(E) === m;
|
|
917
917
|
}
|
|
918
|
-
R.AsyncMode = h, R.ConcurrentMode = N, R.ContextConsumer = O, R.ContextProvider = Z, R.Element = B, R.ForwardRef = w, R.Fragment = L, R.Lazy =
|
|
918
|
+
R.AsyncMode = h, R.ConcurrentMode = N, R.ContextConsumer = O, R.ContextProvider = Z, R.Element = B, R.ForwardRef = w, R.Fragment = L, R.Lazy = G, R.Memo = ae, R.Portal = Q, R.Profiler = ue, R.StrictMode = Ce, R.Suspense = Sr, R.isAsyncMode = We, R.isConcurrentMode = Be, R.isContextConsumer = wr, R.isContextProvider = _r, R.isElement = $r, R.isForwardRef = Or, R.isFragment = Cr, R.isLazy = Tr, R.isMemo = Pr, R.isPortal = Nr, R.isProfiler = kr, R.isStrictMode = Rr, R.isSuspense = Ar, R.isValidElementType = $, R.typeOf = S;
|
|
919
919
|
}()), R;
|
|
920
920
|
}
|
|
921
921
|
process.env.NODE_ENV === "production" ? Fr.exports = No() : Fr.exports = ko();
|
|
@@ -936,7 +936,7 @@ var Ro = Fr.exports, cn = Ro, Ao = {
|
|
|
936
936
|
un[cn.ForwardRef] = Ao;
|
|
937
937
|
un[cn.Memo] = Mo;
|
|
938
938
|
var Io = !0;
|
|
939
|
-
function
|
|
939
|
+
function Yr(e, r, t) {
|
|
940
940
|
var n = "";
|
|
941
941
|
return t.split(" ").forEach(function(o) {
|
|
942
942
|
e[o] !== void 0 ? r.push(e[o] + ";") : n += o + " ";
|
|
@@ -1097,7 +1097,7 @@ function Fe(e, r, t) {
|
|
|
1097
1097
|
var o = t.styles + ";";
|
|
1098
1098
|
return process.env.NODE_ENV !== "production" && t.map !== void 0 && (o += t.map), o;
|
|
1099
1099
|
}
|
|
1100
|
-
return
|
|
1100
|
+
return Go(e, r, t);
|
|
1101
1101
|
}
|
|
1102
1102
|
case "function": {
|
|
1103
1103
|
if (e !== void 0) {
|
|
@@ -1127,7 +1127,7 @@ You should wrap it with \`css\` like this:
|
|
|
1127
1127
|
var u = r[t];
|
|
1128
1128
|
return u !== void 0 ? u : t;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function Go(e, r, t) {
|
|
1131
1131
|
var n = "";
|
|
1132
1132
|
if (Array.isArray(t))
|
|
1133
1133
|
for (var o = 0; o < t.length; o++)
|
|
@@ -1191,9 +1191,9 @@ var ee, we = function(r, t, n) {
|
|
|
1191
1191
|
styles: s,
|
|
1192
1192
|
next: ee
|
|
1193
1193
|
};
|
|
1194
|
-
},
|
|
1194
|
+
}, Yo = function(r) {
|
|
1195
1195
|
return r();
|
|
1196
|
-
}, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn ||
|
|
1196
|
+
}, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn || Yo, mt = 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
|
|
@@ -1222,7 +1222,7 @@ var ht = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", yt = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
1222
1222
|
var n = e.css;
|
|
1223
1223
|
typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
|
|
1224
1224
|
var o = e[ht], s = [n], i = "";
|
|
1225
|
-
typeof e.className == "string" ? i =
|
|
1225
|
+
typeof e.className == "string" ? i = Yr(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
1228
|
var c = e[yt];
|
|
@@ -1442,7 +1442,7 @@ var mn = function() {
|
|
|
1442
1442
|
return o;
|
|
1443
1443
|
};
|
|
1444
1444
|
function Qo(e, r, t) {
|
|
1445
|
-
var n = [], o =
|
|
1445
|
+
var n = [], o = Yr(e, n, t);
|
|
1446
1446
|
return n.length < 2 ? t : o + r(n);
|
|
1447
1447
|
}
|
|
1448
1448
|
var es = function(r) {
|
|
@@ -1534,7 +1534,7 @@ You may have forgotten to import it.`);
|
|
|
1534
1534
|
h[N] = f[N];
|
|
1535
1535
|
h.theme = I.useContext(Oe);
|
|
1536
1536
|
}
|
|
1537
|
-
typeof f.className == "string" ? $ =
|
|
1537
|
+
typeof f.className == "string" ? $ = Yr(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
1540
|
var Z = u && a === void 0 ? xt(C) : c, B = {};
|
|
@@ -1698,7 +1698,7 @@ as.forEach(function(e) {
|
|
|
1698
1698
|
Vr[e] = Vr(e);
|
|
1699
1699
|
});
|
|
1700
1700
|
/**
|
|
1701
|
-
* @mui/styled-engine v5.15.
|
|
1701
|
+
* @mui/styled-engine v5.15.7
|
|
1702
1702
|
*
|
|
1703
1703
|
* @license MIT
|
|
1704
1704
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1848,16 +1848,16 @@ function ds() {
|
|
|
1848
1848
|
var de = x.$$typeof;
|
|
1849
1849
|
switch (de) {
|
|
1850
1850
|
case e:
|
|
1851
|
-
var
|
|
1852
|
-
switch (
|
|
1851
|
+
var Ge = x.type;
|
|
1852
|
+
switch (Ge) {
|
|
1853
1853
|
case t:
|
|
1854
1854
|
case o:
|
|
1855
1855
|
case n:
|
|
1856
1856
|
case u:
|
|
1857
1857
|
case l:
|
|
1858
|
-
return
|
|
1858
|
+
return Ge;
|
|
1859
1859
|
default:
|
|
1860
|
-
var nt =
|
|
1860
|
+
var nt = Ge && Ge.$$typeof;
|
|
1861
1861
|
switch (nt) {
|
|
1862
1862
|
case a:
|
|
1863
1863
|
case i:
|
|
@@ -1875,7 +1875,7 @@ function ds() {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
var N = i, O = s, Z = e, B = c, w = t, L = d,
|
|
1878
|
+
var N = i, O = s, Z = e, B = c, w = t, L = d, G = m, ae = r, Q = o, ue = n, Ce = u, Sr = l, Te = !1, We = !1;
|
|
1879
1879
|
function Be(x) {
|
|
1880
1880
|
return Te || (Te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1881
1881
|
}
|
|
@@ -1918,7 +1918,7 @@ function ds() {
|
|
|
1918
1918
|
function Pe(x) {
|
|
1919
1919
|
return h(x) === l;
|
|
1920
1920
|
}
|
|
1921
|
-
M.ContextConsumer = N, M.ContextProvider = O, M.Element = Z, M.ForwardRef = B, M.Fragment = w, M.Lazy = L, M.Memo =
|
|
1921
|
+
M.ContextConsumer = N, M.ContextProvider = O, M.Element = Z, M.ForwardRef = B, M.Fragment = w, M.Lazy = L, M.Memo = G, M.Portal = ae, M.Profiler = Q, M.StrictMode = ue, M.Suspense = Ce, M.SuspenseList = Sr, M.isAsyncMode = Be, M.isConcurrentMode = wr, M.isContextConsumer = _r, M.isContextProvider = $r, M.isElement = Or, M.isForwardRef = Cr, M.isFragment = Tr, M.isLazy = Pr, M.isMemo = Nr, M.isPortal = kr, M.isProfiler = Rr, M.isStrictMode = Ar, M.isSuspense = E, M.isSuspenseList = Pe, M.isValidElementType = S, M.typeOf = h;
|
|
1922
1922
|
}()), M;
|
|
1923
1923
|
}
|
|
1924
1924
|
process.env.NODE_ENV === "production" ? zr.exports = fs() : zr.exports = ds();
|
|
@@ -2038,7 +2038,10 @@ function vn(e, r, t = "Mui") {
|
|
|
2038
2038
|
n[o] = ur(e, o, t);
|
|
2039
2039
|
}), n;
|
|
2040
2040
|
}
|
|
2041
|
-
|
|
2041
|
+
function xs(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
2042
|
+
return Math.max(r, Math.min(e, t));
|
|
2043
|
+
}
|
|
2044
|
+
const Ss = ["values", "unit", "step"], ws = (e) => {
|
|
2042
2045
|
const r = Object.keys(e).map((t) => ({
|
|
2043
2046
|
key: t,
|
|
2044
2047
|
val: e[t]
|
|
@@ -2047,7 +2050,7 @@ const xs = ["values", "unit", "step"], Ss = (e) => {
|
|
|
2047
2050
|
[n.key]: n.val
|
|
2048
2051
|
}), {});
|
|
2049
2052
|
};
|
|
2050
|
-
function
|
|
2053
|
+
function _s(e) {
|
|
2051
2054
|
const {
|
|
2052
2055
|
// The breakpoint **start** at this value.
|
|
2053
2056
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
@@ -2065,7 +2068,7 @@ function ws(e) {
|
|
|
2065
2068
|
},
|
|
2066
2069
|
unit: t = "px",
|
|
2067
2070
|
step: n = 5
|
|
2068
|
-
} = e, o = ne(e,
|
|
2071
|
+
} = e, o = ne(e, Ss), s = ws(r), i = Object.keys(s);
|
|
2069
2072
|
function a(d) {
|
|
2070
2073
|
return `@media (min-width:${typeof r[d] == "number" ? r[d] : d}${t})`;
|
|
2071
2074
|
}
|
|
@@ -2094,9 +2097,9 @@ function ws(e) {
|
|
|
2094
2097
|
unit: t
|
|
2095
2098
|
}, o);
|
|
2096
2099
|
}
|
|
2097
|
-
const
|
|
2100
|
+
const $s = {
|
|
2098
2101
|
borderRadius: 4
|
|
2099
|
-
},
|
|
2102
|
+
}, Os = $s, Cs = process.env.NODE_ENV !== "production" ? y.oneOfType([y.number, y.string, y.object, y.array]) : {}, fe = Cs;
|
|
2100
2103
|
function Ae(e, r) {
|
|
2101
2104
|
return r ? te(e, r, {
|
|
2102
2105
|
clone: !1
|
|
@@ -2141,20 +2144,20 @@ function X(e, r, t) {
|
|
|
2141
2144
|
}
|
|
2142
2145
|
return t(r);
|
|
2143
2146
|
}
|
|
2144
|
-
function
|
|
2147
|
+
function Ts(e = {}) {
|
|
2145
2148
|
var r;
|
|
2146
2149
|
return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
|
|
2147
2150
|
const s = e.up(o);
|
|
2148
2151
|
return n[s] = {}, n;
|
|
2149
2152
|
}, {})) || {};
|
|
2150
2153
|
}
|
|
2151
|
-
function
|
|
2154
|
+
function Ps(e, r) {
|
|
2152
2155
|
return e.reduce((t, n) => {
|
|
2153
2156
|
const o = t[n];
|
|
2154
2157
|
return (!o || Object.keys(o).length === 0) && delete t[n], t;
|
|
2155
2158
|
}, r);
|
|
2156
2159
|
}
|
|
2157
|
-
function
|
|
2160
|
+
function Ns(e, r) {
|
|
2158
2161
|
if (typeof e != "object")
|
|
2159
2162
|
return {};
|
|
2160
2163
|
const t = {}, n = Object.keys(r);
|
|
@@ -2169,7 +2172,7 @@ function lr({
|
|
|
2169
2172
|
breakpoints: r,
|
|
2170
2173
|
base: t
|
|
2171
2174
|
}) {
|
|
2172
|
-
const n = t ||
|
|
2175
|
+
const n = t || Ns(e, r), o = Object.keys(n);
|
|
2173
2176
|
if (o.length === 0)
|
|
2174
2177
|
return e;
|
|
2175
2178
|
let s;
|
|
@@ -2210,14 +2213,14 @@ function V(e) {
|
|
|
2210
2213
|
[r]: fe
|
|
2211
2214
|
} : {}, s.filterProps = [r], s;
|
|
2212
2215
|
}
|
|
2213
|
-
function
|
|
2216
|
+
function ks(e) {
|
|
2214
2217
|
const r = {};
|
|
2215
2218
|
return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
|
|
2216
2219
|
}
|
|
2217
|
-
const
|
|
2220
|
+
const Rs = {
|
|
2218
2221
|
m: "margin",
|
|
2219
2222
|
p: "padding"
|
|
2220
|
-
},
|
|
2223
|
+
}, As = {
|
|
2221
2224
|
t: "Top",
|
|
2222
2225
|
r: "Right",
|
|
2223
2226
|
b: "Bottom",
|
|
@@ -2229,15 +2232,15 @@ const ks = {
|
|
|
2229
2232
|
marginY: "my",
|
|
2230
2233
|
paddingX: "px",
|
|
2231
2234
|
paddingY: "py"
|
|
2232
|
-
},
|
|
2235
|
+
}, Ms = ks((e) => {
|
|
2233
2236
|
if (e.length > 2)
|
|
2234
2237
|
if (Nt[e])
|
|
2235
2238
|
e = Nt[e];
|
|
2236
2239
|
else
|
|
2237
2240
|
return [e];
|
|
2238
|
-
const [r, t] = e.split(""), n =
|
|
2241
|
+
const [r, t] = e.split(""), n = Rs[r], o = As[t] || "";
|
|
2239
2242
|
return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
|
|
2240
|
-
}), dr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], pr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"],
|
|
2243
|
+
}), dr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], pr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Is = [...dr, ...pr];
|
|
2241
2244
|
function Le(e, r, t, n) {
|
|
2242
2245
|
var o;
|
|
2243
2246
|
const s = (o = fr(e, r, !1)) != null ? o : t;
|
|
@@ -2256,18 +2259,18 @@ function Ue(e, r) {
|
|
|
2256
2259
|
const t = Math.abs(r), n = e(t);
|
|
2257
2260
|
return r >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
|
|
2258
2261
|
}
|
|
2259
|
-
function
|
|
2262
|
+
function js(e, r) {
|
|
2260
2263
|
return (t) => e.reduce((n, o) => (n[o] = Ue(r, t), n), {});
|
|
2261
2264
|
}
|
|
2262
|
-
function
|
|
2265
|
+
function Ds(e, r, t, n) {
|
|
2263
2266
|
if (r.indexOf(t) === -1)
|
|
2264
2267
|
return null;
|
|
2265
|
-
const o =
|
|
2268
|
+
const o = Ms(t), s = js(o, n), i = e[t];
|
|
2266
2269
|
return X(e, i, s);
|
|
2267
2270
|
}
|
|
2268
2271
|
function xn(e, r) {
|
|
2269
2272
|
const t = En(e.theme);
|
|
2270
|
-
return Object.keys(e).map((n) =>
|
|
2273
|
+
return Object.keys(e).map((n) => Ds(e, r, n, t)).reduce(Ae, {});
|
|
2271
2274
|
}
|
|
2272
2275
|
function D(e) {
|
|
2273
2276
|
return xn(e, dr);
|
|
@@ -2279,8 +2282,8 @@ function F(e) {
|
|
|
2279
2282
|
}
|
|
2280
2283
|
F.propTypes = process.env.NODE_ENV !== "production" ? pr.reduce((e, r) => (e[r] = fe, e), {}) : {};
|
|
2281
2284
|
F.filterProps = pr;
|
|
2282
|
-
process.env.NODE_ENV !== "production" &&
|
|
2283
|
-
function
|
|
2285
|
+
process.env.NODE_ENV !== "production" && Is.reduce((e, r) => (e[r] = fe, e), {});
|
|
2286
|
+
function Fs(e = 8) {
|
|
2284
2287
|
if (e.mui)
|
|
2285
2288
|
return e;
|
|
2286
2289
|
const r = En({
|
|
@@ -2307,7 +2310,7 @@ function J(e, r) {
|
|
|
2307
2310
|
transform: r
|
|
2308
2311
|
});
|
|
2309
2312
|
}
|
|
2310
|
-
const
|
|
2313
|
+
const Vs = J("border", H), zs = J("borderTop", H), Ls = J("borderRight", H), Us = J("borderBottom", H), Ws = J("borderLeft", H), Bs = J("borderColor"), Gs = J("borderTopColor"), Ys = J("borderRightColor"), Ks = J("borderBottomColor"), qs = J("borderLeftColor"), Hs = J("outline", H), Xs = J("outlineColor"), hr = (e) => {
|
|
2311
2314
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
2312
2315
|
const r = Le(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
|
|
2313
2316
|
borderRadius: Ue(r, n)
|
|
@@ -2320,7 +2323,7 @@ hr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2320
2323
|
borderRadius: fe
|
|
2321
2324
|
} : {};
|
|
2322
2325
|
hr.filterProps = ["borderRadius"];
|
|
2323
|
-
mr(
|
|
2326
|
+
mr(Vs, zs, Ls, Us, Ws, Bs, Gs, Ys, Ks, qs, hr, Hs, Xs);
|
|
2324
2327
|
const yr = (e) => {
|
|
2325
2328
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
2326
2329
|
const r = Le(e.theme, "spacing", 8, "gap"), t = (n) => ({
|
|
@@ -2360,48 +2363,48 @@ br.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2360
2363
|
rowGap: fe
|
|
2361
2364
|
} : {};
|
|
2362
2365
|
br.filterProps = ["rowGap"];
|
|
2363
|
-
const
|
|
2366
|
+
const Js = V({
|
|
2364
2367
|
prop: "gridColumn"
|
|
2365
|
-
}), Js = V({
|
|
2366
|
-
prop: "gridRow"
|
|
2367
2368
|
}), Zs = V({
|
|
2368
|
-
prop: "
|
|
2369
|
+
prop: "gridRow"
|
|
2369
2370
|
}), Qs = V({
|
|
2370
|
-
prop: "
|
|
2371
|
+
prop: "gridAutoFlow"
|
|
2371
2372
|
}), ei = V({
|
|
2372
|
-
prop: "
|
|
2373
|
+
prop: "gridAutoColumns"
|
|
2373
2374
|
}), ri = V({
|
|
2374
|
-
prop: "
|
|
2375
|
+
prop: "gridAutoRows"
|
|
2375
2376
|
}), ti = V({
|
|
2376
|
-
prop: "
|
|
2377
|
+
prop: "gridTemplateColumns"
|
|
2377
2378
|
}), ni = V({
|
|
2378
|
-
prop: "
|
|
2379
|
+
prop: "gridTemplateRows"
|
|
2379
2380
|
}), oi = V({
|
|
2381
|
+
prop: "gridTemplateAreas"
|
|
2382
|
+
}), si = V({
|
|
2380
2383
|
prop: "gridArea"
|
|
2381
2384
|
});
|
|
2382
|
-
mr(yr, gr, br,
|
|
2385
|
+
mr(yr, gr, br, Js, Zs, Qs, ei, ri, ti, ni, oi, si);
|
|
2383
2386
|
function ve(e, r) {
|
|
2384
2387
|
return r === "grey" ? r : e;
|
|
2385
2388
|
}
|
|
2386
|
-
const
|
|
2389
|
+
const ii = V({
|
|
2387
2390
|
prop: "color",
|
|
2388
2391
|
themeKey: "palette",
|
|
2389
2392
|
transform: ve
|
|
2390
|
-
}),
|
|
2393
|
+
}), ai = V({
|
|
2391
2394
|
prop: "bgcolor",
|
|
2392
2395
|
cssProperty: "backgroundColor",
|
|
2393
2396
|
themeKey: "palette",
|
|
2394
2397
|
transform: ve
|
|
2395
|
-
}),
|
|
2398
|
+
}), ci = V({
|
|
2396
2399
|
prop: "backgroundColor",
|
|
2397
2400
|
themeKey: "palette",
|
|
2398
2401
|
transform: ve
|
|
2399
2402
|
});
|
|
2400
|
-
mr(
|
|
2403
|
+
mr(ii, ai, ci);
|
|
2401
2404
|
function K(e) {
|
|
2402
2405
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
2403
2406
|
}
|
|
2404
|
-
const
|
|
2407
|
+
const ui = V({
|
|
2405
2408
|
prop: "width",
|
|
2406
2409
|
transform: K
|
|
2407
2410
|
}), Zr = (e) => {
|
|
@@ -2422,16 +2425,16 @@ const ci = V({
|
|
|
2422
2425
|
return null;
|
|
2423
2426
|
};
|
|
2424
2427
|
Zr.filterProps = ["maxWidth"];
|
|
2425
|
-
const
|
|
2428
|
+
const li = V({
|
|
2426
2429
|
prop: "minWidth",
|
|
2427
2430
|
transform: K
|
|
2428
|
-
}),
|
|
2431
|
+
}), fi = V({
|
|
2429
2432
|
prop: "height",
|
|
2430
2433
|
transform: K
|
|
2431
|
-
}),
|
|
2434
|
+
}), di = V({
|
|
2432
2435
|
prop: "maxHeight",
|
|
2433
2436
|
transform: K
|
|
2434
|
-
}),
|
|
2437
|
+
}), pi = V({
|
|
2435
2438
|
prop: "minHeight",
|
|
2436
2439
|
transform: K
|
|
2437
2440
|
});
|
|
@@ -2445,11 +2448,11 @@ V({
|
|
|
2445
2448
|
cssProperty: "height",
|
|
2446
2449
|
transform: K
|
|
2447
2450
|
});
|
|
2448
|
-
const
|
|
2451
|
+
const mi = V({
|
|
2449
2452
|
prop: "boxSizing"
|
|
2450
2453
|
});
|
|
2451
|
-
mr(
|
|
2452
|
-
const
|
|
2454
|
+
mr(ui, Zr, li, fi, di, pi, mi);
|
|
2455
|
+
const hi = {
|
|
2453
2456
|
// borders
|
|
2454
2457
|
border: {
|
|
2455
2458
|
themeKey: "borders",
|
|
@@ -2733,15 +2736,15 @@ const mi = {
|
|
|
2733
2736
|
cssProperty: !1,
|
|
2734
2737
|
themeKey: "typography"
|
|
2735
2738
|
}
|
|
2736
|
-
}, vr =
|
|
2737
|
-
function
|
|
2739
|
+
}, vr = hi;
|
|
2740
|
+
function yi(...e) {
|
|
2738
2741
|
const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
|
|
2739
2742
|
return e.every((n) => t.size === Object.keys(n).length);
|
|
2740
2743
|
}
|
|
2741
|
-
function
|
|
2744
|
+
function gi(e, r) {
|
|
2742
2745
|
return typeof e == "function" ? e(r) : e;
|
|
2743
2746
|
}
|
|
2744
|
-
function
|
|
2747
|
+
function bi() {
|
|
2745
2748
|
function e(t, n, o, s) {
|
|
2746
2749
|
const i = {
|
|
2747
2750
|
[t]: n,
|
|
@@ -2788,10 +2791,10 @@ function gi() {
|
|
|
2788
2791
|
return c;
|
|
2789
2792
|
if (!u)
|
|
2790
2793
|
return null;
|
|
2791
|
-
const l =
|
|
2794
|
+
const l = Ts(s.breakpoints), m = Object.keys(l);
|
|
2792
2795
|
let d = l;
|
|
2793
2796
|
return Object.keys(u).forEach((b) => {
|
|
2794
|
-
const g =
|
|
2797
|
+
const g = gi(u[b], s);
|
|
2795
2798
|
if (g != null)
|
|
2796
2799
|
if (typeof g == "object")
|
|
2797
2800
|
if (i[b])
|
|
@@ -2802,29 +2805,36 @@ function gi() {
|
|
|
2802
2805
|
}, g, (p) => ({
|
|
2803
2806
|
[b]: p
|
|
2804
2807
|
}));
|
|
2805
|
-
|
|
2808
|
+
yi(f, g) ? d[b] = r({
|
|
2806
2809
|
sx: g,
|
|
2807
2810
|
theme: s
|
|
2808
2811
|
}) : d = Ae(d, f);
|
|
2809
2812
|
}
|
|
2810
2813
|
else
|
|
2811
2814
|
d = Ae(d, e(b, g, s, i));
|
|
2812
|
-
}),
|
|
2815
|
+
}), Ps(m, d);
|
|
2813
2816
|
}
|
|
2814
2817
|
return Array.isArray(o) ? o.map(a) : a(o);
|
|
2815
2818
|
}
|
|
2816
2819
|
return r;
|
|
2817
2820
|
}
|
|
2818
|
-
const Sn =
|
|
2821
|
+
const Sn = bi();
|
|
2819
2822
|
Sn.filterProps = ["sx"];
|
|
2820
|
-
const Qr = Sn
|
|
2823
|
+
const Qr = Sn;
|
|
2824
|
+
function Ei(e, r) {
|
|
2825
|
+
const t = this;
|
|
2826
|
+
return t.vars && typeof t.getColorSchemeSelector == "function" ? {
|
|
2827
|
+
[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: r
|
|
2828
|
+
} : t.palette.mode === e ? r : {};
|
|
2829
|
+
}
|
|
2830
|
+
const xi = ["breakpoints", "palette", "spacing", "shape"];
|
|
2821
2831
|
function et(e = {}, ...r) {
|
|
2822
2832
|
const {
|
|
2823
2833
|
breakpoints: t = {},
|
|
2824
2834
|
palette: n = {},
|
|
2825
2835
|
spacing: o,
|
|
2826
2836
|
shape: s = {}
|
|
2827
|
-
} = e, i = ne(e,
|
|
2837
|
+
} = e, i = ne(e, xi), a = _s(t), c = Fs(o);
|
|
2828
2838
|
let u = te({
|
|
2829
2839
|
breakpoints: a,
|
|
2830
2840
|
direction: "ltr",
|
|
@@ -2834,27 +2844,27 @@ function et(e = {}, ...r) {
|
|
|
2834
2844
|
mode: "light"
|
|
2835
2845
|
}, n),
|
|
2836
2846
|
spacing: c,
|
|
2837
|
-
shape: _({},
|
|
2847
|
+
shape: _({}, Os, s)
|
|
2838
2848
|
}, i);
|
|
2839
|
-
return u = r.reduce((l, m) => te(l, m), u), u.unstable_sxConfig = _({}, vr, i == null ? void 0 : i.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
2849
|
+
return u.applyStyles = Ei, u = r.reduce((l, m) => te(l, m), u), u.unstable_sxConfig = _({}, vr, i == null ? void 0 : i.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
2840
2850
|
return Qr({
|
|
2841
2851
|
sx: m,
|
|
2842
2852
|
theme: this
|
|
2843
2853
|
});
|
|
2844
2854
|
}, u;
|
|
2845
2855
|
}
|
|
2846
|
-
function
|
|
2856
|
+
function Si(e) {
|
|
2847
2857
|
return Object.keys(e).length === 0;
|
|
2848
2858
|
}
|
|
2849
|
-
function
|
|
2859
|
+
function wi(e = null) {
|
|
2850
2860
|
const r = I.useContext(Oe);
|
|
2851
|
-
return !r ||
|
|
2861
|
+
return !r || Si(r) ? e : r;
|
|
2852
2862
|
}
|
|
2853
|
-
const
|
|
2854
|
-
function wn(e =
|
|
2855
|
-
return
|
|
2863
|
+
const _i = et();
|
|
2864
|
+
function wn(e = _i) {
|
|
2865
|
+
return wi(e);
|
|
2856
2866
|
}
|
|
2857
|
-
const
|
|
2867
|
+
const $i = ["sx"], Oi = (e) => {
|
|
2858
2868
|
var r, t;
|
|
2859
2869
|
const n = {
|
|
2860
2870
|
systemProps: {},
|
|
@@ -2864,13 +2874,13 @@ const wi = ["sx"], _i = (e) => {
|
|
|
2864
2874
|
o[s] ? n.systemProps[s] = e[s] : n.otherProps[s] = e[s];
|
|
2865
2875
|
}), n;
|
|
2866
2876
|
};
|
|
2867
|
-
function
|
|
2877
|
+
function Ci(e) {
|
|
2868
2878
|
const {
|
|
2869
2879
|
sx: r
|
|
2870
|
-
} = e, t = ne(e,
|
|
2880
|
+
} = e, t = ne(e, $i), {
|
|
2871
2881
|
systemProps: n,
|
|
2872
2882
|
otherProps: o
|
|
2873
|
-
} =
|
|
2883
|
+
} = Oi(t);
|
|
2874
2884
|
let s;
|
|
2875
2885
|
return Array.isArray(r) ? s = [n, ...r] : typeof r == "function" ? s = (...i) => {
|
|
2876
2886
|
const a = r(...i);
|
|
@@ -2879,37 +2889,37 @@ function $i(e) {
|
|
|
2879
2889
|
sx: s
|
|
2880
2890
|
});
|
|
2881
2891
|
}
|
|
2882
|
-
const
|
|
2892
|
+
const Ti = ["variant"];
|
|
2883
2893
|
function kt(e) {
|
|
2884
2894
|
return e.length === 0;
|
|
2885
2895
|
}
|
|
2886
2896
|
function _n(e) {
|
|
2887
2897
|
const {
|
|
2888
2898
|
variant: r
|
|
2889
|
-
} = e, t = ne(e,
|
|
2899
|
+
} = e, t = ne(e, Ti);
|
|
2890
2900
|
let n = r || "";
|
|
2891
2901
|
return Object.keys(t).sort().forEach((o) => {
|
|
2892
2902
|
o === "color" ? n += kt(n) ? e[o] : ie(e[o]) : n += `${kt(n) ? o : ie(o)}${ie(e[o].toString())}`;
|
|
2893
2903
|
}), n;
|
|
2894
2904
|
}
|
|
2895
|
-
const
|
|
2896
|
-
function
|
|
2905
|
+
const Pi = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
2906
|
+
function Ni(e) {
|
|
2897
2907
|
return Object.keys(e).length === 0;
|
|
2898
2908
|
}
|
|
2899
|
-
function
|
|
2909
|
+
function ki(e) {
|
|
2900
2910
|
return typeof e == "string" && // 96 is one less than the char code
|
|
2901
2911
|
// for "a" so this is checking that
|
|
2902
2912
|
// it's a lowercase character
|
|
2903
2913
|
e.charCodeAt(0) > 96;
|
|
2904
2914
|
}
|
|
2905
|
-
const
|
|
2915
|
+
const Ri = (e, r) => r.components && r.components[e] && r.components[e].styleOverrides ? r.components[e].styleOverrides : null, rr = (e) => {
|
|
2906
2916
|
let r = 0;
|
|
2907
2917
|
const t = {};
|
|
2908
2918
|
return e && e.forEach((n) => {
|
|
2909
2919
|
let o = "";
|
|
2910
2920
|
typeof n.props == "function" ? (o = `callback${r}`, r += 1) : o = _n(n.props), t[o] = n.style;
|
|
2911
2921
|
}), t;
|
|
2912
|
-
},
|
|
2922
|
+
}, Ai = (e, r) => {
|
|
2913
2923
|
let t = [];
|
|
2914
2924
|
return r && r.components && r.components[e] && r.components[e].variants && (t = r.components[e].variants), rr(t);
|
|
2915
2925
|
}, tr = (e, r, t) => {
|
|
@@ -2928,7 +2938,7 @@ const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOve
|
|
|
2928
2938
|
});
|
|
2929
2939
|
a && (typeof i.props == "function" ? o.push(r[`callback${s}`]) : o.push(r[_n(i.props)])), typeof i.props == "function" && (s += 1);
|
|
2930
2940
|
}), o;
|
|
2931
|
-
},
|
|
2941
|
+
}, Mi = (e, r, t, n) => {
|
|
2932
2942
|
var o;
|
|
2933
2943
|
const s = t == null || (o = t.components) == null || (o = o[n]) == null ? void 0 : o.variants;
|
|
2934
2944
|
return tr(e, r, s);
|
|
@@ -2936,15 +2946,15 @@ const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOve
|
|
|
2936
2946
|
function Xe(e) {
|
|
2937
2947
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2938
2948
|
}
|
|
2939
|
-
const
|
|
2949
|
+
const Ii = et(), Rt = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2940
2950
|
function Je({
|
|
2941
2951
|
defaultTheme: e,
|
|
2942
2952
|
theme: r,
|
|
2943
2953
|
themeId: t
|
|
2944
2954
|
}) {
|
|
2945
|
-
return
|
|
2955
|
+
return Ni(r) ? e : r[t] || r;
|
|
2946
2956
|
}
|
|
2947
|
-
function
|
|
2957
|
+
function ji(e) {
|
|
2948
2958
|
return e ? (r, t) => t[e] : null;
|
|
2949
2959
|
}
|
|
2950
2960
|
const At = ({
|
|
@@ -2966,10 +2976,10 @@ const At = ({
|
|
|
2966
2976
|
}
|
|
2967
2977
|
return o;
|
|
2968
2978
|
};
|
|
2969
|
-
function
|
|
2979
|
+
function Di(e = {}) {
|
|
2970
2980
|
const {
|
|
2971
2981
|
themeId: r,
|
|
2972
|
-
defaultTheme: t =
|
|
2982
|
+
defaultTheme: t = Ii,
|
|
2973
2983
|
rootShouldForwardProp: n = Xe,
|
|
2974
2984
|
slotShouldForwardProp: o = Xe
|
|
2975
2985
|
} = e, s = (i) => Qr(_({}, i, {
|
|
@@ -2987,8 +2997,8 @@ function Ii(e = {}) {
|
|
|
2987
2997
|
skipSx: m,
|
|
2988
2998
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2989
2999
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2990
|
-
overridesResolver: d =
|
|
2991
|
-
} = a, b = ne(a,
|
|
3000
|
+
overridesResolver: d = ji(Rt(u))
|
|
3001
|
+
} = a, b = ne(a, Pi), g = l !== void 0 ? l : (
|
|
2992
3002
|
// TODO v6: remove `Root` in the next major release
|
|
2993
3003
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2994
3004
|
u && u !== "Root" && u !== "root" || !1
|
|
@@ -2996,7 +3006,7 @@ function Ii(e = {}) {
|
|
|
2996
3006
|
let p;
|
|
2997
3007
|
process.env.NODE_ENV !== "production" && c && (p = `${c}-${Rt(u || "Root")}`);
|
|
2998
3008
|
let v = Xe;
|
|
2999
|
-
u === "Root" || u === "root" ? v = n : u ? v = o :
|
|
3009
|
+
u === "Root" || u === "root" ? v = n : u ? v = o : ki(i) && (v = void 0);
|
|
3000
3010
|
const C = cs(i, _({
|
|
3001
3011
|
shouldForwardProp: v,
|
|
3002
3012
|
label: p
|
|
@@ -3010,10 +3020,10 @@ function Ii(e = {}) {
|
|
|
3010
3020
|
themeId: r
|
|
3011
3021
|
});
|
|
3012
3022
|
if (ce(w)) {
|
|
3013
|
-
let L = w,
|
|
3014
|
-
return w && w.variants && (
|
|
3023
|
+
let L = w, G;
|
|
3024
|
+
return w && w.variants && (G = w.variants, delete L.variants, L = (ae) => {
|
|
3015
3025
|
let Q = w;
|
|
3016
|
-
return tr(ae, rr(
|
|
3026
|
+
return tr(ae, rr(G), G).forEach((Ce) => {
|
|
3017
3027
|
Q = te(Q, Ce);
|
|
3018
3028
|
}), Q;
|
|
3019
3029
|
}), L;
|
|
@@ -3024,10 +3034,10 @@ function Ii(e = {}) {
|
|
|
3024
3034
|
if (ce(S)) {
|
|
3025
3035
|
let w;
|
|
3026
3036
|
S && S.variants && (w = S.variants, delete O.variants, O = (L) => {
|
|
3027
|
-
let
|
|
3037
|
+
let G = S;
|
|
3028
3038
|
return tr(L, rr(w), w).forEach((Q) => {
|
|
3029
|
-
|
|
3030
|
-
}),
|
|
3039
|
+
G = te(G, Q);
|
|
3040
|
+
}), G;
|
|
3031
3041
|
});
|
|
3032
3042
|
} else
|
|
3033
3043
|
typeof S == "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
@@ -3043,10 +3053,10 @@ function Ii(e = {}) {
|
|
|
3043
3053
|
const L = Je(_({}, w, {
|
|
3044
3054
|
defaultTheme: t,
|
|
3045
3055
|
themeId: r
|
|
3046
|
-
})),
|
|
3047
|
-
if (
|
|
3056
|
+
})), G = Ri(c, L);
|
|
3057
|
+
if (G) {
|
|
3048
3058
|
const ae = {};
|
|
3049
|
-
return Object.entries(
|
|
3059
|
+
return Object.entries(G).forEach(([Q, ue]) => {
|
|
3050
3060
|
ae[Q] = typeof ue == "function" ? ue(_({}, w, {
|
|
3051
3061
|
theme: L
|
|
3052
3062
|
})) : ue;
|
|
@@ -3058,7 +3068,7 @@ function Ii(e = {}) {
|
|
|
3058
3068
|
defaultTheme: t,
|
|
3059
3069
|
themeId: r
|
|
3060
3070
|
}));
|
|
3061
|
-
return
|
|
3071
|
+
return Mi(w, Ai(c, L), L, c);
|
|
3062
3072
|
}), f || N.push(s);
|
|
3063
3073
|
const Z = N.length - h.length;
|
|
3064
3074
|
if (Array.isArray(S) && Z > 0) {
|
|
@@ -3075,7 +3085,7 @@ function Ii(e = {}) {
|
|
|
3075
3085
|
return C.withConfig && ($.withConfig = C.withConfig), $;
|
|
3076
3086
|
};
|
|
3077
3087
|
}
|
|
3078
|
-
function
|
|
3088
|
+
function Fi(e) {
|
|
3079
3089
|
const {
|
|
3080
3090
|
theme: r,
|
|
3081
3091
|
name: t,
|
|
@@ -3083,23 +3093,23 @@ function ji(e) {
|
|
|
3083
3093
|
} = e;
|
|
3084
3094
|
return !r || !r.components || !r.components[t] || !r.components[t].defaultProps ? n : gn(r.components[t].defaultProps, n);
|
|
3085
3095
|
}
|
|
3086
|
-
function
|
|
3096
|
+
function Vi({
|
|
3087
3097
|
props: e,
|
|
3088
3098
|
name: r,
|
|
3089
3099
|
defaultTheme: t,
|
|
3090
3100
|
themeId: n
|
|
3091
3101
|
}) {
|
|
3092
3102
|
let o = wn(t);
|
|
3093
|
-
return n && (o = o[n] || o),
|
|
3103
|
+
return n && (o = o[n] || o), Fi({
|
|
3094
3104
|
theme: o,
|
|
3095
3105
|
name: r,
|
|
3096
3106
|
props: e
|
|
3097
3107
|
});
|
|
3098
3108
|
}
|
|
3099
3109
|
function $n(e, r = 0, t = 1) {
|
|
3100
|
-
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),
|
|
3110
|
+
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), xs(e, r, t);
|
|
3101
3111
|
}
|
|
3102
|
-
function
|
|
3112
|
+
function zi(e) {
|
|
3103
3113
|
e = e.slice(1);
|
|
3104
3114
|
const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
3105
3115
|
let t = e.match(r);
|
|
@@ -3109,7 +3119,7 @@ function _e(e) {
|
|
|
3109
3119
|
if (e.type)
|
|
3110
3120
|
return e;
|
|
3111
3121
|
if (e.charAt(0) === "#")
|
|
3112
|
-
return _e(
|
|
3122
|
+
return _e(zi(e));
|
|
3113
3123
|
const r = e.indexOf("("), t = e.substring(0, r);
|
|
3114
3124
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(t) === -1)
|
|
3115
3125
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
@@ -3137,7 +3147,7 @@ function rt(e) {
|
|
|
3137
3147
|
} = e;
|
|
3138
3148
|
return r.indexOf("rgb") !== -1 ? n = n.map((o, s) => s < 3 ? parseInt(o, 10) : o) : r.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.indexOf("color") !== -1 ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
|
|
3139
3149
|
}
|
|
3140
|
-
function
|
|
3150
|
+
function Li(e) {
|
|
3141
3151
|
e = _e(e);
|
|
3142
3152
|
const {
|
|
3143
3153
|
values: r
|
|
@@ -3151,14 +3161,14 @@ function Vi(e) {
|
|
|
3151
3161
|
}
|
|
3152
3162
|
function Mt(e) {
|
|
3153
3163
|
e = _e(e);
|
|
3154
|
-
let r = e.type === "hsl" || e.type === "hsla" ? _e(
|
|
3164
|
+
let r = e.type === "hsl" || e.type === "hsla" ? _e(Li(e)).values : e.values;
|
|
3155
3165
|
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
3166
|
}
|
|
3157
3167
|
function It(e, r) {
|
|
3158
3168
|
const t = Mt(e), n = Mt(r);
|
|
3159
3169
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
3160
3170
|
}
|
|
3161
|
-
function
|
|
3171
|
+
function Ui(e, r) {
|
|
3162
3172
|
if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
|
|
3163
3173
|
e.values[2] *= 1 - r;
|
|
3164
3174
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
@@ -3166,7 +3176,7 @@ function zi(e, r) {
|
|
|
3166
3176
|
e.values[t] *= 1 - r;
|
|
3167
3177
|
return rt(e);
|
|
3168
3178
|
}
|
|
3169
|
-
function
|
|
3179
|
+
function Wi(e, r) {
|
|
3170
3180
|
if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
|
|
3171
3181
|
e.values[2] += (100 - e.values[2]) * r;
|
|
3172
3182
|
else if (e.type.indexOf("rgb") !== -1)
|
|
@@ -3177,7 +3187,7 @@ function Li(e, r) {
|
|
|
3177
3187
|
e.values[t] += (1 - e.values[t]) * r;
|
|
3178
3188
|
return rt(e);
|
|
3179
3189
|
}
|
|
3180
|
-
function
|
|
3190
|
+
function Bi(e, r) {
|
|
3181
3191
|
return _({
|
|
3182
3192
|
toolbar: {
|
|
3183
3193
|
minHeight: 56,
|
|
@@ -3192,7 +3202,7 @@ function Ui(e, r) {
|
|
|
3192
3202
|
}
|
|
3193
3203
|
}, r);
|
|
3194
3204
|
}
|
|
3195
|
-
const
|
|
3205
|
+
const Gi = ["mode", "contrastThreshold", "tonalOffset"], jt = {
|
|
3196
3206
|
// The colors used to style the text.
|
|
3197
3207
|
text: {
|
|
3198
3208
|
// The most important text.
|
|
@@ -3257,9 +3267,9 @@ const Wi = ["mode", "contrastThreshold", "tonalOffset"], jt = {
|
|
|
3257
3267
|
};
|
|
3258
3268
|
function Dt(e, r, t, n) {
|
|
3259
3269
|
const o = n.light || n, s = n.dark || n * 1.5;
|
|
3260
|
-
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light =
|
|
3270
|
+
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Wi(e.main, o) : r === "dark" && (e.dark = Ui(e.main, s)));
|
|
3261
3271
|
}
|
|
3262
|
-
function
|
|
3272
|
+
function Yi(e = "light") {
|
|
3263
3273
|
return e === "dark" ? {
|
|
3264
3274
|
main: he[200],
|
|
3265
3275
|
light: he[50],
|
|
@@ -3270,7 +3280,7 @@ function Bi(e = "light") {
|
|
|
3270
3280
|
dark: he[800]
|
|
3271
3281
|
};
|
|
3272
3282
|
}
|
|
3273
|
-
function
|
|
3283
|
+
function Ki(e = "light") {
|
|
3274
3284
|
return e === "dark" ? {
|
|
3275
3285
|
main: me[200],
|
|
3276
3286
|
light: me[50],
|
|
@@ -3281,7 +3291,7 @@ function Yi(e = "light") {
|
|
|
3281
3291
|
dark: me[700]
|
|
3282
3292
|
};
|
|
3283
3293
|
}
|
|
3284
|
-
function
|
|
3294
|
+
function qi(e = "light") {
|
|
3285
3295
|
return e === "dark" ? {
|
|
3286
3296
|
main: pe[500],
|
|
3287
3297
|
light: pe[300],
|
|
@@ -3292,7 +3302,7 @@ function Gi(e = "light") {
|
|
|
3292
3302
|
dark: pe[800]
|
|
3293
3303
|
};
|
|
3294
3304
|
}
|
|
3295
|
-
function
|
|
3305
|
+
function Hi(e = "light") {
|
|
3296
3306
|
return e === "dark" ? {
|
|
3297
3307
|
main: ye[400],
|
|
3298
3308
|
light: ye[300],
|
|
@@ -3303,7 +3313,7 @@ function Ki(e = "light") {
|
|
|
3303
3313
|
dark: ye[900]
|
|
3304
3314
|
};
|
|
3305
3315
|
}
|
|
3306
|
-
function
|
|
3316
|
+
function Xi(e = "light") {
|
|
3307
3317
|
return e === "dark" ? {
|
|
3308
3318
|
main: ge[400],
|
|
3309
3319
|
light: ge[300],
|
|
@@ -3314,7 +3324,7 @@ function qi(e = "light") {
|
|
|
3314
3324
|
dark: ge[900]
|
|
3315
3325
|
};
|
|
3316
3326
|
}
|
|
3317
|
-
function
|
|
3327
|
+
function Ji(e = "light") {
|
|
3318
3328
|
return e === "dark" ? {
|
|
3319
3329
|
main: Ne[400],
|
|
3320
3330
|
light: Ne[300],
|
|
@@ -3326,12 +3336,12 @@ function Hi(e = "light") {
|
|
|
3326
3336
|
dark: Ne[900]
|
|
3327
3337
|
};
|
|
3328
3338
|
}
|
|
3329
|
-
function
|
|
3339
|
+
function Zi(e) {
|
|
3330
3340
|
const {
|
|
3331
3341
|
mode: r = "light",
|
|
3332
3342
|
contrastThreshold: t = 3,
|
|
3333
3343
|
tonalOffset: n = 0.2
|
|
3334
|
-
} = e, o = ne(e,
|
|
3344
|
+
} = e, o = ne(e, Gi), s = e.primary || Yi(r), i = e.secondary || Ki(r), a = e.error || qi(r), c = e.info || Hi(r), u = e.success || Xi(r), l = e.warning || Ji(r);
|
|
3335
3345
|
function m(f) {
|
|
3336
3346
|
const p = It(f, Ir.text.primary) >= t ? Ir.text.primary : jt.text.primary;
|
|
3337
3347
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3411,7 +3421,7 @@ const theme2 = createTheme({ palette: {
|
|
|
3411
3421
|
name: "success"
|
|
3412
3422
|
}),
|
|
3413
3423
|
// The grey colors.
|
|
3414
|
-
grey:
|
|
3424
|
+
grey: Yn,
|
|
3415
3425
|
// Used by `getContrastText()` to maximize the contrast between
|
|
3416
3426
|
// the background and the text.
|
|
3417
3427
|
contrastThreshold: t,
|
|
@@ -3425,14 +3435,14 @@ const theme2 = createTheme({ palette: {
|
|
|
3425
3435
|
tonalOffset: n
|
|
3426
3436
|
}, b[r]), o);
|
|
3427
3437
|
}
|
|
3428
|
-
const
|
|
3429
|
-
function
|
|
3438
|
+
const Qi = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
3439
|
+
function ea(e) {
|
|
3430
3440
|
return Math.round(e * 1e5) / 1e5;
|
|
3431
3441
|
}
|
|
3432
3442
|
const Ft = {
|
|
3433
3443
|
textTransform: "uppercase"
|
|
3434
3444
|
}, Vt = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
3435
|
-
function
|
|
3445
|
+
function ra(e, r) {
|
|
3436
3446
|
const t = typeof r == "function" ? r(e) : r, {
|
|
3437
3447
|
fontFamily: n = Vt,
|
|
3438
3448
|
// The default font size of the Material Specification.
|
|
@@ -3448,7 +3458,7 @@ function Qi(e, r) {
|
|
|
3448
3458
|
// Apply the CSS properties to all the variants.
|
|
3449
3459
|
allVariants: l,
|
|
3450
3460
|
pxToRem: m
|
|
3451
|
-
} = t, d = ne(t,
|
|
3461
|
+
} = t, d = ne(t, Qi);
|
|
3452
3462
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
3453
3463
|
const b = o / 14, g = m || ((v) => `${v / u * b}rem`), f = (v, C, $, S, h) => _({
|
|
3454
3464
|
fontFamily: n,
|
|
@@ -3457,7 +3467,7 @@ function Qi(e, r) {
|
|
|
3457
3467
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
3458
3468
|
lineHeight: $
|
|
3459
3469
|
}, n === Vt ? {
|
|
3460
|
-
letterSpacing: `${
|
|
3470
|
+
letterSpacing: `${ea(S / C)}em`
|
|
3461
3471
|
} : {}, h, l), p = {
|
|
3462
3472
|
h1: f(s, 96, 1.167, -1.5),
|
|
3463
3473
|
h2: f(s, 60, 1.2, -0.5),
|
|
@@ -3495,11 +3505,11 @@ function Qi(e, r) {
|
|
|
3495
3505
|
// No need to clone deep
|
|
3496
3506
|
});
|
|
3497
3507
|
}
|
|
3498
|
-
const
|
|
3508
|
+
const ta = 0.2, na = 0.14, oa = 0.12;
|
|
3499
3509
|
function j(...e) {
|
|
3500
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
3510
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ta})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${na})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oa})`].join(",");
|
|
3501
3511
|
}
|
|
3502
|
-
const
|
|
3512
|
+
const sa = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), j(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), j(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), j(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), j(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), j(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), j(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), j(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), j(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), j(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), j(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), j(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), j(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), j(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), j(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), j(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), j(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), j(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), j(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), j(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), j(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), j(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), j(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], ia = sa, aa = ["duration", "easing", "delay"], ca = {
|
|
3503
3513
|
// This is the most common easing curve.
|
|
3504
3514
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3505
3515
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -3509,7 +3519,7 @@ const na = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2,
|
|
|
3509
3519
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
3510
3520
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
3511
3521
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
3512
|
-
},
|
|
3522
|
+
}, ua = {
|
|
3513
3523
|
shortest: 150,
|
|
3514
3524
|
shorter: 200,
|
|
3515
3525
|
short: 250,
|
|
@@ -3525,22 +3535,22 @@ const na = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2,
|
|
|
3525
3535
|
function zt(e) {
|
|
3526
3536
|
return `${Math.round(e)}ms`;
|
|
3527
3537
|
}
|
|
3528
|
-
function
|
|
3538
|
+
function la(e) {
|
|
3529
3539
|
if (!e)
|
|
3530
3540
|
return 0;
|
|
3531
3541
|
const r = e / 36;
|
|
3532
3542
|
return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
|
|
3533
3543
|
}
|
|
3534
|
-
function
|
|
3535
|
-
const r = _({},
|
|
3544
|
+
function fa(e) {
|
|
3545
|
+
const r = _({}, ca, e.easing), t = _({}, ua, e.duration);
|
|
3536
3546
|
return _({
|
|
3537
|
-
getAutoHeightDuration:
|
|
3547
|
+
getAutoHeightDuration: la,
|
|
3538
3548
|
create: (o = ["all"], s = {}) => {
|
|
3539
3549
|
const {
|
|
3540
3550
|
duration: i = t.standard,
|
|
3541
3551
|
easing: a = r.easeInOut,
|
|
3542
3552
|
delay: c = 0
|
|
3543
|
-
} = s, u = ne(s,
|
|
3553
|
+
} = s, u = ne(s, aa);
|
|
3544
3554
|
if (process.env.NODE_ENV !== "production") {
|
|
3545
3555
|
const l = (d) => typeof d == "string", m = (d) => !isNaN(parseFloat(d));
|
|
3546
3556
|
!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(`
|
|
@@ -3553,7 +3563,7 @@ function ua(e) {
|
|
|
3553
3563
|
duration: t
|
|
3554
3564
|
});
|
|
3555
3565
|
}
|
|
3556
|
-
const
|
|
3566
|
+
const da = {
|
|
3557
3567
|
mobileStepper: 1e3,
|
|
3558
3568
|
fab: 1050,
|
|
3559
3569
|
speedDial: 1050,
|
|
@@ -3562,25 +3572,25 @@ const la = {
|
|
|
3562
3572
|
modal: 1300,
|
|
3563
3573
|
snackbar: 1400,
|
|
3564
3574
|
tooltip: 1500
|
|
3565
|
-
},
|
|
3566
|
-
function
|
|
3575
|
+
}, pa = da, ma = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
3576
|
+
function ha(e = {}, ...r) {
|
|
3567
3577
|
const {
|
|
3568
3578
|
mixins: t = {},
|
|
3569
3579
|
palette: n = {},
|
|
3570
3580
|
transitions: o = {},
|
|
3571
3581
|
typography: s = {}
|
|
3572
|
-
} = e, i = ne(e,
|
|
3582
|
+
} = e, i = ne(e, ma);
|
|
3573
3583
|
if (e.vars)
|
|
3574
3584
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : xe(18));
|
|
3575
|
-
const a =
|
|
3585
|
+
const a = Zi(n), c = et(e);
|
|
3576
3586
|
let u = te(c, {
|
|
3577
|
-
mixins:
|
|
3587
|
+
mixins: Bi(c.breakpoints, t),
|
|
3578
3588
|
palette: a,
|
|
3579
3589
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
3580
|
-
shadows:
|
|
3581
|
-
typography:
|
|
3582
|
-
transitions:
|
|
3583
|
-
zIndex: _({},
|
|
3590
|
+
shadows: ia.slice(),
|
|
3591
|
+
typography: ra(a, s),
|
|
3592
|
+
transitions: fa(o),
|
|
3593
|
+
zIndex: _({}, pa)
|
|
3584
3594
|
});
|
|
3585
3595
|
if (u = te(u, i), u = r.reduce((l, m) => te(l, m), u), process.env.NODE_ENV !== "production") {
|
|
3586
3596
|
const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (d, b) => {
|
|
@@ -3613,8 +3623,8 @@ function pa(e = {}, ...r) {
|
|
|
3613
3623
|
});
|
|
3614
3624
|
}, u;
|
|
3615
3625
|
}
|
|
3616
|
-
const
|
|
3617
|
-
function
|
|
3626
|
+
const ya = ha(), tt = ya;
|
|
3627
|
+
function ga() {
|
|
3618
3628
|
const e = wn(tt);
|
|
3619
3629
|
return process.env.NODE_ENV !== "production" && I.useDebugValue(e), e[Lr] || e;
|
|
3620
3630
|
}
|
|
@@ -3622,25 +3632,25 @@ function On({
|
|
|
3622
3632
|
props: e,
|
|
3623
3633
|
name: r
|
|
3624
3634
|
}) {
|
|
3625
|
-
return
|
|
3635
|
+
return Vi({
|
|
3626
3636
|
props: e,
|
|
3627
3637
|
name: r,
|
|
3628
3638
|
defaultTheme: tt,
|
|
3629
3639
|
themeId: Lr
|
|
3630
3640
|
});
|
|
3631
3641
|
}
|
|
3632
|
-
const
|
|
3642
|
+
const ba = (e) => Xe(e) && e !== "classes", va = Di({
|
|
3633
3643
|
themeId: Lr,
|
|
3634
3644
|
defaultTheme: tt,
|
|
3635
|
-
rootShouldForwardProp:
|
|
3636
|
-
}), Er =
|
|
3637
|
-
function
|
|
3645
|
+
rootShouldForwardProp: ba
|
|
3646
|
+
}), Er = va;
|
|
3647
|
+
function Ea(e) {
|
|
3638
3648
|
return ur("MuiCircularProgress", e);
|
|
3639
3649
|
}
|
|
3640
3650
|
vn("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
3641
|
-
const
|
|
3651
|
+
const xa = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
3642
3652
|
let xr = (e) => e, Lt, Ut, Wt, Bt;
|
|
3643
|
-
const le = 44,
|
|
3653
|
+
const le = 44, Sa = mn(Lt || (Lt = xr`
|
|
3644
3654
|
0% {
|
|
3645
3655
|
transform: rotate(0deg);
|
|
3646
3656
|
}
|
|
@@ -3648,7 +3658,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3648
3658
|
100% {
|
|
3649
3659
|
transform: rotate(360deg);
|
|
3650
3660
|
}
|
|
3651
|
-
`)),
|
|
3661
|
+
`)), wa = mn(Ut || (Ut = xr`
|
|
3652
3662
|
0% {
|
|
3653
3663
|
stroke-dasharray: 1px, 200px;
|
|
3654
3664
|
stroke-dashoffset: 0;
|
|
@@ -3663,7 +3673,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3663
3673
|
stroke-dasharray: 100px, 200px;
|
|
3664
3674
|
stroke-dashoffset: -125px;
|
|
3665
3675
|
}
|
|
3666
|
-
`)),
|
|
3676
|
+
`)), _a = (e) => {
|
|
3667
3677
|
const {
|
|
3668
3678
|
classes: r,
|
|
3669
3679
|
variant: t,
|
|
@@ -3674,8 +3684,8 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3674
3684
|
svg: ["svg"],
|
|
3675
3685
|
circle: ["circle", `circle${ie(t)}`, o && "circleDisableShrink"]
|
|
3676
3686
|
};
|
|
3677
|
-
return bn(s,
|
|
3678
|
-
},
|
|
3687
|
+
return bn(s, Ea, r);
|
|
3688
|
+
}, $a = Er("span", {
|
|
3679
3689
|
name: "MuiCircularProgress",
|
|
3680
3690
|
slot: "Root",
|
|
3681
3691
|
overridesResolver: (e, r) => {
|
|
@@ -3697,14 +3707,14 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3697
3707
|
ownerState: e
|
|
3698
3708
|
}) => e.variant === "indeterminate" && Xr(Wt || (Wt = xr`
|
|
3699
3709
|
animation: ${0} 1.4s linear infinite;
|
|
3700
|
-
`),
|
|
3710
|
+
`), Sa)), Oa = Er("svg", {
|
|
3701
3711
|
name: "MuiCircularProgress",
|
|
3702
3712
|
slot: "Svg",
|
|
3703
3713
|
overridesResolver: (e, r) => r.svg
|
|
3704
3714
|
})({
|
|
3705
3715
|
display: "block"
|
|
3706
3716
|
// Keeps the progress centered
|
|
3707
|
-
}),
|
|
3717
|
+
}), Ca = Er("circle", {
|
|
3708
3718
|
name: "MuiCircularProgress",
|
|
3709
3719
|
slot: "Circle",
|
|
3710
3720
|
overridesResolver: (e, r) => {
|
|
@@ -3729,7 +3739,7 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3729
3739
|
ownerState: e
|
|
3730
3740
|
}) => e.variant === "indeterminate" && !e.disableShrink && Xr(Bt || (Bt = xr`
|
|
3731
3741
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
3732
|
-
`),
|
|
3742
|
+
`), wa)), Cn = /* @__PURE__ */ I.forwardRef(function(r, t) {
|
|
3733
3743
|
const n = On({
|
|
3734
3744
|
props: r,
|
|
3735
3745
|
name: "MuiCircularProgress"
|
|
@@ -3742,19 +3752,19 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3742
3752
|
thickness: u = 3.6,
|
|
3743
3753
|
value: l = 0,
|
|
3744
3754
|
variant: m = "indeterminate"
|
|
3745
|
-
} = n, d = ne(n,
|
|
3755
|
+
} = n, d = ne(n, xa), b = _({}, n, {
|
|
3746
3756
|
color: s,
|
|
3747
3757
|
disableShrink: i,
|
|
3748
3758
|
size: a,
|
|
3749
3759
|
thickness: u,
|
|
3750
3760
|
value: l,
|
|
3751
3761
|
variant: m
|
|
3752
|
-
}), g =
|
|
3762
|
+
}), g = _a(b), f = {}, p = {}, v = {};
|
|
3753
3763
|
if (m === "determinate") {
|
|
3754
3764
|
const C = 2 * Math.PI * ((le - u) / 2);
|
|
3755
3765
|
f.strokeDasharray = C.toFixed(3), v["aria-valuenow"] = Math.round(l), f.strokeDashoffset = `${((100 - l) / 100 * C).toFixed(3)}px`, p.transform = "rotate(-90deg)";
|
|
3756
3766
|
}
|
|
3757
|
-
return /* @__PURE__ */ re(
|
|
3767
|
+
return /* @__PURE__ */ re($a, _({
|
|
3758
3768
|
className: Jt(g.root, o),
|
|
3759
3769
|
style: _({
|
|
3760
3770
|
width: a,
|
|
@@ -3764,11 +3774,11 @@ const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
|
3764
3774
|
ref: t,
|
|
3765
3775
|
role: "progressbar"
|
|
3766
3776
|
}, v, d, {
|
|
3767
|
-
children: /* @__PURE__ */ re(
|
|
3777
|
+
children: /* @__PURE__ */ re(Oa, {
|
|
3768
3778
|
className: g.svg,
|
|
3769
3779
|
ownerState: b,
|
|
3770
3780
|
viewBox: `${le / 2} ${le / 2} ${le} ${le}`,
|
|
3771
|
-
children: /* @__PURE__ */ re(
|
|
3781
|
+
children: /* @__PURE__ */ re(Ca, {
|
|
3772
3782
|
className: g.circle,
|
|
3773
3783
|
style: f,
|
|
3774
3784
|
ownerState: b,
|
|
@@ -3840,35 +3850,35 @@ process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
|
3840
3850
|
*/
|
|
3841
3851
|
variant: y.oneOf(["determinate", "indeterminate"])
|
|
3842
3852
|
});
|
|
3843
|
-
const
|
|
3853
|
+
const Ta = Cn, Tn = /* @__PURE__ */ I.createContext();
|
|
3844
3854
|
process.env.NODE_ENV !== "production" && (Tn.displayName = "GridContext");
|
|
3845
|
-
const
|
|
3846
|
-
function
|
|
3855
|
+
const Gt = Tn;
|
|
3856
|
+
function Pa(e) {
|
|
3847
3857
|
return ur("MuiGrid", e);
|
|
3848
3858
|
}
|
|
3849
|
-
const
|
|
3859
|
+
const Na = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ka = ["column-reverse", "column", "row-reverse", "row"], Ra = ["nowrap", "wrap-reverse", "wrap"], Re = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], Ve = vn("MuiGrid", [
|
|
3850
3860
|
"root",
|
|
3851
3861
|
"container",
|
|
3852
3862
|
"item",
|
|
3853
3863
|
"zeroMinWidth",
|
|
3854
3864
|
// spacings
|
|
3855
|
-
...
|
|
3865
|
+
...Na.map((e) => `spacing-xs-${e}`),
|
|
3856
3866
|
// direction values
|
|
3857
|
-
...
|
|
3867
|
+
...ka.map((e) => `direction-xs-${e}`),
|
|
3858
3868
|
// wrap values
|
|
3859
|
-
...
|
|
3869
|
+
...Ra.map((e) => `wrap-xs-${e}`),
|
|
3860
3870
|
// grid sizes for all breakpoints
|
|
3861
3871
|
...Re.map((e) => `grid-xs-${e}`),
|
|
3862
3872
|
...Re.map((e) => `grid-sm-${e}`),
|
|
3863
3873
|
...Re.map((e) => `grid-md-${e}`),
|
|
3864
3874
|
...Re.map((e) => `grid-lg-${e}`),
|
|
3865
3875
|
...Re.map((e) => `grid-xl-${e}`)
|
|
3866
|
-
]),
|
|
3876
|
+
]), Aa = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
3867
3877
|
function Ee(e) {
|
|
3868
3878
|
const r = parseFloat(e);
|
|
3869
3879
|
return `${r}${String(e).replace(String(r), "") || "px"}`;
|
|
3870
3880
|
}
|
|
3871
|
-
function
|
|
3881
|
+
function Ma({
|
|
3872
3882
|
theme: e,
|
|
3873
3883
|
ownerState: r
|
|
3874
3884
|
}) {
|
|
@@ -3919,7 +3929,7 @@ function Ra({
|
|
|
3919
3929
|
return e.breakpoints.values[o] === 0 ? Object.assign(n, s) : n[e.breakpoints.up(o)] = s, n;
|
|
3920
3930
|
}, {});
|
|
3921
3931
|
}
|
|
3922
|
-
function
|
|
3932
|
+
function Ia({
|
|
3923
3933
|
theme: e,
|
|
3924
3934
|
ownerState: r
|
|
3925
3935
|
}) {
|
|
@@ -3949,7 +3959,7 @@ function Pn({
|
|
|
3949
3959
|
const n = Object.keys(e).sort((o, s) => e[o] - e[s]);
|
|
3950
3960
|
return n.slice(0, n.indexOf(t));
|
|
3951
3961
|
}
|
|
3952
|
-
function
|
|
3962
|
+
function ja({
|
|
3953
3963
|
theme: e,
|
|
3954
3964
|
ownerState: r
|
|
3955
3965
|
}) {
|
|
@@ -3987,7 +3997,7 @@ function Ma({
|
|
|
3987
3997
|
}
|
|
3988
3998
|
return o;
|
|
3989
3999
|
}
|
|
3990
|
-
function
|
|
4000
|
+
function Da({
|
|
3991
4001
|
theme: e,
|
|
3992
4002
|
ownerState: r
|
|
3993
4003
|
}) {
|
|
@@ -4027,7 +4037,7 @@ function Ia({
|
|
|
4027
4037
|
}
|
|
4028
4038
|
return o;
|
|
4029
4039
|
}
|
|
4030
|
-
function
|
|
4040
|
+
function Fa(e, r, t = {}) {
|
|
4031
4041
|
if (!e || e <= 0)
|
|
4032
4042
|
return [];
|
|
4033
4043
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
@@ -4038,7 +4048,7 @@ function ja(e, r, t = {}) {
|
|
|
4038
4048
|
Number(s) > 0 && n.push(t[`spacing-${o}-${String(s)}`]);
|
|
4039
4049
|
}), n;
|
|
4040
4050
|
}
|
|
4041
|
-
const
|
|
4051
|
+
const Va = Er("div", {
|
|
4042
4052
|
name: "MuiGrid",
|
|
4043
4053
|
slot: "Root",
|
|
4044
4054
|
overridesResolver: (e, r) => {
|
|
@@ -4054,7 +4064,7 @@ const Da = Er("div", {
|
|
|
4054
4064
|
breakpoints: u
|
|
4055
4065
|
} = t;
|
|
4056
4066
|
let l = [];
|
|
4057
|
-
n && (l =
|
|
4067
|
+
n && (l = Fa(i, u, r));
|
|
4058
4068
|
const m = [];
|
|
4059
4069
|
return u.forEach((d) => {
|
|
4060
4070
|
const b = t[d];
|
|
@@ -4076,8 +4086,8 @@ const Da = Er("div", {
|
|
|
4076
4086
|
minWidth: 0
|
|
4077
4087
|
}, e.wrap !== "wrap" && {
|
|
4078
4088
|
flexWrap: e.wrap
|
|
4079
|
-
}),
|
|
4080
|
-
function
|
|
4089
|
+
}), Ia, ja, Da, Ma);
|
|
4090
|
+
function za(e, r) {
|
|
4081
4091
|
if (!e || e <= 0)
|
|
4082
4092
|
return [];
|
|
4083
4093
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
@@ -4091,7 +4101,7 @@ function Fa(e, r) {
|
|
|
4091
4101
|
}
|
|
4092
4102
|
}), t;
|
|
4093
4103
|
}
|
|
4094
|
-
const
|
|
4104
|
+
const La = (e) => {
|
|
4095
4105
|
const {
|
|
4096
4106
|
classes: r,
|
|
4097
4107
|
container: t,
|
|
@@ -4103,7 +4113,7 @@ const Va = (e) => {
|
|
|
4103
4113
|
breakpoints: c
|
|
4104
4114
|
} = e;
|
|
4105
4115
|
let u = [];
|
|
4106
|
-
t && (u =
|
|
4116
|
+
t && (u = za(s, c));
|
|
4107
4117
|
const l = [];
|
|
4108
4118
|
c.forEach((d) => {
|
|
4109
4119
|
const b = e[d];
|
|
@@ -4112,14 +4122,14 @@ const Va = (e) => {
|
|
|
4112
4122
|
const m = {
|
|
4113
4123
|
root: ["root", t && "container", o && "item", a && "zeroMinWidth", ...u, n !== "row" && `direction-xs-${String(n)}`, i !== "wrap" && `wrap-xs-${String(i)}`, ...l]
|
|
4114
4124
|
};
|
|
4115
|
-
return bn(m,
|
|
4125
|
+
return bn(m, Pa, r);
|
|
4116
4126
|
}, Me = /* @__PURE__ */ I.forwardRef(function(r, t) {
|
|
4117
4127
|
const n = On({
|
|
4118
4128
|
props: r,
|
|
4119
4129
|
name: "MuiGrid"
|
|
4120
4130
|
}), {
|
|
4121
4131
|
breakpoints: o
|
|
4122
|
-
} =
|
|
4132
|
+
} = ga(), s = Ci(n), {
|
|
4123
4133
|
className: i,
|
|
4124
4134
|
columns: a,
|
|
4125
4135
|
columnSpacing: c,
|
|
@@ -4131,7 +4141,7 @@ const Va = (e) => {
|
|
|
4131
4141
|
spacing: g = 0,
|
|
4132
4142
|
wrap: f = "wrap",
|
|
4133
4143
|
zeroMinWidth: p = !1
|
|
4134
|
-
} = s, v = ne(s,
|
|
4144
|
+
} = s, v = ne(s, Aa), C = b || g, $ = c || g, S = I.useContext(Gt), h = l ? a || 12 : S, N = {}, O = _({}, v);
|
|
4135
4145
|
o.keys.forEach((w) => {
|
|
4136
4146
|
v[w] != null && (N[w] = v[w], delete O[w]);
|
|
4137
4147
|
});
|
|
@@ -4147,10 +4157,10 @@ const Va = (e) => {
|
|
|
4147
4157
|
spacing: g
|
|
4148
4158
|
}, N, {
|
|
4149
4159
|
breakpoints: o.keys
|
|
4150
|
-
}), B =
|
|
4151
|
-
return /* @__PURE__ */ re(
|
|
4160
|
+
}), B = La(Z);
|
|
4161
|
+
return /* @__PURE__ */ re(Gt.Provider, {
|
|
4152
4162
|
value: h,
|
|
4153
|
-
children: /* @__PURE__ */ re(
|
|
4163
|
+
children: /* @__PURE__ */ re(Va, _({
|
|
4154
4164
|
ownerState: Z,
|
|
4155
4165
|
className: Jt(B.root, i),
|
|
4156
4166
|
as: u,
|
|
@@ -4299,20 +4309,20 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4299
4309
|
zeroMinWidth: e("item")
|
|
4300
4310
|
});
|
|
4301
4311
|
}
|
|
4302
|
-
const
|
|
4312
|
+
const Ua = Me, Yt = window.location.href, Nn = An({}), Xa = ({ children: e, baseUrl: r, userData: t }) => {
|
|
4303
4313
|
const n = () => {
|
|
4304
|
-
window.location.href = `${r}/authentication/login?callbackUrl=${
|
|
4314
|
+
window.location.href = `${r}/authentication/login?callbackUrl=${Yt}`;
|
|
4305
4315
|
}, o = () => {
|
|
4306
|
-
window.location.href = `${r}/authentication/logout?callbackUrl=${
|
|
4316
|
+
window.location.href = `${r}/authentication/logout?callbackUrl=${Yt}`;
|
|
4307
4317
|
};
|
|
4308
4318
|
return t != null && t.isFetching ? /* @__PURE__ */ re(
|
|
4309
|
-
|
|
4319
|
+
Ua,
|
|
4310
4320
|
{
|
|
4311
4321
|
container: !0,
|
|
4312
4322
|
justifyContent: "center",
|
|
4313
4323
|
alignItems: "center",
|
|
4314
4324
|
sx: { minHeight: "100vh" },
|
|
4315
|
-
children: /* @__PURE__ */ re(
|
|
4325
|
+
children: /* @__PURE__ */ re(Ta, {})
|
|
4316
4326
|
}
|
|
4317
4327
|
) : t != null && t.isError ? (n(), null) : /* @__PURE__ */ re(
|
|
4318
4328
|
Nn.Provider,
|
|
@@ -4321,7 +4331,7 @@ const za = Me, Gt = window.location.href, Nn = An({}), qa = ({ children: e, base
|
|
|
4321
4331
|
children: e
|
|
4322
4332
|
}
|
|
4323
4333
|
);
|
|
4324
|
-
},
|
|
4334
|
+
}, Ja = () => {
|
|
4325
4335
|
const { login: e, logout: r, user: t } = Xt(Nn);
|
|
4326
4336
|
return { login: e, logout: r, user: t };
|
|
4327
4337
|
}, Kt = {
|
|
@@ -4330,7 +4340,7 @@ const za = Me, Gt = window.location.href, Nn = An({}), qa = ({ children: e, base
|
|
|
4330
4340
|
}, qt = (e) => {
|
|
4331
4341
|
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.href}`;
|
|
4332
4342
|
};
|
|
4333
|
-
function
|
|
4343
|
+
function Za({
|
|
4334
4344
|
config: e,
|
|
4335
4345
|
pushError: r = jn
|
|
4336
4346
|
}) {
|
|
@@ -4346,18 +4356,18 @@ function Xa({
|
|
|
4346
4356
|
async (o) => n(o)
|
|
4347
4357
|
);
|
|
4348
4358
|
function n(o) {
|
|
4349
|
-
var i, a, c, u, l, m
|
|
4359
|
+
var i, a, c, u, l, m;
|
|
4350
4360
|
console.error("Error 🚨:", o);
|
|
4351
4361
|
const s = o == null ? void 0 : o.config;
|
|
4352
4362
|
if (((i = o.response) == null ? void 0 : i.status) === 401 && o.response.data.errorMessage === Kt.TOKEN_EXPIRED && !s._retry && (s._retry = !0, t.post("/authentication/api/v1/auth/refresh-token").then(() => t(s)).catch(() => qt(e.baseURL))), (((a = o.response) == null ? void 0 : a.status) === 401 && ((c = o.response) == null ? void 0 : c.data.errorMessage) !== Kt.TOKEN_EXPIRED || !((u = o.response) != null && u.data.errorMessage)) && qt(e.baseURL), o.response.status !== 401) {
|
|
4353
|
-
const
|
|
4354
|
-
return r(
|
|
4363
|
+
const d = ((l = o.response) == null ? void 0 : l.data) && ((m = o.response.data) == null ? void 0 : m.errorMessage) || "Something went wrong!";
|
|
4364
|
+
return r(d), Promise.reject(o.response.data);
|
|
4355
4365
|
}
|
|
4356
4366
|
return Promise.reject(o);
|
|
4357
4367
|
}
|
|
4358
4368
|
return t;
|
|
4359
4369
|
}
|
|
4360
|
-
const
|
|
4370
|
+
const Wa = (e) => {
|
|
4361
4371
|
const [r, t] = Mn([]);
|
|
4362
4372
|
return In(() => {
|
|
4363
4373
|
Zt.get(`${e}/user-management/api/v1/users/my-account/permissions`, {
|
|
@@ -4367,18 +4377,18 @@ const La = (e) => {
|
|
|
4367
4377
|
});
|
|
4368
4378
|
}, [e]), r;
|
|
4369
4379
|
}, kn = (e) => (r, t) => {
|
|
4370
|
-
const n =
|
|
4380
|
+
const n = Wa(e);
|
|
4371
4381
|
return t ? r.every(
|
|
4372
4382
|
(o) => n == null ? void 0 : n.includes(o)
|
|
4373
4383
|
) : r.some(
|
|
4374
4384
|
(o) => n == null ? void 0 : n.includes(o)
|
|
4375
4385
|
);
|
|
4376
|
-
},
|
|
4386
|
+
}, Qa = ({
|
|
4377
4387
|
baseUrl: e,
|
|
4378
4388
|
accessWith: r,
|
|
4379
4389
|
requireAll: t,
|
|
4380
4390
|
children: n
|
|
4381
|
-
}) => kn(e)(r, t) ? /* @__PURE__ */ re(Ht, { children: n }) : null,
|
|
4391
|
+
}) => kn(e)(r, t) ? /* @__PURE__ */ re(Ht, { children: n }) : null, ec = ({
|
|
4382
4392
|
accessWith: e,
|
|
4383
4393
|
requireAll: r,
|
|
4384
4394
|
baseUrl: t,
|
|
@@ -4386,11 +4396,11 @@ const La = (e) => {
|
|
|
4386
4396
|
children: o
|
|
4387
4397
|
}) => kn(t)(e, r) ? /* @__PURE__ */ re(Ht, { children: o }) : /* @__PURE__ */ re(Dn, { to: n, replace: !0 });
|
|
4388
4398
|
export {
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4399
|
+
Xa as AuthProvider,
|
|
4400
|
+
Qa as HasPermission,
|
|
4401
|
+
ec as PermissionRoute,
|
|
4402
|
+
Za as getAxiosInstance,
|
|
4393
4403
|
kn as getUseHasPermission,
|
|
4394
|
-
|
|
4395
|
-
|
|
4404
|
+
Ja as useAuth,
|
|
4405
|
+
Wa as useGetPermission
|
|
4396
4406
|
};
|