@ukpc-lib/react 0.0.9 → 0.1.1
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/Toast/ToastConfig.d.ts +2 -0
- package/dist/components/Toast/icons/ErrorIcon.d.ts +1 -0
- package/dist/components/Toast/icons/SuccessIcon.d.ts +1 -0
- package/dist/components/Toast/icons/WarningIcon.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Topbar/icons/MessageIcon.d.ts +3 -1
- package/dist/components/Topbar/icons/NotificationIcon.d.ts +3 -1
- package/dist/components/Topbar/index.d.ts +10 -4
- package/dist/components/index.cjs +6 -115
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2823 -13137
- package/dist/index-60dc34b2.js +11606 -0
- package/dist/index-e55ba232.cjs +129 -0
- package/dist/index.css +1 -0
- package/dist/share/index.cjs +22 -22
- package/dist/share/index.js +126 -142
- package/dist/share/interceptor/index.d.ts +2 -2
- package/package.json +3 -2
- package/web-components-bundle/global-menu/index.cjs +11 -11
- package/web-components-bundle/global-menu/index.js +2143 -1950
- package/web-components-bundle/global-topbar/index.cjs +3 -2
- package/web-components-bundle/global-topbar/index.js +125 -83
- package/web-components-bundle/{index-b9123e08.js → index-6fdc89ad.js} +3 -3
- package/web-components-bundle/{index-47f64f27.cjs → index-fe58ccfa.cjs} +1 -1
- package/dist/extends-b6289784.cjs +0 -20
- package/dist/extends-fcd3640d.js +0 -692
package/dist/share/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as re, Fragment as Ht } from "react/jsx-runtime";
|
|
2
2
|
import * as I from "react";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { _,
|
|
5
|
-
import
|
|
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 "../index-60dc34b2.js";
|
|
5
|
+
import Zt from "axios";
|
|
6
6
|
import { Navigate as Dn } from "react-router-dom";
|
|
7
|
+
import "react-dom";
|
|
7
8
|
const Fn = {
|
|
8
9
|
black: "#000",
|
|
9
10
|
white: "#fff"
|
|
@@ -120,13 +121,13 @@ function xe(e) {
|
|
|
120
121
|
return "Minified MUI error #" + e + "; visit " + r + " for the full message.";
|
|
121
122
|
}
|
|
122
123
|
const Lr = "$$material";
|
|
123
|
-
function
|
|
124
|
+
function Qt(e) {
|
|
124
125
|
var r = /* @__PURE__ */ Object.create(null);
|
|
125
126
|
return function(t) {
|
|
126
127
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
|
-
var Kn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, qn = /* @__PURE__ */
|
|
130
|
+
var Kn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, qn = /* @__PURE__ */ Qt(
|
|
130
131
|
function(e) {
|
|
131
132
|
return Kn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
132
133
|
}
|
|
@@ -177,11 +178,11 @@ var Jn = /* @__PURE__ */ function() {
|
|
|
177
178
|
return n.parentNode && n.parentNode.removeChild(n);
|
|
178
179
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
179
180
|
}, e;
|
|
180
|
-
}(), W = "-ms-", Ze = "-moz-", T = "-webkit-", Ur = "comm", Wr = "rule", Br = "decl", Zn = "@import",
|
|
181
|
+
}(), W = "-ms-", Ze = "-moz-", T = "-webkit-", Ur = "comm", Wr = "rule", Br = "decl", Zn = "@import", en = "@keyframes", Qn = "@layer", eo = Math.abs, nr = String.fromCharCode, ro = Object.assign;
|
|
181
182
|
function to(e, r) {
|
|
182
183
|
return U(e, 0) ^ 45 ? (((r << 2 ^ U(e, 0)) << 2 ^ U(e, 1)) << 2 ^ U(e, 2)) << 2 ^ U(e, 3) : 0;
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function rn(e) {
|
|
185
186
|
return e.trim();
|
|
186
187
|
}
|
|
187
188
|
function no(e, r) {
|
|
@@ -211,7 +212,7 @@ function Ge(e, r) {
|
|
|
211
212
|
function oo(e, r) {
|
|
212
213
|
return e.map(r).join("");
|
|
213
214
|
}
|
|
214
|
-
var or = 1, Se = 1,
|
|
215
|
+
var or = 1, Se = 1, tn = 0, G = 0, z = 0, $e = "";
|
|
215
216
|
function sr(e, r, t, n, o, s, i) {
|
|
216
217
|
return { value: e, root: r, parent: t, type: n, props: o, children: s, line: or, column: Se, length: i, return: "" };
|
|
217
218
|
}
|
|
@@ -225,7 +226,7 @@ function io() {
|
|
|
225
226
|
return z = G > 0 ? U($e, --G) : 0, Se--, z === 10 && (Se = 1, or--), z;
|
|
226
227
|
}
|
|
227
228
|
function q() {
|
|
228
|
-
return z = G <
|
|
229
|
+
return z = G < tn ? U($e, G++) : 0, Se++, z === 10 && (Se = 1, or++), z;
|
|
229
230
|
}
|
|
230
231
|
function se() {
|
|
231
232
|
return U($e, G);
|
|
@@ -268,14 +269,14 @@ function De(e) {
|
|
|
268
269
|
}
|
|
269
270
|
return 0;
|
|
270
271
|
}
|
|
271
|
-
function tn(e) {
|
|
272
|
-
return or = Se = 1, rn = oe($e = e), G = 0, [];
|
|
273
|
-
}
|
|
274
272
|
function nn(e) {
|
|
273
|
+
return or = Se = 1, tn = oe($e = e), G = 0, [];
|
|
274
|
+
}
|
|
275
|
+
function on(e) {
|
|
275
276
|
return $e = "", e;
|
|
276
277
|
}
|
|
277
278
|
function qe(e) {
|
|
278
|
-
return
|
|
279
|
+
return rn(ze(G - 1, Dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
279
280
|
}
|
|
280
281
|
function ao(e) {
|
|
281
282
|
for (; (z = se()) && z < 33; )
|
|
@@ -317,7 +318,7 @@ function lo(e) {
|
|
|
317
318
|
return ze(e, G);
|
|
318
319
|
}
|
|
319
320
|
function fo(e) {
|
|
320
|
-
return
|
|
321
|
+
return on(He("", null, null, null, [""], e = nn(e), 0, [0], e));
|
|
321
322
|
}
|
|
322
323
|
function He(e, r, t, n, o, s, i, a, c) {
|
|
323
324
|
for (var u = 0, l = 0, m = i, d = 0, b = 0, g = 0, f = 1, p = 1, v = 1, C = 0, $ = "", S = o, h = s, N = n, O = $; p; )
|
|
@@ -411,7 +412,7 @@ function He(e, r, t, n, o, s, i, a, c) {
|
|
|
411
412
|
function ot(e, r, t, n, o, s, i, a, c, u, l) {
|
|
412
413
|
for (var m = o - 1, d = o === 0 ? s : [""], b = Yr(d), g = 0, f = 0, p = 0; g < n; ++g)
|
|
413
414
|
for (var v = 0, C = je(e, m + 1, m = eo(f = i[g])), $ = e; v < b; ++v)
|
|
414
|
-
($ =
|
|
415
|
+
($ = rn(f > 0 ? d[v] + " " + C : P(C, /&\f/g, d[v]))) && (c[p++] = $);
|
|
415
416
|
return sr(e, r, t, o === 0 ? Wr : a, c, u, l);
|
|
416
417
|
}
|
|
417
418
|
function po(e, r, t) {
|
|
@@ -435,7 +436,7 @@ function mo(e, r, t, n) {
|
|
|
435
436
|
return e.return = e.return || e.value;
|
|
436
437
|
case Ur:
|
|
437
438
|
return "";
|
|
438
|
-
case
|
|
439
|
+
case en:
|
|
439
440
|
return e.return = e.value + "{" + be(e.children, n) + "}";
|
|
440
441
|
case Wr:
|
|
441
442
|
e.value = e.props.join(",");
|
|
@@ -480,7 +481,7 @@ var go = function(r, t, n) {
|
|
|
480
481
|
while (o = q());
|
|
481
482
|
return r;
|
|
482
483
|
}, vo = function(r, t) {
|
|
483
|
-
return
|
|
484
|
+
return on(bo(nn(r), t));
|
|
484
485
|
}, it = /* @__PURE__ */ new WeakMap(), Eo = function(r) {
|
|
485
486
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
486
487
|
// negative .length indicates that this rule has been already prefixed
|
|
@@ -528,19 +529,19 @@ var go = function(r, t, n) {
|
|
|
528
529
|
}
|
|
529
530
|
}
|
|
530
531
|
};
|
|
531
|
-
},
|
|
532
|
+
}, sn = function(r) {
|
|
532
533
|
return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
|
|
533
534
|
}, $o = function(r, t) {
|
|
534
535
|
for (var n = r - 1; n >= 0; n--)
|
|
535
|
-
if (!
|
|
536
|
+
if (!sn(t[n]))
|
|
536
537
|
return !0;
|
|
537
538
|
return !1;
|
|
538
539
|
}, at = function(r) {
|
|
539
540
|
r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
|
|
540
541
|
}, Oo = function(r, t, n) {
|
|
541
|
-
|
|
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."), at(r)) : $o(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), at(r)));
|
|
542
543
|
};
|
|
543
|
-
function
|
|
544
|
+
function an(e, r) {
|
|
544
545
|
switch (to(e, r)) {
|
|
545
546
|
case 5103:
|
|
546
547
|
return T + "print-" + e + e;
|
|
@@ -627,7 +628,7 @@ function sn(e, r) {
|
|
|
627
628
|
case 102:
|
|
628
629
|
return P(e, /(.+:)(.+)-([^]+)/, "$1" + T + "$2-$3$1" + Ze + (U(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
629
630
|
case 115:
|
|
630
|
-
return ~jr(e, "stretch") ?
|
|
631
|
+
return ~jr(e, "stretch") ? an(P(e, "stretch", "fill-available"), r) + e : e;
|
|
631
632
|
}
|
|
632
633
|
break;
|
|
633
634
|
case 4949:
|
|
@@ -658,9 +659,9 @@ var Co = function(r, t, n, o) {
|
|
|
658
659
|
if (r.length > -1 && !r.return)
|
|
659
660
|
switch (r.type) {
|
|
660
661
|
case Br:
|
|
661
|
-
r.return =
|
|
662
|
+
r.return = an(r.value, r.length);
|
|
662
663
|
break;
|
|
663
|
-
case
|
|
664
|
+
case en:
|
|
664
665
|
return be([ke(r, {
|
|
665
666
|
value: P(r.value, "@", "@" + T)
|
|
666
667
|
})], o);
|
|
@@ -918,7 +919,7 @@ function ko() {
|
|
|
918
919
|
}()), R;
|
|
919
920
|
}
|
|
920
921
|
process.env.NODE_ENV === "production" ? Fr.exports = No() : Fr.exports = ko();
|
|
921
|
-
var Ro = Fr.exports,
|
|
922
|
+
var Ro = Fr.exports, cn = Ro, Ao = {
|
|
922
923
|
$$typeof: !0,
|
|
923
924
|
render: !0,
|
|
924
925
|
defaultProps: !0,
|
|
@@ -931,9 +932,9 @@ var Ro = Fr.exports, an = Ro, Ao = {
|
|
|
931
932
|
displayName: !0,
|
|
932
933
|
propTypes: !0,
|
|
933
934
|
type: !0
|
|
934
|
-
},
|
|
935
|
-
cn
|
|
936
|
-
cn
|
|
935
|
+
}, un = {};
|
|
936
|
+
un[cn.ForwardRef] = Ao;
|
|
937
|
+
un[cn.Memo] = Mo;
|
|
937
938
|
var Io = !0;
|
|
938
939
|
function Gr(e, r, t) {
|
|
939
940
|
var n = "";
|
|
@@ -1033,18 +1034,18 @@ var Do = {
|
|
|
1033
1034
|
}, lt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1034
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';".
|
|
1035
1036
|
You can read more about this here:
|
|
1036
|
-
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,
|
|
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) {
|
|
1037
1038
|
return r.charCodeAt(1) === 45;
|
|
1038
1039
|
}, ft = function(r) {
|
|
1039
1040
|
return r != null && typeof r != "boolean";
|
|
1040
|
-
}, Mr = /* @__PURE__ */
|
|
1041
|
+
}, Mr = /* @__PURE__ */ Qt(function(e) {
|
|
1041
1042
|
return Kr(e) ? e : e.replace(Vo, "-$&").toLowerCase();
|
|
1042
1043
|
}), Qe = function(r, t) {
|
|
1043
1044
|
switch (r) {
|
|
1044
1045
|
case "animation":
|
|
1045
1046
|
case "animationName":
|
|
1046
1047
|
if (typeof t == "string")
|
|
1047
|
-
return t.replace(
|
|
1048
|
+
return t.replace(ln, function(n, o, s) {
|
|
1048
1049
|
return ee = {
|
|
1049
1050
|
name: o,
|
|
1050
1051
|
styles: s,
|
|
@@ -1065,13 +1066,13 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1065
1066
|
}) + "?")), n;
|
|
1066
1067
|
};
|
|
1067
1068
|
}
|
|
1068
|
-
var
|
|
1069
|
+
var fn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1069
1070
|
function Fe(e, r, t) {
|
|
1070
1071
|
if (t == null)
|
|
1071
1072
|
return "";
|
|
1072
1073
|
if (t.__emotion_styles !== void 0) {
|
|
1073
1074
|
if (process.env.NODE_ENV !== "production" && t.toString() === "NO_COMPONENT_SELECTOR")
|
|
1074
|
-
throw new Error(
|
|
1075
|
+
throw new Error(fn);
|
|
1075
1076
|
return t;
|
|
1076
1077
|
}
|
|
1077
1078
|
switch (typeof t) {
|
|
@@ -1108,7 +1109,7 @@ function Fe(e, r, t) {
|
|
|
1108
1109
|
}
|
|
1109
1110
|
case "string":
|
|
1110
1111
|
if (process.env.NODE_ENV !== "production") {
|
|
1111
|
-
var a = [], c = t.replace(
|
|
1112
|
+
var a = [], c = t.replace(ln, function(l, m, d) {
|
|
1112
1113
|
var b = "animation" + a.length;
|
|
1113
1114
|
return a.push("const " + b + " = keyframes`" + d.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + b + "}";
|
|
1114
1115
|
});
|
|
@@ -1138,7 +1139,7 @@ function Yo(e, r, t) {
|
|
|
1138
1139
|
r != null && r[i] !== void 0 ? n += s + "{" + r[i] + "}" : ft(i) && (n += Mr(s) + ":" + Qe(s, i) + ";");
|
|
1139
1140
|
else {
|
|
1140
1141
|
if (s === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
1141
|
-
throw new Error(
|
|
1142
|
+
throw new Error(fn);
|
|
1142
1143
|
if (Array.isArray(i) && typeof i[0] == "string" && (r == null || r[i[0]] === void 0))
|
|
1143
1144
|
for (var a = 0; a < i.length; a++)
|
|
1144
1145
|
ft(i[a]) && (n += Mr(s) + ":" + Qe(s, i[a]) + ";");
|
|
@@ -1158,8 +1159,8 @@ function Yo(e, r, t) {
|
|
|
1158
1159
|
}
|
|
1159
1160
|
return n;
|
|
1160
1161
|
}
|
|
1161
|
-
var pt = /label:\s*([^\s;\n{]+)\s*(;|$)/g,
|
|
1162
|
-
process.env.NODE_ENV !== "production" && (
|
|
1162
|
+
var pt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, dn;
|
|
1163
|
+
process.env.NODE_ENV !== "production" && (dn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1163
1164
|
var ee, we = function(r, t, n) {
|
|
1164
1165
|
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
|
|
1165
1166
|
return r[0];
|
|
@@ -1170,7 +1171,7 @@ var ee, we = function(r, t, n) {
|
|
|
1170
1171
|
for (var a = 1; a < r.length; a++)
|
|
1171
1172
|
s += Fe(n, t, r[a]), o && (process.env.NODE_ENV !== "production" && i[a] === void 0 && console.error(lt), s += i[a]);
|
|
1172
1173
|
var c;
|
|
1173
|
-
process.env.NODE_ENV !== "production" && (s = s.replace(
|
|
1174
|
+
process.env.NODE_ENV !== "production" && (s = s.replace(dn, function(d) {
|
|
1174
1175
|
return c = d, "";
|
|
1175
1176
|
})), pt.lastIndex = 0;
|
|
1176
1177
|
for (var u = "", l; (l = pt.exec(s)) !== null; )
|
|
@@ -1192,7 +1193,7 @@ var ee, we = function(r, t, n) {
|
|
|
1192
1193
|
};
|
|
1193
1194
|
}, Go = function(r) {
|
|
1194
1195
|
return r();
|
|
1195
|
-
},
|
|
1196
|
+
}, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn || Go, mt = pn || I.useLayoutEffect, Ko = {}.hasOwnProperty, Hr = /* @__PURE__ */ I.createContext(
|
|
1196
1197
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1197
1198
|
// because this module is primarily intended for the browser and node
|
|
1198
1199
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1206,7 +1207,7 @@ var ee, we = function(r, t, n) {
|
|
|
1206
1207
|
process.env.NODE_ENV !== "production" && (Hr.displayName = "EmotionCacheContext");
|
|
1207
1208
|
Hr.Provider;
|
|
1208
1209
|
var cr = function(r) {
|
|
1209
|
-
return /* @__PURE__ */
|
|
1210
|
+
return /* @__PURE__ */ Rn(function(t, n) {
|
|
1210
1211
|
var o = Xt(Hr);
|
|
1211
1212
|
return r(t, o, n);
|
|
1212
1213
|
});
|
|
@@ -1404,7 +1405,7 @@ function Xr() {
|
|
|
1404
1405
|
r[t] = arguments[t];
|
|
1405
1406
|
return we(r);
|
|
1406
1407
|
}
|
|
1407
|
-
var
|
|
1408
|
+
var mn = function() {
|
|
1408
1409
|
var r = Xr.apply(void 0, arguments), t = "animation-" + r.name;
|
|
1409
1410
|
return {
|
|
1410
1411
|
name: t,
|
|
@@ -1725,12 +1726,12 @@ function ce(e) {
|
|
|
1725
1726
|
const r = Object.getPrototypeOf(e);
|
|
1726
1727
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1727
1728
|
}
|
|
1728
|
-
function
|
|
1729
|
+
function hn(e) {
|
|
1729
1730
|
if (!ce(e))
|
|
1730
1731
|
return e;
|
|
1731
1732
|
const r = {};
|
|
1732
1733
|
return Object.keys(e).forEach((t) => {
|
|
1733
|
-
r[t] =
|
|
1734
|
+
r[t] = hn(e[t]);
|
|
1734
1735
|
}), r;
|
|
1735
1736
|
}
|
|
1736
1737
|
function te(e, r, t = {
|
|
@@ -1738,7 +1739,7 @@ function te(e, r, t = {
|
|
|
1738
1739
|
}) {
|
|
1739
1740
|
const n = t.clone ? _({}, e) : e;
|
|
1740
1741
|
return ce(e) && ce(r) && Object.keys(r).forEach((o) => {
|
|
1741
|
-
o !== "__proto__" && (ce(r[o]) && o in e && ce(e[o]) ? n[o] = te(e[o], r[o], t) : t.clone ? n[o] = ce(r[o]) ?
|
|
1742
|
+
o !== "__proto__" && (ce(r[o]) && o in e && ce(e[o]) ? n[o] = te(e[o], r[o], t) : t.clone ? n[o] = ce(r[o]) ? hn(r[o]) : r[o] : n[o] = r[o]);
|
|
1742
1743
|
}), n;
|
|
1743
1744
|
}
|
|
1744
1745
|
var zr = { exports: {} }, A = {};
|
|
@@ -1927,11 +1928,11 @@ function ms(e) {
|
|
|
1927
1928
|
const r = `${e}`.match(ps);
|
|
1928
1929
|
return r && r[1] || "";
|
|
1929
1930
|
}
|
|
1930
|
-
function
|
|
1931
|
+
function yn(e, r = "") {
|
|
1931
1932
|
return e.displayName || e.name || ms(e) || r;
|
|
1932
1933
|
}
|
|
1933
1934
|
function Ct(e, r, t) {
|
|
1934
|
-
const n =
|
|
1935
|
+
const n = yn(r);
|
|
1935
1936
|
return e.displayName || (n !== "" ? `${t}(${n})` : t);
|
|
1936
1937
|
}
|
|
1937
1938
|
function hs(e) {
|
|
@@ -1939,7 +1940,7 @@ function hs(e) {
|
|
|
1939
1940
|
if (typeof e == "string")
|
|
1940
1941
|
return e;
|
|
1941
1942
|
if (typeof e == "function")
|
|
1942
|
-
return
|
|
1943
|
+
return yn(e, "Component");
|
|
1943
1944
|
if (typeof e == "object")
|
|
1944
1945
|
switch (e.$$typeof) {
|
|
1945
1946
|
case Ot.ForwardRef:
|
|
@@ -1970,7 +1971,7 @@ function ys(e, r) {
|
|
|
1970
1971
|
return typeof s[i] < "u" && !s[o] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
1971
1972
|
};
|
|
1972
1973
|
}
|
|
1973
|
-
function
|
|
1974
|
+
function gn(e, r) {
|
|
1974
1975
|
const t = _({}, r);
|
|
1975
1976
|
return Object.keys(e).forEach((n) => {
|
|
1976
1977
|
if (n.toString().match(/^(components|slots)$/))
|
|
@@ -1978,13 +1979,13 @@ function yn(e, r) {
|
|
|
1978
1979
|
else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
1979
1980
|
const o = e[n] || {}, s = r[n];
|
|
1980
1981
|
t[n] = {}, !s || !Object.keys(s) ? t[n] = o : !o || !Object.keys(o) ? t[n] = s : (t[n] = _({}, s), Object.keys(o).forEach((i) => {
|
|
1981
|
-
t[n][i] =
|
|
1982
|
+
t[n][i] = gn(o[i], s[i]);
|
|
1982
1983
|
}));
|
|
1983
1984
|
} else
|
|
1984
1985
|
t[n] === void 0 && (t[n] = e[n]);
|
|
1985
1986
|
}), t;
|
|
1986
1987
|
}
|
|
1987
|
-
function
|
|
1988
|
+
function bn(e, r, t = void 0) {
|
|
1988
1989
|
const n = {};
|
|
1989
1990
|
return Object.keys(e).forEach(
|
|
1990
1991
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -2031,7 +2032,7 @@ function ur(e, r, t = "Mui") {
|
|
|
2031
2032
|
const n = Es[r];
|
|
2032
2033
|
return n ? `${t}-${n}` : `${vs.generate(e)}-${r}`;
|
|
2033
2034
|
}
|
|
2034
|
-
function
|
|
2035
|
+
function vn(e, r, t = "Mui") {
|
|
2035
2036
|
const n = {};
|
|
2036
2037
|
return r.forEach((o) => {
|
|
2037
2038
|
n[o] = ur(e, o, t);
|
|
@@ -2246,7 +2247,7 @@ function Le(e, r, t, n) {
|
|
|
2246
2247
|
`)), () => {
|
|
2247
2248
|
});
|
|
2248
2249
|
}
|
|
2249
|
-
function
|
|
2250
|
+
function En(e) {
|
|
2250
2251
|
return Le(e, "spacing", 8, "spacing");
|
|
2251
2252
|
}
|
|
2252
2253
|
function Ue(e, r) {
|
|
@@ -2264,17 +2265,17 @@ function js(e, r, t, n) {
|
|
|
2264
2265
|
const o = As(t), s = Is(o, n), i = e[t];
|
|
2265
2266
|
return X(e, i, s);
|
|
2266
2267
|
}
|
|
2267
|
-
function
|
|
2268
|
-
const t =
|
|
2268
|
+
function xn(e, r) {
|
|
2269
|
+
const t = En(e.theme);
|
|
2269
2270
|
return Object.keys(e).map((n) => js(e, r, n, t)).reduce(Ae, {});
|
|
2270
2271
|
}
|
|
2271
2272
|
function D(e) {
|
|
2272
|
-
return
|
|
2273
|
+
return xn(e, dr);
|
|
2273
2274
|
}
|
|
2274
2275
|
D.propTypes = process.env.NODE_ENV !== "production" ? dr.reduce((e, r) => (e[r] = fe, e), {}) : {};
|
|
2275
2276
|
D.filterProps = dr;
|
|
2276
2277
|
function F(e) {
|
|
2277
|
-
return
|
|
2278
|
+
return xn(e, pr);
|
|
2278
2279
|
}
|
|
2279
2280
|
F.propTypes = process.env.NODE_ENV !== "production" ? pr.reduce((e, r) => (e[r] = fe, e), {}) : {};
|
|
2280
2281
|
F.filterProps = pr;
|
|
@@ -2282,7 +2283,7 @@ process.env.NODE_ENV !== "production" && Ms.reduce((e, r) => (e[r] = fe, e), {})
|
|
|
2282
2283
|
function Ds(e = 8) {
|
|
2283
2284
|
if (e.mui)
|
|
2284
2285
|
return e;
|
|
2285
|
-
const r =
|
|
2286
|
+
const r = En({
|
|
2286
2287
|
spacing: e
|
|
2287
2288
|
}), t = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((s) => {
|
|
2288
2289
|
const i = r(s);
|
|
@@ -2814,9 +2815,9 @@ function gi() {
|
|
|
2814
2815
|
}
|
|
2815
2816
|
return r;
|
|
2816
2817
|
}
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2819
|
-
const Qr =
|
|
2818
|
+
const Sn = gi();
|
|
2819
|
+
Sn.filterProps = ["sx"];
|
|
2820
|
+
const Qr = Sn, bi = ["breakpoints", "palette", "spacing", "shape"];
|
|
2820
2821
|
function et(e = {}, ...r) {
|
|
2821
2822
|
const {
|
|
2822
2823
|
breakpoints: t = {},
|
|
@@ -2850,7 +2851,7 @@ function xi(e = null) {
|
|
|
2850
2851
|
return !r || Ei(r) ? e : r;
|
|
2851
2852
|
}
|
|
2852
2853
|
const Si = et();
|
|
2853
|
-
function
|
|
2854
|
+
function wn(e = Si) {
|
|
2854
2855
|
return xi(e);
|
|
2855
2856
|
}
|
|
2856
2857
|
const wi = ["sx"], _i = (e) => {
|
|
@@ -2878,30 +2879,11 @@ function $i(e) {
|
|
|
2878
2879
|
sx: s
|
|
2879
2880
|
});
|
|
2880
2881
|
}
|
|
2881
|
-
function wn(e) {
|
|
2882
|
-
var r, t, n = "";
|
|
2883
|
-
if (typeof e == "string" || typeof e == "number")
|
|
2884
|
-
n += e;
|
|
2885
|
-
else if (typeof e == "object")
|
|
2886
|
-
if (Array.isArray(e)) {
|
|
2887
|
-
var o = e.length;
|
|
2888
|
-
for (r = 0; r < o; r++)
|
|
2889
|
-
e[r] && (t = wn(e[r])) && (n && (n += " "), n += t);
|
|
2890
|
-
} else
|
|
2891
|
-
for (t in e)
|
|
2892
|
-
e[t] && (n && (n += " "), n += t);
|
|
2893
|
-
return n;
|
|
2894
|
-
}
|
|
2895
|
-
function _n() {
|
|
2896
|
-
for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++)
|
|
2897
|
-
(e = arguments[t]) && (r = wn(e)) && (n && (n += " "), n += r);
|
|
2898
|
-
return n;
|
|
2899
|
-
}
|
|
2900
2882
|
const Oi = ["variant"];
|
|
2901
2883
|
function kt(e) {
|
|
2902
2884
|
return e.length === 0;
|
|
2903
2885
|
}
|
|
2904
|
-
function
|
|
2886
|
+
function _n(e) {
|
|
2905
2887
|
const {
|
|
2906
2888
|
variant: r
|
|
2907
2889
|
} = e, t = ne(e, Oi);
|
|
@@ -2925,7 +2907,7 @@ const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOve
|
|
|
2925
2907
|
const t = {};
|
|
2926
2908
|
return e && e.forEach((n) => {
|
|
2927
2909
|
let o = "";
|
|
2928
|
-
typeof n.props == "function" ? (o = `callback${r}`, r += 1) : o =
|
|
2910
|
+
typeof n.props == "function" ? (o = `callback${r}`, r += 1) : o = _n(n.props), t[o] = n.style;
|
|
2929
2911
|
}), t;
|
|
2930
2912
|
}, ki = (e, r) => {
|
|
2931
2913
|
let t = [];
|
|
@@ -2944,7 +2926,7 @@ const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOve
|
|
|
2944
2926
|
Object.keys(i.props).forEach((c) => {
|
|
2945
2927
|
n[c] !== i.props[c] && e[c] !== i.props[c] && (a = !1);
|
|
2946
2928
|
});
|
|
2947
|
-
a && (typeof i.props == "function" ? o.push(r[`callback${s}`]) : o.push(r[
|
|
2929
|
+
a && (typeof i.props == "function" ? o.push(r[`callback${s}`]) : o.push(r[_n(i.props)])), typeof i.props == "function" && (s += 1);
|
|
2948
2930
|
}), o;
|
|
2949
2931
|
}, Ri = (e, r, t, n) => {
|
|
2950
2932
|
var o;
|
|
@@ -3099,7 +3081,7 @@ function ji(e) {
|
|
|
3099
3081
|
name: t,
|
|
3100
3082
|
props: n
|
|
3101
3083
|
} = e;
|
|
3102
|
-
return !r || !r.components || !r.components[t] || !r.components[t].defaultProps ? n :
|
|
3084
|
+
return !r || !r.components || !r.components[t] || !r.components[t].defaultProps ? n : gn(r.components[t].defaultProps, n);
|
|
3103
3085
|
}
|
|
3104
3086
|
function Di({
|
|
3105
3087
|
props: e,
|
|
@@ -3107,14 +3089,14 @@ function Di({
|
|
|
3107
3089
|
defaultTheme: t,
|
|
3108
3090
|
themeId: n
|
|
3109
3091
|
}) {
|
|
3110
|
-
let o =
|
|
3092
|
+
let o = wn(t);
|
|
3111
3093
|
return n && (o = o[n] || o), ji({
|
|
3112
3094
|
theme: o,
|
|
3113
3095
|
name: r,
|
|
3114
3096
|
props: e
|
|
3115
3097
|
});
|
|
3116
3098
|
}
|
|
3117
|
-
function
|
|
3099
|
+
function $n(e, r = 0, t = 1) {
|
|
3118
3100
|
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Math.min(Math.max(r, e), t);
|
|
3119
3101
|
}
|
|
3120
3102
|
function Fi(e) {
|
|
@@ -3177,7 +3159,7 @@ function It(e, r) {
|
|
|
3177
3159
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
3178
3160
|
}
|
|
3179
3161
|
function zi(e, r) {
|
|
3180
|
-
if (e = _e(e), r =
|
|
3162
|
+
if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
|
|
3181
3163
|
e.values[2] *= 1 - r;
|
|
3182
3164
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
3183
3165
|
for (let t = 0; t < 3; t += 1)
|
|
@@ -3185,7 +3167,7 @@ function zi(e, r) {
|
|
|
3185
3167
|
return rt(e);
|
|
3186
3168
|
}
|
|
3187
3169
|
function Li(e, r) {
|
|
3188
|
-
if (e = _e(e), r =
|
|
3170
|
+
if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
|
|
3189
3171
|
e.values[2] += (100 - e.values[2]) * r;
|
|
3190
3172
|
else if (e.type.indexOf("rgb") !== -1)
|
|
3191
3173
|
for (let t = 0; t < 3; t += 1)
|
|
@@ -3633,10 +3615,10 @@ function pa(e = {}, ...r) {
|
|
|
3633
3615
|
}
|
|
3634
3616
|
const ma = pa(), tt = ma;
|
|
3635
3617
|
function ha() {
|
|
3636
|
-
const e =
|
|
3618
|
+
const e = wn(tt);
|
|
3637
3619
|
return process.env.NODE_ENV !== "production" && I.useDebugValue(e), e[Lr] || e;
|
|
3638
3620
|
}
|
|
3639
|
-
function
|
|
3621
|
+
function On({
|
|
3640
3622
|
props: e,
|
|
3641
3623
|
name: r
|
|
3642
3624
|
}) {
|
|
@@ -3655,10 +3637,10 @@ const ya = (e) => Xe(e) && e !== "classes", ga = Ii({
|
|
|
3655
3637
|
function ba(e) {
|
|
3656
3638
|
return ur("MuiCircularProgress", e);
|
|
3657
3639
|
}
|
|
3658
|
-
|
|
3640
|
+
vn("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
3659
3641
|
const va = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
3660
3642
|
let xr = (e) => e, Lt, Ut, Wt, Bt;
|
|
3661
|
-
const le = 44, Ea =
|
|
3643
|
+
const le = 44, Ea = mn(Lt || (Lt = xr`
|
|
3662
3644
|
0% {
|
|
3663
3645
|
transform: rotate(0deg);
|
|
3664
3646
|
}
|
|
@@ -3666,7 +3648,7 @@ const le = 44, Ea = pn(Lt || (Lt = xr`
|
|
|
3666
3648
|
100% {
|
|
3667
3649
|
transform: rotate(360deg);
|
|
3668
3650
|
}
|
|
3669
|
-
`)), xa =
|
|
3651
|
+
`)), xa = mn(Ut || (Ut = xr`
|
|
3670
3652
|
0% {
|
|
3671
3653
|
stroke-dasharray: 1px, 200px;
|
|
3672
3654
|
stroke-dashoffset: 0;
|
|
@@ -3692,7 +3674,7 @@ const le = 44, Ea = pn(Lt || (Lt = xr`
|
|
|
3692
3674
|
svg: ["svg"],
|
|
3693
3675
|
circle: ["circle", `circle${ie(t)}`, o && "circleDisableShrink"]
|
|
3694
3676
|
};
|
|
3695
|
-
return
|
|
3677
|
+
return bn(s, ba, r);
|
|
3696
3678
|
}, wa = Er("span", {
|
|
3697
3679
|
name: "MuiCircularProgress",
|
|
3698
3680
|
slot: "Root",
|
|
@@ -3747,8 +3729,8 @@ const le = 44, Ea = pn(Lt || (Lt = xr`
|
|
|
3747
3729
|
ownerState: e
|
|
3748
3730
|
}) => e.variant === "indeterminate" && !e.disableShrink && Xr(Bt || (Bt = xr`
|
|
3749
3731
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
3750
|
-
`), xa)),
|
|
3751
|
-
const n =
|
|
3732
|
+
`), xa)), Cn = /* @__PURE__ */ I.forwardRef(function(r, t) {
|
|
3733
|
+
const n = On({
|
|
3752
3734
|
props: r,
|
|
3753
3735
|
name: "MuiCircularProgress"
|
|
3754
3736
|
}), {
|
|
@@ -3773,7 +3755,7 @@ const le = 44, Ea = pn(Lt || (Lt = xr`
|
|
|
3773
3755
|
f.strokeDasharray = C.toFixed(3), v["aria-valuenow"] = Math.round(l), f.strokeDashoffset = `${((100 - l) / 100 * C).toFixed(3)}px`, p.transform = "rotate(-90deg)";
|
|
3774
3756
|
}
|
|
3775
3757
|
return /* @__PURE__ */ re(wa, _({
|
|
3776
|
-
className:
|
|
3758
|
+
className: Jt(g.root, o),
|
|
3777
3759
|
style: _({
|
|
3778
3760
|
width: a,
|
|
3779
3761
|
height: a
|
|
@@ -3799,7 +3781,7 @@ const le = 44, Ea = pn(Lt || (Lt = xr`
|
|
|
3799
3781
|
})
|
|
3800
3782
|
}));
|
|
3801
3783
|
});
|
|
3802
|
-
process.env.NODE_ENV !== "production" && (
|
|
3784
|
+
process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
3803
3785
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3804
3786
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3805
3787
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3858,13 +3840,13 @@ process.env.NODE_ENV !== "production" && (Tn.propTypes = {
|
|
|
3858
3840
|
*/
|
|
3859
3841
|
variant: y.oneOf(["determinate", "indeterminate"])
|
|
3860
3842
|
});
|
|
3861
|
-
const Oa =
|
|
3862
|
-
process.env.NODE_ENV !== "production" && (
|
|
3863
|
-
const Yt =
|
|
3843
|
+
const Oa = Cn, Tn = /* @__PURE__ */ I.createContext();
|
|
3844
|
+
process.env.NODE_ENV !== "production" && (Tn.displayName = "GridContext");
|
|
3845
|
+
const Yt = Tn;
|
|
3864
3846
|
function Ca(e) {
|
|
3865
3847
|
return ur("MuiGrid", e);
|
|
3866
3848
|
}
|
|
3867
|
-
const Ta = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Pa = ["column-reverse", "column", "row-reverse", "row"], Na = ["nowrap", "wrap-reverse", "wrap"], Re = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], Ve =
|
|
3849
|
+
const Ta = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Pa = ["column-reverse", "column", "row-reverse", "row"], Na = ["nowrap", "wrap-reverse", "wrap"], Re = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], Ve = vn("MuiGrid", [
|
|
3868
3850
|
"root",
|
|
3869
3851
|
"container",
|
|
3870
3852
|
"item",
|
|
@@ -3956,7 +3938,7 @@ function Aa({
|
|
|
3956
3938
|
}), o;
|
|
3957
3939
|
});
|
|
3958
3940
|
}
|
|
3959
|
-
function
|
|
3941
|
+
function Pn({
|
|
3960
3942
|
breakpoints: e,
|
|
3961
3943
|
values: r
|
|
3962
3944
|
}) {
|
|
@@ -3982,7 +3964,7 @@ function Ma({
|
|
|
3982
3964
|
breakpoints: e.breakpoints.values
|
|
3983
3965
|
});
|
|
3984
3966
|
let i;
|
|
3985
|
-
typeof s == "object" && (i =
|
|
3967
|
+
typeof s == "object" && (i = Pn({
|
|
3986
3968
|
breakpoints: e.breakpoints.values,
|
|
3987
3969
|
values: s
|
|
3988
3970
|
})), o = X({
|
|
@@ -4020,7 +4002,7 @@ function Ia({
|
|
|
4020
4002
|
breakpoints: e.breakpoints.values
|
|
4021
4003
|
});
|
|
4022
4004
|
let i;
|
|
4023
|
-
typeof s == "object" && (i =
|
|
4005
|
+
typeof s == "object" && (i = Pn({
|
|
4024
4006
|
breakpoints: e.breakpoints.values,
|
|
4025
4007
|
values: s
|
|
4026
4008
|
})), o = X({
|
|
@@ -4130,9 +4112,9 @@ const Va = (e) => {
|
|
|
4130
4112
|
const m = {
|
|
4131
4113
|
root: ["root", t && "container", o && "item", a && "zeroMinWidth", ...u, n !== "row" && `direction-xs-${String(n)}`, i !== "wrap" && `wrap-xs-${String(i)}`, ...l]
|
|
4132
4114
|
};
|
|
4133
|
-
return
|
|
4115
|
+
return bn(m, Ca, r);
|
|
4134
4116
|
}, Me = /* @__PURE__ */ I.forwardRef(function(r, t) {
|
|
4135
|
-
const n =
|
|
4117
|
+
const n = On({
|
|
4136
4118
|
props: r,
|
|
4137
4119
|
name: "MuiGrid"
|
|
4138
4120
|
}), {
|
|
@@ -4170,7 +4152,7 @@ const Va = (e) => {
|
|
|
4170
4152
|
value: h,
|
|
4171
4153
|
children: /* @__PURE__ */ re(Da, _({
|
|
4172
4154
|
ownerState: Z,
|
|
4173
|
-
className:
|
|
4155
|
+
className: Jt(B.root, i),
|
|
4174
4156
|
as: u,
|
|
4175
4157
|
ref: t
|
|
4176
4158
|
}, O))
|
|
@@ -4317,7 +4299,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4317
4299
|
zeroMinWidth: e("item")
|
|
4318
4300
|
});
|
|
4319
4301
|
}
|
|
4320
|
-
const za = Me, Gt = window.location.href,
|
|
4302
|
+
const za = Me, Gt = window.location.href, Nn = An({}), qa = ({ children: e, baseUrl: r, userData: t }) => {
|
|
4321
4303
|
const n = () => {
|
|
4322
4304
|
window.location.href = `${r}/authentication/login?callbackUrl=${Gt}`;
|
|
4323
4305
|
}, o = () => {
|
|
@@ -4333,14 +4315,14 @@ const za = Me, Gt = window.location.href, kn = Mn({}), Ka = ({ children: e, base
|
|
|
4333
4315
|
children: /* @__PURE__ */ re(Oa, {})
|
|
4334
4316
|
}
|
|
4335
4317
|
) : t != null && t.isError ? (n(), null) : /* @__PURE__ */ re(
|
|
4336
|
-
|
|
4318
|
+
Nn.Provider,
|
|
4337
4319
|
{
|
|
4338
4320
|
value: { user: t == null ? void 0 : t.data, login: n, logout: o },
|
|
4339
4321
|
children: e
|
|
4340
4322
|
}
|
|
4341
4323
|
);
|
|
4342
|
-
},
|
|
4343
|
-
const { login: e, logout: r, user: t } = Xt(
|
|
4324
|
+
}, Ha = () => {
|
|
4325
|
+
const { login: e, logout: r, user: t } = Xt(Nn);
|
|
4344
4326
|
return { login: e, logout: r, user: t };
|
|
4345
4327
|
}, Kt = {
|
|
4346
4328
|
TOKEN_MALFORMED: "token_malformed",
|
|
@@ -4348,65 +4330,67 @@ const za = Me, Gt = window.location.href, kn = Mn({}), Ka = ({ children: e, base
|
|
|
4348
4330
|
}, qt = (e) => {
|
|
4349
4331
|
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.href}`;
|
|
4350
4332
|
};
|
|
4351
|
-
function
|
|
4352
|
-
|
|
4333
|
+
function Xa({
|
|
4334
|
+
config: e,
|
|
4335
|
+
pushError: r = jn
|
|
4336
|
+
}) {
|
|
4337
|
+
const t = Zt.create(e);
|
|
4353
4338
|
t.interceptors.request.use(
|
|
4354
|
-
async (
|
|
4339
|
+
async (o) => (o.headers = {
|
|
4355
4340
|
Accept: "application/json",
|
|
4356
4341
|
"Content-Type": "application/json"
|
|
4357
|
-
},
|
|
4358
|
-
(
|
|
4359
|
-
)
|
|
4360
|
-
|
|
4361
|
-
(
|
|
4362
|
-
async (s) => o(s)
|
|
4342
|
+
}, o),
|
|
4343
|
+
(o) => Promise.reject(o)
|
|
4344
|
+
), t.interceptors.response.use(
|
|
4345
|
+
(o) => o,
|
|
4346
|
+
async (o) => n(o)
|
|
4363
4347
|
);
|
|
4364
|
-
function o
|
|
4365
|
-
var a, c, u, l, m, d, b
|
|
4366
|
-
console.error("Error 🚨:",
|
|
4367
|
-
const
|
|
4368
|
-
if (((
|
|
4369
|
-
const
|
|
4370
|
-
return r(
|
|
4348
|
+
function n(o) {
|
|
4349
|
+
var i, a, c, u, l, m, d, b;
|
|
4350
|
+
console.error("Error 🚨:", o);
|
|
4351
|
+
const s = o == null ? void 0 : o.config;
|
|
4352
|
+
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 g = typeof ((l = o == null ? void 0 : o.response) == null ? void 0 : l.data) == "string" ? (m = o == null ? void 0 : o.response) == null ? void 0 : m.data : ((b = (d = o == null ? void 0 : o.response) == null ? void 0 : d.data) == null ? void 0 : b.message) || o.message || "Server error!";
|
|
4354
|
+
return r(g), Promise.reject(o.response.data);
|
|
4371
4355
|
}
|
|
4372
|
-
return Promise.reject(
|
|
4356
|
+
return Promise.reject(o);
|
|
4373
4357
|
}
|
|
4374
4358
|
return t;
|
|
4375
4359
|
}
|
|
4376
4360
|
const La = (e) => {
|
|
4377
|
-
const [r, t] =
|
|
4378
|
-
return
|
|
4379
|
-
|
|
4361
|
+
const [r, t] = Mn([]);
|
|
4362
|
+
return In(() => {
|
|
4363
|
+
Zt.get(`${e}/user-management/api/v1/users/my-account/permissions`, {
|
|
4380
4364
|
withCredentials: !0
|
|
4381
4365
|
}).then((n) => t(n.data)).catch((n) => {
|
|
4382
4366
|
console.error("Getting user permission error:", n);
|
|
4383
4367
|
});
|
|
4384
4368
|
}, [e]), r;
|
|
4385
|
-
},
|
|
4369
|
+
}, kn = (e) => (r, t) => {
|
|
4386
4370
|
const n = La(e);
|
|
4387
4371
|
return t ? r.every(
|
|
4388
4372
|
(o) => n == null ? void 0 : n.includes(o)
|
|
4389
4373
|
) : r.some(
|
|
4390
4374
|
(o) => n == null ? void 0 : n.includes(o)
|
|
4391
4375
|
);
|
|
4392
|
-
},
|
|
4376
|
+
}, Ja = ({
|
|
4393
4377
|
baseUrl: e,
|
|
4394
4378
|
accessWith: r,
|
|
4395
4379
|
requireAll: t,
|
|
4396
4380
|
children: n
|
|
4397
|
-
}) =>
|
|
4381
|
+
}) => kn(e)(r, t) ? /* @__PURE__ */ re(Ht, { children: n }) : null, Za = ({
|
|
4398
4382
|
accessWith: e,
|
|
4399
4383
|
requireAll: r,
|
|
4400
4384
|
baseUrl: t,
|
|
4401
4385
|
unAuthorizedPath: n,
|
|
4402
4386
|
children: o
|
|
4403
|
-
}) =>
|
|
4387
|
+
}) => kn(t)(e, r) ? /* @__PURE__ */ re(Ht, { children: o }) : /* @__PURE__ */ re(Dn, { to: n, replace: !0 });
|
|
4404
4388
|
export {
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4389
|
+
qa as AuthProvider,
|
|
4390
|
+
Ja as HasPermission,
|
|
4391
|
+
Za as PermissionRoute,
|
|
4392
|
+
Xa as getAxiosInstance,
|
|
4393
|
+
kn as getUseHasPermission,
|
|
4394
|
+
Ha as useAuth,
|
|
4411
4395
|
La as useGetPermission
|
|
4412
4396
|
};
|