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