@ukpc-lib/react 0.0.6 → 0.0.7
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/GlobalMenu/components/Dropdown.d.ts +8 -0
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +11 -0
- package/dist/components/GlobalMenu/icons/IconCollapsed.d.ts +2 -0
- package/dist/components/GlobalMenu/icons/IconExpand.d.ts +2 -0
- package/dist/components/GlobalMenu/index.d.ts +1 -0
- package/dist/components/LanguageSwitcher/index.d.ts +1 -0
- package/dist/components/ShadownDom/index.d.ts +7 -0
- package/dist/components/Topbar/index.d.ts +6 -0
- package/dist/components/index.cjs +112 -4
- package/dist/components/index.js +14180 -3474
- package/dist/index.css +1 -1
- package/dist/share/index.cjs +7 -7
- package/dist/share/index.js +130 -130
- package/dist/{styled-f324a192.js → styled-0bf715a3.js} +20 -19
- package/dist/{styled-e695695c.cjs → styled-deb36a05.cjs} +16 -16
- package/package.json +8 -3
- package/web-components-bundle/global-menu/index.cjs +44 -14
- package/web-components-bundle/global-menu/index.js +7098 -7520
- package/web-components-bundle/global-topbar/index.cjs +2 -2
- package/web-components-bundle/global-topbar/index.js +184 -83
- package/web-components-bundle/motion-238f3a86.cjs +40 -0
- package/web-components-bundle/motion-ba32a3c8.js +10605 -0
- package/web-components-bundle/index-2a824d74.cjs +0 -40
- package/web-components-bundle/index-f1edf829.js +0 -6428
package/dist/share/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as C, Fragment as
|
|
1
|
+
import { jsx as C, Fragment as pe } from "react/jsx-runtime";
|
|
2
2
|
import * as _ from "react";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { Navigate as
|
|
7
|
-
function
|
|
3
|
+
import { createContext as Xe, useContext as Je, useState as Qe, useEffect as er } from "react";
|
|
4
|
+
import { i as B, w as ye, T as ve, j as Q, k as he, l as rr, m as tr, n as nr, _ as K, d as S, o as or, p as sr, q as ir, t as ar, v as cr, a as ge, b as be, s as F, c as D, u as xe, e as Ee, P as s, f as Se, r as ur, x as G, y as q } from "../styled-0bf715a3.js";
|
|
5
|
+
import we from "axios";
|
|
6
|
+
import { Navigate as lr } from "react-router-dom";
|
|
7
|
+
function mr(e, r) {
|
|
8
8
|
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
9
9
|
return e(...o) || r(...o);
|
|
10
10
|
};
|
|
@@ -19,7 +19,7 @@ var U = { exports: {} }, y = {};
|
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
21
|
var ee;
|
|
22
|
-
function
|
|
22
|
+
function fr() {
|
|
23
23
|
if (ee)
|
|
24
24
|
return y;
|
|
25
25
|
ee = 1;
|
|
@@ -95,7 +95,7 @@ var v = {};
|
|
|
95
95
|
* LICENSE file in the root directory of this source tree.
|
|
96
96
|
*/
|
|
97
97
|
var re;
|
|
98
|
-
function
|
|
98
|
+
function dr() {
|
|
99
99
|
return re || (re = 1, process.env.NODE_ENV !== "production" && function() {
|
|
100
100
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
|
|
101
101
|
function E(u) {
|
|
@@ -134,8 +134,8 @@ function fr() {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
var a = d, j = f, I = l, z = c, Y = r, R = m,
|
|
138
|
-
function
|
|
137
|
+
var a = d, j = f, I = l, z = c, Y = r, R = m, ke = o, Ne = b, Me = h, Ae = n, Ie = t, ze = i, Ve = p, H = !1;
|
|
138
|
+
function De(u) {
|
|
139
139
|
return H || (H = !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.")), X(u) || x(u) === d;
|
|
140
140
|
}
|
|
141
141
|
function X(u) {
|
|
@@ -144,57 +144,57 @@ function fr() {
|
|
|
144
144
|
function Fe(u) {
|
|
145
145
|
return x(u) === l;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ge(u) {
|
|
148
148
|
return x(u) === c;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function We(u) {
|
|
151
151
|
return typeof u == "object" && u !== null && u.$$typeof === r;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ye(u) {
|
|
154
154
|
return x(u) === m;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Le(u) {
|
|
157
157
|
return x(u) === o;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ue(u) {
|
|
160
160
|
return x(u) === b;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Be(u) {
|
|
163
163
|
return x(u) === h;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ke(u) {
|
|
166
166
|
return x(u) === n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function qe(u) {
|
|
169
169
|
return x(u) === t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ze(u) {
|
|
172
172
|
return x(u) === i;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function He(u) {
|
|
175
175
|
return x(u) === p;
|
|
176
176
|
}
|
|
177
|
-
v.AsyncMode = a, v.ConcurrentMode = j, v.ContextConsumer = I, v.ContextProvider = z, v.Element = Y, v.ForwardRef = R, v.Fragment =
|
|
177
|
+
v.AsyncMode = a, v.ConcurrentMode = j, v.ContextConsumer = I, v.ContextProvider = z, v.Element = Y, v.ForwardRef = R, v.Fragment = ke, v.Lazy = Ne, v.Memo = Me, v.Portal = Ae, v.Profiler = Ie, v.StrictMode = ze, v.Suspense = Ve, v.isAsyncMode = De, v.isConcurrentMode = X, v.isContextConsumer = Fe, v.isContextProvider = Ge, v.isElement = We, v.isForwardRef = Ye, v.isFragment = Le, v.isLazy = Ue, v.isMemo = Be, v.isPortal = Ke, v.isProfiler = qe, v.isStrictMode = Ze, v.isSuspense = He, v.isValidElementType = E, v.typeOf = x;
|
|
178
178
|
}()), v;
|
|
179
179
|
}
|
|
180
|
-
process.env.NODE_ENV === "production" ? U.exports =
|
|
181
|
-
var
|
|
180
|
+
process.env.NODE_ENV === "production" ? U.exports = fr() : U.exports = dr();
|
|
181
|
+
var pr = U.exports, _e = pr, yr = {
|
|
182
182
|
$$typeof: !0,
|
|
183
183
|
render: !0,
|
|
184
184
|
defaultProps: !0,
|
|
185
185
|
displayName: !0,
|
|
186
186
|
propTypes: !0
|
|
187
|
-
},
|
|
187
|
+
}, vr = {
|
|
188
188
|
$$typeof: !0,
|
|
189
189
|
compare: !0,
|
|
190
190
|
defaultProps: !0,
|
|
191
191
|
displayName: !0,
|
|
192
192
|
propTypes: !0,
|
|
193
193
|
type: !0
|
|
194
|
-
},
|
|
195
|
-
_e
|
|
196
|
-
_e
|
|
197
|
-
var
|
|
194
|
+
}, Ce = {};
|
|
195
|
+
Ce[_e.ForwardRef] = yr;
|
|
196
|
+
Ce[_e.Memo] = vr;
|
|
197
|
+
var hr = {
|
|
198
198
|
name: "@emotion/react",
|
|
199
199
|
version: "11.11.3",
|
|
200
200
|
main: "dist/emotion-react.cjs.js",
|
|
@@ -324,13 +324,13 @@ var vr = {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
}, te = !1,
|
|
327
|
+
}, te = !1, gr = /* @__PURE__ */ ye(function(e, r) {
|
|
328
328
|
process.env.NODE_ENV !== "production" && !te && // check for className as well since the user is
|
|
329
329
|
// probably using the custom createElement which
|
|
330
330
|
// means it will be turned into a className prop
|
|
331
331
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
332
332
|
(e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), te = !0);
|
|
333
|
-
var n = e.styles, o = B([n], void 0, _.useContext(
|
|
333
|
+
var n = e.styles, o = B([n], void 0, _.useContext(ve)), i = _.useRef();
|
|
334
334
|
return Q(function() {
|
|
335
335
|
var t = r.key + "-global", c = new r.sheet.constructor({
|
|
336
336
|
key: t,
|
|
@@ -347,20 +347,20 @@ var vr = {
|
|
|
347
347
|
t[1] = !1;
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
|
-
if (o.next !== void 0 &&
|
|
350
|
+
if (o.next !== void 0 && he(r, o.next, !0), c.tags.length) {
|
|
351
351
|
var d = c.tags[c.tags.length - 1].nextElementSibling;
|
|
352
352
|
c.before = d, c.flush();
|
|
353
353
|
}
|
|
354
354
|
r.insert("", o, c, !1);
|
|
355
355
|
}, [r, o.name]), null;
|
|
356
356
|
});
|
|
357
|
-
process.env.NODE_ENV !== "production" && (
|
|
357
|
+
process.env.NODE_ENV !== "production" && (gr.displayName = "EmotionGlobal");
|
|
358
358
|
function Z() {
|
|
359
359
|
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
360
360
|
r[n] = arguments[n];
|
|
361
361
|
return B(r);
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var $e = function() {
|
|
364
364
|
var r = Z.apply(void 0, arguments), n = "animation-" + r.name;
|
|
365
365
|
return {
|
|
366
366
|
name: n,
|
|
@@ -370,7 +370,7 @@ var Ce = function() {
|
|
|
370
370
|
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
},
|
|
373
|
+
}, br = function e(r) {
|
|
374
374
|
for (var n = r.length, o = 0, i = ""; o < n; o++) {
|
|
375
375
|
var t = r[o];
|
|
376
376
|
if (t != null) {
|
|
@@ -396,87 +396,87 @@ var Ce = function() {
|
|
|
396
396
|
}
|
|
397
397
|
return i;
|
|
398
398
|
};
|
|
399
|
-
function
|
|
400
|
-
var o = [], i =
|
|
399
|
+
function xr(e, r, n) {
|
|
400
|
+
var o = [], i = nr(e, o, n);
|
|
401
401
|
return o.length < 2 ? n : i + r(o);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Er = function(r) {
|
|
404
404
|
var n = r.cache, o = r.serializedArr;
|
|
405
|
-
return
|
|
405
|
+
return rr(function() {
|
|
406
406
|
for (var i = 0; i < o.length; i++)
|
|
407
|
-
|
|
407
|
+
he(n, o[i], !1);
|
|
408
408
|
}), null;
|
|
409
|
-
},
|
|
409
|
+
}, Sr = /* @__PURE__ */ ye(function(e, r) {
|
|
410
410
|
var n = !1, o = [], i = function() {
|
|
411
411
|
if (n && process.env.NODE_ENV !== "production")
|
|
412
412
|
throw new Error("css can only be used during render");
|
|
413
413
|
for (var f = arguments.length, m = new Array(f), p = 0; p < f; p++)
|
|
414
414
|
m[p] = arguments[p];
|
|
415
415
|
var g = B(m, r.registered);
|
|
416
|
-
return o.push(g),
|
|
416
|
+
return o.push(g), tr(r, g, !1), r.key + "-" + g.name;
|
|
417
417
|
}, t = function() {
|
|
418
418
|
if (n && process.env.NODE_ENV !== "production")
|
|
419
419
|
throw new Error("cx can only be used during render");
|
|
420
420
|
for (var f = arguments.length, m = new Array(f), p = 0; p < f; p++)
|
|
421
421
|
m[p] = arguments[p];
|
|
422
|
-
return
|
|
422
|
+
return xr(r.registered, i, br(m));
|
|
423
423
|
}, c = {
|
|
424
424
|
css: i,
|
|
425
425
|
cx: t,
|
|
426
|
-
theme: _.useContext(
|
|
426
|
+
theme: _.useContext(ve)
|
|
427
427
|
}, l = e.children(c);
|
|
428
|
-
return n = !0, /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(
|
|
428
|
+
return n = !0, /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(Er, {
|
|
429
429
|
cache: r,
|
|
430
430
|
serializedArr: o
|
|
431
431
|
}), l);
|
|
432
432
|
});
|
|
433
|
-
process.env.NODE_ENV !== "production" && (
|
|
433
|
+
process.env.NODE_ENV !== "production" && (Sr.displayName = "EmotionClassNames");
|
|
434
434
|
if (process.env.NODE_ENV !== "production") {
|
|
435
|
-
var ne = !0,
|
|
436
|
-
if (ne && !
|
|
435
|
+
var ne = !0, wr = typeof jest < "u" || typeof vi < "u";
|
|
436
|
+
if (ne && !wr) {
|
|
437
437
|
var oe = (
|
|
438
438
|
// $FlowIgnore
|
|
439
439
|
typeof globalThis < "u" ? globalThis : ne ? window : global
|
|
440
|
-
), se = "__EMOTION_REACT_" +
|
|
440
|
+
), se = "__EMOTION_REACT_" + hr.version.split(".")[0] + "__";
|
|
441
441
|
oe[se] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), oe[se] = !0;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const _r = ["sx"], Cr = (e) => {
|
|
445
445
|
var r, n;
|
|
446
446
|
const o = {
|
|
447
447
|
systemProps: {},
|
|
448
448
|
otherProps: {}
|
|
449
|
-
}, i = (r = e == null || (n = e.theme) == null ? void 0 : n.unstable_sxConfig) != null ? r :
|
|
449
|
+
}, i = (r = e == null || (n = e.theme) == null ? void 0 : n.unstable_sxConfig) != null ? r : or;
|
|
450
450
|
return Object.keys(e).forEach((t) => {
|
|
451
451
|
i[t] ? o.systemProps[t] = e[t] : o.otherProps[t] = e[t];
|
|
452
452
|
}), o;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function $r(e) {
|
|
455
455
|
const {
|
|
456
456
|
sx: r
|
|
457
|
-
} = e, n = K(e,
|
|
457
|
+
} = e, n = K(e, _r), {
|
|
458
458
|
systemProps: o,
|
|
459
459
|
otherProps: i
|
|
460
|
-
} =
|
|
460
|
+
} = Cr(n);
|
|
461
461
|
let t;
|
|
462
462
|
return Array.isArray(r) ? t = [o, ...r] : typeof r == "function" ? t = (...c) => {
|
|
463
463
|
const l = r(...c);
|
|
464
|
-
return
|
|
464
|
+
return sr(l) ? S({}, o, l) : o;
|
|
465
465
|
} : t = S({}, o, r), S({}, i, {
|
|
466
466
|
sx: t
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
const e =
|
|
471
|
-
return process.env.NODE_ENV !== "production" && _.useDebugValue(e), e[
|
|
469
|
+
function Tr() {
|
|
470
|
+
const e = ir(cr);
|
|
471
|
+
return process.env.NODE_ENV !== "production" && _.useDebugValue(e), e[ar] || e;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
return
|
|
473
|
+
function Pr(e) {
|
|
474
|
+
return ge("MuiCircularProgress", e);
|
|
475
475
|
}
|
|
476
|
-
|
|
477
|
-
const
|
|
476
|
+
be("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
477
|
+
const jr = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
478
478
|
let W = (e) => e, ie, ae, ce, ue;
|
|
479
|
-
const O = 44,
|
|
479
|
+
const O = 44, Or = $e(ie || (ie = W`
|
|
480
480
|
0% {
|
|
481
481
|
transform: rotate(0deg);
|
|
482
482
|
}
|
|
@@ -484,7 +484,7 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
484
484
|
100% {
|
|
485
485
|
transform: rotate(360deg);
|
|
486
486
|
}
|
|
487
|
-
`)),
|
|
487
|
+
`)), Rr = $e(ae || (ae = W`
|
|
488
488
|
0% {
|
|
489
489
|
stroke-dasharray: 1px, 200px;
|
|
490
490
|
stroke-dashoffset: 0;
|
|
@@ -499,26 +499,26 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
499
499
|
stroke-dasharray: 100px, 200px;
|
|
500
500
|
stroke-dashoffset: -125px;
|
|
501
501
|
}
|
|
502
|
-
`)),
|
|
502
|
+
`)), kr = (e) => {
|
|
503
503
|
const {
|
|
504
504
|
classes: r,
|
|
505
505
|
variant: n,
|
|
506
506
|
color: o,
|
|
507
507
|
disableShrink: i
|
|
508
508
|
} = e, t = {
|
|
509
|
-
root: ["root", n, `color${
|
|
509
|
+
root: ["root", n, `color${D(o)}`],
|
|
510
510
|
svg: ["svg"],
|
|
511
|
-
circle: ["circle", `circle${
|
|
511
|
+
circle: ["circle", `circle${D(n)}`, i && "circleDisableShrink"]
|
|
512
512
|
};
|
|
513
|
-
return
|
|
514
|
-
},
|
|
513
|
+
return Se(t, Pr, r);
|
|
514
|
+
}, Nr = F("span", {
|
|
515
515
|
name: "MuiCircularProgress",
|
|
516
516
|
slot: "Root",
|
|
517
517
|
overridesResolver: (e, r) => {
|
|
518
518
|
const {
|
|
519
519
|
ownerState: n
|
|
520
520
|
} = e;
|
|
521
|
-
return [r.root, r[n.variant], r[`color${
|
|
521
|
+
return [r.root, r[n.variant], r[`color${D(n.color)}`]];
|
|
522
522
|
}
|
|
523
523
|
})(({
|
|
524
524
|
ownerState: e,
|
|
@@ -533,21 +533,21 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
533
533
|
ownerState: e
|
|
534
534
|
}) => e.variant === "indeterminate" && Z(ce || (ce = W`
|
|
535
535
|
animation: ${0} 1.4s linear infinite;
|
|
536
|
-
`),
|
|
536
|
+
`), Or)), Mr = F("svg", {
|
|
537
537
|
name: "MuiCircularProgress",
|
|
538
538
|
slot: "Svg",
|
|
539
539
|
overridesResolver: (e, r) => r.svg
|
|
540
540
|
})({
|
|
541
541
|
display: "block"
|
|
542
542
|
// Keeps the progress centered
|
|
543
|
-
}),
|
|
543
|
+
}), Ar = F("circle", {
|
|
544
544
|
name: "MuiCircularProgress",
|
|
545
545
|
slot: "Circle",
|
|
546
546
|
overridesResolver: (e, r) => {
|
|
547
547
|
const {
|
|
548
548
|
ownerState: n
|
|
549
549
|
} = e;
|
|
550
|
-
return [r.circle, r[`circle${
|
|
550
|
+
return [r.circle, r[`circle${D(n.variant)}`], n.disableShrink && r.circleDisableShrink];
|
|
551
551
|
}
|
|
552
552
|
})(({
|
|
553
553
|
ownerState: e,
|
|
@@ -565,8 +565,8 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
565
565
|
ownerState: e
|
|
566
566
|
}) => e.variant === "indeterminate" && !e.disableShrink && Z(ue || (ue = W`
|
|
567
567
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
568
|
-
`),
|
|
569
|
-
const o =
|
|
568
|
+
`), Rr)), Te = /* @__PURE__ */ _.forwardRef(function(r, n) {
|
|
569
|
+
const o = xe({
|
|
570
570
|
props: r,
|
|
571
571
|
name: "MuiCircularProgress"
|
|
572
572
|
}), {
|
|
@@ -578,20 +578,20 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
578
578
|
thickness: f = 3.6,
|
|
579
579
|
value: m = 0,
|
|
580
580
|
variant: p = "indeterminate"
|
|
581
|
-
} = o, g = K(o,
|
|
581
|
+
} = o, g = K(o, jr), h = S({}, o, {
|
|
582
582
|
color: t,
|
|
583
583
|
disableShrink: c,
|
|
584
584
|
size: l,
|
|
585
585
|
thickness: f,
|
|
586
586
|
value: m,
|
|
587
587
|
variant: p
|
|
588
|
-
}), b =
|
|
588
|
+
}), b = kr(h), w = {}, T = {}, $ = {};
|
|
589
589
|
if (p === "determinate") {
|
|
590
590
|
const P = 2 * Math.PI * ((O - f) / 2);
|
|
591
591
|
w.strokeDasharray = P.toFixed(3), $["aria-valuenow"] = Math.round(m), w.strokeDashoffset = `${((100 - m) / 100 * P).toFixed(3)}px`, T.transform = "rotate(-90deg)";
|
|
592
592
|
}
|
|
593
|
-
return /* @__PURE__ */ C(
|
|
594
|
-
className:
|
|
593
|
+
return /* @__PURE__ */ C(Nr, S({
|
|
594
|
+
className: Ee(b.root, i),
|
|
595
595
|
style: S({
|
|
596
596
|
width: l,
|
|
597
597
|
height: l
|
|
@@ -600,11 +600,11 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
600
600
|
ref: n,
|
|
601
601
|
role: "progressbar"
|
|
602
602
|
}, $, g, {
|
|
603
|
-
children: /* @__PURE__ */ C(
|
|
603
|
+
children: /* @__PURE__ */ C(Mr, {
|
|
604
604
|
className: b.svg,
|
|
605
605
|
ownerState: h,
|
|
606
606
|
viewBox: `${O / 2} ${O / 2} ${O} ${O}`,
|
|
607
|
-
children: /* @__PURE__ */ C(
|
|
607
|
+
children: /* @__PURE__ */ C(Ar, {
|
|
608
608
|
className: b.circle,
|
|
609
609
|
style: w,
|
|
610
610
|
ownerState: h,
|
|
@@ -617,7 +617,7 @@ const O = 44, jr = Ce(ie || (ie = W`
|
|
|
617
617
|
})
|
|
618
618
|
}));
|
|
619
619
|
});
|
|
620
|
-
process.env.NODE_ENV !== "production" && (
|
|
620
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
621
621
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
622
622
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
623
623
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -642,7 +642,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
642
642
|
* This only works if variant is `indeterminate`.
|
|
643
643
|
* @default false
|
|
644
644
|
*/
|
|
645
|
-
disableShrink:
|
|
645
|
+
disableShrink: mr(s.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
646
646
|
/**
|
|
647
647
|
* The size of the component.
|
|
648
648
|
* If using a number, the pixel unit is assumed.
|
|
@@ -676,21 +676,21 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
676
676
|
*/
|
|
677
677
|
variant: s.oneOf(["determinate", "indeterminate"])
|
|
678
678
|
});
|
|
679
|
-
const
|
|
680
|
-
process.env.NODE_ENV !== "production" && (
|
|
681
|
-
const le =
|
|
682
|
-
function
|
|
683
|
-
return
|
|
679
|
+
const Ir = Te, Pe = /* @__PURE__ */ _.createContext();
|
|
680
|
+
process.env.NODE_ENV !== "production" && (Pe.displayName = "GridContext");
|
|
681
|
+
const le = Pe;
|
|
682
|
+
function zr(e) {
|
|
683
|
+
return ge("MuiGrid", e);
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Vr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Dr = ["column-reverse", "column", "row-reverse", "row"], Fr = ["nowrap", "wrap-reverse", "wrap"], N = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], A = be("MuiGrid", [
|
|
686
686
|
"root",
|
|
687
687
|
"container",
|
|
688
688
|
"item",
|
|
689
689
|
"zeroMinWidth",
|
|
690
690
|
// spacings
|
|
691
|
-
...
|
|
691
|
+
...Vr.map((e) => `spacing-xs-${e}`),
|
|
692
692
|
// direction values
|
|
693
|
-
...
|
|
693
|
+
...Dr.map((e) => `direction-xs-${e}`),
|
|
694
694
|
// wrap values
|
|
695
695
|
...Fr.map((e) => `wrap-xs-${e}`),
|
|
696
696
|
// grid sizes for all breakpoints
|
|
@@ -699,12 +699,12 @@ const zr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Vr = ["column-reverse", "column",
|
|
|
699
699
|
...N.map((e) => `grid-md-${e}`),
|
|
700
700
|
...N.map((e) => `grid-lg-${e}`),
|
|
701
701
|
...N.map((e) => `grid-xl-${e}`)
|
|
702
|
-
]),
|
|
702
|
+
]), Gr = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
703
703
|
function k(e) {
|
|
704
704
|
const r = parseFloat(e);
|
|
705
705
|
return `${r}${String(e).replace(String(r), "") || "px"}`;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function Wr({
|
|
708
708
|
theme: e,
|
|
709
709
|
ownerState: r
|
|
710
710
|
}) {
|
|
@@ -755,7 +755,7 @@ function Gr({
|
|
|
755
755
|
return e.breakpoints.values[i] === 0 ? Object.assign(o, t) : o[e.breakpoints.up(i)] = t, o;
|
|
756
756
|
}, {});
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Yr({
|
|
759
759
|
theme: e,
|
|
760
760
|
ownerState: r
|
|
761
761
|
}) {
|
|
@@ -774,7 +774,7 @@ function Wr({
|
|
|
774
774
|
}), i;
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function je({
|
|
778
778
|
breakpoints: e,
|
|
779
779
|
values: r
|
|
780
780
|
}) {
|
|
@@ -785,7 +785,7 @@ function Pe({
|
|
|
785
785
|
const o = Object.keys(e).sort((i, t) => e[i] - e[t]);
|
|
786
786
|
return o.slice(0, o.indexOf(n));
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Lr({
|
|
789
789
|
theme: e,
|
|
790
790
|
ownerState: r
|
|
791
791
|
}) {
|
|
@@ -800,7 +800,7 @@ function Yr({
|
|
|
800
800
|
breakpoints: e.breakpoints.values
|
|
801
801
|
});
|
|
802
802
|
let c;
|
|
803
|
-
typeof t == "object" && (c =
|
|
803
|
+
typeof t == "object" && (c = je({
|
|
804
804
|
breakpoints: e.breakpoints.values,
|
|
805
805
|
values: t
|
|
806
806
|
})), i = q({
|
|
@@ -823,7 +823,7 @@ function Yr({
|
|
|
823
823
|
}
|
|
824
824
|
return i;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ur({
|
|
827
827
|
theme: e,
|
|
828
828
|
ownerState: r
|
|
829
829
|
}) {
|
|
@@ -838,7 +838,7 @@ function Lr({
|
|
|
838
838
|
breakpoints: e.breakpoints.values
|
|
839
839
|
});
|
|
840
840
|
let c;
|
|
841
|
-
typeof t == "object" && (c =
|
|
841
|
+
typeof t == "object" && (c = je({
|
|
842
842
|
breakpoints: e.breakpoints.values,
|
|
843
843
|
values: t
|
|
844
844
|
})), i = q({
|
|
@@ -863,7 +863,7 @@ function Lr({
|
|
|
863
863
|
}
|
|
864
864
|
return i;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Br(e, r, n = {}) {
|
|
867
867
|
if (!e || e <= 0)
|
|
868
868
|
return [];
|
|
869
869
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
@@ -874,7 +874,7 @@ function Ur(e, r, n = {}) {
|
|
|
874
874
|
Number(t) > 0 && o.push(n[`spacing-${i}-${String(t)}`]);
|
|
875
875
|
}), o;
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Kr = F("div", {
|
|
878
878
|
name: "MuiGrid",
|
|
879
879
|
slot: "Root",
|
|
880
880
|
overridesResolver: (e, r) => {
|
|
@@ -890,7 +890,7 @@ const Br = D("div", {
|
|
|
890
890
|
breakpoints: f
|
|
891
891
|
} = n;
|
|
892
892
|
let m = [];
|
|
893
|
-
o && (m =
|
|
893
|
+
o && (m = Br(c, f, r));
|
|
894
894
|
const p = [];
|
|
895
895
|
return f.forEach((g) => {
|
|
896
896
|
const h = n[g];
|
|
@@ -912,8 +912,8 @@ const Br = D("div", {
|
|
|
912
912
|
minWidth: 0
|
|
913
913
|
}, e.wrap !== "wrap" && {
|
|
914
914
|
flexWrap: e.wrap
|
|
915
|
-
}),
|
|
916
|
-
function
|
|
915
|
+
}), Yr, Lr, Ur, Wr);
|
|
916
|
+
function qr(e, r) {
|
|
917
917
|
if (!e || e <= 0)
|
|
918
918
|
return [];
|
|
919
919
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
@@ -927,7 +927,7 @@ function Kr(e, r) {
|
|
|
927
927
|
}
|
|
928
928
|
}), n;
|
|
929
929
|
}
|
|
930
|
-
const
|
|
930
|
+
const Zr = (e) => {
|
|
931
931
|
const {
|
|
932
932
|
classes: r,
|
|
933
933
|
container: n,
|
|
@@ -939,7 +939,7 @@ const qr = (e) => {
|
|
|
939
939
|
breakpoints: d
|
|
940
940
|
} = e;
|
|
941
941
|
let f = [];
|
|
942
|
-
n && (f =
|
|
942
|
+
n && (f = qr(t, d));
|
|
943
943
|
const m = [];
|
|
944
944
|
d.forEach((g) => {
|
|
945
945
|
const h = e[g];
|
|
@@ -948,14 +948,14 @@ const qr = (e) => {
|
|
|
948
948
|
const p = {
|
|
949
949
|
root: ["root", n && "container", i && "item", l && "zeroMinWidth", ...f, o !== "row" && `direction-xs-${String(o)}`, c !== "wrap" && `wrap-xs-${String(c)}`, ...m]
|
|
950
950
|
};
|
|
951
|
-
return
|
|
951
|
+
return Se(p, zr, r);
|
|
952
952
|
}, M = /* @__PURE__ */ _.forwardRef(function(r, n) {
|
|
953
|
-
const o =
|
|
953
|
+
const o = xe({
|
|
954
954
|
props: r,
|
|
955
955
|
name: "MuiGrid"
|
|
956
956
|
}), {
|
|
957
957
|
breakpoints: i
|
|
958
|
-
} =
|
|
958
|
+
} = Tr(), t = $r(o), {
|
|
959
959
|
className: c,
|
|
960
960
|
columns: l,
|
|
961
961
|
columnSpacing: d,
|
|
@@ -967,7 +967,7 @@ const qr = (e) => {
|
|
|
967
967
|
spacing: b = 0,
|
|
968
968
|
wrap: w = "wrap",
|
|
969
969
|
zeroMinWidth: T = !1
|
|
970
|
-
} = t, $ = K(t,
|
|
970
|
+
} = t, $ = K(t, Gr), P = h || b, E = d || b, x = _.useContext(le), a = m ? l || 12 : x, j = {}, I = S({}, $);
|
|
971
971
|
i.keys.forEach((R) => {
|
|
972
972
|
$[R] != null && (j[R] = $[R], delete I[R]);
|
|
973
973
|
});
|
|
@@ -983,12 +983,12 @@ const qr = (e) => {
|
|
|
983
983
|
spacing: b
|
|
984
984
|
}, j, {
|
|
985
985
|
breakpoints: i.keys
|
|
986
|
-
}), Y =
|
|
986
|
+
}), Y = Zr(z);
|
|
987
987
|
return /* @__PURE__ */ C(le.Provider, {
|
|
988
988
|
value: a,
|
|
989
|
-
children: /* @__PURE__ */ C(
|
|
989
|
+
children: /* @__PURE__ */ C(Kr, S({
|
|
990
990
|
ownerState: z,
|
|
991
|
-
className:
|
|
991
|
+
className: Ee(Y.root, c),
|
|
992
992
|
as: f,
|
|
993
993
|
ref: n
|
|
994
994
|
}, I))
|
|
@@ -1123,7 +1123,7 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
|
1123
1123
|
zeroMinWidth: s.bool
|
|
1124
1124
|
});
|
|
1125
1125
|
if (process.env.NODE_ENV !== "production") {
|
|
1126
|
-
const e =
|
|
1126
|
+
const e = ur("Grid", M);
|
|
1127
1127
|
M["propTypes"] = S({}, M.propTypes, {
|
|
1128
1128
|
direction: e("container"),
|
|
1129
1129
|
lg: e("item"),
|
|
@@ -1135,39 +1135,39 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1135
1135
|
zeroMinWidth: e("item")
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
|
-
const
|
|
1138
|
+
const Hr = M, me = window.location.href, Oe = Xe({}), nt = ({ children: e, baseUrl: r, userData: n }) => {
|
|
1139
1139
|
const o = () => {
|
|
1140
1140
|
window.location.href = `${r}/authentication/login?callbackUrl=${me}`;
|
|
1141
1141
|
}, i = () => {
|
|
1142
1142
|
window.location.href = `${r}/authentication/logout?callbackUrl=${me}`;
|
|
1143
1143
|
};
|
|
1144
1144
|
return n != null && n.isFetching ? /* @__PURE__ */ C(
|
|
1145
|
-
|
|
1145
|
+
Hr,
|
|
1146
1146
|
{
|
|
1147
1147
|
container: !0,
|
|
1148
1148
|
justifyContent: "center",
|
|
1149
1149
|
alignItems: "center",
|
|
1150
1150
|
sx: { minHeight: "100vh" },
|
|
1151
|
-
children: /* @__PURE__ */ C(
|
|
1151
|
+
children: /* @__PURE__ */ C(Ir, {})
|
|
1152
1152
|
}
|
|
1153
1153
|
) : n != null && n.isError ? (o(), null) : /* @__PURE__ */ C(
|
|
1154
|
-
|
|
1154
|
+
Oe.Provider,
|
|
1155
1155
|
{
|
|
1156
1156
|
value: { user: n == null ? void 0 : n.data, login: o, logout: i },
|
|
1157
1157
|
children: e
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
1160
|
}, ot = () => {
|
|
1161
|
-
const { login: e, logout: r, user: n } =
|
|
1161
|
+
const { login: e, logout: r, user: n } = Je(Oe);
|
|
1162
1162
|
return { login: e, logout: r, user: n };
|
|
1163
|
-
},
|
|
1163
|
+
}, fe = {
|
|
1164
1164
|
TOKEN_MALFORMED: "token_malformed",
|
|
1165
1165
|
TOKEN_EXPIRED: "token_expired"
|
|
1166
|
-
},
|
|
1167
|
-
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.
|
|
1166
|
+
}, de = (e) => {
|
|
1167
|
+
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.href}`;
|
|
1168
1168
|
};
|
|
1169
1169
|
function st({ config: e, pushError: r }) {
|
|
1170
|
-
const n =
|
|
1170
|
+
const n = we.create(e);
|
|
1171
1171
|
n.interceptors.request.use(
|
|
1172
1172
|
async (t) => (t.headers = {
|
|
1173
1173
|
Accept: "application/json",
|
|
@@ -1183,7 +1183,7 @@ function st({ config: e, pushError: r }) {
|
|
|
1183
1183
|
var l, d, f, m, p, g, h, b;
|
|
1184
1184
|
console.error("Error 🚨:", t);
|
|
1185
1185
|
const c = t == null ? void 0 : t.config;
|
|
1186
|
-
if (((
|
|
1186
|
+
if (((l = t.response) == null ? void 0 : l.status) === 401 && t.response.data.errorMessage === fe.TOKEN_EXPIRED && !c._retry && (c._retry = !0, n.post("/authentication/api/v1/auth/refresh-token").then(() => n(c)).catch(() => de(e.baseURL)), n.interceptors.response.eject(o)), (((d = t.response) == null ? void 0 : d.status) === 401 && ((f = t.response) == null ? void 0 : f.data.errorMessage) !== fe.TOKEN_EXPIRED || !((m = t.response) != null && m.data.errorMessage)) && de(e.baseURL), t.response.status !== 401) {
|
|
1187
1187
|
const w = typeof ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) == "string" ? (g = t == null ? void 0 : t.response) == null ? void 0 : g.data : ((b = (h = t == null ? void 0 : t.response) == null ? void 0 : h.data) == null ? void 0 : b.message) || t.message || "Server error!";
|
|
1188
1188
|
return r(w), Promise.reject(t.response.data);
|
|
1189
1189
|
}
|
|
@@ -1192,15 +1192,15 @@ function st({ config: e, pushError: r }) {
|
|
|
1192
1192
|
return n;
|
|
1193
1193
|
}
|
|
1194
1194
|
const Xr = (e) => {
|
|
1195
|
-
const [r, n] =
|
|
1196
|
-
return
|
|
1197
|
-
|
|
1195
|
+
const [r, n] = Qe([]);
|
|
1196
|
+
return er(() => {
|
|
1197
|
+
we.get(`${e}/user-management/api/v1/users/my-account/permissions`, {
|
|
1198
1198
|
withCredentials: !0
|
|
1199
1199
|
}).then((o) => n(o.data)).catch((o) => {
|
|
1200
1200
|
console.error("Getting user permission error:", o);
|
|
1201
1201
|
});
|
|
1202
1202
|
}, [e]), r;
|
|
1203
|
-
},
|
|
1203
|
+
}, Re = (e) => (r, n) => {
|
|
1204
1204
|
const o = Xr(e);
|
|
1205
1205
|
return n ? r.every(
|
|
1206
1206
|
(i) => o == null ? void 0 : o.includes(i)
|
|
@@ -1212,19 +1212,19 @@ const Xr = (e) => {
|
|
|
1212
1212
|
accessWith: r,
|
|
1213
1213
|
requireAll: n,
|
|
1214
1214
|
children: o
|
|
1215
|
-
}) =>
|
|
1215
|
+
}) => Re(e)(r, n) ? /* @__PURE__ */ C(pe, { children: o }) : null, at = ({
|
|
1216
1216
|
accessWith: e,
|
|
1217
1217
|
requireAll: r,
|
|
1218
1218
|
baseUrl: n,
|
|
1219
1219
|
unAuthorizedPath: o,
|
|
1220
1220
|
children: i
|
|
1221
|
-
}) =>
|
|
1221
|
+
}) => Re(n)(e, r) ? /* @__PURE__ */ C(pe, { children: i }) : /* @__PURE__ */ C(lr, { to: o, replace: !0 });
|
|
1222
1222
|
export {
|
|
1223
1223
|
nt as AuthProvider,
|
|
1224
1224
|
it as HasPermission,
|
|
1225
1225
|
at as PermissionRoute,
|
|
1226
1226
|
st as getAxiosInstance,
|
|
1227
|
-
|
|
1227
|
+
Re as getUseHasPermission,
|
|
1228
1228
|
ot as useAuth,
|
|
1229
1229
|
Xr as useGetPermission
|
|
1230
1230
|
};
|